@pushwoosh/rpc-v2-http-api-data 0.2.204 → 0.2.206

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/data.js CHANGED
@@ -30809,6 +30809,9 @@ export const data = {
30809
30809
  },
30810
30810
  "campaignCode": {
30811
30811
  "type": "string"
30812
+ },
30813
+ "language": {
30814
+ "type": "string"
30812
30815
  }
30813
30816
  }
30814
30817
  },
@@ -30844,6 +30847,9 @@ export const data = {
30844
30847
  "localizedAttachment": {
30845
30848
  "type": "string",
30846
30849
  "mapKeyType": "string"
30850
+ },
30851
+ "language": {
30852
+ "type": "string"
30847
30853
  }
30848
30854
  }
30849
30855
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.204",
3
+ "version": "0.2.206",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/whatsapp.d.ts CHANGED
@@ -70,13 +70,15 @@ export type Product = {
70
70
  };
71
71
  export type WelcomeMessage = {
72
72
  enabled: boolean;
73
- /** text map {"default": "Hi!", "de": "Hallo!"}; the locale a device gets is picked by its Language tag */
73
+ /** text map {"default": "Hi!", "de": "Hallo!"}; the locale a device gets is `language`, or its Language tag when that is empty */
74
74
  localizedContent: Record<string, string>;
75
75
  /** attachment link map {"default": "https://...jpg"}; the text of the same locale is sent as the media caption */
76
76
  localizedAttachment: Record<string, string>;
77
77
  updated: Date;
78
78
  /** Campaign every greeting is reported under; the Message statistics screen takes it to show them together. */
79
79
  campaignCode: string;
80
+ /** locale of localized_content that is always delivered; empty leaves the choice to the contact Language tag */
81
+ language: string;
80
82
  };
81
83
  export type GetWelcomeMessageRequest = {
82
84
  /** application code */
@@ -92,6 +94,8 @@ export type UpdateWelcomeMessageRequest = {
92
94
  enabled?: boolean;
93
95
  localizedContent?: Record<string, string>;
94
96
  localizedAttachment?: Record<string, string>;
97
+ /** locale to deliver; empty means the contact Language tag decides */
98
+ language?: string;
95
99
  };
96
100
  export type UpdateWelcomeMessageResponse = {
97
101
  welcomeMessage: WelcomeMessage;