@pushwoosh/rpc-v2-http-api-data 0.2.400 → 0.2.401

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
@@ -31004,7 +31004,8 @@ export const data = {
31004
31004
  "KIND_INVALID",
31005
31005
  "CSS_SELECTOR_INVALID",
31006
31006
  "CSS_SELECTOR_EMPTY",
31007
- "CSS_SELECTOR_NOT_ALLOWED"
31007
+ "CSS_SELECTOR_NOT_ALLOWED",
31008
+ "KIND_FILTER_INVALID"
31008
31009
  ],
31009
31010
  "valuesArgs": {
31010
31011
  "NAME_TOO_LONG": [
@@ -31235,6 +31236,10 @@ export const data = {
31235
31236
  },
31236
31237
  "perPage": {
31237
31238
  "type": "number"
31239
+ },
31240
+ "kind": {
31241
+ "type": "string",
31242
+ "optional": true
31238
31243
  }
31239
31244
  }
31240
31245
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.400",
3
+ "version": "0.2.401",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -215,7 +215,7 @@ export type CreateRequest = {
215
215
  json?: string;
216
216
  /** Similar to the PopupFormContent. */
217
217
  html?: string;
218
- /** Similar to the PopupFormContent. Required. */
218
+ /** Required: CONTENT or FORM. */
219
219
  kind?: string;
220
220
  };
221
221
  export type CreateResponse = {
@@ -123,7 +123,9 @@ export type PopupFormsServiceErrors =
123
123
  /** CSS selector is required for an EMBEDDED Popup Form. */
124
124
  | 'CSS_SELECTOR_EMPTY'
125
125
  /** CSS selector is not allowed for a POPUP Popup Form. */
126
- | 'CSS_SELECTOR_NOT_ALLOWED';
126
+ | 'CSS_SELECTOR_NOT_ALLOWED'
127
+ /** List kind filter is invalid (allowed: POPUP, EMBEDDED). */
128
+ | 'KIND_FILTER_INVALID';
127
129
  export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
128
130
  export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
129
131
  export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
@@ -135,7 +137,7 @@ export type PopupFormsService_DeactivatePopupForms = RpcMethod<DeactivatePopupFo
135
137
  export type PopupFormsService_ActivatePopupForms = RpcMethod<ActivatePopupFormsRequest, ActivatePopupFormsResponse>;
136
138
  export type PopupFormsService_DeletePopupForms = RpcMethod<DeletePopupFormsRequest, DeletePopupFormsResponse>;
137
139
  export interface PopupFormsService {
138
- /** 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. */
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. Use to browse popup forms or find a popup form code before fetching details. */
139
141
  List: PopupFormsService_List;
140
142
  /** 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. */
141
143
  Get: PopupFormsService_Get;
@@ -253,6 +255,11 @@ export type ListRequest = {
253
255
  page?: number;
254
256
  /** Number of items per page. */
255
257
  perPage?: number;
258
+ /**
259
+ * Optional kind filter: "POPUP" or "EMBEDDED". Empty means no filter.
260
+ * Paging and totals are counted over the filtered set.
261
+ */
262
+ kind?: string;
256
263
  };
257
264
  export type ListResponse_ListItem = {
258
265
  /** Similar to the PopupForm. */
@@ -330,7 +337,7 @@ export type CreateRequest = {
330
337
  matchingPageRules?: PageRule[];
331
338
  /** Similar to the PopupForm. */
332
339
  triggerType?: string;
333
- /** Similar to the PopupForm. Required. */
340
+ /** Required: POPUP or EMBEDDED. EMBEDDED also requires css_selector. */
334
341
  kind?: string;
335
342
  /**
336
343
  * Similar to the PopupForm. Required when kind is EMBEDDED, must be empty