@awesome-cordova-plugins/we-cap-inbox 6.16.0 → 7.0.0
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 +5 -8
- package/index.js +171 -22
- package/ngx/bundle.js +162 -27
- package/ngx/index.d.ts +4 -5
- package/ngx/index.js +164 -30
- package/ngx/package.json +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ 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
|
-
*
|
|
7
6
|
* @usage
|
|
8
7
|
* ```typescript
|
|
9
8
|
* import { WECapInbox } from '@awesome-cordova-plugins/we-cap-inbox';
|
|
@@ -17,7 +16,7 @@ import { AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
|
|
|
17
16
|
* .catch((error: string) => console.error(error));
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
|
-
export declare class
|
|
19
|
+
export declare class WECapInbox extends AwesomeCordovaNativePlugin {
|
|
21
20
|
/**
|
|
22
21
|
* Resets the notification count.
|
|
23
22
|
* @returns {Promise<void>}
|
|
@@ -87,14 +86,12 @@ export declare class WECapInboxOriginal extends AwesomeCordovaNativePlugin {
|
|
|
87
86
|
*/
|
|
88
87
|
deleteAll(notificationList: JsonArray): Promise<void>;
|
|
89
88
|
}
|
|
90
|
-
export
|
|
91
|
-
export
|
|
89
|
+
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
90
|
+
export type NotificationResponse = {
|
|
92
91
|
hasNext: boolean;
|
|
93
92
|
messageList: JsonArray;
|
|
94
93
|
};
|
|
95
|
-
export
|
|
94
|
+
export type JsonObject = {
|
|
96
95
|
[key: string]: JsonValue;
|
|
97
96
|
};
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
export declare const WECapInbox: WECapInboxOriginal;
|
|
97
|
+
export type JsonArray = JsonValue[];
|
package/index.js
CHANGED
|
@@ -13,30 +13,179 @@ 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
|
+
};
|
|
16
25
|
import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';
|
|
17
|
-
var
|
|
18
|
-
__extends(
|
|
19
|
-
function
|
|
26
|
+
var WECapInbox = /** @class */ (function (_super) {
|
|
27
|
+
__extends(WECapInbox, _super);
|
|
28
|
+
function WECapInbox() {
|
|
20
29
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
30
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Resets the notification count.
|
|
33
|
+
* @returns {Promise<void>}
|
|
34
|
+
*/
|
|
35
|
+
WECapInbox.prototype.resetNotificationCount = function () {
|
|
36
|
+
return;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves the count of notifications.
|
|
40
|
+
* @param {function} successCallback
|
|
41
|
+
* @param {function} errorCallback
|
|
42
|
+
* @returns {Promise<number>} - The count of notifications.
|
|
43
|
+
*/
|
|
44
|
+
WECapInbox.prototype.getNotificationCount = function (successCallback, errorCallback) {
|
|
45
|
+
return;
|
|
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;
|
|
39
189
|
}(AwesomeCordovaNativePlugin));
|
|
40
|
-
var WECapInbox = new WECapInboxOriginal();
|
|
41
190
|
export { WECapInbox };
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
191
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvd2UtY2FwLWluYm94L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLE9BQU8sdUNBQStDLE1BQU0sK0JBQStCLENBQUM7O0lBNEI1RCw4QkFBMEI7Ozs7SUFDeEQ7OztPQUdHO0lBRUgsMkNBQXNCLEdBQXRCO1FBQ0UsT0FBTztJQUNULENBQUM7SUFFRDs7Ozs7T0FLRztJQUVILHlDQUFvQixHQUFwQixVQUFxQixlQUF3QyxFQUFFLGFBQXNDO1FBQ25HLE9BQU87SUFDVCxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBRUgsd0NBQW1CLEdBQW5CLFVBQ0UsTUFBeUIsRUFDekIsZUFBOEQsRUFDOUQsYUFBc0M7UUFFdEMsT0FBTztJQUNULENBQUM7SUFFRDs7OztPQUlHO0lBRUgsNkJBQVEsR0FBUixVQUFTLGtCQUE4QjtRQUNyQyxPQUFPO0lBQ1QsQ0FBQztJQUVEOzs7O09BSUc7SUFFSCwrQkFBVSxHQUFWLFVBQVcsa0JBQThCO1FBQ3ZDLE9BQU87SUFDVCxDQUFDO0lBRUQ7Ozs7T0FJRztJQUVILCtC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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
|
-
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
27
|
+
class WECapInbox extends core.AwesomeCordovaNativePlugin {
|
|
28
|
+
/**
|
|
29
|
+
* Resets the notification count.
|
|
30
|
+
* @returns {Promise<void>}
|
|
31
|
+
*/
|
|
32
|
+
resetNotificationCount() {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves the count of notifications.
|
|
37
|
+
* @param {function} successCallback
|
|
38
|
+
* @param {function} errorCallback
|
|
39
|
+
* @returns {Promise<number>} - The count of notifications.
|
|
40
|
+
*/
|
|
41
|
+
getNotificationCount(successCallback, errorCallback) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
/**-
|
|
45
|
+
* Retrieves Notification List
|
|
46
|
+
* @param {JsonObject | null} offset - Optional offset for notifications
|
|
47
|
+
* @param {function} successCallback
|
|
48
|
+
* @param {function} errorCallback
|
|
49
|
+
* @returns {Promise<any>}
|
|
50
|
+
*/
|
|
51
|
+
getNotificationList(offset, successCallback, errorCallback) {
|
|
52
|
+
return;
|
|
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: [{
|
|
53
188
|
type: i0.Injectable
|
|
54
189
|
}], propDecorators: { resetNotificationCount: [], getNotificationCount: [], getNotificationList: [], markRead: [], markUnread: [], trackClick: [], trackView: [], markDelete: [], readAll: [], unReadAll: [], deleteAll: [] } });
|
|
55
190
|
|
package/ngx/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ 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
|
-
*
|
|
7
6
|
* @usage
|
|
8
7
|
* ```typescript
|
|
9
8
|
* import { WECapInbox } from '@awesome-cordova-plugins/we-cap-inbox';
|
|
@@ -87,12 +86,12 @@ export declare class WECapInbox extends AwesomeCordovaNativePlugin {
|
|
|
87
86
|
*/
|
|
88
87
|
deleteAll(notificationList: JsonArray): Promise<void>;
|
|
89
88
|
}
|
|
90
|
-
export
|
|
91
|
-
export
|
|
89
|
+
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
90
|
+
export type NotificationResponse = {
|
|
92
91
|
hasNext: boolean;
|
|
93
92
|
messageList: JsonArray;
|
|
94
93
|
};
|
|
95
|
-
export
|
|
94
|
+
export type JsonObject = {
|
|
96
95
|
[key: string]: JsonValue;
|
|
97
96
|
};
|
|
98
|
-
export
|
|
97
|
+
export type JsonArray = JsonValue[];
|
package/ngx/index.js
CHANGED
|
@@ -1,35 +1,169 @@
|
|
|
1
|
-
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
3
|
import { Injectable } from '@angular/core';
|
|
3
4
|
import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
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
|
-
|
|
6
|
+
export class WECapInbox extends AwesomeCordovaNativePlugin {
|
|
7
|
+
/**
|
|
8
|
+
* Resets the notification count.
|
|
9
|
+
* @returns {Promise<void>}
|
|
10
|
+
*/
|
|
11
|
+
resetNotificationCount() {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the count of notifications.
|
|
16
|
+
* @param {function} successCallback
|
|
17
|
+
* @param {function} errorCallback
|
|
18
|
+
* @returns {Promise<number>} - The count of notifications.
|
|
19
|
+
*/
|
|
20
|
+
getNotificationCount(successCallback, errorCallback) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
/**-
|
|
24
|
+
* Retrieves Notification List
|
|
25
|
+
* @param {JsonObject | null} offset - Optional offset for notifications
|
|
26
|
+
* @param {function} successCallback
|
|
27
|
+
* @param {function} errorCallback
|
|
28
|
+
* @returns {Promise<any>}
|
|
29
|
+
*/
|
|
30
|
+
getNotificationList(offset, successCallback, errorCallback) {
|
|
31
|
+
return;
|
|
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: [{
|
|
33
167
|
type: Injectable
|
|
34
168
|
}], propDecorators: { resetNotificationCount: [], getNotificationCount: [], getNotificationList: [], markRead: [], markUnread: [], trackClick: [], trackView: [], markDelete: [], readAll: [], unReadAll: [], deleteAll: [] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
169
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvd2UtY2FwLWluYm94L25neC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyx1Q0FBK0MsTUFBTSwrQkFBK0IsQ0FBQzs7YUE0Qi9FLFVBQVcsU0FBUSwwQkFBMEI7SUFDeEQ7OztPQUdHO0lBRUgsc0JBQXNCO1FBQ3BCLE9BQU87SUFDVCxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFFSCxvQkFBb0IsQ0FBQyxlQUF3QyxFQUFFLGFBQXNDO1FBQ25HLE9B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G4gIH1cbn1cblxuZXhwb3J0IHR5cGUgSnNvblZhbHVlID0gc3RyaW5nIHwgbnVtYmVyIHwgYm9vbGVhbiB8IG51bGwgfCBKc29uT2JqZWN0IHwgSnNvbkFycmF5O1xuXG5leHBvcnQgdHlwZSBOb3RpZmljYXRpb25SZXNwb25zZSA9IHtcbiAgaGFzTmV4dDogYm9vbGVhbjtcbiAgbWVzc2FnZUxpc3Q6IEpzb25BcnJheTtcbn07XG5cbmV4cG9ydCB0eXBlIEpzb25PYmplY3QgPSB7XG4gIFtrZXk6IHN0cmluZ106IEpzb25WYWx1ZTtcbn07XG5cbmV4cG9ydCB0eXBlIEpzb25BcnJheSA9IEpzb25WYWx1ZVtdO1xuIl19
|
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":"Daniel Sogl <me@danielsogl.com> (https://danielsogl.com)","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":"^7.0.0"},"version":"7.0.0"}
|
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":"Daniel Sogl <me@danielsogl.com> (https://danielsogl.com)","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":"^7.0.0"},"version":"7.0.0"}
|