@pushwoosh/rpc-v2-http-api-data 0.2.75 → 0.2.77

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
@@ -21239,7 +21239,9 @@ export const data = {
21239
21239
  "EXCLUDED_PAGES_TOO_MANY",
21240
21240
  "EXCLUDED_PAGES_NOT_ALLOWED_WITH_SPECIFIED_PAGES",
21241
21241
  "MATCHING_PAGE_RULE_OPERATOR_INVALID",
21242
- "MATCHING_PAGE_RULES_TOO_MANY"
21242
+ "MATCHING_PAGE_RULES_TOO_MANY",
21243
+ "TRIGGER_TYPE_EMPTY",
21244
+ "TRIGGER_TYPE_INVALID"
21243
21245
  ],
21244
21246
  "valuesArgs": {
21245
21247
  "NAME_TOO_LONG": [
@@ -21396,6 +21398,9 @@ export const data = {
21396
21398
  "matchingPageRules": {
21397
21399
  "type": "pushwoosh.rpc.popup_forms.v3.PageRule",
21398
21400
  "array": true
21401
+ },
21402
+ "triggerType": {
21403
+ "type": "string"
21399
21404
  }
21400
21405
  }
21401
21406
  },
@@ -21555,6 +21560,9 @@ export const data = {
21555
21560
  "matchingPageRules": {
21556
21561
  "type": "pushwoosh.rpc.popup_forms.v3.PageRule",
21557
21562
  "array": true
21563
+ },
21564
+ "triggerType": {
21565
+ "type": "string"
21558
21566
  }
21559
21567
  }
21560
21568
  },
@@ -21637,6 +21645,10 @@ export const data = {
21637
21645
  "matchingPageRules": {
21638
21646
  "type": "pushwoosh.rpc.popup_forms.v3.PageRule",
21639
21647
  "array": true
21648
+ },
21649
+ "triggerType": {
21650
+ "type": "string",
21651
+ "optional": true
21640
21652
  }
21641
21653
  }
21642
21654
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.75",
3
+ "version": "0.2.77",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -103,7 +103,11 @@ export type PopupFormsServiceErrors =
103
103
  * Too many matching page rules.
104
104
  * args: max - the maximum allowed number of matching page rules.
105
105
  */
106
- | 'MATCHING_PAGE_RULES_TOO_MANY';
106
+ | 'MATCHING_PAGE_RULES_TOO_MANY'
107
+ /** Popup Form trigger type is required. */
108
+ | 'TRIGGER_TYPE_EMPTY'
109
+ /** Popup Form trigger type is invalid (allowed: PAGE_LOAD, API). */
110
+ | 'TRIGGER_TYPE_INVALID';
107
111
  export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
108
112
  export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
109
113
  export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
@@ -197,6 +201,11 @@ export type PopupForm = {
197
201
  * sync (= rule paths) for older SDKs. Empty means no page restrictions.
198
202
  */
199
203
  matchingPageRules: PageRule[];
204
+ /**
205
+ * Trigger type: "PAGE_LOAD" (shown automatically on page load) or
206
+ * "API" (shown only on an explicit WebSDK call).
207
+ */
208
+ triggerType: string;
200
209
  };
201
210
  export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
202
211
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
@@ -286,6 +295,8 @@ export type CreateRequest = {
286
295
  * matching_pages (which is kept in sync = rule paths).
287
296
  */
288
297
  matchingPageRules?: PageRule[];
298
+ /** Similar to the PopupForm. */
299
+ triggerType?: string;
289
300
  };
290
301
  export type CreateResponse = {
291
302
  /** Similar to the PopupForm. */
@@ -360,6 +371,8 @@ export type UpdateRequest = {
360
371
  updateMatchingPageRules?: boolean;
361
372
  /** Similar to the PopupForm. Only applied when update_matching_page_rules is true. */
362
373
  matchingPageRules?: PageRule[];
374
+ /** Similar to the PopupForm. */
375
+ triggerType?: string;
363
376
  };
364
377
  export type UpdateResponse = {};
365
378
  export type DeleteRequest = {