@pushwoosh/rpc-v2-http-api-data 0.2.399 → 0.2.400

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
@@ -30999,7 +30999,12 @@ export const data = {
30999
30999
  "TRIGGER_TYPE_INVALID",
31000
31000
  "CODES_EMPTY",
31001
31001
  "CODES_TOO_MANY",
31002
- "POPUP_FORM_STATUS_NOT_ALLOWED"
31002
+ "POPUP_FORM_STATUS_NOT_ALLOWED",
31003
+ "KIND_EMPTY",
31004
+ "KIND_INVALID",
31005
+ "CSS_SELECTOR_INVALID",
31006
+ "CSS_SELECTOR_EMPTY",
31007
+ "CSS_SELECTOR_NOT_ALLOWED"
31003
31008
  ],
31004
31009
  "valuesArgs": {
31005
31010
  "NAME_TOO_LONG": [
@@ -31031,6 +31036,9 @@ export const data = {
31031
31036
  ],
31032
31037
  "CODES_TOO_MANY": [
31033
31038
  "max"
31039
+ ],
31040
+ "CSS_SELECTOR_INVALID": [
31041
+ "max_length"
31034
31042
  ]
31035
31043
  }
31036
31044
  },
@@ -31180,6 +31188,12 @@ export const data = {
31180
31188
  },
31181
31189
  "triggerType": {
31182
31190
  "type": "string"
31191
+ },
31192
+ "kind": {
31193
+ "type": "string"
31194
+ },
31195
+ "cssSelector": {
31196
+ "type": "string"
31183
31197
  }
31184
31198
  }
31185
31199
  },
@@ -31248,6 +31262,12 @@ export const data = {
31248
31262
  },
31249
31263
  "updated": {
31250
31264
  "type": "Date"
31265
+ },
31266
+ "kind": {
31267
+ "type": "string"
31268
+ },
31269
+ "cssSelector": {
31270
+ "type": "string"
31251
31271
  }
31252
31272
  }
31253
31273
  },
@@ -31342,6 +31362,12 @@ export const data = {
31342
31362
  },
31343
31363
  "triggerType": {
31344
31364
  "type": "string"
31365
+ },
31366
+ "kind": {
31367
+ "type": "string"
31368
+ },
31369
+ "cssSelector": {
31370
+ "type": "string"
31345
31371
  }
31346
31372
  }
31347
31373
  },
@@ -31428,6 +31454,10 @@ export const data = {
31428
31454
  "triggerType": {
31429
31455
  "type": "string",
31430
31456
  "optional": true
31457
+ },
31458
+ "cssSelector": {
31459
+ "type": "string",
31460
+ "optional": true
31431
31461
  }
31432
31462
  }
31433
31463
  },
@@ -31527,7 +31557,9 @@ export const data = {
31527
31557
  "NAME_TOO_LONG",
31528
31558
  "NAME_ALREADY_EXISTS",
31529
31559
  "JSON_EMPTY",
31530
- "JSON_INVALID"
31560
+ "JSON_INVALID",
31561
+ "KIND_EMPTY",
31562
+ "KIND_INVALID"
31531
31563
  ],
31532
31564
  "valuesArgs": {
31533
31565
  "NAME_TOO_LONG": [
@@ -31631,6 +31663,9 @@ export const data = {
31631
31663
  },
31632
31664
  "updated": {
31633
31665
  "type": "Date"
31666
+ },
31667
+ "kind": {
31668
+ "type": "string"
31634
31669
  }
31635
31670
  }
31636
31671
  },
@@ -31689,6 +31724,9 @@ export const data = {
31689
31724
  },
31690
31725
  "updated": {
31691
31726
  "type": "Date"
31727
+ },
31728
+ "kind": {
31729
+ "type": "string"
31692
31730
  }
31693
31731
  }
31694
31732
  },
@@ -31744,6 +31782,9 @@ export const data = {
31744
31782
  "html": {
31745
31783
  "type": "string",
31746
31784
  "optional": true
31785
+ },
31786
+ "kind": {
31787
+ "type": "string"
31747
31788
  }
31748
31789
  }
31749
31790
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.399",
3
+ "version": "0.2.400",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -30,6 +30,14 @@ export type PopupFormsContentsService_Save_FieldViolations = {
30
30
  reason: 'JSON_INVALID';
31
31
  field: string;
32
32
  description: string;
33
+ } | {
34
+ reason: 'KIND_EMPTY';
35
+ field: string;
36
+ description: string;
37
+ } | {
38
+ reason: 'KIND_INVALID';
39
+ field: string;
40
+ description: string;
33
41
  };
34
42
  export type PopupFormsContentsService_List_FieldViolations = {
35
43
  reason: 'FV_LIST_UNSPECIFIED';
@@ -142,6 +150,11 @@ export type PopupFormContent = {
142
150
  created: Date;
143
151
  /** Popup Form Content updated timestamp. */
144
152
  updated: Date;
153
+ /**
154
+ * Content kind: "CONTENT" (no form blocks) or "FORM" (inputs, consent, submit).
155
+ * Set on create, immutable.
156
+ */
157
+ kind: string;
145
158
  };
146
159
  export type ListRequest_OrderBy = 'UPDATED' | 'NAME';
147
160
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
@@ -170,6 +183,8 @@ export type ListResponse_ListItem = {
170
183
  html?: string;
171
184
  /** Similar to the PopupFormContent. */
172
185
  updated: Date;
186
+ /** Similar to the PopupFormContent. */
187
+ kind: string;
173
188
  };
174
189
  export type ListResponse = {
175
190
  /** List of Popup Form Contents for the current page. */
@@ -200,6 +215,8 @@ export type CreateRequest = {
200
215
  json?: string;
201
216
  /** Similar to the PopupFormContent. */
202
217
  html?: string;
218
+ /** Similar to the PopupFormContent. Required. */
219
+ kind?: string;
203
220
  };
204
221
  export type CreateResponse = {
205
222
  /** Similar to the PopupFormContent. */
@@ -110,7 +110,20 @@ export type PopupFormsServiceErrors =
110
110
  */
111
111
  | 'CODES_TOO_MANY'
112
112
  /** The action is not allowed for some Popup Forms in their current status. */
113
- | 'POPUP_FORM_STATUS_NOT_ALLOWED';
113
+ | 'POPUP_FORM_STATUS_NOT_ALLOWED'
114
+ /** Popup Form kind is required. */
115
+ | 'KIND_EMPTY'
116
+ /** Popup Form kind is invalid (allowed: POPUP, EMBEDDED). */
117
+ | 'KIND_INVALID'
118
+ /**
119
+ * CSS selector is invalid: it cannot be longer than 255 characters.
120
+ * args: max_length - the maximum allowed length of css_selector.
121
+ */
122
+ | 'CSS_SELECTOR_INVALID'
123
+ /** CSS selector is required for an EMBEDDED Popup Form. */
124
+ | 'CSS_SELECTOR_EMPTY'
125
+ /** CSS selector is not allowed for a POPUP Popup Form. */
126
+ | 'CSS_SELECTOR_NOT_ALLOWED';
114
127
  export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
115
128
  export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
116
129
  export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
@@ -212,6 +225,16 @@ export type PopupForm = {
212
225
  * "API" (shown only on an explicit WebSDK call).
213
226
  */
214
227
  triggerType: string;
228
+ /**
229
+ * How the campaign renders on the site: "POPUP" (overlay) or "EMBEDDED"
230
+ * (inline block inside the container element). Set on create, immutable.
231
+ */
232
+ kind: string;
233
+ /**
234
+ * CSS selector of the container element. Required for an EMBEDDED campaign
235
+ * (at most 255 characters), always empty for a POPUP one.
236
+ */
237
+ cssSelector: string;
215
238
  };
216
239
  export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
217
240
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
@@ -246,6 +269,10 @@ export type ListResponse_ListItem = {
246
269
  impressions: number;
247
270
  /** Similar to the PopupForm. */
248
271
  updated: Date;
272
+ /** Similar to the PopupForm. */
273
+ kind: string;
274
+ /** Similar to the PopupForm. */
275
+ cssSelector: string;
249
276
  };
250
277
  export type ListResponse = {
251
278
  /** List of Popup Forms for the current page. */
@@ -303,6 +330,13 @@ export type CreateRequest = {
303
330
  matchingPageRules?: PageRule[];
304
331
  /** Similar to the PopupForm. */
305
332
  triggerType?: string;
333
+ /** Similar to the PopupForm. Required. */
334
+ kind?: string;
335
+ /**
336
+ * Similar to the PopupForm. Required when kind is EMBEDDED, must be empty
337
+ * when kind is POPUP.
338
+ */
339
+ cssSelector?: string;
306
340
  };
307
341
  export type CreateResponse = {
308
342
  /** Similar to the PopupForm. */
@@ -369,6 +403,11 @@ export type UpdateRequest = {
369
403
  matchingPageRules?: PageRule[];
370
404
  /** Similar to the PopupForm. */
371
405
  triggerType?: string;
406
+ /**
407
+ * Similar to the PopupForm. Only for an EMBEDDED campaign, cannot be cleared;
408
+ * for a POPUP campaign an empty value is ignored.
409
+ */
410
+ cssSelector?: string;
372
411
  };
373
412
  export type UpdateResponse = {};
374
413
  export type DeleteRequest = {