@pushwoosh/rpc-v2-http-api-data 0.2.498 → 0.2.500

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/chat_presets.d.ts CHANGED
@@ -127,6 +127,11 @@ export type ValidateChatPresetRequest = {
127
127
  category?: string;
128
128
  /** Rich content per language as JSON of the channel-agnostic model. */
129
129
  localizedContent?: Record<string, string>;
130
+ /**
131
+ * Code of the saved preset being edited, if any: its WhatsApp template status is then reported
132
+ * instead of "not submitted". It must belong to the same application.
133
+ */
134
+ code?: string;
130
135
  };
131
136
  export type ValidateChatPresetResponse = {
132
137
  /** Compatibility per channel: "rcs", "whatsapp", "fbmessenger", "line". */
package/data.js CHANGED
@@ -11764,6 +11764,9 @@ export const data = {
11764
11764
  "localizedContent": {
11765
11765
  "type": "string",
11766
11766
  "mapKeyType": "string"
11767
+ },
11768
+ "code": {
11769
+ "type": "string"
11767
11770
  }
11768
11771
  }
11769
11772
  },
@@ -33533,7 +33536,9 @@ export const data = {
33533
33536
  "CSS_SELECTOR_INVALID",
33534
33537
  "CSS_SELECTOR_EMPTY",
33535
33538
  "CSS_SELECTOR_NOT_ALLOWED",
33536
- "KIND_FILTER_INVALID"
33539
+ "KIND_FILTER_INVALID",
33540
+ "PUSH_PERMISSION_STATUS_EMPTY",
33541
+ "PUSH_PERMISSION_STATUS_INVALID"
33537
33542
  ],
33538
33543
  "valuesArgs": {
33539
33544
  "NAME_TOO_LONG": [
@@ -33723,6 +33728,9 @@ export const data = {
33723
33728
  },
33724
33729
  "cssSelector": {
33725
33730
  "type": "string"
33731
+ },
33732
+ "pushPermissionStatus": {
33733
+ "type": "string"
33726
33734
  }
33727
33735
  }
33728
33736
  },
@@ -33814,6 +33822,9 @@ export const data = {
33814
33822
  },
33815
33823
  "popupFormContentKind": {
33816
33824
  "type": "string"
33825
+ },
33826
+ "interactions": {
33827
+ "type": "number"
33817
33828
  }
33818
33829
  }
33819
33830
  },
@@ -33914,6 +33925,9 @@ export const data = {
33914
33925
  },
33915
33926
  "cssSelector": {
33916
33927
  "type": "string"
33928
+ },
33929
+ "pushPermissionStatus": {
33930
+ "type": "string"
33917
33931
  }
33918
33932
  }
33919
33933
  },
@@ -34004,6 +34018,10 @@ export const data = {
34004
34018
  "cssSelector": {
34005
34019
  "type": "string",
34006
34020
  "optional": true
34021
+ },
34022
+ "pushPermissionStatus": {
34023
+ "type": "string",
34024
+ "optional": true
34007
34025
  }
34008
34026
  }
34009
34027
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.498",
3
+ "version": "0.2.500",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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 impression counts and the kind of its content (CONTENT or FORM). Use to browse popup forms or find a popup form code before fetching details. */
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;
@@ -240,6 +244,11 @@ export type PopupForm = {
240
244
  * (at most 255 characters), always empty for a POPUP one.
241
245
  */
242
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;
243
252
  };
244
253
  export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
245
254
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
@@ -294,6 +303,8 @@ export type ListResponse_ListItem = {
294
303
  submitErrors: Record<string, number>;
295
304
  /** Kind of the campaign's content: "CONTENT" or "FORM" (as PopupFormContent.kind). Empty when the campaign has no content or it was deleted. */
296
305
  popupFormContentKind: string;
306
+ /** Number of clicks on links and buttons inside the content (PW_PopupFormInteraction). */
307
+ interactions: number;
297
308
  };
298
309
  export type ListResponse = {
299
310
  /** List of Popup Forms for the current page. */
@@ -358,6 +369,11 @@ export type CreateRequest = {
358
369
  * when kind is POPUP.
359
370
  */
360
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;
361
377
  };
362
378
  export type CreateResponse = {
363
379
  /** Similar to the PopupForm. */
@@ -429,6 +445,11 @@ export type UpdateRequest = {
429
445
  * for a POPUP campaign an empty value is ignored.
430
446
  */
431
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;
432
453
  };
433
454
  export type UpdateResponse = {};
434
455
  export type DeleteRequest = {