@pushwoosh/rpc-v2-http-api-data 0.1.739 → 0.1.741

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
@@ -8631,6 +8631,9 @@ export const data = {
8631
8631
  "fields": {
8632
8632
  "filter": {
8633
8633
  "type": "string"
8634
+ },
8635
+ "onlyActiveCampaigns": {
8636
+ "type": "boolean"
8634
8637
  }
8635
8638
  }
8636
8639
  },
@@ -8649,8 +8652,13 @@ export const data = {
8649
8652
  "pointsType": {
8650
8653
  "type": "number",
8651
8654
  "array": true
8655
+ },
8656
+ "activationDate": {
8657
+ "type": "Date",
8658
+ "optional": true
8652
8659
  }
8653
- }
8660
+ },
8661
+ "oneofs": {}
8654
8662
  },
8655
8663
  "pushwoosh.rpc_v2.filters.GetFilterUsageResponse.OTM": {
8656
8664
  "type": "I",
@@ -8663,6 +8671,12 @@ export const data = {
8663
8671
  },
8664
8672
  "status": {
8665
8673
  "type": "number"
8674
+ },
8675
+ "sendDate": {
8676
+ "type": "Date"
8677
+ },
8678
+ "platform": {
8679
+ "type": "number"
8666
8680
  }
8667
8681
  }
8668
8682
  },
@@ -8677,8 +8691,13 @@ export const data = {
8677
8691
  },
8678
8692
  "status": {
8679
8693
  "type": "string"
8694
+ },
8695
+ "activationDate": {
8696
+ "type": "Date",
8697
+ "optional": true
8680
8698
  }
8681
- }
8699
+ },
8700
+ "oneofs": {}
8682
8701
  },
8683
8702
  "pushwoosh.rpc_v2.filters.GetFilterUsageResponse.Preset": {
8684
8703
  "type": "I",
@@ -8688,6 +8707,9 @@ export const data = {
8688
8707
  },
8689
8708
  "name": {
8690
8709
  "type": "string"
8710
+ },
8711
+ "creationDate": {
8712
+ "type": "Date"
8691
8713
  }
8692
8714
  }
8693
8715
  },
@@ -22601,6 +22623,12 @@ export const data = {
22601
22623
  "response": "pushwoosh.rpc_v2.vouchers.ExportVouchersResponse",
22602
22624
  "method": "post",
22603
22625
  "path": "/api/vouchers/export"
22626
+ },
22627
+ "GetPoolStats": {
22628
+ "request": "pushwoosh.rpc_v2.vouchers.GetPoolStatsRequest",
22629
+ "response": "pushwoosh.rpc_v2.vouchers.GetPoolStatsResponse",
22630
+ "method": "post",
22631
+ "path": "/api/vouchers/getPoolStats"
22604
22632
  }
22605
22633
  }
22606
22634
  },
@@ -22685,6 +22713,12 @@ export const data = {
22685
22713
  },
22686
22714
  "createdAt": {
22687
22715
  "type": "Date"
22716
+ },
22717
+ "totalVouchers": {
22718
+ "type": "number"
22719
+ },
22720
+ "freeVouchers": {
22721
+ "type": "number"
22688
22722
  }
22689
22723
  }
22690
22724
  },
@@ -22710,6 +22744,28 @@ export const data = {
22710
22744
  }
22711
22745
  }
22712
22746
  },
22747
+ "pushwoosh.rpc_v2.vouchers.GetPoolStatsRequest": {
22748
+ "type": "I",
22749
+ "fields": {
22750
+ "application": {
22751
+ "type": "string"
22752
+ },
22753
+ "pool": {
22754
+ "type": "string"
22755
+ }
22756
+ }
22757
+ },
22758
+ "pushwoosh.rpc_v2.vouchers.GetPoolStatsResponse": {
22759
+ "type": "I",
22760
+ "fields": {
22761
+ "totalVouchers": {
22762
+ "type": "number"
22763
+ },
22764
+ "freeVouchers": {
22765
+ "type": "number"
22766
+ }
22767
+ }
22768
+ },
22713
22769
  "pushwoosh.rpc_v2.whatsapp.WhatsAppService": {
22714
22770
  "type": "S",
22715
22771
  "key": "whatsApp",
package/filters.d.ts CHANGED
@@ -156,26 +156,32 @@ export type GetMatchedSegmentsResponse = {
156
156
  };
157
157
  export type GetFilterUsageRequest = {
158
158
  filter?: string;
159
+ onlyActiveCampaigns?: boolean;
159
160
  };
160
161
  export type GetFilterUsageResponse_Journey = {
161
162
  uuid: string;
162
163
  title: string;
163
164
  status: number;
164
165
  pointsType: number[];
166
+ activationDate?: Date;
165
167
  };
166
168
  export type GetFilterUsageResponse_OTM = {
167
169
  code: string;
168
170
  name: string;
169
171
  status: number;
172
+ sendDate: Date;
173
+ platform: number;
170
174
  };
171
175
  export type GetFilterUsageResponse_Inapp = {
172
176
  code: string;
173
177
  name: string;
174
178
  status: string;
179
+ activationDate?: Date;
175
180
  };
176
181
  export type GetFilterUsageResponse_Preset = {
177
182
  code: string;
178
183
  name: string;
184
+ creationDate: Date;
179
185
  };
180
186
  export type GetFilterUsageResponse = {
181
187
  journeys: GetFilterUsageResponse_Journey[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.739",
3
+ "version": "0.1.741",
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
@@ -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
+ };