@pushwoosh/rpc-v2-http-api-data 0.2.16 → 0.2.17
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.d.ts +20 -0
- package/data.js +31 -0
- package/package.json +1 -1
package/applications.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type ApplicationsService_GetControlGroupSettings = RpcMethod<GetControlGr
|
|
|
15
15
|
export type ApplicationsService_UpdateControlGroupPercentage = RpcMethod<UpdateControlGroupPercentageRequest, UpdateControlGroupPercentageResponse>;
|
|
16
16
|
export type ApplicationsService_DisableControlGroup = RpcMethod<DisableControlGroupRequest, DisableControlGroupResponse>;
|
|
17
17
|
export type ApplicationsService_ForceUpdateControlGroupCalculation = RpcMethod<ForceUpdateControlGroupCalculationRequest, ForceUpdateControlGroupCalculationResponse>;
|
|
18
|
+
export type ApplicationsService_GetControlGroupCalculationStatus = RpcMethod<GetControlGroupCalculationStatusRequest, GetControlGroupCalculationStatusResponse>;
|
|
18
19
|
export type ApplicationsService_GetDOIConfig = RpcMethod<GetDOIConfigRequest, GetDOIConfigResponse>;
|
|
19
20
|
export type ApplicationsService_SetDOIConfig = RpcMethod<SetDOIConfigRequest, SetDOIConfigResponse>;
|
|
20
21
|
export interface ApplicationsService {
|
|
@@ -33,6 +34,7 @@ export interface ApplicationsService {
|
|
|
33
34
|
UpdateControlGroupPercentage: ApplicationsService_UpdateControlGroupPercentage;
|
|
34
35
|
DisableControlGroup: ApplicationsService_DisableControlGroup;
|
|
35
36
|
ForceUpdateControlGroupCalculation: ApplicationsService_ForceUpdateControlGroupCalculation;
|
|
37
|
+
GetControlGroupCalculationStatus: ApplicationsService_GetControlGroupCalculationStatus;
|
|
36
38
|
GetDOIConfig: ApplicationsService_GetDOIConfig;
|
|
37
39
|
SetDOIConfig: ApplicationsService_SetDOIConfig;
|
|
38
40
|
}
|
|
@@ -191,6 +193,24 @@ export type ForceUpdateControlGroupCalculationRequest = {
|
|
|
191
193
|
code?: string;
|
|
192
194
|
};
|
|
193
195
|
export type ForceUpdateControlGroupCalculationResponse = {};
|
|
196
|
+
export type GetControlGroupCalculationStatusRequest = {
|
|
197
|
+
code?: string;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* GetControlGroupCalculationStatusResponse is the lightweight subset of the
|
|
201
|
+
* settings response that changes while a background size calculation runs.
|
|
202
|
+
* Clients poll this on a timer to refresh numbers in place without re-fetching
|
|
203
|
+
* the whole settings page.
|
|
204
|
+
*/
|
|
205
|
+
export type GetControlGroupCalculationStatusResponse = {
|
|
206
|
+
/** All users in the application */
|
|
207
|
+
totalUsers: number;
|
|
208
|
+
/** Users with PW_ControlGroup = true */
|
|
209
|
+
controlGroupUsers: number;
|
|
210
|
+
calculationStatus: ControlGroupTaskStatus;
|
|
211
|
+
/** Whether cached size numbers are available */
|
|
212
|
+
hasData: boolean;
|
|
213
|
+
};
|
|
194
214
|
export type ShuffleControlGroupRequest = {
|
|
195
215
|
code: string;
|
|
196
216
|
};
|
package/data.js
CHANGED
|
@@ -2645,6 +2645,12 @@ export const data = {
|
|
|
2645
2645
|
"method": "post",
|
|
2646
2646
|
"path": "/api/applications/{code}/control_group/recalculate"
|
|
2647
2647
|
},
|
|
2648
|
+
"GetControlGroupCalculationStatus": {
|
|
2649
|
+
"request": "pushwoosh.rpc_v2.applications.GetControlGroupCalculationStatusRequest",
|
|
2650
|
+
"response": "pushwoosh.rpc_v2.applications.GetControlGroupCalculationStatusResponse",
|
|
2651
|
+
"method": "get",
|
|
2652
|
+
"path": "/api/applications/{code}/control_group/calculation_status"
|
|
2653
|
+
},
|
|
2648
2654
|
"GetDOIConfig": {
|
|
2649
2655
|
"request": "pushwoosh.rpc_v2.applications.GetDOIConfigRequest",
|
|
2650
2656
|
"response": "pushwoosh.rpc_v2.applications.GetDOIConfigResponse",
|
|
@@ -3104,6 +3110,31 @@ export const data = {
|
|
|
3104
3110
|
"type": "I",
|
|
3105
3111
|
"fields": {}
|
|
3106
3112
|
},
|
|
3113
|
+
"pushwoosh.rpc_v2.applications.GetControlGroupCalculationStatusRequest": {
|
|
3114
|
+
"type": "I",
|
|
3115
|
+
"fields": {
|
|
3116
|
+
"code": {
|
|
3117
|
+
"type": "string"
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
},
|
|
3121
|
+
"pushwoosh.rpc_v2.applications.GetControlGroupCalculationStatusResponse": {
|
|
3122
|
+
"type": "I",
|
|
3123
|
+
"fields": {
|
|
3124
|
+
"totalUsers": {
|
|
3125
|
+
"type": "number"
|
|
3126
|
+
},
|
|
3127
|
+
"controlGroupUsers": {
|
|
3128
|
+
"type": "number"
|
|
3129
|
+
},
|
|
3130
|
+
"calculationStatus": {
|
|
3131
|
+
"type": "pushwoosh.rpc_v2.applications.ControlGroupTaskStatus"
|
|
3132
|
+
},
|
|
3133
|
+
"hasData": {
|
|
3134
|
+
"type": "boolean"
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
},
|
|
3107
3138
|
"pushwoosh.rpc_v2.applications.ShuffleControlGroupRequest": {
|
|
3108
3139
|
"type": "I",
|
|
3109
3140
|
"fields": {
|