@pushwoosh/rpc-v2-http-api-data 0.2.363 → 0.2.365

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.
@@ -7,6 +7,7 @@ export type ApplicationsControlGroupService_UpdateControlGroupPercentage = RpcMe
7
7
  export type ApplicationsControlGroupService_UpdateControlGroupCountries = RpcMethod<UpdateControlGroupCountriesRequest, UpdateControlGroupCountriesResponse>;
8
8
  export type ApplicationsControlGroupService_UpdateControlGroupSettings = RpcMethod<UpdateControlGroupSettingsRequest, UpdateControlGroupSettingsResponse>;
9
9
  export type ApplicationsControlGroupService_ListControlGroupCycles = RpcMethod<ListControlGroupCyclesRequest, ListControlGroupCyclesResponse>;
10
+ export type ApplicationsControlGroupService_RenameControlGroup = RpcMethod<RenameControlGroupRequest, RenameControlGroupResponse>;
10
11
  export type ApplicationsControlGroupService_DisableControlGroup = RpcMethod<DisableControlGroupRequest, DisableControlGroupResponse>;
11
12
  export type ApplicationsControlGroupService_ReshuffleControlGroup = RpcMethod<ReshuffleControlGroupRequest, ReshuffleControlGroupResponse>;
12
13
  export type ApplicationsControlGroupService_ForceUpdateControlGroupCalculation = RpcMethod<ForceUpdateControlGroupCalculationRequest, ForceUpdateControlGroupCalculationResponse>;
@@ -22,13 +23,13 @@ export type ApplicationsControlGroupService_CheckControlGroupMembership = RpcMet
22
23
  * keeps every existing member; only a reshuffle draws a new sample.
23
24
  */
24
25
  export interface ApplicationsControlGroupService {
25
- /** Lists every control group configured for an application, including the unnamed one a send falls back to when it names no group. Use to show the groups of an application before picking one to inspect or change. */
26
+ /** Lists every control group configured for an application, the unnamed original one first. Use to show the groups of an application before picking one to inspect or change. */
26
27
  ListControlGroups: ApplicationsControlGroupService_ListControlGroups;
27
- /** Creates a named control group for an application and returns it with its generated code. Only the group with an empty name is the fallback for a send that names no group; a named group holds users out only when the send selects it. */
28
+ /** Creates a named control group for an application and returns it with its generated code. Every enabled group holds users out of all marketing sends within its own countries and tag, independently of the other groups; groups may overlap. */
28
29
  CreateControlGroup: ApplicationsControlGroupService_CreateControlGroup;
29
30
  /** Returns one control group by its code, with its hold-out size, generation and the user counts behind it. */
30
31
  GetControlGroup: ApplicationsControlGroupService_GetControlGroup;
31
- /** Removes a control group entirely. Deleting the unnamed one leaves the application without a fallback, so a send that names no group holds nobody out until an unnamed group is created again. To stop holding users out while keeping the group, disable it instead. */
32
+ /** Removes a control group entirely. Its statistics can no longer be opened. To stop holding users out while keeping the history, disable it instead. */
32
33
  DeleteControlGroup: ApplicationsControlGroupService_DeleteControlGroup;
33
34
  /** Deprecated: use UpdateControlGroupSettings, which applies size, scope and mode in one save. Sets the hold-out percentage (1-20) of one control group; resizing keeps every existing member and closes the running cycle. */
34
35
  UpdateControlGroupPercentage: ApplicationsControlGroupService_UpdateControlGroupPercentage;
@@ -38,6 +39,8 @@ export interface ApplicationsControlGroupService {
38
39
  UpdateControlGroupSettings: ApplicationsControlGroupService_UpdateControlGroupSettings;
39
40
  /** Lists the closed cycles of one control group, newest first: each is the membership the group ran with between two changes, with the settings it was drawn from. The running cycle is on the group itself. */
40
41
  ListControlGroupCycles: ApplicationsControlGroupService_ListControlGroupCycles;
42
+ /** Sets the name the panel shows for one control group; empty shows the technical name. The technical name is part of the membership hash and never changes, so renaming keeps the same hold-out and the running cycle. */
43
+ RenameControlGroup: ApplicationsControlGroupService_RenameControlGroup;
41
44
  /** Switches one control group off, closes the running cycle and resets its mode to permanent. The group and its generation are kept, so switching it back on restores the same hold-out rather than drawing a new one. */
42
45
  DisableControlGroup: ApplicationsControlGroupService_DisableControlGroup;
43
46
  /** Redraws one control group's hold-out by incrementing its generation and closes the running cycle. This is the only way to get a different sample: membership is deterministic, so disabling and re-enabling reproduces exactly the same one. */
@@ -158,6 +161,8 @@ export type ControlGroup = {
158
161
  scopeTag: string;
159
162
  /** Values of scope_tag that put a user in scope; a boolean tag uses "true" and "false". */
160
163
  scopeValues: string[];
164
+ /** Name the panel shows; empty shows name, and the unnamed group as Global. */
165
+ displayName: string;
161
166
  };
162
167
  export type ListControlGroupsRequest = {
163
168
  /** Application code (format XXXXX-XXXXX) whose control groups to list. */
@@ -187,6 +192,8 @@ export type CreateControlGroupRequest = {
187
192
  scopeTag?: string;
188
193
  /** Values of scope_tag that put a user in scope, required with scope_tag; a boolean tag takes "true" and "false". */
189
194
  scopeValues?: string[];
195
+ /** Name the panel shows, up to 64 characters; empty shows name. */
196
+ displayName?: string;
190
197
  };
191
198
  export type CreateControlGroupResponse = {
192
199
  group: ControlGroup;
@@ -269,6 +276,17 @@ export type ListControlGroupCyclesResponse = {
269
276
  /** Newest first. */
270
277
  cycles: ControlGroupCycle[];
271
278
  };
279
+ export type RenameControlGroupRequest = {
280
+ /** Application code (format XXXXX-XXXXX) the group belongs to. */
281
+ code?: string;
282
+ /** Control group code (format XXXXX-XXXXX) to rename. */
283
+ controlGroupCode?: string;
284
+ /** New name the panel shows, up to 64 characters and unique within the application; empty shows the technical name. */
285
+ displayName?: string;
286
+ };
287
+ export type RenameControlGroupResponse = {
288
+ group: ControlGroup;
289
+ };
272
290
  export type DisableControlGroupRequest = {
273
291
  /** Application code (format XXXXX-XXXXX) the group belongs to. */
274
292
  code?: string;
package/data.js CHANGED
@@ -6957,6 +6957,12 @@ export const data = {
6957
6957
  "method": "get",
6958
6958
  "path": "/api/applications/{code}/control_groups/{control_group_code}/cycles"
6959
6959
  },
6960
+ "RenameControlGroup": {
6961
+ "request": "pushwoosh.rpc_v2.applications_controlgroup.RenameControlGroupRequest",
6962
+ "response": "pushwoosh.rpc_v2.applications_controlgroup.RenameControlGroupResponse",
6963
+ "method": "post",
6964
+ "path": "/api/applications/{code}/control_groups/{control_group_code}/display_name"
6965
+ },
6960
6966
  "DisableControlGroup": {
6961
6967
  "request": "pushwoosh.rpc_v2.applications_controlgroup.DisableControlGroupRequest",
6962
6968
  "response": "pushwoosh.rpc_v2.applications_controlgroup.DisableControlGroupResponse",
@@ -7145,6 +7151,9 @@ export const data = {
7145
7151
  "scopeValues": {
7146
7152
  "type": "string",
7147
7153
  "array": true
7154
+ },
7155
+ "displayName": {
7156
+ "type": "string"
7148
7157
  }
7149
7158
  }
7150
7159
  },
@@ -7199,6 +7208,9 @@ export const data = {
7199
7208
  "scopeValues": {
7200
7209
  "type": "string",
7201
7210
  "array": true
7211
+ },
7212
+ "displayName": {
7213
+ "type": "string"
7202
7214
  }
7203
7215
  }
7204
7216
  },
@@ -7355,6 +7367,28 @@ export const data = {
7355
7367
  }
7356
7368
  }
7357
7369
  },
7370
+ "pushwoosh.rpc_v2.applications_controlgroup.RenameControlGroupRequest": {
7371
+ "type": "I",
7372
+ "fields": {
7373
+ "code": {
7374
+ "type": "string"
7375
+ },
7376
+ "controlGroupCode": {
7377
+ "type": "string"
7378
+ },
7379
+ "displayName": {
7380
+ "type": "string"
7381
+ }
7382
+ }
7383
+ },
7384
+ "pushwoosh.rpc_v2.applications_controlgroup.RenameControlGroupResponse": {
7385
+ "type": "I",
7386
+ "fields": {
7387
+ "group": {
7388
+ "type": "pushwoosh.rpc_v2.applications_controlgroup.ControlGroup"
7389
+ }
7390
+ }
7391
+ },
7358
7392
  "pushwoosh.rpc_v2.applications_controlgroup.DisableControlGroupRequest": {
7359
7393
  "type": "I",
7360
7394
  "fields": {
@@ -14668,6 +14702,13 @@ export const data = {
14668
14702
  }
14669
14703
  }
14670
14704
  },
14705
+ "pushwoosh.rpc_v2.events.Attribution": {
14706
+ "type": "E",
14707
+ "values": [
14708
+ "ATTRIBUTION_SDK_HASH",
14709
+ "ATTRIBUTION_LAST_CLICK"
14710
+ ]
14711
+ },
14671
14712
  "pushwoosh.rpc_v2.events.TimeInterval": {
14672
14713
  "type": "E",
14673
14714
  "values": [
@@ -14771,6 +14812,15 @@ export const data = {
14771
14812
  "attributeConditions": {
14772
14813
  "type": "pushwoosh.rpc_v2.events.AttributeCondition",
14773
14814
  "array": true
14815
+ },
14816
+ "messageCode": {
14817
+ "type": "string"
14818
+ },
14819
+ "campaign": {
14820
+ "type": "string"
14821
+ },
14822
+ "attribution": {
14823
+ "type": "pushwoosh.rpc_v2.events.Attribution"
14774
14824
  }
14775
14825
  }
14776
14826
  },
@@ -14819,6 +14869,9 @@ export const data = {
14819
14869
  "platforms": {
14820
14870
  "type": "number",
14821
14871
  "array": true
14872
+ },
14873
+ "attribution": {
14874
+ "type": "pushwoosh.rpc_v2.events.Attribution"
14822
14875
  }
14823
14876
  }
14824
14877
  },
@@ -16468,6 +16521,10 @@ export const data = {
16468
16521
  },
16469
16522
  "dateTo": {
16470
16523
  "type": "Date"
16524
+ },
16525
+ "platforms": {
16526
+ "type": "number",
16527
+ "array": true
16471
16528
  }
16472
16529
  }
16473
16530
  },
@@ -17130,6 +17187,28 @@ export const data = {
17130
17187
  }
17131
17188
  }
17132
17189
  },
17190
+ "pushwoosh.export_messages.v2.CountControlGroupRequest": {
17191
+ "type": "I",
17192
+ "fields": {
17193
+ "application": {
17194
+ "type": "string"
17195
+ },
17196
+ "controlGroup": {
17197
+ "type": "string"
17198
+ }
17199
+ }
17200
+ },
17201
+ "pushwoosh.export_messages.v2.CountControlGroupResponse": {
17202
+ "type": "I",
17203
+ "fields": {
17204
+ "totalUsers": {
17205
+ "type": "number"
17206
+ },
17207
+ "controlGroupUsers": {
17208
+ "type": "number"
17209
+ }
17210
+ }
17211
+ },
17133
17212
  "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Create_FieldViolations": {
17134
17213
  "type": "E",
17135
17214
  "values": [
package/events.d.ts CHANGED
@@ -160,6 +160,11 @@ export type GetTriggeredCountResponse_Count = {
160
160
  export type GetTriggeredCountResponse = {
161
161
  count: Record<string, GetTriggeredCountResponse_Count>;
162
162
  };
163
+ export type Attribution =
164
+ /** An event counts for the message whose hash the SDK stamped on it. */
165
+ 'ATTRIBUTION_SDK_HASH'
166
+ /** An event counts for the message of the user's last click within the 72 hours before it. */
167
+ | 'ATTRIBUTION_LAST_CLICK';
163
168
  export type TimeInterval = 'TIME_INTERVAL_UNSPECIFIED' | 'HOUR' | 'DAY' | 'WEEK' | 'MONTH';
164
169
  export type ListOfValues = {
165
170
  values: string[];
@@ -209,6 +214,12 @@ export type GetDetailedStatisticsRequest = {
209
214
  interval?: TimeInterval;
210
215
  /** Filter triggers to those whose attributes match these conditions. */
211
216
  attributeConditions?: AttributeCondition[];
217
+ /** Message code to attribute event triggers to a single send; requires attribution ATTRIBUTION_LAST_CLICK. */
218
+ messageCode?: string;
219
+ /** Campaign code to attribute event triggers to a whole campaign; requires attribution ATTRIBUTION_LAST_CLICK. */
220
+ campaign?: string;
221
+ /** How triggers are tied to a message or campaign; the default counts every trigger of the event. */
222
+ attribution?: Attribution;
212
223
  };
213
224
  export type GetDetailedStatisticsResponse_TriggeredCount = {
214
225
  timestamp: Date;
@@ -230,6 +241,8 @@ export type GetTotalStatisticsRequest = {
230
241
  campaign?: string;
231
242
  /** Platform ids to count events on; empty counts every platform. */
232
243
  platforms?: number[];
244
+ /** How triggers are tied to message_code or campaign; the default trusts the hash the SDK stamped on the event. */
245
+ attribution?: Attribution;
233
246
  };
234
247
  export type GetTotalStatisticsResponse_EventTriggeredCount = {
235
248
  event: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.363",
3
+ "version": "0.2.365",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",