@dev.smartpricing/message-composer-utils 4.0.4 → 4.1.1-smartness.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/message.js.map +1 -1
- package/package.json +1 -1
- package/src/types/app.ts +1 -1
- package/src/types/kafka-events.ts +1 -0
- package/src/types/media.ts +1 -0
- package/src/types/message.ts +13 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAAa,EAAE,UAAU,CAAU,CAAC;AAEzE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,OAAO;IACP,UAAU;IACV,UAAU;CACF,CAAC;
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAAa,EAAE,UAAU,CAAU,CAAC;AAEzE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,OAAO;IACP,UAAU;IACV,UAAU;CACF,CAAC;AAoDX,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,WAAW,EAAE,SAAS,CAAU,CAAC;AAG1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAU,CAAC;AA+DxE;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,sBAAsB,EAAE,+BAA+B;IACvD,uBAAuB,EAAE,gCAAgC;IACzD,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;YACnB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;YAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;SAC5C,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KACvD,CAAC;SACD,WAAW,EAAE;IAChB,KAAK,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/types/app.ts
CHANGED
package/src/types/media.ts
CHANGED
package/src/types/message.ts
CHANGED
|
@@ -29,6 +29,7 @@ interface BaseMessage extends DbEntity {
|
|
|
29
29
|
language_id: string;
|
|
30
30
|
status: MessageStatus;
|
|
31
31
|
render_type: RenderType;
|
|
32
|
+
organization_id?: string;
|
|
32
33
|
owner?: string;
|
|
33
34
|
user_id: string;
|
|
34
35
|
}
|
|
@@ -83,6 +84,7 @@ export interface MessageGroup extends DbEntity {
|
|
|
83
84
|
category: MessageGroupCategory;
|
|
84
85
|
visibility?: MessageGroupVisibility;
|
|
85
86
|
brand_id?: string | null;
|
|
87
|
+
organization_id?: string;
|
|
86
88
|
owner?: string;
|
|
87
89
|
user_id: string;
|
|
88
90
|
}
|
|
@@ -363,6 +365,17 @@ export interface GetMessageParametersResponse {
|
|
|
363
365
|
parameters: string[];
|
|
364
366
|
}
|
|
365
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Response for resolved-parameters endpoint.
|
|
370
|
+
* Returns parameter names mapped to their resolved values
|
|
371
|
+
* (organization data → mock fallback → empty string).
|
|
372
|
+
*/
|
|
373
|
+
export interface GetResolvedParametersResponse {
|
|
374
|
+
render_type: RenderType;
|
|
375
|
+
language: string;
|
|
376
|
+
parameters: Record<string, string>;
|
|
377
|
+
}
|
|
378
|
+
|
|
366
379
|
// Text message type (for future use, not in compile endpoints)
|
|
367
380
|
export interface WhatsAppTextMessage extends WhatsAppMessageBase {
|
|
368
381
|
type: "text";
|