@pushwoosh/rpc-v2-http-api-data 0.1.974 → 0.1.975

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
@@ -10043,6 +10043,23 @@ export const data = {
10043
10043
  }
10044
10044
  }
10045
10045
  },
10046
+ "pushwoosh.rpc_v2.filters.GetFilterUsageResponse.Popup": {
10047
+ "type": "I",
10048
+ "fields": {
10049
+ "code": {
10050
+ "type": "string"
10051
+ },
10052
+ "name": {
10053
+ "type": "string"
10054
+ },
10055
+ "status": {
10056
+ "type": "string"
10057
+ },
10058
+ "creationDate": {
10059
+ "type": "Date"
10060
+ }
10061
+ }
10062
+ },
10046
10063
  "pushwoosh.rpc_v2.filters.GetFilterUsageResponse": {
10047
10064
  "type": "I",
10048
10065
  "fields": {
@@ -10061,6 +10078,10 @@ export const data = {
10061
10078
  "presets": {
10062
10079
  "type": "pushwoosh.rpc_v2.filters.GetFilterUsageResponse.Preset",
10063
10080
  "array": true
10081
+ },
10082
+ "popups": {
10083
+ "type": "pushwoosh.rpc_v2.filters.GetFilterUsageResponse.Popup",
10084
+ "array": true
10064
10085
  }
10065
10086
  }
10066
10087
  },
@@ -20428,7 +20449,11 @@ export const data = {
20428
20449
  "POPUP_FORM_NOT_FOUND",
20429
20450
  "POPUP_FORM_ALREADY_DRAFT",
20430
20451
  "POPUP_FORM_ALREADY_ACTIVE",
20431
- "POPUP_FORM_ALREADY_PAUSED"
20452
+ "POPUP_FORM_ALREADY_PAUSED",
20453
+ "FILTER_AUDIENCE_MUTUALLY_EXCLUSIVE",
20454
+ "FILTER_EXPRESSION_INVALID",
20455
+ "FILTER_CODE_SEGMENT_NOT_FOUND",
20456
+ "FILTER_EXPRESSION_GEO_NOT_SUPPORTED"
20432
20457
  ],
20433
20458
  "valuesArgs": {
20434
20459
  "NAME_TOO_LONG": [
@@ -20539,6 +20564,12 @@ export const data = {
20539
20564
  },
20540
20565
  "updated": {
20541
20566
  "type": "Date"
20567
+ },
20568
+ "filterExpression": {
20569
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
20570
+ },
20571
+ "filterCode": {
20572
+ "type": "string"
20542
20573
  }
20543
20574
  }
20544
20575
  },
@@ -20681,6 +20712,12 @@ export const data = {
20681
20712
  },
20682
20713
  "status": {
20683
20714
  "type": "string"
20715
+ },
20716
+ "filterExpression": {
20717
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
20718
+ },
20719
+ "filterCode": {
20720
+ "type": "string"
20684
20721
  }
20685
20722
  }
20686
20723
  },
@@ -20736,6 +20773,15 @@ export const data = {
20736
20773
  "status": {
20737
20774
  "type": "string",
20738
20775
  "optional": true
20776
+ },
20777
+ "updateAudience": {
20778
+ "type": "boolean"
20779
+ },
20780
+ "filterExpression": {
20781
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
20782
+ },
20783
+ "filterCode": {
20784
+ "type": "string"
20739
20785
  }
20740
20786
  }
20741
20787
  },
package/filters.d.ts CHANGED
@@ -280,9 +280,16 @@ export type GetFilterUsageResponse_Preset = {
280
280
  name: string;
281
281
  creationDate: Date;
282
282
  };
283
+ export type GetFilterUsageResponse_Popup = {
284
+ code: string;
285
+ name: string;
286
+ status: string;
287
+ creationDate: Date;
288
+ };
283
289
  export type GetFilterUsageResponse = {
284
290
  journeys: GetFilterUsageResponse_Journey[];
285
291
  otms: GetFilterUsageResponse_OTM[];
286
292
  inapps: GetFilterUsageResponse_Inapp[];
287
293
  presets: GetFilterUsageResponse_Preset[];
294
+ popups: GetFilterUsageResponse_Popup[];
288
295
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.974",
3
+ "version": "0.1.975",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1,4 +1,5 @@
1
1
  import { RpcMethod } from './commonTypes';
2
+ import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
2
3
  /**
3
4
  * PopupFormsServiceErrors enumerates every machine-readable error reason
4
5
  * (field violations and failed preconditions) returned by PopupFormsService endpoints.
@@ -57,7 +58,15 @@ export type PopupFormsServiceErrors =
57
58
  /** Popup Form is already active. */
58
59
  | 'POPUP_FORM_ALREADY_ACTIVE'
59
60
  /** Popup Form is already paused. */
60
- | 'POPUP_FORM_ALREADY_PAUSED';
61
+ | 'POPUP_FORM_ALREADY_PAUSED'
62
+ /** filter_expression and filter_code are mutually exclusive. */
63
+ | 'FILTER_AUDIENCE_MUTUALLY_EXCLUSIVE'
64
+ /** filter_expression is not a valid filter expression. */
65
+ | 'FILTER_EXPRESSION_INVALID'
66
+ /** filter_code does not reference an existing saved segment. */
67
+ | 'FILTER_CODE_SEGMENT_NOT_FOUND'
68
+ /** filter_expression contains geo conditions, which are not supported for web popups. */
69
+ | 'FILTER_EXPRESSION_GEO_NOT_SUPPORTED';
61
70
  export type PopupFormsService_List = RpcMethod<ListRequest, ListResponse>;
62
71
  export type PopupFormsService_Get = RpcMethod<GetRequest, GetResponse>;
63
72
  export type PopupFormsService_Create = RpcMethod<CreateRequest, CreateResponse>;
@@ -110,6 +119,16 @@ export type PopupForm = {
110
119
  created: Date;
111
120
  /** Popup Form updated timestamp. */
112
121
  updated: Date;
122
+ /**
123
+ * Inline audience filter (custom conditions: tags + userId).
124
+ * Mutually exclusive with filter_code.
125
+ */
126
+ filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
127
+ /**
128
+ * Code of a saved Pushwoosh segment used for audience targeting.
129
+ * Mutually exclusive with filter_expression.
130
+ */
131
+ filterCode: string;
113
132
  };
114
133
  export type ListRequest_OrderBy = 'PUBLISHED' | 'NAME';
115
134
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
@@ -186,6 +205,10 @@ export type CreateRequest = {
186
205
  frequency?: string;
187
206
  /** Similar to the PopupForm. */
188
207
  status?: string;
208
+ /** Similar to the PopupForm. Mutually exclusive with filter_code. */
209
+ filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
210
+ /** Similar to the PopupForm. Mutually exclusive with filter_expression. */
211
+ filterCode?: string;
189
212
  };
190
213
  export type CreateResponse = {
191
214
  /** Similar to the PopupForm. */
@@ -219,6 +242,18 @@ export type UpdateRequest = {
219
242
  frequency?: string;
220
243
  /** Similar to the PopupForm. */
221
244
  status?: string;
245
+ /**
246
+ * Controls how the audience fields are applied (PATCH semantics):
247
+ * - true → replace audience with filter_expression / filter_code below
248
+ * (both empty → clear audience, i.e. "all users").
249
+ * - false → do not touch audience.
250
+ * Required because proto3 cannot distinguish an unset audience from a cleared one.
251
+ */
252
+ updateAudience?: boolean;
253
+ /** Similar to the PopupForm. Only applied when update_audience is true. */
254
+ filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
255
+ /** Similar to the PopupForm. Only applied when update_audience is true. */
256
+ filterCode?: string;
222
257
  };
223
258
  export type UpdateResponse = {};
224
259
  export type DeleteRequest = {