@pushwoosh/rpc-v2-http-api-data 0.2.304 → 0.2.306
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/applications_controlgroup.d.ts +16 -0
- package/data.js +33 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export type ApplicationsControlGroupService_CreateControlGroup = RpcMethod<Creat
|
|
|
4
4
|
export type ApplicationsControlGroupService_GetControlGroup = RpcMethod<GetControlGroupRequest, GetControlGroupResponse>;
|
|
5
5
|
export type ApplicationsControlGroupService_DeleteControlGroup = RpcMethod<DeleteControlGroupRequest, DeleteControlGroupResponse>;
|
|
6
6
|
export type ApplicationsControlGroupService_UpdateControlGroupPercentage = RpcMethod<UpdateControlGroupPercentageRequest, UpdateControlGroupPercentageResponse>;
|
|
7
|
+
export type ApplicationsControlGroupService_UpdateControlGroupCountries = RpcMethod<UpdateControlGroupCountriesRequest, UpdateControlGroupCountriesResponse>;
|
|
7
8
|
export type ApplicationsControlGroupService_DisableControlGroup = RpcMethod<DisableControlGroupRequest, DisableControlGroupResponse>;
|
|
8
9
|
export type ApplicationsControlGroupService_ReshuffleControlGroup = RpcMethod<ReshuffleControlGroupRequest, ReshuffleControlGroupResponse>;
|
|
9
10
|
export type ApplicationsControlGroupService_ForceUpdateControlGroupCalculation = RpcMethod<ForceUpdateControlGroupCalculationRequest, ForceUpdateControlGroupCalculationResponse>;
|
|
@@ -29,6 +30,8 @@ export interface ApplicationsControlGroupService {
|
|
|
29
30
|
DeleteControlGroup: ApplicationsControlGroupService_DeleteControlGroup;
|
|
30
31
|
/** Sets the hold-out percentage (1-20) of one control group. Resizing keeps every existing member: the hold-out grows or shrinks around them rather than being redrawn. */
|
|
31
32
|
UpdateControlGroupPercentage: ApplicationsControlGroupService_UpdateControlGroupPercentage;
|
|
33
|
+
/** Sets the countries one control group is scoped to (lowercase ISO-3166-1 alpha-2, empty list means the whole base). Changing the scope restarts the uplift measurement, because the population being compared changes; the hold-out itself is not redrawn. */
|
|
34
|
+
UpdateControlGroupCountries: ApplicationsControlGroupService_UpdateControlGroupCountries;
|
|
32
35
|
/** Switches one control group off, keeping it and its generation so that switching it back on restores the same hold-out rather than drawing a new one. */
|
|
33
36
|
DisableControlGroup: ApplicationsControlGroupService_DisableControlGroup;
|
|
34
37
|
/** Redraws one control group's hold-out by incrementing its generation. This is the only way to get a different sample: membership is deterministic, so disabling and re-enabling reproduces exactly the same one. */
|
|
@@ -86,6 +89,8 @@ export type ControlGroup = {
|
|
|
86
89
|
* <application_id>:<generation>:<name>:<user_id> the hash is taken over.
|
|
87
90
|
*/
|
|
88
91
|
applicationId: number;
|
|
92
|
+
/** Countries the hold-out is scoped to, lowercase ISO-3166-1 alpha-2; empty is every country. */
|
|
93
|
+
countries: string[];
|
|
89
94
|
};
|
|
90
95
|
export type ListControlGroupsRequest = {
|
|
91
96
|
/** Application code (format XXXXX-XXXXX) whose control groups to list. */
|
|
@@ -103,6 +108,8 @@ export type CreateControlGroupRequest = {
|
|
|
103
108
|
percentage?: number;
|
|
104
109
|
/** Seglang expression to measure the group over; empty means the whole base. */
|
|
105
110
|
segment?: string;
|
|
111
|
+
/** Countries to scope the hold-out to, lowercase ISO-3166-1 alpha-2; empty means every country. */
|
|
112
|
+
countries?: string[];
|
|
106
113
|
};
|
|
107
114
|
export type CreateControlGroupResponse = {
|
|
108
115
|
group: ControlGroup;
|
|
@@ -139,6 +146,15 @@ export type UpdateControlGroupPercentageRequest = {
|
|
|
139
146
|
percentage?: number;
|
|
140
147
|
};
|
|
141
148
|
export type UpdateControlGroupPercentageResponse = {};
|
|
149
|
+
export type UpdateControlGroupCountriesRequest = {
|
|
150
|
+
/** Application code (format XXXXX-XXXXX) the group belongs to. */
|
|
151
|
+
code?: string;
|
|
152
|
+
/** Control group code (format XXXXX-XXXXX) to scope. */
|
|
153
|
+
controlGroupCode?: string;
|
|
154
|
+
/** Lowercase ISO-3166-1 alpha-2 codes; an empty list widens the group back to the whole base. */
|
|
155
|
+
countries?: string[];
|
|
156
|
+
};
|
|
157
|
+
export type UpdateControlGroupCountriesResponse = {};
|
|
142
158
|
export type DisableControlGroupRequest = {
|
|
143
159
|
/** Application code (format XXXXX-XXXXX) the group belongs to. */
|
|
144
160
|
code?: string;
|
package/data.js
CHANGED
|
@@ -6887,6 +6887,12 @@ export const data = {
|
|
|
6887
6887
|
"method": "post",
|
|
6888
6888
|
"path": "/api/applications/{code}/control_groups/{control_group_code}"
|
|
6889
6889
|
},
|
|
6890
|
+
"UpdateControlGroupCountries": {
|
|
6891
|
+
"request": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupCountriesRequest",
|
|
6892
|
+
"response": "pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupCountriesResponse",
|
|
6893
|
+
"method": "post",
|
|
6894
|
+
"path": "/api/applications/{code}/control_groups/{control_group_code}/countries"
|
|
6895
|
+
},
|
|
6890
6896
|
"DisableControlGroup": {
|
|
6891
6897
|
"request": "pushwoosh.rpc_v2.applications_controlgroup.DisableControlGroupRequest",
|
|
6892
6898
|
"response": "pushwoosh.rpc_v2.applications_controlgroup.DisableControlGroupResponse",
|
|
@@ -6989,6 +6995,10 @@ export const data = {
|
|
|
6989
6995
|
},
|
|
6990
6996
|
"applicationId": {
|
|
6991
6997
|
"type": "number"
|
|
6998
|
+
},
|
|
6999
|
+
"countries": {
|
|
7000
|
+
"type": "string",
|
|
7001
|
+
"array": true
|
|
6992
7002
|
}
|
|
6993
7003
|
}
|
|
6994
7004
|
},
|
|
@@ -7023,6 +7033,10 @@ export const data = {
|
|
|
7023
7033
|
},
|
|
7024
7034
|
"segment": {
|
|
7025
7035
|
"type": "string"
|
|
7036
|
+
},
|
|
7037
|
+
"countries": {
|
|
7038
|
+
"type": "string",
|
|
7039
|
+
"array": true
|
|
7026
7040
|
}
|
|
7027
7041
|
}
|
|
7028
7042
|
},
|
|
@@ -7098,6 +7112,25 @@ export const data = {
|
|
|
7098
7112
|
"type": "I",
|
|
7099
7113
|
"fields": {}
|
|
7100
7114
|
},
|
|
7115
|
+
"pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupCountriesRequest": {
|
|
7116
|
+
"type": "I",
|
|
7117
|
+
"fields": {
|
|
7118
|
+
"code": {
|
|
7119
|
+
"type": "string"
|
|
7120
|
+
},
|
|
7121
|
+
"controlGroupCode": {
|
|
7122
|
+
"type": "string"
|
|
7123
|
+
},
|
|
7124
|
+
"countries": {
|
|
7125
|
+
"type": "string",
|
|
7126
|
+
"array": true
|
|
7127
|
+
}
|
|
7128
|
+
}
|
|
7129
|
+
},
|
|
7130
|
+
"pushwoosh.rpc_v2.applications_controlgroup.UpdateControlGroupCountriesResponse": {
|
|
7131
|
+
"type": "I",
|
|
7132
|
+
"fields": {}
|
|
7133
|
+
},
|
|
7101
7134
|
"pushwoosh.rpc_v2.applications_controlgroup.DisableControlGroupRequest": {
|
|
7102
7135
|
"type": "I",
|
|
7103
7136
|
"fields": {
|