@pushwoosh/rpc-v2-http-api-data 0.2.49 → 0.2.51

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
@@ -21156,7 +21156,12 @@ export const data = {
21156
21156
  "FILTER_AUDIENCE_MUTUALLY_EXCLUSIVE",
21157
21157
  "FILTER_EXPRESSION_INVALID",
21158
21158
  "FILTER_CODE_SEGMENT_NOT_FOUND",
21159
- "FILTER_EXPRESSION_GEO_NOT_SUPPORTED"
21159
+ "FILTER_EXPRESSION_GEO_NOT_SUPPORTED",
21160
+ "CONTENT_SUBSCRIPTION_MUTUALLY_EXCLUSIVE",
21161
+ "CONTENT_OR_SUBSCRIPTION_REQUIRED",
21162
+ "SUBSCRIPTION_FORM_CODE_INVALID",
21163
+ "SUBSCRIPTION_FORM_CODE_EMPTY",
21164
+ "POPUP_FORM_SOURCE_TYPE_IMMUTABLE"
21160
21165
  ],
21161
21166
  "valuesArgs": {
21162
21167
  "NAME_TOO_LONG": [
@@ -21243,6 +21248,12 @@ export const data = {
21243
21248
  "popupFormContentName": {
21244
21249
  "type": "string"
21245
21250
  },
21251
+ "subscriptionFormCode": {
21252
+ "type": "string"
21253
+ },
21254
+ "subscriptionFormName": {
21255
+ "type": "string"
21256
+ },
21246
21257
  "deviceType": {
21247
21258
  "type": "string"
21248
21259
  },
@@ -21397,6 +21408,9 @@ export const data = {
21397
21408
  "popupFormContentCode": {
21398
21409
  "type": "string"
21399
21410
  },
21411
+ "subscriptionFormCode": {
21412
+ "type": "string"
21413
+ },
21400
21414
  "deviceType": {
21401
21415
  "type": "string"
21402
21416
  },
@@ -21450,6 +21464,10 @@ export const data = {
21450
21464
  "type": "string",
21451
21465
  "optional": true
21452
21466
  },
21467
+ "subscriptionFormCode": {
21468
+ "type": "string",
21469
+ "optional": true
21470
+ },
21453
21471
  "deviceType": {
21454
21472
  "type": "string",
21455
21473
  "optional": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -66,7 +66,17 @@ export type PopupFormsServiceErrors =
66
66
  /** filter_code does not reference an existing saved segment. */
67
67
  | 'FILTER_CODE_SEGMENT_NOT_FOUND'
68
68
  /** filter_expression contains geo conditions, which are not supported for web popups. */
69
- | 'FILTER_EXPRESSION_GEO_NOT_SUPPORTED';
69
+ | 'FILTER_EXPRESSION_GEO_NOT_SUPPORTED'
70
+ /** popup_form_content_code and subscription_form_code are mutually exclusive. */
71
+ | 'CONTENT_SUBSCRIPTION_MUTUALLY_EXCLUSIVE'
72
+ /** Exactly one of popup_form_content_code / subscription_form_code is required. */
73
+ | 'CONTENT_OR_SUBSCRIPTION_REQUIRED'
74
+ /** Subscription form code is invalid. */
75
+ | 'SUBSCRIPTION_FORM_CODE_INVALID'
76
+ /** Subscription form code is required. */
77
+ | 'SUBSCRIPTION_FORM_CODE_EMPTY'
78
+ /** Cannot switch a popup form between a content and a subscription form via update. */
79
+ | 'POPUP_FORM_SOURCE_TYPE_IMMUTABLE';
70
80
  export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
71
81
  export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
72
82
  export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
@@ -99,10 +109,20 @@ export type PopupForm = {
99
109
  description?: string;
100
110
  /** Status of Popup Form (active, paused, draft). */
101
111
  status: string;
102
- /** Code of associated Popup Form Content. */
112
+ /**
113
+ * Code of associated Popup Form Content.
114
+ * Set when the popup shows a content; mutually exclusive with subscription_form_code.
115
+ */
103
116
  popupFormContentCode: string;
104
117
  /** Name of associated Popup Form Content. */
105
118
  popupFormContentName: string;
119
+ /**
120
+ * Code of associated subscription form.
121
+ * Set when the popup shows a subscription form; mutually exclusive with popup_form_content_code.
122
+ */
123
+ subscriptionFormCode: string;
124
+ /** Name of associated subscription form. */
125
+ subscriptionFormName: string;
106
126
  /** Device type (all, mobile, desktop). */
107
127
  deviceType: string;
108
128
  /** Visitors type (all, new, returning). */
@@ -191,8 +211,10 @@ export type CreateRequest = {
191
211
  name?: string;
192
212
  /** Similar to the PopupForm. */
193
213
  description?: string;
194
- /** Similar to the PopupForm. */
214
+ /** Similar to the PopupForm. Provide exactly one of popup_form_content_code / subscription_form_code. */
195
215
  popupFormContentCode?: string;
216
+ /** Similar to the PopupForm. Provide exactly one of popup_form_content_code / subscription_form_code. */
217
+ subscriptionFormCode?: string;
196
218
  /** Similar to the PopupForm. */
197
219
  deviceType?: string;
198
220
  /** Similar to the PopupForm. */
@@ -221,8 +243,20 @@ export type UpdateRequest = {
221
243
  name?: string;
222
244
  /** Similar to the PopupForm. */
223
245
  description?: string;
224
- /** Similar to the PopupForm. */
246
+ /**
247
+ * Similar to the PopupForm. Only valid for a content-based popup form (one
248
+ * that was created with popup_form_content_code); updates the referenced
249
+ * content. The source type is immutable — providing this for a
250
+ * subscription-form popup is rejected. Mutually exclusive with subscription_form_code.
251
+ */
225
252
  popupFormContentCode?: string;
253
+ /**
254
+ * Similar to the PopupForm. Only valid for a subscription-form popup (one
255
+ * that was created with subscription_form_code); updates the referenced
256
+ * subscription form. The source type is immutable — providing this for a
257
+ * content-based popup is rejected. Mutually exclusive with popup_form_content_code.
258
+ */
259
+ subscriptionFormCode?: string;
226
260
  /** Similar to the PopupForm. */
227
261
  deviceType?: string;
228
262
  /** Similar to the PopupForm. */