vayu-ts 0.1.4 → 0.2.3
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/dist/openapi-v2/apis/AuthenticationApi.d.ts +24 -0
- package/dist/openapi-v2/apis/AuthenticationApi.js +79 -0
- package/dist/openapi-v2/apis/CustomersApi.d.ts +92 -0
- package/dist/openapi-v2/apis/CustomersApi.js +362 -0
- package/dist/openapi-v2/apis/EntitlementsApi.d.ts +49 -0
- package/dist/openapi-v2/apis/EntitlementsApi.js +176 -0
- package/dist/openapi-v2/apis/EventsApi.d.ts +63 -0
- package/dist/openapi-v2/apis/EventsApi.js +231 -0
- package/dist/openapi-v2/apis/InvoicesApi.d.ts +88 -0
- package/dist/openapi-v2/apis/InvoicesApi.js +344 -0
- package/dist/openapi-v2/apis/ProductsApi.d.ts +76 -0
- package/dist/openapi-v2/apis/ProductsApi.js +295 -0
- package/dist/openapi-v2/apis/baseapi.d.ts +33 -0
- package/dist/openapi-v2/apis/baseapi.js +41 -0
- package/dist/openapi-v2/apis/exception.d.ts +19 -0
- package/dist/openapi-v2/apis/exception.js +22 -0
- package/dist/openapi-v2/auth/auth.d.ts +38 -0
- package/dist/openapi-v2/auth/auth.js +16 -0
- package/dist/openapi-v2/configuration.d.ts +63 -0
- package/dist/openapi-v2/configuration.js +34 -0
- package/dist/openapi-v2/http/http.d.ts +142 -0
- package/dist/openapi-v2/http/http.js +229 -0
- package/dist/openapi-v2/http/isomorphic-fetch.d.ts +5 -0
- package/dist/openapi-v2/http/isomorphic-fetch.js +33 -0
- package/dist/openapi-v2/index.d.ts +10 -0
- package/dist/openapi-v2/index.js +33 -0
- package/dist/openapi-v2/middleware.d.ts +54 -0
- package/dist/openapi-v2/middleware.js +16 -0
- package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +45 -0
- package/dist/openapi-v2/models/APICreateCustomerPayload.js +49 -0
- package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +41 -0
- package/dist/openapi-v2/models/APICreateInvoicePayload.js +49 -0
- package/dist/openapi-v2/models/APICreateProductPayload.d.ts +43 -0
- package/dist/openapi-v2/models/APICreateProductPayload.js +55 -0
- package/dist/openapi-v2/models/APICustomer.d.ts +64 -0
- package/dist/openapi-v2/models/APICustomer.js +76 -0
- package/dist/openapi-v2/models/APIEntitlement.d.ts +56 -0
- package/dist/openapi-v2/models/APIEntitlement.js +79 -0
- package/dist/openapi-v2/models/APIEvent.d.ts +72 -0
- package/dist/openapi-v2/models/APIEvent.js +88 -0
- package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +49 -0
- package/dist/openapi-v2/models/APIIngestEventPayload.js +55 -0
- package/dist/openapi-v2/models/APIInvoice.d.ts +71 -0
- package/dist/openapi-v2/models/APIInvoice.js +88 -0
- package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +38 -0
- package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +40 -0
- package/dist/openapi-v2/models/APIProduct.d.ts +62 -0
- package/dist/openapi-v2/models/APIProduct.js +82 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +49 -0
- package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +45 -0
- package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +49 -0
- package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +41 -0
- package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +49 -0
- package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +43 -0
- package/dist/openapi-v2/models/APIUpdateProductPayload.js +55 -0
- package/dist/openapi-v2/models/Aggregation.d.ts +32 -0
- package/dist/openapi-v2/models/Aggregation.js +43 -0
- package/dist/openapi-v2/models/AggregationMethods.d.ts +18 -0
- package/dist/openapi-v2/models/AggregationMethods.js +22 -0
- package/dist/openapi-v2/models/Condition.d.ts +29 -0
- package/dist/openapi-v2/models/Condition.js +31 -0
- package/dist/openapi-v2/models/Criterion.d.ts +32 -0
- package/dist/openapi-v2/models/Criterion.js +43 -0
- package/dist/openapi-v2/models/CriterionOperators.d.ts +23 -0
- package/dist/openapi-v2/models/CriterionOperators.js +27 -0
- package/dist/openapi-v2/models/CriterionValue.d.ts +27 -0
- package/dist/openapi-v2/models/CriterionValue.js +24 -0
- package/dist/openapi-v2/models/EntitlementRevision.d.ts +36 -0
- package/dist/openapi-v2/models/EntitlementRevision.js +55 -0
- package/dist/openapi-v2/models/Event.d.ts +54 -0
- package/dist/openapi-v2/models/Event.js +85 -0
- package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +31 -0
- package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +43 -0
- package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +36 -0
- package/dist/openapi-v2/models/InvoiceProductBreakdown.js +46 -0
- package/dist/openapi-v2/models/Login200Response.d.ts +28 -0
- package/dist/openapi-v2/models/Login200Response.js +31 -0
- package/dist/openapi-v2/models/LoginRequest.d.ts +28 -0
- package/dist/openapi-v2/models/LoginRequest.js +31 -0
- package/dist/openapi-v2/models/ObjectSerializer.d.ts +67 -0
- package/dist/openapi-v2/models/ObjectSerializer.js +377 -0
- package/dist/openapi-v2/models/Pricing.d.ts +30 -0
- package/dist/openapi-v2/models/Pricing.js +37 -0
- package/dist/openapi-v2/models/PricingTiersInner.d.ts +31 -0
- package/dist/openapi-v2/models/PricingTiersInner.js +49 -0
- package/dist/openapi-v2/models/ProductBreakdown.d.ts +29 -0
- package/dist/openapi-v2/models/ProductBreakdown.js +37 -0
- package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPICustomer.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIEntitlement.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIEntitlement.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIEvent.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIInvoice.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIProduct.js +43 -0
- package/dist/openapi-v2/models/ReviseEntitlementPayload.d.ts +37 -0
- package/dist/openapi-v2/models/ReviseEntitlementPayload.js +43 -0
- package/dist/openapi-v2/models/UpdateEventPayload.d.ts +33 -0
- package/dist/openapi-v2/models/UpdateEventPayload.js +31 -0
- package/dist/openapi-v2/models/all.d.ts +40 -0
- package/dist/openapi-v2/models/all.js +56 -0
- package/dist/openapi-v2/rxjsStub.d.ts +10 -0
- package/dist/openapi-v2/rxjsStub.js +31 -0
- package/dist/openapi-v2/servers.d.ts +38 -0
- package/dist/openapi-v2/servers.js +51 -0
- package/dist/openapi-v2/types/ObservableAPI.d.ts +281 -0
- package/dist/openapi-v2/types/ObservableAPI.js +694 -0
- package/dist/openapi-v2/types/PromiseAPI.d.ts +268 -0
- package/dist/openapi-v2/types/PromiseAPI.js +405 -0
- package/dist/openapi-v2/util.d.ts +15 -0
- package/dist/openapi-v2/util.js +42 -0
- package/dist/sdk/services/configuration.service.js +1 -1
- package/dist/sdk-v2/clients/CustomersClient.d.ts +11 -0
- package/dist/sdk-v2/clients/CustomersClient.js +50 -0
- package/dist/sdk-v2/clients/EntitlementsClient.d.ts +8 -0
- package/dist/sdk-v2/clients/EntitlementsClient.js +35 -0
- package/dist/sdk-v2/clients/EventsClient.d.ts +9 -0
- package/dist/sdk-v2/clients/EventsClient.js +40 -0
- package/dist/sdk-v2/clients/InvoicesClient.d.ts +11 -0
- package/dist/sdk-v2/clients/InvoicesClient.js +50 -0
- package/dist/sdk-v2/clients/ProductsClient.d.ts +10 -0
- package/dist/sdk-v2/clients/ProductsClient.js +45 -0
- package/dist/sdk-v2/clients/index.d.ts +4 -0
- package/dist/sdk-v2/clients/index.js +20 -0
- package/dist/sdk-v2/index.d.ts +11 -0
- package/dist/sdk-v2/index.js +53 -0
- package/dist/sdk-v2/services/configuration.service.d.ts +21 -0
- package/dist/sdk-v2/services/configuration.service.js +98 -0
- package/dist/sdk-v2/services/index.d.ts +1 -0
- package/dist/sdk-v2/services/index.js +17 -0
- package/dist/sdk-v2/types/Customers.d.ts +1 -0
- package/dist/sdk-v2/types/Customers.js +2 -0
- package/dist/sdk-v2/types/Entitlements.d.ts +1 -0
- package/dist/sdk-v2/types/Entitlements.js +2 -0
- package/dist/sdk-v2/types/Events.d.ts +1 -0
- package/dist/sdk-v2/types/Events.js +2 -0
- package/dist/sdk-v2/types/Invoices.d.ts +1 -0
- package/dist/sdk-v2/types/Invoices.js +2 -0
- package/dist/sdk-v2/types/Products.d.ts +1 -0
- package/dist/sdk-v2/types/Products.js +2 -0
- package/dist/sdk-v2/types/index.d.ts +6 -0
- package/dist/sdk-v2/types/index.js +24 -0
- package/dist/v2.d.ts +1 -0
- package/dist/v2.js +17 -0
- package/package.json +17 -1
- package/dist/openapi/types/ObjectParamAPI.d.ts +0 -845
- package/dist/openapi/types/ObjectParamAPI.js +0 -606
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObservableProductsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableEntitlementsApi = exports.ObservableCustomersApi = exports.ObservableAuthenticationApi = void 0;
|
|
4
|
+
const rxjsStub_1 = require("../rxjsStub");
|
|
5
|
+
const rxjsStub_2 = require("../rxjsStub");
|
|
6
|
+
const AuthenticationApi_1 = require("../apis/AuthenticationApi");
|
|
7
|
+
class ObservableAuthenticationApi {
|
|
8
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
9
|
+
this.configuration = configuration;
|
|
10
|
+
this.requestFactory = requestFactory || new AuthenticationApi_1.AuthenticationApiRequestFactory(configuration);
|
|
11
|
+
this.responseProcessor = responseProcessor || new AuthenticationApi_1.AuthenticationApiResponseProcessor();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @param loginRequest
|
|
15
|
+
*/
|
|
16
|
+
loginWithHttpInfo(loginRequest, _options) {
|
|
17
|
+
const requestContextPromise = this.requestFactory.login(loginRequest, _options);
|
|
18
|
+
// build promise chain
|
|
19
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
20
|
+
for (let middleware of this.configuration.middleware) {
|
|
21
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
22
|
+
}
|
|
23
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
24
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
25
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
26
|
+
for (let middleware of this.configuration.middleware) {
|
|
27
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
28
|
+
}
|
|
29
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.loginWithHttpInfo(rsp)));
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param loginRequest
|
|
34
|
+
*/
|
|
35
|
+
login(loginRequest, _options) {
|
|
36
|
+
return this.loginWithHttpInfo(loginRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ObservableAuthenticationApi = ObservableAuthenticationApi;
|
|
40
|
+
const CustomersApi_1 = require("../apis/CustomersApi");
|
|
41
|
+
class ObservableCustomersApi {
|
|
42
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
43
|
+
this.configuration = configuration;
|
|
44
|
+
this.requestFactory = requestFactory || new CustomersApi_1.CustomersApiRequestFactory(configuration);
|
|
45
|
+
this.responseProcessor = responseProcessor || new CustomersApi_1.CustomersApiResponseProcessor();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @param aPICreateCustomerPayload
|
|
49
|
+
*/
|
|
50
|
+
createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
|
|
51
|
+
const requestContextPromise = this.requestFactory.createCustomer(aPICreateCustomerPayload, _options);
|
|
52
|
+
// build promise chain
|
|
53
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
54
|
+
for (let middleware of this.configuration.middleware) {
|
|
55
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
56
|
+
}
|
|
57
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
58
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
59
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
60
|
+
for (let middleware of this.configuration.middleware) {
|
|
61
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
62
|
+
}
|
|
63
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCustomerWithHttpInfo(rsp)));
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @param aPICreateCustomerPayload
|
|
68
|
+
*/
|
|
69
|
+
createCustomer(aPICreateCustomerPayload, _options) {
|
|
70
|
+
return this.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param id
|
|
74
|
+
*/
|
|
75
|
+
deleteCustomerWithHttpInfo(id, _options) {
|
|
76
|
+
const requestContextPromise = this.requestFactory.deleteCustomer(id, _options);
|
|
77
|
+
// build promise chain
|
|
78
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
79
|
+
for (let middleware of this.configuration.middleware) {
|
|
80
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
81
|
+
}
|
|
82
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
83
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
84
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
85
|
+
for (let middleware of this.configuration.middleware) {
|
|
86
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
87
|
+
}
|
|
88
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteCustomerWithHttpInfo(rsp)));
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @param id
|
|
93
|
+
*/
|
|
94
|
+
deleteCustomer(id, _options) {
|
|
95
|
+
return this.deleteCustomerWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @param id
|
|
99
|
+
*/
|
|
100
|
+
getCustomerWithHttpInfo(id, _options) {
|
|
101
|
+
const requestContextPromise = this.requestFactory.getCustomer(id, _options);
|
|
102
|
+
// build promise chain
|
|
103
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
104
|
+
for (let middleware of this.configuration.middleware) {
|
|
105
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
106
|
+
}
|
|
107
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
108
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
109
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
110
|
+
for (let middleware of this.configuration.middleware) {
|
|
111
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
112
|
+
}
|
|
113
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerWithHttpInfo(rsp)));
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param id
|
|
118
|
+
*/
|
|
119
|
+
getCustomer(id, _options) {
|
|
120
|
+
return this.getCustomerWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @param aPIQueryPayloadAPICustomer
|
|
124
|
+
*/
|
|
125
|
+
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
|
|
126
|
+
const requestContextPromise = this.requestFactory.queryCustomers(aPIQueryPayloadAPICustomer, _options);
|
|
127
|
+
// build promise chain
|
|
128
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
129
|
+
for (let middleware of this.configuration.middleware) {
|
|
130
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
131
|
+
}
|
|
132
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
133
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
134
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
135
|
+
for (let middleware of this.configuration.middleware) {
|
|
136
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
137
|
+
}
|
|
138
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryCustomersWithHttpInfo(rsp)));
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @param aPIQueryPayloadAPICustomer
|
|
143
|
+
*/
|
|
144
|
+
queryCustomers(aPIQueryPayloadAPICustomer, _options) {
|
|
145
|
+
return this.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
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
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @param aPIUpdateCustomerPayload
|
|
178
|
+
* @param id
|
|
179
|
+
*/
|
|
180
|
+
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
|
|
181
|
+
const requestContextPromise = this.requestFactory.updateCustomer(aPIUpdateCustomerPayload, id, _options);
|
|
182
|
+
// build promise chain
|
|
183
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
184
|
+
for (let middleware of this.configuration.middleware) {
|
|
185
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
186
|
+
}
|
|
187
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
188
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
189
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
190
|
+
for (let middleware of this.configuration.middleware) {
|
|
191
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
192
|
+
}
|
|
193
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateCustomerWithHttpInfo(rsp)));
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @param aPIUpdateCustomerPayload
|
|
198
|
+
* @param id
|
|
199
|
+
*/
|
|
200
|
+
updateCustomer(aPIUpdateCustomerPayload, id, _options) {
|
|
201
|
+
return this.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
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;
|
|
289
|
+
const EventsApi_1 = require("../apis/EventsApi");
|
|
290
|
+
class ObservableEventsApi {
|
|
291
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
292
|
+
this.configuration = configuration;
|
|
293
|
+
this.requestFactory = requestFactory || new EventsApi_1.EventsApiRequestFactory(configuration);
|
|
294
|
+
this.responseProcessor = responseProcessor || new EventsApi_1.EventsApiResponseProcessor();
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @param id
|
|
298
|
+
*/
|
|
299
|
+
deleteEventWithHttpInfo(id, _options) {
|
|
300
|
+
const requestContextPromise = this.requestFactory.deleteEvent(id, _options);
|
|
301
|
+
// build promise chain
|
|
302
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
303
|
+
for (let middleware of this.configuration.middleware) {
|
|
304
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
305
|
+
}
|
|
306
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
307
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
308
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
309
|
+
for (let middleware of this.configuration.middleware) {
|
|
310
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
311
|
+
}
|
|
312
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEventWithHttpInfo(rsp)));
|
|
313
|
+
}));
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @param id
|
|
317
|
+
*/
|
|
318
|
+
deleteEvent(id, _options) {
|
|
319
|
+
return this.deleteEventWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* @param id
|
|
323
|
+
*/
|
|
324
|
+
getEventWithHttpInfo(id, _options) {
|
|
325
|
+
const requestContextPromise = this.requestFactory.getEvent(id, _options);
|
|
326
|
+
// build promise chain
|
|
327
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
328
|
+
for (let middleware of this.configuration.middleware) {
|
|
329
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
330
|
+
}
|
|
331
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
332
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
333
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
334
|
+
for (let middleware of this.configuration.middleware) {
|
|
335
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
336
|
+
}
|
|
337
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEventWithHttpInfo(rsp)));
|
|
338
|
+
}));
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* @param id
|
|
342
|
+
*/
|
|
343
|
+
getEvent(id, _options) {
|
|
344
|
+
return this.getEventWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @param aPIIngestEventPayload
|
|
348
|
+
*/
|
|
349
|
+
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
|
|
350
|
+
const requestContextPromise = this.requestFactory.ingestEventToTheSystem(aPIIngestEventPayload, _options);
|
|
351
|
+
// build promise chain
|
|
352
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
353
|
+
for (let middleware of this.configuration.middleware) {
|
|
354
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
355
|
+
}
|
|
356
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
357
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
358
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
359
|
+
for (let middleware of this.configuration.middleware) {
|
|
360
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
361
|
+
}
|
|
362
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.ingestEventToTheSystemWithHttpInfo(rsp)));
|
|
363
|
+
}));
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @param aPIIngestEventPayload
|
|
367
|
+
*/
|
|
368
|
+
ingestEventToTheSystem(aPIIngestEventPayload, _options) {
|
|
369
|
+
return this.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* @param aPIQueryPayloadAPIEvent
|
|
373
|
+
*/
|
|
374
|
+
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
|
|
375
|
+
const requestContextPromise = this.requestFactory.queryEvents(aPIQueryPayloadAPIEvent, _options);
|
|
376
|
+
// build promise chain
|
|
377
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
378
|
+
for (let middleware of this.configuration.middleware) {
|
|
379
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
380
|
+
}
|
|
381
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
382
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
383
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
384
|
+
for (let middleware of this.configuration.middleware) {
|
|
385
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
386
|
+
}
|
|
387
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryEventsWithHttpInfo(rsp)));
|
|
388
|
+
}));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @param aPIQueryPayloadAPIEvent
|
|
392
|
+
*/
|
|
393
|
+
queryEvents(aPIQueryPayloadAPIEvent, _options) {
|
|
394
|
+
return this.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
exports.ObservableEventsApi = ObservableEventsApi;
|
|
398
|
+
const InvoicesApi_1 = require("../apis/InvoicesApi");
|
|
399
|
+
class ObservableInvoicesApi {
|
|
400
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
401
|
+
this.configuration = configuration;
|
|
402
|
+
this.requestFactory = requestFactory || new InvoicesApi_1.InvoicesApiRequestFactory(configuration);
|
|
403
|
+
this.responseProcessor = responseProcessor || new InvoicesApi_1.InvoicesApiResponseProcessor();
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* @param id
|
|
407
|
+
*/
|
|
408
|
+
calculateInvoiceWithHttpInfo(id, _options) {
|
|
409
|
+
const requestContextPromise = this.requestFactory.calculateInvoice(id, _options);
|
|
410
|
+
// build promise chain
|
|
411
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
412
|
+
for (let middleware of this.configuration.middleware) {
|
|
413
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
414
|
+
}
|
|
415
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
416
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
417
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
418
|
+
for (let middleware of this.configuration.middleware) {
|
|
419
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
420
|
+
}
|
|
421
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.calculateInvoiceWithHttpInfo(rsp)));
|
|
422
|
+
}));
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* @param id
|
|
426
|
+
*/
|
|
427
|
+
calculateInvoice(id, _options) {
|
|
428
|
+
return this.calculateInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @param aPICreateInvoicePayload
|
|
432
|
+
*/
|
|
433
|
+
createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
|
|
434
|
+
const requestContextPromise = this.requestFactory.createInvoice(aPICreateInvoicePayload, _options);
|
|
435
|
+
// build promise chain
|
|
436
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
437
|
+
for (let middleware of this.configuration.middleware) {
|
|
438
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
439
|
+
}
|
|
440
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
441
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
442
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
443
|
+
for (let middleware of this.configuration.middleware) {
|
|
444
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
445
|
+
}
|
|
446
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createInvoiceWithHttpInfo(rsp)));
|
|
447
|
+
}));
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @param aPICreateInvoicePayload
|
|
451
|
+
*/
|
|
452
|
+
createInvoice(aPICreateInvoicePayload, _options) {
|
|
453
|
+
return this.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @param id
|
|
457
|
+
*/
|
|
458
|
+
deleteInvoiceWithHttpInfo(id, _options) {
|
|
459
|
+
const requestContextPromise = this.requestFactory.deleteInvoice(id, _options);
|
|
460
|
+
// build promise chain
|
|
461
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
462
|
+
for (let middleware of this.configuration.middleware) {
|
|
463
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
464
|
+
}
|
|
465
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
466
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
467
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
468
|
+
for (let middleware of this.configuration.middleware) {
|
|
469
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
470
|
+
}
|
|
471
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteInvoiceWithHttpInfo(rsp)));
|
|
472
|
+
}));
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @param id
|
|
476
|
+
*/
|
|
477
|
+
deleteInvoice(id, _options) {
|
|
478
|
+
return this.deleteInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* @param id
|
|
482
|
+
*/
|
|
483
|
+
getInvoiceWithHttpInfo(id, _options) {
|
|
484
|
+
const requestContextPromise = this.requestFactory.getInvoice(id, _options);
|
|
485
|
+
// build promise chain
|
|
486
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
487
|
+
for (let middleware of this.configuration.middleware) {
|
|
488
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
489
|
+
}
|
|
490
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
491
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
492
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
493
|
+
for (let middleware of this.configuration.middleware) {
|
|
494
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
495
|
+
}
|
|
496
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getInvoiceWithHttpInfo(rsp)));
|
|
497
|
+
}));
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* @param id
|
|
501
|
+
*/
|
|
502
|
+
getInvoice(id, _options) {
|
|
503
|
+
return this.getInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
507
|
+
*/
|
|
508
|
+
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
|
|
509
|
+
const requestContextPromise = this.requestFactory.queryInvoices(aPIQueryPayloadAPIInvoice, _options);
|
|
510
|
+
// build promise chain
|
|
511
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
512
|
+
for (let middleware of this.configuration.middleware) {
|
|
513
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
514
|
+
}
|
|
515
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
516
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
517
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
518
|
+
for (let middleware of this.configuration.middleware) {
|
|
519
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
520
|
+
}
|
|
521
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryInvoicesWithHttpInfo(rsp)));
|
|
522
|
+
}));
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
526
|
+
*/
|
|
527
|
+
queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
|
|
528
|
+
return this.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @param aPIUpdateInvoicePayload
|
|
532
|
+
* @param id
|
|
533
|
+
*/
|
|
534
|
+
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
|
|
535
|
+
const requestContextPromise = this.requestFactory.updateInvoice(aPIUpdateInvoicePayload, id, _options);
|
|
536
|
+
// build promise chain
|
|
537
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
538
|
+
for (let middleware of this.configuration.middleware) {
|
|
539
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
540
|
+
}
|
|
541
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
542
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
543
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
544
|
+
for (let middleware of this.configuration.middleware) {
|
|
545
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
546
|
+
}
|
|
547
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateInvoiceWithHttpInfo(rsp)));
|
|
548
|
+
}));
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* @param aPIUpdateInvoicePayload
|
|
552
|
+
* @param id
|
|
553
|
+
*/
|
|
554
|
+
updateInvoice(aPIUpdateInvoicePayload, id, _options) {
|
|
555
|
+
return this.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
exports.ObservableInvoicesApi = ObservableInvoicesApi;
|
|
559
|
+
const ProductsApi_1 = require("../apis/ProductsApi");
|
|
560
|
+
class ObservableProductsApi {
|
|
561
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
562
|
+
this.configuration = configuration;
|
|
563
|
+
this.requestFactory = requestFactory || new ProductsApi_1.ProductsApiRequestFactory(configuration);
|
|
564
|
+
this.responseProcessor = responseProcessor || new ProductsApi_1.ProductsApiResponseProcessor();
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* @param aPICreateProductPayload
|
|
568
|
+
*/
|
|
569
|
+
createProductWithHttpInfo(aPICreateProductPayload, _options) {
|
|
570
|
+
const requestContextPromise = this.requestFactory.createProduct(aPICreateProductPayload, _options);
|
|
571
|
+
// build promise chain
|
|
572
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
573
|
+
for (let middleware of this.configuration.middleware) {
|
|
574
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
575
|
+
}
|
|
576
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
577
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
578
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
579
|
+
for (let middleware of this.configuration.middleware) {
|
|
580
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
581
|
+
}
|
|
582
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createProductWithHttpInfo(rsp)));
|
|
583
|
+
}));
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* @param aPICreateProductPayload
|
|
587
|
+
*/
|
|
588
|
+
createProduct(aPICreateProductPayload, _options) {
|
|
589
|
+
return this.createProductWithHttpInfo(aPICreateProductPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @param id
|
|
593
|
+
*/
|
|
594
|
+
deleteProductWithHttpInfo(id, _options) {
|
|
595
|
+
const requestContextPromise = this.requestFactory.deleteProduct(id, _options);
|
|
596
|
+
// build promise chain
|
|
597
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
598
|
+
for (let middleware of this.configuration.middleware) {
|
|
599
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
600
|
+
}
|
|
601
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
602
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
603
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
604
|
+
for (let middleware of this.configuration.middleware) {
|
|
605
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
606
|
+
}
|
|
607
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteProductWithHttpInfo(rsp)));
|
|
608
|
+
}));
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* @param id
|
|
612
|
+
*/
|
|
613
|
+
deleteProduct(id, _options) {
|
|
614
|
+
return this.deleteProductWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* @param id
|
|
618
|
+
*/
|
|
619
|
+
getProductWithHttpInfo(id, _options) {
|
|
620
|
+
const requestContextPromise = this.requestFactory.getProduct(id, _options);
|
|
621
|
+
// build promise chain
|
|
622
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
623
|
+
for (let middleware of this.configuration.middleware) {
|
|
624
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
625
|
+
}
|
|
626
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
627
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
628
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
629
|
+
for (let middleware of this.configuration.middleware) {
|
|
630
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
631
|
+
}
|
|
632
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getProductWithHttpInfo(rsp)));
|
|
633
|
+
}));
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* @param id
|
|
637
|
+
*/
|
|
638
|
+
getProduct(id, _options) {
|
|
639
|
+
return this.getProductWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* @param aPIQueryPayloadAPIProduct
|
|
643
|
+
*/
|
|
644
|
+
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
|
|
645
|
+
const requestContextPromise = this.requestFactory.queryProducts(aPIQueryPayloadAPIProduct, _options);
|
|
646
|
+
// build promise chain
|
|
647
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
648
|
+
for (let middleware of this.configuration.middleware) {
|
|
649
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
650
|
+
}
|
|
651
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
652
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
653
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
654
|
+
for (let middleware of this.configuration.middleware) {
|
|
655
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
656
|
+
}
|
|
657
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryProductsWithHttpInfo(rsp)));
|
|
658
|
+
}));
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param aPIQueryPayloadAPIProduct
|
|
662
|
+
*/
|
|
663
|
+
queryProducts(aPIQueryPayloadAPIProduct, _options) {
|
|
664
|
+
return this.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* @param aPIUpdateProductPayload
|
|
668
|
+
* @param id
|
|
669
|
+
*/
|
|
670
|
+
updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
|
|
671
|
+
const requestContextPromise = this.requestFactory.updateProduct(aPIUpdateProductPayload, id, _options);
|
|
672
|
+
// build promise chain
|
|
673
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
674
|
+
for (let middleware of this.configuration.middleware) {
|
|
675
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
676
|
+
}
|
|
677
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
678
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
679
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
680
|
+
for (let middleware of this.configuration.middleware) {
|
|
681
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
682
|
+
}
|
|
683
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateProductWithHttpInfo(rsp)));
|
|
684
|
+
}));
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* @param aPIUpdateProductPayload
|
|
688
|
+
* @param id
|
|
689
|
+
*/
|
|
690
|
+
updateProduct(aPIUpdateProductPayload, id, _options) {
|
|
691
|
+
return this.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
exports.ObservableProductsApi = ObservableProductsApi;
|