@pushwoosh/rpc-v2-http-api-data 0.2.348 → 0.2.350

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.
@@ -48,7 +48,7 @@ export interface ApplicationsControlGroupService {
48
48
  GetControlGroupCalculationStatus: ApplicationsControlGroupService_GetControlGroupCalculationStatus;
49
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. */
50
50
  GetControlGroupAnalytics: ApplicationsControlGroupService_GetControlGroupAnalytics;
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 holds a user out only if one of their devices is in those countries. */
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;
53
53
  }
54
54
  export type TaskStatus = 'TASK_STATUS_UNSPECIFIED' | 'TASK_STATUS_NOT_STARTED' | 'TASK_STATUS_IN_PROGRESS' | 'TASK_STATUS_COMPLETED';
@@ -148,6 +148,10 @@ export type ControlGroup = {
148
148
  /** The running cycle. A disabled group has no running cycle: its number is the next one to start. */
149
149
  cycleNumber: number;
150
150
  cycleStartedAt: Date;
151
+ /** Tag the hold-out is scoped to, AND-ed with countries; empty is no tag scope. */
152
+ scopeTag: string;
153
+ /** Values of scope_tag that put a user in scope; a boolean tag uses "true" and "false". */
154
+ scopeValues: string[];
151
155
  };
152
156
  export type ListControlGroupsRequest = {
153
157
  /** Application code (format XXXXX-XXXXX) whose control groups to list. */
@@ -173,6 +177,10 @@ export type CreateControlGroupRequest = {
173
177
  refreshPeriodDays?: number;
174
178
  /** End of the experiment, experiment only: at least 30 days ahead. */
175
179
  endsAt?: Date;
180
+ /** String or boolean tag to scope the hold-out to, AND-ed with countries; empty means no tag scope. */
181
+ scopeTag?: string;
182
+ /** Values of scope_tag that put a user in scope, required with scope_tag; a boolean tag takes "true" and "false". */
183
+ scopeValues?: string[];
176
184
  };
177
185
  export type CreateControlGroupResponse = {
178
186
  group: ControlGroup;
@@ -237,6 +245,10 @@ export type UpdateControlGroupSettingsRequest = {
237
245
  refreshPeriodDays?: number;
238
246
  /** End of the experiment, experiment only: at least 30 days ahead. */
239
247
  endsAt?: Date;
248
+ /** String or boolean tag to scope the hold-out to, AND-ed with countries; empty removes the tag scope. */
249
+ scopeTag?: string;
250
+ /** Values of scope_tag that put a user in scope, required with scope_tag; a boolean tag takes "true" and "false". */
251
+ scopeValues?: string[];
240
252
  };
241
253
  export type UpdateControlGroupSettingsResponse = {
242
254
  group: ControlGroup;
@@ -340,8 +352,8 @@ export type CheckControlGroupMembershipRequest = {
340
352
  controlGroupCode?: string;
341
353
  /**
342
354
  * User ids to check, at most 1000 per call. An id the application has never
343
- * seen is answered from the id alone, unless the group is scoped to countries:
344
- * such an id has no device in them and comes back false.
355
+ * seen is answered from the id alone, unless the group is scoped to countries or
356
+ * a tag: such an id has no device in the scope and comes back false.
345
357
  */
346
358
  userIds?: string[];
347
359
  };
package/data.js CHANGED
@@ -7176,6 +7176,13 @@ export const data = {
7176
7176
  },
7177
7177
  "cycleStartedAt": {
7178
7178
  "type": "Date"
7179
+ },
7180
+ "scopeTag": {
7181
+ "type": "string"
7182
+ },
7183
+ "scopeValues": {
7184
+ "type": "string",
7185
+ "array": true
7179
7186
  }
7180
7187
  }
7181
7188
  },
@@ -7223,6 +7230,13 @@ export const data = {
7223
7230
  },
7224
7231
  "endsAt": {
7225
7232
  "type": "Date"
7233
+ },
7234
+ "scopeTag": {
7235
+ "type": "string"
7236
+ },
7237
+ "scopeValues": {
7238
+ "type": "string",
7239
+ "array": true
7226
7240
  }
7227
7241
  }
7228
7242
  },
@@ -7341,6 +7355,13 @@ export const data = {
7341
7355
  },
7342
7356
  "endsAt": {
7343
7357
  "type": "Date"
7358
+ },
7359
+ "scopeTag": {
7360
+ "type": "string"
7361
+ },
7362
+ "scopeValues": {
7363
+ "type": "string",
7364
+ "array": true
7344
7365
  }
7345
7366
  }
7346
7367
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.348",
3
+ "version": "0.2.350",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",