@bisondesk/commons-sdk 1.0.349 → 1.0.351

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.
@@ -1,48 +0,0 @@
1
- export declare enum WhatsappTemplateType {
2
- DOCUMENT = "DOCUMENT",
3
- IMAGE = "IMAGE",
4
- VIDEO = "VIDEO",
5
- TEXT = "TEXT"
6
- }
7
- export type WhatsappNotificationMessage = {
8
- tenantId: string;
9
- templateId: string;
10
- language?: string;
11
- dedupId?: string;
12
- destination: {
13
- phone: string;
14
- name?: string;
15
- };
16
- } & ({
17
- format: WhatsappTemplateType.DOCUMENT;
18
- templateParams: {
19
- filename: string;
20
- link: string;
21
- [param: string]: string;
22
- };
23
- } | {
24
- format: WhatsappTemplateType.IMAGE | WhatsappTemplateType.VIDEO;
25
- templateParams: {
26
- link: string;
27
- [param: string]: string;
28
- };
29
- } | {
30
- format: WhatsappTemplateType.TEXT;
31
- templateParams: {
32
- [param: string]: string;
33
- };
34
- });
35
- export declare const WHATSAPP_NOTIFICATION_SETTINGS_ID = "whatsapp-notification";
36
- export type WhatsappNotificationSettings = {
37
- whatsappPlugin: {
38
- identifier: string;
39
- key: string;
40
- };
41
- bisondeskPlugin: {
42
- identifier: string;
43
- key: string;
44
- };
45
- websiteId: string;
46
- originNumber: string;
47
- };
48
- //# sourceMappingURL=notifications-whatsapp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications-whatsapp.d.ts","sourceRoot":"/","sources":["notifications-whatsapp.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH,GAAG,CACA;IACE,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC;IACtC,cAAc,EAAE;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;CACH,GACD;IACE,MAAM,EAAE,oBAAoB,CAAC,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC;IAChE,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;CACH,GACD;IACE,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC;IAClC,cAAc,EAAE;QACd,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;CACH,CACJ,CAAC;AAEF,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AAEzE,MAAM,MAAM,4BAA4B,GAAG;IACzC,cAAc,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,eAAe,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,9 +0,0 @@
1
- export var WhatsappTemplateType;
2
- (function (WhatsappTemplateType) {
3
- WhatsappTemplateType["DOCUMENT"] = "DOCUMENT";
4
- WhatsappTemplateType["IMAGE"] = "IMAGE";
5
- WhatsappTemplateType["VIDEO"] = "VIDEO";
6
- WhatsappTemplateType["TEXT"] = "TEXT";
7
- })(WhatsappTemplateType || (WhatsappTemplateType = {}));
8
- export const WHATSAPP_NOTIFICATION_SETTINGS_ID = 'whatsapp-notification';
9
- //# sourceMappingURL=notifications-whatsapp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications-whatsapp.js","sourceRoot":"/","sources":["notifications-whatsapp.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,qCAAa,CAAA;AACf,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAmCD,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CAAC","sourcesContent":["export enum WhatsappTemplateType {\n DOCUMENT = 'DOCUMENT',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n TEXT = 'TEXT',\n}\n\nexport type WhatsappNotificationMessage = {\n tenantId: string;\n templateId: string;\n language?: string;\n dedupId?: string;\n destination: {\n phone: string;\n name?: string;\n };\n} & (\n | {\n format: WhatsappTemplateType.DOCUMENT;\n templateParams: {\n filename: string;\n link: string;\n [param: string]: string;\n };\n }\n | {\n format: WhatsappTemplateType.IMAGE | WhatsappTemplateType.VIDEO;\n templateParams: {\n link: string;\n [param: string]: string;\n };\n }\n | {\n format: WhatsappTemplateType.TEXT;\n templateParams: {\n [param: string]: string;\n };\n }\n);\n\nexport const WHATSAPP_NOTIFICATION_SETTINGS_ID = 'whatsapp-notification';\n\nexport type WhatsappNotificationSettings = {\n whatsappPlugin: { identifier: string; key: string };\n bisondeskPlugin: { identifier: string; key: string };\n websiteId: string;\n originNumber: string;\n};\n"]}
@@ -1,48 +0,0 @@
1
- export enum WhatsappTemplateType {
2
- DOCUMENT = 'DOCUMENT',
3
- IMAGE = 'IMAGE',
4
- VIDEO = 'VIDEO',
5
- TEXT = 'TEXT',
6
- }
7
-
8
- export type WhatsappNotificationMessage = {
9
- tenantId: string;
10
- templateId: string;
11
- language?: string;
12
- dedupId?: string;
13
- destination: {
14
- phone: string;
15
- name?: string;
16
- };
17
- } & (
18
- | {
19
- format: WhatsappTemplateType.DOCUMENT;
20
- templateParams: {
21
- filename: string;
22
- link: string;
23
- [param: string]: string;
24
- };
25
- }
26
- | {
27
- format: WhatsappTemplateType.IMAGE | WhatsappTemplateType.VIDEO;
28
- templateParams: {
29
- link: string;
30
- [param: string]: string;
31
- };
32
- }
33
- | {
34
- format: WhatsappTemplateType.TEXT;
35
- templateParams: {
36
- [param: string]: string;
37
- };
38
- }
39
- );
40
-
41
- export const WHATSAPP_NOTIFICATION_SETTINGS_ID = 'whatsapp-notification';
42
-
43
- export type WhatsappNotificationSettings = {
44
- whatsappPlugin: { identifier: string; key: string };
45
- bisondeskPlugin: { identifier: string; key: string };
46
- websiteId: string;
47
- originNumber: string;
48
- };