@dev.smartpricing/message-composer-utils 4.0.3 → 4.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/message-composer-utils",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Shared types and utilities for the message composer",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,7 @@
1
1
  import type {
2
2
  MessageFromDb,
3
3
  MessageGroupFromDb,
4
+ MessageGroupVisibility,
4
5
  MessageStatus,
5
6
  RenderType,
6
7
  } from "../message.js";
@@ -10,6 +11,12 @@ export type MessageGroupWithMessages = MessageGroupFromDb & {
10
11
  tags: string[];
11
12
  };
12
13
 
14
+ export interface DuplicateMessageGroupBody {
15
+ name?: string;
16
+ visibility?: MessageGroupVisibility;
17
+ brand_id?: string | null;
18
+ }
19
+
13
20
  export type MessageGroupWithMessageSummary = MessageGroupFromDb & {
14
21
  messages: Array<{
15
22
  id: string;
@@ -363,6 +363,17 @@ export interface GetMessageParametersResponse {
363
363
  parameters: string[];
364
364
  }
365
365
 
366
+ /**
367
+ * Response for resolved-parameters endpoint.
368
+ * Returns parameter names mapped to their resolved values
369
+ * (organization data → mock fallback → empty string).
370
+ */
371
+ export interface GetResolvedParametersResponse {
372
+ render_type: RenderType;
373
+ language: string;
374
+ parameters: Record<string, string>;
375
+ }
376
+
366
377
  // Text message type (for future use, not in compile endpoints)
367
378
  export interface WhatsAppTextMessage extends WhatsAppMessageBase {
368
379
  type: "text";