@pushwoosh/rpc-v2-http-api-data 0.1.738 → 0.1.740

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/data.js CHANGED
@@ -22032,6 +22032,12 @@ export const data = {
22032
22032
  "response": "pushwoosh.rpc_v2.tags.GetTagValuesResponse",
22033
22033
  "method": "get",
22034
22034
  "path": "/api/tags:values"
22035
+ },
22036
+ "GetTagUsage": {
22037
+ "request": "pushwoosh.rpc_v2.tags.GetTagUsageRequest",
22038
+ "response": "pushwoosh.rpc_v2.tags.GetTagUsageResponse",
22039
+ "method": "get",
22040
+ "path": "/api/tags/{name}:get-tag-usage"
22035
22041
  }
22036
22042
  }
22037
22043
  },
@@ -22246,6 +22252,88 @@ export const data = {
22246
22252
  }
22247
22253
  }
22248
22254
  },
22255
+ "pushwoosh.rpc_v2.tags.GetTagUsageRequest": {
22256
+ "type": "I",
22257
+ "fields": {
22258
+ "name": {
22259
+ "type": "string"
22260
+ }
22261
+ }
22262
+ },
22263
+ "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Journey": {
22264
+ "type": "I",
22265
+ "fields": {
22266
+ "uuid": {
22267
+ "type": "string"
22268
+ },
22269
+ "title": {
22270
+ "type": "string"
22271
+ },
22272
+ "status": {
22273
+ "type": "number"
22274
+ }
22275
+ }
22276
+ },
22277
+ "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Inapp": {
22278
+ "type": "I",
22279
+ "fields": {
22280
+ "code": {
22281
+ "type": "string"
22282
+ },
22283
+ "name": {
22284
+ "type": "string"
22285
+ },
22286
+ "status": {
22287
+ "type": "string"
22288
+ }
22289
+ }
22290
+ },
22291
+ "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Autopush": {
22292
+ "type": "I",
22293
+ "fields": {
22294
+ "code": {
22295
+ "type": "string"
22296
+ },
22297
+ "name": {
22298
+ "type": "string"
22299
+ },
22300
+ "status": {
22301
+ "type": "boolean"
22302
+ }
22303
+ }
22304
+ },
22305
+ "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Filter": {
22306
+ "type": "I",
22307
+ "fields": {
22308
+ "code": {
22309
+ "type": "string"
22310
+ },
22311
+ "name": {
22312
+ "type": "string"
22313
+ }
22314
+ }
22315
+ },
22316
+ "pushwoosh.rpc_v2.tags.GetTagUsageResponse": {
22317
+ "type": "I",
22318
+ "fields": {
22319
+ "journeys": {
22320
+ "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Journey",
22321
+ "array": true
22322
+ },
22323
+ "inapps": {
22324
+ "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Inapp",
22325
+ "array": true
22326
+ },
22327
+ "autopushes": {
22328
+ "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Autopush",
22329
+ "array": true
22330
+ },
22331
+ "filters": {
22332
+ "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Filter",
22333
+ "array": true
22334
+ }
22335
+ }
22336
+ },
22249
22337
  "pushwoosh.rpc_v2.test_devices.TestDevicesService": {
22250
22338
  "type": "S",
22251
22339
  "key": "testDevices",
@@ -22513,6 +22601,12 @@ export const data = {
22513
22601
  "response": "pushwoosh.rpc_v2.vouchers.ExportVouchersResponse",
22514
22602
  "method": "post",
22515
22603
  "path": "/api/vouchers/export"
22604
+ },
22605
+ "GetPoolStats": {
22606
+ "request": "pushwoosh.rpc_v2.vouchers.GetPoolStatsRequest",
22607
+ "response": "pushwoosh.rpc_v2.vouchers.GetPoolStatsResponse",
22608
+ "method": "post",
22609
+ "path": "/api/vouchers/getPoolStats"
22516
22610
  }
22517
22611
  }
22518
22612
  },
@@ -22597,6 +22691,12 @@ export const data = {
22597
22691
  },
22598
22692
  "createdAt": {
22599
22693
  "type": "Date"
22694
+ },
22695
+ "totalVouchers": {
22696
+ "type": "number"
22697
+ },
22698
+ "freeVouchers": {
22699
+ "type": "number"
22600
22700
  }
22601
22701
  }
22602
22702
  },
@@ -22622,6 +22722,28 @@ export const data = {
22622
22722
  }
22623
22723
  }
22624
22724
  },
22725
+ "pushwoosh.rpc_v2.vouchers.GetPoolStatsRequest": {
22726
+ "type": "I",
22727
+ "fields": {
22728
+ "application": {
22729
+ "type": "string"
22730
+ },
22731
+ "pool": {
22732
+ "type": "string"
22733
+ }
22734
+ }
22735
+ },
22736
+ "pushwoosh.rpc_v2.vouchers.GetPoolStatsResponse": {
22737
+ "type": "I",
22738
+ "fields": {
22739
+ "totalVouchers": {
22740
+ "type": "number"
22741
+ },
22742
+ "freeVouchers": {
22743
+ "type": "number"
22744
+ }
22745
+ }
22746
+ },
22625
22747
  "pushwoosh.rpc_v2.whatsapp.WhatsAppService": {
22626
22748
  "type": "S",
22627
22749
  "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.738",
3
+ "version": "0.1.740",
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
@@ -4,6 +4,7 @@ export interface TagsService {
4
4
  Delete(request: DeleteTagRequest): Promise<DeleteTagResponse>;
5
5
  List(request: ListTagsRequest): Promise<ListTagsResponse>;
6
6
  GetTagValues(request: GetTagValuesRequest): Promise<GetTagValuesResponse>;
7
+ GetTagUsage(request: GetTagUsageRequest): Promise<GetTagUsageResponse>;
7
8
  }
8
9
  export type GetTagRequest = {
9
10
  name?: string;
@@ -67,3 +68,31 @@ export type GetTagValuesResponse_TagValue = {
67
68
  export type GetTagValuesResponse = {
68
69
  values: GetTagValuesResponse_TagValue[];
69
70
  };
71
+ export type GetTagUsageRequest = {
72
+ name?: string;
73
+ };
74
+ export type GetTagUsageResponse_Journey = {
75
+ uuid: string;
76
+ title: string;
77
+ status: number;
78
+ };
79
+ export type GetTagUsageResponse_Inapp = {
80
+ code: string;
81
+ name: string;
82
+ status: string;
83
+ };
84
+ export type GetTagUsageResponse_Autopush = {
85
+ code: string;
86
+ name: string;
87
+ status: boolean;
88
+ };
89
+ export type GetTagUsageResponse_Filter = {
90
+ code: string;
91
+ name: string;
92
+ };
93
+ export type GetTagUsageResponse = {
94
+ journeys: GetTagUsageResponse_Journey[];
95
+ inapps: GetTagUsageResponse_Inapp[];
96
+ autopushes: GetTagUsageResponse_Autopush[];
97
+ filters: GetTagUsageResponse_Filter[];
98
+ };
package/vouchers.d.ts CHANGED
@@ -3,6 +3,7 @@ export interface VouchersService {
3
3
  CreatePool(request: CreatePoolRequest): Promise<CreatePoolResponse>;
4
4
  AddVouchers(request: AddVouchersRequest): Promise<AddVouchersResponse>;
5
5
  ExportVouchers(request: ExportVouchersRequest): Promise<ExportVouchersResponse>;
6
+ GetPoolStats(request: GetPoolStatsRequest): Promise<GetPoolStatsResponse>;
6
7
  }
7
8
  export type CreatePoolRequest = {
8
9
  application?: string;
@@ -31,6 +32,8 @@ export type Pool = {
31
32
  name: string;
32
33
  expiry: Date;
33
34
  createdAt: Date;
35
+ totalVouchers: number;
36
+ freeVouchers: number;
34
37
  };
35
38
  export type ExportVouchersRequest = {
36
39
  application?: string;
@@ -40,3 +43,11 @@ export type ExportVouchersResponse = {
40
43
  url: string;
41
44
  filename: string;
42
45
  };
46
+ export type GetPoolStatsRequest = {
47
+ application?: string;
48
+ pool?: string;
49
+ };
50
+ export type GetPoolStatsResponse = {
51
+ totalVouchers: number;
52
+ freeVouchers: number;
53
+ };