indigitall-capacitor-plugin 0.0.1
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/IndigitallCapacitorPlugin.podspec +18 -0
- package/README.md +171 -0
- package/android/build.gradle +60 -0
- package/android/src/main/AndroidManifest.xml +47 -0
- package/android/src/main/java/com/indigitall/capacitor/IndigitallCpPlugin.java +263 -0
- package/android/src/main/java/com/indigitall/capacitor/IndigitallCustomerPlugin.java +143 -0
- package/android/src/main/java/com/indigitall/capacitor/IndigitallInAppPlugin.java +159 -0
- package/android/src/main/java/com/indigitall/capacitor/IndigitallInboxPlugin.java +150 -0
- package/android/src/main/java/com/indigitall/capacitor/implementations/CustomerCp.java +91 -0
- package/android/src/main/java/com/indigitall/capacitor/implementations/InAppCp.java +74 -0
- package/android/src/main/java/com/indigitall/capacitor/implementations/InboxCp.java +118 -0
- package/android/src/main/java/com/indigitall/capacitor/implementations/IndigitallCp.java +130 -0
- package/android/src/main/java/com/indigitall/capacitor/utils/IndigitallParse.java +480 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +155 -0
- package/dist/esm/Customer.d.ts +4 -0
- package/dist/esm/Customer.js +61 -0
- package/dist/esm/Customer.js.map +1 -0
- package/dist/esm/InApp.d.ts +3 -0
- package/dist/esm/InApp.js +187 -0
- package/dist/esm/InApp.js.map +1 -0
- package/dist/esm/Inbox.d.ts +4 -0
- package/dist/esm/Inbox.js +61 -0
- package/dist/esm/Inbox.js.map +1 -0
- package/dist/esm/Push.d.ts +3 -0
- package/dist/esm/Push.js +110 -0
- package/dist/esm/Push.js.map +1 -0
- package/dist/esm/callbacks/callbacksType.d.ts +20 -0
- package/dist/esm/callbacks/callbacksType.js +2 -0
- package/dist/esm/callbacks/callbacksType.js.map +1 -0
- package/dist/esm/definitions/customerDefinitions.d.ts +34 -0
- package/dist/esm/definitions/customerDefinitions.js +2 -0
- package/dist/esm/definitions/customerDefinitions.js.map +1 -0
- package/dist/esm/definitions/inAppDefinitions.d.ts +35 -0
- package/dist/esm/definitions/inAppDefinitions.js +2 -0
- package/dist/esm/definitions/inAppDefinitions.js.map +1 -0
- package/dist/esm/definitions/inboxDefinitions.d.ts +30 -0
- package/dist/esm/definitions/inboxDefinitions.js +2 -0
- package/dist/esm/definitions/inboxDefinitions.js.map +1 -0
- package/dist/esm/definitions/pushDefinitions.d.ts +38 -0
- package/dist/esm/definitions/pushDefinitions.js +2 -0
- package/dist/esm/definitions/pushDefinitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/InCustomer.d.ts +16 -0
- package/dist/esm/models/InCustomer.js +8 -0
- package/dist/esm/models/InCustomer.js.map +1 -0
- package/dist/esm/models/InDevice.d.ts +31 -0
- package/dist/esm/models/InDevice.js +2 -0
- package/dist/esm/models/InDevice.js.map +1 -0
- package/dist/esm/models/InInApp.d.ts +31 -0
- package/dist/esm/models/InInApp.js +2 -0
- package/dist/esm/models/InInApp.js.map +1 -0
- package/dist/esm/models/InInbox.d.ts +31 -0
- package/dist/esm/models/InInbox.js +8 -0
- package/dist/esm/models/InInbox.js.map +1 -0
- package/dist/esm/models/InPush.d.ts +22 -0
- package/dist/esm/models/InPush.js +2 -0
- package/dist/esm/models/InPush.js.map +1 -0
- package/dist/esm/params/customerParams.d.ts +11 -0
- package/dist/esm/params/customerParams.js +3 -0
- package/dist/esm/params/customerParams.js.map +1 -0
- package/dist/esm/params/inAppParams.d.ts +17 -0
- package/dist/esm/params/inAppParams.js +3 -0
- package/dist/esm/params/inAppParams.js.map +1 -0
- package/dist/esm/params/inboxParams.d.ts +15 -0
- package/dist/esm/params/inboxParams.js +3 -0
- package/dist/esm/params/inboxParams.js.map +1 -0
- package/dist/esm/params/pushParams.d.ts +22 -0
- package/dist/esm/params/pushParams.js +2 -0
- package/dist/esm/params/pushParams.js.map +1 -0
- package/dist/plugin.cjs.js +434 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +437 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/IndigitallCpPlugin.swift +152 -0
- package/ios/Plugin/IndigitallCustomerPlugin.swift +76 -0
- package/ios/Plugin/IndigitallInAppPlugin.swift +54 -0
- package/ios/Plugin/IndigitallInboxPlugin.swift +81 -0
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/handlers/IndigitallNotificationHandler.swift +38 -0
- package/ios/Plugin/implementations/CustomerCp.swift +56 -0
- package/ios/Plugin/implementations/InAppCp.swift +88 -0
- package/ios/Plugin/implementations/InboxCp.swift +78 -0
- package/ios/Plugin/implementations/IndigitallCp.swift +122 -0
- package/ios/Plugin/interfaces/IndigitallCpPlugin.h +10 -0
- package/ios/Plugin/interfaces/IndigitallCpPlugin.m +19 -0
- package/ios/Plugin/interfaces/IndigitallCustomerPlugin.h +10 -0
- package/ios/Plugin/interfaces/IndigitallCustomerPlugin.m +16 -0
- package/ios/Plugin/interfaces/IndigitallInAppPlugin.h +10 -0
- package/ios/Plugin/interfaces/IndigitallInAppPlugin.m +13 -0
- package/ios/Plugin/interfaces/IndigitallInboxPlugin.h +10 -0
- package/ios/Plugin/interfaces/IndigitallInboxPlugin.m +13 -0
- package/ios/Plugin/utils/IndigitallParse.h +27 -0
- package/ios/Plugin/utils/IndigitallParse.m +351 -0
- package/package.json +79 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Push.js","sourceRoot":"","sources":["../../src/Push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAkBjD,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;YAC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CAAC,QAAQ,CAAC,EAAE;YAClC,IAAI,SAAS;gBAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAC7C,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACd,IAAI,OAAO;gBAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAA;IACR,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 } 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: '0.0.1',\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) onError(error);\n })\n },\n deviceEnable: (\n onSuccess?: OnDeviceSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceEnable().then(response => {\n if (onSuccess) onSuccess(response.device)\n }).catch(error => {\n if (onError) onError(error);\n })\n },\n deviceDisable: (\n onSuccess?: OnDeviceSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.deviceDisable().then(response => {\n if (onSuccess) onSuccess(response.device)\n }).catch(error => {\n if (onError) onError(error);\n })\n },\n topicsList: (\n onSuccess?: OnTopicSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsList().then(response => {\n if (onSuccess) onSuccess(response.topics);\n }).catch(error => {\n if (onError) onError(error);\n })\n },\n topicsSubscribe: (\n topics: string[], \n onSuccess?: OnTopicSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsSubscribe({ topics }).then(response => {\n if (onSuccess) onSuccess(response.topics)\n }).catch(error => {\n if (onError) onError(error);\n })\n },\n topicsUnsubscribe: (\n topics: string[], \n onSuccess?: OnTopicSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.topicsUnsubscribe({ topics }).then(response => {\n if (onSuccess) onSuccess(response.topics)\n }).catch(error => {\n if (onError) 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) onSuccess();\n }).catch(error => {\n if (onError) 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) onError(error);\n })\n },\n logIn: (\n externalId: string, \n onSuccess?: OnDeviceSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.logIn({ externalId }).then(response => {\n if (onSuccess) onSuccess(response.device)\n }).catch(error => {\n if (onError) onError(error);\n })\n },\n logOut: (\n onSuccess?: OnDeviceSuccessType, \n onError?: OnErrorCallbackType) => {\n IndigitallCp.logOut().then(response => {\n if (onSuccess) onSuccess(response.device)\n }).catch(error => {\n if (onError) onError(error);\n })\n }\n }\n\n export { Indigitall }"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Customer, CustomerField } from '../models/InCustomer';
|
|
2
|
+
import type { Device, Topic } from '../models/InDevice';
|
|
3
|
+
import type { InApp } from '../models/InInApp';
|
|
4
|
+
import type { Inbox, InboxNotifications, MessageCount } from '../models/InInbox';
|
|
5
|
+
import type { Push } from '../models/InPush';
|
|
6
|
+
declare type ErrorCallback = {
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type OnIndigitallInitializedType = (device: Device, pushPermission: number, locationPermission: number) => void;
|
|
10
|
+
export declare type OnErrorCallbackType = (error: ErrorCallback) => void;
|
|
11
|
+
export declare type OnDeviceSuccessType = (device: Device) => void;
|
|
12
|
+
export declare type OnPushSuccessType = (push: Push) => void;
|
|
13
|
+
export declare type OnTopicSuccessType = (topic: [Topic]) => void;
|
|
14
|
+
export declare type OnInAppCallbackType = (inApp: InApp) => void;
|
|
15
|
+
export declare type OnInboxSuccessType = (inbox: Inbox) => void;
|
|
16
|
+
export declare type OnInboxNotificationSuccessType = (inboxNotification: InboxNotifications) => void;
|
|
17
|
+
export declare type OnInboxMessageCountSuccessType = (messageCount: MessageCount) => void;
|
|
18
|
+
export declare type OnCustomerSuccessType = (customer: Customer) => void;
|
|
19
|
+
export declare type OnCustomerFieldSuccessType = (customerField: [CustomerField]) => void;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callbacksType.js","sourceRoot":"","sources":["../../../src/callbacks/callbacksType.ts"],"names":[],"mappings":"","sourcesContent":["import type { Customer, CustomerField } from '../models/InCustomer';\nimport type {\n Device, \n Topic\n} from '../models/InDevice';\nimport type { InApp } from '../models/InInApp';\nimport type { Inbox, InboxNotifications, MessageCount } from '../models/InInbox';\nimport type { Push } from '../models/InPush';\n\ntype ErrorCallback = {\n message: string;\n};\n\n//INIT\nexport type OnIndigitallInitializedType = ( \n device: Device,\n pushPermission: number,\n locationPermission: number\n ) => void;\n export type OnErrorCallbackType = (error: ErrorCallback) => void;\n export type OnDeviceSuccessType = (device: Device) => void;\n export type OnPushSuccessType = (push: Push) => void;\n export type OnTopicSuccessType = (topic: [Topic]) => void;\n\n//IN APP\nexport type OnInAppCallbackType = (\n inApp: InApp\n ) => void;\n//INBOX\nexport type OnInboxSuccessType = (inbox: Inbox) => void;\nexport type OnInboxNotificationSuccessType = (\n inboxNotification: InboxNotifications\n) => void;\nexport type OnInboxMessageCountSuccessType = (\n messageCount: MessageCount\n) => void;\n\n//CUSTOMER\nexport type OnCustomerSuccessType = (customer: Customer) => void;\nexport type OnCustomerFieldSuccessType = (\n customerField: [CustomerField]\n) => void;\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { OnCustomerSuccessType, OnCustomerFieldSuccessType, OnErrorCallbackType } from '../callbacks/callbacksType';
|
|
2
|
+
import type { OnCustomerFieldParams, OnLinkCustomerParams } from '../params/customerParams';
|
|
3
|
+
export interface IndigitallCustomerPlugin {
|
|
4
|
+
getCustomer(): Promise<any>;
|
|
5
|
+
getCustomerInformation(params: {
|
|
6
|
+
fieldNamesList: string[];
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
assignOrUpdateValueToCustomerFields(params: {
|
|
9
|
+
customerFields: any;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
deleteValuesFromCustomerFields(params: {
|
|
12
|
+
fieldNamesList: string[];
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
link(params: {
|
|
15
|
+
link: {
|
|
16
|
+
externalId?: string;
|
|
17
|
+
channel: string;
|
|
18
|
+
};
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
unlink(params: {
|
|
21
|
+
unlink: {
|
|
22
|
+
externalId?: string;
|
|
23
|
+
channel: string;
|
|
24
|
+
};
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export interface CustomerPlugin {
|
|
28
|
+
getCustomer: (onSuccess: OnCustomerSuccessType, onError?: OnErrorCallbackType) => void;
|
|
29
|
+
getCustomerInformation: (fieldNamesList: string[], onSuccess?: OnCustomerFieldSuccessType, onError?: OnErrorCallbackType) => void;
|
|
30
|
+
assignOrUpdateValueToCustomerFields: (params: OnCustomerFieldParams, onSuccess?: OnCustomerSuccessType, onError?: OnErrorCallbackType) => void;
|
|
31
|
+
deleteValuesFromCustomerFields: (fieldNamesList: string[], onSuccess?: OnCustomerSuccessType, onError?: OnErrorCallbackType) => void;
|
|
32
|
+
link: (params: OnLinkCustomerParams, onSuccess?: () => void, onError?: OnErrorCallbackType) => void;
|
|
33
|
+
unlink: (params: OnLinkCustomerParams, onSuccess?: () => void, onError?: OnErrorCallbackType) => void;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerDefinitions.js","sourceRoot":"","sources":["../../../src/definitions/customerDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n OnCustomerSuccessType,\n OnCustomerFieldSuccessType,\n OnErrorCallbackType,\n } from '../callbacks/callbacksType';\nimport type { \n OnCustomerFieldParams,\n OnLinkCustomerParams\n} from '../params/customerParams';\n\nexport interface IndigitallCustomerPlugin {\n getCustomer(): Promise<any>;\n getCustomerInformation(params: { fieldNamesList: string[]}): Promise<any>;\n assignOrUpdateValueToCustomerFields(params: { customerFields: any}): Promise<any>;\n deleteValuesFromCustomerFields(params: { fieldNamesList: string[]}): Promise<any>;\n link(params: { link: {externalId?: string; channel: string;} }): Promise<void>;\n unlink(params: { unlink: {externalId?: string; channel: string;} }): Promise<void>;\n }\n export interface CustomerPlugin {\n getCustomer: (\n onSuccess: OnCustomerSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n getCustomerInformation: (\n fieldNamesList: string[],\n onSuccess?: OnCustomerFieldSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n assignOrUpdateValueToCustomerFields: (\n params: OnCustomerFieldParams,\n onSuccess?: OnCustomerSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n deleteValuesFromCustomerFields: (\n fieldNamesList: string[],\n onSuccess?: OnCustomerSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n link: (\n params: OnLinkCustomerParams,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n unlink: (\n params: OnLinkCustomerParams,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n }"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { OnErrorCallbackType, OnInAppCallbackType } from '../callbacks/callbacksType';
|
|
2
|
+
import type { InApp } from '../models/InInApp';
|
|
3
|
+
import type { ShowPopUpParams, InAppParams } from '../params/inAppParams';
|
|
4
|
+
export interface IndigitallInAppPlugin {
|
|
5
|
+
inAppGet(params: {
|
|
6
|
+
inAppSchemaCode: string;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
inAppWasShown(params: {
|
|
9
|
+
inApp: InApp;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
addNewInAppClick(params: {
|
|
12
|
+
inApp: InApp;
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
addNewInAppToDismissForever(params: {
|
|
15
|
+
inApp: InApp;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
showPopUp(params: {
|
|
18
|
+
inApp: {
|
|
19
|
+
inAppSchemaCode: string;
|
|
20
|
+
closeIconDisabled?: boolean;
|
|
21
|
+
imageCloseButtonName?: string;
|
|
22
|
+
};
|
|
23
|
+
}): Promise<any>;
|
|
24
|
+
showInApp(params: {
|
|
25
|
+
inAppSchemaCode: string;
|
|
26
|
+
}): Promise<any>;
|
|
27
|
+
}
|
|
28
|
+
export interface InAppPlugin {
|
|
29
|
+
inAppGet: (inAppSchemaCode: string, onSuccess: OnInAppCallbackType, onError?: OnErrorCallbackType) => void;
|
|
30
|
+
inAppWasShown: (inApp: InApp, onSuccess: () => void, onError?: OnErrorCallbackType) => void;
|
|
31
|
+
addNewInAppClick: (inApp: InApp, onSuccess?: () => void) => void;
|
|
32
|
+
addNewInAppToDismissForever: (inApp: InApp, onSuccess?: () => void) => void;
|
|
33
|
+
showPopUp: (params: ShowPopUpParams, didCancel?: () => void, didClicked?: () => void, didDisimissed?: () => void, onShowTimeFinished?: () => void, didExpired?: () => void, didShowMoreThanOnce?: () => void, didClickOut?: () => void, didDismissForever?: () => void, onSuccess?: () => void, onError?: OnErrorCallbackType) => void;
|
|
34
|
+
showInApp: (inAppParams: InAppParams, didTouch?: () => void, onShowTimeFinished?: () => void, didExpired?: () => void, didShowMoreThanOnce?: () => void, didClickOut?: () => void, onSuccess?: () => void, onError?: OnErrorCallbackType) => void;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inAppDefinitions.js","sourceRoot":"","sources":["../../../src/definitions/inAppDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n OnErrorCallbackType,\n OnInAppCallbackType,\n } from '../callbacks/callbacksType';\n import type { InApp } from '../models/InInApp';\nimport type {\n ShowPopUpParams,\n InAppParams\n} from '../params/inAppParams'\n \nexport interface IndigitallInAppPlugin {\n inAppGet(params: { inAppSchemaCode: string }): Promise<any>;\n inAppWasShown(params: { inApp: InApp }): Promise<void>;\n addNewInAppClick(params: { inApp: InApp }): Promise<void>;\n addNewInAppToDismissForever(params: { inApp: InApp }): Promise<void>;\n showPopUp(params: {inApp: { inAppSchemaCode: string, closeIconDisabled?: boolean, imageCloseButtonName?: string }}): Promise<any>;\n showInApp(params: { inAppSchemaCode: string }): Promise<any>;\n }\n \n export interface InAppPlugin {\n inAppGet: (\n inAppSchemaCode: string,\n onSuccess: OnInAppCallbackType,\n onError?: OnErrorCallbackType\n ) => void;\n inAppWasShown: (\n inApp: InApp,\n onSuccess: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n addNewInAppClick: (\n inApp: InApp,\n onSuccess?: () => void\n ) => void;\n addNewInAppToDismissForever: (\n inApp: InApp,\n onSuccess?: () => void\n ) => void;\n showPopUp: (\n params: ShowPopUpParams, \n didCancel?: () => void,\n didClicked?: () => void,\n didDisimissed?: () => void,\n onShowTimeFinished?: () => void,\n didExpired?: () => void,\n didShowMoreThanOnce?: () => void,\n didClickOut?: () => void,\n didDismissForever?: () => void,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n showInApp: (\n inAppParams: InAppParams,\n didTouch?: () => void,\n onShowTimeFinished?: () => void,\n didExpired?: () => void,\n didShowMoreThanOnce?: () => void,\n didClickOut?: () => void,\n onSuccess?: () => void,\n onError?: OnErrorCallbackType\n ) => void;\n }\n "]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { OnInboxSuccessType, OnInboxNotificationSuccessType, OnErrorCallbackType, OnInboxMessageCountSuccessType } from '../callbacks/callbacksType';
|
|
2
|
+
import type { InboxAuthParams, InboxEditNotificationsParams, InboxInfoNotificationParams, InboxNotificationParams } from '../params/inboxParams';
|
|
3
|
+
export interface IndigitallInboxPlugin {
|
|
4
|
+
getMessageCount(auth?: InboxAuthParams): Promise<any>;
|
|
5
|
+
getInbox(auth?: InboxAuthParams): Promise<any>;
|
|
6
|
+
getNextPage(): Promise<any>;
|
|
7
|
+
massiveEditNotificationsWithSendingIdsList(params: {
|
|
8
|
+
notifications: {
|
|
9
|
+
sendingIdList: number[];
|
|
10
|
+
status: string;
|
|
11
|
+
};
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
getInfoFromNotificationWithSendingId(params: {
|
|
14
|
+
sendingId: number;
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
modifyStatusFromNotificationWithSendingId(params: {
|
|
17
|
+
notification: {
|
|
18
|
+
sendingId: number;
|
|
19
|
+
status: string;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<any>;
|
|
22
|
+
}
|
|
23
|
+
export interface InboxPlugin {
|
|
24
|
+
getMessageCount: (onSuccess: OnInboxMessageCountSuccessType, onError: OnErrorCallbackType, auth?: InboxAuthParams) => void;
|
|
25
|
+
getInbox: (onSuccess: OnInboxSuccessType, onError: OnErrorCallbackType, auth?: InboxAuthParams) => void;
|
|
26
|
+
getNextPage: (onSuccess: OnInboxSuccessType, onError: OnErrorCallbackType) => void;
|
|
27
|
+
massiveEditNotificationsWithSendingIdsList: (params: InboxEditNotificationsParams, onSuccess: () => void, onError: OnErrorCallbackType) => void;
|
|
28
|
+
getInfoFromNotificationWithSendingId: (params: InboxInfoNotificationParams, onSuccess: OnInboxNotificationSuccessType, onError: OnErrorCallbackType) => void;
|
|
29
|
+
modifyStatusFromNotificationWithSendingId: (params: InboxNotificationParams, onSuccess: OnInboxNotificationSuccessType, onError: OnErrorCallbackType) => void;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inboxDefinitions.js","sourceRoot":"","sources":["../../../src/definitions/inboxDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n OnInboxSuccessType, \n OnInboxNotificationSuccessType,\n OnErrorCallbackType,\n OnInboxMessageCountSuccessType,\n } from '../callbacks/callbacksType';\nimport type {\n InboxAuthParams,\n InboxEditNotificationsParams,\n InboxInfoNotificationParams,\n InboxNotificationParams\n} from '../params/inboxParams';\n\nexport interface IndigitallInboxPlugin {\n getMessageCount(auth?: InboxAuthParams): Promise<any>;\n getInbox(auth?:InboxAuthParams): Promise<any>;\n getNextPage(): Promise<any>;\n massiveEditNotificationsWithSendingIdsList(params: { notifications: { sendingIdList: number[];\n status: string; }}): Promise<void>;\n getInfoFromNotificationWithSendingId(params: { sendingId: number }): Promise<any>;\n modifyStatusFromNotificationWithSendingId(params: { notification:{ sendingId: number;\n status: string; }}): Promise<any>;\n }\n export interface InboxPlugin {\n getMessageCount: (\n onSuccess: OnInboxMessageCountSuccessType,\n onError: OnErrorCallbackType,\n auth?:InboxAuthParams\n ) => void;\n getInbox: (\n onSuccess: OnInboxSuccessType,\n onError: OnErrorCallbackType,\n auth?:InboxAuthParams,\n ) => void;\n getNextPage: (\n onSuccess: OnInboxSuccessType,\n onError: OnErrorCallbackType\n ) => void;\n massiveEditNotificationsWithSendingIdsList: (\n params: InboxEditNotificationsParams,\n onSuccess: () => void,\n onError: OnErrorCallbackType\n ) => void;\n getInfoFromNotificationWithSendingId: (\n params: InboxInfoNotificationParams,\n onSuccess: OnInboxNotificationSuccessType,\n onError: OnErrorCallbackType\n ) => void;\n modifyStatusFromNotificationWithSendingId: (\n params: InboxNotificationParams,\n onSuccess: OnInboxNotificationSuccessType,\n onError: OnErrorCallbackType\n ) => void;\n }\n "]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { OnIndigitallInitializedType, OnDeviceSuccessType, OnPushSuccessType, OnTopicSuccessType, OnErrorCallbackType } from '../callbacks/callbacksType';
|
|
2
|
+
import type { InitParams, EventParams } from '../params/pushParams';
|
|
3
|
+
export interface IndigitallCpPlugin {
|
|
4
|
+
initialize(params: {
|
|
5
|
+
config: any;
|
|
6
|
+
}): Promise<any>;
|
|
7
|
+
deviceGet(): Promise<any>;
|
|
8
|
+
deviceEnable(): Promise<any>;
|
|
9
|
+
deviceDisable(): Promise<any>;
|
|
10
|
+
topicsList(): Promise<any>;
|
|
11
|
+
topicsSubscribe(params: {
|
|
12
|
+
topics: string[];
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
topicsUnsubscribe(params: {
|
|
15
|
+
topics: string[];
|
|
16
|
+
}): Promise<any>;
|
|
17
|
+
sendCustomEvent(params: {
|
|
18
|
+
customEvent: any;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
getPush(): Promise<any>;
|
|
21
|
+
logIn(param: {
|
|
22
|
+
externalId: string;
|
|
23
|
+
}): Promise<any>;
|
|
24
|
+
logOut(): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
export interface IndigitallPlugin {
|
|
27
|
+
init: (config: InitParams, onIndigitallInitializedType?: OnIndigitallInitializedType, onError?: OnErrorCallbackType) => void;
|
|
28
|
+
deviceGet: (onSuccess: OnDeviceSuccessType, onError?: OnErrorCallbackType) => void;
|
|
29
|
+
deviceEnable: (onSuccess?: OnDeviceSuccessType, onError?: OnErrorCallbackType) => void;
|
|
30
|
+
deviceDisable: (onSuccess?: OnDeviceSuccessType, onError?: OnErrorCallbackType) => void;
|
|
31
|
+
topicsList: (onSuccess?: OnTopicSuccessType, onError?: OnErrorCallbackType) => void;
|
|
32
|
+
topicsSubscribe: (topics: string[], onSuccess?: OnTopicSuccessType, onError?: OnErrorCallbackType) => void;
|
|
33
|
+
topicsUnsubscribe: (topics: string[], onSuccess?: OnTopicSuccessType, onError?: OnErrorCallbackType) => void;
|
|
34
|
+
sendCustomEvent: (customEvent: EventParams, onSuccess?: () => void, onError?: OnErrorCallbackType) => void;
|
|
35
|
+
getPush: (onSuccess: OnPushSuccessType, onError?: OnErrorCallbackType) => void;
|
|
36
|
+
logIn: (externalId: string, onSuccess?: OnDeviceSuccessType, onError?: OnErrorCallbackType) => void;
|
|
37
|
+
logOut: (onSuccess?: OnDeviceSuccessType, onError?: OnErrorCallbackType) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pushDefinitions.js","sourceRoot":"","sources":["../../../src/definitions/pushDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n OnIndigitallInitializedType,\n OnDeviceSuccessType,\n OnPushSuccessType,\n OnTopicSuccessType,\n OnErrorCallbackType,\n //OnInAppCallbackType,\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(): 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 logIn: (\n externalId: string,\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n logOut: (\n onSuccess?: OnDeviceSuccessType,\n onError?: OnErrorCallbackType\n ) => void;\n }"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,eAAe,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA","sourcesContent":["export { Indigitall } from './Push'\nexport { Customer, Channel } from './Customer'\nexport { Inbox, InboxStatus } from './Inbox'\nexport { IndigitallInApp as InApp } from './InApp'\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type Customer = {
|
|
2
|
+
id: string;
|
|
3
|
+
customerId: string;
|
|
4
|
+
applicationId: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type CustomerField = {
|
|
9
|
+
key: string;
|
|
10
|
+
value: string | null;
|
|
11
|
+
};
|
|
12
|
+
export declare enum Channel {
|
|
13
|
+
Push = "push",
|
|
14
|
+
InApp = "inapp",
|
|
15
|
+
Chat = "chat"
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InCustomer.js","sourceRoot":"","sources":["../../../src/models/InCustomer.ts"],"names":[],"mappings":"AAcE,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,wBAAa,CAAA;AACf,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB;AAAA,CAAC","sourcesContent":["\nexport type Customer = {\n id: string;\n customerId: string;\n applicationId: string;\n createdAt: string;\n updatedAt: string;\n };\n \n export type CustomerField = {\n key: string;\n value: string | null;\n };\n \n export enum Channel {\n Push = \"push\",\n InApp = \"inapp\",\n Chat = \"chat\"\n };\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare type Device = {
|
|
2
|
+
enable: boolean;
|
|
3
|
+
deviceId: string;
|
|
4
|
+
pushToken: string;
|
|
5
|
+
platform: string;
|
|
6
|
+
productName: string;
|
|
7
|
+
productVersion: string;
|
|
8
|
+
osName: string;
|
|
9
|
+
osVersion: string;
|
|
10
|
+
deviceBrand: string;
|
|
11
|
+
deviceModel: string;
|
|
12
|
+
operator: string;
|
|
13
|
+
deviceType: string;
|
|
14
|
+
appVersion: string;
|
|
15
|
+
locale: string;
|
|
16
|
+
timeZone: string;
|
|
17
|
+
timeOffset: string;
|
|
18
|
+
externalApps: [ExternalApps];
|
|
19
|
+
};
|
|
20
|
+
export declare type ExternalApps = {
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
code: string;
|
|
24
|
+
};
|
|
25
|
+
export declare type Topic = {
|
|
26
|
+
code: string;
|
|
27
|
+
name: string;
|
|
28
|
+
parentCode: string;
|
|
29
|
+
visible: boolean;
|
|
30
|
+
subscribed: boolean;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InDevice.js","sourceRoot":"","sources":["../../../src/models/InDevice.ts"],"names":[],"mappings":"","sourcesContent":["export type Device = {\n enable: boolean;\n deviceId: string;\n pushToken: string;\n platform: string;\n productName: string;\n productVersion: string;\n osName: string;\n osVersion: string;\n deviceBrand: string;\n deviceModel: string;\n operator: string;\n deviceType: string;\n appVersion: string;\n locale: string;\n timeZone: string;\n timeOffset: string;\n externalApps: [ExternalApps];\n };\n\n export type ExternalApps = {\n id: number;\n name: string;\n code: string;\n };\n\n export type Topic = {\n code: string;\n name: string;\n parentCode: string;\n visible: boolean;\n subscribed: boolean;\n };"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare type InApp = {
|
|
2
|
+
inAppId: number;
|
|
3
|
+
lastVersionId: number;
|
|
4
|
+
showOnce: boolean;
|
|
5
|
+
creationDate: string;
|
|
6
|
+
expiredDate: string;
|
|
7
|
+
properties: InAppProperties;
|
|
8
|
+
renewalTime: string;
|
|
9
|
+
schema: InAppSchema;
|
|
10
|
+
};
|
|
11
|
+
declare type InAppSchema = {
|
|
12
|
+
code: string;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
declare type InAppProperties = {
|
|
17
|
+
contentUrl: string;
|
|
18
|
+
showTime: number;
|
|
19
|
+
layout: InAppLayout;
|
|
20
|
+
action: InAppAction;
|
|
21
|
+
numberOfShows: number;
|
|
22
|
+
numberOfClicks: number;
|
|
23
|
+
dismissForever: boolean;
|
|
24
|
+
};
|
|
25
|
+
declare type InAppLayout = {
|
|
26
|
+
borderRadius: string;
|
|
27
|
+
};
|
|
28
|
+
declare type InAppAction = {
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InInApp.js","sourceRoot":"","sources":["../../../src/models/InInApp.ts"],"names":[],"mappings":"","sourcesContent":["export type InApp = {\n inAppId: number;\n lastVersionId: number;\n showOnce: boolean;\n creationDate: string;\n expiredDate: string;\n properties: InAppProperties;\n renewalTime: string;\n schema: InAppSchema;\n };\n \n type InAppSchema = {\n code: string;\n width: number;\n height: number;\n };\n \n type InAppProperties = {\n contentUrl: string;\n showTime: number;\n layout: InAppLayout;\n action: InAppAction;\n numberOfShows: number;\n numberOfClicks: number;\n dismissForever: boolean;\n };\n \n\ntype InAppLayout = {\n borderRadius: string;\n //more fields that is not in use\n };\n \n type InAppAction = {\n url: string;\n };\n "]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Push } from "./InPush";
|
|
2
|
+
export declare type Inbox = {
|
|
3
|
+
lastAccess: string;
|
|
4
|
+
notifications: [InboxNotifications];
|
|
5
|
+
newNotifications: [InboxNotifications] | null;
|
|
6
|
+
count: number;
|
|
7
|
+
pagesize: number;
|
|
8
|
+
numPage: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type InboxNotifications = {
|
|
11
|
+
id: string;
|
|
12
|
+
externalId: string;
|
|
13
|
+
sentAt: string;
|
|
14
|
+
status: string;
|
|
15
|
+
sendingId: number;
|
|
16
|
+
campaign: number;
|
|
17
|
+
message: Push;
|
|
18
|
+
read: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare type MessageCount = {
|
|
21
|
+
click: number;
|
|
22
|
+
sent: number;
|
|
23
|
+
deleted: number;
|
|
24
|
+
lastAccess: number;
|
|
25
|
+
count: number;
|
|
26
|
+
};
|
|
27
|
+
export declare enum InboxStatus {
|
|
28
|
+
sent = "sent",
|
|
29
|
+
click = "click",
|
|
30
|
+
deleted = "deleted"
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InInbox.js","sourceRoot":"","sources":["../../../src/models/InInbox.ts"],"names":[],"mappings":"AA8BE,MAAM,CAAN,IAAY,WAIb;AAJC,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,kCAAmB,CAAA;AACvB,CAAC,EAJa,WAAW,KAAX,WAAW,QAIxB;AAAA,CAAC","sourcesContent":["import type { Push } from \"./InPush\";\n\nexport type Inbox = {\n lastAccess: string;\n notifications: [InboxNotifications];\n newNotifications: [InboxNotifications] | null;\n count: number;\n pagesize: number;\n numPage: number;\n };\n \n export type InboxNotifications = {\n id: string;\n externalId: string;\n sentAt: string;\n status: string;\n sendingId: number;\n campaign: number;\n message: Push;\n read: boolean;\n };\n \n export type MessageCount = {\n click: number;\n sent: number;\n deleted: number;\n lastAccess: number;\n count: number;\n };\n\n export enum InboxStatus {\n sent = \"sent\",\n click = \"click\",\n deleted = \"deleted\"\n};"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare type Push = {
|
|
2
|
+
title: string;
|
|
3
|
+
body: string;
|
|
4
|
+
image: string;
|
|
5
|
+
data: string;
|
|
6
|
+
securedData: string;
|
|
7
|
+
action: PushAction;
|
|
8
|
+
buttons: [PushButton];
|
|
9
|
+
};
|
|
10
|
+
declare type PushButton = {
|
|
11
|
+
label: string;
|
|
12
|
+
action: PushAction;
|
|
13
|
+
};
|
|
14
|
+
declare type PushAction = {
|
|
15
|
+
url: string | null;
|
|
16
|
+
app: string | null;
|
|
17
|
+
market: string | null;
|
|
18
|
+
share: string | null;
|
|
19
|
+
call: string | null;
|
|
20
|
+
noAction: string | null;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InPush.js","sourceRoot":"","sources":["../../../src/models/InPush.ts"],"names":[],"mappings":"","sourcesContent":["export type Push = {\n title: string;\n body: string;\n image: string;\n data: string;\n securedData: string;\n action: PushAction;\n buttons: [PushButton];\n };\n \n type PushButton = {\n label: string;\n action: PushAction;\n };\n \n type PushAction = {\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 };\n "]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Channel } from "../models/InCustomer";
|
|
2
|
+
export declare type OnCustomerFieldParams = {
|
|
3
|
+
fields: any;
|
|
4
|
+
};
|
|
5
|
+
export declare type OnLinkCustomerParams = {
|
|
6
|
+
externalId?: string;
|
|
7
|
+
channel: Channel;
|
|
8
|
+
};
|
|
9
|
+
export declare type OnCustomerDeleteValuesParams = {
|
|
10
|
+
fieldNames: [string];
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerParams.js","sourceRoot":"","sources":["../../../src/params/customerParams.ts"],"names":[],"mappings":"AAAA,UAAU","sourcesContent":["//Customer\n\nimport type { Channel } from \"../models/InCustomer\";\n\nexport type OnCustomerFieldParams = {\n fields: any\n};\n\nexport type OnLinkCustomerParams = {\n externalId?: string;\n channel: Channel;\n};\n\nexport type OnCustomerDeleteValuesParams = {\n fieldNames: [string];\n};"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare type InAppParams = {
|
|
2
|
+
inAppSchemaCode: string;
|
|
3
|
+
viewId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type ShowPopUpParams = {
|
|
6
|
+
inAppSchemaCode: string;
|
|
7
|
+
imageCloseButtonName?: string;
|
|
8
|
+
closeIconDisabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type MultipleInAppParams = {
|
|
11
|
+
viewIdList: string[];
|
|
12
|
+
inAppCodeList: string[];
|
|
13
|
+
appKey: string;
|
|
14
|
+
deviceID: string;
|
|
15
|
+
urlInApp: string | null;
|
|
16
|
+
packageName: string | null;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inAppParams.js","sourceRoot":"","sources":["../../../src/params/inAppParams.ts"],"names":[],"mappings":"AAAA,OAAO","sourcesContent":["//INAPP\n\nexport type InAppParams = {\n inAppSchemaCode: string;\n viewId: string;\n};\n\nexport type ShowPopUpParams = {\n inAppSchemaCode: string;\n imageCloseButtonName?: string;\n closeIconDisabled?: boolean;\n};\n\nexport type MultipleInAppParams = {\n viewIdList: string[];\n inAppCodeList: string[];\n appKey: string;\n deviceID: string;\n urlInApp: string | null;\n packageName: string | null;\n};"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InboxStatus } from "../models/InInbox";
|
|
2
|
+
export declare type InboxEditNotificationsParams = {
|
|
3
|
+
sendingIdList: number[];
|
|
4
|
+
status: InboxStatus;
|
|
5
|
+
};
|
|
6
|
+
export declare type InboxInfoNotificationParams = {
|
|
7
|
+
sendingId: number;
|
|
8
|
+
};
|
|
9
|
+
export declare type InboxNotificationParams = {
|
|
10
|
+
sendingId: number;
|
|
11
|
+
status: InboxStatus;
|
|
12
|
+
};
|
|
13
|
+
export declare type InboxAuthParams = {
|
|
14
|
+
auth: any;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inboxParams.js","sourceRoot":"","sources":["../../../src/params/inboxParams.ts"],"names":[],"mappings":"AAAA,OAAO","sourcesContent":["//INBOX\n\nimport type { InboxStatus } from \"../models/InInbox\";\n\nexport type InboxEditNotificationsParams = {\n sendingIdList: number[];\n status: InboxStatus;\n};\n\nexport type InboxInfoNotificationParams = {\n sendingId: number;\n};\n\nexport type InboxNotificationParams = {\n sendingId: number;\n status: InboxStatus;\n};\n\nexport type InboxAuthParams = {\n auth: any;\n}"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Topic } from '../models/InDevice';
|
|
2
|
+
export declare type InitParams = {
|
|
3
|
+
appKey: string;
|
|
4
|
+
senderId: string;
|
|
5
|
+
requestLocation?: boolean;
|
|
6
|
+
wifiFilterEnabled?: boolean;
|
|
7
|
+
urlDeviceApi?: string;
|
|
8
|
+
urlInAppApi?: string;
|
|
9
|
+
urlInboxApi?: string;
|
|
10
|
+
debugMode?: boolean;
|
|
11
|
+
forceSimulatorToken?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare type TopicStringParams = {
|
|
14
|
+
code: [string];
|
|
15
|
+
};
|
|
16
|
+
export declare type TopicParams = {
|
|
17
|
+
code: [Topic];
|
|
18
|
+
};
|
|
19
|
+
export declare type EventParams = {
|
|
20
|
+
event: string;
|
|
21
|
+
customData: any;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pushParams.js","sourceRoot":"","sources":["../../../src/params/pushParams.ts"],"names":[],"mappings":"","sourcesContent":["import type { Topic } from '../models/InDevice';\n \n//INIT\nexport type InitParams = {\n appKey: string;\n senderId: string;\n requestLocation?: boolean;\n wifiFilterEnabled?: boolean;\n urlDeviceApi?: string;\n urlInAppApi?: string;\n urlInboxApi?: string;\n debugMode?: boolean;\n forceSimulatorToken?: boolean;\n};\n\nexport type TopicStringParams = {\n code: [string];\n};\n\nexport type TopicParams = {\n code: [Topic];\n};\n\nexport type EventParams = {\n event: string;\n customData: any;\n};\n\n"]}
|