@pushwoosh/rpc-v2-http-api-data 0.1.580 → 0.1.583

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
@@ -6947,6 +6947,9 @@ export const data = {
6947
6947
  },
6948
6948
  "totalWhatsapp": {
6949
6949
  "type": "number"
6950
+ },
6951
+ "totalLine": {
6952
+ "type": "number"
6950
6953
  }
6951
6954
  }
6952
6955
  },
@@ -19831,6 +19834,114 @@ export const data = {
19831
19834
  }
19832
19835
  }
19833
19836
  },
19837
+ "pushwoosh.rpc_v2.vouchers.VouchersService": {
19838
+ "type": "S",
19839
+ "key": "vouchers",
19840
+ "methods": {
19841
+ "GetPools": {
19842
+ "request": "pushwoosh.rpc_v2.vouchers.GetPoolsRequest",
19843
+ "response": "pushwoosh.rpc_v2.vouchers.GetPoolsResponse",
19844
+ "method": "get",
19845
+ "path": "/api/vouchers/pools"
19846
+ },
19847
+ "CreatePool": {
19848
+ "request": "pushwoosh.rpc_v2.vouchers.CreatePoolRequest",
19849
+ "response": "pushwoosh.rpc_v2.vouchers.CreatePoolResponse",
19850
+ "method": "post",
19851
+ "path": "/api/vouchers/pools"
19852
+ },
19853
+ "AddVouchers": {
19854
+ "request": "pushwoosh.rpc_v2.vouchers.AddVouchersRequest",
19855
+ "response": "pushwoosh.rpc_v2.vouchers.AddVouchersResponse",
19856
+ "method": "post",
19857
+ "path": "/api/vouchers"
19858
+ }
19859
+ }
19860
+ },
19861
+ "pushwoosh.rpc_v2.vouchers.CreatePoolRequest": {
19862
+ "type": "I",
19863
+ "fields": {
19864
+ "application": {
19865
+ "type": "string"
19866
+ },
19867
+ "name": {
19868
+ "type": "string"
19869
+ },
19870
+ "expiry": {
19871
+ "type": "Date"
19872
+ },
19873
+ "vouchers": {
19874
+ "type": "string",
19875
+ "array": true
19876
+ }
19877
+ }
19878
+ },
19879
+ "pushwoosh.rpc_v2.vouchers.CreatePoolResponse": {
19880
+ "type": "I",
19881
+ "fields": {}
19882
+ },
19883
+ "pushwoosh.rpc_v2.vouchers.AddVouchersRequest": {
19884
+ "type": "I",
19885
+ "fields": {
19886
+ "application": {
19887
+ "type": "string"
19888
+ },
19889
+ "pool": {
19890
+ "type": "string"
19891
+ },
19892
+ "vouchers": {
19893
+ "type": "string",
19894
+ "array": true
19895
+ }
19896
+ }
19897
+ },
19898
+ "pushwoosh.rpc_v2.vouchers.AddVouchersResponse": {
19899
+ "type": "I",
19900
+ "fields": {}
19901
+ },
19902
+ "pushwoosh.rpc_v2.vouchers.GetPoolsRequest": {
19903
+ "type": "I",
19904
+ "fields": {
19905
+ "application": {
19906
+ "type": "string"
19907
+ },
19908
+ "perPage": {
19909
+ "type": "number"
19910
+ },
19911
+ "page": {
19912
+ "type": "number"
19913
+ },
19914
+ "searchByName": {
19915
+ "type": "string"
19916
+ }
19917
+ }
19918
+ },
19919
+ "pushwoosh.rpc_v2.vouchers.GetPoolsResponse": {
19920
+ "type": "I",
19921
+ "fields": {
19922
+ "pools": {
19923
+ "type": "pushwoosh.rpc_v2.vouchers.Pool",
19924
+ "array": true
19925
+ },
19926
+ "total": {
19927
+ "type": "number"
19928
+ }
19929
+ }
19930
+ },
19931
+ "pushwoosh.rpc_v2.vouchers.Pool": {
19932
+ "type": "I",
19933
+ "fields": {
19934
+ "name": {
19935
+ "type": "string"
19936
+ },
19937
+ "expiry": {
19938
+ "type": "Date"
19939
+ },
19940
+ "createdAt": {
19941
+ "type": "Date"
19942
+ }
19943
+ }
19944
+ },
19834
19945
  "pushwoosh.rpc_v2.whatsapp.WhatsAppService": {
19835
19946
  "type": "S",
19836
19947
  "key": "whatsApp",
package/filters.d.ts CHANGED
@@ -36,6 +36,7 @@ export type Filter_Compiling = {
36
36
  totalEmail: number;
37
37
  totalSms: number;
38
38
  totalWhatsapp: number;
39
+ totalLine: number;
39
40
  };
40
41
  export type Filter_type_compiling = {
41
42
  type: 'compiling';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.580",
3
+ "version": "0.1.583",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
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
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};