@pushwoosh/rpc-v2-http-api-data 0.2.13 → 0.2.15

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 CHANGED
@@ -14,6 +14,7 @@ export type ApplicationsService_SaveAccountGroupPermissions = RpcMethod<SaveAcco
14
14
  export type ApplicationsService_GetControlGroupSettings = RpcMethod<GetControlGroupSettingsRequest, GetControlGroupSettingsResponse>;
15
15
  export type ApplicationsService_UpdateControlGroupPercentage = RpcMethod<UpdateControlGroupPercentageRequest, UpdateControlGroupPercentageResponse>;
16
16
  export type ApplicationsService_DisableControlGroup = RpcMethod<DisableControlGroupRequest, DisableControlGroupResponse>;
17
+ export type ApplicationsService_ForceUpdateControlGroupCalculation = RpcMethod<ForceUpdateControlGroupCalculationRequest, ForceUpdateControlGroupCalculationResponse>;
17
18
  export type ApplicationsService_GetDOIConfig = RpcMethod<GetDOIConfigRequest, GetDOIConfigResponse>;
18
19
  export type ApplicationsService_SetDOIConfig = RpcMethod<SetDOIConfigRequest, SetDOIConfigResponse>;
19
20
  export interface ApplicationsService {
@@ -31,6 +32,7 @@ export interface ApplicationsService {
31
32
  GetControlGroupSettings: ApplicationsService_GetControlGroupSettings;
32
33
  UpdateControlGroupPercentage: ApplicationsService_UpdateControlGroupPercentage;
33
34
  DisableControlGroup: ApplicationsService_DisableControlGroup;
35
+ ForceUpdateControlGroupCalculation: ApplicationsService_ForceUpdateControlGroupCalculation;
34
36
  GetDOIConfig: ApplicationsService_GetDOIConfig;
35
37
  SetDOIConfig: ApplicationsService_SetDOIConfig;
36
38
  }
@@ -173,6 +175,8 @@ export type GetControlGroupSettingsResponse = {
173
175
  lastModifiedAt: Date;
174
176
  /** Email of user who last modified settings */
175
177
  lastModifiedBy: string;
178
+ /** Whether cached size numbers are available (false => never calculated yet) */
179
+ hasData: boolean;
176
180
  };
177
181
  export type UpdateControlGroupPercentageRequest = {
178
182
  code?: string;
@@ -183,6 +187,10 @@ export type DisableControlGroupRequest = {
183
187
  code?: string;
184
188
  };
185
189
  export type DisableControlGroupResponse = {};
190
+ export type ForceUpdateControlGroupCalculationRequest = {
191
+ code?: string;
192
+ };
193
+ export type ForceUpdateControlGroupCalculationResponse = {};
186
194
  export type ShuffleControlGroupRequest = {
187
195
  code: string;
188
196
  };
@@ -155,7 +155,11 @@ export type SmsConfiguration_provider_ablemobile = {
155
155
  type: 'ablemobile';
156
156
  data: SmsAbleMobileConfiguration;
157
157
  };
158
- export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsConfiguration_provider_amazon | SmsConfiguration_provider_smsGlobal | SmsConfiguration_provider_smsala | SmsConfiguration_provider_capitolemobile | SmsConfiguration_provider_mobipace | SmsConfiguration_provider_smscenter | SmsConfiguration_provider_smstraffic | SmsConfiguration_provider_textmecoil | SmsConfiguration_provider_ablemobile;
158
+ export type SmsConfiguration_provider_mstat = {
159
+ type: 'mstat';
160
+ data: SmsMStatConfiguration;
161
+ };
162
+ export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsConfiguration_provider_amazon | SmsConfiguration_provider_smsGlobal | SmsConfiguration_provider_smsala | SmsConfiguration_provider_capitolemobile | SmsConfiguration_provider_mobipace | SmsConfiguration_provider_smscenter | SmsConfiguration_provider_smstraffic | SmsConfiguration_provider_textmecoil | SmsConfiguration_provider_ablemobile | SmsConfiguration_provider_mstat;
159
163
  /**
160
164
  * SmsConfiguration carries per-application SMS provider credentials. Exactly
161
165
  * one provider must be set; the chosen oneof field selects which gateway
@@ -218,6 +222,18 @@ export type SmsAbleMobileConfiguration = {
218
222
  ablemobilePassword: string;
219
223
  ablemobileSenderId: string;
220
224
  };
225
+ /**
226
+ * SmsMStatConfiguration carries MStat (Omni Messaging) credentials. Auth is the
227
+ * API token, or HTTP Basic (username + password) as a fallback; account_id is
228
+ * required and sender is optional.
229
+ */
230
+ export type SmsMStatConfiguration = {
231
+ mstatApiToken: string;
232
+ mstatUsername: string;
233
+ mstatPassword: string;
234
+ mstatAccountId: string;
235
+ mstatSender: string;
236
+ };
221
237
  export type ConfigurationRequest_kind_androidConfiguration = {
222
238
  type: 'androidConfiguration';
223
239
  data: AndroidConfiguration;
package/data.js CHANGED
@@ -2639,6 +2639,12 @@ export const data = {
2639
2639
  "method": "delete",
2640
2640
  "path": "/api/applications/{code}/control_group"
2641
2641
  },
2642
+ "ForceUpdateControlGroupCalculation": {
2643
+ "request": "pushwoosh.rpc_v2.applications.ForceUpdateControlGroupCalculationRequest",
2644
+ "response": "pushwoosh.rpc_v2.applications.ForceUpdateControlGroupCalculationResponse",
2645
+ "method": "post",
2646
+ "path": "/api/applications/{code}/control_group/recalculate"
2647
+ },
2642
2648
  "GetDOIConfig": {
2643
2649
  "request": "pushwoosh.rpc_v2.applications.GetDOIConfigRequest",
2644
2650
  "response": "pushwoosh.rpc_v2.applications.GetDOIConfigResponse",
@@ -3053,6 +3059,9 @@ export const data = {
3053
3059
  },
3054
3060
  "lastModifiedBy": {
3055
3061
  "type": "string"
3062
+ },
3063
+ "hasData": {
3064
+ "type": "boolean"
3056
3065
  }
3057
3066
  }
3058
3067
  },
@@ -3083,6 +3092,18 @@ export const data = {
3083
3092
  "type": "I",
3084
3093
  "fields": {}
3085
3094
  },
3095
+ "pushwoosh.rpc_v2.applications.ForceUpdateControlGroupCalculationRequest": {
3096
+ "type": "I",
3097
+ "fields": {
3098
+ "code": {
3099
+ "type": "string"
3100
+ }
3101
+ }
3102
+ },
3103
+ "pushwoosh.rpc_v2.applications.ForceUpdateControlGroupCalculationResponse": {
3104
+ "type": "I",
3105
+ "fields": {}
3106
+ },
3086
3107
  "pushwoosh.rpc_v2.applications.ShuffleControlGroupRequest": {
3087
3108
  "type": "I",
3088
3109
  "fields": {
@@ -3748,6 +3769,9 @@ export const data = {
3748
3769
  },
3749
3770
  "ablemobile": {
3750
3771
  "type": "pushwoosh.rpc_v2.applications_configurations.SmsAbleMobileConfiguration"
3772
+ },
3773
+ "mstat": {
3774
+ "type": "pushwoosh.rpc_v2.applications_configurations.SmsMStatConfiguration"
3751
3775
  }
3752
3776
  },
3753
3777
  "oneofs": {
@@ -3762,7 +3786,8 @@ export const data = {
3762
3786
  "smscenter",
3763
3787
  "smstraffic",
3764
3788
  "textmecoil",
3765
- "ablemobile"
3789
+ "ablemobile",
3790
+ "mstat"
3766
3791
  ]
3767
3792
  }
3768
3793
  }
@@ -3913,6 +3938,26 @@ export const data = {
3913
3938
  }
3914
3939
  }
3915
3940
  },
3941
+ "pushwoosh.rpc_v2.applications_configurations.SmsMStatConfiguration": {
3942
+ "type": "I",
3943
+ "fields": {
3944
+ "mstatApiToken": {
3945
+ "type": "string"
3946
+ },
3947
+ "mstatUsername": {
3948
+ "type": "string"
3949
+ },
3950
+ "mstatPassword": {
3951
+ "type": "string"
3952
+ },
3953
+ "mstatAccountId": {
3954
+ "type": "string"
3955
+ },
3956
+ "mstatSender": {
3957
+ "type": "string"
3958
+ }
3959
+ }
3960
+ },
3916
3961
  "pushwoosh.rpc_v2.applications_configurations.ConfigurationRequest": {
3917
3962
  "type": "I",
3918
3963
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",