indigitall-capacitor-plugin 2.0.2 → 2.0.3
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/README.md +49 -11
- package/android/src/main/java/com/indigitall/capacitor/IndigitallCpPlugin.java +48 -24
- package/dist/docs.json +113 -10
- package/dist/esm/Push.js +3 -23
- package/dist/esm/Push.js.map +1 -1
- package/dist/esm/definitions/pushDefinitions.d.ts +3 -3
- package/dist/esm/definitions/pushDefinitions.js.map +1 -1
- package/dist/plugin.cjs.js +3 -23
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +3 -23
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/IndigitallCpPlugin.swift +16 -8
- package/ios/Plugin/interfaces/IndigitallCpPlugin.m +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ npx cap sync
|
|
|
21
21
|
* [`topicsSubscribe(...)`](#topicssubscribe)
|
|
22
22
|
* [`topicsUnsubscribe(...)`](#topicsunsubscribe)
|
|
23
23
|
* [`sendCustomEvent(...)`](#sendcustomevent)
|
|
24
|
-
* [`getPush()`](#getpush)
|
|
25
|
-
* [`onIndigitallGetPush()`](#onindigitallgetpush)
|
|
24
|
+
* [`getPush(...)`](#getpush)
|
|
25
|
+
* [`onIndigitallGetPush(...)`](#onindigitallgetpush)
|
|
26
26
|
* [`clearViewUrl()`](#clearviewurl)
|
|
27
27
|
* [`setDefaultViewUrl(...)`](#setdefaultviewurl)
|
|
28
28
|
* [`onMessageReceived(...)`](#onmessagereceived)
|
|
@@ -140,24 +140,34 @@ sendCustomEvent(params: { customEvent: any; }) => Promise<void>
|
|
|
140
140
|
--------------------
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
### getPush()
|
|
143
|
+
### getPush(...)
|
|
144
144
|
|
|
145
145
|
```typescript
|
|
146
|
-
getPush() =>
|
|
146
|
+
getPush(onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType | undefined) => OnPushSuccessType
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
| Param | Type |
|
|
150
|
+
| --------------- | ------------------------------------------------------------------- |
|
|
151
|
+
| **`onSuccess`** | <code><a href="#onpushsuccesstype">OnPushSuccessType</a></code> |
|
|
152
|
+
| **`onError`** | <code><a href="#onerrorcallbacktype">OnErrorCallbackType</a></code> |
|
|
153
|
+
|
|
154
|
+
**Returns:** <code><a href="#onpushsuccesstype">OnPushSuccessType</a></code>
|
|
150
155
|
|
|
151
156
|
--------------------
|
|
152
157
|
|
|
153
158
|
|
|
154
|
-
### onIndigitallGetPush()
|
|
159
|
+
### onIndigitallGetPush(...)
|
|
155
160
|
|
|
156
161
|
```typescript
|
|
157
|
-
onIndigitallGetPush() =>
|
|
162
|
+
onIndigitallGetPush(onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType | undefined) => OnPushSuccessType
|
|
158
163
|
```
|
|
159
164
|
|
|
160
|
-
|
|
165
|
+
| Param | Type |
|
|
166
|
+
| --------------- | ------------------------------------------------------------------- |
|
|
167
|
+
| **`onSuccess`** | <code><a href="#onpushsuccesstype">OnPushSuccessType</a></code> |
|
|
168
|
+
| **`onError`** | <code><a href="#onerrorcallbacktype">OnErrorCallbackType</a></code> |
|
|
169
|
+
|
|
170
|
+
**Returns:** <code><a href="#onpushsuccesstype">OnPushSuccessType</a></code>
|
|
161
171
|
|
|
162
172
|
--------------------
|
|
163
173
|
|
|
@@ -174,15 +184,13 @@ clearViewUrl() => void
|
|
|
174
184
|
### setDefaultViewUrl(...)
|
|
175
185
|
|
|
176
186
|
```typescript
|
|
177
|
-
setDefaultViewUrl(params: { defaultView: string; }) =>
|
|
187
|
+
setDefaultViewUrl(params: { defaultView: string; }) => void
|
|
178
188
|
```
|
|
179
189
|
|
|
180
190
|
| Param | Type |
|
|
181
191
|
| ------------ | ------------------------------------- |
|
|
182
192
|
| **`params`** | <code>{ defaultView: string; }</code> |
|
|
183
193
|
|
|
184
|
-
**Returns:** <code>unknown</code>
|
|
185
|
-
|
|
186
194
|
--------------------
|
|
187
195
|
|
|
188
196
|
|
|
@@ -270,6 +278,36 @@ An intrinsic object that provides functions to convert JavaScript values to and
|
|
|
270
278
|
### Type Aliases
|
|
271
279
|
|
|
272
280
|
|
|
281
|
+
#### OnPushSuccessType
|
|
282
|
+
|
|
283
|
+
<code>(push: <a href="#push">Push</a>): void</code>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
#### Push
|
|
287
|
+
|
|
288
|
+
<code>{ title: string; body: string; image: string; data: string; securedData: string; action: <a href="#pushaction">PushAction</a>; buttons: [PushButton]; }</code>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
#### PushAction
|
|
292
|
+
|
|
293
|
+
<code>{ url: string | null; app: string | null; market: string | null; share: string | null; call: string | null; noAction: string | null; }</code>
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
#### PushButton
|
|
297
|
+
|
|
298
|
+
<code>{ label: string; action: <a href="#pushaction">PushAction</a>; }</code>
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
#### OnErrorCallbackType
|
|
302
|
+
|
|
303
|
+
<code>(error: <a href="#errorcallback">ErrorCallback</a>): void</code>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
#### ErrorCallback
|
|
307
|
+
|
|
308
|
+
<code>{ message: string; }</code>
|
|
309
|
+
|
|
310
|
+
|
|
273
311
|
#### OnMessageReceivedSuccessType
|
|
274
312
|
|
|
275
313
|
<code>(json: <a href="#json">JSON</a>): void</code>
|
|
@@ -2,9 +2,12 @@ package com.indigitall.capacitor;
|
|
|
2
2
|
|
|
3
3
|
import android.Manifest;
|
|
4
4
|
import android.content.Context;
|
|
5
|
+
import android.content.Intent;
|
|
5
6
|
import android.content.pm.PackageManager;
|
|
6
7
|
import android.net.Uri;
|
|
7
8
|
import android.os.Build;
|
|
9
|
+
import android.os.Handler;
|
|
10
|
+
import android.util.Log;
|
|
8
11
|
|
|
9
12
|
import androidx.annotation.NonNull;
|
|
10
13
|
|
|
@@ -233,7 +236,7 @@ public class IndigitallCpPlugin extends Plugin implements IndigitallFirebaseInte
|
|
|
233
236
|
});
|
|
234
237
|
}
|
|
235
238
|
|
|
236
|
-
@PluginMethod
|
|
239
|
+
@PluginMethod(returnType = PluginMethod.RETURN_NONE)
|
|
237
240
|
public void setDefaultViewUrl(PluginCall call) {
|
|
238
241
|
try{
|
|
239
242
|
String defaultView = call.getString("defaultView");
|
|
@@ -244,13 +247,13 @@ public class IndigitallCpPlugin extends Plugin implements IndigitallFirebaseInte
|
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
249
|
|
|
247
|
-
@PluginMethod
|
|
250
|
+
@PluginMethod(returnType = PluginMethod.RETURN_NONE)
|
|
248
251
|
public void clearViewUrl() {
|
|
249
252
|
CpPreferenceUtils.setPushUrl(getContext(), "");
|
|
250
253
|
CpPreferenceUtils.setNativePushUrl(getContext(), "");
|
|
251
254
|
}
|
|
252
|
-
|
|
253
|
-
@PluginMethod
|
|
255
|
+
|
|
256
|
+
@PluginMethod(returnType = PluginMethod.RETURN_CALLBACK)
|
|
254
257
|
public void onIndigitallGetPush(PluginCall call) throws JSONException {
|
|
255
258
|
onIndigitallGetPush(call, null);
|
|
256
259
|
}
|
|
@@ -261,36 +264,57 @@ public class IndigitallCpPlugin extends Plugin implements IndigitallFirebaseInte
|
|
|
261
264
|
if (bridge != null) {
|
|
262
265
|
String url = CpPreferenceUtils.getPushUrl(getContext());
|
|
263
266
|
String urlNative = CpPreferenceUtils.getNativePushUrl(getContext());
|
|
264
|
-
if (urlNative != null && !urlNative.equals("")
|
|
265
|
-
bridge.
|
|
267
|
+
if (urlNative != null && !urlNative.equals("")) {
|
|
268
|
+
bridge.getWebView().post(new Runnable() {
|
|
269
|
+
@Override
|
|
270
|
+
public void run() {
|
|
271
|
+
CpPreferenceUtils.setPushString(getContext(), new Push(getContext(), json).toString());
|
|
272
|
+
bridge.getWebView().loadUrl(urlNative);
|
|
273
|
+
}
|
|
274
|
+
});
|
|
266
275
|
} else if (url != null && !url.equals("")) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
276
|
+
bridge.getWebView().post(new Runnable() {
|
|
277
|
+
@Override
|
|
278
|
+
public void run() {
|
|
279
|
+
String completeUrl = bridge.getLocalUrl()+"/"+url;
|
|
280
|
+
//if (!completeUrl.equals(bridge.getLocalUrl())) {
|
|
281
|
+
bridge.getWebView().loadUrl(completeUrl);
|
|
282
|
+
}
|
|
283
|
+
});
|
|
270
284
|
//}
|
|
271
285
|
}
|
|
272
286
|
}
|
|
273
|
-
|
|
287
|
+
} else {
|
|
274
288
|
getPushCallback = call;
|
|
275
289
|
indigitallInterface = this;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
290
|
+
bridge.getWebView().post(new Runnable() {
|
|
291
|
+
@Override
|
|
292
|
+
public void run() {
|
|
293
|
+
String urlGetPushMethod = CpPreferenceUtils.getPushUrl(getContext());
|
|
294
|
+
if (urlGetPushMethod == null || urlGetPushMethod.equals("")) {
|
|
295
|
+
CpPreferenceUtils.setNativePushUrl(getContext(), bridge.getWebView().getUrl());
|
|
296
|
+
Log.d("IndigigallCpPlugin", "set url to: " + bridge.getWebView().getUrl());
|
|
297
|
+
}
|
|
298
|
+
JSObject ret = new JSObject();
|
|
299
|
+
if (CpPreferenceUtils.getPushString(getContext()) != null &&
|
|
300
|
+
!CpPreferenceUtils.getPushString(getContext()).equals("")) {
|
|
301
|
+
Push push = new Push(getContext(), CpPreferenceUtils.getPushString(getContext()));
|
|
302
|
+
try {
|
|
303
|
+
ret.put(PUSH, IndigitallParse.jsonFromPush(push));
|
|
304
|
+
} catch (JSONException e) {
|
|
305
|
+
e.printStackTrace();
|
|
306
|
+
}
|
|
307
|
+
getPushCallback.setKeepAlive(true);
|
|
308
|
+
getPushCallback.resolve(ret);
|
|
309
|
+
CpPreferenceUtils.setPushString(getContext(), "");
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
288
313
|
call.setKeepAlive(true);
|
|
289
|
-
getPushCallback.resolve(ret);
|
|
290
314
|
}
|
|
291
315
|
}
|
|
292
316
|
|
|
293
|
-
@PluginMethod
|
|
317
|
+
@PluginMethod(returnType = PluginMethod.RETURN_CALLBACK)
|
|
294
318
|
public void getPush(PluginCall call) throws JSONException {
|
|
295
319
|
JSObject ret = new JSObject();
|
|
296
320
|
ret.put(PUSH, IndigitallCp.getPush(getContext(), getActivity().getIntent()));
|
package/dist/docs.json
CHANGED
|
@@ -111,22 +111,50 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "getPush",
|
|
114
|
-
"signature": "() =>
|
|
115
|
-
"parameters": [
|
|
116
|
-
|
|
114
|
+
"signature": "(onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType | undefined) => OnPushSuccessType",
|
|
115
|
+
"parameters": [
|
|
116
|
+
{
|
|
117
|
+
"name": "onSuccess",
|
|
118
|
+
"docs": "",
|
|
119
|
+
"type": "OnPushSuccessType"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "onError",
|
|
123
|
+
"docs": "",
|
|
124
|
+
"type": "OnErrorCallbackType | undefined"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"returns": "OnPushSuccessType",
|
|
117
128
|
"tags": [],
|
|
118
129
|
"docs": "",
|
|
119
|
-
"complexTypes": [
|
|
130
|
+
"complexTypes": [
|
|
131
|
+
"OnPushSuccessType",
|
|
132
|
+
"OnErrorCallbackType"
|
|
133
|
+
],
|
|
120
134
|
"slug": "getpush"
|
|
121
135
|
},
|
|
122
136
|
{
|
|
123
137
|
"name": "onIndigitallGetPush",
|
|
124
|
-
"signature": "() =>
|
|
125
|
-
"parameters": [
|
|
126
|
-
|
|
138
|
+
"signature": "(onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType | undefined) => OnPushSuccessType",
|
|
139
|
+
"parameters": [
|
|
140
|
+
{
|
|
141
|
+
"name": "onSuccess",
|
|
142
|
+
"docs": "",
|
|
143
|
+
"type": "OnPushSuccessType"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "onError",
|
|
147
|
+
"docs": "",
|
|
148
|
+
"type": "OnErrorCallbackType | undefined"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"returns": "OnPushSuccessType",
|
|
127
152
|
"tags": [],
|
|
128
153
|
"docs": "",
|
|
129
|
-
"complexTypes": [
|
|
154
|
+
"complexTypes": [
|
|
155
|
+
"OnPushSuccessType",
|
|
156
|
+
"OnErrorCallbackType"
|
|
157
|
+
],
|
|
130
158
|
"slug": "onindigitallgetpush"
|
|
131
159
|
},
|
|
132
160
|
{
|
|
@@ -141,7 +169,7 @@
|
|
|
141
169
|
},
|
|
142
170
|
{
|
|
143
171
|
"name": "setDefaultViewUrl",
|
|
144
|
-
"signature": "(params: { defaultView: string; }) =>
|
|
172
|
+
"signature": "(params: { defaultView: string; }) => void",
|
|
145
173
|
"parameters": [
|
|
146
174
|
{
|
|
147
175
|
"name": "params",
|
|
@@ -149,7 +177,7 @@
|
|
|
149
177
|
"type": "{ defaultView: string; }"
|
|
150
178
|
}
|
|
151
179
|
],
|
|
152
|
-
"returns": "
|
|
180
|
+
"returns": "void",
|
|
153
181
|
"tags": [],
|
|
154
182
|
"docs": "",
|
|
155
183
|
"complexTypes": [],
|
|
@@ -349,6 +377,81 @@
|
|
|
349
377
|
],
|
|
350
378
|
"enums": [],
|
|
351
379
|
"typeAliases": [
|
|
380
|
+
{
|
|
381
|
+
"name": "OnPushSuccessType",
|
|
382
|
+
"slug": "onpushsuccesstype",
|
|
383
|
+
"docs": "",
|
|
384
|
+
"types": [
|
|
385
|
+
{
|
|
386
|
+
"text": "(push: Push): void",
|
|
387
|
+
"complexTypes": [
|
|
388
|
+
"Push"
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "Push",
|
|
395
|
+
"slug": "push",
|
|
396
|
+
"docs": "",
|
|
397
|
+
"types": [
|
|
398
|
+
{
|
|
399
|
+
"text": "{\n title: string;\n body: string;\n image: string;\n data: string;\n securedData: string;\n action: PushAction;\n buttons: [PushButton];\n }",
|
|
400
|
+
"complexTypes": [
|
|
401
|
+
"PushAction",
|
|
402
|
+
"PushButton"
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "PushAction",
|
|
409
|
+
"slug": "pushaction",
|
|
410
|
+
"docs": "",
|
|
411
|
+
"types": [
|
|
412
|
+
{
|
|
413
|
+
"text": "{\n url: string | null;\n app: string | null;\n market: string | null;\n share: string | null;\n call: string | null;\n noAction: string | null;\n }",
|
|
414
|
+
"complexTypes": []
|
|
415
|
+
}
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "PushButton",
|
|
420
|
+
"slug": "pushbutton",
|
|
421
|
+
"docs": "",
|
|
422
|
+
"types": [
|
|
423
|
+
{
|
|
424
|
+
"text": "{\n label: string;\n action: PushAction;\n }",
|
|
425
|
+
"complexTypes": [
|
|
426
|
+
"PushAction"
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "OnErrorCallbackType",
|
|
433
|
+
"slug": "onerrorcallbacktype",
|
|
434
|
+
"docs": "",
|
|
435
|
+
"types": [
|
|
436
|
+
{
|
|
437
|
+
"text": "(error: ErrorCallback): void",
|
|
438
|
+
"complexTypes": [
|
|
439
|
+
"ErrorCallback"
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "ErrorCallback",
|
|
446
|
+
"slug": "errorcallback",
|
|
447
|
+
"docs": "",
|
|
448
|
+
"types": [
|
|
449
|
+
{
|
|
450
|
+
"text": "{\n message: string;\n}",
|
|
451
|
+
"complexTypes": []
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
},
|
|
352
455
|
{
|
|
353
456
|
"name": "OnMessageReceivedSuccessType",
|
|
354
457
|
"slug": "onmessagereceivedsuccesstype",
|
package/dist/esm/Push.js
CHANGED
|
@@ -5,7 +5,7 @@ const IndigitallCp = registerPlugin('IndigitallCp', {
|
|
|
5
5
|
const Indigitall = {
|
|
6
6
|
init: (config, onIndigitallInitializedType, onError) => {
|
|
7
7
|
Object.assign(config, {
|
|
8
|
-
productVersion: '2.0.
|
|
8
|
+
productVersion: '2.0.3',
|
|
9
9
|
productName: 'capacitor',
|
|
10
10
|
});
|
|
11
11
|
IndigitallCp.initialize({ config }).then(onInit => {
|
|
@@ -80,20 +80,10 @@ const Indigitall = {
|
|
|
80
80
|
});
|
|
81
81
|
},
|
|
82
82
|
getPush: (onSuccess, onError) => {
|
|
83
|
-
IndigitallCp.getPush()
|
|
84
|
-
onSuccess(response.push);
|
|
85
|
-
}).catch(error => {
|
|
86
|
-
if (onError)
|
|
87
|
-
onError(error);
|
|
88
|
-
});
|
|
83
|
+
IndigitallCp.getPush(onSuccess, onError);
|
|
89
84
|
},
|
|
90
85
|
onIndigitallGetPush: (onSuccess, onError) => {
|
|
91
|
-
IndigitallCp.onIndigitallGetPush()
|
|
92
|
-
onSuccess(response.push);
|
|
93
|
-
}).catch(error => {
|
|
94
|
-
if (onError)
|
|
95
|
-
onError(error);
|
|
96
|
-
});
|
|
86
|
+
IndigitallCp.onIndigitallGetPush(onSuccess, onError);
|
|
97
87
|
},
|
|
98
88
|
clearViewUrl: () => {
|
|
99
89
|
IndigitallCp.clearViewUrl();
|
|
@@ -101,16 +91,6 @@ const Indigitall = {
|
|
|
101
91
|
setDefaultViewUrl: (defaultView) => {
|
|
102
92
|
IndigitallCp.setDefaultViewUrl({ defaultView });
|
|
103
93
|
},
|
|
104
|
-
// onMessageReceived: (
|
|
105
|
-
// onSuccess: OnMessageReceivedSuccessType,
|
|
106
|
-
// onError?: OnErrorCallbackType) => {
|
|
107
|
-
// IndigitallCp.onMessageReceived().then(response => {
|
|
108
|
-
// onSuccess(response.notification);
|
|
109
|
-
// }).catch(error => {
|
|
110
|
-
// if (onError)
|
|
111
|
-
// onError(error);
|
|
112
|
-
// });
|
|
113
|
-
// },
|
|
114
94
|
onMessageReceived: (onSuccess) => {
|
|
115
95
|
IndigitallCp.onMessageReceived(onSuccess);
|
|
116
96
|
},
|
package/dist/esm/Push.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Push.js","sourceRoot":"","sources":["../../src/Push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAoBjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;AACpE,gEAAgE;CACjE,CAAC,CAAC;AAEH,MAAM,UAAU,GAAqB;IACjC,IAAI,EAAE,CACF,MAAkB,EAClB,2BAAyD,EACzD,OAA6B,EAC/B,EAAE;QACA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YACpB,cAAc,EAAE,OAAO;YACvB,WAAW,EAAE,WAAW;SACzB,CAAC,CAAA;QACF,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YAC9C,IAAI,2BAA2B;gBAC3B,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAC9G,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACb,IAAI,OAAO;gBACP,OAAO,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IACD,SAAS,EAAE,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type { \n OnIndigitallInitializedType, \n OnDeviceSuccessType,\n OnTopicSuccessType,\n OnPushSuccessType,\n OnErrorCallbackType,\n OnMessageReceivedSuccessType,\n OnTokenSuccessType,\n } from './callbacks/callbacksType';\nimport type { \n IndigitallCpPlugin, \n IndigitallPlugin\n } from './definitions/pushDefinitions';\nimport type {\n EventParams,\n InitParams,\n } from './params/pushParams';\n\nconst IndigitallCp = registerPlugin<IndigitallCpPlugin>('IndigitallCp', {\n //web: () => import('./web').then(m => new m.IndigitallCpWeb()),\n });\n\n const Indigitall: IndigitallPlugin = {\n init: (\n config: InitParams,\n onIndigitallInitializedType?: OnIndigitallInitializedType,\n onError?: OnErrorCallbackType\n ) => {\n Object.assign(config, {\n productVersion: '2.0.2',\n productName: 'capacitor',\n })\n IndigitallCp.initialize({ config }).then(onInit => {\n if (onIndigitallInitializedType)\n onIndigitallInitializedType(onInit[\"device\"], onInit[\"pushPermission\"], onInit[\"locationPermission\"]);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceGet: (\n onSuccess: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceGet().then(response => {\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceEnable: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceDisable: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsList: (\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsSubscribe: (\n topics: string[],\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsUnsubscribe: (\n topics: string[],\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n sendCustomEvent: (\n customEvent: EventParams,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType) => {\n const myCustomEvent = { customEvent };\n IndigitallCp.sendCustomEvent(myCustomEvent).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getPush: (\n onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.getPush().then(response => {\n onSuccess(response.push);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n onIndigitallGetPush: (\n onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.onIndigitallGetPush().then(response => {\n onSuccess(response.push);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n clearViewUrl: () => {\n IndigitallCp.clearViewUrl();\n }, \n setDefaultViewUrl: (defaultView: string) => {\n IndigitallCp.setDefaultViewUrl({defaultView});\n },\n // onMessageReceived: (\n // onSuccess: OnMessageReceivedSuccessType,\n // onError?: OnErrorCallbackType) => {\n // IndigitallCp.onMessageReceived().then(response => {\n // onSuccess(response.notification);\n // }).catch(error => {\n // if (onError)\n // onError(error);\n // });\n // },\n onMessageReceived: (\n onSuccess: OnMessageReceivedSuccessType) => {\n IndigitallCp.onMessageReceived(onSuccess);\n },\n getToken: (\n onSuccess: OnTokenSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.getToken().then(response => {\n onSuccess(response.token);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n isIndigitallPushNotification: (\n notification: any,\n onSuccess: () => void,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.isIndigitallPushNotification({ notification }).then(() => {\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logIn: (\n externalId: string,\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logOut: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n }\n\n export { Indigitall }\n\n"]}
|
|
1
|
+
{"version":3,"file":"Push.js","sourceRoot":"","sources":["../../src/Push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAoBjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;AACpE,gEAAgE;CACjE,CAAC,CAAC;AAEH,MAAM,UAAU,GAAqB;IACjC,IAAI,EAAE,CACF,MAAkB,EAClB,2BAAyD,EACzD,OAA6B,EAC/B,EAAE;QACA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YACpB,cAAc,EAAE,OAAO;YACvB,WAAW,EAAE,WAAW;SACzB,CAAC,CAAA;QACF,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YAC9C,IAAI,2BAA2B;gBAC3B,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAC9G,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACb,IAAI,OAAO;gBACP,OAAO,CAAC,KAAK,CAAC,CAAC;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kB,EAClB,SAA+B,EAC/B,OAA6B,EAAE,EAAE;QACjC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC/C,IAAI,SAAS;gBACT,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACb,IAAI,OAAO;gBACP,OAAO,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IACD,MAAM,EAAE,CACJ,SAA+B,EAC/B,OAA6B,EAAE,EAAE;QACjC,YAAY,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAClC,IAAI,SAAS;gBACT,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACb,IAAI,OAAO;gBACP,OAAO,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { \n OnIndigitallInitializedType, \n OnDeviceSuccessType,\n OnTopicSuccessType,\n OnPushSuccessType,\n OnErrorCallbackType,\n OnMessageReceivedSuccessType,\n OnTokenSuccessType,\n } from './callbacks/callbacksType';\nimport type { \n IndigitallCpPlugin, \n IndigitallPlugin\n } from './definitions/pushDefinitions';\nimport type {\n EventParams,\n InitParams,\n } from './params/pushParams';\n\nconst IndigitallCp = registerPlugin<IndigitallCpPlugin>('IndigitallCp', {\n //web: () => import('./web').then(m => new m.IndigitallCpWeb()),\n });\n\n const Indigitall: IndigitallPlugin = {\n init: (\n config: InitParams,\n onIndigitallInitializedType?: OnIndigitallInitializedType,\n onError?: OnErrorCallbackType\n ) => {\n Object.assign(config, {\n productVersion: '2.0.3',\n productName: 'capacitor',\n })\n IndigitallCp.initialize({ config }).then(onInit => {\n if (onIndigitallInitializedType)\n onIndigitallInitializedType(onInit[\"device\"], onInit[\"pushPermission\"], onInit[\"locationPermission\"]);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceGet: (\n onSuccess: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceGet().then(response => {\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceEnable: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceDisable: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsList: (\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsSubscribe: (\n topics: string[],\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsUnsubscribe: (\n topics: string[],\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n sendCustomEvent: (\n customEvent: EventParams,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType) => {\n const myCustomEvent = { customEvent };\n IndigitallCp.sendCustomEvent(myCustomEvent).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getPush: (\n onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.getPush(onSuccess, onError);\n },\n onIndigitallGetPush: (\n onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.onIndigitallGetPush(onSuccess, onError);\n },\n clearViewUrl: () => {\n IndigitallCp.clearViewUrl();\n }, \n setDefaultViewUrl: (defaultView: string) => {\n IndigitallCp.setDefaultViewUrl({defaultView});\n },\n onMessageReceived: (\n onSuccess: OnMessageReceivedSuccessType) => {\n IndigitallCp.onMessageReceived(onSuccess);\n },\n getToken: (\n onSuccess: OnTokenSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.getToken().then(response => {\n onSuccess(response.token);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n isIndigitallPushNotification: (\n notification: any,\n onSuccess: () => void,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.isIndigitallPushNotification({ notification }).then(() => {\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logIn: (\n externalId: string,\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logOut: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n }\n\n export { Indigitall }\n\n"]}
|
|
@@ -17,12 +17,12 @@ export interface IndigitallCpPlugin {
|
|
|
17
17
|
sendCustomEvent(params: {
|
|
18
18
|
customEvent: any;
|
|
19
19
|
}): Promise<void>;
|
|
20
|
-
getPush():
|
|
21
|
-
onIndigitallGetPush():
|
|
20
|
+
getPush(onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType): OnPushSuccessType;
|
|
21
|
+
onIndigitallGetPush(onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType): OnPushSuccessType;
|
|
22
22
|
clearViewUrl(): void;
|
|
23
23
|
setDefaultViewUrl(params: {
|
|
24
24
|
defaultView: string;
|
|
25
|
-
}):
|
|
25
|
+
}): void;
|
|
26
26
|
onMessageReceived(onSuccess: OnMessageReceivedSuccessType): OnMessageReceivedSuccessType;
|
|
27
27
|
getToken(): Promise<any>;
|
|
28
28
|
isIndigitallPushNotification(params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushDefinitions.js","sourceRoot":"","sources":["../../../src/definitions/pushDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["\nimport type {\n OnIndigitallInitializedType,\n OnDeviceSuccessType,\n OnPushSuccessType,\n OnTopicSuccessType,\n OnErrorCallbackType,\n //OnInAppCallbackType,\n OnMessageReceivedSuccessType,\n OnTokenSuccessType,\n } from '../callbacks/callbacksType';\n import type { \n InitParams,\n EventParams } from '../params/pushParams';\n\n \nexport interface IndigitallCpPlugin { \n initialize(params: { config: any }): Promise<any>; \n deviceGet(): Promise<any>;\n deviceEnable(): Promise<any>;\n deviceDisable(): Promise<any>;\n topicsList(): Promise<any>;\n topicsSubscribe(params: { topics: string[] }): Promise<any>;\n topicsUnsubscribe(params: { topics: string[] }): Promise<any>;\n sendCustomEvent(params: { customEvent: any}): Promise<void>;\n getPush():
|
|
1
|
+
{"version":3,"file":"pushDefinitions.js","sourceRoot":"","sources":["../../../src/definitions/pushDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["\nimport type {\n OnIndigitallInitializedType,\n OnDeviceSuccessType,\n OnPushSuccessType,\n OnTopicSuccessType,\n OnErrorCallbackType,\n //OnInAppCallbackType,\n OnMessageReceivedSuccessType,\n OnTokenSuccessType,\n } from '../callbacks/callbacksType';\n import type { \n InitParams,\n EventParams } from '../params/pushParams';\n\n \nexport interface IndigitallCpPlugin { \n initialize(params: { config: any }): Promise<any>; \n deviceGet(): Promise<any>;\n deviceEnable(): Promise<any>;\n deviceDisable(): Promise<any>;\n topicsList(): Promise<any>;\n topicsSubscribe(params: { topics: string[] }): Promise<any>;\n topicsUnsubscribe(params: { topics: string[] }): Promise<any>;\n sendCustomEvent(params: { customEvent: any}): Promise<void>;\n // Callback can be keeping alive, promise only return once\n getPush(onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType): OnPushSuccessType;\n onIndigitallGetPush(onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType): OnPushSuccessType;\n clearViewUrl(): void;\n setDefaultViewUrl(params: { defaultView: string}): void;\n onMessageReceived(onSuccess: OnMessageReceivedSuccessType): OnMessageReceivedSuccessType;\n getToken(): Promise<any>;\n isIndigitallPushNotification(params: {notification: any}): Promise<any>;\n logIn(param: { externalId: string }): Promise<any>;\n logOut(): Promise<any>;\n }\n \n export interface IndigitallPlugin {\n init: (\n config: InitParams,\n onIndigitallInitializedType?: OnIndigitallInitializedType,\n onError?: OnErrorCallbackType\n ) => void;\n deviceGet: (\n onSuccess: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n deviceEnable: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n deviceDisable: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n topicsList: (\n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n topicsSubscribe: (\n topics: string[], \n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n topicsUnsubscribe: (\n topics: string[], \n onSuccess?: OnTopicSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n sendCustomEvent: (\n customEvent: EventParams,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n getPush: (\n onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n onIndigitallGetPush: (\n onSuccess: OnPushSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n clearViewUrl: () => void;\n setDefaultViewUrl: (\n defaultView: string,\n ) => void;\n onMessageReceived: (\n onSuccess: OnMessageReceivedSuccessType\n ) => void;\n getToken: (\n onSuccess: OnTokenSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n isIndigitallPushNotification: (\n notification: any,\n onSuccess: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n\n logIn: (\n externalId: string,\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n logOut: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n }"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -10,7 +10,7 @@ const IndigitallCp = core.registerPlugin('IndigitallCp', {
|
|
|
10
10
|
const Indigitall = {
|
|
11
11
|
init: (config, onIndigitallInitializedType, onError) => {
|
|
12
12
|
Object.assign(config, {
|
|
13
|
-
productVersion: '2.0.
|
|
13
|
+
productVersion: '2.0.3',
|
|
14
14
|
productName: 'capacitor',
|
|
15
15
|
});
|
|
16
16
|
IndigitallCp.initialize({ config }).then(onInit => {
|
|
@@ -85,20 +85,10 @@ const Indigitall = {
|
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
87
|
getPush: (onSuccess, onError) => {
|
|
88
|
-
IndigitallCp.getPush()
|
|
89
|
-
onSuccess(response.push);
|
|
90
|
-
}).catch(error => {
|
|
91
|
-
if (onError)
|
|
92
|
-
onError(error);
|
|
93
|
-
});
|
|
88
|
+
IndigitallCp.getPush(onSuccess, onError);
|
|
94
89
|
},
|
|
95
90
|
onIndigitallGetPush: (onSuccess, onError) => {
|
|
96
|
-
IndigitallCp.onIndigitallGetPush()
|
|
97
|
-
onSuccess(response.push);
|
|
98
|
-
}).catch(error => {
|
|
99
|
-
if (onError)
|
|
100
|
-
onError(error);
|
|
101
|
-
});
|
|
91
|
+
IndigitallCp.onIndigitallGetPush(onSuccess, onError);
|
|
102
92
|
},
|
|
103
93
|
clearViewUrl: () => {
|
|
104
94
|
IndigitallCp.clearViewUrl();
|
|
@@ -106,16 +96,6 @@ const Indigitall = {
|
|
|
106
96
|
setDefaultViewUrl: (defaultView) => {
|
|
107
97
|
IndigitallCp.setDefaultViewUrl({ defaultView });
|
|
108
98
|
},
|
|
109
|
-
// onMessageReceived: (
|
|
110
|
-
// onSuccess: OnMessageReceivedSuccessType,
|
|
111
|
-
// onError?: OnErrorCallbackType) => {
|
|
112
|
-
// IndigitallCp.onMessageReceived().then(response => {
|
|
113
|
-
// onSuccess(response.notification);
|
|
114
|
-
// }).catch(error => {
|
|
115
|
-
// if (onError)
|
|
116
|
-
// onError(error);
|
|
117
|
-
// });
|
|
118
|
-
// },
|
|
119
99
|
onMessageReceived: (onSuccess) => {
|
|
120
100
|
IndigitallCp.onMessageReceived(onSuccess);
|
|
121
101
|
},
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/Push.js","esm/models/InCustomer.js","esm/Customer.js","esm/models/InInbox.js","esm/Inbox.js","esm/InApp.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst IndigitallCp = registerPlugin('IndigitallCp', {\n//web: () => import('./web').then(m => new m.IndigitallCpWeb()),\n});\nconst Indigitall = {\n init: (config, onIndigitallInitializedType, onError) => {\n Object.assign(config, {\n productVersion: '2.0.2',\n productName: 'capacitor',\n });\n IndigitallCp.initialize({ config }).then(onInit => {\n if (onIndigitallInitializedType)\n onIndigitallInitializedType(onInit[\"device\"], onInit[\"pushPermission\"], onInit[\"locationPermission\"]);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceGet: (onSuccess, onError) => {\n IndigitallCp.deviceGet().then(response => {\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceEnable: (onSuccess, onError) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceDisable: (onSuccess, onError) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsList: (onSuccess, onError) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsSubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsUnsubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n sendCustomEvent: (customEvent, onSuccess, onError) => {\n const myCustomEvent = { customEvent };\n IndigitallCp.sendCustomEvent(myCustomEvent).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getPush: (onSuccess, onError) => {\n IndigitallCp.getPush().then(response => {\n onSuccess(response.push);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n onIndigitallGetPush: (onSuccess, onError) => {\n IndigitallCp.onIndigitallGetPush().then(response => {\n onSuccess(response.push);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n clearViewUrl: () => {\n IndigitallCp.clearViewUrl();\n },\n setDefaultViewUrl: (defaultView) => {\n IndigitallCp.setDefaultViewUrl({ defaultView });\n },\n // onMessageReceived: (\n // onSuccess: OnMessageReceivedSuccessType,\n // onError?: OnErrorCallbackType) => {\n // IndigitallCp.onMessageReceived().then(response => {\n // onSuccess(response.notification);\n // }).catch(error => {\n // if (onError)\n // onError(error);\n // });\n // },\n onMessageReceived: (onSuccess) => {\n IndigitallCp.onMessageReceived(onSuccess);\n },\n getToken: (onSuccess, onError) => {\n IndigitallCp.getToken().then(response => {\n onSuccess(response.token);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n isIndigitallPushNotification: (notification, onSuccess, onError) => {\n IndigitallCp.isIndigitallPushNotification({ notification }).then(() => {\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logIn: (externalId, onSuccess, onError) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logOut: (onSuccess, onError) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n};\nexport { Indigitall };\n//# sourceMappingURL=Push.js.map","export var Channel;\n(function (Channel) {\n Channel[\"Push\"] = \"push\";\n Channel[\"InApp\"] = \"inapp\";\n Channel[\"Chat\"] = \"chat\";\n})(Channel || (Channel = {}));\n;\n//# sourceMappingURL=InCustomer.js.map","import { registerPlugin } from '@capacitor/core';\nimport { Channel } from './models/InCustomer';\nconst CustomerCp = registerPlugin('CustomerCp', {});\nconst Customer = {\n getCustomer: (onSuccess, onError) => {\n CustomerCp.getCustomer().then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getCustomerInformation: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.getCustomerInformation({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customerField);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n assignOrUpdateValueToCustomerFields: (fields, onSuccess, onError) => {\n CustomerCp.assignOrUpdateValueToCustomerFields({ customerFields: fields }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deleteValuesFromCustomerFields: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.deleteValuesFromCustomerFields({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n link: (params, onSuccess, onError) => {\n CustomerCp.link({ link: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n unlink: (params, onSuccess, onError) => {\n CustomerCp.unlink({ unlink: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Customer, Channel };\n//# sourceMappingURL=Customer.js.map","export var InboxStatus;\n(function (InboxStatus) {\n InboxStatus[\"sent\"] = \"sent\";\n InboxStatus[\"click\"] = \"click\";\n InboxStatus[\"deleted\"] = \"deleted\";\n})(InboxStatus || (InboxStatus = {}));\n;\n//# sourceMappingURL=InInbox.js.map","import { registerPlugin } from '@capacitor/core';\nimport { InboxStatus } from './models/InInbox';\nconst InboxCp = registerPlugin('InboxCp', {});\nconst Inbox = {\n getMessageCount: (onSuccess, onError, auth) => {\n InboxCp.getMessageCount(auth).then(response => {\n if (onSuccess)\n onSuccess(response.counters);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInbox: (onSuccess, onError, auth) => {\n InboxCp.getInbox(auth).then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getNextPage: (onSuccess, onError) => {\n InboxCp.getNextPage().then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n massiveEditNotificationsWithSendingIdsList: (params, onSuccess, onError) => {\n InboxCp.massiveEditNotificationsWithSendingIdsList({ notifications: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInfoFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.getInfoFromNotificationWithSendingId(params).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n modifyStatusFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.modifyStatusFromNotificationWithSendingId({ notification: params }).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Inbox, InboxStatus };\n//# sourceMappingURL=Inbox.js.map","import { registerPlugin } from '@capacitor/core';\nconst InAppCp = registerPlugin('InAppCp', {});\nlet packageName = '';\nconst IndigitallInApp = {\n inAppGet: (inAppSchemaCode, onSuccess, onError) => {\n InAppCp.inAppGet({ inAppSchemaCode }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n inAppWasShown: (params, onSuccess, onError) => {\n InAppCp.inAppWasShown({ params }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n addNewInAppClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n addNewInAppToDismissForever: (inApp, onSuccess) => {\n InAppCp.addNewInAppToDismissForever({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n showInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const viewId = inAppParams.viewId;\n InAppCp.inAppWasShown({ params: inAppParams }).then((response) => {\n drawInApp(response.inApp, viewId, () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n },\n showMultipleInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const inAppSchemaCodes = inAppParams.inAppCodeList;\n const viewIds = inAppParams.viewIdList;\n for (let i = 0; i < viewIds.length; i++) {\n const inAppSchemaCode = inAppSchemaCodes[i];\n InAppCp.inAppWasShown({\n params: {\n appKey: inAppParams.appKey,\n domainInApp: inAppParams.domainInApp,\n inAppSchemaCode: inAppSchemaCode,\n viewId: viewIds[i]\n }\n }).then((response) => {\n drawInApp(response.inApp, viewIds[i], () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n }\n },\n showPopUp: (params, didCancel, didClicked, didDisimissed, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, onSuccess, onError) => {\n InAppCp.showPopUp({ inApp: params }).then((response) => {\n switch (response.action) {\n case \"onSuccess\": {\n if (onSuccess)\n onSuccess();\n break;\n }\n case \"didCancel\": {\n if (didCancel)\n didCancel();\n break;\n }\n case \"didClicked\": {\n if (didClicked)\n didClicked();\n break;\n }\n case \"didDisimissed\": {\n if (didDisimissed)\n didDisimissed();\n break;\n }\n case \"onShowTimeFinished\": {\n if (onShowTimeFinished)\n onShowTimeFinished();\n break;\n }\n case \"didExpired\": {\n if (didExpired)\n didExpired();\n break;\n }\n case \"didShowManyTimes\": {\n if (didShowManyTimes)\n didShowManyTimes();\n break;\n }\n case \"didClickOut\": {\n if (didClickOut)\n didClickOut();\n break;\n }\n case \"didDismissForever\": {\n if (didDismissForever)\n didDismissForever();\n break;\n }\n }\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n eventPrintInAppRequest: (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n },\n onClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n }\n};\nconst script = \"<script> let slideIndex = 1;showSlides(slideIndex);let timeSlide = 10000;const slider = document.querySelector('.slider-container-actions');let sliderTotal = document.getElementsByClassName(\\\"slideshow-item\\\").length;let slides = document.getElementsByClassName(\\\"slideshow-item\\\");var interval = setInterval(() => { newSlide();}, timeSlide);var startMove = null;slider.addEventListener('touchstart', handleStart, false);slider.addEventListener('touchend', handleEnd, false);slider.addEventListener('mousedown', mouseStart);slider.addEventListener('mouseup', mouseEnd);function mouseStart(evt) { evt.preventDefault(); startMove = evt.clientX;}function mouseEnd(evt) { evt.preventDefault(); var endMove = evt.clientX; setEndMove(endMove);}function handleStart(evt) { evt.preventDefault(); startMove = evt.touches[0].clientX;}function handleEnd(evt) { evt.preventDefault(); var endMove = evt.changedTouches[0].pageX; setEndMove(endMove);}function setEndMove(endMove) { if (startMove != null) { if (startMove > endMove) { slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } } else { if (slideIndex == 0) { slideIndex = sliderTotal; } else { slideIndex--; } } showSlides(slideIndex ); setNewInterval(); } } function plusSlides(n) { showSlides(slideIndex += n); setNewInterval();}function currentSlide(n) { showSlides(slideIndex = n); }function setNewInterval() { clearInterval(interval); interval = setInterval(() => { newSlide(); }, timeSlide);}function newSlide(){ slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } showSlides(slideIndex);}function showSlides(n) { let i; let slides = document.getElementsByClassName(\\\"slideshow-item\\\"); let dots = document.getElementsByClassName(\\\"dot\\\"); if (n > slides.length) {slideIndex = 1;} if (n < 1) {slideIndex = slides.length;} for (i = 0; i < slides.length; i++) { slides[i].style.display = \\\"none\\\"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(\\\" active\\\", \\\"\\\"); } slides[slideIndex-1].style.display = \\\"block\\\"; dots[slideIndex-1].className += \\\" active\\\";}</script>\";\nasync function drawInApp(inApp, viewId, onShowTimeFinished, onSuccess, onError) {\n var _a, _b, _c;\n if ((_a = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _a === void 0 ? void 0 : _a.contentUrl) {\n const divClient = document.getElementById(viewId);\n if (divClient) {\n divClient.style.position = \"relative\";\n divClient.style.overflow = \"hidden\";\n const headers = new Headers();\n headers.append('Content-Type', 'application/json');\n const platform = returnPlatform();\n if (platform == \"android\") {\n headers.append('x-app-android', packageName);\n }\n else if (platform == \"ios\") {\n headers.append('x-app-ios', packageName);\n }\n const options = {\n //mode: \"no-cors\",\n headers: headers\n };\n const response = await fetch(inApp.properties.contentUrl, options);\n const stringHtml = await response.text();\n divClient.innerHTML = stringHtml.concat(' ', script);\n const divsOnClick = divClient.querySelectorAll('[onclick]');\n divsOnClick.forEach((value, _index, _array) => {\n var _a;\n if ((_a = value === null || value === void 0 ? void 0 : value.getAttribute('onclick')) === null || _a === void 0 ? void 0 : _a.includes('InAppIndigitall')) {\n const onClickContent = value.getAttribute('onclick');\n value.setAttribute('onclick', `IndigitallInApp.onClick(\"${inApp}\", ${onClickContent === null || onClickContent === void 0 ? void 0 : onClickContent.replace('InAppIndigitall.onClick(', '')}`);\n }\n });\n if ((_b = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _b === void 0 ? void 0 : _b.showTime) {\n let counter = 0;\n const interval = setInterval(function () {\n counter++;\n if (counter == inApp.properties.showTime) {\n clearInterval(interval);\n if (onShowTimeFinished)\n onShowTimeFinished();\n }\n }, 1000);\n }\n if (((_c = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _c === void 0 ? void 0 : _c.layout) && inApp.properties.layout.borderRadius) {\n const borderRadius = `${parseInt(inApp.properties.layout.borderRadius)}px`;\n divClient.style.borderRadius = borderRadius;\n }\n if (onSuccess)\n onSuccess(inApp);\n }\n else {\n const message = \"div element not found\";\n if (onError)\n onError(message);\n }\n }\n}\nfunction returnPlatform() {\n const agent = navigator.userAgent;\n if ((agent.indexOf(\"Android\") > 0)) {\n return \"android\";\n }\n else if ((agent.indexOf(\"iPhone\") > 0 || (agent.indexOf(\"iPad\") > 0) || agent.indexOf(\"iPod\") > 0)) {\n return \"ios\";\n }\n else {\n return \"\";\n }\n}\nexport { IndigitallInApp };\n//# sourceMappingURL=InApp.js.map"],"names":["registerPlugin","Channel","InboxStatus"],"mappings":";;;;;;AACA,MAAM,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD;AACA,CAAC,CAAC,CAAC;AACE,MAAC,UAAU,GAAG;AACnB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,KAAK;AAC5D,QAAQ,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;AAC9B,YAAY,cAAc,EAAE,OAAO;AACnC,YAAY,WAAW,EAAE,WAAW;AACpC,SAAS,CAAC,CAAC;AACX,QAAQ,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI;AAC3D,YAAY,IAAI,2BAA2B;AAC3C,gBAAgB,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;AACtH,SAAS,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI;AAC1B,YAAY,IAAI,OAAO;AACvB,gBAAgB,OAAO,CAAC,KAAK,CAAC,CAAC;AAC/B,SAAS,CAAC,CAAC;AACX,KAAK;AACL,IAAI,SAAS,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK;AACvC,QAAQ,YAAY,CAAC,SAAS,EAAE,CAAC,IAAI,CA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AAG,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG;AACxG,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,SAAS;AACT,QAAQ,OAAO,EAAE,CAAC;AAClB,KAAK;AACL;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/Push.js","esm/models/InCustomer.js","esm/Customer.js","esm/models/InInbox.js","esm/Inbox.js","esm/InApp.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst IndigitallCp = registerPlugin('IndigitallCp', {\n//web: () => import('./web').then(m => new m.IndigitallCpWeb()),\n});\nconst Indigitall = {\n init: (config, onIndigitallInitializedType, onError) => {\n Object.assign(config, {\n productVersion: '2.0.3',\n productName: 'capacitor',\n });\n IndigitallCp.initialize({ config }).then(onInit => {\n if (onIndigitallInitializedType)\n onIndigitallInitializedType(onInit[\"device\"], onInit[\"pushPermission\"], onInit[\"locationPermission\"]);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceGet: (onSuccess, onError) => {\n IndigitallCp.deviceGet().then(response => {\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceEnable: (onSuccess, onError) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceDisable: (onSuccess, onError) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsList: (onSuccess, onError) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsSubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsUnsubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n sendCustomEvent: (customEvent, onSuccess, onError) => {\n const myCustomEvent = { customEvent };\n IndigitallCp.sendCustomEvent(myCustomEvent).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getPush: (onSuccess, onError) => {\n IndigitallCp.getPush(onSuccess, onError);\n },\n onIndigitallGetPush: (onSuccess, onError) => {\n IndigitallCp.onIndigitallGetPush(onSuccess, onError);\n },\n clearViewUrl: () => {\n IndigitallCp.clearViewUrl();\n },\n setDefaultViewUrl: (defaultView) => {\n IndigitallCp.setDefaultViewUrl({ defaultView });\n },\n onMessageReceived: (onSuccess) => {\n IndigitallCp.onMessageReceived(onSuccess);\n },\n getToken: (onSuccess, onError) => {\n IndigitallCp.getToken().then(response => {\n onSuccess(response.token);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n isIndigitallPushNotification: (notification, onSuccess, onError) => {\n IndigitallCp.isIndigitallPushNotification({ notification }).then(() => {\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logIn: (externalId, onSuccess, onError) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logOut: (onSuccess, onError) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n};\nexport { Indigitall };\n//# sourceMappingURL=Push.js.map","export var Channel;\n(function (Channel) {\n Channel[\"Push\"] = \"push\";\n Channel[\"InApp\"] = \"inapp\";\n Channel[\"Chat\"] = \"chat\";\n})(Channel || (Channel = {}));\n;\n//# sourceMappingURL=InCustomer.js.map","import { registerPlugin } from '@capacitor/core';\nimport { Channel } from './models/InCustomer';\nconst CustomerCp = registerPlugin('CustomerCp', {});\nconst Customer = {\n getCustomer: (onSuccess, onError) => {\n CustomerCp.getCustomer().then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getCustomerInformation: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.getCustomerInformation({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customerField);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n assignOrUpdateValueToCustomerFields: (fields, onSuccess, onError) => {\n CustomerCp.assignOrUpdateValueToCustomerFields({ customerFields: fields }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deleteValuesFromCustomerFields: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.deleteValuesFromCustomerFields({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n link: (params, onSuccess, onError) => {\n CustomerCp.link({ link: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n unlink: (params, onSuccess, onError) => {\n CustomerCp.unlink({ unlink: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Customer, Channel };\n//# sourceMappingURL=Customer.js.map","export var InboxStatus;\n(function (InboxStatus) {\n InboxStatus[\"sent\"] = \"sent\";\n InboxStatus[\"click\"] = \"click\";\n InboxStatus[\"deleted\"] = \"deleted\";\n})(InboxStatus || (InboxStatus = {}));\n;\n//# sourceMappingURL=InInbox.js.map","import { registerPlugin } from '@capacitor/core';\nimport { InboxStatus } from './models/InInbox';\nconst InboxCp = registerPlugin('InboxCp', {});\nconst Inbox = {\n getMessageCount: (onSuccess, onError, auth) => {\n InboxCp.getMessageCount(auth).then(response => {\n if (onSuccess)\n onSuccess(response.counters);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInbox: (onSuccess, onError, auth) => {\n InboxCp.getInbox(auth).then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getNextPage: (onSuccess, onError) => {\n InboxCp.getNextPage().then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n massiveEditNotificationsWithSendingIdsList: (params, onSuccess, onError) => {\n InboxCp.massiveEditNotificationsWithSendingIdsList({ notifications: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInfoFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.getInfoFromNotificationWithSendingId(params).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n modifyStatusFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.modifyStatusFromNotificationWithSendingId({ notification: params }).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Inbox, InboxStatus };\n//# sourceMappingURL=Inbox.js.map","import { registerPlugin } from '@capacitor/core';\nconst InAppCp = registerPlugin('InAppCp', {});\nlet packageName = '';\nconst IndigitallInApp = {\n inAppGet: (inAppSchemaCode, onSuccess, onError) => {\n InAppCp.inAppGet({ inAppSchemaCode }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n inAppWasShown: (params, onSuccess, onError) => {\n InAppCp.inAppWasShown({ params }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n addNewInAppClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n addNewInAppToDismissForever: (inApp, onSuccess) => {\n InAppCp.addNewInAppToDismissForever({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n showInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const viewId = inAppParams.viewId;\n InAppCp.inAppWasShown({ params: inAppParams }).then((response) => {\n drawInApp(response.inApp, viewId, () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n },\n showMultipleInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const inAppSchemaCodes = inAppParams.inAppCodeList;\n const viewIds = inAppParams.viewIdList;\n for (let i = 0; i < viewIds.length; i++) {\n const inAppSchemaCode = inAppSchemaCodes[i];\n InAppCp.inAppWasShown({\n params: {\n appKey: inAppParams.appKey,\n domainInApp: inAppParams.domainInApp,\n inAppSchemaCode: inAppSchemaCode,\n viewId: viewIds[i]\n }\n }).then((response) => {\n drawInApp(response.inApp, viewIds[i], () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n }\n },\n showPopUp: (params, didCancel, didClicked, didDisimissed, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, onSuccess, onError) => {\n InAppCp.showPopUp({ inApp: params }).then((response) => {\n switch (response.action) {\n case \"onSuccess\": {\n if (onSuccess)\n onSuccess();\n break;\n }\n case \"didCancel\": {\n if (didCancel)\n didCancel();\n break;\n }\n case \"didClicked\": {\n if (didClicked)\n didClicked();\n break;\n }\n case \"didDisimissed\": {\n if (didDisimissed)\n didDisimissed();\n break;\n }\n case \"onShowTimeFinished\": {\n if (onShowTimeFinished)\n onShowTimeFinished();\n break;\n }\n case \"didExpired\": {\n if (didExpired)\n didExpired();\n break;\n }\n case \"didShowManyTimes\": {\n if (didShowManyTimes)\n didShowManyTimes();\n break;\n }\n case \"didClickOut\": {\n if (didClickOut)\n didClickOut();\n break;\n }\n case \"didDismissForever\": {\n if (didDismissForever)\n didDismissForever();\n break;\n }\n }\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n eventPrintInAppRequest: (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n },\n onClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n }\n};\nconst script = \"<script> let slideIndex = 1;showSlides(slideIndex);let timeSlide = 10000;const slider = document.querySelector('.slider-container-actions');let sliderTotal = document.getElementsByClassName(\\\"slideshow-item\\\").length;let slides = document.getElementsByClassName(\\\"slideshow-item\\\");var interval = setInterval(() => { newSlide();}, timeSlide);var startMove = null;slider.addEventListener('touchstart', handleStart, false);slider.addEventListener('touchend', handleEnd, false);slider.addEventListener('mousedown', mouseStart);slider.addEventListener('mouseup', mouseEnd);function mouseStart(evt) { evt.preventDefault(); startMove = evt.clientX;}function mouseEnd(evt) { evt.preventDefault(); var endMove = evt.clientX; setEndMove(endMove);}function handleStart(evt) { evt.preventDefault(); startMove = evt.touches[0].clientX;}function handleEnd(evt) { evt.preventDefault(); var endMove = evt.changedTouches[0].pageX; setEndMove(endMove);}function setEndMove(endMove) { if (startMove != null) { if (startMove > endMove) { slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } } else { if (slideIndex == 0) { slideIndex = sliderTotal; } else { slideIndex--; } } showSlides(slideIndex ); setNewInterval(); } } function plusSlides(n) { showSlides(slideIndex += n); setNewInterval();}function currentSlide(n) { showSlides(slideIndex = n); }function setNewInterval() { clearInterval(interval); interval = setInterval(() => { newSlide(); }, timeSlide);}function newSlide(){ slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } showSlides(slideIndex);}function showSlides(n) { let i; let slides = document.getElementsByClassName(\\\"slideshow-item\\\"); let dots = document.getElementsByClassName(\\\"dot\\\"); if (n > slides.length) {slideIndex = 1;} if (n < 1) {slideIndex = slides.length;} for (i = 0; i < slides.length; i++) { slides[i].style.display = \\\"none\\\"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(\\\" active\\\", \\\"\\\"); } slides[slideIndex-1].style.display = \\\"block\\\"; dots[slideIndex-1].className += \\\" active\\\";}</script>\";\nasync function drawInApp(inApp, viewId, onShowTimeFinished, onSuccess, onError) {\n var _a, _b, _c;\n if ((_a = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _a === void 0 ? void 0 : _a.contentUrl) {\n const divClient = document.getElementById(viewId);\n if (divClient) {\n divClient.style.position = \"relative\";\n divClient.style.overflow = \"hidden\";\n const headers = new Headers();\n headers.append('Content-Type', 'application/json');\n const platform = returnPlatform();\n if (platform == \"android\") {\n headers.append('x-app-android', packageName);\n }\n else if (platform == \"ios\") {\n headers.append('x-app-ios', packageName);\n }\n const options = {\n //mode: \"no-cors\",\n headers: headers\n };\n const response = await fetch(inApp.properties.contentUrl, options);\n const stringHtml = await response.text();\n divClient.innerHTML = stringHtml.concat(' ', script);\n const divsOnClick = divClient.querySelectorAll('[onclick]');\n divsOnClick.forEach((value, _index, _array) => {\n var _a;\n if ((_a = value === null || value === void 0 ? void 0 : value.getAttribute('onclick')) === null || _a === void 0 ? void 0 : _a.includes('InAppIndigitall')) {\n const onClickContent = value.getAttribute('onclick');\n value.setAttribute('onclick', `IndigitallInApp.onClick(\"${inApp}\", ${onClickContent === null || onClickContent === void 0 ? void 0 : onClickContent.replace('InAppIndigitall.onClick(', '')}`);\n }\n });\n if ((_b = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _b === void 0 ? void 0 : _b.showTime) {\n let counter = 0;\n const interval = setInterval(function () {\n counter++;\n if (counter == inApp.properties.showTime) {\n clearInterval(interval);\n if (onShowTimeFinished)\n onShowTimeFinished();\n }\n }, 1000);\n }\n if (((_c = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _c === void 0 ? void 0 : _c.layout) && inApp.properties.layout.borderRadius) {\n const borderRadius = `${parseInt(inApp.properties.layout.borderRadius)}px`;\n divClient.style.borderRadius = borderRadius;\n }\n if (onSuccess)\n onSuccess(inApp);\n }\n else {\n const message = \"div element not found\";\n if (onError)\n onError(message);\n }\n }\n}\nfunction returnPlatform() {\n const agent = navigator.userAgent;\n if ((agent.indexOf(\"Android\") > 0)) {\n return \"android\";\n }\n else if ((agent.indexOf(\"iPhone\") > 0 || (agent.indexOf(\"iPad\") > 0) || agent.indexOf(\"iPod\") > 0)) {\n return \"ios\";\n }\n else {\n return \"\";\n }\n}\nexport { IndigitallInApp };\n//# sourceMappingURL=InApp.js.map"],"names":["registerPlugin","Channel","InboxStatus"],"mappings":";;;;;;AACA,MAAM,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD;AACA,CAAC,CAAC,CAAC;AACE,MAAC,UAAU,GAAG;AACnB,IAAI,IAAI,EAAE,CAAC,MAAM,EA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G;AAC1B,IAAI,MAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC;AACtC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG;AACxC,QAAQ,OAAO,SAAS,CAAC;AACzB,KAAK;AACL,SAAS,KAAK,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG;AACxG,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,SAAS;AACT,QAAQ,OAAO,EAAE,CAAC;AAClB,KAAK;AACL;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -7,7 +7,7 @@ var capacitorIndigitallCp = (function (exports, core) {
|
|
|
7
7
|
const Indigitall = {
|
|
8
8
|
init: (config, onIndigitallInitializedType, onError) => {
|
|
9
9
|
Object.assign(config, {
|
|
10
|
-
productVersion: '2.0.
|
|
10
|
+
productVersion: '2.0.3',
|
|
11
11
|
productName: 'capacitor',
|
|
12
12
|
});
|
|
13
13
|
IndigitallCp.initialize({ config }).then(onInit => {
|
|
@@ -82,20 +82,10 @@ var capacitorIndigitallCp = (function (exports, core) {
|
|
|
82
82
|
});
|
|
83
83
|
},
|
|
84
84
|
getPush: (onSuccess, onError) => {
|
|
85
|
-
IndigitallCp.getPush()
|
|
86
|
-
onSuccess(response.push);
|
|
87
|
-
}).catch(error => {
|
|
88
|
-
if (onError)
|
|
89
|
-
onError(error);
|
|
90
|
-
});
|
|
85
|
+
IndigitallCp.getPush(onSuccess, onError);
|
|
91
86
|
},
|
|
92
87
|
onIndigitallGetPush: (onSuccess, onError) => {
|
|
93
|
-
IndigitallCp.onIndigitallGetPush()
|
|
94
|
-
onSuccess(response.push);
|
|
95
|
-
}).catch(error => {
|
|
96
|
-
if (onError)
|
|
97
|
-
onError(error);
|
|
98
|
-
});
|
|
88
|
+
IndigitallCp.onIndigitallGetPush(onSuccess, onError);
|
|
99
89
|
},
|
|
100
90
|
clearViewUrl: () => {
|
|
101
91
|
IndigitallCp.clearViewUrl();
|
|
@@ -103,16 +93,6 @@ var capacitorIndigitallCp = (function (exports, core) {
|
|
|
103
93
|
setDefaultViewUrl: (defaultView) => {
|
|
104
94
|
IndigitallCp.setDefaultViewUrl({ defaultView });
|
|
105
95
|
},
|
|
106
|
-
// onMessageReceived: (
|
|
107
|
-
// onSuccess: OnMessageReceivedSuccessType,
|
|
108
|
-
// onError?: OnErrorCallbackType) => {
|
|
109
|
-
// IndigitallCp.onMessageReceived().then(response => {
|
|
110
|
-
// onSuccess(response.notification);
|
|
111
|
-
// }).catch(error => {
|
|
112
|
-
// if (onError)
|
|
113
|
-
// onError(error);
|
|
114
|
-
// });
|
|
115
|
-
// },
|
|
116
96
|
onMessageReceived: (onSuccess) => {
|
|
117
97
|
IndigitallCp.onMessageReceived(onSuccess);
|
|
118
98
|
},
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/Push.js","esm/models/InCustomer.js","esm/Customer.js","esm/models/InInbox.js","esm/Inbox.js","esm/InApp.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst IndigitallCp = registerPlugin('IndigitallCp', {\n//web: () => import('./web').then(m => new m.IndigitallCpWeb()),\n});\nconst Indigitall = {\n init: (config, onIndigitallInitializedType, onError) => {\n Object.assign(config, {\n productVersion: '2.0.2',\n productName: 'capacitor',\n });\n IndigitallCp.initialize({ config }).then(onInit => {\n if (onIndigitallInitializedType)\n onIndigitallInitializedType(onInit[\"device\"], onInit[\"pushPermission\"], onInit[\"locationPermission\"]);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceGet: (onSuccess, onError) => {\n IndigitallCp.deviceGet().then(response => {\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceEnable: (onSuccess, onError) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceDisable: (onSuccess, onError) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsList: (onSuccess, onError) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsSubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsUnsubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n sendCustomEvent: (customEvent, onSuccess, onError) => {\n const myCustomEvent = { customEvent };\n IndigitallCp.sendCustomEvent(myCustomEvent).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getPush: (onSuccess, onError) => {\n IndigitallCp.getPush().then(response => {\n onSuccess(response.push);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n onIndigitallGetPush: (onSuccess, onError) => {\n IndigitallCp.onIndigitallGetPush().then(response => {\n onSuccess(response.push);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n clearViewUrl: () => {\n IndigitallCp.clearViewUrl();\n },\n setDefaultViewUrl: (defaultView) => {\n IndigitallCp.setDefaultViewUrl({ defaultView });\n },\n // onMessageReceived: (\n // onSuccess: OnMessageReceivedSuccessType,\n // onError?: OnErrorCallbackType) => {\n // IndigitallCp.onMessageReceived().then(response => {\n // onSuccess(response.notification);\n // }).catch(error => {\n // if (onError)\n // onError(error);\n // });\n // },\n onMessageReceived: (onSuccess) => {\n IndigitallCp.onMessageReceived(onSuccess);\n },\n getToken: (onSuccess, onError) => {\n IndigitallCp.getToken().then(response => {\n onSuccess(response.token);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n isIndigitallPushNotification: (notification, onSuccess, onError) => {\n IndigitallCp.isIndigitallPushNotification({ notification }).then(() => {\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logIn: (externalId, onSuccess, onError) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logOut: (onSuccess, onError) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n};\nexport { Indigitall };\n//# sourceMappingURL=Push.js.map","export var Channel;\n(function (Channel) {\n Channel[\"Push\"] = \"push\";\n Channel[\"InApp\"] = \"inapp\";\n Channel[\"Chat\"] = \"chat\";\n})(Channel || (Channel = {}));\n;\n//# sourceMappingURL=InCustomer.js.map","import { registerPlugin } from '@capacitor/core';\nimport { Channel } from './models/InCustomer';\nconst CustomerCp = registerPlugin('CustomerCp', {});\nconst Customer = {\n getCustomer: (onSuccess, onError) => {\n CustomerCp.getCustomer().then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getCustomerInformation: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.getCustomerInformation({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customerField);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n assignOrUpdateValueToCustomerFields: (fields, onSuccess, onError) => {\n CustomerCp.assignOrUpdateValueToCustomerFields({ customerFields: fields }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deleteValuesFromCustomerFields: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.deleteValuesFromCustomerFields({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n link: (params, onSuccess, onError) => {\n CustomerCp.link({ link: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n unlink: (params, onSuccess, onError) => {\n CustomerCp.unlink({ unlink: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Customer, Channel };\n//# sourceMappingURL=Customer.js.map","export var InboxStatus;\n(function (InboxStatus) {\n InboxStatus[\"sent\"] = \"sent\";\n InboxStatus[\"click\"] = \"click\";\n InboxStatus[\"deleted\"] = \"deleted\";\n})(InboxStatus || (InboxStatus = {}));\n;\n//# sourceMappingURL=InInbox.js.map","import { registerPlugin } from '@capacitor/core';\nimport { InboxStatus } from './models/InInbox';\nconst InboxCp = registerPlugin('InboxCp', {});\nconst Inbox = {\n getMessageCount: (onSuccess, onError, auth) => {\n InboxCp.getMessageCount(auth).then(response => {\n if (onSuccess)\n onSuccess(response.counters);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInbox: (onSuccess, onError, auth) => {\n InboxCp.getInbox(auth).then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getNextPage: (onSuccess, onError) => {\n InboxCp.getNextPage().then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n massiveEditNotificationsWithSendingIdsList: (params, onSuccess, onError) => {\n InboxCp.massiveEditNotificationsWithSendingIdsList({ notifications: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInfoFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.getInfoFromNotificationWithSendingId(params).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n modifyStatusFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.modifyStatusFromNotificationWithSendingId({ notification: params }).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Inbox, InboxStatus };\n//# sourceMappingURL=Inbox.js.map","import { registerPlugin } from '@capacitor/core';\nconst InAppCp = registerPlugin('InAppCp', {});\nlet packageName = '';\nconst IndigitallInApp = {\n inAppGet: (inAppSchemaCode, onSuccess, onError) => {\n InAppCp.inAppGet({ inAppSchemaCode }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n inAppWasShown: (params, onSuccess, onError) => {\n InAppCp.inAppWasShown({ params }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n addNewInAppClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n addNewInAppToDismissForever: (inApp, onSuccess) => {\n InAppCp.addNewInAppToDismissForever({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n showInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const viewId = inAppParams.viewId;\n InAppCp.inAppWasShown({ params: inAppParams }).then((response) => {\n drawInApp(response.inApp, viewId, () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n },\n showMultipleInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const inAppSchemaCodes = inAppParams.inAppCodeList;\n const viewIds = inAppParams.viewIdList;\n for (let i = 0; i < viewIds.length; i++) {\n const inAppSchemaCode = inAppSchemaCodes[i];\n InAppCp.inAppWasShown({\n params: {\n appKey: inAppParams.appKey,\n domainInApp: inAppParams.domainInApp,\n inAppSchemaCode: inAppSchemaCode,\n viewId: viewIds[i]\n }\n }).then((response) => {\n drawInApp(response.inApp, viewIds[i], () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n }\n },\n showPopUp: (params, didCancel, didClicked, didDisimissed, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, onSuccess, onError) => {\n InAppCp.showPopUp({ inApp: params }).then((response) => {\n switch (response.action) {\n case \"onSuccess\": {\n if (onSuccess)\n onSuccess();\n break;\n }\n case \"didCancel\": {\n if (didCancel)\n didCancel();\n break;\n }\n case \"didClicked\": {\n if (didClicked)\n didClicked();\n break;\n }\n case \"didDisimissed\": {\n if (didDisimissed)\n didDisimissed();\n break;\n }\n case \"onShowTimeFinished\": {\n if (onShowTimeFinished)\n onShowTimeFinished();\n break;\n }\n case \"didExpired\": {\n if (didExpired)\n didExpired();\n break;\n }\n case \"didShowManyTimes\": {\n if (didShowManyTimes)\n didShowManyTimes();\n break;\n }\n case \"didClickOut\": {\n if (didClickOut)\n didClickOut();\n break;\n }\n case \"didDismissForever\": {\n if (didDismissForever)\n didDismissForever();\n break;\n }\n }\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n eventPrintInAppRequest: (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n },\n onClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n }\n};\nconst script = \"<script> let slideIndex = 1;showSlides(slideIndex);let timeSlide = 10000;const slider = document.querySelector('.slider-container-actions');let sliderTotal = document.getElementsByClassName(\\\"slideshow-item\\\").length;let slides = document.getElementsByClassName(\\\"slideshow-item\\\");var interval = setInterval(() => { newSlide();}, timeSlide);var startMove = null;slider.addEventListener('touchstart', handleStart, false);slider.addEventListener('touchend', handleEnd, false);slider.addEventListener('mousedown', mouseStart);slider.addEventListener('mouseup', mouseEnd);function mouseStart(evt) { evt.preventDefault(); startMove = evt.clientX;}function mouseEnd(evt) { evt.preventDefault(); var endMove = evt.clientX; setEndMove(endMove);}function handleStart(evt) { evt.preventDefault(); startMove = evt.touches[0].clientX;}function handleEnd(evt) { evt.preventDefault(); var endMove = evt.changedTouches[0].pageX; setEndMove(endMove);}function setEndMove(endMove) { if (startMove != null) { if (startMove > endMove) { slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } } else { if (slideIndex == 0) { slideIndex = sliderTotal; } else { slideIndex--; } } showSlides(slideIndex ); setNewInterval(); } } function plusSlides(n) { showSlides(slideIndex += n); setNewInterval();}function currentSlide(n) { showSlides(slideIndex = n); }function setNewInterval() { clearInterval(interval); interval = setInterval(() => { newSlide(); }, timeSlide);}function newSlide(){ slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } showSlides(slideIndex);}function showSlides(n) { let i; let slides = document.getElementsByClassName(\\\"slideshow-item\\\"); let dots = document.getElementsByClassName(\\\"dot\\\"); if (n > slides.length) {slideIndex = 1;} if (n < 1) {slideIndex = slides.length;} for (i = 0; i < slides.length; i++) { slides[i].style.display = \\\"none\\\"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(\\\" active\\\", \\\"\\\"); } slides[slideIndex-1].style.display = \\\"block\\\"; dots[slideIndex-1].className += \\\" active\\\";}</script>\";\nasync function drawInApp(inApp, viewId, onShowTimeFinished, onSuccess, onError) {\n var _a, _b, _c;\n if ((_a = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _a === void 0 ? void 0 : _a.contentUrl) {\n const divClient = document.getElementById(viewId);\n if (divClient) {\n divClient.style.position = \"relative\";\n divClient.style.overflow = \"hidden\";\n const headers = new Headers();\n headers.append('Content-Type', 'application/json');\n const platform = returnPlatform();\n if (platform == \"android\") {\n headers.append('x-app-android', packageName);\n }\n else if (platform == \"ios\") {\n headers.append('x-app-ios', packageName);\n }\n const options = {\n //mode: \"no-cors\",\n headers: headers\n };\n const response = await fetch(inApp.properties.contentUrl, options);\n const stringHtml = await response.text();\n divClient.innerHTML = stringHtml.concat(' ', script);\n const divsOnClick = divClient.querySelectorAll('[onclick]');\n divsOnClick.forEach((value, _index, _array) => {\n var _a;\n if ((_a = value === null || value === void 0 ? void 0 : value.getAttribute('onclick')) === null || _a === void 0 ? void 0 : _a.includes('InAppIndigitall')) {\n const onClickContent = value.getAttribute('onclick');\n value.setAttribute('onclick', `IndigitallInApp.onClick(\"${inApp}\", ${onClickContent === null || onClickContent === void 0 ? void 0 : onClickContent.replace('InAppIndigitall.onClick(', '')}`);\n }\n });\n if ((_b = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _b === void 0 ? void 0 : _b.showTime) {\n let counter = 0;\n const interval = setInterval(function () {\n counter++;\n if (counter == inApp.properties.showTime) {\n clearInterval(interval);\n if (onShowTimeFinished)\n onShowTimeFinished();\n }\n }, 1000);\n }\n if (((_c = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _c === void 0 ? void 0 : _c.layout) && inApp.properties.layout.borderRadius) {\n const borderRadius = `${parseInt(inApp.properties.layout.borderRadius)}px`;\n divClient.style.borderRadius = borderRadius;\n }\n if (onSuccess)\n onSuccess(inApp);\n }\n else {\n const message = \"div element not found\";\n if (onError)\n onError(message);\n }\n }\n}\nfunction returnPlatform() {\n const agent = navigator.userAgent;\n if ((agent.indexOf(\"Android\") > 0)) {\n return \"android\";\n }\n else if ((agent.indexOf(\"iPhone\") > 0 || (agent.indexOf(\"iPad\") > 0) || agent.indexOf(\"iPod\") > 0)) {\n return \"ios\";\n }\n else {\n return \"\";\n }\n}\nexport { IndigitallInApp };\n//# sourceMappingURL=InApp.js.map"],"names":["registerPlugin","Channel","InboxStatus"],"mappings":";;;IACA,MAAM,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD;IACA,CAAC,CAAC,CAAC;AACE,UAAC,UAAU,GAAG;IACnB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,KAAK;IAC5D,QAAQ,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;IAC9B,YAAY,cAAc,EAAE,OAAO;IACnC,YAAY,WAAW,EAAE,WAAW;IACpC,SAAS,CAAC,CAAC;IACX,QAAQ,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI;IAC3D,YAAY,IAAI,2BAA2B;IAC3C,gBAAgB,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACtH,SAAS,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI;IAC1B,YAAY,IAAI,OAAO;IACvB,gBAAgB,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,SAAS,CAAC,CAAC;IACX,KAAK;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GAAG;IACxC,QAAQ,OAAO,SAAS,CAAC;IACzB,KAAK;IACL,SAAS,KAAK,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG;IACxG,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,SAAS;IACT,QAAQ,OAAO,EAAE,CAAC;IAClB,KAAK;IACL;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/Push.js","esm/models/InCustomer.js","esm/Customer.js","esm/models/InInbox.js","esm/Inbox.js","esm/InApp.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst IndigitallCp = registerPlugin('IndigitallCp', {\n//web: () => import('./web').then(m => new m.IndigitallCpWeb()),\n});\nconst Indigitall = {\n init: (config, onIndigitallInitializedType, onError) => {\n Object.assign(config, {\n productVersion: '2.0.3',\n productName: 'capacitor',\n });\n IndigitallCp.initialize({ config }).then(onInit => {\n if (onIndigitallInitializedType)\n onIndigitallInitializedType(onInit[\"device\"], onInit[\"pushPermission\"], onInit[\"locationPermission\"]);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceGet: (onSuccess, onError) => {\n IndigitallCp.deviceGet().then(response => {\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceEnable: (onSuccess, onError) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deviceDisable: (onSuccess, onError) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsList: (onSuccess, onError) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsSubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n topicsUnsubscribe: (topics, onSuccess, onError) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess)\n onSuccess(response.topics);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n sendCustomEvent: (customEvent, onSuccess, onError) => {\n const myCustomEvent = { customEvent };\n IndigitallCp.sendCustomEvent(myCustomEvent).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getPush: (onSuccess, onError) => {\n IndigitallCp.getPush(onSuccess, onError);\n },\n onIndigitallGetPush: (onSuccess, onError) => {\n IndigitallCp.onIndigitallGetPush(onSuccess, onError);\n },\n clearViewUrl: () => {\n IndigitallCp.clearViewUrl();\n },\n setDefaultViewUrl: (defaultView) => {\n IndigitallCp.setDefaultViewUrl({ defaultView });\n },\n onMessageReceived: (onSuccess) => {\n IndigitallCp.onMessageReceived(onSuccess);\n },\n getToken: (onSuccess, onError) => {\n IndigitallCp.getToken().then(response => {\n onSuccess(response.token);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n isIndigitallPushNotification: (notification, onSuccess, onError) => {\n IndigitallCp.isIndigitallPushNotification({ notification }).then(() => {\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logIn: (externalId, onSuccess, onError) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n logOut: (onSuccess, onError) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess)\n onSuccess(response.device);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n};\nexport { Indigitall };\n//# sourceMappingURL=Push.js.map","export var Channel;\n(function (Channel) {\n Channel[\"Push\"] = \"push\";\n Channel[\"InApp\"] = \"inapp\";\n Channel[\"Chat\"] = \"chat\";\n})(Channel || (Channel = {}));\n;\n//# sourceMappingURL=InCustomer.js.map","import { registerPlugin } from '@capacitor/core';\nimport { Channel } from './models/InCustomer';\nconst CustomerCp = registerPlugin('CustomerCp', {});\nconst Customer = {\n getCustomer: (onSuccess, onError) => {\n CustomerCp.getCustomer().then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getCustomerInformation: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.getCustomerInformation({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customerField);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n assignOrUpdateValueToCustomerFields: (fields, onSuccess, onError) => {\n CustomerCp.assignOrUpdateValueToCustomerFields({ customerFields: fields }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n deleteValuesFromCustomerFields: (fieldNamesList, onSuccess, onError) => {\n CustomerCp.deleteValuesFromCustomerFields({ fieldNamesList }).then(response => {\n if (onSuccess)\n onSuccess(response.customer);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n link: (params, onSuccess, onError) => {\n CustomerCp.link({ link: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n unlink: (params, onSuccess, onError) => {\n CustomerCp.unlink({ unlink: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Customer, Channel };\n//# sourceMappingURL=Customer.js.map","export var InboxStatus;\n(function (InboxStatus) {\n InboxStatus[\"sent\"] = \"sent\";\n InboxStatus[\"click\"] = \"click\";\n InboxStatus[\"deleted\"] = \"deleted\";\n})(InboxStatus || (InboxStatus = {}));\n;\n//# sourceMappingURL=InInbox.js.map","import { registerPlugin } from '@capacitor/core';\nimport { InboxStatus } from './models/InInbox';\nconst InboxCp = registerPlugin('InboxCp', {});\nconst Inbox = {\n getMessageCount: (onSuccess, onError, auth) => {\n InboxCp.getMessageCount(auth).then(response => {\n if (onSuccess)\n onSuccess(response.counters);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInbox: (onSuccess, onError, auth) => {\n InboxCp.getInbox(auth).then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getNextPage: (onSuccess, onError) => {\n InboxCp.getNextPage().then(response => {\n if (onSuccess)\n onSuccess(response.inbox);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n massiveEditNotificationsWithSendingIdsList: (params, onSuccess, onError) => {\n InboxCp.massiveEditNotificationsWithSendingIdsList({ notifications: params }).then(() => {\n if (onSuccess)\n onSuccess();\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n getInfoFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.getInfoFromNotificationWithSendingId(params).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n modifyStatusFromNotificationWithSendingId: (params, onSuccess, onError) => {\n InboxCp.modifyStatusFromNotificationWithSendingId({ notification: params }).then(response => {\n if (onSuccess)\n onSuccess(response.inboxNotification);\n }).catch(error => {\n if (onError)\n onError(error);\n });\n }\n};\nexport { Inbox, InboxStatus };\n//# sourceMappingURL=Inbox.js.map","import { registerPlugin } from '@capacitor/core';\nconst InAppCp = registerPlugin('InAppCp', {});\nlet packageName = '';\nconst IndigitallInApp = {\n inAppGet: (inAppSchemaCode, onSuccess, onError) => {\n InAppCp.inAppGet({ inAppSchemaCode }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n inAppWasShown: (params, onSuccess, onError) => {\n InAppCp.inAppWasShown({ params }).then((response) => {\n if (onSuccess)\n onSuccess(response.inApp);\n }, (error) => {\n if (onError)\n onError(error);\n });\n },\n addNewInAppClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n addNewInAppToDismissForever: (inApp, onSuccess) => {\n InAppCp.addNewInAppToDismissForever({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n },\n showInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const viewId = inAppParams.viewId;\n InAppCp.inAppWasShown({ params: inAppParams }).then((response) => {\n drawInApp(response.inApp, viewId, () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n },\n showMultipleInApp: (inAppParams, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, onSuccess, onError) => {\n InAppCp.getPackageName().then((response) => {\n packageName = response.packageName;\n });\n const inAppSchemaCodes = inAppParams.inAppCodeList;\n const viewIds = inAppParams.viewIdList;\n for (let i = 0; i < viewIds.length; i++) {\n const inAppSchemaCode = inAppSchemaCodes[i];\n InAppCp.inAppWasShown({\n params: {\n appKey: inAppParams.appKey,\n domainInApp: inAppParams.domainInApp,\n inAppSchemaCode: inAppSchemaCode,\n viewId: viewIds[i]\n }\n }).then((response) => {\n drawInApp(response.inApp, viewIds[i], () => {\n if (onShowTimeFinished)\n onShowTimeFinished(response.inApp.showTime);\n }, (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n if (onSuccess)\n onSuccess(inApp);\n }, onError);\n }, (errorJson) => {\n if (errorJson.errorCode == 2101) {\n if (didExpired)\n didExpired(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2102) {\n if (didShowManyTimes)\n didShowManyTimes(errorJson.errorMessage);\n }\n else if (errorJson.errorCode == 2103) {\n if (didClickOut)\n didClickOut(errorJson.errorMessage);\n }\n else {\n if (onError)\n onError(errorJson.errorMessage);\n }\n });\n }\n },\n showPopUp: (params, didCancel, didClicked, didDisimissed, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, onSuccess, onError) => {\n InAppCp.showPopUp({ inApp: params }).then((response) => {\n switch (response.action) {\n case \"onSuccess\": {\n if (onSuccess)\n onSuccess();\n break;\n }\n case \"didCancel\": {\n if (didCancel)\n didCancel();\n break;\n }\n case \"didClicked\": {\n if (didClicked)\n didClicked();\n break;\n }\n case \"didDisimissed\": {\n if (didDisimissed)\n didDisimissed();\n break;\n }\n case \"onShowTimeFinished\": {\n if (onShowTimeFinished)\n onShowTimeFinished();\n break;\n }\n case \"didExpired\": {\n if (didExpired)\n didExpired();\n break;\n }\n case \"didShowManyTimes\": {\n if (didShowManyTimes)\n didShowManyTimes();\n break;\n }\n case \"didClickOut\": {\n if (didClickOut)\n didClickOut();\n break;\n }\n case \"didDismissForever\": {\n if (didDismissForever)\n didDismissForever();\n break;\n }\n }\n }).catch(error => {\n if (onError)\n onError(error);\n });\n },\n eventPrintInAppRequest: (inApp) => {\n InAppCp.eventPrintInAppRequest({ inApp });\n },\n onClick: (inApp, onSuccess) => {\n InAppCp.addNewInAppClick({ inApp }).then(() => {\n if (onSuccess)\n onSuccess();\n });\n }\n};\nconst script = \"<script> let slideIndex = 1;showSlides(slideIndex);let timeSlide = 10000;const slider = document.querySelector('.slider-container-actions');let sliderTotal = document.getElementsByClassName(\\\"slideshow-item\\\").length;let slides = document.getElementsByClassName(\\\"slideshow-item\\\");var interval = setInterval(() => { newSlide();}, timeSlide);var startMove = null;slider.addEventListener('touchstart', handleStart, false);slider.addEventListener('touchend', handleEnd, false);slider.addEventListener('mousedown', mouseStart);slider.addEventListener('mouseup', mouseEnd);function mouseStart(evt) { evt.preventDefault(); startMove = evt.clientX;}function mouseEnd(evt) { evt.preventDefault(); var endMove = evt.clientX; setEndMove(endMove);}function handleStart(evt) { evt.preventDefault(); startMove = evt.touches[0].clientX;}function handleEnd(evt) { evt.preventDefault(); var endMove = evt.changedTouches[0].pageX; setEndMove(endMove);}function setEndMove(endMove) { if (startMove != null) { if (startMove > endMove) { slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } } else { if (slideIndex == 0) { slideIndex = sliderTotal; } else { slideIndex--; } } showSlides(slideIndex ); setNewInterval(); } } function plusSlides(n) { showSlides(slideIndex += n); setNewInterval();}function currentSlide(n) { showSlides(slideIndex = n); }function setNewInterval() { clearInterval(interval); interval = setInterval(() => { newSlide(); }, timeSlide);}function newSlide(){ slideIndex++; if (slideIndex > sliderTotal) { slideIndex = 1; } showSlides(slideIndex);}function showSlides(n) { let i; let slides = document.getElementsByClassName(\\\"slideshow-item\\\"); let dots = document.getElementsByClassName(\\\"dot\\\"); if (n > slides.length) {slideIndex = 1;} if (n < 1) {slideIndex = slides.length;} for (i = 0; i < slides.length; i++) { slides[i].style.display = \\\"none\\\"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(\\\" active\\\", \\\"\\\"); } slides[slideIndex-1].style.display = \\\"block\\\"; dots[slideIndex-1].className += \\\" active\\\";}</script>\";\nasync function drawInApp(inApp, viewId, onShowTimeFinished, onSuccess, onError) {\n var _a, _b, _c;\n if ((_a = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _a === void 0 ? void 0 : _a.contentUrl) {\n const divClient = document.getElementById(viewId);\n if (divClient) {\n divClient.style.position = \"relative\";\n divClient.style.overflow = \"hidden\";\n const headers = new Headers();\n headers.append('Content-Type', 'application/json');\n const platform = returnPlatform();\n if (platform == \"android\") {\n headers.append('x-app-android', packageName);\n }\n else if (platform == \"ios\") {\n headers.append('x-app-ios', packageName);\n }\n const options = {\n //mode: \"no-cors\",\n headers: headers\n };\n const response = await fetch(inApp.properties.contentUrl, options);\n const stringHtml = await response.text();\n divClient.innerHTML = stringHtml.concat(' ', script);\n const divsOnClick = divClient.querySelectorAll('[onclick]');\n divsOnClick.forEach((value, _index, _array) => {\n var _a;\n if ((_a = value === null || value === void 0 ? void 0 : value.getAttribute('onclick')) === null || _a === void 0 ? void 0 : _a.includes('InAppIndigitall')) {\n const onClickContent = value.getAttribute('onclick');\n value.setAttribute('onclick', `IndigitallInApp.onClick(\"${inApp}\", ${onClickContent === null || onClickContent === void 0 ? void 0 : onClickContent.replace('InAppIndigitall.onClick(', '')}`);\n }\n });\n if ((_b = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _b === void 0 ? void 0 : _b.showTime) {\n let counter = 0;\n const interval = setInterval(function () {\n counter++;\n if (counter == inApp.properties.showTime) {\n clearInterval(interval);\n if (onShowTimeFinished)\n onShowTimeFinished();\n }\n }, 1000);\n }\n if (((_c = inApp === null || inApp === void 0 ? void 0 : inApp.properties) === null || _c === void 0 ? void 0 : _c.layout) && inApp.properties.layout.borderRadius) {\n const borderRadius = `${parseInt(inApp.properties.layout.borderRadius)}px`;\n divClient.style.borderRadius = borderRadius;\n }\n if (onSuccess)\n onSuccess(inApp);\n }\n else {\n const message = \"div element not found\";\n if (onError)\n onError(message);\n }\n }\n}\nfunction returnPlatform() {\n const agent = navigator.userAgent;\n if ((agent.indexOf(\"Android\") > 0)) {\n return \"android\";\n }\n else if ((agent.indexOf(\"iPhone\") > 0 || (agent.indexOf(\"iPad\") > 0) || agent.indexOf(\"iPod\") > 0)) {\n return \"ios\";\n }\n else {\n return \"\";\n }\n}\nexport { IndigitallInApp };\n//# sourceMappingURL=InApp.js.map"],"names":["registerPlugin","Channel","InboxStatus"],"mappings":";;;IACA,MAAM,YAAY,GAAGA,mBAAc,CA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,OAAO;IACvB,gBAAgB,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,SAAS;IACT,KAAK;IACL,CAAC;IACD,SAAS,cAAc,GAAG;IAC1B,IAAI,MAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC;IACtC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG;IACxC,QAAQ,OAAO,SAAS,CAAC;IACzB,KAAK;IACL,SAAS,KAAK,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG;IACxG,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,SAAS;IACT,QAAQ,OAAO,EAAE,CAAC;IAClB,KAAK;IACL;;;;;;;;;;;;;;;"}
|
|
@@ -140,7 +140,8 @@ public class IndigitallCpPlugin: CAPPlugin {
|
|
|
140
140
|
}
|
|
141
141
|
if let dictionaryPush = CpINDefaults.getIndigitallHandleWithNotificationPush() {
|
|
142
142
|
CpINDefaults.setIndigitallHandleWithNotificationPush(nil)
|
|
143
|
-
call.
|
|
143
|
+
call.keepAlive = true
|
|
144
|
+
call.resolve(dictionaryPush as NSDictionary as! [String: AnyObject] as! [String : NSObject])
|
|
144
145
|
} else {
|
|
145
146
|
call.reject("getPush error")
|
|
146
147
|
}
|
|
@@ -152,17 +153,22 @@ public class IndigitallCpPlugin: CAPPlugin {
|
|
|
152
153
|
if (self.getOnIndigitallPushCall != nil) {
|
|
153
154
|
let urlGetPushMethod = CpINDefaults.getGetPushMethodUrl()
|
|
154
155
|
let urlGetNativePushMethod = CpINDefaults.getGetNativePushMethodUrl()
|
|
155
|
-
if (urlGetNativePushMethod != nil &&
|
|
156
|
+
if (urlGetNativePushMethod != nil && urlGetNativePushMethod != "" && self.bridge?.config.localURL.absoluteString != urlGetNativePushMethod) {
|
|
156
157
|
self.webView?.loadHTMLString(urlGetNativePushMethod ?? "", baseURL: nil)
|
|
157
|
-
} else if (urlGetPushMethod != nil) {
|
|
158
|
+
} else if (urlGetPushMethod != nil && urlGetPushMethod != "") {
|
|
158
159
|
if let localUrl = self.bridge?.config.localURL.absoluteString { let completUrl = localUrl+"/"+(urlGetPushMethod ?? "")
|
|
159
160
|
self.webView?.loadHTMLString(completUrl, baseURL: nil)
|
|
160
161
|
}
|
|
162
|
+
} else {
|
|
163
|
+
if let url = self.bridge?.config.localURL.absoluteString {
|
|
164
|
+
self.webView?.loadHTMLString(url, baseURL: nil)
|
|
165
|
+
}
|
|
161
166
|
}
|
|
162
167
|
}
|
|
163
|
-
self.getOnIndigitallPushCall?.keepAlive = true
|
|
164
168
|
//CpINDefaults.setIndigitallHandleWithNotificationPush(nil)
|
|
165
|
-
self.getOnIndigitallPushCall?.
|
|
169
|
+
self.getOnIndigitallPushCall?.keepAlive = true
|
|
170
|
+
CpINDefaults.setIndigitallHandleWithNotificationPush(nil)
|
|
171
|
+
self.getOnIndigitallPushCall?.resolve(userInfo as NSDictionary as! [String: AnyObject] as! [String : NSObject])
|
|
166
172
|
})
|
|
167
173
|
}
|
|
168
174
|
|
|
@@ -181,23 +187,25 @@ public class IndigitallCpPlugin: CAPPlugin {
|
|
|
181
187
|
|
|
182
188
|
|
|
183
189
|
@objc func onIndigitallGetPush(_ call: CAPPluginCall) {
|
|
190
|
+
call.keepAlive = true
|
|
184
191
|
self.getOnIndigitallPushCall = call
|
|
185
192
|
DispatchQueue.main.async(execute: {
|
|
186
193
|
let url = self.bridge?.config.localURL.absoluteString
|
|
187
194
|
let urlGetPushMethod = CpINDefaults.getGetPushMethodUrl()
|
|
188
|
-
if (urlGetPushMethod == nil) {
|
|
195
|
+
if (urlGetPushMethod == nil || urlGetPushMethod == "") {
|
|
189
196
|
CpINDefaults.setGetNativePushMethodUrl(url)
|
|
190
197
|
}
|
|
191
198
|
if (CpINDefaults.getIndigitallHandleWithNotificationPush() != nil) {
|
|
192
199
|
if let dictionaryPush = CpINDefaults.getIndigitallHandleWithNotificationPush() {
|
|
193
|
-
|
|
200
|
+
self.getOnIndigitallPushCall?.keepAlive = true
|
|
201
|
+
call.resolve(dictionaryPush as NSDictionary as! [String: AnyObject] as! [String : NSObject])
|
|
194
202
|
CpINDefaults.setIndigitallHandleWithNotificationPush(nil)
|
|
195
203
|
} else {
|
|
196
204
|
call.reject("getPush error")
|
|
197
205
|
}
|
|
198
|
-
|
|
199
206
|
}
|
|
200
207
|
})
|
|
208
|
+
|
|
201
209
|
}
|
|
202
210
|
|
|
203
211
|
@objc func onMessageReceived(_ call: CAPPluginCall) {
|
|
@@ -12,10 +12,10 @@ CAP_PLUGIN(IndigitallCpPlugin, "IndigitallCp",
|
|
|
12
12
|
CAP_PLUGIN_METHOD(topicsSubscribe, CAPPluginReturnPromise);
|
|
13
13
|
CAP_PLUGIN_METHOD(topicsUnsubscribe, CAPPluginReturnPromise);
|
|
14
14
|
CAP_PLUGIN_METHOD(sendCustomEvent, CAPPluginReturnPromise);
|
|
15
|
-
CAP_PLUGIN_METHOD(getPush,
|
|
16
|
-
CAP_PLUGIN_METHOD(onIndigitallGetPush,
|
|
17
|
-
CAP_PLUGIN_METHOD(setDefaultViewUrl,
|
|
18
|
-
CAP_PLUGIN_METHOD(clearViewUrl,
|
|
15
|
+
CAP_PLUGIN_METHOD(getPush, CAPPluginReturnCallback);
|
|
16
|
+
CAP_PLUGIN_METHOD(onIndigitallGetPush, CAPPluginReturnCallback);
|
|
17
|
+
CAP_PLUGIN_METHOD(setDefaultViewUrl, CAPPluginReturnNone);
|
|
18
|
+
CAP_PLUGIN_METHOD(clearViewUrl, CAPPluginReturnNone);
|
|
19
19
|
CAP_PLUGIN_METHOD(onMessageReceived, CAPPluginReturnCallback);
|
|
20
20
|
CAP_PLUGIN_METHOD(getToken, CAPPluginReturnPromise);
|
|
21
21
|
CAP_PLUGIN_METHOD(isIndigitallPushNotification, CAPPluginReturnPromise);
|