@pushwoosh/rpc-v2-http-api-data 0.2.364 → 0.2.366

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": {
@@ -14350,7 +14384,7 @@ export const data = {
14350
14384
  "GetDetailedStatistics": {
14351
14385
  "request": "pushwoosh.rpc_v2.events.GetDetailedStatisticsRequest",
14352
14386
  "response": "pushwoosh.rpc_v2.events.GetDetailedStatisticsResponse",
14353
- "method": "get",
14387
+ "method": "post",
14354
14388
  "path": "/api/events:getDetailedStatistics"
14355
14389
  },
14356
14390
  "GetTotalStatistics": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.364",
3
+ "version": "0.2.366",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",