@pushwoosh/rpc-v2-http-api-data 0.1.777 → 0.1.779

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
@@ -13,7 +13,10 @@ export interface ApplicationsService {
13
13
  GetControlGroupSettings(request: GetControlGroupSettingsRequest): Promise<GetControlGroupSettingsResponse>;
14
14
  UpdateControlGroupPercentage(request: UpdateControlGroupPercentageRequest): Promise<UpdateControlGroupPercentageResponse>;
15
15
  DisableControlGroup(request: DisableControlGroupRequest): Promise<DisableControlGroupResponse>;
16
+ ExportControlGroup(request: ExportControlGroupRequest): Promise<ExportControlGroupResponse>;
17
+ DownloadControlGroupExport(request: DownloadControlGroupExportRequest): Promise<DownloadControlGroupExportResponse>;
16
18
  }
19
+ export type ControlGroupTaskStatus = 'CONTROL_GROUP_TASK_STATUS_UNSPECIFIED' | 'CONTROL_GROUP_TASK_STATUS_NOT_STARTED' | 'CONTROL_GROUP_TASK_STATUS_IN_PROGRESS' | 'CONTROL_GROUP_TASK_STATUS_COMPLETED';
17
20
  export type ApplicationPlatformSubscribersCount = {
18
21
  pushEnabled: number;
19
22
  pushDisabled: number;
@@ -133,6 +136,11 @@ export type GetControlGroupSettingsRequest = {
133
136
  export type GetControlGroupSettingsResponse = {
134
137
  percentage: number;
135
138
  enabled: boolean;
139
+ totalUsers: number;
140
+ controlGroupUsers: number;
141
+ calculationStatus: ControlGroupTaskStatus;
142
+ lastModifiedAt: Date;
143
+ lastModifiedBy: string;
136
144
  };
137
145
  export type UpdateControlGroupPercentageRequest = {
138
146
  code?: string;
@@ -147,3 +155,18 @@ export type ShuffleControlGroupRequest = {
147
155
  code: string;
148
156
  };
149
157
  export type ShuffleControlGroupResponse = {};
158
+ export type ExportControlGroupRequest = {
159
+ code?: string;
160
+ };
161
+ export type ExportControlGroupResponse = {
162
+ status: ControlGroupTaskStatus;
163
+ progress: number;
164
+ devicesCount: number;
165
+ usersCount: number;
166
+ };
167
+ export type DownloadControlGroupExportRequest = {
168
+ code?: string;
169
+ };
170
+ export type DownloadControlGroupExportResponse = {
171
+ downloadUrl: string;
172
+ };
package/data.js CHANGED
@@ -2562,9 +2562,30 @@ export const data = {
2562
2562
  "response": "pushwoosh.rpc_v2.applications.DisableControlGroupResponse",
2563
2563
  "method": "delete",
2564
2564
  "path": "/api/applications/{code}/control_group"
2565
+ },
2566
+ "ExportControlGroup": {
2567
+ "request": "pushwoosh.rpc_v2.applications.ExportControlGroupRequest",
2568
+ "response": "pushwoosh.rpc_v2.applications.ExportControlGroupResponse",
2569
+ "method": "post",
2570
+ "path": "/api/applications/{code}/control_group:export"
2571
+ },
2572
+ "DownloadControlGroupExport": {
2573
+ "request": "pushwoosh.rpc_v2.applications.DownloadControlGroupExportRequest",
2574
+ "response": "pushwoosh.rpc_v2.applications.DownloadControlGroupExportResponse",
2575
+ "method": "get",
2576
+ "path": "/api/applications/{code}/control_group:download"
2565
2577
  }
2566
2578
  }
2567
2579
  },
2580
+ "pushwoosh.rpc_v2.applications.ControlGroupTaskStatus": {
2581
+ "type": "E",
2582
+ "values": [
2583
+ "CONTROL_GROUP_TASK_STATUS_UNSPECIFIED",
2584
+ "CONTROL_GROUP_TASK_STATUS_NOT_STARTED",
2585
+ "CONTROL_GROUP_TASK_STATUS_IN_PROGRESS",
2586
+ "CONTROL_GROUP_TASK_STATUS_COMPLETED"
2587
+ ]
2588
+ },
2568
2589
  "pushwoosh.rpc_v2.applications.ApplicationPlatformSubscribersCount": {
2569
2590
  "type": "I",
2570
2591
  "fields": {
@@ -2922,6 +2943,21 @@ export const data = {
2922
2943
  },
2923
2944
  "enabled": {
2924
2945
  "type": "boolean"
2946
+ },
2947
+ "totalUsers": {
2948
+ "type": "number"
2949
+ },
2950
+ "controlGroupUsers": {
2951
+ "type": "number"
2952
+ },
2953
+ "calculationStatus": {
2954
+ "type": "pushwoosh.rpc_v2.applications.ControlGroupTaskStatus"
2955
+ },
2956
+ "lastModifiedAt": {
2957
+ "type": "Date"
2958
+ },
2959
+ "lastModifiedBy": {
2960
+ "type": "string"
2925
2961
  }
2926
2962
  }
2927
2963
  },
@@ -2964,6 +3000,47 @@ export const data = {
2964
3000
  "type": "I",
2965
3001
  "fields": {}
2966
3002
  },
3003
+ "pushwoosh.rpc_v2.applications.ExportControlGroupRequest": {
3004
+ "type": "I",
3005
+ "fields": {
3006
+ "code": {
3007
+ "type": "string"
3008
+ }
3009
+ }
3010
+ },
3011
+ "pushwoosh.rpc_v2.applications.ExportControlGroupResponse": {
3012
+ "type": "I",
3013
+ "fields": {
3014
+ "status": {
3015
+ "type": "pushwoosh.rpc_v2.applications.ControlGroupTaskStatus"
3016
+ },
3017
+ "progress": {
3018
+ "type": "number"
3019
+ },
3020
+ "devicesCount": {
3021
+ "type": "number"
3022
+ },
3023
+ "usersCount": {
3024
+ "type": "number"
3025
+ }
3026
+ }
3027
+ },
3028
+ "pushwoosh.rpc_v2.applications.DownloadControlGroupExportRequest": {
3029
+ "type": "I",
3030
+ "fields": {
3031
+ "code": {
3032
+ "type": "string"
3033
+ }
3034
+ }
3035
+ },
3036
+ "pushwoosh.rpc_v2.applications.DownloadControlGroupExportResponse": {
3037
+ "type": "I",
3038
+ "fields": {
3039
+ "downloadUrl": {
3040
+ "type": "string"
3041
+ }
3042
+ }
3043
+ },
2967
3044
  "pushwoosh.rpc_v2.applications.email_froms.ApplicationEmailFromsService": {
2968
3045
  "type": "S",
2969
3046
  "key": "applicationEmailFroms",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.777",
3
+ "version": "0.1.779",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",