@pushwoosh/rpc-v2-http-api-data 0.2.50 → 0.2.52

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
@@ -21161,7 +21161,11 @@ export const data = {
21161
21161
  "CONTENT_OR_SUBSCRIPTION_REQUIRED",
21162
21162
  "SUBSCRIPTION_FORM_CODE_INVALID",
21163
21163
  "SUBSCRIPTION_FORM_CODE_EMPTY",
21164
- "POPUP_FORM_SOURCE_TYPE_IMMUTABLE"
21164
+ "POPUP_FORM_SOURCE_TYPE_IMMUTABLE",
21165
+ "EXCLUDED_PAGE_INVALID",
21166
+ "EXCLUDED_PAGE_OPERATOR_INVALID",
21167
+ "EXCLUDED_PAGES_TOO_MANY",
21168
+ "EXCLUDED_PAGES_NOT_ALLOWED_WITH_SPECIFIED_PAGES"
21165
21169
  ],
21166
21170
  "valuesArgs": {
21167
21171
  "NAME_TOO_LONG": [
@@ -21175,6 +21179,15 @@ export const data = {
21175
21179
  ],
21176
21180
  "PER_PAGE_TOO_LARGE": [
21177
21181
  "max_per_page"
21182
+ ],
21183
+ "EXCLUDED_PAGE_INVALID": [
21184
+ "page"
21185
+ ],
21186
+ "EXCLUDED_PAGE_OPERATOR_INVALID": [
21187
+ "operator"
21188
+ ],
21189
+ "EXCLUDED_PAGES_TOO_MANY": [
21190
+ "max"
21178
21191
  ]
21179
21192
  }
21180
21193
  },
@@ -21226,6 +21239,17 @@ export const data = {
21226
21239
  }
21227
21240
  }
21228
21241
  },
21242
+ "pushwoosh.rpc.popup_forms.v3.ExcludedPage": {
21243
+ "type": "I",
21244
+ "fields": {
21245
+ "path": {
21246
+ "type": "string"
21247
+ },
21248
+ "operator": {
21249
+ "type": "string"
21250
+ }
21251
+ }
21252
+ },
21229
21253
  "pushwoosh.rpc.popup_forms.v3.PopupForm": {
21230
21254
  "type": "I",
21231
21255
  "fields": {
@@ -21284,6 +21308,10 @@ export const data = {
21284
21308
  },
21285
21309
  "filterCode": {
21286
21310
  "type": "string"
21311
+ },
21312
+ "excludedPages": {
21313
+ "type": "pushwoosh.rpc.popup_forms.v3.ExcludedPage",
21314
+ "array": true
21287
21315
  }
21288
21316
  }
21289
21317
  },
@@ -21435,6 +21463,10 @@ export const data = {
21435
21463
  },
21436
21464
  "filterCode": {
21437
21465
  "type": "string"
21466
+ },
21467
+ "excludedPages": {
21468
+ "type": "pushwoosh.rpc.popup_forms.v3.ExcludedPage",
21469
+ "array": true
21438
21470
  }
21439
21471
  }
21440
21472
  },
@@ -21503,6 +21535,13 @@ export const data = {
21503
21535
  },
21504
21536
  "filterCode": {
21505
21537
  "type": "string"
21538
+ },
21539
+ "updateExcludedPages": {
21540
+ "type": "boolean"
21541
+ },
21542
+ "excludedPages": {
21543
+ "type": "pushwoosh.rpc.popup_forms.v3.ExcludedPage",
21544
+ "array": true
21506
21545
  }
21507
21546
  }
21508
21547
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.50",
3
+ "version": "0.2.52",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -76,7 +76,24 @@ export type PopupFormsServiceErrors =
76
76
  /** Subscription form code is required. */
77
77
  | 'SUBSCRIPTION_FORM_CODE_EMPTY'
78
78
  /** Cannot switch a popup form between a content and a subscription form via update. */
79
- | 'POPUP_FORM_SOURCE_TYPE_IMMUTABLE';
79
+ | 'POPUP_FORM_SOURCE_TYPE_IMMUTABLE'
80
+ /**
81
+ * Excluded page path has invalid format.
82
+ * args: page - the invalid excluded page path value.
83
+ */
84
+ | 'EXCLUDED_PAGE_INVALID'
85
+ /**
86
+ * Excluded page operator is invalid (allowed: EQUALS, STARTS_WITH).
87
+ * args: operator - the invalid operator value.
88
+ */
89
+ | 'EXCLUDED_PAGE_OPERATOR_INVALID'
90
+ /**
91
+ * Too many excluded pages.
92
+ * args: max - the maximum allowed number of excluded pages.
93
+ */
94
+ | 'EXCLUDED_PAGES_TOO_MANY'
95
+ /** excluded_pages cannot be combined with a non-empty matching_pages list. */
96
+ | 'EXCLUDED_PAGES_NOT_ALLOWED_WITH_SPECIFIED_PAGES';
80
97
  export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
81
98
  export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
82
99
  export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
@@ -100,6 +117,16 @@ export interface PopupFormsService {
100
117
  /** Activate Popup Form (set status to active). */
101
118
  Activate: PopupFormsService_Activate;
102
119
  }
120
+ /**
121
+ * ExcludedPage is a single "do not show on this page" rule. operator is a
122
+ * string ("EQUALS" | "STARTS_WITH") to match the other categorical fields.
123
+ */
124
+ export type ExcludedPage = {
125
+ /** Page path, e.g. "/checkout" or "/account". */
126
+ path: string;
127
+ /** Match operator: "EQUALS" (exact path) or "STARTS_WITH" (path prefix). */
128
+ operator: string;
129
+ };
103
130
  export type PopupForm = {
104
131
  /** Popup Form code. */
105
132
  code: string;
@@ -149,6 +176,11 @@ export type PopupForm = {
149
176
  * Mutually exclusive with filter_expression.
150
177
  */
151
178
  filterCode: string;
179
+ /**
180
+ * Pages to suppress the popup on. Only meaningful when matching_pages is empty
181
+ * (i.e. the popup targets all pages). Empty list means no exclusions.
182
+ */
183
+ excludedPages: ExcludedPage[];
152
184
  };
153
185
  export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
154
186
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
@@ -231,6 +263,8 @@ export type CreateRequest = {
231
263
  filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
232
264
  /** Similar to the PopupForm. Mutually exclusive with filter_expression. */
233
265
  filterCode?: string;
266
+ /** Similar to the PopupForm. Only allowed when matching_pages is empty. */
267
+ excludedPages?: ExcludedPage[];
234
268
  };
235
269
  export type CreateResponse = {
236
270
  /** Similar to the PopupForm. */
@@ -288,6 +322,15 @@ export type UpdateRequest = {
288
322
  filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
289
323
  /** Similar to the PopupForm. Only applied when update_audience is true. */
290
324
  filterCode?: string;
325
+ /**
326
+ * Controls how excluded_pages is applied (PATCH semantics):
327
+ * - true → replace excluded_pages with the provided list.
328
+ * - false → do not touch excluded_pages.
329
+ * Required because proto3 cannot distinguish an unset repeated field from one explicitly set to an empty list.
330
+ */
331
+ updateExcludedPages?: boolean;
332
+ /** Similar to the PopupForm. Only applied when update_excluded_pages is true. */
333
+ excludedPages?: ExcludedPage[];
291
334
  };
292
335
  export type UpdateResponse = {};
293
336
  export type DeleteRequest = {