@pushwoosh/rpc-v2-http-api-data 0.1.754 → 0.1.756

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
@@ -10,6 +10,9 @@ export interface ApplicationsService {
10
10
  SendEmailVerification(request: SendEmailVerificationRequest): Promise<SendEmailVerificationResponse>;
11
11
  GetAccountGroupPermissions(request: GetAccountGroupPermissionsRequest): Promise<GetAccountGroupPermissionsResponse>;
12
12
  SaveAccountGroupPermissions(request: SaveAccountGroupPermissionsRequest): Promise<SaveAccountGroupPermissionsResponse>;
13
+ GetControlGroupSettings(request: GetControlGroupSettingsRequest): Promise<GetControlGroupSettingsResponse>;
14
+ UpdateControlGroupPercentage(request: UpdateControlGroupPercentageRequest): Promise<UpdateControlGroupPercentageResponse>;
15
+ DisableControlGroup(request: DisableControlGroupRequest): Promise<DisableControlGroupResponse>;
13
16
  }
14
17
  export type ApplicationPlatformSubscribersCount = {
15
18
  pushEnabled: number;
@@ -124,3 +127,23 @@ export type SaveAccountGroupPermissionsRequest = {
124
127
  export type SaveAccountGroupPermissionsResponse = {
125
128
  permissions: AccountGroupPermissions[];
126
129
  };
130
+ export type GetControlGroupSettingsRequest = {
131
+ code?: string;
132
+ };
133
+ export type GetControlGroupSettingsResponse = {
134
+ percentage: number;
135
+ enabled: boolean;
136
+ };
137
+ export type UpdateControlGroupPercentageRequest = {
138
+ code?: string;
139
+ percentage?: number;
140
+ };
141
+ export type UpdateControlGroupPercentageResponse = {};
142
+ export type DisableControlGroupRequest = {
143
+ code?: string;
144
+ };
145
+ export type DisableControlGroupResponse = {};
146
+ export type ShuffleControlGroupRequest = {
147
+ code: string;
148
+ };
149
+ export type ShuffleControlGroupResponse = {};
package/data.js CHANGED
@@ -2101,6 +2101,24 @@ export const data = {
2101
2101
  "response": "pushwoosh.rpc_v2.applications.SaveAccountGroupPermissionsResponse",
2102
2102
  "method": "put",
2103
2103
  "path": "/api/applications/{code}/account_group_permissions"
2104
+ },
2105
+ "GetControlGroupSettings": {
2106
+ "request": "pushwoosh.rpc_v2.applications.GetControlGroupSettingsRequest",
2107
+ "response": "pushwoosh.rpc_v2.applications.GetControlGroupSettingsResponse",
2108
+ "method": "get",
2109
+ "path": "/api/applications/{code}/control_group"
2110
+ },
2111
+ "UpdateControlGroupPercentage": {
2112
+ "request": "pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageRequest",
2113
+ "response": "pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageResponse",
2114
+ "method": "post",
2115
+ "path": "/api/applications/{code}/control_group"
2116
+ },
2117
+ "DisableControlGroup": {
2118
+ "request": "pushwoosh.rpc_v2.applications.DisableControlGroupRequest",
2119
+ "response": "pushwoosh.rpc_v2.applications.DisableControlGroupResponse",
2120
+ "method": "delete",
2121
+ "path": "/api/applications/{code}/control_group"
2104
2122
  }
2105
2123
  }
2106
2124
  },
@@ -2445,6 +2463,64 @@ export const data = {
2445
2463
  }
2446
2464
  }
2447
2465
  },
2466
+ "pushwoosh.rpc_v2.applications.GetControlGroupSettingsRequest": {
2467
+ "type": "I",
2468
+ "fields": {
2469
+ "code": {
2470
+ "type": "string"
2471
+ }
2472
+ }
2473
+ },
2474
+ "pushwoosh.rpc_v2.applications.GetControlGroupSettingsResponse": {
2475
+ "type": "I",
2476
+ "fields": {
2477
+ "percentage": {
2478
+ "type": "number"
2479
+ },
2480
+ "enabled": {
2481
+ "type": "boolean"
2482
+ }
2483
+ }
2484
+ },
2485
+ "pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageRequest": {
2486
+ "type": "I",
2487
+ "fields": {
2488
+ "code": {
2489
+ "type": "string"
2490
+ },
2491
+ "percentage": {
2492
+ "type": "number"
2493
+ }
2494
+ }
2495
+ },
2496
+ "pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageResponse": {
2497
+ "type": "I",
2498
+ "fields": {}
2499
+ },
2500
+ "pushwoosh.rpc_v2.applications.DisableControlGroupRequest": {
2501
+ "type": "I",
2502
+ "fields": {
2503
+ "code": {
2504
+ "type": "string"
2505
+ }
2506
+ }
2507
+ },
2508
+ "pushwoosh.rpc_v2.applications.DisableControlGroupResponse": {
2509
+ "type": "I",
2510
+ "fields": {}
2511
+ },
2512
+ "pushwoosh.rpc_v2.applications.ShuffleControlGroupRequest": {
2513
+ "type": "I",
2514
+ "fields": {
2515
+ "code": {
2516
+ "type": "string"
2517
+ }
2518
+ }
2519
+ },
2520
+ "pushwoosh.rpc_v2.applications.ShuffleControlGroupResponse": {
2521
+ "type": "I",
2522
+ "fields": {}
2523
+ },
2448
2524
  "pushwoosh.rpc_v2.applications.email_froms.ApplicationEmailFromsService": {
2449
2525
  "type": "S",
2450
2526
  "key": "applicationEmailFroms",
@@ -22451,9 +22527,6 @@ export const data = {
22451
22527
  },
22452
22528
  "hasRightAceModify": {
22453
22529
  "type": "boolean"
22454
- },
22455
- "encrypted": {
22456
- "type": "boolean"
22457
22530
  }
22458
22531
  }
22459
22532
  },
@@ -22471,9 +22544,6 @@ export const data = {
22471
22544
  },
22472
22545
  "userSpecific": {
22473
22546
  "type": "boolean"
22474
- },
22475
- "encrypted": {
22476
- "type": "boolean"
22477
22547
  }
22478
22548
  }
22479
22549
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.754",
3
+ "version": "0.1.756",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/tags.d.ts CHANGED
@@ -17,14 +17,12 @@ export type Tag = {
17
17
  appSpecific: boolean;
18
18
  userSpecific: boolean;
19
19
  hasRightAceModify: boolean;
20
- encrypted: boolean;
21
20
  };
22
21
  export type CreateTagRequest = {
23
22
  name?: string;
24
23
  type?: Tag_Type;
25
24
  appSpecific?: boolean;
26
25
  userSpecific?: boolean;
27
- encrypted?: boolean;
28
26
  };
29
27
  export type CreateTagResponse = {
30
28
  tag: Tag;