vayu-ts 0.2.1 → 0.2.4

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 (47) hide show
  1. package/dist/openapi-v2/apis/CustomersApi.d.ts +16 -0
  2. package/dist/openapi-v2/apis/CustomersApi.js +67 -0
  3. package/dist/openapi-v2/apis/EntitlementsApi.d.ts +49 -0
  4. package/dist/openapi-v2/apis/EntitlementsApi.js +176 -0
  5. package/dist/openapi-v2/apis/ProductsApi.d.ts +0 -14
  6. package/dist/openapi-v2/apis/ProductsApi.js +0 -64
  7. package/dist/openapi-v2/index.d.ts +1 -1
  8. package/dist/openapi-v2/index.js +2 -1
  9. package/dist/openapi-v2/models/APICreateProductPayload.d.ts +4 -0
  10. package/dist/openapi-v2/models/APICreateProductPayload.js +6 -0
  11. package/dist/openapi-v2/models/APIEntitlement.d.ts +56 -0
  12. package/dist/openapi-v2/models/APIEntitlement.js +79 -0
  13. package/dist/openapi-v2/models/APIProduct.d.ts +4 -5
  14. package/dist/openapi-v2/models/APIProduct.js +6 -6
  15. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.d.ts +43 -0
  16. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.js +49 -0
  17. package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +4 -0
  18. package/dist/openapi-v2/models/APIUpdateProductPayload.js +6 -0
  19. package/dist/openapi-v2/models/{ProductRevision.d.ts → EntitlementRevision.d.ts} +1 -1
  20. package/dist/openapi-v2/models/{ProductRevision.js → EntitlementRevision.js} +6 -6
  21. package/dist/openapi-v2/models/ObjectSerializer.d.ts +5 -2
  22. package/dist/openapi-v2/models/ObjectSerializer.js +15 -6
  23. package/dist/openapi-v2/models/PricingTiersInner.d.ts +1 -1
  24. package/dist/openapi-v2/models/QueryResultAPIEntitlement.d.ts +40 -0
  25. package/dist/openapi-v2/models/QueryResultAPIEntitlement.js +43 -0
  26. package/dist/openapi-v2/models/{ReviseProductPayload.d.ts → ReviseEntitlementPayload.d.ts} +1 -1
  27. package/dist/openapi-v2/models/{ReviseProductPayload.js → ReviseEntitlementPayload.js} +6 -6
  28. package/dist/openapi-v2/models/all.d.ts +5 -2
  29. package/dist/openapi-v2/models/all.js +5 -2
  30. package/dist/openapi-v2/types/ObservableAPI.d.ts +47 -11
  31. package/dist/openapi-v2/types/ObservableAPI.js +114 -28
  32. package/dist/openapi-v2/types/PromiseAPI.d.ts +45 -11
  33. package/dist/openapi-v2/types/PromiseAPI.js +73 -22
  34. package/dist/sdk-v2/clients/CustomersClient.d.ts +2 -1
  35. package/dist/sdk-v2/clients/CustomersClient.js +5 -0
  36. package/dist/sdk-v2/clients/EntitlementsClient.d.ts +8 -0
  37. package/dist/sdk-v2/clients/EntitlementsClient.js +35 -0
  38. package/dist/sdk-v2/clients/EventsClient.js +0 -6
  39. package/dist/sdk-v2/clients/ProductsClient.d.ts +1 -2
  40. package/dist/sdk-v2/clients/ProductsClient.js +0 -5
  41. package/dist/sdk-v2/index.js +1 -1
  42. package/dist/sdk-v2/types/Entitlements.d.ts +1 -0
  43. package/dist/sdk-v2/types/Entitlements.js +2 -0
  44. package/dist/sdk-v2/types/Products.d.ts +1 -1
  45. package/dist/sdk-v2/types/index.d.ts +2 -2
  46. package/dist/sdk-v2/types/index.js +2 -1
  47. package/package.json +1 -1
@@ -5,11 +5,13 @@ import { APICreateCustomerPayload } from '../models/APICreateCustomerPayload';
5
5
  import { APICreateInvoicePayload } from '../models/APICreateInvoicePayload';
6
6
  import { APICreateProductPayload } from '../models/APICreateProductPayload';
7
7
  import { APICustomer } from '../models/APICustomer';
8
+ import { APIEntitlement } from '../models/APIEntitlement';
8
9
  import { APIEvent } from '../models/APIEvent';
9
10
  import { APIIngestEventPayload } from '../models/APIIngestEventPayload';
10
11
  import { APIInvoice } from '../models/APIInvoice';
11
12
  import { APIProduct } from '../models/APIProduct';
12
13
  import { APIQueryPayloadAPICustomer } from '../models/APIQueryPayloadAPICustomer';
14
+ import { APIQueryPayloadAPIEntitlement } from '../models/APIQueryPayloadAPIEntitlement';
13
15
  import { APIQueryPayloadAPIEvent } from '../models/APIQueryPayloadAPIEvent';
14
16
  import { APIQueryPayloadAPIInvoice } from '../models/APIQueryPayloadAPIInvoice';
15
17
  import { APIQueryPayloadAPIProduct } from '../models/APIQueryPayloadAPIProduct';
@@ -20,10 +22,11 @@ import { IngestEventToTheSystem201Response } from '../models/IngestEventToTheSys
20
22
  import { Login200Response } from '../models/Login200Response';
21
23
  import { LoginRequest } from '../models/LoginRequest';
22
24
  import { QueryResultAPICustomer } from '../models/QueryResultAPICustomer';
25
+ import { QueryResultAPIEntitlement } from '../models/QueryResultAPIEntitlement';
23
26
  import { QueryResultAPIEvent } from '../models/QueryResultAPIEvent';
24
27
  import { QueryResultAPIInvoice } from '../models/QueryResultAPIInvoice';
25
28
  import { QueryResultAPIProduct } from '../models/QueryResultAPIProduct';
26
- import { ReviseProductPayload } from '../models/ReviseProductPayload';
29
+ import { ReviseEntitlementPayload } from '../models/ReviseEntitlementPayload';
27
30
  import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor } from "../apis/AuthenticationApi";
28
31
  export declare class ObservableAuthenticationApi {
29
32
  private requestFactory;
@@ -77,6 +80,18 @@ export declare class ObservableCustomersApi {
77
80
  * @param aPIQueryPayloadAPICustomer
78
81
  */
79
82
  queryCustomers(aPIQueryPayloadAPICustomer: APIQueryPayloadAPICustomer, _options?: Configuration): Observable<QueryResultAPICustomer>;
83
+ /**
84
+ * @param body
85
+ * @param id
86
+ * @param productId
87
+ */
88
+ updateACustomersProductWithHttpInfo(body: ReviseEntitlementPayload, id: string, productId: string, _options?: Configuration): Observable<HttpInfo<APIEntitlement>>;
89
+ /**
90
+ * @param body
91
+ * @param id
92
+ * @param productId
93
+ */
94
+ updateACustomersProduct(body: ReviseEntitlementPayload, id: string, productId: string, _options?: Configuration): Observable<APIEntitlement>;
80
95
  /**
81
96
  * @param aPIUpdateCustomerPayload
82
97
  * @param id
@@ -88,6 +103,37 @@ export declare class ObservableCustomersApi {
88
103
  */
89
104
  updateCustomer(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Observable<APICustomer>;
90
105
  }
106
+ import { EntitlementsApiRequestFactory, EntitlementsApiResponseProcessor } from "../apis/EntitlementsApi";
107
+ export declare class ObservableEntitlementsApi {
108
+ private requestFactory;
109
+ private responseProcessor;
110
+ private configuration;
111
+ constructor(configuration: Configuration, requestFactory?: EntitlementsApiRequestFactory, responseProcessor?: EntitlementsApiResponseProcessor);
112
+ /**
113
+ * @param id
114
+ */
115
+ deleteEntitlementWithHttpInfo(id: string, _options?: Configuration): Observable<HttpInfo<void>>;
116
+ /**
117
+ * @param id
118
+ */
119
+ deleteEntitlement(id: string, _options?: Configuration): Observable<void>;
120
+ /**
121
+ * @param id
122
+ */
123
+ getEntitlementWithHttpInfo(id: string, _options?: Configuration): Observable<HttpInfo<APIEntitlement>>;
124
+ /**
125
+ * @param id
126
+ */
127
+ getEntitlement(id: string, _options?: Configuration): Observable<APIEntitlement>;
128
+ /**
129
+ * @param aPIQueryPayloadAPIEntitlement
130
+ */
131
+ queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement: APIQueryPayloadAPIEntitlement, _options?: Configuration): Observable<HttpInfo<QueryResultAPIEntitlement>>;
132
+ /**
133
+ * @param aPIQueryPayloadAPIEntitlement
134
+ */
135
+ queryEntitlements(aPIQueryPayloadAPIEntitlement: APIQueryPayloadAPIEntitlement, _options?: Configuration): Observable<QueryResultAPIEntitlement>;
136
+ }
91
137
  import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
92
138
  export declare class ObservableEventsApi {
93
139
  private requestFactory;
@@ -222,16 +268,6 @@ export declare class ObservableProductsApi {
222
268
  * @param aPIQueryPayloadAPIProduct
223
269
  */
224
270
  queryProducts(aPIQueryPayloadAPIProduct: APIQueryPayloadAPIProduct, _options?: Configuration): Observable<QueryResultAPIProduct>;
225
- /**
226
- * @param body
227
- * @param id
228
- */
229
- reviseAProductWithHttpInfo(body: ReviseProductPayload, id: string, _options?: Configuration): Observable<HttpInfo<APIProduct>>;
230
- /**
231
- * @param body
232
- * @param id
233
- */
234
- reviseAProduct(body: ReviseProductPayload, id: string, _options?: Configuration): Observable<APIProduct>;
235
271
  /**
236
272
  * @param aPIUpdateProductPayload
237
273
  * @param id
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObservableProductsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableCustomersApi = exports.ObservableAuthenticationApi = void 0;
3
+ exports.ObservableProductsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableEntitlementsApi = exports.ObservableCustomersApi = exports.ObservableAuthenticationApi = void 0;
4
4
  const rxjsStub_1 = require("../rxjsStub");
5
5
  const rxjsStub_2 = require("../rxjsStub");
6
6
  const AuthenticationApi_1 = require("../apis/AuthenticationApi");
@@ -144,6 +144,35 @@ class ObservableCustomersApi {
144
144
  queryCustomers(aPIQueryPayloadAPICustomer, _options) {
145
145
  return this.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
146
146
  }
147
+ /**
148
+ * @param body
149
+ * @param id
150
+ * @param productId
151
+ */
152
+ updateACustomersProductWithHttpInfo(body, id, productId, _options) {
153
+ const requestContextPromise = this.requestFactory.updateACustomersProduct(body, id, productId, _options);
154
+ // build promise chain
155
+ let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
156
+ for (let middleware of this.configuration.middleware) {
157
+ middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
158
+ }
159
+ return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
160
+ pipe((0, rxjsStub_2.mergeMap)((response) => {
161
+ let middlewarePostObservable = (0, rxjsStub_1.of)(response);
162
+ for (let middleware of this.configuration.middleware) {
163
+ middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
164
+ }
165
+ return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateACustomersProductWithHttpInfo(rsp)));
166
+ }));
167
+ }
168
+ /**
169
+ * @param body
170
+ * @param id
171
+ * @param productId
172
+ */
173
+ updateACustomersProduct(body, id, productId, _options) {
174
+ return this.updateACustomersProductWithHttpInfo(body, id, productId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
175
+ }
147
176
  /**
148
177
  * @param aPIUpdateCustomerPayload
149
178
  * @param id
@@ -173,6 +202,90 @@ class ObservableCustomersApi {
173
202
  }
174
203
  }
175
204
  exports.ObservableCustomersApi = ObservableCustomersApi;
205
+ const EntitlementsApi_1 = require("../apis/EntitlementsApi");
206
+ class ObservableEntitlementsApi {
207
+ constructor(configuration, requestFactory, responseProcessor) {
208
+ this.configuration = configuration;
209
+ this.requestFactory = requestFactory || new EntitlementsApi_1.EntitlementsApiRequestFactory(configuration);
210
+ this.responseProcessor = responseProcessor || new EntitlementsApi_1.EntitlementsApiResponseProcessor();
211
+ }
212
+ /**
213
+ * @param id
214
+ */
215
+ deleteEntitlementWithHttpInfo(id, _options) {
216
+ const requestContextPromise = this.requestFactory.deleteEntitlement(id, _options);
217
+ // build promise chain
218
+ let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
219
+ for (let middleware of this.configuration.middleware) {
220
+ middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
221
+ }
222
+ return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
223
+ pipe((0, rxjsStub_2.mergeMap)((response) => {
224
+ let middlewarePostObservable = (0, rxjsStub_1.of)(response);
225
+ for (let middleware of this.configuration.middleware) {
226
+ middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
227
+ }
228
+ return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEntitlementWithHttpInfo(rsp)));
229
+ }));
230
+ }
231
+ /**
232
+ * @param id
233
+ */
234
+ deleteEntitlement(id, _options) {
235
+ return this.deleteEntitlementWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
236
+ }
237
+ /**
238
+ * @param id
239
+ */
240
+ getEntitlementWithHttpInfo(id, _options) {
241
+ const requestContextPromise = this.requestFactory.getEntitlement(id, _options);
242
+ // build promise chain
243
+ let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
244
+ for (let middleware of this.configuration.middleware) {
245
+ middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
246
+ }
247
+ return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
248
+ pipe((0, rxjsStub_2.mergeMap)((response) => {
249
+ let middlewarePostObservable = (0, rxjsStub_1.of)(response);
250
+ for (let middleware of this.configuration.middleware) {
251
+ middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
252
+ }
253
+ return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEntitlementWithHttpInfo(rsp)));
254
+ }));
255
+ }
256
+ /**
257
+ * @param id
258
+ */
259
+ getEntitlement(id, _options) {
260
+ return this.getEntitlementWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
261
+ }
262
+ /**
263
+ * @param aPIQueryPayloadAPIEntitlement
264
+ */
265
+ queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options) {
266
+ const requestContextPromise = this.requestFactory.queryEntitlements(aPIQueryPayloadAPIEntitlement, _options);
267
+ // build promise chain
268
+ let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
269
+ for (let middleware of this.configuration.middleware) {
270
+ middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
271
+ }
272
+ return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
273
+ pipe((0, rxjsStub_2.mergeMap)((response) => {
274
+ let middlewarePostObservable = (0, rxjsStub_1.of)(response);
275
+ for (let middleware of this.configuration.middleware) {
276
+ middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
277
+ }
278
+ return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryEntitlementsWithHttpInfo(rsp)));
279
+ }));
280
+ }
281
+ /**
282
+ * @param aPIQueryPayloadAPIEntitlement
283
+ */
284
+ queryEntitlements(aPIQueryPayloadAPIEntitlement, _options) {
285
+ return this.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
286
+ }
287
+ }
288
+ exports.ObservableEntitlementsApi = ObservableEntitlementsApi;
176
289
  const EventsApi_1 = require("../apis/EventsApi");
177
290
  class ObservableEventsApi {
178
291
  constructor(configuration, requestFactory, responseProcessor) {
@@ -550,33 +663,6 @@ class ObservableProductsApi {
550
663
  queryProducts(aPIQueryPayloadAPIProduct, _options) {
551
664
  return this.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
552
665
  }
553
- /**
554
- * @param body
555
- * @param id
556
- */
557
- reviseAProductWithHttpInfo(body, id, _options) {
558
- const requestContextPromise = this.requestFactory.reviseAProduct(body, id, _options);
559
- // build promise chain
560
- let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
561
- for (let middleware of this.configuration.middleware) {
562
- middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
563
- }
564
- return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
565
- pipe((0, rxjsStub_2.mergeMap)((response) => {
566
- let middlewarePostObservable = (0, rxjsStub_1.of)(response);
567
- for (let middleware of this.configuration.middleware) {
568
- middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
569
- }
570
- return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.reviseAProductWithHttpInfo(rsp)));
571
- }));
572
- }
573
- /**
574
- * @param body
575
- * @param id
576
- */
577
- reviseAProduct(body, id, _options) {
578
- return this.reviseAProductWithHttpInfo(body, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
579
- }
580
666
  /**
581
667
  * @param aPIUpdateProductPayload
582
668
  * @param id
@@ -4,11 +4,13 @@ import { APICreateCustomerPayload } from '../models/APICreateCustomerPayload';
4
4
  import { APICreateInvoicePayload } from '../models/APICreateInvoicePayload';
5
5
  import { APICreateProductPayload } from '../models/APICreateProductPayload';
6
6
  import { APICustomer } from '../models/APICustomer';
7
+ import { APIEntitlement } from '../models/APIEntitlement';
7
8
  import { APIEvent } from '../models/APIEvent';
8
9
  import { APIIngestEventPayload } from '../models/APIIngestEventPayload';
9
10
  import { APIInvoice } from '../models/APIInvoice';
10
11
  import { APIProduct } from '../models/APIProduct';
11
12
  import { APIQueryPayloadAPICustomer } from '../models/APIQueryPayloadAPICustomer';
13
+ import { APIQueryPayloadAPIEntitlement } from '../models/APIQueryPayloadAPIEntitlement';
12
14
  import { APIQueryPayloadAPIEvent } from '../models/APIQueryPayloadAPIEvent';
13
15
  import { APIQueryPayloadAPIInvoice } from '../models/APIQueryPayloadAPIInvoice';
14
16
  import { APIQueryPayloadAPIProduct } from '../models/APIQueryPayloadAPIProduct';
@@ -19,10 +21,11 @@ import { IngestEventToTheSystem201Response } from '../models/IngestEventToTheSys
19
21
  import { Login200Response } from '../models/Login200Response';
20
22
  import { LoginRequest } from '../models/LoginRequest';
21
23
  import { QueryResultAPICustomer } from '../models/QueryResultAPICustomer';
24
+ import { QueryResultAPIEntitlement } from '../models/QueryResultAPIEntitlement';
22
25
  import { QueryResultAPIEvent } from '../models/QueryResultAPIEvent';
23
26
  import { QueryResultAPIInvoice } from '../models/QueryResultAPIInvoice';
24
27
  import { QueryResultAPIProduct } from '../models/QueryResultAPIProduct';
25
- import { ReviseProductPayload } from '../models/ReviseProductPayload';
28
+ import { ReviseEntitlementPayload } from '../models/ReviseEntitlementPayload';
26
29
  import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor } from "../apis/AuthenticationApi";
27
30
  export declare class PromiseAuthenticationApi {
28
31
  private api;
@@ -72,6 +75,18 @@ export declare class PromiseCustomersApi {
72
75
  * @param aPIQueryPayloadAPICustomer
73
76
  */
74
77
  queryCustomers(aPIQueryPayloadAPICustomer: APIQueryPayloadAPICustomer, _options?: Configuration): Promise<QueryResultAPICustomer>;
78
+ /**
79
+ * @param body
80
+ * @param id
81
+ * @param productId
82
+ */
83
+ updateACustomersProductWithHttpInfo(body: ReviseEntitlementPayload, id: string, productId: string, _options?: Configuration): Promise<HttpInfo<APIEntitlement>>;
84
+ /**
85
+ * @param body
86
+ * @param id
87
+ * @param productId
88
+ */
89
+ updateACustomersProduct(body: ReviseEntitlementPayload, id: string, productId: string, _options?: Configuration): Promise<APIEntitlement>;
75
90
  /**
76
91
  * @param aPIUpdateCustomerPayload
77
92
  * @param id
@@ -83,6 +98,35 @@ export declare class PromiseCustomersApi {
83
98
  */
84
99
  updateCustomer(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Promise<APICustomer>;
85
100
  }
101
+ import { EntitlementsApiRequestFactory, EntitlementsApiResponseProcessor } from "../apis/EntitlementsApi";
102
+ export declare class PromiseEntitlementsApi {
103
+ private api;
104
+ constructor(configuration: Configuration, requestFactory?: EntitlementsApiRequestFactory, responseProcessor?: EntitlementsApiResponseProcessor);
105
+ /**
106
+ * @param id
107
+ */
108
+ deleteEntitlementWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
109
+ /**
110
+ * @param id
111
+ */
112
+ deleteEntitlement(id: string, _options?: Configuration): Promise<void>;
113
+ /**
114
+ * @param id
115
+ */
116
+ getEntitlementWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIEntitlement>>;
117
+ /**
118
+ * @param id
119
+ */
120
+ getEntitlement(id: string, _options?: Configuration): Promise<APIEntitlement>;
121
+ /**
122
+ * @param aPIQueryPayloadAPIEntitlement
123
+ */
124
+ queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement: APIQueryPayloadAPIEntitlement, _options?: Configuration): Promise<HttpInfo<QueryResultAPIEntitlement>>;
125
+ /**
126
+ * @param aPIQueryPayloadAPIEntitlement
127
+ */
128
+ queryEntitlements(aPIQueryPayloadAPIEntitlement: APIQueryPayloadAPIEntitlement, _options?: Configuration): Promise<QueryResultAPIEntitlement>;
129
+ }
86
130
  import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
87
131
  export declare class PromiseEventsApi {
88
132
  private api;
@@ -211,16 +255,6 @@ export declare class PromiseProductsApi {
211
255
  * @param aPIQueryPayloadAPIProduct
212
256
  */
213
257
  queryProducts(aPIQueryPayloadAPIProduct: APIQueryPayloadAPIProduct, _options?: Configuration): Promise<QueryResultAPIProduct>;
214
- /**
215
- * @param body
216
- * @param id
217
- */
218
- reviseAProductWithHttpInfo(body: ReviseProductPayload, id: string, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
219
- /**
220
- * @param body
221
- * @param id
222
- */
223
- reviseAProduct(body: ReviseProductPayload, id: string, _options?: Configuration): Promise<APIProduct>;
224
258
  /**
225
259
  * @param aPIUpdateProductPayload
226
260
  * @param id
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PromiseProductsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseAuthenticationApi = void 0;
3
+ exports.PromiseProductsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseEntitlementsApi = exports.PromiseCustomersApi = exports.PromiseAuthenticationApi = void 0;
4
4
  const ObservableAPI_1 = require("./ObservableAPI");
5
5
  class PromiseAuthenticationApi {
6
6
  constructor(configuration, requestFactory, responseProcessor) {
@@ -83,6 +83,24 @@ class PromiseCustomersApi {
83
83
  const result = this.api.queryCustomers(aPIQueryPayloadAPICustomer, _options);
84
84
  return result.toPromise();
85
85
  }
86
+ /**
87
+ * @param body
88
+ * @param id
89
+ * @param productId
90
+ */
91
+ updateACustomersProductWithHttpInfo(body, id, productId, _options) {
92
+ const result = this.api.updateACustomersProductWithHttpInfo(body, id, productId, _options);
93
+ return result.toPromise();
94
+ }
95
+ /**
96
+ * @param body
97
+ * @param id
98
+ * @param productId
99
+ */
100
+ updateACustomersProduct(body, id, productId, _options) {
101
+ const result = this.api.updateACustomersProduct(body, id, productId, _options);
102
+ return result.toPromise();
103
+ }
86
104
  /**
87
105
  * @param aPIUpdateCustomerPayload
88
106
  * @param id
@@ -102,9 +120,58 @@ class PromiseCustomersApi {
102
120
  }
103
121
  exports.PromiseCustomersApi = PromiseCustomersApi;
104
122
  const ObservableAPI_3 = require("./ObservableAPI");
123
+ class PromiseEntitlementsApi {
124
+ constructor(configuration, requestFactory, responseProcessor) {
125
+ this.api = new ObservableAPI_3.ObservableEntitlementsApi(configuration, requestFactory, responseProcessor);
126
+ }
127
+ /**
128
+ * @param id
129
+ */
130
+ deleteEntitlementWithHttpInfo(id, _options) {
131
+ const result = this.api.deleteEntitlementWithHttpInfo(id, _options);
132
+ return result.toPromise();
133
+ }
134
+ /**
135
+ * @param id
136
+ */
137
+ deleteEntitlement(id, _options) {
138
+ const result = this.api.deleteEntitlement(id, _options);
139
+ return result.toPromise();
140
+ }
141
+ /**
142
+ * @param id
143
+ */
144
+ getEntitlementWithHttpInfo(id, _options) {
145
+ const result = this.api.getEntitlementWithHttpInfo(id, _options);
146
+ return result.toPromise();
147
+ }
148
+ /**
149
+ * @param id
150
+ */
151
+ getEntitlement(id, _options) {
152
+ const result = this.api.getEntitlement(id, _options);
153
+ return result.toPromise();
154
+ }
155
+ /**
156
+ * @param aPIQueryPayloadAPIEntitlement
157
+ */
158
+ queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options) {
159
+ const result = this.api.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options);
160
+ return result.toPromise();
161
+ }
162
+ /**
163
+ * @param aPIQueryPayloadAPIEntitlement
164
+ */
165
+ queryEntitlements(aPIQueryPayloadAPIEntitlement, _options) {
166
+ const result = this.api.queryEntitlements(aPIQueryPayloadAPIEntitlement, _options);
167
+ return result.toPromise();
168
+ }
169
+ }
170
+ exports.PromiseEntitlementsApi = PromiseEntitlementsApi;
171
+ const ObservableAPI_4 = require("./ObservableAPI");
105
172
  class PromiseEventsApi {
106
173
  constructor(configuration, requestFactory, responseProcessor) {
107
- this.api = new ObservableAPI_3.ObservableEventsApi(configuration, requestFactory, responseProcessor);
174
+ this.api = new ObservableAPI_4.ObservableEventsApi(configuration, requestFactory, responseProcessor);
108
175
  }
109
176
  /**
110
177
  * @param id
@@ -164,10 +231,10 @@ class PromiseEventsApi {
164
231
  }
165
232
  }
166
233
  exports.PromiseEventsApi = PromiseEventsApi;
167
- const ObservableAPI_4 = require("./ObservableAPI");
234
+ const ObservableAPI_5 = require("./ObservableAPI");
168
235
  class PromiseInvoicesApi {
169
236
  constructor(configuration, requestFactory, responseProcessor) {
170
- this.api = new ObservableAPI_4.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
237
+ this.api = new ObservableAPI_5.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
171
238
  }
172
239
  /**
173
240
  * @param id
@@ -257,10 +324,10 @@ class PromiseInvoicesApi {
257
324
  }
258
325
  }
259
326
  exports.PromiseInvoicesApi = PromiseInvoicesApi;
260
- const ObservableAPI_5 = require("./ObservableAPI");
327
+ const ObservableAPI_6 = require("./ObservableAPI");
261
328
  class PromiseProductsApi {
262
329
  constructor(configuration, requestFactory, responseProcessor) {
263
- this.api = new ObservableAPI_5.ObservableProductsApi(configuration, requestFactory, responseProcessor);
330
+ this.api = new ObservableAPI_6.ObservableProductsApi(configuration, requestFactory, responseProcessor);
264
331
  }
265
332
  /**
266
333
  * @param aPICreateProductPayload
@@ -318,22 +385,6 @@ class PromiseProductsApi {
318
385
  const result = this.api.queryProducts(aPIQueryPayloadAPIProduct, _options);
319
386
  return result.toPromise();
320
387
  }
321
- /**
322
- * @param body
323
- * @param id
324
- */
325
- reviseAProductWithHttpInfo(body, id, _options) {
326
- const result = this.api.reviseAProductWithHttpInfo(body, id, _options);
327
- return result.toPromise();
328
- }
329
- /**
330
- * @param body
331
- * @param id
332
- */
333
- reviseAProduct(body, id, _options) {
334
- const result = this.api.reviseAProduct(body, id, _options);
335
- return result.toPromise();
336
- }
337
388
  /**
338
389
  * @param aPIUpdateProductPayload
339
390
  * @param id
@@ -1,4 +1,4 @@
1
- import type { APIQueryPayloadAPICustomer, APICreateCustomerPayload, APIUpdateCustomerPayload } from '../../openapi-v2';
1
+ import type { APIQueryPayloadAPICustomer, APICreateCustomerPayload, APIUpdateCustomerPayload, ReviseEntitlementPayload } from '../../openapi-v2';
2
2
  export declare class CustomersClient {
3
3
  private client;
4
4
  constructor();
@@ -7,4 +7,5 @@ export declare class CustomersClient {
7
7
  update(id: string, payload: APIUpdateCustomerPayload): Promise<import("../../openapi-v2").APICustomer>;
8
8
  delete(id: string): Promise<void>;
9
9
  query(payload: APIQueryPayloadAPICustomer): Promise<import("../../openapi-v2").QueryResultAPICustomer>;
10
+ revise(id: string, productId: string, payload: ReviseEntitlementPayload): Promise<import("../../openapi-v2").APIEntitlement>;
10
11
  }
@@ -41,5 +41,10 @@ class CustomersClient {
41
41
  return this.client.queryCustomers(payload);
42
42
  });
43
43
  }
44
+ revise(id, productId, payload) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return this.client.updateACustomersProduct(payload, id, productId);
47
+ });
48
+ }
44
49
  }
45
50
  exports.CustomersClient = CustomersClient;
@@ -0,0 +1,8 @@
1
+ import type { APIQueryPayloadAPIEntitlement } from '../../openapi-v2';
2
+ export declare class EntitlementsClient {
3
+ private client;
4
+ constructor();
5
+ get(id: string): Promise<import("../../openapi-v2").APIEntitlement>;
6
+ delete(id: string): Promise<void>;
7
+ query(query: APIQueryPayloadAPIEntitlement): Promise<import("../../openapi-v2").QueryResultAPIEntitlement>;
8
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EntitlementsClient = void 0;
13
+ const openapi_v2_1 = require("../../openapi-v2");
14
+ const services_1 = require("../services");
15
+ class EntitlementsClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_v2_1.EntitlementsApi);
18
+ }
19
+ get(id) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ return this.client.getEntitlement(id);
22
+ });
23
+ }
24
+ delete(id) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.client.deleteEntitlement(id);
27
+ });
28
+ }
29
+ query(query) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return this.client.queryEntitlements(query);
32
+ });
33
+ }
34
+ }
35
+ exports.EntitlementsClient = EntitlementsClient;
@@ -21,12 +21,6 @@ class EventsClient {
21
21
  return this.client.getEvent(id);
22
22
  });
23
23
  }
24
- // async create(payload: CreateEventPayload) {
25
- // return this.client.createEvent(payload);
26
- // }
27
- // async update(id: string, payload: UpdateEventPayload) {
28
- // return this.client.updateEvent(payload, id);
29
- // }
30
24
  delete(id) {
31
25
  return __awaiter(this, void 0, void 0, function* () {
32
26
  return this.client.deleteEvent(id);
@@ -1,11 +1,10 @@
1
- import type { APIQueryPayloadAPIProduct, APICreateProductPayload, APIUpdateProductPayload, ReviseProductPayload } from '../../openapi-v2';
1
+ import type { APIQueryPayloadAPIProduct, APICreateProductPayload, APIUpdateProductPayload } from '../../openapi-v2';
2
2
  export declare class ProductsClient {
3
3
  private client;
4
4
  constructor();
5
5
  get(id: string): Promise<import("../../openapi-v2").APIProduct>;
6
6
  create(payload: APICreateProductPayload): Promise<import("../../openapi-v2").APIProduct>;
7
7
  update(id: string, payload: APIUpdateProductPayload): Promise<import("../../openapi-v2").APIProduct>;
8
- revise(id: string, payload: ReviseProductPayload): Promise<import("../../openapi-v2").APIProduct>;
9
8
  delete(id: string): Promise<void>;
10
9
  query(query: APIQueryPayloadAPIProduct): Promise<import("../../openapi-v2").QueryResultAPIProduct>;
11
10
  }
@@ -31,11 +31,6 @@ class ProductsClient {
31
31
  return this.client.updateProduct(payload, id);
32
32
  });
33
33
  }
34
- revise(id, payload) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- return this.client.reviseAProduct(payload, id);
37
- });
38
- }
39
34
  delete(id) {
40
35
  return __awaiter(this, void 0, void 0, function* () {
41
36
  return this.client.deleteProduct(id);
@@ -28,7 +28,7 @@ const clients_1 = require("./clients");
28
28
  const services_1 = require("./services");
29
29
  class Vayu {
30
30
  constructor(apiKey, _baseUrl) {
31
- const baseServer = services_1.ConfigurationService.generateServerConfiguration('http://connect.v2.dev.withvayu.com');
31
+ const baseServer = services_1.ConfigurationService.generateServerConfiguration('https://connect.v2.dev.withvayu.com');
32
32
  this.configurationManager = services_1.ConfigurationService.initialize(apiKey, baseServer);
33
33
  }
34
34
  login() {
@@ -0,0 +1 @@
1
+ export type { APIEntitlement as Entitlement, APIQueryPayloadAPIEntitlement as QueryEntitlementPayload, ReviseEntitlementPayload, } from '../../openapi-v2';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export type { ProductBreakdown, APICreateProductPayload as CreateProductPayload, APIProduct as Product, APIUpdateProductPayload as UpdateProductPayload, APIQueryPayloadAPIProduct as QueryProductPayload, ReviseProductPayload, InvoiceProductBreakdown, } from '../../openapi-v2';
1
+ export type { ProductBreakdown, APICreateProductPayload as CreateProductPayload, APIProduct as Product, APIUpdateProductPayload as UpdateProductPayload, APIQueryPayloadAPIProduct as QueryProductPayload, InvoiceProductBreakdown, } from '../../openapi-v2';
@@ -2,5 +2,5 @@ export * from './Customers';
2
2
  export * from './Events';
3
3
  export * from './Invoices';
4
4
  export * from './Products';
5
- export { AggregationMethods, } from '../../openapi-v2';
6
- export type { Aggregation, Criterion, Condition, CriterionOperators, CriterionValue, Pricing, PricingTiersInner as PricingTiers, } from '../../openapi-v2';
5
+ export { AggregationMethods, CriterionOperators, } from '../../openapi-v2';
6
+ export type { Aggregation, Criterion, Condition, CriterionValue, Pricing, PricingTiersInner as PricingTiers, } from '../../openapi-v2';