-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
91 lines (91 loc) · 10.6 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { IonicNativePlugin, cordova } from '@ionic-native/core';
import { Observable } from 'rxjs';
var NetmeraPluginOriginal = /** @class */ (function (_super) {
__extends(NetmeraPluginOriginal, _super);
function NetmeraPluginOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
NetmeraPluginOriginal.prototype.start = function (netmeraKey, fcmKey, baseUrl) { return cordova(this, "start", {}, arguments); };
NetmeraPluginOriginal.prototype.requestPushNotificationAuthorization = function () { return cordova(this, "requestPushNotificationAuthorization", {}, arguments); };
NetmeraPluginOriginal.prototype.subscribePushNotification = function () { return cordova(this, "subscribePushNotification", { "observable": true }, arguments); };
NetmeraPluginOriginal.prototype.subscribeOpenUrl = function () { return cordova(this, "subscribeOpenUrl", { "observable": true }, arguments); };
NetmeraPluginOriginal.prototype.subscribePushClick = function () { return cordova(this, "subscribePushClick", { "observable": true }, arguments); };
NetmeraPluginOriginal.prototype.subscribePushButtonClick = function () { return cordova(this, "subscribePushButtonClick", { "observable": true }, arguments); };
NetmeraPluginOriginal.prototype.sendEvent = function (event) { return cordova(this, "sendEvent", {}, arguments); };
NetmeraPluginOriginal.prototype.fetchInboxUsingFilter = function (filter) { return cordova(this, "fetchInboxUsingFilter", {}, arguments); };
NetmeraPluginOriginal.prototype.fetchNextPage = function () { return cordova(this, "fetchNextPage", {}, arguments); };
NetmeraPluginOriginal.prototype.countForStatus = function (status) { return cordova(this, "countForStatus", {}, arguments); };
NetmeraPluginOriginal.prototype.updatePushStatus = function (index, length, status) { return cordova(this, "updatePushStatus", {}, arguments); };
NetmeraPluginOriginal.prototype.updateUser = function (user) { return cordova(this, "updateUser", {}, arguments); };
NetmeraPluginOriginal.prototype.requestLocationAuthorization = function () { return cordova(this, "requestLocationAuthorization", {}, arguments); };
NetmeraPluginOriginal.pluginName = "NetmeraPlugin";
NetmeraPluginOriginal.plugin = "cordova-plugin-netmera";
NetmeraPluginOriginal.pluginRef = "NetmeraPlugin";
NetmeraPluginOriginal.repo = "";
NetmeraPluginOriginal.install = "";
NetmeraPluginOriginal.installVariables = [];
NetmeraPluginOriginal.platforms = ["Android", "iOS"];
return NetmeraPluginOriginal;
}(IonicNativePlugin));
var NetmeraPlugin = new NetmeraPluginOriginal();
export { NetmeraPlugin };
export var NetmeraPushStatus;
(function (NetmeraPushStatus) {
NetmeraPushStatus[NetmeraPushStatus["undefiend"] = 0] = "undefiend";
NetmeraPushStatus[NetmeraPushStatus["read"] = 1] = "read";
NetmeraPushStatus[NetmeraPushStatus["unread"] = 2] = "unread";
NetmeraPushStatus[NetmeraPushStatus["readAndUnread"] = 3] = "readAndUnread";
NetmeraPushStatus[NetmeraPushStatus["deleted"] = 4] = "deleted";
NetmeraPushStatus[NetmeraPushStatus["all"] = 7] = "all";
})(NetmeraPushStatus || (NetmeraPushStatus = {}));
var NetmeraUser = /** @class */ (function () {
function NetmeraUser() {
}
Object.defineProperty(NetmeraUser.prototype, "setUserId", {
set: function (value) { this.userId = value; },
enumerable: false,
configurable: true
});
Object.defineProperty(NetmeraUser.prototype, "setEmail", {
set: function (value) { this.email = value; },
enumerable: false,
configurable: true
});
Object.defineProperty(NetmeraUser.prototype, "setMsisdn", {
set: function (value) { this.msisdn = value; },
enumerable: false,
configurable: true
});
Object.defineProperty(NetmeraUser.prototype, "name", {
set: function (value) { this.pa = value; },
enumerable: false,
configurable: true
});
Object.defineProperty(NetmeraUser.prototype, "surname", {
set: function (value) { this.pa = value; },
enumerable: false,
configurable: true
});
return NetmeraUser;
}());
export { NetmeraUser };
var NetmeraEvent = /** @class */ (function () {
function NetmeraEvent() {
}
return NetmeraEvent;
}());
export { NetmeraEvent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL25ldG1lcmEtcGx1Z2luL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFZQSxPQUFPLDhCQUEwRixNQUFNLG9CQUFvQixDQUFDO0FBQzVILE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxNQUFNLENBQUM7O0lBYUMsaUNBQWlCOzs7O0lBR2xELDZCQUFLLGFBQUMsVUFBa0IsRUFBRSxNQUFjLEVBQUUsT0FBZ0I7SUFLMUQsNERBQW9DO0lBT3BDLGlEQUF5QjtJQU96Qix3Q0FBZ0I7SUFPaEIsMENBQWtCO0lBT2xCLGdEQUF3QjtJQUt4QixpQ0FBUyxhQUFDLEtBQW1CO0lBSzdCLDZDQUFxQixhQUFDLE1BQTBCO0lBS2hELHFDQUFhO0lBS2Isc0NBQWMsYUFBQyxNQUF5QjtJQUt4Qyx3Q0FBZ0IsYUFBQyxLQUFhLEVBQUUsTUFBYyxFQUFFLE1BQXlCO0lBS3pFLGtDQUFVLGFBQUMsSUFBaUI7SUFHNUIsb0RBQTRCOzs7Ozs7Ozt3QkEvRjlCO0VBMEJtQyxpQkFBaUI7U0FB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