vayu-ts 0.2.4 → 0.2.6

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.
Files changed (33) hide show
  1. package/dist/openapi-v2/apis/CustomersApi.d.ts +15 -9
  2. package/dist/openapi-v2/apis/CustomersApi.js +15 -9
  3. package/dist/openapi-v2/apis/EntitlementsApi.d.ts +6 -3
  4. package/dist/openapi-v2/apis/EntitlementsApi.js +6 -3
  5. package/dist/openapi-v2/apis/EventsApi.d.ts +8 -4
  6. package/dist/openapi-v2/apis/EventsApi.js +8 -4
  7. package/dist/openapi-v2/apis/InvoicesApi.d.ts +13 -7
  8. package/dist/openapi-v2/apis/InvoicesApi.js +13 -7
  9. package/dist/openapi-v2/apis/ProductsApi.d.ts +11 -6
  10. package/dist/openapi-v2/apis/ProductsApi.js +11 -6
  11. package/dist/openapi-v2/models/ObjectSerializer.d.ts +1 -2
  12. package/dist/openapi-v2/models/ObjectSerializer.js +2 -6
  13. package/dist/openapi-v2/models/Pricing.d.ts +2 -0
  14. package/dist/openapi-v2/models/Pricing.js +6 -0
  15. package/dist/openapi-v2/models/PricingCadence.d.ts +18 -0
  16. package/dist/openapi-v2/models/PricingCadence.js +22 -0
  17. package/dist/openapi-v2/models/all.d.ts +1 -2
  18. package/dist/openapi-v2/models/all.js +1 -2
  19. package/dist/openapi-v2/types/ObservableAPI.d.ts +106 -58
  20. package/dist/openapi-v2/types/ObservableAPI.js +106 -58
  21. package/dist/openapi-v2/types/PromiseAPI.d.ts +106 -58
  22. package/dist/openapi-v2/types/PromiseAPI.js +106 -58
  23. package/dist/sdk-v2/clients/index.d.ts +1 -0
  24. package/dist/sdk-v2/clients/index.js +1 -0
  25. package/dist/sdk-v2/index.d.ts +2 -1
  26. package/dist/sdk-v2/index.js +3 -0
  27. package/dist/sdk-v2/types/index.d.ts +2 -1
  28. package/dist/sdk-v2/types/index.js +3 -1
  29. package/package.json +1 -1
  30. package/dist/openapi-v2/models/Event.d.ts +0 -54
  31. package/dist/openapi-v2/models/Event.js +0 -85
  32. package/dist/openapi-v2/models/UpdateEventPayload.d.ts +0 -33
  33. package/dist/openapi-v2/models/UpdateEventPayload.js +0 -31
@@ -28,90 +28,102 @@ class PromiseCustomersApi {
28
28
  this.api = new ObservableAPI_2.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
29
29
  }
30
30
  /**
31
- * @param aPICreateCustomerPayload
31
+ * Create a new customer.
32
+ * @param aPICreateCustomerPayload - The details of the customer to create.
32
33
  */
33
34
  createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
34
35
  const result = this.api.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options);
35
36
  return result.toPromise();
36
37
  }
37
38
  /**
38
- * @param aPICreateCustomerPayload
39
+ * Create a new customer.
40
+ * @param aPICreateCustomerPayload - The details of the customer to create.
39
41
  */
40
42
  createCustomer(aPICreateCustomerPayload, _options) {
41
43
  const result = this.api.createCustomer(aPICreateCustomerPayload, _options);
42
44
  return result.toPromise();
43
45
  }
44
46
  /**
45
- * @param id
47
+ * Delete a customer by ID.
48
+ * @param id - The ID of the customer to delete.
46
49
  */
47
50
  deleteCustomerWithHttpInfo(id, _options) {
48
51
  const result = this.api.deleteCustomerWithHttpInfo(id, _options);
49
52
  return result.toPromise();
50
53
  }
51
54
  /**
52
- * @param id
55
+ * Delete a customer by ID.
56
+ * @param id - The ID of the customer to delete.
53
57
  */
54
58
  deleteCustomer(id, _options) {
55
59
  const result = this.api.deleteCustomer(id, _options);
56
60
  return result.toPromise();
57
61
  }
58
62
  /**
59
- * @param id
63
+ * Get a single customer by ID.
64
+ * @param id - The ID of the customer to fetch.
60
65
  */
61
66
  getCustomerWithHttpInfo(id, _options) {
62
67
  const result = this.api.getCustomerWithHttpInfo(id, _options);
63
68
  return result.toPromise();
64
69
  }
65
70
  /**
66
- * @param id
71
+ * Get a single customer by ID.
72
+ * @param id - The ID of the customer to fetch.
67
73
  */
68
74
  getCustomer(id, _options) {
69
75
  const result = this.api.getCustomer(id, _options);
70
76
  return result.toPromise();
71
77
  }
72
78
  /**
73
- * @param aPIQueryPayloadAPICustomer
79
+ * Query customers based on filters and pagination.
80
+ * @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
74
81
  */
75
82
  queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
76
83
  const result = this.api.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options);
77
84
  return result.toPromise();
78
85
  }
79
86
  /**
80
- * @param aPIQueryPayloadAPICustomer
87
+ * Query customers based on filters and pagination.
88
+ * @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
81
89
  */
82
90
  queryCustomers(aPIQueryPayloadAPICustomer, _options) {
83
91
  const result = this.api.queryCustomers(aPIQueryPayloadAPICustomer, _options);
84
92
  return result.toPromise();
85
93
  }
86
94
  /**
87
- * @param body
88
- * @param id
89
- * @param productId
95
+ * Revise a customer\'s product.
96
+ * @param body - The details of the revision to apply.
97
+ * @param id - The ID of the customer to revise.
98
+ * @param productId - The ID of the product to revise.
90
99
  */
91
100
  updateACustomersProductWithHttpInfo(body, id, productId, _options) {
92
101
  const result = this.api.updateACustomersProductWithHttpInfo(body, id, productId, _options);
93
102
  return result.toPromise();
94
103
  }
95
104
  /**
96
- * @param body
97
- * @param id
98
- * @param productId
105
+ * Revise a customer\'s product.
106
+ * @param body - The details of the revision to apply.
107
+ * @param id - The ID of the customer to revise.
108
+ * @param productId - The ID of the product to revise.
99
109
  */
100
110
  updateACustomersProduct(body, id, productId, _options) {
101
111
  const result = this.api.updateACustomersProduct(body, id, productId, _options);
102
112
  return result.toPromise();
103
113
  }
104
114
  /**
105
- * @param aPIUpdateCustomerPayload
106
- * @param id
115
+ * Update an existing customer.
116
+ * @param aPIUpdateCustomerPayload - The updated details of the customer.
117
+ * @param id - The ID of the customer to update.
107
118
  */
108
119
  updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
109
120
  const result = this.api.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options);
110
121
  return result.toPromise();
111
122
  }
112
123
  /**
113
- * @param aPIUpdateCustomerPayload
114
- * @param id
124
+ * Update an existing customer.
125
+ * @param aPIUpdateCustomerPayload - The updated details of the customer.
126
+ * @param id - The ID of the customer to update.
115
127
  */
116
128
  updateCustomer(aPIUpdateCustomerPayload, id, _options) {
117
129
  const result = this.api.updateCustomer(aPIUpdateCustomerPayload, id, _options);
@@ -125,42 +137,48 @@ class PromiseEntitlementsApi {
125
137
  this.api = new ObservableAPI_3.ObservableEntitlementsApi(configuration, requestFactory, responseProcessor);
126
138
  }
127
139
  /**
128
- * @param id
140
+ * Delete an entitlement by ID.
141
+ * @param id - The ID of the entitlement to delete.
129
142
  */
130
143
  deleteEntitlementWithHttpInfo(id, _options) {
131
144
  const result = this.api.deleteEntitlementWithHttpInfo(id, _options);
132
145
  return result.toPromise();
133
146
  }
134
147
  /**
135
- * @param id
148
+ * Delete an entitlement by ID.
149
+ * @param id - The ID of the entitlement to delete.
136
150
  */
137
151
  deleteEntitlement(id, _options) {
138
152
  const result = this.api.deleteEntitlement(id, _options);
139
153
  return result.toPromise();
140
154
  }
141
155
  /**
142
- * @param id
156
+ * Get a single entitlement by ID.
157
+ * @param id - The ID of the entitlement to fetch.
143
158
  */
144
159
  getEntitlementWithHttpInfo(id, _options) {
145
160
  const result = this.api.getEntitlementWithHttpInfo(id, _options);
146
161
  return result.toPromise();
147
162
  }
148
163
  /**
149
- * @param id
164
+ * Get a single entitlement by ID.
165
+ * @param id - The ID of the entitlement to fetch.
150
166
  */
151
167
  getEntitlement(id, _options) {
152
168
  const result = this.api.getEntitlement(id, _options);
153
169
  return result.toPromise();
154
170
  }
155
171
  /**
156
- * @param aPIQueryPayloadAPIEntitlement
172
+ * Query entitlements based on filters and pagination.
173
+ * @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
157
174
  */
158
175
  queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options) {
159
176
  const result = this.api.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options);
160
177
  return result.toPromise();
161
178
  }
162
179
  /**
163
- * @param aPIQueryPayloadAPIEntitlement
180
+ * Query entitlements based on filters and pagination.
181
+ * @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
164
182
  */
165
183
  queryEntitlements(aPIQueryPayloadAPIEntitlement, _options) {
166
184
  const result = this.api.queryEntitlements(aPIQueryPayloadAPIEntitlement, _options);
@@ -174,56 +192,64 @@ class PromiseEventsApi {
174
192
  this.api = new ObservableAPI_4.ObservableEventsApi(configuration, requestFactory, responseProcessor);
175
193
  }
176
194
  /**
177
- * @param id
195
+ * Delete an event by ID.
196
+ * @param id - The ID of the event to delete.
178
197
  */
179
198
  deleteEventWithHttpInfo(id, _options) {
180
199
  const result = this.api.deleteEventWithHttpInfo(id, _options);
181
200
  return result.toPromise();
182
201
  }
183
202
  /**
184
- * @param id
203
+ * Delete an event by ID.
204
+ * @param id - The ID of the event to delete.
185
205
  */
186
206
  deleteEvent(id, _options) {
187
207
  const result = this.api.deleteEvent(id, _options);
188
208
  return result.toPromise();
189
209
  }
190
210
  /**
191
- * @param id
211
+ * Get a single event by ID.
212
+ * @param id - The ID of the event to fetch.
192
213
  */
193
214
  getEventWithHttpInfo(id, _options) {
194
215
  const result = this.api.getEventWithHttpInfo(id, _options);
195
216
  return result.toPromise();
196
217
  }
197
218
  /**
198
- * @param id
219
+ * Get a single event by ID.
220
+ * @param id - The ID of the event to fetch.
199
221
  */
200
222
  getEvent(id, _options) {
201
223
  const result = this.api.getEvent(id, _options);
202
224
  return result.toPromise();
203
225
  }
204
226
  /**
205
- * @param aPIIngestEventPayload
227
+ * Ingest events to the system
228
+ * @param aPIIngestEventPayload - The events to ingest
206
229
  */
207
230
  ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
208
231
  const result = this.api.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options);
209
232
  return result.toPromise();
210
233
  }
211
234
  /**
212
- * @param aPIIngestEventPayload
235
+ * Ingest events to the system
236
+ * @param aPIIngestEventPayload - The events to ingest
213
237
  */
214
238
  ingestEventToTheSystem(aPIIngestEventPayload, _options) {
215
239
  const result = this.api.ingestEventToTheSystem(aPIIngestEventPayload, _options);
216
240
  return result.toPromise();
217
241
  }
218
242
  /**
219
- * @param aPIQueryPayloadAPIEvent
243
+ * Query events based on filters and pagination.
244
+ * @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
220
245
  */
221
246
  queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
222
247
  const result = this.api.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options);
223
248
  return result.toPromise();
224
249
  }
225
250
  /**
226
- * @param aPIQueryPayloadAPIEvent
251
+ * Query events based on filters and pagination.
252
+ * @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
227
253
  */
228
254
  queryEvents(aPIQueryPayloadAPIEvent, _options) {
229
255
  const result = this.api.queryEvents(aPIQueryPayloadAPIEvent, _options);
@@ -237,86 +263,98 @@ class PromiseInvoicesApi {
237
263
  this.api = new ObservableAPI_5.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
238
264
  }
239
265
  /**
240
- * @param id
266
+ * Calculate the total of an invoice.
267
+ * @param id - The ID of the invoice to calculate.
241
268
  */
242
269
  calculateInvoiceWithHttpInfo(id, _options) {
243
270
  const result = this.api.calculateInvoiceWithHttpInfo(id, _options);
244
271
  return result.toPromise();
245
272
  }
246
273
  /**
247
- * @param id
274
+ * Calculate the total of an invoice.
275
+ * @param id - The ID of the invoice to calculate.
248
276
  */
249
277
  calculateInvoice(id, _options) {
250
278
  const result = this.api.calculateInvoice(id, _options);
251
279
  return result.toPromise();
252
280
  }
253
281
  /**
254
- * @param aPICreateInvoicePayload
282
+ * Create a new invoice.
283
+ * @param aPICreateInvoicePayload - The details of the invoice to create.
255
284
  */
256
285
  createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
257
286
  const result = this.api.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options);
258
287
  return result.toPromise();
259
288
  }
260
289
  /**
261
- * @param aPICreateInvoicePayload
290
+ * Create a new invoice.
291
+ * @param aPICreateInvoicePayload - The details of the invoice to create.
262
292
  */
263
293
  createInvoice(aPICreateInvoicePayload, _options) {
264
294
  const result = this.api.createInvoice(aPICreateInvoicePayload, _options);
265
295
  return result.toPromise();
266
296
  }
267
297
  /**
268
- * @param id
298
+ * Delete an invoice by ID.
299
+ * @param id - The ID of the invoice to delete.
269
300
  */
270
301
  deleteInvoiceWithHttpInfo(id, _options) {
271
302
  const result = this.api.deleteInvoiceWithHttpInfo(id, _options);
272
303
  return result.toPromise();
273
304
  }
274
305
  /**
275
- * @param id
306
+ * Delete an invoice by ID.
307
+ * @param id - The ID of the invoice to delete.
276
308
  */
277
309
  deleteInvoice(id, _options) {
278
310
  const result = this.api.deleteInvoice(id, _options);
279
311
  return result.toPromise();
280
312
  }
281
313
  /**
282
- * @param id
314
+ * Get a single invoice by ID.
315
+ * @param id - The ID of the invoice to fetch.
283
316
  */
284
317
  getInvoiceWithHttpInfo(id, _options) {
285
318
  const result = this.api.getInvoiceWithHttpInfo(id, _options);
286
319
  return result.toPromise();
287
320
  }
288
321
  /**
289
- * @param id
322
+ * Get a single invoice by ID.
323
+ * @param id - The ID of the invoice to fetch.
290
324
  */
291
325
  getInvoice(id, _options) {
292
326
  const result = this.api.getInvoice(id, _options);
293
327
  return result.toPromise();
294
328
  }
295
329
  /**
296
- * @param aPIQueryPayloadAPIInvoice
330
+ * Query invoices based on filters and pagination.
331
+ * @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
297
332
  */
298
333
  queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
299
334
  const result = this.api.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options);
300
335
  return result.toPromise();
301
336
  }
302
337
  /**
303
- * @param aPIQueryPayloadAPIInvoice
338
+ * Query invoices based on filters and pagination.
339
+ * @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
304
340
  */
305
341
  queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
306
342
  const result = this.api.queryInvoices(aPIQueryPayloadAPIInvoice, _options);
307
343
  return result.toPromise();
308
344
  }
309
345
  /**
310
- * @param aPIUpdateInvoicePayload
311
- * @param id
346
+ * Update an existing invoice.
347
+ * @param aPIUpdateInvoicePayload - The updated details of the invoice.
348
+ * @param id - The ID of the invoice to update.
312
349
  */
313
350
  updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
314
351
  const result = this.api.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options);
315
352
  return result.toPromise();
316
353
  }
317
354
  /**
318
- * @param aPIUpdateInvoicePayload
319
- * @param id
355
+ * Update an existing invoice.
356
+ * @param aPIUpdateInvoicePayload - The updated details of the invoice.
357
+ * @param id - The ID of the invoice to update.
320
358
  */
321
359
  updateInvoice(aPIUpdateInvoicePayload, id, _options) {
322
360
  const result = this.api.updateInvoice(aPIUpdateInvoicePayload, id, _options);
@@ -330,72 +368,82 @@ class PromiseProductsApi {
330
368
  this.api = new ObservableAPI_6.ObservableProductsApi(configuration, requestFactory, responseProcessor);
331
369
  }
332
370
  /**
333
- * @param aPICreateProductPayload
371
+ * Create a new product.
372
+ * @param aPICreateProductPayload - The details of the product to create.
334
373
  */
335
374
  createProductWithHttpInfo(aPICreateProductPayload, _options) {
336
375
  const result = this.api.createProductWithHttpInfo(aPICreateProductPayload, _options);
337
376
  return result.toPromise();
338
377
  }
339
378
  /**
340
- * @param aPICreateProductPayload
379
+ * Create a new product.
380
+ * @param aPICreateProductPayload - The details of the product to create.
341
381
  */
342
382
  createProduct(aPICreateProductPayload, _options) {
343
383
  const result = this.api.createProduct(aPICreateProductPayload, _options);
344
384
  return result.toPromise();
345
385
  }
346
386
  /**
347
- * @param id
387
+ * Delete a product by ID.
388
+ * @param id - The ID of the product to delete.
348
389
  */
349
390
  deleteProductWithHttpInfo(id, _options) {
350
391
  const result = this.api.deleteProductWithHttpInfo(id, _options);
351
392
  return result.toPromise();
352
393
  }
353
394
  /**
354
- * @param id
395
+ * Delete a product by ID.
396
+ * @param id - The ID of the product to delete.
355
397
  */
356
398
  deleteProduct(id, _options) {
357
399
  const result = this.api.deleteProduct(id, _options);
358
400
  return result.toPromise();
359
401
  }
360
402
  /**
361
- * @param id
403
+ * Get a single product by ID.
404
+ * @param id - The ID of the product to fetch.
362
405
  */
363
406
  getProductWithHttpInfo(id, _options) {
364
407
  const result = this.api.getProductWithHttpInfo(id, _options);
365
408
  return result.toPromise();
366
409
  }
367
410
  /**
368
- * @param id
411
+ * Get a single product by ID.
412
+ * @param id - The ID of the product to fetch.
369
413
  */
370
414
  getProduct(id, _options) {
371
415
  const result = this.api.getProduct(id, _options);
372
416
  return result.toPromise();
373
417
  }
374
418
  /**
375
- * @param aPIQueryPayloadAPIProduct
419
+ * Query products based on filters and pagination.
420
+ * @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
376
421
  */
377
422
  queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
378
423
  const result = this.api.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options);
379
424
  return result.toPromise();
380
425
  }
381
426
  /**
382
- * @param aPIQueryPayloadAPIProduct
427
+ * Query products based on filters and pagination.
428
+ * @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
383
429
  */
384
430
  queryProducts(aPIQueryPayloadAPIProduct, _options) {
385
431
  const result = this.api.queryProducts(aPIQueryPayloadAPIProduct, _options);
386
432
  return result.toPromise();
387
433
  }
388
434
  /**
389
- * @param aPIUpdateProductPayload
390
- * @param id
435
+ * Update an existing product.
436
+ * @param aPIUpdateProductPayload - The updated details of the product.
437
+ * @param id - The ID of the product to update.
391
438
  */
392
439
  updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
393
440
  const result = this.api.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options);
394
441
  return result.toPromise();
395
442
  }
396
443
  /**
397
- * @param aPIUpdateProductPayload
398
- * @param id
444
+ * Update an existing product.
445
+ * @param aPIUpdateProductPayload - The updated details of the product.
446
+ * @param id - The ID of the product to update.
399
447
  */
400
448
  updateProduct(aPIUpdateProductPayload, id, _options) {
401
449
  const result = this.api.updateProduct(aPIUpdateProductPayload, id, _options);
@@ -2,3 +2,4 @@ export * from './CustomersClient';
2
2
  export * from './EventsClient';
3
3
  export * from './InvoicesClient';
4
4
  export * from './ProductsClient';
5
+ export * from './EntitlementsClient';
@@ -18,3 +18,4 @@ __exportStar(require("./CustomersClient"), exports);
18
18
  __exportStar(require("./EventsClient"), exports);
19
19
  __exportStar(require("./InvoicesClient"), exports);
20
20
  __exportStar(require("./ProductsClient"), exports);
21
+ __exportStar(require("./EntitlementsClient"), exports);
@@ -1,4 +1,4 @@
1
- import { CustomersClient, EventsClient, InvoicesClient, ProductsClient } from './clients';
1
+ import { CustomersClient, EntitlementsClient, EventsClient, InvoicesClient, ProductsClient } from './clients';
2
2
  export declare class Vayu {
3
3
  private configurationManager;
4
4
  constructor(apiKey: string, _baseUrl?: string);
@@ -7,5 +7,6 @@ export declare class Vayu {
7
7
  get customers(): CustomersClient;
8
8
  get products(): ProductsClient;
9
9
  get invoices(): InvoicesClient;
10
+ get entitlements(): EntitlementsClient;
10
11
  }
11
12
  export * from './types';
@@ -48,6 +48,9 @@ class Vayu {
48
48
  get invoices() {
49
49
  return new clients_1.InvoicesClient();
50
50
  }
51
+ get entitlements() {
52
+ return new clients_1.EntitlementsClient();
53
+ }
51
54
  }
52
55
  exports.Vayu = Vayu;
53
56
  __exportStar(require("./types"), exports);
@@ -2,5 +2,6 @@ export * from './Customers';
2
2
  export * from './Events';
3
3
  export * from './Invoices';
4
4
  export * from './Products';
5
- export { AggregationMethods, CriterionOperators, } from '../../openapi-v2';
5
+ export * from './Entitlements';
6
+ export { AggregationMethods, CriterionOperators, PricingCadence, } from '../../openapi-v2';
6
7
  export type { Aggregation, Criterion, Condition, CriterionValue, Pricing, PricingTiersInner as PricingTiers, } from '../../openapi-v2';
@@ -14,11 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.CriterionOperators = exports.AggregationMethods = void 0;
17
+ exports.PricingCadence = exports.CriterionOperators = exports.AggregationMethods = void 0;
18
18
  __exportStar(require("./Customers"), exports);
19
19
  __exportStar(require("./Events"), exports);
20
20
  __exportStar(require("./Invoices"), exports);
21
21
  __exportStar(require("./Products"), exports);
22
+ __exportStar(require("./Entitlements"), exports);
22
23
  var openapi_v2_1 = require("../../openapi-v2");
23
24
  Object.defineProperty(exports, "AggregationMethods", { enumerable: true, get: function () { return openapi_v2_1.AggregationMethods; } });
24
25
  Object.defineProperty(exports, "CriterionOperators", { enumerable: true, get: function () { return openapi_v2_1.CriterionOperators; } });
26
+ Object.defineProperty(exports, "PricingCadence", { enumerable: true, get: function () { return openapi_v2_1.PricingCadence; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vayu-ts",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Simple and easy to use typescript package for utilizing vayu billing system",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,54 +0,0 @@
1
- /**
2
- * 24k
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export declare class Event {
13
- /**
14
- * A class representation of the BSON ObjectId type.
15
- */
16
- 'id': string;
17
- 'createdAt': Date;
18
- 'updatedAt': Date;
19
- 'name': string;
20
- 'timestamp': number;
21
- /**
22
- * Construct a type with a set of properties K of type T
23
- */
24
- 'metadata': {
25
- [key: string]: any;
26
- };
27
- /**
28
- * A class representation of the BSON ObjectId type.
29
- */
30
- 'accountId': string;
31
- /**
32
- * A class representation of the BSON ObjectId type.
33
- */
34
- 'customerId': string;
35
- /**
36
- * A class representation of the BSON ObjectId type.
37
- */
38
- 'productId': string;
39
- 'ref': string;
40
- static readonly discriminator: string | undefined;
41
- static readonly attributeTypeMap: Array<{
42
- name: string;
43
- baseName: string;
44
- type: string;
45
- format: string;
46
- }>;
47
- static getAttributeTypeMap(): {
48
- name: string;
49
- baseName: string;
50
- type: string;
51
- format: string;
52
- }[];
53
- constructor();
54
- }
@@ -1,85 +0,0 @@
1
- "use strict";
2
- /**
3
- * 24k
4
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- *
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Event = void 0;
15
- class Event {
16
- static getAttributeTypeMap() {
17
- return Event.attributeTypeMap;
18
- }
19
- constructor() {
20
- }
21
- }
22
- exports.Event = Event;
23
- Event.discriminator = undefined;
24
- Event.attributeTypeMap = [
25
- {
26
- "name": "id",
27
- "baseName": "_id",
28
- "type": "string",
29
- "format": ""
30
- },
31
- {
32
- "name": "createdAt",
33
- "baseName": "createdAt",
34
- "type": "Date",
35
- "format": "date-time"
36
- },
37
- {
38
- "name": "updatedAt",
39
- "baseName": "updatedAt",
40
- "type": "Date",
41
- "format": "date-time"
42
- },
43
- {
44
- "name": "name",
45
- "baseName": "name",
46
- "type": "string",
47
- "format": ""
48
- },
49
- {
50
- "name": "timestamp",
51
- "baseName": "timestamp",
52
- "type": "number",
53
- "format": "double"
54
- },
55
- {
56
- "name": "metadata",
57
- "baseName": "metadata",
58
- "type": "{ [key: string]: any; }",
59
- "format": ""
60
- },
61
- {
62
- "name": "accountId",
63
- "baseName": "accountId",
64
- "type": "string",
65
- "format": ""
66
- },
67
- {
68
- "name": "customerId",
69
- "baseName": "customerId",
70
- "type": "string",
71
- "format": ""
72
- },
73
- {
74
- "name": "productId",
75
- "baseName": "productId",
76
- "type": "string",
77
- "format": ""
78
- },
79
- {
80
- "name": "ref",
81
- "baseName": "ref",
82
- "type": "string",
83
- "format": ""
84
- }
85
- ];