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,268 @@
|
|
|
1
|
+
import { HttpInfo } from '../http/http';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { APICreateCustomerPayload } from '../models/APICreateCustomerPayload';
|
|
4
|
+
import { APICreateInvoicePayload } from '../models/APICreateInvoicePayload';
|
|
5
|
+
import { APICreateProductPayload } from '../models/APICreateProductPayload';
|
|
6
|
+
import { APICustomer } from '../models/APICustomer';
|
|
7
|
+
import { APIEntitlement } from '../models/APIEntitlement';
|
|
8
|
+
import { APIEvent } from '../models/APIEvent';
|
|
9
|
+
import { APIIngestEventPayload } from '../models/APIIngestEventPayload';
|
|
10
|
+
import { APIInvoice } from '../models/APIInvoice';
|
|
11
|
+
import { APIProduct } from '../models/APIProduct';
|
|
12
|
+
import { APIQueryPayloadAPICustomer } from '../models/APIQueryPayloadAPICustomer';
|
|
13
|
+
import { APIQueryPayloadAPIEntitlement } from '../models/APIQueryPayloadAPIEntitlement';
|
|
14
|
+
import { APIQueryPayloadAPIEvent } from '../models/APIQueryPayloadAPIEvent';
|
|
15
|
+
import { APIQueryPayloadAPIInvoice } from '../models/APIQueryPayloadAPIInvoice';
|
|
16
|
+
import { APIQueryPayloadAPIProduct } from '../models/APIQueryPayloadAPIProduct';
|
|
17
|
+
import { APIUpdateCustomerPayload } from '../models/APIUpdateCustomerPayload';
|
|
18
|
+
import { APIUpdateInvoicePayload } from '../models/APIUpdateInvoicePayload';
|
|
19
|
+
import { APIUpdateProductPayload } from '../models/APIUpdateProductPayload';
|
|
20
|
+
import { IngestEventToTheSystem201Response } from '../models/IngestEventToTheSystem201Response';
|
|
21
|
+
import { Login200Response } from '../models/Login200Response';
|
|
22
|
+
import { LoginRequest } from '../models/LoginRequest';
|
|
23
|
+
import { QueryResultAPICustomer } from '../models/QueryResultAPICustomer';
|
|
24
|
+
import { QueryResultAPIEntitlement } from '../models/QueryResultAPIEntitlement';
|
|
25
|
+
import { QueryResultAPIEvent } from '../models/QueryResultAPIEvent';
|
|
26
|
+
import { QueryResultAPIInvoice } from '../models/QueryResultAPIInvoice';
|
|
27
|
+
import { QueryResultAPIProduct } from '../models/QueryResultAPIProduct';
|
|
28
|
+
import { ReviseEntitlementPayload } from '../models/ReviseEntitlementPayload';
|
|
29
|
+
import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor } from "../apis/AuthenticationApi";
|
|
30
|
+
export declare class PromiseAuthenticationApi {
|
|
31
|
+
private api;
|
|
32
|
+
constructor(configuration: Configuration, requestFactory?: AuthenticationApiRequestFactory, responseProcessor?: AuthenticationApiResponseProcessor);
|
|
33
|
+
/**
|
|
34
|
+
* @param loginRequest
|
|
35
|
+
*/
|
|
36
|
+
loginWithHttpInfo(loginRequest: LoginRequest, _options?: Configuration): Promise<HttpInfo<Login200Response>>;
|
|
37
|
+
/**
|
|
38
|
+
* @param loginRequest
|
|
39
|
+
*/
|
|
40
|
+
login(loginRequest: LoginRequest, _options?: Configuration): Promise<Login200Response>;
|
|
41
|
+
}
|
|
42
|
+
import { CustomersApiRequestFactory, CustomersApiResponseProcessor } from "../apis/CustomersApi";
|
|
43
|
+
export declare class PromiseCustomersApi {
|
|
44
|
+
private api;
|
|
45
|
+
constructor(configuration: Configuration, requestFactory?: CustomersApiRequestFactory, responseProcessor?: CustomersApiResponseProcessor);
|
|
46
|
+
/**
|
|
47
|
+
* @param aPICreateCustomerPayload
|
|
48
|
+
*/
|
|
49
|
+
createCustomerWithHttpInfo(aPICreateCustomerPayload: APICreateCustomerPayload, _options?: Configuration): Promise<HttpInfo<APICustomer>>;
|
|
50
|
+
/**
|
|
51
|
+
* @param aPICreateCustomerPayload
|
|
52
|
+
*/
|
|
53
|
+
createCustomer(aPICreateCustomerPayload: APICreateCustomerPayload, _options?: Configuration): Promise<APICustomer>;
|
|
54
|
+
/**
|
|
55
|
+
* @param id
|
|
56
|
+
*/
|
|
57
|
+
deleteCustomerWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
58
|
+
/**
|
|
59
|
+
* @param id
|
|
60
|
+
*/
|
|
61
|
+
deleteCustomer(id: string, _options?: Configuration): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @param id
|
|
64
|
+
*/
|
|
65
|
+
getCustomerWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APICustomer>>;
|
|
66
|
+
/**
|
|
67
|
+
* @param id
|
|
68
|
+
*/
|
|
69
|
+
getCustomer(id: string, _options?: Configuration): Promise<APICustomer>;
|
|
70
|
+
/**
|
|
71
|
+
* @param aPIQueryPayloadAPICustomer
|
|
72
|
+
*/
|
|
73
|
+
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer: APIQueryPayloadAPICustomer, _options?: Configuration): Promise<HttpInfo<QueryResultAPICustomer>>;
|
|
74
|
+
/**
|
|
75
|
+
* @param aPIQueryPayloadAPICustomer
|
|
76
|
+
*/
|
|
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>;
|
|
90
|
+
/**
|
|
91
|
+
* @param aPIUpdateCustomerPayload
|
|
92
|
+
* @param id
|
|
93
|
+
*/
|
|
94
|
+
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Promise<HttpInfo<APICustomer>>;
|
|
95
|
+
/**
|
|
96
|
+
* @param aPIUpdateCustomerPayload
|
|
97
|
+
* @param id
|
|
98
|
+
*/
|
|
99
|
+
updateCustomer(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Promise<APICustomer>;
|
|
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
|
+
}
|
|
130
|
+
import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
|
|
131
|
+
export declare class PromiseEventsApi {
|
|
132
|
+
private api;
|
|
133
|
+
constructor(configuration: Configuration, requestFactory?: EventsApiRequestFactory, responseProcessor?: EventsApiResponseProcessor);
|
|
134
|
+
/**
|
|
135
|
+
* @param id
|
|
136
|
+
*/
|
|
137
|
+
deleteEventWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
138
|
+
/**
|
|
139
|
+
* @param id
|
|
140
|
+
*/
|
|
141
|
+
deleteEvent(id: string, _options?: Configuration): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* @param id
|
|
144
|
+
*/
|
|
145
|
+
getEventWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIEvent>>;
|
|
146
|
+
/**
|
|
147
|
+
* @param id
|
|
148
|
+
*/
|
|
149
|
+
getEvent(id: string, _options?: Configuration): Promise<APIEvent>;
|
|
150
|
+
/**
|
|
151
|
+
* @param aPIIngestEventPayload
|
|
152
|
+
*/
|
|
153
|
+
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload: Array<APIIngestEventPayload>, _options?: Configuration): Promise<HttpInfo<IngestEventToTheSystem201Response>>;
|
|
154
|
+
/**
|
|
155
|
+
* @param aPIIngestEventPayload
|
|
156
|
+
*/
|
|
157
|
+
ingestEventToTheSystem(aPIIngestEventPayload: Array<APIIngestEventPayload>, _options?: Configuration): Promise<IngestEventToTheSystem201Response>;
|
|
158
|
+
/**
|
|
159
|
+
* @param aPIQueryPayloadAPIEvent
|
|
160
|
+
*/
|
|
161
|
+
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent: APIQueryPayloadAPIEvent, _options?: Configuration): Promise<HttpInfo<QueryResultAPIEvent>>;
|
|
162
|
+
/**
|
|
163
|
+
* @param aPIQueryPayloadAPIEvent
|
|
164
|
+
*/
|
|
165
|
+
queryEvents(aPIQueryPayloadAPIEvent: APIQueryPayloadAPIEvent, _options?: Configuration): Promise<QueryResultAPIEvent>;
|
|
166
|
+
}
|
|
167
|
+
import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
|
|
168
|
+
export declare class PromiseInvoicesApi {
|
|
169
|
+
private api;
|
|
170
|
+
constructor(configuration: Configuration, requestFactory?: InvoicesApiRequestFactory, responseProcessor?: InvoicesApiResponseProcessor);
|
|
171
|
+
/**
|
|
172
|
+
* @param id
|
|
173
|
+
*/
|
|
174
|
+
calculateInvoiceWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
175
|
+
/**
|
|
176
|
+
* @param id
|
|
177
|
+
*/
|
|
178
|
+
calculateInvoice(id: string, _options?: Configuration): Promise<APIInvoice>;
|
|
179
|
+
/**
|
|
180
|
+
* @param aPICreateInvoicePayload
|
|
181
|
+
*/
|
|
182
|
+
createInvoiceWithHttpInfo(aPICreateInvoicePayload: APICreateInvoicePayload, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
183
|
+
/**
|
|
184
|
+
* @param aPICreateInvoicePayload
|
|
185
|
+
*/
|
|
186
|
+
createInvoice(aPICreateInvoicePayload: APICreateInvoicePayload, _options?: Configuration): Promise<APIInvoice>;
|
|
187
|
+
/**
|
|
188
|
+
* @param id
|
|
189
|
+
*/
|
|
190
|
+
deleteInvoiceWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
191
|
+
/**
|
|
192
|
+
* @param id
|
|
193
|
+
*/
|
|
194
|
+
deleteInvoice(id: string, _options?: Configuration): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* @param id
|
|
197
|
+
*/
|
|
198
|
+
getInvoiceWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
199
|
+
/**
|
|
200
|
+
* @param id
|
|
201
|
+
*/
|
|
202
|
+
getInvoice(id: string, _options?: Configuration): Promise<APIInvoice>;
|
|
203
|
+
/**
|
|
204
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
205
|
+
*/
|
|
206
|
+
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice: APIQueryPayloadAPIInvoice, _options?: Configuration): Promise<HttpInfo<QueryResultAPIInvoice>>;
|
|
207
|
+
/**
|
|
208
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
209
|
+
*/
|
|
210
|
+
queryInvoices(aPIQueryPayloadAPIInvoice: APIQueryPayloadAPIInvoice, _options?: Configuration): Promise<QueryResultAPIInvoice>;
|
|
211
|
+
/**
|
|
212
|
+
* @param aPIUpdateInvoicePayload
|
|
213
|
+
* @param id
|
|
214
|
+
*/
|
|
215
|
+
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload: APIUpdateInvoicePayload, id: string, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
216
|
+
/**
|
|
217
|
+
* @param aPIUpdateInvoicePayload
|
|
218
|
+
* @param id
|
|
219
|
+
*/
|
|
220
|
+
updateInvoice(aPIUpdateInvoicePayload: APIUpdateInvoicePayload, id: string, _options?: Configuration): Promise<APIInvoice>;
|
|
221
|
+
}
|
|
222
|
+
import { ProductsApiRequestFactory, ProductsApiResponseProcessor } from "../apis/ProductsApi";
|
|
223
|
+
export declare class PromiseProductsApi {
|
|
224
|
+
private api;
|
|
225
|
+
constructor(configuration: Configuration, requestFactory?: ProductsApiRequestFactory, responseProcessor?: ProductsApiResponseProcessor);
|
|
226
|
+
/**
|
|
227
|
+
* @param aPICreateProductPayload
|
|
228
|
+
*/
|
|
229
|
+
createProductWithHttpInfo(aPICreateProductPayload: APICreateProductPayload, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
230
|
+
/**
|
|
231
|
+
* @param aPICreateProductPayload
|
|
232
|
+
*/
|
|
233
|
+
createProduct(aPICreateProductPayload: APICreateProductPayload, _options?: Configuration): Promise<APIProduct>;
|
|
234
|
+
/**
|
|
235
|
+
* @param id
|
|
236
|
+
*/
|
|
237
|
+
deleteProductWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
238
|
+
/**
|
|
239
|
+
* @param id
|
|
240
|
+
*/
|
|
241
|
+
deleteProduct(id: string, _options?: Configuration): Promise<void>;
|
|
242
|
+
/**
|
|
243
|
+
* @param id
|
|
244
|
+
*/
|
|
245
|
+
getProductWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
246
|
+
/**
|
|
247
|
+
* @param id
|
|
248
|
+
*/
|
|
249
|
+
getProduct(id: string, _options?: Configuration): Promise<APIProduct>;
|
|
250
|
+
/**
|
|
251
|
+
* @param aPIQueryPayloadAPIProduct
|
|
252
|
+
*/
|
|
253
|
+
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct: APIQueryPayloadAPIProduct, _options?: Configuration): Promise<HttpInfo<QueryResultAPIProduct>>;
|
|
254
|
+
/**
|
|
255
|
+
* @param aPIQueryPayloadAPIProduct
|
|
256
|
+
*/
|
|
257
|
+
queryProducts(aPIQueryPayloadAPIProduct: APIQueryPayloadAPIProduct, _options?: Configuration): Promise<QueryResultAPIProduct>;
|
|
258
|
+
/**
|
|
259
|
+
* @param aPIUpdateProductPayload
|
|
260
|
+
* @param id
|
|
261
|
+
*/
|
|
262
|
+
updateProductWithHttpInfo(aPIUpdateProductPayload: APIUpdateProductPayload, id: string, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
263
|
+
/**
|
|
264
|
+
* @param aPIUpdateProductPayload
|
|
265
|
+
* @param id
|
|
266
|
+
*/
|
|
267
|
+
updateProduct(aPIUpdateProductPayload: APIUpdateProductPayload, id: string, _options?: Configuration): Promise<APIProduct>;
|
|
268
|
+
}
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromiseProductsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseEntitlementsApi = exports.PromiseCustomersApi = exports.PromiseAuthenticationApi = void 0;
|
|
4
|
+
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
|
+
class PromiseAuthenticationApi {
|
|
6
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
7
|
+
this.api = new ObservableAPI_1.ObservableAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @param loginRequest
|
|
11
|
+
*/
|
|
12
|
+
loginWithHttpInfo(loginRequest, _options) {
|
|
13
|
+
const result = this.api.loginWithHttpInfo(loginRequest, _options);
|
|
14
|
+
return result.toPromise();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @param loginRequest
|
|
18
|
+
*/
|
|
19
|
+
login(loginRequest, _options) {
|
|
20
|
+
const result = this.api.login(loginRequest, _options);
|
|
21
|
+
return result.toPromise();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.PromiseAuthenticationApi = PromiseAuthenticationApi;
|
|
25
|
+
const ObservableAPI_2 = require("./ObservableAPI");
|
|
26
|
+
class PromiseCustomersApi {
|
|
27
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
28
|
+
this.api = new ObservableAPI_2.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param aPICreateCustomerPayload
|
|
32
|
+
*/
|
|
33
|
+
createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
|
|
34
|
+
const result = this.api.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options);
|
|
35
|
+
return result.toPromise();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @param aPICreateCustomerPayload
|
|
39
|
+
*/
|
|
40
|
+
createCustomer(aPICreateCustomerPayload, _options) {
|
|
41
|
+
const result = this.api.createCustomer(aPICreateCustomerPayload, _options);
|
|
42
|
+
return result.toPromise();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @param id
|
|
46
|
+
*/
|
|
47
|
+
deleteCustomerWithHttpInfo(id, _options) {
|
|
48
|
+
const result = this.api.deleteCustomerWithHttpInfo(id, _options);
|
|
49
|
+
return result.toPromise();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @param id
|
|
53
|
+
*/
|
|
54
|
+
deleteCustomer(id, _options) {
|
|
55
|
+
const result = this.api.deleteCustomer(id, _options);
|
|
56
|
+
return result.toPromise();
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param id
|
|
60
|
+
*/
|
|
61
|
+
getCustomerWithHttpInfo(id, _options) {
|
|
62
|
+
const result = this.api.getCustomerWithHttpInfo(id, _options);
|
|
63
|
+
return result.toPromise();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @param id
|
|
67
|
+
*/
|
|
68
|
+
getCustomer(id, _options) {
|
|
69
|
+
const result = this.api.getCustomer(id, _options);
|
|
70
|
+
return result.toPromise();
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param aPIQueryPayloadAPICustomer
|
|
74
|
+
*/
|
|
75
|
+
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
|
|
76
|
+
const result = this.api.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options);
|
|
77
|
+
return result.toPromise();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @param aPIQueryPayloadAPICustomer
|
|
81
|
+
*/
|
|
82
|
+
queryCustomers(aPIQueryPayloadAPICustomer, _options) {
|
|
83
|
+
const result = this.api.queryCustomers(aPIQueryPayloadAPICustomer, _options);
|
|
84
|
+
return result.toPromise();
|
|
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
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @param aPIUpdateCustomerPayload
|
|
106
|
+
* @param id
|
|
107
|
+
*/
|
|
108
|
+
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
|
|
109
|
+
const result = this.api.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options);
|
|
110
|
+
return result.toPromise();
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @param aPIUpdateCustomerPayload
|
|
114
|
+
* @param id
|
|
115
|
+
*/
|
|
116
|
+
updateCustomer(aPIUpdateCustomerPayload, id, _options) {
|
|
117
|
+
const result = this.api.updateCustomer(aPIUpdateCustomerPayload, id, _options);
|
|
118
|
+
return result.toPromise();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.PromiseCustomersApi = PromiseCustomersApi;
|
|
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");
|
|
172
|
+
class PromiseEventsApi {
|
|
173
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
174
|
+
this.api = new ObservableAPI_4.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @param id
|
|
178
|
+
*/
|
|
179
|
+
deleteEventWithHttpInfo(id, _options) {
|
|
180
|
+
const result = this.api.deleteEventWithHttpInfo(id, _options);
|
|
181
|
+
return result.toPromise();
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @param id
|
|
185
|
+
*/
|
|
186
|
+
deleteEvent(id, _options) {
|
|
187
|
+
const result = this.api.deleteEvent(id, _options);
|
|
188
|
+
return result.toPromise();
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @param id
|
|
192
|
+
*/
|
|
193
|
+
getEventWithHttpInfo(id, _options) {
|
|
194
|
+
const result = this.api.getEventWithHttpInfo(id, _options);
|
|
195
|
+
return result.toPromise();
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @param id
|
|
199
|
+
*/
|
|
200
|
+
getEvent(id, _options) {
|
|
201
|
+
const result = this.api.getEvent(id, _options);
|
|
202
|
+
return result.toPromise();
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @param aPIIngestEventPayload
|
|
206
|
+
*/
|
|
207
|
+
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
|
|
208
|
+
const result = this.api.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options);
|
|
209
|
+
return result.toPromise();
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @param aPIIngestEventPayload
|
|
213
|
+
*/
|
|
214
|
+
ingestEventToTheSystem(aPIIngestEventPayload, _options) {
|
|
215
|
+
const result = this.api.ingestEventToTheSystem(aPIIngestEventPayload, _options);
|
|
216
|
+
return result.toPromise();
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @param aPIQueryPayloadAPIEvent
|
|
220
|
+
*/
|
|
221
|
+
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
|
|
222
|
+
const result = this.api.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options);
|
|
223
|
+
return result.toPromise();
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @param aPIQueryPayloadAPIEvent
|
|
227
|
+
*/
|
|
228
|
+
queryEvents(aPIQueryPayloadAPIEvent, _options) {
|
|
229
|
+
const result = this.api.queryEvents(aPIQueryPayloadAPIEvent, _options);
|
|
230
|
+
return result.toPromise();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.PromiseEventsApi = PromiseEventsApi;
|
|
234
|
+
const ObservableAPI_5 = require("./ObservableAPI");
|
|
235
|
+
class PromiseInvoicesApi {
|
|
236
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
237
|
+
this.api = new ObservableAPI_5.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* @param id
|
|
241
|
+
*/
|
|
242
|
+
calculateInvoiceWithHttpInfo(id, _options) {
|
|
243
|
+
const result = this.api.calculateInvoiceWithHttpInfo(id, _options);
|
|
244
|
+
return result.toPromise();
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @param id
|
|
248
|
+
*/
|
|
249
|
+
calculateInvoice(id, _options) {
|
|
250
|
+
const result = this.api.calculateInvoice(id, _options);
|
|
251
|
+
return result.toPromise();
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @param aPICreateInvoicePayload
|
|
255
|
+
*/
|
|
256
|
+
createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
|
|
257
|
+
const result = this.api.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options);
|
|
258
|
+
return result.toPromise();
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @param aPICreateInvoicePayload
|
|
262
|
+
*/
|
|
263
|
+
createInvoice(aPICreateInvoicePayload, _options) {
|
|
264
|
+
const result = this.api.createInvoice(aPICreateInvoicePayload, _options);
|
|
265
|
+
return result.toPromise();
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @param id
|
|
269
|
+
*/
|
|
270
|
+
deleteInvoiceWithHttpInfo(id, _options) {
|
|
271
|
+
const result = this.api.deleteInvoiceWithHttpInfo(id, _options);
|
|
272
|
+
return result.toPromise();
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @param id
|
|
276
|
+
*/
|
|
277
|
+
deleteInvoice(id, _options) {
|
|
278
|
+
const result = this.api.deleteInvoice(id, _options);
|
|
279
|
+
return result.toPromise();
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @param id
|
|
283
|
+
*/
|
|
284
|
+
getInvoiceWithHttpInfo(id, _options) {
|
|
285
|
+
const result = this.api.getInvoiceWithHttpInfo(id, _options);
|
|
286
|
+
return result.toPromise();
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* @param id
|
|
290
|
+
*/
|
|
291
|
+
getInvoice(id, _options) {
|
|
292
|
+
const result = this.api.getInvoice(id, _options);
|
|
293
|
+
return result.toPromise();
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
297
|
+
*/
|
|
298
|
+
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
|
|
299
|
+
const result = this.api.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options);
|
|
300
|
+
return result.toPromise();
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
304
|
+
*/
|
|
305
|
+
queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
|
|
306
|
+
const result = this.api.queryInvoices(aPIQueryPayloadAPIInvoice, _options);
|
|
307
|
+
return result.toPromise();
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @param aPIUpdateInvoicePayload
|
|
311
|
+
* @param id
|
|
312
|
+
*/
|
|
313
|
+
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
|
|
314
|
+
const result = this.api.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options);
|
|
315
|
+
return result.toPromise();
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @param aPIUpdateInvoicePayload
|
|
319
|
+
* @param id
|
|
320
|
+
*/
|
|
321
|
+
updateInvoice(aPIUpdateInvoicePayload, id, _options) {
|
|
322
|
+
const result = this.api.updateInvoice(aPIUpdateInvoicePayload, id, _options);
|
|
323
|
+
return result.toPromise();
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
327
|
+
const ObservableAPI_6 = require("./ObservableAPI");
|
|
328
|
+
class PromiseProductsApi {
|
|
329
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
330
|
+
this.api = new ObservableAPI_6.ObservableProductsApi(configuration, requestFactory, responseProcessor);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @param aPICreateProductPayload
|
|
334
|
+
*/
|
|
335
|
+
createProductWithHttpInfo(aPICreateProductPayload, _options) {
|
|
336
|
+
const result = this.api.createProductWithHttpInfo(aPICreateProductPayload, _options);
|
|
337
|
+
return result.toPromise();
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @param aPICreateProductPayload
|
|
341
|
+
*/
|
|
342
|
+
createProduct(aPICreateProductPayload, _options) {
|
|
343
|
+
const result = this.api.createProduct(aPICreateProductPayload, _options);
|
|
344
|
+
return result.toPromise();
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @param id
|
|
348
|
+
*/
|
|
349
|
+
deleteProductWithHttpInfo(id, _options) {
|
|
350
|
+
const result = this.api.deleteProductWithHttpInfo(id, _options);
|
|
351
|
+
return result.toPromise();
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @param id
|
|
355
|
+
*/
|
|
356
|
+
deleteProduct(id, _options) {
|
|
357
|
+
const result = this.api.deleteProduct(id, _options);
|
|
358
|
+
return result.toPromise();
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @param id
|
|
362
|
+
*/
|
|
363
|
+
getProductWithHttpInfo(id, _options) {
|
|
364
|
+
const result = this.api.getProductWithHttpInfo(id, _options);
|
|
365
|
+
return result.toPromise();
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @param id
|
|
369
|
+
*/
|
|
370
|
+
getProduct(id, _options) {
|
|
371
|
+
const result = this.api.getProduct(id, _options);
|
|
372
|
+
return result.toPromise();
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @param aPIQueryPayloadAPIProduct
|
|
376
|
+
*/
|
|
377
|
+
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
|
|
378
|
+
const result = this.api.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options);
|
|
379
|
+
return result.toPromise();
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @param aPIQueryPayloadAPIProduct
|
|
383
|
+
*/
|
|
384
|
+
queryProducts(aPIQueryPayloadAPIProduct, _options) {
|
|
385
|
+
const result = this.api.queryProducts(aPIQueryPayloadAPIProduct, _options);
|
|
386
|
+
return result.toPromise();
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @param aPIUpdateProductPayload
|
|
390
|
+
* @param id
|
|
391
|
+
*/
|
|
392
|
+
updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
|
|
393
|
+
const result = this.api.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options);
|
|
394
|
+
return result.toPromise();
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* @param aPIUpdateProductPayload
|
|
398
|
+
* @param id
|
|
399
|
+
*/
|
|
400
|
+
updateProduct(aPIUpdateProductPayload, id, _options) {
|
|
401
|
+
const result = this.api.updateProduct(aPIUpdateProductPayload, id, _options);
|
|
402
|
+
return result.toPromise();
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
exports.PromiseProductsApi = PromiseProductsApi;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns if a specific http code is in a given code range
|
|
3
|
+
* where the code range is defined as a combination of digits
|
|
4
|
+
* and "X" (the letter X) with a length of 3
|
|
5
|
+
*
|
|
6
|
+
* @param codeRange string with length 3 consisting of digits and "X" (the letter X)
|
|
7
|
+
* @param code the http status code to be checked against the code range
|
|
8
|
+
*/
|
|
9
|
+
export declare function isCodeInRange(codeRange: string, code: number): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Returns if it can consume form
|
|
12
|
+
*
|
|
13
|
+
* @param consumes array
|
|
14
|
+
*/
|
|
15
|
+
export declare function canConsumeForm(contentTypes: string[]): boolean;
|