@pushwoosh/rpc-v2-http-api-data 0.1.791 → 0.1.793

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.
Files changed (3) hide show
  1. package/data.js +46 -0
  2. package/package.json +1 -1
  3. package/vouchers.d.ts +13 -0
package/data.js CHANGED
@@ -24164,6 +24164,18 @@ export const data = {
24164
24164
  "response": "pushwoosh.rpc_v2.vouchers.GetPoolStatsResponse",
24165
24165
  "method": "post",
24166
24166
  "path": "/api/vouchers/getPoolStats"
24167
+ },
24168
+ "DeleteVouchers": {
24169
+ "request": "pushwoosh.rpc_v2.vouchers.DeleteVouchersRequest",
24170
+ "response": "pushwoosh.rpc_v2.vouchers.DeleteVouchersResponse",
24171
+ "method": "post",
24172
+ "path": "/api/vouchers/delete"
24173
+ },
24174
+ "DeletePool": {
24175
+ "request": "pushwoosh.rpc_v2.vouchers.DeletePoolRequest",
24176
+ "response": "pushwoosh.rpc_v2.vouchers.DeletePoolResponse",
24177
+ "method": "post",
24178
+ "path": "/api/vouchers/pools/delete"
24167
24179
  }
24168
24180
  }
24169
24181
  },
@@ -24301,6 +24313,40 @@ export const data = {
24301
24313
  }
24302
24314
  }
24303
24315
  },
24316
+ "pushwoosh.rpc_v2.vouchers.DeleteVouchersRequest": {
24317
+ "type": "I",
24318
+ "fields": {
24319
+ "application": {
24320
+ "type": "string"
24321
+ },
24322
+ "pool": {
24323
+ "type": "string"
24324
+ },
24325
+ "vouchers": {
24326
+ "type": "string",
24327
+ "array": true
24328
+ }
24329
+ }
24330
+ },
24331
+ "pushwoosh.rpc_v2.vouchers.DeleteVouchersResponse": {
24332
+ "type": "I",
24333
+ "fields": {}
24334
+ },
24335
+ "pushwoosh.rpc_v2.vouchers.DeletePoolRequest": {
24336
+ "type": "I",
24337
+ "fields": {
24338
+ "application": {
24339
+ "type": "string"
24340
+ },
24341
+ "pool": {
24342
+ "type": "string"
24343
+ }
24344
+ }
24345
+ },
24346
+ "pushwoosh.rpc_v2.vouchers.DeletePoolResponse": {
24347
+ "type": "I",
24348
+ "fields": {}
24349
+ },
24304
24350
  "pushwoosh.rpc_v2.whatsapp.WhatsAppService": {
24305
24351
  "type": "S",
24306
24352
  "key": "whatsApp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.791",
3
+ "version": "0.1.793",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/vouchers.d.ts CHANGED
@@ -4,6 +4,8 @@ export interface VouchersService {
4
4
  AddVouchers(request: AddVouchersRequest): Promise<AddVouchersResponse>;
5
5
  ExportVouchers(request: ExportVouchersRequest): Promise<ExportVouchersResponse>;
6
6
  GetPoolStats(request: GetPoolStatsRequest): Promise<GetPoolStatsResponse>;
7
+ DeleteVouchers(request: DeleteVouchersRequest): Promise<DeleteVouchersResponse>;
8
+ DeletePool(request: DeletePoolRequest): Promise<DeletePoolResponse>;
7
9
  }
8
10
  export type CreatePoolRequest = {
9
11
  application?: string;
@@ -51,3 +53,14 @@ export type GetPoolStatsResponse = {
51
53
  totalVouchers: number;
52
54
  freeVouchers: number;
53
55
  };
56
+ export type DeleteVouchersRequest = {
57
+ application?: string;
58
+ pool?: string;
59
+ vouchers?: string[];
60
+ };
61
+ export type DeleteVouchersResponse = {};
62
+ export type DeletePoolRequest = {
63
+ application?: string;
64
+ pool?: string;
65
+ };
66
+ export type DeletePoolResponse = {};