@awesome-cordova-plugins/vibes 7.0.1 → 8.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 +16 -1
- package/index.js +26 -193
- package/ngx/bundle.js +32 -185
- package/ngx/index.d.ts +13 -0
- package/ngx/index.js +34 -186
- package/ngx/package.json +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -55,61 +55,72 @@ export interface InboxMessage {
|
|
|
55
55
|
* .catch((error: any) => console.error('Error fetching inbox messages for this person', error));
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
export declare class
|
|
58
|
+
export declare class VibesOriginal extends AwesomeCordovaNativePlugin {
|
|
59
59
|
/**
|
|
60
60
|
* Register this device with the Vibes platform
|
|
61
|
+
*
|
|
61
62
|
* @returns {Promise<DeviceResponse>}
|
|
62
63
|
*/
|
|
63
64
|
registerDevice(): Promise<DeviceResponse>;
|
|
64
65
|
/**
|
|
65
66
|
* Unregister this device with the Vibes platform
|
|
67
|
+
*
|
|
66
68
|
* @returns {Promise<void>}
|
|
67
69
|
*/
|
|
68
70
|
unregisterDevice(): Promise<void>;
|
|
69
71
|
/**
|
|
70
72
|
* Associate an external ID with the current person.
|
|
73
|
+
*
|
|
71
74
|
* @param {string} externalPersonId
|
|
72
75
|
* @returns {Promise<void>}
|
|
73
76
|
*/
|
|
74
77
|
associatePerson(externalPersonId: string): Promise<void>;
|
|
75
78
|
/**
|
|
76
79
|
* Register this device to receive push notifications
|
|
80
|
+
*
|
|
77
81
|
* @returns {Promise<void>}
|
|
78
82
|
*/
|
|
79
83
|
registerPush(): Promise<void>;
|
|
80
84
|
/**
|
|
81
85
|
* Unregister the device from receiving push notifications
|
|
86
|
+
*
|
|
82
87
|
* @returns {Promise<void>}
|
|
83
88
|
*/
|
|
84
89
|
unregisterPush(): Promise<void>;
|
|
85
90
|
/**
|
|
86
91
|
* Fetches a DeviceInfoResponse with details about the Vibes Device ID and Push Token
|
|
92
|
+
*
|
|
87
93
|
* @returns {Promise<DeviceInfoResponse>}
|
|
88
94
|
*/
|
|
89
95
|
getVibesDeviceInfo(): Promise<DeviceInfoResponse>;
|
|
90
96
|
/**
|
|
91
97
|
* Fetches the PersonResponse associated with this device currently
|
|
98
|
+
*
|
|
92
99
|
* @returns {Promise<PersonResponse>}
|
|
93
100
|
*/
|
|
94
101
|
getPerson(): Promise<PersonResponse>;
|
|
95
102
|
/**
|
|
96
103
|
* Get notified when the user opens a notification
|
|
104
|
+
*
|
|
97
105
|
* @returns {Observable<void>}
|
|
98
106
|
*/
|
|
99
107
|
onNotificationOpened(): Observable<void>;
|
|
100
108
|
/**
|
|
101
109
|
* Fetches an array of inbox messages for the person associated with this device.
|
|
110
|
+
*
|
|
102
111
|
* @returns {Promise<InboxMessage[]>}
|
|
103
112
|
*/
|
|
104
113
|
fetchInboxMessages(): Promise<InboxMessage[]>;
|
|
105
114
|
/**
|
|
106
115
|
* Fetches a single inbox message by it's id.
|
|
116
|
+
*
|
|
107
117
|
* @param {string} message_uid
|
|
108
118
|
* @returns {Promise<InboxMessage>}
|
|
109
119
|
*/
|
|
110
120
|
fetchInboxMessage(message_uid: string): Promise<InboxMessage>;
|
|
111
121
|
/**
|
|
112
122
|
* Marks an inbox message as expired using message_uid and the expiry date supplied. Uses current date if null or invalid date is supplied.
|
|
123
|
+
*
|
|
113
124
|
* @param {string} message_uid
|
|
114
125
|
* @param {string} An ISO-8601 formatted date string.
|
|
115
126
|
* @param date
|
|
@@ -118,14 +129,18 @@ export declare class Vibes extends AwesomeCordovaNativePlugin {
|
|
|
118
129
|
expireInboxMessage(message_uid: string, date: string): Promise<InboxMessage>;
|
|
119
130
|
/**
|
|
120
131
|
* Marks an inbox message as read.
|
|
132
|
+
*
|
|
121
133
|
* @param {string} message_uid
|
|
122
134
|
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with read field updated
|
|
123
135
|
*/
|
|
124
136
|
markInboxMessageAsRead(message_uid: string): Promise<InboxMessage>;
|
|
125
137
|
/**
|
|
126
138
|
* Records an event for when the user opens an inbox message.
|
|
139
|
+
*
|
|
127
140
|
* @param inbox_message_stringified stringified version of the InboxMessage
|
|
128
141
|
* @returns {Promise<void>}
|
|
129
142
|
*/
|
|
130
143
|
onInboxMessageOpen(inbox_message_stringified: string): Promise<void>;
|
|
131
144
|
}
|
|
145
|
+
|
|
146
|
+
export declare const Vibes: VibesOriginal;
|
package/index.js
CHANGED
|
@@ -13,202 +13,35 @@ 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
17
|
import { Observable } from 'rxjs';
|
|
27
|
-
var
|
|
28
|
-
__extends(
|
|
29
|
-
function
|
|
18
|
+
var VibesOriginal = /** @class */ (function (_super) {
|
|
19
|
+
__extends(VibesOriginal, _super);
|
|
20
|
+
function VibesOriginal() {
|
|
30
21
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31
22
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Register this device to receive push notifications
|
|
56
|
-
* @returns {Promise<void>}
|
|
57
|
-
*/
|
|
58
|
-
Vibes.prototype.registerPush = function () {
|
|
59
|
-
return;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Unregister the device from receiving push notifications
|
|
63
|
-
* @returns {Promise<void>}
|
|
64
|
-
*/
|
|
65
|
-
Vibes.prototype.unregisterPush = function () {
|
|
66
|
-
return;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Fetches a DeviceInfoResponse with details about the Vibes Device ID and Push Token
|
|
70
|
-
* @returns {Promise<DeviceInfoResponse>}
|
|
71
|
-
*/
|
|
72
|
-
Vibes.prototype.getVibesDeviceInfo = function () {
|
|
73
|
-
return;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Fetches the PersonResponse associated with this device currently
|
|
77
|
-
* @returns {Promise<PersonResponse>}
|
|
78
|
-
*/
|
|
79
|
-
Vibes.prototype.getPerson = function () {
|
|
80
|
-
return;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Get notified when the user opens a notification
|
|
84
|
-
* @returns {Observable<void>}
|
|
85
|
-
*/
|
|
86
|
-
Vibes.prototype.onNotificationOpened = function () {
|
|
87
|
-
return;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Fetches an array of inbox messages for the person associated with this device.
|
|
91
|
-
* @returns {Promise<InboxMessage[]>}
|
|
92
|
-
*/
|
|
93
|
-
Vibes.prototype.fetchInboxMessages = function () {
|
|
94
|
-
return;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Fetches a single inbox message by it's id.
|
|
98
|
-
* @param {string} message_uid
|
|
99
|
-
* @returns {Promise<InboxMessage>}
|
|
100
|
-
*/
|
|
101
|
-
Vibes.prototype.fetchInboxMessage = function (message_uid) {
|
|
102
|
-
return;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Marks an inbox message as expired using message_uid and the expiry date supplied. Uses current date if null or invalid date is supplied.
|
|
106
|
-
* @param {string} message_uid
|
|
107
|
-
* @param {string} An ISO-8601 formatted date string.
|
|
108
|
-
* @param date
|
|
109
|
-
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with expires_at date updated
|
|
110
|
-
*/
|
|
111
|
-
Vibes.prototype.expireInboxMessage = function (message_uid, date) {
|
|
112
|
-
return;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Marks an inbox message as read.
|
|
116
|
-
* @param {string} message_uid
|
|
117
|
-
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with read field updated
|
|
118
|
-
*/
|
|
119
|
-
Vibes.prototype.markInboxMessageAsRead = function (message_uid) {
|
|
120
|
-
return;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Records an event for when the user opens an inbox message.
|
|
124
|
-
* @param inbox_message_stringified stringified version of the InboxMessage
|
|
125
|
-
* @returns {Promise<void>}
|
|
126
|
-
*/
|
|
127
|
-
Vibes.prototype.onInboxMessageOpen = function (inbox_message_stringified) {
|
|
128
|
-
return;
|
|
129
|
-
};
|
|
130
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
131
|
-
__decorate([
|
|
132
|
-
Cordova(),
|
|
133
|
-
__metadata("design:type", Function),
|
|
134
|
-
__metadata("design:paramtypes", []),
|
|
135
|
-
__metadata("design:returntype", typeof (_a = typeof Promise !== "undefined" && Promise) === "function" ? _a : Object)
|
|
136
|
-
], Vibes.prototype, "registerDevice", null);
|
|
137
|
-
__decorate([
|
|
138
|
-
Cordova(),
|
|
139
|
-
__metadata("design:type", Function),
|
|
140
|
-
__metadata("design:paramtypes", []),
|
|
141
|
-
__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
142
|
-
], Vibes.prototype, "unregisterDevice", null);
|
|
143
|
-
__decorate([
|
|
144
|
-
Cordova(),
|
|
145
|
-
__metadata("design:type", Function),
|
|
146
|
-
__metadata("design:paramtypes", [String]),
|
|
147
|
-
__metadata("design:returntype", typeof (_c = typeof Promise !== "undefined" && Promise) === "function" ? _c : Object)
|
|
148
|
-
], Vibes.prototype, "associatePerson", null);
|
|
149
|
-
__decorate([
|
|
150
|
-
Cordova(),
|
|
151
|
-
__metadata("design:type", Function),
|
|
152
|
-
__metadata("design:paramtypes", []),
|
|
153
|
-
__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
154
|
-
], Vibes.prototype, "registerPush", null);
|
|
155
|
-
__decorate([
|
|
156
|
-
Cordova(),
|
|
157
|
-
__metadata("design:type", Function),
|
|
158
|
-
__metadata("design:paramtypes", []),
|
|
159
|
-
__metadata("design:returntype", typeof (_e = typeof Promise !== "undefined" && Promise) === "function" ? _e : Object)
|
|
160
|
-
], Vibes.prototype, "unregisterPush", null);
|
|
161
|
-
__decorate([
|
|
162
|
-
Cordova(),
|
|
163
|
-
__metadata("design:type", Function),
|
|
164
|
-
__metadata("design:paramtypes", []),
|
|
165
|
-
__metadata("design:returntype", typeof (_f = typeof Promise !== "undefined" && Promise) === "function" ? _f : Object)
|
|
166
|
-
], Vibes.prototype, "getVibesDeviceInfo", null);
|
|
167
|
-
__decorate([
|
|
168
|
-
Cordova(),
|
|
169
|
-
__metadata("design:type", Function),
|
|
170
|
-
__metadata("design:paramtypes", []),
|
|
171
|
-
__metadata("design:returntype", typeof (_g = typeof Promise !== "undefined" && Promise) === "function" ? _g : Object)
|
|
172
|
-
], Vibes.prototype, "getPerson", null);
|
|
173
|
-
__decorate([
|
|
174
|
-
Cordova({
|
|
175
|
-
observable: true,
|
|
176
|
-
}),
|
|
177
|
-
__metadata("design:type", Function),
|
|
178
|
-
__metadata("design:paramtypes", []),
|
|
179
|
-
__metadata("design:returntype", typeof (_h = typeof Observable !== "undefined" && Observable) === "function" ? _h : Object)
|
|
180
|
-
], Vibes.prototype, "onNotificationOpened", null);
|
|
181
|
-
__decorate([
|
|
182
|
-
Cordova(),
|
|
183
|
-
__metadata("design:type", Function),
|
|
184
|
-
__metadata("design:paramtypes", []),
|
|
185
|
-
__metadata("design:returntype", typeof (_j = typeof Promise !== "undefined" && Promise) === "function" ? _j : Object)
|
|
186
|
-
], Vibes.prototype, "fetchInboxMessages", null);
|
|
187
|
-
__decorate([
|
|
188
|
-
Cordova(),
|
|
189
|
-
__metadata("design:type", Function),
|
|
190
|
-
__metadata("design:paramtypes", [String]),
|
|
191
|
-
__metadata("design:returntype", typeof (_k = typeof Promise !== "undefined" && Promise) === "function" ? _k : Object)
|
|
192
|
-
], Vibes.prototype, "fetchInboxMessage", null);
|
|
193
|
-
__decorate([
|
|
194
|
-
Cordova(),
|
|
195
|
-
__metadata("design:type", Function),
|
|
196
|
-
__metadata("design:paramtypes", [String, String]),
|
|
197
|
-
__metadata("design:returntype", typeof (_l = typeof Promise !== "undefined" && Promise) === "function" ? _l : Object)
|
|
198
|
-
], Vibes.prototype, "expireInboxMessage", null);
|
|
199
|
-
__decorate([
|
|
200
|
-
Cordova(),
|
|
201
|
-
__metadata("design:type", Function),
|
|
202
|
-
__metadata("design:paramtypes", [String]),
|
|
203
|
-
__metadata("design:returntype", typeof (_m = typeof Promise !== "undefined" && Promise) === "function" ? _m : Object)
|
|
204
|
-
], Vibes.prototype, "markInboxMessageAsRead", null);
|
|
205
|
-
__decorate([
|
|
206
|
-
Cordova(),
|
|
207
|
-
__metadata("design:type", Function),
|
|
208
|
-
__metadata("design:paramtypes", [String]),
|
|
209
|
-
__metadata("design:returntype", typeof (_o = typeof Promise !== "undefined" && Promise) === "function" ? _o : Object)
|
|
210
|
-
], Vibes.prototype, "onInboxMessageOpen", null);
|
|
211
|
-
return Vibes;
|
|
23
|
+
VibesOriginal.prototype.registerDevice = function () { return cordova(this, "registerDevice", {}, arguments); };
|
|
24
|
+
VibesOriginal.prototype.unregisterDevice = function () { return cordova(this, "unregisterDevice", {}, arguments); };
|
|
25
|
+
VibesOriginal.prototype.associatePerson = function (externalPersonId) { return cordova(this, "associatePerson", {}, arguments); };
|
|
26
|
+
VibesOriginal.prototype.registerPush = function () { return cordova(this, "registerPush", {}, arguments); };
|
|
27
|
+
VibesOriginal.prototype.unregisterPush = function () { return cordova(this, "unregisterPush", {}, arguments); };
|
|
28
|
+
VibesOriginal.prototype.getVibesDeviceInfo = function () { return cordova(this, "getVibesDeviceInfo", {}, arguments); };
|
|
29
|
+
VibesOriginal.prototype.getPerson = function () { return cordova(this, "getPerson", {}, arguments); };
|
|
30
|
+
VibesOriginal.prototype.onNotificationOpened = function () { return cordova(this, "onNotificationOpened", { "observable": true }, arguments); };
|
|
31
|
+
VibesOriginal.prototype.fetchInboxMessages = function () { return cordova(this, "fetchInboxMessages", {}, arguments); };
|
|
32
|
+
VibesOriginal.prototype.fetchInboxMessage = function (message_uid) { return cordova(this, "fetchInboxMessage", {}, arguments); };
|
|
33
|
+
VibesOriginal.prototype.expireInboxMessage = function (message_uid, date) { return cordova(this, "expireInboxMessage", {}, arguments); };
|
|
34
|
+
VibesOriginal.prototype.markInboxMessageAsRead = function (message_uid) { return cordova(this, "markInboxMessageAsRead", {}, arguments); };
|
|
35
|
+
VibesOriginal.prototype.onInboxMessageOpen = function (inbox_message_stringified) { return cordova(this, "onInboxMessageOpen", {}, arguments); };
|
|
36
|
+
VibesOriginal.pluginName = "Vibes";
|
|
37
|
+
VibesOriginal.plugin = "vibes-cordova";
|
|
38
|
+
VibesOriginal.pluginRef = "Vibes";
|
|
39
|
+
VibesOriginal.repo = "https://github.com/vibes/vibes-cordova.git";
|
|
40
|
+
VibesOriginal.install = "ionic cordova plugin add vibes-cordova --variable VIBES_APP_ID=MY_APP_ID --variable VIBES_API_URL=MY_ENVIRONMENT_URL";
|
|
41
|
+
VibesOriginal.installVariables = ["VIBES_APP_ID", "VIBES_API_URL"];
|
|
42
|
+
VibesOriginal.platforms = ["Android", "iOS"];
|
|
43
|
+
return VibesOriginal;
|
|
212
44
|
}(AwesomeCordovaNativePlugin));
|
|
45
|
+
var Vibes = new VibesOriginal();
|
|
213
46
|
export { Vibes };
|
|
214
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvdmliZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EsT0FBTyx1Q0FBK0MsTUFBTSwrQkFBK0IsQ0FBQztBQUM1RixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDOztJQXVFUCx5QkFBMEI7Ozs7SUFPbkQsOEJBQWM7SUFVZCxnQ0FBZ0I7SUFXaEIsK0JBQWUsYUFBQyxnQkFBd0I7SUFVeEMsNEJBQVk7SUFVWiw4QkFBYztJQVNkLGtDQUFrQjtJQVVsQix5QkFBUztJQVlULG9DQUFvQjtJQVVwQixrQ0FBa0I7SUFXbEIsaUNBQWlCLGFBQUMsV0FBbUI7SUFhckMsa0NBQWtCLGFBQUMsV0FBbUIsRUFBRSxJQUFZO0lBV3BELHNDQUFzQixhQUFDLFdBQW1CO0lBVzFDLGtDQUFrQixhQUFDLHlCQUFpQzs7Ozs7Ozs7Z0JBaE50RDtFQXlFMkIsMEJBQTBCO1NBQXhDLEtBQUsiLCJz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AgQENvcmRvdmEoKVxuICBleHBpcmVJbmJveE1lc3NhZ2UobWVzc2FnZV91aWQ6IHN0cmluZywgZGF0ZTogc3RyaW5nKTogUHJvbWlzZTxJbmJveE1lc3NhZ2U+IHtcbiAgICByZXR1cm47XG4gIH1cblxuICAvKipcbiAgICogTWFya3MgYW4gaW5ib3ggbWVzc2FnZSBhcyByZWFkLlxuICAgKlxuICAgKiBAcGFyYW0ge3N0cmluZ30gbWVzc2FnZV91aWRcbiAgICogQHJldHVybnMge1Byb21pc2U8SW5ib3hNZXNzYWdlPn0gYW4gdXBkYXRlZCB2ZXJzaW9uIG9mIHRoZSBJbmJveE1lc3NhZ2Ugd2l0aCByZWFkIGZpZWxkIHVwZGF0ZWRcbiAgICovXG4gIEBDb3Jkb3ZhKClcbiAgbWFya0luYm94TWVzc2FnZUFzUmVhZChtZXNzYWdlX3VpZDogc3RyaW5nKTogUHJvbWlzZTxJbmJveE1lc3NhZ2U+IHtcbiAgICByZXR1cm47XG4gIH1cblxuICAvKipcbiAgICogUmVjb3JkcyBhbiBldmVudCBmb3Igd2hlbiB0aGUgdXNlciBvcGVucyBhbiBpbmJveCBtZXNzYWdlLlxuICAgKlxuICAgKiBAcGFyYW0gaW5ib3hfbWVzc2FnZV9zdHJpbmdpZmllZCBzdHJpbmdpZmllZCB2ZXJzaW9uIG9mIHRoZSBJbmJveE1lc3NhZ2VcbiAgICogQHJldHVybnMge1Byb21pc2U8dm9pZD59XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIG9uSW5ib3hNZXNzYWdlT3BlbihpbmJveF9tZXNzYWdlX3N0cmluZ2lmaWVkOiBzdHJpbmcpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICByZXR1cm47XG4gIH1cbn1cbiJdfQ==
|
package/ngx/bundle.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var i0 = require('@angular/core');
|
|
5
5
|
var core = require('@awesome-cordova-plugins/core');
|
|
6
|
-
|
|
6
|
+
require('rxjs');
|
|
7
7
|
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
var n = Object.create(null);
|
|
@@ -24,190 +24,37 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
26
26
|
|
|
27
|
-
var
|
|
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
|
-
* Unregister the device from receiving push notifications
|
|
60
|
-
* @returns {Promise<void>}
|
|
61
|
-
*/
|
|
62
|
-
unregisterPush() {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Fetches a DeviceInfoResponse with details about the Vibes Device ID and Push Token
|
|
67
|
-
* @returns {Promise<DeviceInfoResponse>}
|
|
68
|
-
*/
|
|
69
|
-
getVibesDeviceInfo() {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Fetches the PersonResponse associated with this device currently
|
|
74
|
-
* @returns {Promise<PersonResponse>}
|
|
75
|
-
*/
|
|
76
|
-
getPerson() {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get notified when the user opens a notification
|
|
81
|
-
* @returns {Observable<void>}
|
|
82
|
-
*/
|
|
83
|
-
onNotificationOpened() {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Fetches an array of inbox messages for the person associated with this device.
|
|
88
|
-
* @returns {Promise<InboxMessage[]>}
|
|
89
|
-
*/
|
|
90
|
-
fetchInboxMessages() {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Fetches a single inbox message by it's id.
|
|
95
|
-
* @param {string} message_uid
|
|
96
|
-
* @returns {Promise<InboxMessage>}
|
|
97
|
-
*/
|
|
98
|
-
fetchInboxMessage(message_uid) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Marks an inbox message as expired using message_uid and the expiry date supplied. Uses current date if null or invalid date is supplied.
|
|
103
|
-
* @param {string} message_uid
|
|
104
|
-
* @param {string} An ISO-8601 formatted date string.
|
|
105
|
-
* @param date
|
|
106
|
-
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with expires_at date updated
|
|
107
|
-
*/
|
|
108
|
-
expireInboxMessage(message_uid, date) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Marks an inbox message as read.
|
|
113
|
-
* @param {string} message_uid
|
|
114
|
-
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with read field updated
|
|
115
|
-
*/
|
|
116
|
-
markInboxMessageAsRead(message_uid) {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Records an event for when the user opens an inbox message.
|
|
121
|
-
* @param inbox_message_stringified stringified version of the InboxMessage
|
|
122
|
-
* @returns {Promise<void>}
|
|
123
|
-
*/
|
|
124
|
-
onInboxMessageOpen(inbox_message_stringified) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
Vibes.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: Vibes, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
129
|
-
Vibes.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: Vibes });
|
|
130
|
-
tslib.__decorate([
|
|
131
|
-
Cordova(),
|
|
132
|
-
tslib.__metadata("design:type", Function),
|
|
133
|
-
tslib.__metadata("design:paramtypes", []),
|
|
134
|
-
tslib.__metadata("design:returntype", typeof (_a = typeof Promise !== "undefined" && Promise) === "function" ? _a : Object)
|
|
135
|
-
], Vibes.prototype, "registerDevice", null);
|
|
136
|
-
tslib.__decorate([
|
|
137
|
-
Cordova(),
|
|
138
|
-
tslib.__metadata("design:type", Function),
|
|
139
|
-
tslib.__metadata("design:paramtypes", []),
|
|
140
|
-
tslib.__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
141
|
-
], Vibes.prototype, "unregisterDevice", null);
|
|
142
|
-
tslib.__decorate([
|
|
143
|
-
Cordova(),
|
|
144
|
-
tslib.__metadata("design:type", Function),
|
|
145
|
-
tslib.__metadata("design:paramtypes", [String]),
|
|
146
|
-
tslib.__metadata("design:returntype", typeof (_c = typeof Promise !== "undefined" && Promise) === "function" ? _c : Object)
|
|
147
|
-
], Vibes.prototype, "associatePerson", null);
|
|
148
|
-
tslib.__decorate([
|
|
149
|
-
Cordova(),
|
|
150
|
-
tslib.__metadata("design:type", Function),
|
|
151
|
-
tslib.__metadata("design:paramtypes", []),
|
|
152
|
-
tslib.__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
153
|
-
], Vibes.prototype, "registerPush", null);
|
|
154
|
-
tslib.__decorate([
|
|
155
|
-
Cordova(),
|
|
156
|
-
tslib.__metadata("design:type", Function),
|
|
157
|
-
tslib.__metadata("design:paramtypes", []),
|
|
158
|
-
tslib.__metadata("design:returntype", typeof (_e = typeof Promise !== "undefined" && Promise) === "function" ? _e : Object)
|
|
159
|
-
], Vibes.prototype, "unregisterPush", null);
|
|
160
|
-
tslib.__decorate([
|
|
161
|
-
Cordova(),
|
|
162
|
-
tslib.__metadata("design:type", Function),
|
|
163
|
-
tslib.__metadata("design:paramtypes", []),
|
|
164
|
-
tslib.__metadata("design:returntype", typeof (_f = typeof Promise !== "undefined" && Promise) === "function" ? _f : Object)
|
|
165
|
-
], Vibes.prototype, "getVibesDeviceInfo", null);
|
|
166
|
-
tslib.__decorate([
|
|
167
|
-
Cordova(),
|
|
168
|
-
tslib.__metadata("design:type", Function),
|
|
169
|
-
tslib.__metadata("design:paramtypes", []),
|
|
170
|
-
tslib.__metadata("design:returntype", typeof (_g = typeof Promise !== "undefined" && Promise) === "function" ? _g : Object)
|
|
171
|
-
], Vibes.prototype, "getPerson", null);
|
|
172
|
-
tslib.__decorate([
|
|
173
|
-
Cordova({
|
|
174
|
-
observable: true,
|
|
175
|
-
}),
|
|
176
|
-
tslib.__metadata("design:type", Function),
|
|
177
|
-
tslib.__metadata("design:paramtypes", []),
|
|
178
|
-
tslib.__metadata("design:returntype", typeof (_h = typeof rxjs.Observable !== "undefined" && rxjs.Observable) === "function" ? _h : Object)
|
|
179
|
-
], Vibes.prototype, "onNotificationOpened", null);
|
|
180
|
-
tslib.__decorate([
|
|
181
|
-
Cordova(),
|
|
182
|
-
tslib.__metadata("design:type", Function),
|
|
183
|
-
tslib.__metadata("design:paramtypes", []),
|
|
184
|
-
tslib.__metadata("design:returntype", typeof (_j = typeof Promise !== "undefined" && Promise) === "function" ? _j : Object)
|
|
185
|
-
], Vibes.prototype, "fetchInboxMessages", null);
|
|
186
|
-
tslib.__decorate([
|
|
187
|
-
Cordova(),
|
|
188
|
-
tslib.__metadata("design:type", Function),
|
|
189
|
-
tslib.__metadata("design:paramtypes", [String]),
|
|
190
|
-
tslib.__metadata("design:returntype", typeof (_k = typeof Promise !== "undefined" && Promise) === "function" ? _k : Object)
|
|
191
|
-
], Vibes.prototype, "fetchInboxMessage", null);
|
|
192
|
-
tslib.__decorate([
|
|
193
|
-
Cordova(),
|
|
194
|
-
tslib.__metadata("design:type", Function),
|
|
195
|
-
tslib.__metadata("design:paramtypes", [String, String]),
|
|
196
|
-
tslib.__metadata("design:returntype", typeof (_l = typeof Promise !== "undefined" && Promise) === "function" ? _l : Object)
|
|
197
|
-
], Vibes.prototype, "expireInboxMessage", null);
|
|
198
|
-
tslib.__decorate([
|
|
199
|
-
Cordova(),
|
|
200
|
-
tslib.__metadata("design:type", Function),
|
|
201
|
-
tslib.__metadata("design:paramtypes", [String]),
|
|
202
|
-
tslib.__metadata("design:returntype", typeof (_m = typeof Promise !== "undefined" && Promise) === "function" ? _m : Object)
|
|
203
|
-
], Vibes.prototype, "markInboxMessageAsRead", null);
|
|
204
|
-
tslib.__decorate([
|
|
205
|
-
Cordova(),
|
|
206
|
-
tslib.__metadata("design:type", Function),
|
|
207
|
-
tslib.__metadata("design:paramtypes", [String]),
|
|
208
|
-
tslib.__metadata("design:returntype", typeof (_o = typeof Promise !== "undefined" && Promise) === "function" ? _o : Object)
|
|
209
|
-
], Vibes.prototype, "onInboxMessageOpen", null);
|
|
210
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: Vibes, decorators: [{
|
|
27
|
+
var Vibes = /** @class */ (function (_super) {
|
|
28
|
+
tslib.__extends(Vibes, _super);
|
|
29
|
+
function Vibes() {
|
|
30
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31
|
+
}
|
|
32
|
+
Vibes.prototype.registerDevice = function () { return core.cordova(this, "registerDevice", {}, arguments); };
|
|
33
|
+
Vibes.prototype.unregisterDevice = function () { return core.cordova(this, "unregisterDevice", {}, arguments); };
|
|
34
|
+
Vibes.prototype.associatePerson = function (externalPersonId) { return core.cordova(this, "associatePerson", {}, arguments); };
|
|
35
|
+
Vibes.prototype.registerPush = function () { return core.cordova(this, "registerPush", {}, arguments); };
|
|
36
|
+
Vibes.prototype.unregisterPush = function () { return core.cordova(this, "unregisterPush", {}, arguments); };
|
|
37
|
+
Vibes.prototype.getVibesDeviceInfo = function () { return core.cordova(this, "getVibesDeviceInfo", {}, arguments); };
|
|
38
|
+
Vibes.prototype.getPerson = function () { return core.cordova(this, "getPerson", {}, arguments); };
|
|
39
|
+
Vibes.prototype.onNotificationOpened = function () { return core.cordova(this, "onNotificationOpened", { "observable": true }, arguments); };
|
|
40
|
+
Vibes.prototype.fetchInboxMessages = function () { return core.cordova(this, "fetchInboxMessages", {}, arguments); };
|
|
41
|
+
Vibes.prototype.fetchInboxMessage = function (message_uid) { return core.cordova(this, "fetchInboxMessage", {}, arguments); };
|
|
42
|
+
Vibes.prototype.expireInboxMessage = function (message_uid, date) { return core.cordova(this, "expireInboxMessage", {}, arguments); };
|
|
43
|
+
Vibes.prototype.markInboxMessageAsRead = function (message_uid) { return core.cordova(this, "markInboxMessageAsRead", {}, arguments); };
|
|
44
|
+
Vibes.prototype.onInboxMessageOpen = function (inbox_message_stringified) { return core.cordova(this, "onInboxMessageOpen", {}, arguments); };
|
|
45
|
+
Vibes.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Vibes, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
46
|
+
Vibes.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Vibes });
|
|
47
|
+
Vibes.pluginName = "Vibes";
|
|
48
|
+
Vibes.plugin = "vibes-cordova";
|
|
49
|
+
Vibes.pluginRef = "Vibes";
|
|
50
|
+
Vibes.repo = "https://github.com/vibes/vibes-cordova.git";
|
|
51
|
+
Vibes.install = "ionic cordova plugin add vibes-cordova --variable VIBES_APP_ID=MY_APP_ID --variable VIBES_API_URL=MY_ENVIRONMENT_URL";
|
|
52
|
+
Vibes.installVariables = ["VIBES_APP_ID", "VIBES_API_URL"];
|
|
53
|
+
Vibes.platforms = ["Android", "iOS"];
|
|
54
|
+
Vibes = tslib.__decorate([], Vibes);
|
|
55
|
+
return Vibes;
|
|
56
|
+
}(core.AwesomeCordovaNativePlugin));
|
|
57
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Vibes, decorators: [{
|
|
211
58
|
type: i0.Injectable
|
|
212
59
|
}], propDecorators: { registerDevice: [], unregisterDevice: [], associatePerson: [], registerPush: [], unregisterPush: [], getVibesDeviceInfo: [], getPerson: [], onNotificationOpened: [], fetchInboxMessages: [], fetchInboxMessage: [], expireInboxMessage: [], markInboxMessageAsRead: [], onInboxMessageOpen: [] } });
|
|
213
60
|
|
package/ngx/index.d.ts
CHANGED
|
@@ -58,58 +58,69 @@ export interface InboxMessage {
|
|
|
58
58
|
export declare class Vibes extends AwesomeCordovaNativePlugin {
|
|
59
59
|
/**
|
|
60
60
|
* Register this device with the Vibes platform
|
|
61
|
+
*
|
|
61
62
|
* @returns {Promise<DeviceResponse>}
|
|
62
63
|
*/
|
|
63
64
|
registerDevice(): Promise<DeviceResponse>;
|
|
64
65
|
/**
|
|
65
66
|
* Unregister this device with the Vibes platform
|
|
67
|
+
*
|
|
66
68
|
* @returns {Promise<void>}
|
|
67
69
|
*/
|
|
68
70
|
unregisterDevice(): Promise<void>;
|
|
69
71
|
/**
|
|
70
72
|
* Associate an external ID with the current person.
|
|
73
|
+
*
|
|
71
74
|
* @param {string} externalPersonId
|
|
72
75
|
* @returns {Promise<void>}
|
|
73
76
|
*/
|
|
74
77
|
associatePerson(externalPersonId: string): Promise<void>;
|
|
75
78
|
/**
|
|
76
79
|
* Register this device to receive push notifications
|
|
80
|
+
*
|
|
77
81
|
* @returns {Promise<void>}
|
|
78
82
|
*/
|
|
79
83
|
registerPush(): Promise<void>;
|
|
80
84
|
/**
|
|
81
85
|
* Unregister the device from receiving push notifications
|
|
86
|
+
*
|
|
82
87
|
* @returns {Promise<void>}
|
|
83
88
|
*/
|
|
84
89
|
unregisterPush(): Promise<void>;
|
|
85
90
|
/**
|
|
86
91
|
* Fetches a DeviceInfoResponse with details about the Vibes Device ID and Push Token
|
|
92
|
+
*
|
|
87
93
|
* @returns {Promise<DeviceInfoResponse>}
|
|
88
94
|
*/
|
|
89
95
|
getVibesDeviceInfo(): Promise<DeviceInfoResponse>;
|
|
90
96
|
/**
|
|
91
97
|
* Fetches the PersonResponse associated with this device currently
|
|
98
|
+
*
|
|
92
99
|
* @returns {Promise<PersonResponse>}
|
|
93
100
|
*/
|
|
94
101
|
getPerson(): Promise<PersonResponse>;
|
|
95
102
|
/**
|
|
96
103
|
* Get notified when the user opens a notification
|
|
104
|
+
*
|
|
97
105
|
* @returns {Observable<void>}
|
|
98
106
|
*/
|
|
99
107
|
onNotificationOpened(): Observable<void>;
|
|
100
108
|
/**
|
|
101
109
|
* Fetches an array of inbox messages for the person associated with this device.
|
|
110
|
+
*
|
|
102
111
|
* @returns {Promise<InboxMessage[]>}
|
|
103
112
|
*/
|
|
104
113
|
fetchInboxMessages(): Promise<InboxMessage[]>;
|
|
105
114
|
/**
|
|
106
115
|
* Fetches a single inbox message by it's id.
|
|
116
|
+
*
|
|
107
117
|
* @param {string} message_uid
|
|
108
118
|
* @returns {Promise<InboxMessage>}
|
|
109
119
|
*/
|
|
110
120
|
fetchInboxMessage(message_uid: string): Promise<InboxMessage>;
|
|
111
121
|
/**
|
|
112
122
|
* Marks an inbox message as expired using message_uid and the expiry date supplied. Uses current date if null or invalid date is supplied.
|
|
123
|
+
*
|
|
113
124
|
* @param {string} message_uid
|
|
114
125
|
* @param {string} An ISO-8601 formatted date string.
|
|
115
126
|
* @param date
|
|
@@ -118,12 +129,14 @@ export declare class Vibes extends AwesomeCordovaNativePlugin {
|
|
|
118
129
|
expireInboxMessage(message_uid: string, date: string): Promise<InboxMessage>;
|
|
119
130
|
/**
|
|
120
131
|
* Marks an inbox message as read.
|
|
132
|
+
*
|
|
121
133
|
* @param {string} message_uid
|
|
122
134
|
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with read field updated
|
|
123
135
|
*/
|
|
124
136
|
markInboxMessageAsRead(message_uid: string): Promise<InboxMessage>;
|
|
125
137
|
/**
|
|
126
138
|
* Records an event for when the user opens an inbox message.
|
|
139
|
+
*
|
|
127
140
|
* @param inbox_message_stringified stringified version of the InboxMessage
|
|
128
141
|
* @returns {Promise<void>}
|
|
129
142
|
*/
|
package/ngx/index.js
CHANGED
|
@@ -1,192 +1,40 @@
|
|
|
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 { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
registerDevice() {
|
|
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
|
-
* @returns {Promise<void>}
|
|
40
|
-
*/
|
|
41
|
-
unregisterPush() {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Fetches a DeviceInfoResponse with details about the Vibes Device ID and Push Token
|
|
46
|
-
* @returns {Promise<DeviceInfoResponse>}
|
|
47
|
-
*/
|
|
48
|
-
getVibesDeviceInfo() {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Fetches the PersonResponse associated with this device currently
|
|
53
|
-
* @returns {Promise<PersonResponse>}
|
|
54
|
-
*/
|
|
55
|
-
getPerson() {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Get notified when the user opens a notification
|
|
60
|
-
* @returns {Observable<void>}
|
|
61
|
-
*/
|
|
62
|
-
onNotificationOpened() {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Fetches an array of inbox messages for the person associated with this device.
|
|
67
|
-
* @returns {Promise<InboxMessage[]>}
|
|
68
|
-
*/
|
|
69
|
-
fetchInboxMessages() {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Fetches a single inbox message by it's id.
|
|
74
|
-
* @param {string} message_uid
|
|
75
|
-
* @returns {Promise<InboxMessage>}
|
|
76
|
-
*/
|
|
77
|
-
fetchInboxMessage(message_uid) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Marks an inbox message as expired using message_uid and the expiry date supplied. Uses current date if null or invalid date is supplied.
|
|
82
|
-
* @param {string} message_uid
|
|
83
|
-
* @param {string} An ISO-8601 formatted date string.
|
|
84
|
-
* @param date
|
|
85
|
-
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with expires_at date updated
|
|
86
|
-
*/
|
|
87
|
-
expireInboxMessage(message_uid, date) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Marks an inbox message as read.
|
|
92
|
-
* @param {string} message_uid
|
|
93
|
-
* @returns {Promise<InboxMessage>} an updated version of the InboxMessage with read field updated
|
|
94
|
-
*/
|
|
95
|
-
markInboxMessageAsRead(message_uid) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Records an event for when the user opens an inbox message.
|
|
100
|
-
* @param inbox_message_stringified stringified version of the InboxMessage
|
|
101
|
-
* @returns {Promise<void>}
|
|
102
|
-
*/
|
|
103
|
-
onInboxMessageOpen(inbox_message_stringified) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
Vibes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Vibes, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
108
|
-
Vibes.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Vibes });
|
|
109
|
-
__decorate([
|
|
110
|
-
Cordova(),
|
|
111
|
-
__metadata("design:type", Function),
|
|
112
|
-
__metadata("design:paramtypes", []),
|
|
113
|
-
__metadata("design:returntype", typeof (_a = typeof Promise !== "undefined" && Promise) === "function" ? _a : Object)
|
|
114
|
-
], Vibes.prototype, "registerDevice", null);
|
|
115
|
-
__decorate([
|
|
116
|
-
Cordova(),
|
|
117
|
-
__metadata("design:type", Function),
|
|
118
|
-
__metadata("design:paramtypes", []),
|
|
119
|
-
__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
120
|
-
], Vibes.prototype, "unregisterDevice", null);
|
|
121
|
-
__decorate([
|
|
122
|
-
Cordova(),
|
|
123
|
-
__metadata("design:type", Function),
|
|
124
|
-
__metadata("design:paramtypes", [String]),
|
|
125
|
-
__metadata("design:returntype", typeof (_c = typeof Promise !== "undefined" && Promise) === "function" ? _c : Object)
|
|
126
|
-
], Vibes.prototype, "associatePerson", null);
|
|
127
|
-
__decorate([
|
|
128
|
-
Cordova(),
|
|
129
|
-
__metadata("design:type", Function),
|
|
130
|
-
__metadata("design:paramtypes", []),
|
|
131
|
-
__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
132
|
-
], Vibes.prototype, "registerPush", null);
|
|
133
|
-
__decorate([
|
|
134
|
-
Cordova(),
|
|
135
|
-
__metadata("design:type", Function),
|
|
136
|
-
__metadata("design:paramtypes", []),
|
|
137
|
-
__metadata("design:returntype", typeof (_e = typeof Promise !== "undefined" && Promise) === "function" ? _e : Object)
|
|
138
|
-
], Vibes.prototype, "unregisterPush", null);
|
|
139
|
-
__decorate([
|
|
140
|
-
Cordova(),
|
|
141
|
-
__metadata("design:type", Function),
|
|
142
|
-
__metadata("design:paramtypes", []),
|
|
143
|
-
__metadata("design:returntype", typeof (_f = typeof Promise !== "undefined" && Promise) === "function" ? _f : Object)
|
|
144
|
-
], Vibes.prototype, "getVibesDeviceInfo", null);
|
|
145
|
-
__decorate([
|
|
146
|
-
Cordova(),
|
|
147
|
-
__metadata("design:type", Function),
|
|
148
|
-
__metadata("design:paramtypes", []),
|
|
149
|
-
__metadata("design:returntype", typeof (_g = typeof Promise !== "undefined" && Promise) === "function" ? _g : Object)
|
|
150
|
-
], Vibes.prototype, "getPerson", null);
|
|
151
|
-
__decorate([
|
|
152
|
-
Cordova({
|
|
153
|
-
observable: true,
|
|
154
|
-
}),
|
|
155
|
-
__metadata("design:type", Function),
|
|
156
|
-
__metadata("design:paramtypes", []),
|
|
157
|
-
__metadata("design:returntype", typeof (_h = typeof Observable !== "undefined" && Observable) === "function" ? _h : Object)
|
|
158
|
-
], Vibes.prototype, "onNotificationOpened", null);
|
|
159
|
-
__decorate([
|
|
160
|
-
Cordova(),
|
|
161
|
-
__metadata("design:type", Function),
|
|
162
|
-
__metadata("design:paramtypes", []),
|
|
163
|
-
__metadata("design:returntype", typeof (_j = typeof Promise !== "undefined" && Promise) === "function" ? _j : Object)
|
|
164
|
-
], Vibes.prototype, "fetchInboxMessages", null);
|
|
165
|
-
__decorate([
|
|
166
|
-
Cordova(),
|
|
167
|
-
__metadata("design:type", Function),
|
|
168
|
-
__metadata("design:paramtypes", [String]),
|
|
169
|
-
__metadata("design:returntype", typeof (_k = typeof Promise !== "undefined" && Promise) === "function" ? _k : Object)
|
|
170
|
-
], Vibes.prototype, "fetchInboxMessage", null);
|
|
171
|
-
__decorate([
|
|
172
|
-
Cordova(),
|
|
173
|
-
__metadata("design:type", Function),
|
|
174
|
-
__metadata("design:paramtypes", [String, String]),
|
|
175
|
-
__metadata("design:returntype", typeof (_l = typeof Promise !== "undefined" && Promise) === "function" ? _l : Object)
|
|
176
|
-
], Vibes.prototype, "expireInboxMessage", null);
|
|
177
|
-
__decorate([
|
|
178
|
-
Cordova(),
|
|
179
|
-
__metadata("design:type", Function),
|
|
180
|
-
__metadata("design:paramtypes", [String]),
|
|
181
|
-
__metadata("design:returntype", typeof (_m = typeof Promise !== "undefined" && Promise) === "function" ? _m : Object)
|
|
182
|
-
], Vibes.prototype, "markInboxMessageAsRead", null);
|
|
183
|
-
__decorate([
|
|
184
|
-
Cordova(),
|
|
185
|
-
__metadata("design:type", Function),
|
|
186
|
-
__metadata("design:paramtypes", [String]),
|
|
187
|
-
__metadata("design:returntype", typeof (_o = typeof Promise !== "undefined" && Promise) === "function" ? _o : Object)
|
|
188
|
-
], Vibes.prototype, "onInboxMessageOpen", null);
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: Vibes, decorators: [{
|
|
6
|
+
var Vibes = /** @class */ (function (_super) {
|
|
7
|
+
__extends(Vibes, _super);
|
|
8
|
+
function Vibes() {
|
|
9
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
Vibes.prototype.registerDevice = function () { return cordova(this, "registerDevice", {}, arguments); };
|
|
12
|
+
Vibes.prototype.unregisterDevice = function () { return cordova(this, "unregisterDevice", {}, arguments); };
|
|
13
|
+
Vibes.prototype.associatePerson = function (externalPersonId) { return cordova(this, "associatePerson", {}, arguments); };
|
|
14
|
+
Vibes.prototype.registerPush = function () { return cordova(this, "registerPush", {}, arguments); };
|
|
15
|
+
Vibes.prototype.unregisterPush = function () { return cordova(this, "unregisterPush", {}, arguments); };
|
|
16
|
+
Vibes.prototype.getVibesDeviceInfo = function () { return cordova(this, "getVibesDeviceInfo", {}, arguments); };
|
|
17
|
+
Vibes.prototype.getPerson = function () { return cordova(this, "getPerson", {}, arguments); };
|
|
18
|
+
Vibes.prototype.onNotificationOpened = function () { return cordova(this, "onNotificationOpened", { "observable": true }, arguments); };
|
|
19
|
+
Vibes.prototype.fetchInboxMessages = function () { return cordova(this, "fetchInboxMessages", {}, arguments); };
|
|
20
|
+
Vibes.prototype.fetchInboxMessage = function (message_uid) { return cordova(this, "fetchInboxMessage", {}, arguments); };
|
|
21
|
+
Vibes.prototype.expireInboxMessage = function (message_uid, date) { return cordova(this, "expireInboxMessage", {}, arguments); };
|
|
22
|
+
Vibes.prototype.markInboxMessageAsRead = function (message_uid) { return cordova(this, "markInboxMessageAsRead", {}, arguments); };
|
|
23
|
+
Vibes.prototype.onInboxMessageOpen = function (inbox_message_stringified) { return cordova(this, "onInboxMessageOpen", {}, arguments); };
|
|
24
|
+
Vibes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: Vibes, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
25
|
+
Vibes.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: Vibes });
|
|
26
|
+
Vibes.pluginName = "Vibes";
|
|
27
|
+
Vibes.plugin = "vibes-cordova";
|
|
28
|
+
Vibes.pluginRef = "Vibes";
|
|
29
|
+
Vibes.repo = "https://github.com/vibes/vibes-cordova.git";
|
|
30
|
+
Vibes.install = "ionic cordova plugin add vibes-cordova --variable VIBES_APP_ID=MY_APP_ID --variable VIBES_API_URL=MY_ENVIRONMENT_URL";
|
|
31
|
+
Vibes.installVariables = ["VIBES_APP_ID", "VIBES_API_URL"];
|
|
32
|
+
Vibes.platforms = ["Android", "iOS"];
|
|
33
|
+
Vibes = __decorate([], Vibes);
|
|
34
|
+
return Vibes;
|
|
35
|
+
}(AwesomeCordovaNativePlugin));
|
|
36
|
+
export { Vibes };
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: Vibes, decorators: [{
|
|
190
38
|
type: Injectable
|
|
191
39
|
}], propDecorators: { registerDevice: [], unregisterDevice: [], associatePerson: [], registerPush: [], unregisterPush: [], getVibesDeviceInfo: [], getPerson: [], onNotificationOpened: [], fetchInboxMessages: [], fetchInboxMessage: [], expireInboxMessage: [], markInboxMessageAsRead: [], onInboxMessageOpen: [] } });
|
|
192
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvdmliZXMvbmd4L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sdUNBQStDLE1BQU0sK0JBQStCLENBQUM7QUFDNUYsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7O0lBdUVQLHlCQUEwQjs7OztJQU9uRCw4QkFBYztJQVVkLGdDQUFnQjtJQVdoQiwrQkFBZSxhQUFDLGdCQUF3QjtJQVV4Qyw0QkFBWTtJQVVaLDhCQUFjO0lBU2Qsa0NBQWtCO0lBVWxCLHlCQUFTO0lBWVQsb0NBQW9CO0lBVXBCLGtDQUFrQjtJQVdsQixpQ0FBaUIsYUFBQyxXQUFtQjtJQWFyQyxrQ0FBa0IsYUFBQyxXQUFtQixFQUFFLElBQVk7SUFXcEQsc0NBQXNCLGFBQUMsV0FBbUI7SUFXMUMsa0NBQWtCLGFBQUMseUJBQWlDO3VHQXZJekMsS0FBSzsyR0FBTCxLQUFLOzs7Ozs7OztJQUFMLEtBQUssa0JBQUwsS0FBSztnQkF6RWxCO0VBeUUyQiwwQkFBMEI7U0F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c3NhZ2VPcGVuKGluYm94X21lc3NhZ2Vfc3RyaW5naWZpZWQ6IHN0cmluZyk6IFByb21pc2U8dm9pZD4ge1xuICAgIHJldHVybjtcbiAgfVxufVxuIl19
|
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/vibes","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^6.0.1"},"version":"8.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":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/vibes","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^6.0.1"},"version":"8.0.0"}
|