@pushwoosh/rpc-v2-http-api-data 0.2.44 → 0.2.46

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
@@ -16,6 +16,7 @@ export type ApplicationsService_UpdateControlGroupPercentage = RpcMethod<UpdateC
16
16
  export type ApplicationsService_DisableControlGroup = RpcMethod<DisableControlGroupRequest, DisableControlGroupResponse>;
17
17
  export type ApplicationsService_ForceUpdateControlGroupCalculation = RpcMethod<ForceUpdateControlGroupCalculationRequest, ForceUpdateControlGroupCalculationResponse>;
18
18
  export type ApplicationsService_GetControlGroupCalculationStatus = RpcMethod<GetControlGroupCalculationStatusRequest, GetControlGroupCalculationStatusResponse>;
19
+ export type ApplicationsService_GetControlGroupAnalytics = RpcMethod<GetControlGroupAnalyticsRequest, GetControlGroupAnalyticsResponse>;
19
20
  export type ApplicationsService_GetDOIConfig = RpcMethod<GetDOIConfigRequest, GetDOIConfigResponse>;
20
21
  export type ApplicationsService_SetDOIConfig = RpcMethod<SetDOIConfigRequest, SetDOIConfigResponse>;
21
22
  export interface ApplicationsService {
@@ -35,6 +36,7 @@ export interface ApplicationsService {
35
36
  DisableControlGroup: ApplicationsService_DisableControlGroup;
36
37
  ForceUpdateControlGroupCalculation: ApplicationsService_ForceUpdateControlGroupCalculation;
37
38
  GetControlGroupCalculationStatus: ApplicationsService_GetControlGroupCalculationStatus;
39
+ GetControlGroupAnalytics: ApplicationsService_GetControlGroupAnalytics;
38
40
  GetDOIConfig: ApplicationsService_GetDOIConfig;
39
41
  SetDOIConfig: ApplicationsService_SetDOIConfig;
40
42
  }
@@ -215,6 +217,37 @@ export type ShuffleControlGroupRequest = {
215
217
  code: string;
216
218
  };
217
219
  export type ShuffleControlGroupResponse = {};
220
+ export type GetControlGroupAnalyticsRequest_WindowDays = 'WINDOW_DAYS_UNSPECIFIED' | 'WINDOW_DAYS_3' | 'WINDOW_DAYS_7' | 'WINDOW_DAYS_30';
221
+ /**
222
+ * GetControlGroupAnalyticsRequest asks for the precomputed Control-vs-Treatment
223
+ * analytics for a window preset (3/7/30 days).
224
+ */
225
+ export type GetControlGroupAnalyticsRequest = {
226
+ code?: string;
227
+ windowDays?: GetControlGroupAnalyticsRequest_WindowDays;
228
+ };
229
+ export type ControlGroupAnalyticsGroup = {
230
+ users: number;
231
+ conversions: number;
232
+ conversionRate: number;
233
+ eventsPerUser: number;
234
+ };
235
+ export type ControlGroupAnalyticsEvent_Significance = 'SIGNIFICANCE_UNSPECIFIED' | 'SIGNIFICANCE_NOT_ENOUGH_DATA' | 'SIGNIFICANCE_NOT_SIGNIFICANT' | 'SIGNIFICANCE_SIGNIFICANT';
236
+ export type ControlGroupAnalyticsEvent = {
237
+ event: string;
238
+ treatment: ControlGroupAnalyticsGroup;
239
+ control: ControlGroupAnalyticsGroup;
240
+ upliftPct: number;
241
+ incrementalEvents: number;
242
+ percentOfTreatment: number;
243
+ zScore: number;
244
+ pValue: number;
245
+ confidencePct: number;
246
+ significance: ControlGroupAnalyticsEvent_Significance;
247
+ };
248
+ export type GetControlGroupAnalyticsResponse = {
249
+ events: ControlGroupAnalyticsEvent[];
250
+ };
218
251
  export type DoubleOptInConfig = {
219
252
  enabled: boolean;
220
253
  emailPreset: string;
package/data.js CHANGED
@@ -2651,6 +2651,12 @@ export const data = {
2651
2651
  "method": "get",
2652
2652
  "path": "/api/applications/{code}/control_group/calculation_status"
2653
2653
  },
2654
+ "GetControlGroupAnalytics": {
2655
+ "request": "pushwoosh.rpc_v2.applications.GetControlGroupAnalyticsRequest",
2656
+ "response": "pushwoosh.rpc_v2.applications.GetControlGroupAnalyticsResponse",
2657
+ "method": "get",
2658
+ "path": "/api/applications/{code}/control_group/analytics"
2659
+ },
2654
2660
  "GetDOIConfig": {
2655
2661
  "request": "pushwoosh.rpc_v2.applications.GetDOIConfigRequest",
2656
2662
  "response": "pushwoosh.rpc_v2.applications.GetDOIConfigResponse",
@@ -3147,6 +3153,96 @@ export const data = {
3147
3153
  "type": "I",
3148
3154
  "fields": {}
3149
3155
  },
3156
+ "pushwoosh.rpc_v2.applications.GetControlGroupAnalyticsRequest.WindowDays": {
3157
+ "type": "E",
3158
+ "values": [
3159
+ "WINDOW_DAYS_UNSPECIFIED",
3160
+ "WINDOW_DAYS_3",
3161
+ "WINDOW_DAYS_7",
3162
+ "WINDOW_DAYS_30"
3163
+ ]
3164
+ },
3165
+ "pushwoosh.rpc_v2.applications.GetControlGroupAnalyticsRequest": {
3166
+ "type": "I",
3167
+ "fields": {
3168
+ "code": {
3169
+ "type": "string"
3170
+ },
3171
+ "windowDays": {
3172
+ "type": "pushwoosh.rpc_v2.applications.GetControlGroupAnalyticsRequest.WindowDays"
3173
+ }
3174
+ }
3175
+ },
3176
+ "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsGroup": {
3177
+ "type": "I",
3178
+ "fields": {
3179
+ "users": {
3180
+ "type": "number"
3181
+ },
3182
+ "conversions": {
3183
+ "type": "number"
3184
+ },
3185
+ "conversionRate": {
3186
+ "type": "number"
3187
+ },
3188
+ "eventsPerUser": {
3189
+ "type": "number"
3190
+ }
3191
+ }
3192
+ },
3193
+ "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsEvent.Significance": {
3194
+ "type": "E",
3195
+ "values": [
3196
+ "SIGNIFICANCE_UNSPECIFIED",
3197
+ "SIGNIFICANCE_NOT_ENOUGH_DATA",
3198
+ "SIGNIFICANCE_NOT_SIGNIFICANT",
3199
+ "SIGNIFICANCE_SIGNIFICANT"
3200
+ ]
3201
+ },
3202
+ "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsEvent": {
3203
+ "type": "I",
3204
+ "fields": {
3205
+ "event": {
3206
+ "type": "string"
3207
+ },
3208
+ "treatment": {
3209
+ "type": "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsGroup"
3210
+ },
3211
+ "control": {
3212
+ "type": "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsGroup"
3213
+ },
3214
+ "upliftPct": {
3215
+ "type": "number"
3216
+ },
3217
+ "incrementalEvents": {
3218
+ "type": "number"
3219
+ },
3220
+ "percentOfTreatment": {
3221
+ "type": "number"
3222
+ },
3223
+ "zScore": {
3224
+ "type": "number"
3225
+ },
3226
+ "pValue": {
3227
+ "type": "number"
3228
+ },
3229
+ "confidencePct": {
3230
+ "type": "number"
3231
+ },
3232
+ "significance": {
3233
+ "type": "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsEvent.Significance"
3234
+ }
3235
+ }
3236
+ },
3237
+ "pushwoosh.rpc_v2.applications.GetControlGroupAnalyticsResponse": {
3238
+ "type": "I",
3239
+ "fields": {
3240
+ "events": {
3241
+ "type": "pushwoosh.rpc_v2.applications.ControlGroupAnalyticsEvent",
3242
+ "array": true
3243
+ }
3244
+ }
3245
+ },
3150
3246
  "pushwoosh.rpc_v2.applications.DoubleOptInConfig": {
3151
3247
  "type": "I",
3152
3248
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.44",
3
+ "version": "0.2.46",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",