@bisondesk/commons-sdk 1.0.352 → 1.0.353
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.
|
@@ -4,8 +4,12 @@ export declare enum WhatsappTemplateType {
|
|
|
4
4
|
VIDEO = "VIDEO",
|
|
5
5
|
TEXT = "TEXT"
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type WhatsappNotificationEvent = {
|
|
8
8
|
tenantId: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
message: WhatsappNotificationMessage;
|
|
11
|
+
};
|
|
12
|
+
export type WhatsappNotificationMessage = {
|
|
9
13
|
templateId: string;
|
|
10
14
|
language?: string;
|
|
11
15
|
dedupId?: string;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,yBAAyB,GAAG;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,2BAA2B,CAAC;CACtC,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,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 +1 @@
|
|
|
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;
|
|
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;AAwCD,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 WhatsappNotificationEvent = {\n tenantId: string;\n userId: string;\n message: WhatsappNotificationMessage;\n}\n\nexport type WhatsappNotificationMessage = {\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"]}
|
package/package.json
CHANGED
|
@@ -5,8 +5,13 @@ export enum WhatsappTemplateType {
|
|
|
5
5
|
TEXT = 'TEXT',
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type WhatsappNotificationEvent = {
|
|
9
9
|
tenantId: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
message: WhatsappNotificationMessage;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type WhatsappNotificationMessage = {
|
|
10
15
|
templateId: string;
|
|
11
16
|
language?: string;
|
|
12
17
|
dedupId?: string;
|