@pushwoosh/rpc-v2-http-api-data 0.2.399 → 0.2.401
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,13 @@ 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",
|
|
31008
|
+
"KIND_FILTER_INVALID"
|
|
31003
31009
|
],
|
|
31004
31010
|
"valuesArgs": {
|
|
31005
31011
|
"NAME_TOO_LONG": [
|
|
@@ -31031,6 +31037,9 @@ export const data = {
|
|
|
31031
31037
|
],
|
|
31032
31038
|
"CODES_TOO_MANY": [
|
|
31033
31039
|
"max"
|
|
31040
|
+
],
|
|
31041
|
+
"CSS_SELECTOR_INVALID": [
|
|
31042
|
+
"max_length"
|
|
31034
31043
|
]
|
|
31035
31044
|
}
|
|
31036
31045
|
},
|
|
@@ -31180,6 +31189,12 @@ export const data = {
|
|
|
31180
31189
|
},
|
|
31181
31190
|
"triggerType": {
|
|
31182
31191
|
"type": "string"
|
|
31192
|
+
},
|
|
31193
|
+
"kind": {
|
|
31194
|
+
"type": "string"
|
|
31195
|
+
},
|
|
31196
|
+
"cssSelector": {
|
|
31197
|
+
"type": "string"
|
|
31183
31198
|
}
|
|
31184
31199
|
}
|
|
31185
31200
|
},
|
|
@@ -31221,6 +31236,10 @@ export const data = {
|
|
|
31221
31236
|
},
|
|
31222
31237
|
"perPage": {
|
|
31223
31238
|
"type": "number"
|
|
31239
|
+
},
|
|
31240
|
+
"kind": {
|
|
31241
|
+
"type": "string",
|
|
31242
|
+
"optional": true
|
|
31224
31243
|
}
|
|
31225
31244
|
}
|
|
31226
31245
|
},
|
|
@@ -31248,6 +31267,12 @@ export const data = {
|
|
|
31248
31267
|
},
|
|
31249
31268
|
"updated": {
|
|
31250
31269
|
"type": "Date"
|
|
31270
|
+
},
|
|
31271
|
+
"kind": {
|
|
31272
|
+
"type": "string"
|
|
31273
|
+
},
|
|
31274
|
+
"cssSelector": {
|
|
31275
|
+
"type": "string"
|
|
31251
31276
|
}
|
|
31252
31277
|
}
|
|
31253
31278
|
},
|
|
@@ -31342,6 +31367,12 @@ export const data = {
|
|
|
31342
31367
|
},
|
|
31343
31368
|
"triggerType": {
|
|
31344
31369
|
"type": "string"
|
|
31370
|
+
},
|
|
31371
|
+
"kind": {
|
|
31372
|
+
"type": "string"
|
|
31373
|
+
},
|
|
31374
|
+
"cssSelector": {
|
|
31375
|
+
"type": "string"
|
|
31345
31376
|
}
|
|
31346
31377
|
}
|
|
31347
31378
|
},
|
|
@@ -31428,6 +31459,10 @@ export const data = {
|
|
|
31428
31459
|
"triggerType": {
|
|
31429
31460
|
"type": "string",
|
|
31430
31461
|
"optional": true
|
|
31462
|
+
},
|
|
31463
|
+
"cssSelector": {
|
|
31464
|
+
"type": "string",
|
|
31465
|
+
"optional": true
|
|
31431
31466
|
}
|
|
31432
31467
|
}
|
|
31433
31468
|
},
|
|
@@ -31527,7 +31562,9 @@ export const data = {
|
|
|
31527
31562
|
"NAME_TOO_LONG",
|
|
31528
31563
|
"NAME_ALREADY_EXISTS",
|
|
31529
31564
|
"JSON_EMPTY",
|
|
31530
|
-
"JSON_INVALID"
|
|
31565
|
+
"JSON_INVALID",
|
|
31566
|
+
"KIND_EMPTY",
|
|
31567
|
+
"KIND_INVALID"
|
|
31531
31568
|
],
|
|
31532
31569
|
"valuesArgs": {
|
|
31533
31570
|
"NAME_TOO_LONG": [
|
|
@@ -31631,6 +31668,9 @@ export const data = {
|
|
|
31631
31668
|
},
|
|
31632
31669
|
"updated": {
|
|
31633
31670
|
"type": "Date"
|
|
31671
|
+
},
|
|
31672
|
+
"kind": {
|
|
31673
|
+
"type": "string"
|
|
31634
31674
|
}
|
|
31635
31675
|
}
|
|
31636
31676
|
},
|
|
@@ -31689,6 +31729,9 @@ export const data = {
|
|
|
31689
31729
|
},
|
|
31690
31730
|
"updated": {
|
|
31691
31731
|
"type": "Date"
|
|
31732
|
+
},
|
|
31733
|
+
"kind": {
|
|
31734
|
+
"type": "string"
|
|
31692
31735
|
}
|
|
31693
31736
|
}
|
|
31694
31737
|
},
|
|
@@ -31744,6 +31787,9 @@ export const data = {
|
|
|
31744
31787
|
"html": {
|
|
31745
31788
|
"type": "string",
|
|
31746
31789
|
"optional": true
|
|
31790
|
+
},
|
|
31791
|
+
"kind": {
|
|
31792
|
+
"type": "string"
|
|
31747
31793
|
}
|
|
31748
31794
|
}
|
|
31749
31795
|
},
|
package/package.json
CHANGED
|
@@ -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
|
+
/** Required: CONTENT or FORM. */
|
|
219
|
+
kind?: string;
|
|
203
220
|
};
|
|
204
221
|
export type CreateResponse = {
|
|
205
222
|
/** Similar to the PopupFormContent. */
|
|
@@ -110,7 +110,22 @@ 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'
|
|
127
|
+
/** List kind filter is invalid (allowed: POPUP, EMBEDDED). */
|
|
128
|
+
| 'KIND_FILTER_INVALID';
|
|
114
129
|
export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
|
|
115
130
|
export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
|
|
116
131
|
export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
|
|
@@ -122,7 +137,7 @@ export type PopupFormsService_DeactivatePopupForms = RpcMethod<DeactivatePopupFo
|
|
|
122
137
|
export type PopupFormsService_ActivatePopupForms = RpcMethod<ActivatePopupFormsRequest, ActivatePopupFormsResponse>;
|
|
123
138
|
export type PopupFormsService_DeletePopupForms = RpcMethod<DeletePopupFormsRequest, DeletePopupFormsResponse>;
|
|
124
139
|
export interface PopupFormsService {
|
|
125
|
-
/** Lists web popup forms for an application code, newest-published first, with paging, name/code search and
|
|
140
|
+
/** Lists web popup forms for an application code, newest-published first, with paging, name/code search and optional status and kind filters; each item carries visitor and impression counts. Use to browse popup forms or find a popup form code before fetching details. */
|
|
126
141
|
List: PopupFormsService_List;
|
|
127
142
|
/** Returns a single web popup form by its popup form code, including status, display rules, audience targeting and the associated content and subscription form. Use after list_popup_forms to inspect one form's full configuration. */
|
|
128
143
|
Get: PopupFormsService_Get;
|
|
@@ -212,6 +227,16 @@ export type PopupForm = {
|
|
|
212
227
|
* "API" (shown only on an explicit WebSDK call).
|
|
213
228
|
*/
|
|
214
229
|
triggerType: string;
|
|
230
|
+
/**
|
|
231
|
+
* How the campaign renders on the site: "POPUP" (overlay) or "EMBEDDED"
|
|
232
|
+
* (inline block inside the container element). Set on create, immutable.
|
|
233
|
+
*/
|
|
234
|
+
kind: string;
|
|
235
|
+
/**
|
|
236
|
+
* CSS selector of the container element. Required for an EMBEDDED campaign
|
|
237
|
+
* (at most 255 characters), always empty for a POPUP one.
|
|
238
|
+
*/
|
|
239
|
+
cssSelector: string;
|
|
215
240
|
};
|
|
216
241
|
export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
|
|
217
242
|
export type ListRequest_OrderDirection = 'DESC' | 'ASC';
|
|
@@ -230,6 +255,11 @@ export type ListRequest = {
|
|
|
230
255
|
page?: number;
|
|
231
256
|
/** Number of items per page. */
|
|
232
257
|
perPage?: number;
|
|
258
|
+
/**
|
|
259
|
+
* Optional kind filter: "POPUP" or "EMBEDDED". Empty means no filter.
|
|
260
|
+
* Paging and totals are counted over the filtered set.
|
|
261
|
+
*/
|
|
262
|
+
kind?: string;
|
|
233
263
|
};
|
|
234
264
|
export type ListResponse_ListItem = {
|
|
235
265
|
/** Similar to the PopupForm. */
|
|
@@ -246,6 +276,10 @@ export type ListResponse_ListItem = {
|
|
|
246
276
|
impressions: number;
|
|
247
277
|
/** Similar to the PopupForm. */
|
|
248
278
|
updated: Date;
|
|
279
|
+
/** Similar to the PopupForm. */
|
|
280
|
+
kind: string;
|
|
281
|
+
/** Similar to the PopupForm. */
|
|
282
|
+
cssSelector: string;
|
|
249
283
|
};
|
|
250
284
|
export type ListResponse = {
|
|
251
285
|
/** List of Popup Forms for the current page. */
|
|
@@ -303,6 +337,13 @@ export type CreateRequest = {
|
|
|
303
337
|
matchingPageRules?: PageRule[];
|
|
304
338
|
/** Similar to the PopupForm. */
|
|
305
339
|
triggerType?: string;
|
|
340
|
+
/** Required: POPUP or EMBEDDED. EMBEDDED also requires css_selector. */
|
|
341
|
+
kind?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Similar to the PopupForm. Required when kind is EMBEDDED, must be empty
|
|
344
|
+
* when kind is POPUP.
|
|
345
|
+
*/
|
|
346
|
+
cssSelector?: string;
|
|
306
347
|
};
|
|
307
348
|
export type CreateResponse = {
|
|
308
349
|
/** Similar to the PopupForm. */
|
|
@@ -369,6 +410,11 @@ export type UpdateRequest = {
|
|
|
369
410
|
matchingPageRules?: PageRule[];
|
|
370
411
|
/** Similar to the PopupForm. */
|
|
371
412
|
triggerType?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Similar to the PopupForm. Only for an EMBEDDED campaign, cannot be cleared;
|
|
415
|
+
* for a POPUP campaign an empty value is ignored.
|
|
416
|
+
*/
|
|
417
|
+
cssSelector?: string;
|
|
372
418
|
};
|
|
373
419
|
export type UpdateResponse = {};
|
|
374
420
|
export type DeleteRequest = {
|