@awesome-cordova-plugins/we-cap-inbox 7.0.1 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +8 -5
- package/index.js +22 -171
- package/ngx/bundle.js +27 -162
- package/ngx/index.d.ts +5 -4
- package/ngx/index.js +30 -164
- package/ngx/package.json +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
|
|
3
3
|
* @name WE Cap Inbox
|
|
4
4
|
* @description
|
|
5
5
|
* This plugin provides functionalities to manage notifications in your app.
|
|
6
|
+
*
|
|
6
7
|
* @usage
|
|
7
8
|
* ```typescript
|
|
8
9
|
* import { WECapInbox } from '@awesome-cordova-plugins/we-cap-inbox';
|
|
@@ -16,7 +17,7 @@ import { AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
|
|
16
17
|
* .catch((error: string) => console.error(error));
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
export declare class
|
|
20
|
+
export declare class WECapInboxOriginal extends AwesomeCordovaNativePlugin {
|
|
20
21
|
/**
|
|
21
22
|
* Resets the notification count.
|
|
22
23
|
* @returns {Promise<void>}
|
|
@@ -86,12 +87,14 @@ export declare class WECapInbox extends AwesomeCordovaNativePlugin {
|
|
|
86
87
|
*/
|
|
87
88
|
deleteAll(notificationList: JsonArray): Promise<void>;
|
|
88
89
|
}
|
|
89
|
-
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
90
|
-
export type NotificationResponse = {
|
|
90
|
+
export declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
91
|
+
export declare type NotificationResponse = {
|
|
91
92
|
hasNext: boolean;
|
|
92
93
|
messageList: JsonArray;
|
|
93
94
|
};
|
|
94
|
-
export type JsonObject = {
|
|
95
|
+
export declare type JsonObject = {
|
|
95
96
|
[key: string]: JsonValue;
|
|
96
97
|
};
|
|
97
|
-
export type JsonArray = JsonValue[];
|
|
98
|
+
export declare type JsonArray = JsonValue[];
|
|
99
|
+
|
|
100
|
+
export declare const WECapInbox: WECapInboxOriginal;
|
package/index.js
CHANGED
|
@@ -13,179 +13,30 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
13
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
-
};
|
|
22
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
-
};
|
|
25
16
|
import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';
|
|
26
|
-
var
|
|
27
|
-
__extends(
|
|
28
|
-
function
|
|
17
|
+
var WECapInboxOriginal = /** @class */ (function (_super) {
|
|
18
|
+
__extends(WECapInboxOriginal, _super);
|
|
19
|
+
function WECapInboxOriginal() {
|
|
29
20
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
21
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* Retrieves Notification List
|
|
49
|
-
* @param {JsonObject | null} offset - Optional offset for notifications
|
|
50
|
-
* @param {function} successCallback
|
|
51
|
-
* @param {function} errorCallback
|
|
52
|
-
* @returns {Promise<any>}
|
|
53
|
-
*/
|
|
54
|
-
WECapInbox.prototype.getNotificationList = function (offset, successCallback, errorCallback) {
|
|
55
|
-
return;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Marks a specific notification as read.
|
|
59
|
-
* @param {JsonObject} notificationObject - The notification to mark as read.
|
|
60
|
-
* @returns {Promise<void>}
|
|
61
|
-
*/
|
|
62
|
-
WECapInbox.prototype.markRead = function (notificationObject) {
|
|
63
|
-
return;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Marks a specific notification as unread.
|
|
67
|
-
* @param {JsonObject} notificationObject - The notification to mark as unread.
|
|
68
|
-
* @returns {Promise<void>}
|
|
69
|
-
*/
|
|
70
|
-
WECapInbox.prototype.markUnread = function (notificationObject) {
|
|
71
|
-
return;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Tracks a click event on a notification.
|
|
75
|
-
* @param {JsonObject} notificationObject - The notification that was clicked.
|
|
76
|
-
* @returns {Promise<void>}
|
|
77
|
-
*/
|
|
78
|
-
WECapInbox.prototype.trackClick = function (notificationObject) {
|
|
79
|
-
return;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Tracks the view event of a notification.
|
|
83
|
-
* @param {JsonObject} notificationObject - The notification that was viewed.
|
|
84
|
-
* @returns {Promise<void>}
|
|
85
|
-
*/
|
|
86
|
-
WECapInbox.prototype.trackView = function (notificationObject) {
|
|
87
|
-
return;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Marks a specific notification as deleted.
|
|
91
|
-
* @param {JsonObject} notificationObject - The notification to delete.
|
|
92
|
-
* @returns {Promise<void>}
|
|
93
|
-
*/
|
|
94
|
-
WECapInbox.prototype.markDelete = function (notificationObject) {
|
|
95
|
-
return;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Marks all notifications as read.
|
|
99
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to mark as read.
|
|
100
|
-
* @returns {Promise<void>}
|
|
101
|
-
*/
|
|
102
|
-
WECapInbox.prototype.readAll = function (notificationList) {
|
|
103
|
-
return;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Marks all notifications as unread.
|
|
107
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to mark as unread.
|
|
108
|
-
* @returns {Promise<void>}
|
|
109
|
-
*/
|
|
110
|
-
WECapInbox.prototype.unReadAll = function (notificationList) {
|
|
111
|
-
return;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Deletes all notifications.
|
|
115
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to delete.
|
|
116
|
-
* @returns {Promise<void>}
|
|
117
|
-
*/
|
|
118
|
-
WECapInbox.prototype.deleteAll = function (notificationList) {
|
|
119
|
-
return;
|
|
120
|
-
};
|
|
121
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
122
|
-
__decorate([
|
|
123
|
-
Cordova(),
|
|
124
|
-
__metadata("design:type", Function),
|
|
125
|
-
__metadata("design:paramtypes", []),
|
|
126
|
-
__metadata("design:returntype", typeof (_a = typeof Promise !== "undefined" && Promise) === "function" ? _a : Object)
|
|
127
|
-
], WECapInbox.prototype, "resetNotificationCount", null);
|
|
128
|
-
__decorate([
|
|
129
|
-
Cordova(),
|
|
130
|
-
__metadata("design:type", Function),
|
|
131
|
-
__metadata("design:paramtypes", [Function, Function]),
|
|
132
|
-
__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
133
|
-
], WECapInbox.prototype, "getNotificationCount", null);
|
|
134
|
-
__decorate([
|
|
135
|
-
Cordova(),
|
|
136
|
-
__metadata("design:type", Function),
|
|
137
|
-
__metadata("design:paramtypes", [typeof (_c = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _c : Object, Function, Function]),
|
|
138
|
-
__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
139
|
-
], WECapInbox.prototype, "getNotificationList", null);
|
|
140
|
-
__decorate([
|
|
141
|
-
Cordova(),
|
|
142
|
-
__metadata("design:type", Function),
|
|
143
|
-
__metadata("design:paramtypes", [typeof (_e = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _e : Object]),
|
|
144
|
-
__metadata("design:returntype", typeof (_f = typeof Promise !== "undefined" && Promise) === "function" ? _f : Object)
|
|
145
|
-
], WECapInbox.prototype, "markRead", null);
|
|
146
|
-
__decorate([
|
|
147
|
-
Cordova(),
|
|
148
|
-
__metadata("design:type", Function),
|
|
149
|
-
__metadata("design:paramtypes", [typeof (_g = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _g : Object]),
|
|
150
|
-
__metadata("design:returntype", typeof (_h = typeof Promise !== "undefined" && Promise) === "function" ? _h : Object)
|
|
151
|
-
], WECapInbox.prototype, "markUnread", null);
|
|
152
|
-
__decorate([
|
|
153
|
-
Cordova(),
|
|
154
|
-
__metadata("design:type", Function),
|
|
155
|
-
__metadata("design:paramtypes", [typeof (_j = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _j : Object]),
|
|
156
|
-
__metadata("design:returntype", typeof (_k = typeof Promise !== "undefined" && Promise) === "function" ? _k : Object)
|
|
157
|
-
], WECapInbox.prototype, "trackClick", null);
|
|
158
|
-
__decorate([
|
|
159
|
-
Cordova(),
|
|
160
|
-
__metadata("design:type", Function),
|
|
161
|
-
__metadata("design:paramtypes", [typeof (_l = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _l : Object]),
|
|
162
|
-
__metadata("design:returntype", typeof (_m = typeof Promise !== "undefined" && Promise) === "function" ? _m : Object)
|
|
163
|
-
], WECapInbox.prototype, "trackView", null);
|
|
164
|
-
__decorate([
|
|
165
|
-
Cordova(),
|
|
166
|
-
__metadata("design:type", Function),
|
|
167
|
-
__metadata("design:paramtypes", [typeof (_o = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _o : Object]),
|
|
168
|
-
__metadata("design:returntype", typeof (_p = typeof Promise !== "undefined" && Promise) === "function" ? _p : Object)
|
|
169
|
-
], WECapInbox.prototype, "markDelete", null);
|
|
170
|
-
__decorate([
|
|
171
|
-
Cordova(),
|
|
172
|
-
__metadata("design:type", Function),
|
|
173
|
-
__metadata("design:paramtypes", [typeof (_q = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _q : Object]),
|
|
174
|
-
__metadata("design:returntype", typeof (_r = typeof Promise !== "undefined" && Promise) === "function" ? _r : Object)
|
|
175
|
-
], WECapInbox.prototype, "readAll", null);
|
|
176
|
-
__decorate([
|
|
177
|
-
Cordova(),
|
|
178
|
-
__metadata("design:type", Function),
|
|
179
|
-
__metadata("design:paramtypes", [typeof (_s = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _s : Object]),
|
|
180
|
-
__metadata("design:returntype", typeof (_t = typeof Promise !== "undefined" && Promise) === "function" ? _t : Object)
|
|
181
|
-
], WECapInbox.prototype, "unReadAll", null);
|
|
182
|
-
__decorate([
|
|
183
|
-
Cordova(),
|
|
184
|
-
__metadata("design:type", Function),
|
|
185
|
-
__metadata("design:paramtypes", [typeof (_u = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _u : Object]),
|
|
186
|
-
__metadata("design:returntype", typeof (_v = typeof Promise !== "undefined" && Promise) === "function" ? _v : Object)
|
|
187
|
-
], WECapInbox.prototype, "deleteAll", null);
|
|
188
|
-
return WECapInbox;
|
|
22
|
+
WECapInboxOriginal.prototype.resetNotificationCount = function () { return cordova(this, "resetNotificationCount", {}, arguments); };
|
|
23
|
+
WECapInboxOriginal.prototype.getNotificationCount = function (successCallback, errorCallback) { return cordova(this, "getNotificationCount", {}, arguments); };
|
|
24
|
+
WECapInboxOriginal.prototype.getNotificationList = function (offset, successCallback, errorCallback) { return cordova(this, "getNotificationList", {}, arguments); };
|
|
25
|
+
WECapInboxOriginal.prototype.markRead = function (notificationObject) { return cordova(this, "markRead", {}, arguments); };
|
|
26
|
+
WECapInboxOriginal.prototype.markUnread = function (notificationObject) { return cordova(this, "markUnread", {}, arguments); };
|
|
27
|
+
WECapInboxOriginal.prototype.trackClick = function (notificationObject) { return cordova(this, "trackClick", {}, arguments); };
|
|
28
|
+
WECapInboxOriginal.prototype.trackView = function (notificationObject) { return cordova(this, "trackView", {}, arguments); };
|
|
29
|
+
WECapInboxOriginal.prototype.markDelete = function (notificationObject) { return cordova(this, "markDelete", {}, arguments); };
|
|
30
|
+
WECapInboxOriginal.prototype.readAll = function (notificationList) { return cordova(this, "readAll", {}, arguments); };
|
|
31
|
+
WECapInboxOriginal.prototype.unReadAll = function (notificationList) { return cordova(this, "unReadAll", {}, arguments); };
|
|
32
|
+
WECapInboxOriginal.prototype.deleteAll = function (notificationList) { return cordova(this, "deleteAll", {}, arguments); };
|
|
33
|
+
WECapInboxOriginal.pluginName = "WECapInbox";
|
|
34
|
+
WECapInboxOriginal.plugin = "we-notificationinbox-cordova";
|
|
35
|
+
WECapInboxOriginal.pluginRef = "WENotificationInboxPlugin";
|
|
36
|
+
WECapInboxOriginal.repo = "https://github.com/WebEngage/we-ionic-notification-inbox";
|
|
37
|
+
WECapInboxOriginal.platforms = ["Android", "iOS"];
|
|
38
|
+
return WECapInboxOriginal;
|
|
189
39
|
}(AwesomeCordovaNativePlugin));
|
|
40
|
+
var WECapInbox = new WECapInboxOriginal();
|
|
190
41
|
export { WECapInbox };
|
|
191
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGF3ZXNv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k6IHN0cmluZ106IEpzb25WYWx1ZTtcbn07XG5cbmV4cG9ydCB0eXBlIEpzb25BcnJheSA9IEpzb25WYWx1ZVtdO1xuIl19
|
package/ngx/bundle.js
CHANGED
|
@@ -23,168 +23,33 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
25
|
|
|
26
|
-
var
|
|
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
|
-
* Marks a specific notification as read.
|
|
56
|
-
* @param {JsonObject} notificationObject - The notification to mark as read.
|
|
57
|
-
* @returns {Promise<void>}
|
|
58
|
-
*/
|
|
59
|
-
markRead(notificationObject) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Marks a specific notification as unread.
|
|
64
|
-
* @param {JsonObject} notificationObject - The notification to mark as unread.
|
|
65
|
-
* @returns {Promise<void>}
|
|
66
|
-
*/
|
|
67
|
-
markUnread(notificationObject) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Tracks a click event on a notification.
|
|
72
|
-
* @param {JsonObject} notificationObject - The notification that was clicked.
|
|
73
|
-
* @returns {Promise<void>}
|
|
74
|
-
*/
|
|
75
|
-
trackClick(notificationObject) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Tracks the view event of a notification.
|
|
80
|
-
* @param {JsonObject} notificationObject - The notification that was viewed.
|
|
81
|
-
* @returns {Promise<void>}
|
|
82
|
-
*/
|
|
83
|
-
trackView(notificationObject) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Marks a specific notification as deleted.
|
|
88
|
-
* @param {JsonObject} notificationObject - The notification to delete.
|
|
89
|
-
* @returns {Promise<void>}
|
|
90
|
-
*/
|
|
91
|
-
markDelete(notificationObject) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Marks all notifications as read.
|
|
96
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to mark as read.
|
|
97
|
-
* @returns {Promise<void>}
|
|
98
|
-
*/
|
|
99
|
-
readAll(notificationList) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Marks all notifications as unread.
|
|
104
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to mark as unread.
|
|
105
|
-
* @returns {Promise<void>}
|
|
106
|
-
*/
|
|
107
|
-
unReadAll(notificationList) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Deletes all notifications.
|
|
112
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to delete.
|
|
113
|
-
* @returns {Promise<void>}
|
|
114
|
-
*/
|
|
115
|
-
deleteAll(notificationList) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
WECapInbox.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: WECapInbox, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
120
|
-
WECapInbox.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: WECapInbox });
|
|
121
|
-
tslib.__decorate([
|
|
122
|
-
Cordova(),
|
|
123
|
-
tslib.__metadata("design:type", Function),
|
|
124
|
-
tslib.__metadata("design:paramtypes", []),
|
|
125
|
-
tslib.__metadata("design:returntype", typeof (_a = typeof Promise !== "undefined" && Promise) === "function" ? _a : Object)
|
|
126
|
-
], WECapInbox.prototype, "resetNotificationCount", null);
|
|
127
|
-
tslib.__decorate([
|
|
128
|
-
Cordova(),
|
|
129
|
-
tslib.__metadata("design:type", Function),
|
|
130
|
-
tslib.__metadata("design:paramtypes", [Function, Function]),
|
|
131
|
-
tslib.__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
132
|
-
], WECapInbox.prototype, "getNotificationCount", null);
|
|
133
|
-
tslib.__decorate([
|
|
134
|
-
Cordova(),
|
|
135
|
-
tslib.__metadata("design:type", Function),
|
|
136
|
-
tslib.__metadata("design:paramtypes", [typeof (_c = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _c : Object, Function, Function]),
|
|
137
|
-
tslib.__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
138
|
-
], WECapInbox.prototype, "getNotificationList", null);
|
|
139
|
-
tslib.__decorate([
|
|
140
|
-
Cordova(),
|
|
141
|
-
tslib.__metadata("design:type", Function),
|
|
142
|
-
tslib.__metadata("design:paramtypes", [typeof (_e = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _e : Object]),
|
|
143
|
-
tslib.__metadata("design:returntype", typeof (_f = typeof Promise !== "undefined" && Promise) === "function" ? _f : Object)
|
|
144
|
-
], WECapInbox.prototype, "markRead", null);
|
|
145
|
-
tslib.__decorate([
|
|
146
|
-
Cordova(),
|
|
147
|
-
tslib.__metadata("design:type", Function),
|
|
148
|
-
tslib.__metadata("design:paramtypes", [typeof (_g = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _g : Object]),
|
|
149
|
-
tslib.__metadata("design:returntype", typeof (_h = typeof Promise !== "undefined" && Promise) === "function" ? _h : Object)
|
|
150
|
-
], WECapInbox.prototype, "markUnread", null);
|
|
151
|
-
tslib.__decorate([
|
|
152
|
-
Cordova(),
|
|
153
|
-
tslib.__metadata("design:type", Function),
|
|
154
|
-
tslib.__metadata("design:paramtypes", [typeof (_j = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _j : Object]),
|
|
155
|
-
tslib.__metadata("design:returntype", typeof (_k = typeof Promise !== "undefined" && Promise) === "function" ? _k : Object)
|
|
156
|
-
], WECapInbox.prototype, "trackClick", null);
|
|
157
|
-
tslib.__decorate([
|
|
158
|
-
Cordova(),
|
|
159
|
-
tslib.__metadata("design:type", Function),
|
|
160
|
-
tslib.__metadata("design:paramtypes", [typeof (_l = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _l : Object]),
|
|
161
|
-
tslib.__metadata("design:returntype", typeof (_m = typeof Promise !== "undefined" && Promise) === "function" ? _m : Object)
|
|
162
|
-
], WECapInbox.prototype, "trackView", null);
|
|
163
|
-
tslib.__decorate([
|
|
164
|
-
Cordova(),
|
|
165
|
-
tslib.__metadata("design:type", Function),
|
|
166
|
-
tslib.__metadata("design:paramtypes", [typeof (_o = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _o : Object]),
|
|
167
|
-
tslib.__metadata("design:returntype", typeof (_p = typeof Promise !== "undefined" && Promise) === "function" ? _p : Object)
|
|
168
|
-
], WECapInbox.prototype, "markDelete", null);
|
|
169
|
-
tslib.__decorate([
|
|
170
|
-
Cordova(),
|
|
171
|
-
tslib.__metadata("design:type", Function),
|
|
172
|
-
tslib.__metadata("design:paramtypes", [typeof (_q = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _q : Object]),
|
|
173
|
-
tslib.__metadata("design:returntype", typeof (_r = typeof Promise !== "undefined" && Promise) === "function" ? _r : Object)
|
|
174
|
-
], WECapInbox.prototype, "readAll", null);
|
|
175
|
-
tslib.__decorate([
|
|
176
|
-
Cordova(),
|
|
177
|
-
tslib.__metadata("design:type", Function),
|
|
178
|
-
tslib.__metadata("design:paramtypes", [typeof (_s = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _s : Object]),
|
|
179
|
-
tslib.__metadata("design:returntype", typeof (_t = typeof Promise !== "undefined" && Promise) === "function" ? _t : Object)
|
|
180
|
-
], WECapInbox.prototype, "unReadAll", null);
|
|
181
|
-
tslib.__decorate([
|
|
182
|
-
Cordova(),
|
|
183
|
-
tslib.__metadata("design:type", Function),
|
|
184
|
-
tslib.__metadata("design:paramtypes", [typeof (_u = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _u : Object]),
|
|
185
|
-
tslib.__metadata("design:returntype", typeof (_v = typeof Promise !== "undefined" && Promise) === "function" ? _v : Object)
|
|
186
|
-
], WECapInbox.prototype, "deleteAll", null);
|
|
187
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: WECapInbox, decorators: [{
|
|
26
|
+
var WECapInbox = /** @class */ (function (_super) {
|
|
27
|
+
tslib.__extends(WECapInbox, _super);
|
|
28
|
+
function WECapInbox() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
WECapInbox.prototype.resetNotificationCount = function () { return core.cordova(this, "resetNotificationCount", {}, arguments); };
|
|
32
|
+
WECapInbox.prototype.getNotificationCount = function (successCallback, errorCallback) { return core.cordova(this, "getNotificationCount", {}, arguments); };
|
|
33
|
+
WECapInbox.prototype.getNotificationList = function (offset, successCallback, errorCallback) { return core.cordova(this, "getNotificationList", {}, arguments); };
|
|
34
|
+
WECapInbox.prototype.markRead = function (notificationObject) { return core.cordova(this, "markRead", {}, arguments); };
|
|
35
|
+
WECapInbox.prototype.markUnread = function (notificationObject) { return core.cordova(this, "markUnread", {}, arguments); };
|
|
36
|
+
WECapInbox.prototype.trackClick = function (notificationObject) { return core.cordova(this, "trackClick", {}, arguments); };
|
|
37
|
+
WECapInbox.prototype.trackView = function (notificationObject) { return core.cordova(this, "trackView", {}, arguments); };
|
|
38
|
+
WECapInbox.prototype.markDelete = function (notificationObject) { return core.cordova(this, "markDelete", {}, arguments); };
|
|
39
|
+
WECapInbox.prototype.readAll = function (notificationList) { return core.cordova(this, "readAll", {}, arguments); };
|
|
40
|
+
WECapInbox.prototype.unReadAll = function (notificationList) { return core.cordova(this, "unReadAll", {}, arguments); };
|
|
41
|
+
WECapInbox.prototype.deleteAll = function (notificationList) { return core.cordova(this, "deleteAll", {}, arguments); };
|
|
42
|
+
WECapInbox.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: WECapInbox, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
WECapInbox.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: WECapInbox });
|
|
44
|
+
WECapInbox.pluginName = "WECapInbox";
|
|
45
|
+
WECapInbox.plugin = "we-notificationinbox-cordova";
|
|
46
|
+
WECapInbox.pluginRef = "WENotificationInboxPlugin";
|
|
47
|
+
WECapInbox.repo = "https://github.com/WebEngage/we-ionic-notification-inbox";
|
|
48
|
+
WECapInbox.platforms = ["Android", "iOS"];
|
|
49
|
+
WECapInbox = tslib.__decorate([], WECapInbox);
|
|
50
|
+
return WECapInbox;
|
|
51
|
+
}(core.AwesomeCordovaNativePlugin));
|
|
52
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: WECapInbox, decorators: [{
|
|
188
53
|
type: i0.Injectable
|
|
189
54
|
}], propDecorators: { resetNotificationCount: [], getNotificationCount: [], getNotificationList: [], markRead: [], markUnread: [], trackClick: [], trackView: [], markDelete: [], readAll: [], unReadAll: [], deleteAll: [] } });
|
|
190
55
|
|
package/ngx/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
|
|
3
3
|
* @name WE Cap Inbox
|
|
4
4
|
* @description
|
|
5
5
|
* This plugin provides functionalities to manage notifications in your app.
|
|
6
|
+
*
|
|
6
7
|
* @usage
|
|
7
8
|
* ```typescript
|
|
8
9
|
* import { WECapInbox } from '@awesome-cordova-plugins/we-cap-inbox';
|
|
@@ -86,12 +87,12 @@ export declare class WECapInbox extends AwesomeCordovaNativePlugin {
|
|
|
86
87
|
*/
|
|
87
88
|
deleteAll(notificationList: JsonArray): Promise<void>;
|
|
88
89
|
}
|
|
89
|
-
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
90
|
-
export type NotificationResponse = {
|
|
90
|
+
export declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
91
|
+
export declare type NotificationResponse = {
|
|
91
92
|
hasNext: boolean;
|
|
92
93
|
messageList: JsonArray;
|
|
93
94
|
};
|
|
94
|
-
export type JsonObject = {
|
|
95
|
+
export declare type JsonObject = {
|
|
95
96
|
[key: string]: JsonValue;
|
|
96
97
|
};
|
|
97
|
-
export type JsonArray = JsonValue[];
|
|
98
|
+
export declare type JsonArray = JsonValue[];
|
package/ngx/index.js
CHANGED
|
@@ -1,169 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
1
|
+
import { __decorate, __extends } from "tslib";
|
|
3
2
|
import { Injectable } from '@angular/core';
|
|
4
3
|
import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
resetNotificationCount() {
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* Marks a specific notification as read.
|
|
35
|
-
* @param {JsonObject} notificationObject - The notification to mark as read.
|
|
36
|
-
* @returns {Promise<void>}
|
|
37
|
-
*/
|
|
38
|
-
markRead(notificationObject) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Marks a specific notification as unread.
|
|
43
|
-
* @param {JsonObject} notificationObject - The notification to mark as unread.
|
|
44
|
-
* @returns {Promise<void>}
|
|
45
|
-
*/
|
|
46
|
-
markUnread(notificationObject) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Tracks a click event on a notification.
|
|
51
|
-
* @param {JsonObject} notificationObject - The notification that was clicked.
|
|
52
|
-
* @returns {Promise<void>}
|
|
53
|
-
*/
|
|
54
|
-
trackClick(notificationObject) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Tracks the view event of a notification.
|
|
59
|
-
* @param {JsonObject} notificationObject - The notification that was viewed.
|
|
60
|
-
* @returns {Promise<void>}
|
|
61
|
-
*/
|
|
62
|
-
trackView(notificationObject) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Marks a specific notification as deleted.
|
|
67
|
-
* @param {JsonObject} notificationObject - The notification to delete.
|
|
68
|
-
* @returns {Promise<void>}
|
|
69
|
-
*/
|
|
70
|
-
markDelete(notificationObject) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Marks all notifications as read.
|
|
75
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to mark as read.
|
|
76
|
-
* @returns {Promise<void>}
|
|
77
|
-
*/
|
|
78
|
-
readAll(notificationList) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Marks all notifications as unread.
|
|
83
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to mark as unread.
|
|
84
|
-
* @returns {Promise<void>}
|
|
85
|
-
*/
|
|
86
|
-
unReadAll(notificationList) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Deletes all notifications.
|
|
91
|
-
* @param {JsonArray} notificationList - An array of notification identifiers to delete.
|
|
92
|
-
* @returns {Promise<void>}
|
|
93
|
-
*/
|
|
94
|
-
deleteAll(notificationList) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
WECapInbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: WECapInbox, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
99
|
-
WECapInbox.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: WECapInbox });
|
|
100
|
-
__decorate([
|
|
101
|
-
Cordova(),
|
|
102
|
-
__metadata("design:type", Function),
|
|
103
|
-
__metadata("design:paramtypes", []),
|
|
104
|
-
__metadata("design:returntype", typeof (_a = typeof Promise !== "undefined" && Promise) === "function" ? _a : Object)
|
|
105
|
-
], WECapInbox.prototype, "resetNotificationCount", null);
|
|
106
|
-
__decorate([
|
|
107
|
-
Cordova(),
|
|
108
|
-
__metadata("design:type", Function),
|
|
109
|
-
__metadata("design:paramtypes", [Function, Function]),
|
|
110
|
-
__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
111
|
-
], WECapInbox.prototype, "getNotificationCount", null);
|
|
112
|
-
__decorate([
|
|
113
|
-
Cordova(),
|
|
114
|
-
__metadata("design:type", Function),
|
|
115
|
-
__metadata("design:paramtypes", [typeof (_c = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _c : Object, Function, Function]),
|
|
116
|
-
__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
117
|
-
], WECapInbox.prototype, "getNotificationList", null);
|
|
118
|
-
__decorate([
|
|
119
|
-
Cordova(),
|
|
120
|
-
__metadata("design:type", Function),
|
|
121
|
-
__metadata("design:paramtypes", [typeof (_e = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _e : Object]),
|
|
122
|
-
__metadata("design:returntype", typeof (_f = typeof Promise !== "undefined" && Promise) === "function" ? _f : Object)
|
|
123
|
-
], WECapInbox.prototype, "markRead", null);
|
|
124
|
-
__decorate([
|
|
125
|
-
Cordova(),
|
|
126
|
-
__metadata("design:type", Function),
|
|
127
|
-
__metadata("design:paramtypes", [typeof (_g = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _g : Object]),
|
|
128
|
-
__metadata("design:returntype", typeof (_h = typeof Promise !== "undefined" && Promise) === "function" ? _h : Object)
|
|
129
|
-
], WECapInbox.prototype, "markUnread", null);
|
|
130
|
-
__decorate([
|
|
131
|
-
Cordova(),
|
|
132
|
-
__metadata("design:type", Function),
|
|
133
|
-
__metadata("design:paramtypes", [typeof (_j = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _j : Object]),
|
|
134
|
-
__metadata("design:returntype", typeof (_k = typeof Promise !== "undefined" && Promise) === "function" ? _k : Object)
|
|
135
|
-
], WECapInbox.prototype, "trackClick", null);
|
|
136
|
-
__decorate([
|
|
137
|
-
Cordova(),
|
|
138
|
-
__metadata("design:type", Function),
|
|
139
|
-
__metadata("design:paramtypes", [typeof (_l = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _l : Object]),
|
|
140
|
-
__metadata("design:returntype", typeof (_m = typeof Promise !== "undefined" && Promise) === "function" ? _m : Object)
|
|
141
|
-
], WECapInbox.prototype, "trackView", null);
|
|
142
|
-
__decorate([
|
|
143
|
-
Cordova(),
|
|
144
|
-
__metadata("design:type", Function),
|
|
145
|
-
__metadata("design:paramtypes", [typeof (_o = typeof JsonObject !== "undefined" && JsonObject) === "function" ? _o : Object]),
|
|
146
|
-
__metadata("design:returntype", typeof (_p = typeof Promise !== "undefined" && Promise) === "function" ? _p : Object)
|
|
147
|
-
], WECapInbox.prototype, "markDelete", null);
|
|
148
|
-
__decorate([
|
|
149
|
-
Cordova(),
|
|
150
|
-
__metadata("design:type", Function),
|
|
151
|
-
__metadata("design:paramtypes", [typeof (_q = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _q : Object]),
|
|
152
|
-
__metadata("design:returntype", typeof (_r = typeof Promise !== "undefined" && Promise) === "function" ? _r : Object)
|
|
153
|
-
], WECapInbox.prototype, "readAll", null);
|
|
154
|
-
__decorate([
|
|
155
|
-
Cordova(),
|
|
156
|
-
__metadata("design:type", Function),
|
|
157
|
-
__metadata("design:paramtypes", [typeof (_s = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _s : Object]),
|
|
158
|
-
__metadata("design:returntype", typeof (_t = typeof Promise !== "undefined" && Promise) === "function" ? _t : Object)
|
|
159
|
-
], WECapInbox.prototype, "unReadAll", null);
|
|
160
|
-
__decorate([
|
|
161
|
-
Cordova(),
|
|
162
|
-
__metadata("design:type", Function),
|
|
163
|
-
__metadata("design:paramtypes", [typeof (_u = typeof JsonArray !== "undefined" && JsonArray) === "function" ? _u : Object]),
|
|
164
|
-
__metadata("design:returntype", typeof (_v = typeof Promise !== "undefined" && Promise) === "function" ? _v : Object)
|
|
165
|
-
], WECapInbox.prototype, "deleteAll", null);
|
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: WECapInbox, decorators: [{
|
|
5
|
+
var WECapInbox = /** @class */ (function (_super) {
|
|
6
|
+
__extends(WECapInbox, _super);
|
|
7
|
+
function WECapInbox() {
|
|
8
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
9
|
+
}
|
|
10
|
+
WECapInbox.prototype.resetNotificationCount = function () { return cordova(this, "resetNotificationCount", {}, arguments); };
|
|
11
|
+
WECapInbox.prototype.getNotificationCount = function (successCallback, errorCallback) { return cordova(this, "getNotificationCount", {}, arguments); };
|
|
12
|
+
WECapInbox.prototype.getNotificationList = function (offset, successCallback, errorCallback) { return cordova(this, "getNotificationList", {}, arguments); };
|
|
13
|
+
WECapInbox.prototype.markRead = function (notificationObject) { return cordova(this, "markRead", {}, arguments); };
|
|
14
|
+
WECapInbox.prototype.markUnread = function (notificationObject) { return cordova(this, "markUnread", {}, arguments); };
|
|
15
|
+
WECapInbox.prototype.trackClick = function (notificationObject) { return cordova(this, "trackClick", {}, arguments); };
|
|
16
|
+
WECapInbox.prototype.trackView = function (notificationObject) { return cordova(this, "trackView", {}, arguments); };
|
|
17
|
+
WECapInbox.prototype.markDelete = function (notificationObject) { return cordova(this, "markDelete", {}, arguments); };
|
|
18
|
+
WECapInbox.prototype.readAll = function (notificationList) { return cordova(this, "readAll", {}, arguments); };
|
|
19
|
+
WECapInbox.prototype.unReadAll = function (notificationList) { return cordova(this, "unReadAll", {}, arguments); };
|
|
20
|
+
WECapInbox.prototype.deleteAll = function (notificationList) { return cordova(this, "deleteAll", {}, arguments); };
|
|
21
|
+
WECapInbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WECapInbox, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
+
WECapInbox.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WECapInbox });
|
|
23
|
+
WECapInbox.pluginName = "WECapInbox";
|
|
24
|
+
WECapInbox.plugin = "we-notificationinbox-cordova";
|
|
25
|
+
WECapInbox.pluginRef = "WENotificationInboxPlugin";
|
|
26
|
+
WECapInbox.repo = "https://github.com/WebEngage/we-ionic-notification-inbox";
|
|
27
|
+
WECapInbox.platforms = ["Android", "iOS"];
|
|
28
|
+
WECapInbox = __decorate([], WECapInbox);
|
|
29
|
+
return WECapInbox;
|
|
30
|
+
}(AwesomeCordovaNativePlugin));
|
|
31
|
+
export { WECapInbox };
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: WECapInbox, decorators: [{
|
|
167
33
|
type: Injectable
|
|
168
34
|
}], propDecorators: { resetNotificationCount: [], getNotificationCount: [], getNotificationList: [], markRead: [], markUnread: [], trackClick: [], trackView: [], markDelete: [], readAll: [], unReadAll: [], deleteAll: [] } });
|
|
169
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvd2UtY2FwLWluYm94L25neC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLHVDQUErQyxNQUFNLCtCQUErQixDQUFDOzs7SUE2QjVELDhCQUEwQjs7OztJQU14RCwyQ0FBc0I7SUFXdEIseUNBQW9CLGFBQUMsZUFBd0MsRUFBRSxhQUFzQztJQVlyRyx3Q0FBbUIsYUFDakIsTUFBeUIsRUFDekIsZUFBOEQsRUFDOUQsYUFBc0M7SUFXeEMsNkJBQVEsYUFBQyxrQkFBOEI7SUFVdkMsK0JBQVUsYUFBQyxrQkFBOEI7SUFVekMsK0JBQVUsYUFBQyxrQkFBOEI7SUFVekMsOEJBQVMsYUFBQyxrQkFBOEI7SUFVeEMsK0JBQVUsYUFBQyxrQkFBOEI7SUFVekMsNEJBQU8sYUFBQyxnQkFBMkI7SUFVbkMsOEJBQVMsYUFBQyxnQkFBMkI7SUFVckMsOEJBQVMsYUFBQyxnQkFBMkI7NEdBakgxQixVQUFVO2dIQUFWLFVBQVU7Ozs7OztJQUFWLFVBQVUsa0JBQVYsVUFBVTtxQkE5QnZCO0VBOEJnQywwQkFBMEI7U0FBN0MsVUFBVTs0RkFBVixVQUFVO2tCQUR0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U8dm9pZD4ge1xuICAgIHJldHVybjtcbiAgfVxuXG4gIC8qKlxuICAgKiBEZWxldGVzIGFsbCBub3RpZmljYXRpb25zLlxuICAgKiBAcGFyYW0ge0pzb25BcnJheX0gbm90aWZpY2F0aW9uTGlzdCAtIEFuIGFycmF5IG9mIG5vdGlmaWNhdGlvbiBpZGVudGlmaWVycyB0byBkZWxldGUuXG4gICAqIEByZXR1cm5zIHtQcm9taXNlPHZvaWQ+fVxuICAgKi9cbiAgQENvcmRvdmEoKVxuICBkZWxldGVBbGwobm90aWZpY2F0aW9uTGlzdDogSnNvbkFycmF5KTogUHJvbWlzZTx2b2lkPiB7XG4gICAgcmV0dXJuO1xuICB9XG59XG5cbmV4cG9ydCB0eXBlIEpzb25WYWx1ZSA9IHN0cmluZyB8IG51bWJlciB8IGJvb2xlYW4gfCBudWxsIHwgSnNvbk9iamVjdCB8IEpzb25BcnJheTtcblxuZXhwb3J0IHR5cGUgTm90aWZpY2F0aW9uUmVzcG9uc2UgPSB7XG4gIGhhc05leHQ6IGJvb2xlYW47XG4gIG1lc3NhZ2VMaXN0OiBKc29uQXJyYXk7XG59O1xuXG5leHBvcnQgdHlwZSBKc29uT2JqZWN0ID0ge1xuICBba2V5OiBzdHJpbmddOiBKc29uVmFsdWU7XG59O1xuXG5leHBvcnQgdHlwZSBKc29uQXJyYXkgPSBKc29uVmFsdWVbXTtcbiJdfQ==
|
package/ngx/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"
|
|
1
|
+
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/we-cap-inbox","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^8.0.2"},"version":"8.0.2"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"
|
|
1
|
+
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/we-cap-inbox","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^8.0.2"},"version":"8.0.2"}
|