@pushwoosh/rpc-v2-http-api-data 0.2.15 → 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/applications_configurations.d.ts +8 -1
- package/data.js +44 -1
- 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
|
};
|
|
@@ -101,6 +101,9 @@ export type KakaoConfiguration = {
|
|
|
101
101
|
export type TelegramConfiguration = {
|
|
102
102
|
telegramApiToken: string;
|
|
103
103
|
};
|
|
104
|
+
export type ViberConfiguration = {
|
|
105
|
+
viberAuthToken: string;
|
|
106
|
+
};
|
|
104
107
|
export type WebConfiguration = {
|
|
105
108
|
webVapidPublicKey: string;
|
|
106
109
|
webVapidPrivateKey: string;
|
|
@@ -318,7 +321,11 @@ export type ConfigurationRequest_kind_smsConfiguration = {
|
|
|
318
321
|
type: 'smsConfiguration';
|
|
319
322
|
data: SmsConfiguration;
|
|
320
323
|
};
|
|
321
|
-
export type
|
|
324
|
+
export type ConfigurationRequest_kind_viberConfiguration = {
|
|
325
|
+
type: 'viberConfiguration';
|
|
326
|
+
data: ViberConfiguration;
|
|
327
|
+
};
|
|
328
|
+
export type ConfigurationRequest_kind = ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_huaweiConfiguration | ConfigurationRequest_kind_safariConfiguration | ConfigurationRequest_kind_windowsConfiguration | ConfigurationRequest_kind_amazonConfiguration | ConfigurationRequest_kind_osxConfiguration | ConfigurationRequest_kind_osxTokenConfiguration | ConfigurationRequest_kind_iosConfiguration | ConfigurationRequest_kind_iosTokenConfiguration | ConfigurationRequest_kind_iosVoipConfiguration | ConfigurationRequest_kind_iosPasskitConfiguration | ConfigurationRequest_kind_firefoxConfiguration | ConfigurationRequest_kind_baiduConfiguration | ConfigurationRequest_kind_lineConfiguration | ConfigurationRequest_kind_webConfiguration | ConfigurationRequest_kind_kakaoConfiguration | ConfigurationRequest_kind_telegramConfiguration | ConfigurationRequest_kind_googleWalletConfiguration | ConfigurationRequest_kind_smsConfiguration | ConfigurationRequest_kind_viberConfiguration;
|
|
322
329
|
export type ConfigurationRequest = {
|
|
323
330
|
code?: string;
|
|
324
331
|
kind: ConfigurationRequest_kind;
|
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": {
|
|
@@ -3712,6 +3743,14 @@ export const data = {
|
|
|
3712
3743
|
}
|
|
3713
3744
|
}
|
|
3714
3745
|
},
|
|
3746
|
+
"pushwoosh.rpc_v2.applications_configurations.ViberConfiguration": {
|
|
3747
|
+
"type": "I",
|
|
3748
|
+
"fields": {
|
|
3749
|
+
"viberAuthToken": {
|
|
3750
|
+
"type": "string"
|
|
3751
|
+
}
|
|
3752
|
+
}
|
|
3753
|
+
},
|
|
3715
3754
|
"pushwoosh.rpc_v2.applications_configurations.WebConfiguration": {
|
|
3716
3755
|
"type": "I",
|
|
3717
3756
|
"fields": {
|
|
@@ -4026,6 +4065,9 @@ export const data = {
|
|
|
4026
4065
|
},
|
|
4027
4066
|
"smsConfiguration": {
|
|
4028
4067
|
"type": "pushwoosh.rpc_v2.applications_configurations.SmsConfiguration"
|
|
4068
|
+
},
|
|
4069
|
+
"viberConfiguration": {
|
|
4070
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.ViberConfiguration"
|
|
4029
4071
|
}
|
|
4030
4072
|
},
|
|
4031
4073
|
"oneofs": {
|
|
@@ -4051,7 +4093,8 @@ export const data = {
|
|
|
4051
4093
|
"kakaoConfiguration",
|
|
4052
4094
|
"telegramConfiguration",
|
|
4053
4095
|
"googleWalletConfiguration",
|
|
4054
|
-
"smsConfiguration"
|
|
4096
|
+
"smsConfiguration",
|
|
4097
|
+
"viberConfiguration"
|
|
4055
4098
|
]
|
|
4056
4099
|
}
|
|
4057
4100
|
}
|