@pushwoosh/rpc-v2-http-api-data 0.2.340 → 0.2.341

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.
@@ -3,6 +3,8 @@ export type ApplicationsControlGroupService_ListControlGroups = RpcMethod<ListCo
3
3
  export type ApplicationsControlGroupService_CreateControlGroup = RpcMethod<CreateControlGroupRequest, CreateControlGroupResponse>;
4
4
  export type ApplicationsControlGroupService_GetControlGroup = RpcMethod<GetControlGroupRequest, GetControlGroupResponse>;
5
5
  export type ApplicationsControlGroupService_DeleteControlGroup = RpcMethod<DeleteControlGroupRequest, DeleteControlGroupResponse>;
6
+ export type ApplicationsControlGroupService_UpdateControlGroupPercentage = RpcMethod<UpdateControlGroupPercentageRequest, UpdateControlGroupPercentageResponse>;
7
+ export type ApplicationsControlGroupService_UpdateControlGroupCountries = RpcMethod<UpdateControlGroupCountriesRequest, UpdateControlGroupCountriesResponse>;
6
8
  export type ApplicationsControlGroupService_UpdateControlGroupSettings = RpcMethod<UpdateControlGroupSettingsRequest, UpdateControlGroupSettingsResponse>;
7
9
  export type ApplicationsControlGroupService_ListControlGroupCycles = RpcMethod<ListControlGroupCyclesRequest, ListControlGroupCyclesResponse>;
8
10
  export type ApplicationsControlGroupService_DisableControlGroup = RpcMethod<DisableControlGroupRequest, DisableControlGroupResponse>;
@@ -28,6 +30,10 @@ export interface ApplicationsControlGroupService {
28
30
  GetControlGroup: ApplicationsControlGroupService_GetControlGroup;
29
31
  /** Removes a control group entirely. Deleting the default one leaves the application without a fallback, so sends hold nobody out until a group is created again. To stop holding users out while keeping the group, disable it instead. */
30
32
  DeleteControlGroup: ApplicationsControlGroupService_DeleteControlGroup;
33
+ /** 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
+ UpdateControlGroupPercentage: ApplicationsControlGroupService_UpdateControlGroupPercentage;
35
+ /** Deprecated: use UpdateControlGroupSettings, which applies size, scope and mode in one save. Sets the countries one control group is scoped to; rescoping closes the running cycle without redrawing the hold-out. */
36
+ UpdateControlGroupCountries: ApplicationsControlGroupService_UpdateControlGroupCountries;
31
37
  /** Applies a control group's size, country scope and lifetime mode in one call. A change that alters who is held out or how long for (size, scope, mode, period, end date) closes the running cycle and starts a new one; sending the current values changes nothing. */
32
38
  UpdateControlGroupSettings: ApplicationsControlGroupService_UpdateControlGroupSettings;
33
39
  /** 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. */
@@ -196,20 +202,20 @@ export type DeleteControlGroupRequest = {
196
202
  export type DeleteControlGroupResponse = {};
197
203
  export type UpdateControlGroupPercentageRequest = {
198
204
  /** Application code (format XXXXX-XXXXX) the group belongs to. */
199
- code: string;
205
+ code?: string;
200
206
  /** Control group code (format XXXXX-XXXXX) to resize. */
201
- controlGroupCode: string;
207
+ controlGroupCode?: string;
202
208
  /** Hold-out size as a percentage, 1-20. */
203
- percentage: number;
209
+ percentage?: number;
204
210
  };
205
211
  export type UpdateControlGroupPercentageResponse = {};
206
212
  export type UpdateControlGroupCountriesRequest = {
207
213
  /** Application code (format XXXXX-XXXXX) the group belongs to. */
208
- code: string;
214
+ code?: string;
209
215
  /** Control group code (format XXXXX-XXXXX) to scope. */
210
- controlGroupCode: string;
216
+ controlGroupCode?: string;
211
217
  /** Lowercase ISO-3166-1 alpha-2 codes; an empty list widens the group back to the whole base. */
212
- countries: string[];
218
+ countries?: string[];
213
219
  };
214
220
  export type UpdateControlGroupCountriesResponse = {};
215
221
  /**
package/data.js CHANGED
@@ -6979,6 +6979,18 @@ export const data = {
6979
6979
  "method": "delete",
6980
6980
  "path": "/api/applications/{code}/control_groups/{control_group_code}"
6981
6981
  },
6982
+ "UpdateControlGroupPercentage": {
6983
+ "request": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupPercentageRequest",
6984
+ "response": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupPercentageResponse",
6985
+ "method": "post",
6986
+ "path": "/api/applications/{code}/control_groups/{control_group_code}"
6987
+ },
6988
+ "UpdateControlGroupCountries": {
6989
+ "request": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupCountriesRequest",
6990
+ "response": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupCountriesResponse",
6991
+ "method": "post",
6992
+ "path": "/api/applications/{code}/control_groups/{control_group_code}/countries"
6993
+ },
6982
6994
  "UpdateControlGroupSettings": {
6983
6995
  "request": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupSettingsRequest",
6984
6996
  "response": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupSettingsResponse",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.340",
3
+ "version": "0.2.341",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",