@pushwoosh/rpc-v2-http-api-data 0.2.203 → 0.2.205
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 +40 -0
- package/integrations.d.ts +21 -0
- package/package.json +1 -1
- package/whatsapp.d.ts +5 -1
package/data.js
CHANGED
|
@@ -16894,6 +16894,34 @@ export const data = {
|
|
|
16894
16894
|
}
|
|
16895
16895
|
}
|
|
16896
16896
|
},
|
|
16897
|
+
"pushwoosh.rpc_v2.integrations.PostEventConfiguration": {
|
|
16898
|
+
"type": "I",
|
|
16899
|
+
"fields": {
|
|
16900
|
+
"enabled": {
|
|
16901
|
+
"type": "boolean"
|
|
16902
|
+
},
|
|
16903
|
+
"url": {
|
|
16904
|
+
"type": "string"
|
|
16905
|
+
},
|
|
16906
|
+
"auth": {
|
|
16907
|
+
"type": "string"
|
|
16908
|
+
},
|
|
16909
|
+
"transport": {
|
|
16910
|
+
"type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
|
|
16911
|
+
},
|
|
16912
|
+
"events": {
|
|
16913
|
+
"type": "string",
|
|
16914
|
+
"array": true
|
|
16915
|
+
},
|
|
16916
|
+
"filters": {
|
|
16917
|
+
"type": "pushwoosh.rpc_v2.integrations.Filters"
|
|
16918
|
+
},
|
|
16919
|
+
"availableEvents": {
|
|
16920
|
+
"type": "string",
|
|
16921
|
+
"array": true
|
|
16922
|
+
}
|
|
16923
|
+
}
|
|
16924
|
+
},
|
|
16897
16925
|
"pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest": {
|
|
16898
16926
|
"type": "I",
|
|
16899
16927
|
"fields": {
|
|
@@ -16924,6 +16952,9 @@ export const data = {
|
|
|
16924
16952
|
"availableEvents": {
|
|
16925
16953
|
"type": "string",
|
|
16926
16954
|
"array": true
|
|
16955
|
+
},
|
|
16956
|
+
"postEvent": {
|
|
16957
|
+
"type": "pushwoosh.rpc_v2.integrations.PostEventConfiguration"
|
|
16927
16958
|
}
|
|
16928
16959
|
}
|
|
16929
16960
|
},
|
|
@@ -16948,6 +16979,9 @@ export const data = {
|
|
|
16948
16979
|
},
|
|
16949
16980
|
"transport": {
|
|
16950
16981
|
"type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
|
|
16982
|
+
},
|
|
16983
|
+
"postEvent": {
|
|
16984
|
+
"type": "pushwoosh.rpc_v2.integrations.PostEventConfiguration"
|
|
16951
16985
|
}
|
|
16952
16986
|
}
|
|
16953
16987
|
},
|
|
@@ -30775,6 +30809,9 @@ export const data = {
|
|
|
30775
30809
|
},
|
|
30776
30810
|
"campaignCode": {
|
|
30777
30811
|
"type": "string"
|
|
30812
|
+
},
|
|
30813
|
+
"language": {
|
|
30814
|
+
"type": "string"
|
|
30778
30815
|
}
|
|
30779
30816
|
}
|
|
30780
30817
|
},
|
|
@@ -30810,6 +30847,9 @@ export const data = {
|
|
|
30810
30847
|
"localizedAttachment": {
|
|
30811
30848
|
"type": "string",
|
|
30812
30849
|
"mapKeyType": "string"
|
|
30850
|
+
},
|
|
30851
|
+
"language": {
|
|
30852
|
+
"type": "string"
|
|
30813
30853
|
}
|
|
30814
30854
|
}
|
|
30815
30855
|
},
|
package/integrations.d.ts
CHANGED
|
@@ -156,6 +156,25 @@ export type Filters = {
|
|
|
156
156
|
campaigns: Filters_CampaignsFilter;
|
|
157
157
|
liveActivity: Filters_LiveActivityFilter;
|
|
158
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* PostEventConfiguration is the second stream of the webhook integration: the
|
|
161
|
+
* customer's own post events, delivered by a separate instance of the service.
|
|
162
|
+
*/
|
|
163
|
+
export type PostEventConfiguration = {
|
|
164
|
+
/** the stream is off until the client turns it on */
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
/** empty means the webhook url above */
|
|
167
|
+
url: string;
|
|
168
|
+
/** travels with the url, not inherited on its own */
|
|
169
|
+
auth: string;
|
|
170
|
+
transport: WebhookIntegrationTransportType;
|
|
171
|
+
/** post event names picked by the client */
|
|
172
|
+
events: string[];
|
|
173
|
+
/** only the platforms filter applies to post events */
|
|
174
|
+
filters: Filters;
|
|
175
|
+
/** the account's own event names */
|
|
176
|
+
availableEvents: string[];
|
|
177
|
+
};
|
|
159
178
|
export type GetWebhookConfigurationRequest = {
|
|
160
179
|
application?: string;
|
|
161
180
|
};
|
|
@@ -170,6 +189,7 @@ export type GetWebhookConfigurationResponse = {
|
|
|
170
189
|
transport: WebhookIntegrationTransportType;
|
|
171
190
|
/** events that available to process */
|
|
172
191
|
availableEvents: string[];
|
|
192
|
+
postEvent: PostEventConfiguration;
|
|
173
193
|
};
|
|
174
194
|
export type CreateWebhookConfigurationRequest = {
|
|
175
195
|
application?: string;
|
|
@@ -181,6 +201,7 @@ export type CreateWebhookConfigurationRequest = {
|
|
|
181
201
|
events?: string[];
|
|
182
202
|
filters?: Filters;
|
|
183
203
|
transport?: WebhookIntegrationTransportType;
|
|
204
|
+
postEvent?: PostEventConfiguration;
|
|
184
205
|
};
|
|
185
206
|
export type CreateWebhookConfigurationResponse = {};
|
|
186
207
|
export type GetSegmentConfigurationRequest = {
|
package/package.json
CHANGED
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
|
|
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;
|