@pushwoosh/rpc-v2-http-api-data 0.1.579 → 0.1.581
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 +108 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/vouchers.d.ts +33 -0
- package/vouchers.js +2 -0
package/data.js
CHANGED
|
@@ -19831,6 +19831,114 @@ export const data = {
|
|
|
19831
19831
|
}
|
|
19832
19832
|
}
|
|
19833
19833
|
},
|
|
19834
|
+
"pushwoosh.rpc_v2.vouchers.VouchersService": {
|
|
19835
|
+
"type": "S",
|
|
19836
|
+
"key": "vouchers",
|
|
19837
|
+
"methods": {
|
|
19838
|
+
"GetPools": {
|
|
19839
|
+
"request": "pushwoosh.rpc_v2.vouchers.GetPoolsRequest",
|
|
19840
|
+
"response": "pushwoosh.rpc_v2.vouchers.GetPoolsResponse",
|
|
19841
|
+
"method": "get",
|
|
19842
|
+
"path": "/api/vouchers/pools"
|
|
19843
|
+
},
|
|
19844
|
+
"CreatePool": {
|
|
19845
|
+
"request": "pushwoosh.rpc_v2.vouchers.CreatePoolRequest",
|
|
19846
|
+
"response": "pushwoosh.rpc_v2.vouchers.CreatePoolResponse",
|
|
19847
|
+
"method": "post",
|
|
19848
|
+
"path": "/api/vouchers/pools"
|
|
19849
|
+
},
|
|
19850
|
+
"AddVouchers": {
|
|
19851
|
+
"request": "pushwoosh.rpc_v2.vouchers.AddVouchersRequest",
|
|
19852
|
+
"response": "pushwoosh.rpc_v2.vouchers.AddVouchersResponse",
|
|
19853
|
+
"method": "post",
|
|
19854
|
+
"path": "/api/vouchers"
|
|
19855
|
+
}
|
|
19856
|
+
}
|
|
19857
|
+
},
|
|
19858
|
+
"pushwoosh.rpc_v2.vouchers.CreatePoolRequest": {
|
|
19859
|
+
"type": "I",
|
|
19860
|
+
"fields": {
|
|
19861
|
+
"application": {
|
|
19862
|
+
"type": "string"
|
|
19863
|
+
},
|
|
19864
|
+
"name": {
|
|
19865
|
+
"type": "string"
|
|
19866
|
+
},
|
|
19867
|
+
"expiry": {
|
|
19868
|
+
"type": "Date"
|
|
19869
|
+
},
|
|
19870
|
+
"vouchers": {
|
|
19871
|
+
"type": "string",
|
|
19872
|
+
"array": true
|
|
19873
|
+
}
|
|
19874
|
+
}
|
|
19875
|
+
},
|
|
19876
|
+
"pushwoosh.rpc_v2.vouchers.CreatePoolResponse": {
|
|
19877
|
+
"type": "I",
|
|
19878
|
+
"fields": {}
|
|
19879
|
+
},
|
|
19880
|
+
"pushwoosh.rpc_v2.vouchers.AddVouchersRequest": {
|
|
19881
|
+
"type": "I",
|
|
19882
|
+
"fields": {
|
|
19883
|
+
"application": {
|
|
19884
|
+
"type": "string"
|
|
19885
|
+
},
|
|
19886
|
+
"pool": {
|
|
19887
|
+
"type": "string"
|
|
19888
|
+
},
|
|
19889
|
+
"vouchers": {
|
|
19890
|
+
"type": "string",
|
|
19891
|
+
"array": true
|
|
19892
|
+
}
|
|
19893
|
+
}
|
|
19894
|
+
},
|
|
19895
|
+
"pushwoosh.rpc_v2.vouchers.AddVouchersResponse": {
|
|
19896
|
+
"type": "I",
|
|
19897
|
+
"fields": {}
|
|
19898
|
+
},
|
|
19899
|
+
"pushwoosh.rpc_v2.vouchers.GetPoolsRequest": {
|
|
19900
|
+
"type": "I",
|
|
19901
|
+
"fields": {
|
|
19902
|
+
"application": {
|
|
19903
|
+
"type": "string"
|
|
19904
|
+
},
|
|
19905
|
+
"perPage": {
|
|
19906
|
+
"type": "number"
|
|
19907
|
+
},
|
|
19908
|
+
"page": {
|
|
19909
|
+
"type": "number"
|
|
19910
|
+
},
|
|
19911
|
+
"searchByName": {
|
|
19912
|
+
"type": "string"
|
|
19913
|
+
}
|
|
19914
|
+
}
|
|
19915
|
+
},
|
|
19916
|
+
"pushwoosh.rpc_v2.vouchers.GetPoolsResponse": {
|
|
19917
|
+
"type": "I",
|
|
19918
|
+
"fields": {
|
|
19919
|
+
"pools": {
|
|
19920
|
+
"type": "pushwoosh.rpc_v2.vouchers.Pool",
|
|
19921
|
+
"array": true
|
|
19922
|
+
},
|
|
19923
|
+
"total": {
|
|
19924
|
+
"type": "number"
|
|
19925
|
+
}
|
|
19926
|
+
}
|
|
19927
|
+
},
|
|
19928
|
+
"pushwoosh.rpc_v2.vouchers.Pool": {
|
|
19929
|
+
"type": "I",
|
|
19930
|
+
"fields": {
|
|
19931
|
+
"name": {
|
|
19932
|
+
"type": "string"
|
|
19933
|
+
},
|
|
19934
|
+
"expiry": {
|
|
19935
|
+
"type": "Date"
|
|
19936
|
+
},
|
|
19937
|
+
"createdAt": {
|
|
19938
|
+
"type": "Date"
|
|
19939
|
+
}
|
|
19940
|
+
}
|
|
19941
|
+
},
|
|
19834
19942
|
"pushwoosh.rpc_v2.whatsapp.WhatsAppService": {
|
|
19835
19943
|
"type": "S",
|
|
19836
19944
|
"key": "whatsApp",
|
package/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { StatisticsDashboardsWidgetsService as pushwoosh_rpc_v2_statistics_dashb
|
|
|
40
40
|
import { TagsService as pushwoosh_rpc_v2_tags_TagsService } from './tags';
|
|
41
41
|
import { TestDevicesService as pushwoosh_rpc_v2_test_devices_TestDevicesService } from './test_devices';
|
|
42
42
|
import { UsersService as pushwoosh_rpc_v2_users_UsersService } from './users';
|
|
43
|
+
import { VouchersService as pushwoosh_rpc_v2_vouchers_VouchersService } from './vouchers';
|
|
43
44
|
import { WhatsAppService as pushwoosh_rpc_v2_whatsapp_WhatsAppService } from './whatsapp';
|
|
44
45
|
import { WhatsAppPresetsService as pushwoosh_rpc_v2_whatsapp_presets_WhatsAppPresetsService } from './whatsapp_presets';
|
|
45
46
|
export type API = {
|
|
@@ -85,6 +86,7 @@ export type API = {
|
|
|
85
86
|
tags: pushwoosh_rpc_v2_tags_TagsService;
|
|
86
87
|
testDevices: pushwoosh_rpc_v2_test_devices_TestDevicesService;
|
|
87
88
|
users: pushwoosh_rpc_v2_users_UsersService;
|
|
89
|
+
vouchers: pushwoosh_rpc_v2_vouchers_VouchersService;
|
|
88
90
|
whatsApp: pushwoosh_rpc_v2_whatsapp_WhatsAppService;
|
|
89
91
|
whatsAppPresets: pushwoosh_rpc_v2_whatsapp_presets_WhatsAppPresetsService;
|
|
90
92
|
};
|
package/package.json
CHANGED
package/vouchers.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface VouchersService {
|
|
2
|
+
GetPools(request: GetPoolsRequest): Promise<GetPoolsResponse>;
|
|
3
|
+
CreatePool(request: CreatePoolRequest): Promise<CreatePoolResponse>;
|
|
4
|
+
AddVouchers(request: AddVouchersRequest): Promise<AddVouchersResponse>;
|
|
5
|
+
}
|
|
6
|
+
export type CreatePoolRequest = {
|
|
7
|
+
application?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
expiry?: Date;
|
|
10
|
+
vouchers?: string[];
|
|
11
|
+
};
|
|
12
|
+
export type CreatePoolResponse = {};
|
|
13
|
+
export type AddVouchersRequest = {
|
|
14
|
+
application?: string;
|
|
15
|
+
pool?: string;
|
|
16
|
+
vouchers?: string[];
|
|
17
|
+
};
|
|
18
|
+
export type AddVouchersResponse = {};
|
|
19
|
+
export type GetPoolsRequest = {
|
|
20
|
+
application?: string;
|
|
21
|
+
perPage?: number;
|
|
22
|
+
page?: number;
|
|
23
|
+
searchByName?: string;
|
|
24
|
+
};
|
|
25
|
+
export type GetPoolsResponse = {
|
|
26
|
+
pools: Pool[];
|
|
27
|
+
total: number;
|
|
28
|
+
};
|
|
29
|
+
export type Pool = {
|
|
30
|
+
name: string;
|
|
31
|
+
expiry: Date;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
};
|
package/vouchers.js
ADDED