@pushwoosh/rpc-v2-http-api-data 0.2.393 → 0.2.394
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 +73 -1
- package/package.json +1 -1
- package/pushwoosh_rpc_popup_forms_v3.d.ts +40 -1
package/data.js
CHANGED
|
@@ -30903,7 +30903,10 @@ export const data = {
|
|
|
30903
30903
|
"MATCHING_PAGE_RULE_OPERATOR_INVALID",
|
|
30904
30904
|
"MATCHING_PAGE_RULES_TOO_MANY",
|
|
30905
30905
|
"TRIGGER_TYPE_EMPTY",
|
|
30906
|
-
"TRIGGER_TYPE_INVALID"
|
|
30906
|
+
"TRIGGER_TYPE_INVALID",
|
|
30907
|
+
"CODES_EMPTY",
|
|
30908
|
+
"CODES_TOO_MANY",
|
|
30909
|
+
"POPUP_FORM_STATUS_NOT_ALLOWED"
|
|
30907
30910
|
],
|
|
30908
30911
|
"valuesArgs": {
|
|
30909
30912
|
"NAME_TOO_LONG": [
|
|
@@ -30932,6 +30935,9 @@ export const data = {
|
|
|
30932
30935
|
],
|
|
30933
30936
|
"MATCHING_PAGE_RULES_TOO_MANY": [
|
|
30934
30937
|
"max"
|
|
30938
|
+
],
|
|
30939
|
+
"CODES_TOO_MANY": [
|
|
30940
|
+
"max"
|
|
30935
30941
|
]
|
|
30936
30942
|
}
|
|
30937
30943
|
},
|
|
@@ -30980,6 +30986,24 @@ export const data = {
|
|
|
30980
30986
|
"response": "pushwoosh.rpc.popup_forms.v3.ActivateResponse",
|
|
30981
30987
|
"method": "post",
|
|
30982
30988
|
"path": "/api/v3/popup_forms/{code}:activate"
|
|
30989
|
+
},
|
|
30990
|
+
"DeactivatePopupForms": {
|
|
30991
|
+
"request": "pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsRequest",
|
|
30992
|
+
"response": "pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsResponse",
|
|
30993
|
+
"method": "post",
|
|
30994
|
+
"path": "/api/v3/popup_forms/deactivate"
|
|
30995
|
+
},
|
|
30996
|
+
"ActivatePopupForms": {
|
|
30997
|
+
"request": "pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsRequest",
|
|
30998
|
+
"response": "pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsResponse",
|
|
30999
|
+
"method": "post",
|
|
31000
|
+
"path": "/api/v3/popup_forms/activate"
|
|
31001
|
+
},
|
|
31002
|
+
"DeletePopupForms": {
|
|
31003
|
+
"request": "pushwoosh.rpc.popup_forms.v3.DeletePopupFormsRequest",
|
|
31004
|
+
"response": "pushwoosh.rpc.popup_forms.v3.DeletePopupFormsResponse",
|
|
31005
|
+
"method": "post",
|
|
31006
|
+
"path": "/api/v3/popup_forms/delete"
|
|
30983
31007
|
}
|
|
30984
31008
|
}
|
|
30985
31009
|
},
|
|
@@ -31354,6 +31378,54 @@ export const data = {
|
|
|
31354
31378
|
"type": "I",
|
|
31355
31379
|
"fields": {}
|
|
31356
31380
|
},
|
|
31381
|
+
"pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsRequest": {
|
|
31382
|
+
"type": "I",
|
|
31383
|
+
"fields": {
|
|
31384
|
+
"application": {
|
|
31385
|
+
"type": "string"
|
|
31386
|
+
},
|
|
31387
|
+
"codes": {
|
|
31388
|
+
"type": "string",
|
|
31389
|
+
"array": true
|
|
31390
|
+
}
|
|
31391
|
+
}
|
|
31392
|
+
},
|
|
31393
|
+
"pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsResponse": {
|
|
31394
|
+
"type": "I",
|
|
31395
|
+
"fields": {}
|
|
31396
|
+
},
|
|
31397
|
+
"pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsRequest": {
|
|
31398
|
+
"type": "I",
|
|
31399
|
+
"fields": {
|
|
31400
|
+
"application": {
|
|
31401
|
+
"type": "string"
|
|
31402
|
+
},
|
|
31403
|
+
"codes": {
|
|
31404
|
+
"type": "string",
|
|
31405
|
+
"array": true
|
|
31406
|
+
}
|
|
31407
|
+
}
|
|
31408
|
+
},
|
|
31409
|
+
"pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsResponse": {
|
|
31410
|
+
"type": "I",
|
|
31411
|
+
"fields": {}
|
|
31412
|
+
},
|
|
31413
|
+
"pushwoosh.rpc.popup_forms.v3.DeletePopupFormsRequest": {
|
|
31414
|
+
"type": "I",
|
|
31415
|
+
"fields": {
|
|
31416
|
+
"application": {
|
|
31417
|
+
"type": "string"
|
|
31418
|
+
},
|
|
31419
|
+
"codes": {
|
|
31420
|
+
"type": "string",
|
|
31421
|
+
"array": true
|
|
31422
|
+
}
|
|
31423
|
+
}
|
|
31424
|
+
},
|
|
31425
|
+
"pushwoosh.rpc.popup_forms.v3.DeletePopupFormsResponse": {
|
|
31426
|
+
"type": "I",
|
|
31427
|
+
"fields": {}
|
|
31428
|
+
},
|
|
31357
31429
|
"pushwoosh.rpc.popup_forms_contents.v3.PopupFormsContentsService_Save_FieldViolations": {
|
|
31358
31430
|
"type": "E",
|
|
31359
31431
|
"values": [
|
package/package.json
CHANGED
|
@@ -101,7 +101,16 @@ export type PopupFormsServiceErrors =
|
|
|
101
101
|
/** Popup Form trigger type is required. */
|
|
102
102
|
| 'TRIGGER_TYPE_EMPTY'
|
|
103
103
|
/** Popup Form trigger type is invalid (allowed: PAGE_LOAD, API). */
|
|
104
|
-
| 'TRIGGER_TYPE_INVALID'
|
|
104
|
+
| 'TRIGGER_TYPE_INVALID'
|
|
105
|
+
/** Popup Form codes are required. */
|
|
106
|
+
| 'CODES_EMPTY'
|
|
107
|
+
/**
|
|
108
|
+
* Too many Popup Form codes in one request.
|
|
109
|
+
* args: max - the maximum allowed number of codes.
|
|
110
|
+
*/
|
|
111
|
+
| 'CODES_TOO_MANY'
|
|
112
|
+
/** The action is not allowed for some Popup Forms in their current status. */
|
|
113
|
+
| 'POPUP_FORM_STATUS_NOT_ALLOWED';
|
|
105
114
|
export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
|
|
106
115
|
export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
|
|
107
116
|
export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
|
|
@@ -109,6 +118,9 @@ export type PopupFormsService_Update = RpcMethod<UpdateRequest, UpdateResponse>;
|
|
|
109
118
|
export type PopupFormsService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
|
|
110
119
|
export type PopupFormsService_Deactivate = RpcMethod<DeactivateRequest, DeactivateResponse>;
|
|
111
120
|
export type PopupFormsService_Activate = RpcMethod<ActivateRequest, ActivateResponse>;
|
|
121
|
+
export type PopupFormsService_DeactivatePopupForms = RpcMethod<DeactivatePopupFormsRequest, DeactivatePopupFormsResponse>;
|
|
122
|
+
export type PopupFormsService_ActivatePopupForms = RpcMethod<ActivatePopupFormsRequest, ActivatePopupFormsResponse>;
|
|
123
|
+
export type PopupFormsService_DeletePopupForms = RpcMethod<DeletePopupFormsRequest, DeletePopupFormsResponse>;
|
|
112
124
|
export interface PopupFormsService {
|
|
113
125
|
/** Lists web popup forms for an application code, newest-published first, with paging, name/code search and an optional status filter; each item carries visitor and impression counts. Use to browse popup forms or find a popup form code before fetching details. */
|
|
114
126
|
List: PopupFormsService_List;
|
|
@@ -124,6 +136,12 @@ export interface PopupFormsService {
|
|
|
124
136
|
Deactivate: PopupFormsService_Deactivate;
|
|
125
137
|
/** Activates a web popup form by code, setting its status to active and stamping its published time so it starts showing to visitors. Reversible via disable_popup_form; errors if the form is already active. */
|
|
126
138
|
Activate: PopupFormsService_Activate;
|
|
139
|
+
/** Deactivates several active web popup forms of an application (code XXXXX-XXXXX) in one request, up to 1000 codes. All-or-nothing: if any code is not found or is not active, nothing changes. Use disable_popup_form for a single one. */
|
|
140
|
+
DeactivatePopupForms: PopupFormsService_DeactivatePopupForms;
|
|
141
|
+
/** Activates several inactive (paused) web popup forms of an application (code XXXXX-XXXXX) in one request, up to 1000 codes, stamping their published time. Drafts are not activated. All-or-nothing: if any code is not found or is not paused, nothing changes. */
|
|
142
|
+
ActivatePopupForms: PopupFormsService_ActivatePopupForms;
|
|
143
|
+
/** Permanently deletes several web popup forms of an application (code XXXXX-XXXXX) in one request, up to 1000 codes, in any status, like delete_popup_form. All-or-nothing: if any code is not found, nothing is deleted. */
|
|
144
|
+
DeletePopupForms: PopupFormsService_DeletePopupForms;
|
|
127
145
|
}
|
|
128
146
|
/**
|
|
129
147
|
* PageRule is a single "do not show on this page" rule. operator is a
|
|
@@ -368,3 +386,24 @@ export type ActivateRequest = {
|
|
|
368
386
|
code?: string;
|
|
369
387
|
};
|
|
370
388
|
export type ActivateResponse = {};
|
|
389
|
+
export type DeactivatePopupFormsRequest = {
|
|
390
|
+
/** Application code (XXXXX-XXXXX) the popup forms belong to. */
|
|
391
|
+
application?: string;
|
|
392
|
+
/** Popup Form codes to deactivate. */
|
|
393
|
+
codes?: string[];
|
|
394
|
+
};
|
|
395
|
+
export type DeactivatePopupFormsResponse = {};
|
|
396
|
+
export type ActivatePopupFormsRequest = {
|
|
397
|
+
/** Application code (XXXXX-XXXXX) the popup forms belong to. */
|
|
398
|
+
application?: string;
|
|
399
|
+
/** Popup Form codes to activate. */
|
|
400
|
+
codes?: string[];
|
|
401
|
+
};
|
|
402
|
+
export type ActivatePopupFormsResponse = {};
|
|
403
|
+
export type DeletePopupFormsRequest = {
|
|
404
|
+
/** Application code (XXXXX-XXXXX) the popup forms belong to. */
|
|
405
|
+
application?: string;
|
|
406
|
+
/** Popup Form codes to delete. */
|
|
407
|
+
codes?: string[];
|
|
408
|
+
};
|
|
409
|
+
export type DeletePopupFormsResponse = {};
|