@pushwoosh/rpc-v2-http-api-data 0.2.352 → 0.2.354

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.
@@ -46,7 +46,7 @@ export interface ApplicationsControlGroupService {
46
46
  ForceUpdateControlGroupCalculation: ApplicationsControlGroupService_ForceUpdateControlGroupCalculation;
47
47
  /** Polls just the changing user counts of one control group while a size calculation runs. */
48
48
  GetControlGroupCalculationStatus: ApplicationsControlGroupService_GetControlGroupCalculationStatus;
49
- /** Returns the precomputed Control-vs-Treatment analytics for one control group. Only the default group has analytics: the nightly job still measures one hold-out per application, so any other group comes back empty until it learns about groups. */
49
+ /** Returns the precomputed Control-vs-Treatment analytics for one control group cycle: the running cycle over a 3, 7 or 30 day window, or a closed cycle over its full period. A cycle the job has not measured yet comes back empty. */
50
50
  GetControlGroupAnalytics: ApplicationsControlGroupService_GetControlGroupAnalytics;
51
51
  /** Reports for each user id whether it is held out by one control group right now. Membership is computed from the id, so this answers without exporting the base: use it to check the users of a send or an import instead of exporting the whole group. A group scoped to countries or a tag holds a user out only if one of their devices is in that scope. */
52
52
  CheckControlGroupMembership: ApplicationsControlGroupService_CheckControlGroupMembership;
@@ -73,7 +73,9 @@ export type GetCalculationStatusResponse = {
73
73
  * grpc-gateway puts on the wire in JSON, and renaming them would break every
74
74
  * client mid-rollout.
75
75
  */
76
- export type AnalyticsWindowDays = 'WINDOW_DAYS_UNSPECIFIED' | 'WINDOW_DAYS_3' | 'WINDOW_DAYS_7' | 'WINDOW_DAYS_30';
76
+ export type AnalyticsWindowDays = 'WINDOW_DAYS_UNSPECIFIED' | 'WINDOW_DAYS_3' | 'WINDOW_DAYS_7' | 'WINDOW_DAYS_30'
77
+ /** The whole cycle; only a closed cycle is measured this way, so it needs a cycle_number. */
78
+ | 'WINDOW_DAYS_FULL_PERIOD';
77
79
  /**
78
80
  * ControlGroupMode is how long a drawn membership lives. Unspecified reads as
79
81
  * permanent, which is what every group was before modes existed.
@@ -116,6 +118,10 @@ export type ControlGroupCycle = {
116
118
  startedAt: Date;
117
119
  endedAt: Date;
118
120
  closeReason: ControlGroupCycleCloseReason;
121
+ /** Tag the cycle's hold-out was scoped to, AND-ed with countries; empty for no tag scope and for cycles closed before it existed. */
122
+ scopeTag: string;
123
+ /** Values of scope_tag that put a user in scope during this cycle. */
124
+ scopeValues: string[];
119
125
  };
120
126
  /** ControlGroup is one configured control group of an application. */
121
127
  export type ControlGroup = {
@@ -298,8 +304,13 @@ export type GetControlGroupAnalyticsRequest = {
298
304
  code?: string;
299
305
  /** Control group code (format XXXXX-XXXXX) to report on. */
300
306
  controlGroupCode?: string;
301
- /** Analytics lookback window preset (3, 7 or 30 days). */
307
+ /** Analytics lookback window preset (3, 7 or 30 days, or the full period of a closed cycle). */
302
308
  windowDays?: AnalyticsWindowDays;
309
+ /**
310
+ * Cycle to report on: the group's cycle_number for the running one, a listed number for a closed one.
311
+ * 0 is the latest rows whatever their cycle; required with WINDOW_DAYS_FULL_PERIOD.
312
+ */
313
+ cycleNumber?: number;
303
314
  };
304
315
  export type AnalyticsGroup = {
305
316
  users: number;
package/data.js CHANGED
@@ -7073,7 +7073,8 @@ export const data = {
7073
7073
  "WINDOW_DAYS_UNSPECIFIED",
7074
7074
  "WINDOW_DAYS_3",
7075
7075
  "WINDOW_DAYS_7",
7076
- "WINDOW_DAYS_30"
7076
+ "WINDOW_DAYS_30",
7077
+ "WINDOW_DAYS_FULL_PERIOD"
7077
7078
  ]
7078
7079
  },
7079
7080
  "pushwoosh.rpc_v2.applications_controlgroup.ControlGroupMode": {
@@ -7125,6 +7126,13 @@ export const data = {
7125
7126
  },
7126
7127
  "closeReason": {
7127
7128
  "type": "pushwoosh.rpc_v2.applications_controlgroup.ControlGroupCycleCloseReason"
7129
+ },
7130
+ "scopeTag": {
7131
+ "type": "string"
7132
+ },
7133
+ "scopeValues": {
7134
+ "type": "string",
7135
+ "array": true
7128
7136
  }
7129
7137
  }
7130
7138
  },
@@ -7464,6 +7472,9 @@ export const data = {
7464
7472
  },
7465
7473
  "windowDays": {
7466
7474
  "type": "pushwoosh.rpc_v2.applications_controlgroup.AnalyticsWindowDays"
7475
+ },
7476
+ "cycleNumber": {
7477
+ "type": "number"
7467
7478
  }
7468
7479
  }
7469
7480
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.352",
3
+ "version": "0.2.354",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",