@pushwoosh/rpc-v2-http-api-data 0.2.499 → 0.2.501

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/chat_presets.d.ts CHANGED
@@ -68,6 +68,11 @@ export type ListChatPresetsRequest = {
68
68
  perPage?: number;
69
69
  /** Free-text substring matched against preset name OR preset code (case-insensitive). */
70
70
  searchByName?: string;
71
+ /**
72
+ * Keep only presets whose content the channel can send: "rcs", "whatsapp", "fbmessenger" or "line".
73
+ * Whether the channel is set up in the application does not matter here.
74
+ */
75
+ channel?: string;
71
76
  };
72
77
  export type ListChatPresetsResponse = {
73
78
  presets: ChatPreset[];
@@ -127,6 +132,11 @@ export type ValidateChatPresetRequest = {
127
132
  category?: string;
128
133
  /** Rich content per language as JSON of the channel-agnostic model. */
129
134
  localizedContent?: Record<string, string>;
135
+ /**
136
+ * Code of the saved preset being edited, if any: its WhatsApp template status is then reported
137
+ * instead of "not submitted". It must belong to the same application.
138
+ */
139
+ code?: string;
130
140
  };
131
141
  export type ValidateChatPresetResponse = {
132
142
  /** Compatibility per channel: "rcs", "whatsapp", "fbmessenger", "line". */
package/data.js CHANGED
@@ -11632,6 +11632,9 @@ export const data = {
11632
11632
  },
11633
11633
  "searchByName": {
11634
11634
  "type": "string"
11635
+ },
11636
+ "channel": {
11637
+ "type": "string"
11635
11638
  }
11636
11639
  }
11637
11640
  },
@@ -11764,6 +11767,9 @@ export const data = {
11764
11767
  "localizedContent": {
11765
11768
  "type": "string",
11766
11769
  "mapKeyType": "string"
11770
+ },
11771
+ "code": {
11772
+ "type": "string"
11767
11773
  }
11768
11774
  }
11769
11775
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.499",
3
+ "version": "0.2.501",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",