@pushwoosh/rpc-v2-http-api-data 0.2.497 → 0.2.499
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 +16 -1
- package/package.json +1 -1
- package/pushwoosh_rpc_popup_forms_v3.d.ts +27 -3
package/data.js
CHANGED
|
@@ -33533,7 +33533,9 @@ export const data = {
|
|
|
33533
33533
|
"CSS_SELECTOR_INVALID",
|
|
33534
33534
|
"CSS_SELECTOR_EMPTY",
|
|
33535
33535
|
"CSS_SELECTOR_NOT_ALLOWED",
|
|
33536
|
-
"KIND_FILTER_INVALID"
|
|
33536
|
+
"KIND_FILTER_INVALID",
|
|
33537
|
+
"PUSH_PERMISSION_STATUS_EMPTY",
|
|
33538
|
+
"PUSH_PERMISSION_STATUS_INVALID"
|
|
33537
33539
|
],
|
|
33538
33540
|
"valuesArgs": {
|
|
33539
33541
|
"NAME_TOO_LONG": [
|
|
@@ -33723,6 +33725,9 @@ export const data = {
|
|
|
33723
33725
|
},
|
|
33724
33726
|
"cssSelector": {
|
|
33725
33727
|
"type": "string"
|
|
33728
|
+
},
|
|
33729
|
+
"pushPermissionStatus": {
|
|
33730
|
+
"type": "string"
|
|
33726
33731
|
}
|
|
33727
33732
|
}
|
|
33728
33733
|
},
|
|
@@ -33814,6 +33819,9 @@ export const data = {
|
|
|
33814
33819
|
},
|
|
33815
33820
|
"popupFormContentKind": {
|
|
33816
33821
|
"type": "string"
|
|
33822
|
+
},
|
|
33823
|
+
"interactions": {
|
|
33824
|
+
"type": "number"
|
|
33817
33825
|
}
|
|
33818
33826
|
}
|
|
33819
33827
|
},
|
|
@@ -33914,6 +33922,9 @@ export const data = {
|
|
|
33914
33922
|
},
|
|
33915
33923
|
"cssSelector": {
|
|
33916
33924
|
"type": "string"
|
|
33925
|
+
},
|
|
33926
|
+
"pushPermissionStatus": {
|
|
33927
|
+
"type": "string"
|
|
33917
33928
|
}
|
|
33918
33929
|
}
|
|
33919
33930
|
},
|
|
@@ -34004,6 +34015,10 @@ export const data = {
|
|
|
34004
34015
|
"cssSelector": {
|
|
34005
34016
|
"type": "string",
|
|
34006
34017
|
"optional": true
|
|
34018
|
+
},
|
|
34019
|
+
"pushPermissionStatus": {
|
|
34020
|
+
"type": "string",
|
|
34021
|
+
"optional": true
|
|
34007
34022
|
}
|
|
34008
34023
|
}
|
|
34009
34024
|
},
|
package/package.json
CHANGED
|
@@ -125,7 +125,11 @@ export type PopupFormsServiceErrors =
|
|
|
125
125
|
/** CSS selector is not allowed for a POPUP Popup Form. */
|
|
126
126
|
| 'CSS_SELECTOR_NOT_ALLOWED'
|
|
127
127
|
/** List kind filter is invalid (allowed: POPUP, EMBEDDED). */
|
|
128
|
-
| 'KIND_FILTER_INVALID'
|
|
128
|
+
| 'KIND_FILTER_INVALID'
|
|
129
|
+
/** Popup Form push permission status is required. */
|
|
130
|
+
| 'PUSH_PERMISSION_STATUS_EMPTY'
|
|
131
|
+
/** Popup Form push permission status is invalid (allowed: ALL, DEFAULT, GRANTED, DENIED, UNSUPPORTED). */
|
|
132
|
+
| 'PUSH_PERMISSION_STATUS_INVALID';
|
|
129
133
|
export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
|
|
130
134
|
export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
|
|
131
135
|
export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
|
|
@@ -137,7 +141,7 @@ export type PopupFormsService_DeactivatePopupForms = RpcMethod<DeactivatePopupFo
|
|
|
137
141
|
export type PopupFormsService_ActivatePopupForms = RpcMethod<ActivatePopupFormsRequest, ActivatePopupFormsResponse>;
|
|
138
142
|
export type PopupFormsService_DeletePopupForms = RpcMethod<DeletePopupFormsRequest, DeletePopupFormsResponse>;
|
|
139
143
|
export interface PopupFormsService {
|
|
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
|
|
144
|
+
/** 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, impression and interaction counts and the kind of its content (CONTENT or FORM). Use to browse popup forms or find a popup form code before fetching details. */
|
|
141
145
|
List: PopupFormsService_List;
|
|
142
146
|
/** 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. */
|
|
143
147
|
Get: PopupFormsService_Get;
|
|
@@ -163,7 +167,10 @@ export interface PopupFormsService {
|
|
|
163
167
|
* string ("EQUALS" | "STARTS_WITH") to match the other categorical fields.
|
|
164
168
|
*/
|
|
165
169
|
export type PageRule = {
|
|
166
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* Page path, e.g. "/checkout": any alphabet, spaces and - _ . ~ ! $ & ' ( ) * + , ; = : @ / are allowed.
|
|
172
|
+
* A full URL or an encoded path is accepted: domain, query and fragment are cut, the path is decoded and lowercased.
|
|
173
|
+
*/
|
|
167
174
|
path: string;
|
|
168
175
|
/** Match operator: "EQUALS" (exact path) or "STARTS_WITH" (path prefix). */
|
|
169
176
|
operator: string;
|
|
@@ -237,6 +244,11 @@ export type PopupForm = {
|
|
|
237
244
|
* (at most 255 characters), always empty for a POPUP one.
|
|
238
245
|
*/
|
|
239
246
|
cssSelector: string;
|
|
247
|
+
/**
|
|
248
|
+
* Browser push permission a visitor needs to see the campaign, checked by
|
|
249
|
+
* Web SDK: ALL, DEFAULT (not asked yet), GRANTED, DENIED or UNSUPPORTED.
|
|
250
|
+
*/
|
|
251
|
+
pushPermissionStatus: string;
|
|
240
252
|
};
|
|
241
253
|
export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
|
|
242
254
|
export type ListRequest_OrderDirection = 'DESC' | 'ASC';
|
|
@@ -291,6 +303,8 @@ export type ListResponse_ListItem = {
|
|
|
291
303
|
submitErrors: Record<string, number>;
|
|
292
304
|
/** Kind of the campaign's content: "CONTENT" or "FORM" (as PopupFormContent.kind). Empty when the campaign has no content or it was deleted. */
|
|
293
305
|
popupFormContentKind: string;
|
|
306
|
+
/** Number of clicks on links and buttons inside the content (PW_PopupFormInteraction). */
|
|
307
|
+
interactions: number;
|
|
294
308
|
};
|
|
295
309
|
export type ListResponse = {
|
|
296
310
|
/** List of Popup Forms for the current page. */
|
|
@@ -355,6 +369,11 @@ export type CreateRequest = {
|
|
|
355
369
|
* when kind is POPUP.
|
|
356
370
|
*/
|
|
357
371
|
cssSelector?: string;
|
|
372
|
+
/**
|
|
373
|
+
* Required, case-sensitive. Push permission a visitor needs to see the campaign:
|
|
374
|
+
* ALL, DEFAULT (not asked yet), GRANTED, DENIED or UNSUPPORTED.
|
|
375
|
+
*/
|
|
376
|
+
pushPermissionStatus?: string;
|
|
358
377
|
};
|
|
359
378
|
export type CreateResponse = {
|
|
360
379
|
/** Similar to the PopupForm. */
|
|
@@ -426,6 +445,11 @@ export type UpdateRequest = {
|
|
|
426
445
|
* for a POPUP campaign an empty value is ignored.
|
|
427
446
|
*/
|
|
428
447
|
cssSelector?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Omit to keep the stored value. Case-sensitive push permission a visitor needs:
|
|
450
|
+
* ALL, DEFAULT (not asked yet), GRANTED, DENIED or UNSUPPORTED.
|
|
451
|
+
*/
|
|
452
|
+
pushPermissionStatus?: string;
|
|
429
453
|
};
|
|
430
454
|
export type UpdateResponse = {};
|
|
431
455
|
export type DeleteRequest = {
|