@pushwoosh/rpc-v2-http-api-data 0.1.739 → 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 +34 -0
- package/package.json +1 -1
- package/vouchers.d.ts +11 -0
package/data.js
CHANGED
|
@@ -22601,6 +22601,12 @@ export const data = {
|
|
|
22601
22601
|
"response": "pushwoosh.rpc_v2.vouchers.ExportVouchersResponse",
|
|
22602
22602
|
"method": "post",
|
|
22603
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"
|
|
22604
22610
|
}
|
|
22605
22611
|
}
|
|
22606
22612
|
},
|
|
@@ -22685,6 +22691,12 @@ export const data = {
|
|
|
22685
22691
|
},
|
|
22686
22692
|
"createdAt": {
|
|
22687
22693
|
"type": "Date"
|
|
22694
|
+
},
|
|
22695
|
+
"totalVouchers": {
|
|
22696
|
+
"type": "number"
|
|
22697
|
+
},
|
|
22698
|
+
"freeVouchers": {
|
|
22699
|
+
"type": "number"
|
|
22688
22700
|
}
|
|
22689
22701
|
}
|
|
22690
22702
|
},
|
|
@@ -22710,6 +22722,28 @@ export const data = {
|
|
|
22710
22722
|
}
|
|
22711
22723
|
}
|
|
22712
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
|
+
},
|
|
22713
22747
|
"pushwoosh.rpc_v2.whatsapp.WhatsAppService": {
|
|
22714
22748
|
"type": "S",
|
|
22715
22749
|
"key": "whatsApp",
|
package/package.json
CHANGED
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
|
+
};
|