@pushwoosh/rpc-v2-http-api-data 0.2.393 → 0.2.395

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
@@ -21670,6 +21670,9 @@ export const data = {
21670
21670
  "fields": {
21671
21671
  "redirectUri": {
21672
21672
  "type": "string"
21673
+ },
21674
+ "returnTo": {
21675
+ "type": "string"
21673
21676
  }
21674
21677
  }
21675
21678
  },
@@ -21886,6 +21889,9 @@ export const data = {
21886
21889
  "fields": {
21887
21890
  "redirectUri": {
21888
21891
  "type": "string"
21892
+ },
21893
+ "returnTo": {
21894
+ "type": "string"
21889
21895
  }
21890
21896
  }
21891
21897
  },
@@ -30903,7 +30909,10 @@ export const data = {
30903
30909
  "MATCHING_PAGE_RULE_OPERATOR_INVALID",
30904
30910
  "MATCHING_PAGE_RULES_TOO_MANY",
30905
30911
  "TRIGGER_TYPE_EMPTY",
30906
- "TRIGGER_TYPE_INVALID"
30912
+ "TRIGGER_TYPE_INVALID",
30913
+ "CODES_EMPTY",
30914
+ "CODES_TOO_MANY",
30915
+ "POPUP_FORM_STATUS_NOT_ALLOWED"
30907
30916
  ],
30908
30917
  "valuesArgs": {
30909
30918
  "NAME_TOO_LONG": [
@@ -30932,6 +30941,9 @@ export const data = {
30932
30941
  ],
30933
30942
  "MATCHING_PAGE_RULES_TOO_MANY": [
30934
30943
  "max"
30944
+ ],
30945
+ "CODES_TOO_MANY": [
30946
+ "max"
30935
30947
  ]
30936
30948
  }
30937
30949
  },
@@ -30980,6 +30992,24 @@ export const data = {
30980
30992
  "response": "pushwoosh.rpc.popup_forms.v3.ActivateResponse",
30981
30993
  "method": "post",
30982
30994
  "path": "/api/v3/popup_forms/{code}:activate"
30995
+ },
30996
+ "DeactivatePopupForms": {
30997
+ "request": "pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsRequest",
30998
+ "response": "pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsResponse",
30999
+ "method": "post",
31000
+ "path": "/api/v3/popup_forms/deactivate"
31001
+ },
31002
+ "ActivatePopupForms": {
31003
+ "request": "pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsRequest",
31004
+ "response": "pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsResponse",
31005
+ "method": "post",
31006
+ "path": "/api/v3/popup_forms/activate"
31007
+ },
31008
+ "DeletePopupForms": {
31009
+ "request": "pushwoosh.rpc.popup_forms.v3.DeletePopupFormsRequest",
31010
+ "response": "pushwoosh.rpc.popup_forms.v3.DeletePopupFormsResponse",
31011
+ "method": "post",
31012
+ "path": "/api/v3/popup_forms/delete"
30983
31013
  }
30984
31014
  }
30985
31015
  },
@@ -31354,6 +31384,54 @@ export const data = {
31354
31384
  "type": "I",
31355
31385
  "fields": {}
31356
31386
  },
31387
+ "pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsRequest": {
31388
+ "type": "I",
31389
+ "fields": {
31390
+ "application": {
31391
+ "type": "string"
31392
+ },
31393
+ "codes": {
31394
+ "type": "string",
31395
+ "array": true
31396
+ }
31397
+ }
31398
+ },
31399
+ "pushwoosh.rpc.popup_forms.v3.DeactivatePopupFormsResponse": {
31400
+ "type": "I",
31401
+ "fields": {}
31402
+ },
31403
+ "pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsRequest": {
31404
+ "type": "I",
31405
+ "fields": {
31406
+ "application": {
31407
+ "type": "string"
31408
+ },
31409
+ "codes": {
31410
+ "type": "string",
31411
+ "array": true
31412
+ }
31413
+ }
31414
+ },
31415
+ "pushwoosh.rpc.popup_forms.v3.ActivatePopupFormsResponse": {
31416
+ "type": "I",
31417
+ "fields": {}
31418
+ },
31419
+ "pushwoosh.rpc.popup_forms.v3.DeletePopupFormsRequest": {
31420
+ "type": "I",
31421
+ "fields": {
31422
+ "application": {
31423
+ "type": "string"
31424
+ },
31425
+ "codes": {
31426
+ "type": "string",
31427
+ "array": true
31428
+ }
31429
+ }
31430
+ },
31431
+ "pushwoosh.rpc.popup_forms.v3.DeletePopupFormsResponse": {
31432
+ "type": "I",
31433
+ "fields": {}
31434
+ },
31357
31435
  "pushwoosh.rpc.popup_forms_contents.v3.PopupFormsContentsService_Save_FieldViolations": {
31358
31436
  "type": "E",
31359
31437
  "values": [
package/integrations.d.ts CHANGED
@@ -354,6 +354,8 @@ export type GetShopifyConfigurationResponse = {
354
354
  export type GetStripeAuthURLRequest = {
355
355
  /** URI Stripe redirects back to after authorization */
356
356
  redirectUri?: string;
357
+ /** https control panel URL the callback sends the user back to, with the code in the fragment */
358
+ returnTo?: string;
357
359
  };
358
360
  export type GetStripeAuthURLResponse = {
359
361
  authUrl: string;
@@ -453,6 +455,8 @@ export type DeleteOAuthIntegrationResponse = {};
453
455
  export type GetMetaAuthURLRequest = {
454
456
  /** URI Meta redirects back to after authorization */
455
457
  redirectUri?: string;
458
+ /** https control panel URL the callback sends the user back to, with the code in the fragment */
459
+ returnTo?: string;
456
460
  };
457
461
  export type GetMetaAuthURLResponse = {
458
462
  authUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.393",
3
+ "version": "0.2.395",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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 = {};