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.
Files changed (158) hide show
  1. package/dist/openapi-v2/apis/AuthenticationApi.d.ts +24 -0
  2. package/dist/openapi-v2/apis/AuthenticationApi.js +79 -0
  3. package/dist/openapi-v2/apis/CustomersApi.d.ts +92 -0
  4. package/dist/openapi-v2/apis/CustomersApi.js +362 -0
  5. package/dist/openapi-v2/apis/EntitlementsApi.d.ts +49 -0
  6. package/dist/openapi-v2/apis/EntitlementsApi.js +176 -0
  7. package/dist/openapi-v2/apis/EventsApi.d.ts +63 -0
  8. package/dist/openapi-v2/apis/EventsApi.js +231 -0
  9. package/dist/openapi-v2/apis/InvoicesApi.d.ts +88 -0
  10. package/dist/openapi-v2/apis/InvoicesApi.js +344 -0
  11. package/dist/openapi-v2/apis/ProductsApi.d.ts +76 -0
  12. package/dist/openapi-v2/apis/ProductsApi.js +295 -0
  13. package/dist/openapi-v2/apis/baseapi.d.ts +33 -0
  14. package/dist/openapi-v2/apis/baseapi.js +41 -0
  15. package/dist/openapi-v2/apis/exception.d.ts +19 -0
  16. package/dist/openapi-v2/apis/exception.js +22 -0
  17. package/dist/openapi-v2/auth/auth.d.ts +38 -0
  18. package/dist/openapi-v2/auth/auth.js +16 -0
  19. package/dist/openapi-v2/configuration.d.ts +63 -0
  20. package/dist/openapi-v2/configuration.js +34 -0
  21. package/dist/openapi-v2/http/http.d.ts +142 -0
  22. package/dist/openapi-v2/http/http.js +229 -0
  23. package/dist/openapi-v2/http/isomorphic-fetch.d.ts +5 -0
  24. package/dist/openapi-v2/http/isomorphic-fetch.js +33 -0
  25. package/dist/openapi-v2/index.d.ts +10 -0
  26. package/dist/openapi-v2/index.js +33 -0
  27. package/dist/openapi-v2/middleware.d.ts +54 -0
  28. package/dist/openapi-v2/middleware.js +16 -0
  29. package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +45 -0
  30. package/dist/openapi-v2/models/APICreateCustomerPayload.js +49 -0
  31. package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +41 -0
  32. package/dist/openapi-v2/models/APICreateInvoicePayload.js +49 -0
  33. package/dist/openapi-v2/models/APICreateProductPayload.d.ts +43 -0
  34. package/dist/openapi-v2/models/APICreateProductPayload.js +55 -0
  35. package/dist/openapi-v2/models/APICustomer.d.ts +64 -0
  36. package/dist/openapi-v2/models/APICustomer.js +76 -0
  37. package/dist/openapi-v2/models/APIEntitlement.d.ts +56 -0
  38. package/dist/openapi-v2/models/APIEntitlement.js +79 -0
  39. package/dist/openapi-v2/models/APIEvent.d.ts +72 -0
  40. package/dist/openapi-v2/models/APIEvent.js +88 -0
  41. package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +49 -0
  42. package/dist/openapi-v2/models/APIIngestEventPayload.js +55 -0
  43. package/dist/openapi-v2/models/APIInvoice.d.ts +71 -0
  44. package/dist/openapi-v2/models/APIInvoice.js +88 -0
  45. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +38 -0
  46. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +40 -0
  47. package/dist/openapi-v2/models/APIProduct.d.ts +62 -0
  48. package/dist/openapi-v2/models/APIProduct.js +82 -0
  49. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +43 -0
  50. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +49 -0
  51. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.d.ts +43 -0
  52. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.js +49 -0
  53. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +43 -0
  54. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +49 -0
  55. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +43 -0
  56. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +49 -0
  57. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +43 -0
  58. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +49 -0
  59. package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +45 -0
  60. package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +49 -0
  61. package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +41 -0
  62. package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +49 -0
  63. package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +43 -0
  64. package/dist/openapi-v2/models/APIUpdateProductPayload.js +55 -0
  65. package/dist/openapi-v2/models/Aggregation.d.ts +32 -0
  66. package/dist/openapi-v2/models/Aggregation.js +43 -0
  67. package/dist/openapi-v2/models/AggregationMethods.d.ts +18 -0
  68. package/dist/openapi-v2/models/AggregationMethods.js +22 -0
  69. package/dist/openapi-v2/models/Condition.d.ts +29 -0
  70. package/dist/openapi-v2/models/Condition.js +31 -0
  71. package/dist/openapi-v2/models/Criterion.d.ts +32 -0
  72. package/dist/openapi-v2/models/Criterion.js +43 -0
  73. package/dist/openapi-v2/models/CriterionOperators.d.ts +23 -0
  74. package/dist/openapi-v2/models/CriterionOperators.js +27 -0
  75. package/dist/openapi-v2/models/CriterionValue.d.ts +27 -0
  76. package/dist/openapi-v2/models/CriterionValue.js +24 -0
  77. package/dist/openapi-v2/models/EntitlementRevision.d.ts +36 -0
  78. package/dist/openapi-v2/models/EntitlementRevision.js +55 -0
  79. package/dist/openapi-v2/models/Event.d.ts +54 -0
  80. package/dist/openapi-v2/models/Event.js +85 -0
  81. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +31 -0
  82. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +43 -0
  83. package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +36 -0
  84. package/dist/openapi-v2/models/InvoiceProductBreakdown.js +46 -0
  85. package/dist/openapi-v2/models/Login200Response.d.ts +28 -0
  86. package/dist/openapi-v2/models/Login200Response.js +31 -0
  87. package/dist/openapi-v2/models/LoginRequest.d.ts +28 -0
  88. package/dist/openapi-v2/models/LoginRequest.js +31 -0
  89. package/dist/openapi-v2/models/ObjectSerializer.d.ts +67 -0
  90. package/dist/openapi-v2/models/ObjectSerializer.js +377 -0
  91. package/dist/openapi-v2/models/Pricing.d.ts +30 -0
  92. package/dist/openapi-v2/models/Pricing.js +37 -0
  93. package/dist/openapi-v2/models/PricingTiersInner.d.ts +31 -0
  94. package/dist/openapi-v2/models/PricingTiersInner.js +49 -0
  95. package/dist/openapi-v2/models/ProductBreakdown.d.ts +29 -0
  96. package/dist/openapi-v2/models/ProductBreakdown.js +37 -0
  97. package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +40 -0
  98. package/dist/openapi-v2/models/QueryResultAPICustomer.js +43 -0
  99. package/dist/openapi-v2/models/QueryResultAPIEntitlement.d.ts +40 -0
  100. package/dist/openapi-v2/models/QueryResultAPIEntitlement.js +43 -0
  101. package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +40 -0
  102. package/dist/openapi-v2/models/QueryResultAPIEvent.js +43 -0
  103. package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +40 -0
  104. package/dist/openapi-v2/models/QueryResultAPIInvoice.js +43 -0
  105. package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +40 -0
  106. package/dist/openapi-v2/models/QueryResultAPIProduct.js +43 -0
  107. package/dist/openapi-v2/models/ReviseEntitlementPayload.d.ts +37 -0
  108. package/dist/openapi-v2/models/ReviseEntitlementPayload.js +43 -0
  109. package/dist/openapi-v2/models/UpdateEventPayload.d.ts +33 -0
  110. package/dist/openapi-v2/models/UpdateEventPayload.js +31 -0
  111. package/dist/openapi-v2/models/all.d.ts +40 -0
  112. package/dist/openapi-v2/models/all.js +56 -0
  113. package/dist/openapi-v2/rxjsStub.d.ts +10 -0
  114. package/dist/openapi-v2/rxjsStub.js +31 -0
  115. package/dist/openapi-v2/servers.d.ts +38 -0
  116. package/dist/openapi-v2/servers.js +51 -0
  117. package/dist/openapi-v2/types/ObservableAPI.d.ts +281 -0
  118. package/dist/openapi-v2/types/ObservableAPI.js +694 -0
  119. package/dist/openapi-v2/types/PromiseAPI.d.ts +268 -0
  120. package/dist/openapi-v2/types/PromiseAPI.js +405 -0
  121. package/dist/openapi-v2/util.d.ts +15 -0
  122. package/dist/openapi-v2/util.js +42 -0
  123. package/dist/sdk/services/configuration.service.js +1 -1
  124. package/dist/sdk-v2/clients/CustomersClient.d.ts +11 -0
  125. package/dist/sdk-v2/clients/CustomersClient.js +50 -0
  126. package/dist/sdk-v2/clients/EntitlementsClient.d.ts +8 -0
  127. package/dist/sdk-v2/clients/EntitlementsClient.js +35 -0
  128. package/dist/sdk-v2/clients/EventsClient.d.ts +9 -0
  129. package/dist/sdk-v2/clients/EventsClient.js +40 -0
  130. package/dist/sdk-v2/clients/InvoicesClient.d.ts +11 -0
  131. package/dist/sdk-v2/clients/InvoicesClient.js +50 -0
  132. package/dist/sdk-v2/clients/ProductsClient.d.ts +10 -0
  133. package/dist/sdk-v2/clients/ProductsClient.js +45 -0
  134. package/dist/sdk-v2/clients/index.d.ts +4 -0
  135. package/dist/sdk-v2/clients/index.js +20 -0
  136. package/dist/sdk-v2/index.d.ts +11 -0
  137. package/dist/sdk-v2/index.js +53 -0
  138. package/dist/sdk-v2/services/configuration.service.d.ts +21 -0
  139. package/dist/sdk-v2/services/configuration.service.js +98 -0
  140. package/dist/sdk-v2/services/index.d.ts +1 -0
  141. package/dist/sdk-v2/services/index.js +17 -0
  142. package/dist/sdk-v2/types/Customers.d.ts +1 -0
  143. package/dist/sdk-v2/types/Customers.js +2 -0
  144. package/dist/sdk-v2/types/Entitlements.d.ts +1 -0
  145. package/dist/sdk-v2/types/Entitlements.js +2 -0
  146. package/dist/sdk-v2/types/Events.d.ts +1 -0
  147. package/dist/sdk-v2/types/Events.js +2 -0
  148. package/dist/sdk-v2/types/Invoices.d.ts +1 -0
  149. package/dist/sdk-v2/types/Invoices.js +2 -0
  150. package/dist/sdk-v2/types/Products.d.ts +1 -0
  151. package/dist/sdk-v2/types/Products.js +2 -0
  152. package/dist/sdk-v2/types/index.d.ts +6 -0
  153. package/dist/sdk-v2/types/index.js +24 -0
  154. package/dist/v2.d.ts +1 -0
  155. package/dist/v2.js +17 -0
  156. package/package.json +17 -1
  157. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -845
  158. package/dist/openapi/types/ObjectParamAPI.js +0 -606
@@ -0,0 +1,24 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
+ import { Login200Response } from '../models/Login200Response';
5
+ import { LoginRequest } from '../models/LoginRequest';
6
+ /**
7
+ * no description
8
+ */
9
+ export declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory {
10
+ /**
11
+ * @param loginRequest
12
+ */
13
+ login(loginRequest: LoginRequest, _options?: Configuration): Promise<RequestContext>;
14
+ }
15
+ export declare class AuthenticationApiResponseProcessor {
16
+ /**
17
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
18
+ * to the expected objects
19
+ *
20
+ * @params response Response returned by the server for a request to login
21
+ * @throws ApiException if the response code was not in [200, 299]
22
+ */
23
+ loginWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Login200Response>>;
24
+ }
@@ -0,0 +1,79 @@
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.AuthenticationApiResponseProcessor = exports.AuthenticationApiRequestFactory = void 0;
13
+ // TODO: better import syntax?
14
+ const baseapi_1 = require("./baseapi");
15
+ const http_1 = require("../http/http");
16
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
17
+ const exception_1 = require("./exception");
18
+ const util_1 = require("../util");
19
+ /**
20
+ * no description
21
+ */
22
+ class AuthenticationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
23
+ /**
24
+ * @param loginRequest
25
+ */
26
+ login(loginRequest, _options) {
27
+ var _a, _b, _c;
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let _config = _options || this.configuration;
30
+ // verify required parameter 'loginRequest' is not null or undefined
31
+ if (loginRequest === null || loginRequest === undefined) {
32
+ throw new baseapi_1.RequiredError("AuthenticationApi", "login", "loginRequest");
33
+ }
34
+ // Path Params
35
+ const localVarPath = '/auth/login';
36
+ // Make Request Context
37
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
38
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
39
+ // Body Params
40
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
41
+ "application/json"
42
+ ]);
43
+ requestContext.setHeaderParam("Content-Type", contentType);
44
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(loginRequest, "LoginRequest", ""), contentType);
45
+ requestContext.setBody(serializedBody);
46
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
47
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
48
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
49
+ }
50
+ return requestContext;
51
+ });
52
+ }
53
+ }
54
+ exports.AuthenticationApiRequestFactory = AuthenticationApiRequestFactory;
55
+ class AuthenticationApiResponseProcessor {
56
+ /**
57
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
58
+ * to the expected objects
59
+ *
60
+ * @params response Response returned by the server for a request to login
61
+ * @throws ApiException if the response code was not in [200, 299]
62
+ */
63
+ loginWithHttpInfo(response) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
66
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
67
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Login200Response", "");
68
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
69
+ }
70
+ // Work around for missing responses in specification, e.g. for petstore.yaml
71
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
72
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Login200Response", "");
73
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
74
+ }
75
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
76
+ });
77
+ }
78
+ }
79
+ exports.AuthenticationApiResponseProcessor = AuthenticationApiResponseProcessor;
@@ -0,0 +1,92 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
+ import { APICreateCustomerPayload } from '../models/APICreateCustomerPayload';
5
+ import { APICustomer } from '../models/APICustomer';
6
+ import { APIEntitlement } from '../models/APIEntitlement';
7
+ import { APIQueryPayloadAPICustomer } from '../models/APIQueryPayloadAPICustomer';
8
+ import { APIUpdateCustomerPayload } from '../models/APIUpdateCustomerPayload';
9
+ import { QueryResultAPICustomer } from '../models/QueryResultAPICustomer';
10
+ import { ReviseEntitlementPayload } from '../models/ReviseEntitlementPayload';
11
+ /**
12
+ * no description
13
+ */
14
+ export declare class CustomersApiRequestFactory extends BaseAPIRequestFactory {
15
+ /**
16
+ * @param aPICreateCustomerPayload
17
+ */
18
+ createCustomer(aPICreateCustomerPayload: APICreateCustomerPayload, _options?: Configuration): Promise<RequestContext>;
19
+ /**
20
+ * @param id
21
+ */
22
+ deleteCustomer(id: string, _options?: Configuration): Promise<RequestContext>;
23
+ /**
24
+ * @param id
25
+ */
26
+ getCustomer(id: string, _options?: Configuration): Promise<RequestContext>;
27
+ /**
28
+ * @param aPIQueryPayloadAPICustomer
29
+ */
30
+ queryCustomers(aPIQueryPayloadAPICustomer: APIQueryPayloadAPICustomer, _options?: Configuration): Promise<RequestContext>;
31
+ /**
32
+ * @param body
33
+ * @param id
34
+ * @param productId
35
+ */
36
+ updateACustomersProduct(body: ReviseEntitlementPayload, id: string, productId: string, _options?: Configuration): Promise<RequestContext>;
37
+ /**
38
+ * @param aPIUpdateCustomerPayload
39
+ * @param id
40
+ */
41
+ updateCustomer(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Promise<RequestContext>;
42
+ }
43
+ export declare class CustomersApiResponseProcessor {
44
+ /**
45
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
46
+ * to the expected objects
47
+ *
48
+ * @params response Response returned by the server for a request to createCustomer
49
+ * @throws ApiException if the response code was not in [200, 299]
50
+ */
51
+ createCustomerWithHttpInfo(response: ResponseContext): Promise<HttpInfo<APICustomer>>;
52
+ /**
53
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
54
+ * to the expected objects
55
+ *
56
+ * @params response Response returned by the server for a request to deleteCustomer
57
+ * @throws ApiException if the response code was not in [200, 299]
58
+ */
59
+ deleteCustomerWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
60
+ /**
61
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
62
+ * to the expected objects
63
+ *
64
+ * @params response Response returned by the server for a request to getCustomer
65
+ * @throws ApiException if the response code was not in [200, 299]
66
+ */
67
+ getCustomerWithHttpInfo(response: ResponseContext): Promise<HttpInfo<APICustomer>>;
68
+ /**
69
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
70
+ * to the expected objects
71
+ *
72
+ * @params response Response returned by the server for a request to queryCustomers
73
+ * @throws ApiException if the response code was not in [200, 299]
74
+ */
75
+ queryCustomersWithHttpInfo(response: ResponseContext): Promise<HttpInfo<QueryResultAPICustomer>>;
76
+ /**
77
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
78
+ * to the expected objects
79
+ *
80
+ * @params response Response returned by the server for a request to updateACustomersProduct
81
+ * @throws ApiException if the response code was not in [200, 299]
82
+ */
83
+ updateACustomersProductWithHttpInfo(response: ResponseContext): Promise<HttpInfo<APIEntitlement>>;
84
+ /**
85
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
86
+ * to the expected objects
87
+ *
88
+ * @params response Response returned by the server for a request to updateCustomer
89
+ * @throws ApiException if the response code was not in [200, 299]
90
+ */
91
+ updateCustomerWithHttpInfo(response: ResponseContext): Promise<HttpInfo<APICustomer>>;
92
+ }
@@ -0,0 +1,362 @@
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.CustomersApiResponseProcessor = exports.CustomersApiRequestFactory = void 0;
13
+ // TODO: better import syntax?
14
+ const baseapi_1 = require("./baseapi");
15
+ const http_1 = require("../http/http");
16
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
17
+ const exception_1 = require("./exception");
18
+ const util_1 = require("../util");
19
+ /**
20
+ * no description
21
+ */
22
+ class CustomersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
23
+ /**
24
+ * @param aPICreateCustomerPayload
25
+ */
26
+ createCustomer(aPICreateCustomerPayload, _options) {
27
+ var _a, _b, _c;
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let _config = _options || this.configuration;
30
+ // verify required parameter 'aPICreateCustomerPayload' is not null or undefined
31
+ if (aPICreateCustomerPayload === null || aPICreateCustomerPayload === undefined) {
32
+ throw new baseapi_1.RequiredError("CustomersApi", "createCustomer", "aPICreateCustomerPayload");
33
+ }
34
+ // Path Params
35
+ const localVarPath = '/customers';
36
+ // Make Request Context
37
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
38
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
39
+ // Body Params
40
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
41
+ "application/json"
42
+ ]);
43
+ requestContext.setHeaderParam("Content-Type", contentType);
44
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(aPICreateCustomerPayload, "APICreateCustomerPayload", ""), contentType);
45
+ requestContext.setBody(serializedBody);
46
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
47
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
48
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
49
+ }
50
+ return requestContext;
51
+ });
52
+ }
53
+ /**
54
+ * @param id
55
+ */
56
+ deleteCustomer(id, _options) {
57
+ var _a, _b, _c;
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ let _config = _options || this.configuration;
60
+ // verify required parameter 'id' is not null or undefined
61
+ if (id === null || id === undefined) {
62
+ throw new baseapi_1.RequiredError("CustomersApi", "deleteCustomer", "id");
63
+ }
64
+ // Path Params
65
+ const localVarPath = '/customers/{id}'
66
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
67
+ // Make Request Context
68
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
69
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
70
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
71
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
72
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
73
+ }
74
+ return requestContext;
75
+ });
76
+ }
77
+ /**
78
+ * @param id
79
+ */
80
+ getCustomer(id, _options) {
81
+ var _a, _b, _c;
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ let _config = _options || this.configuration;
84
+ // verify required parameter 'id' is not null or undefined
85
+ if (id === null || id === undefined) {
86
+ throw new baseapi_1.RequiredError("CustomersApi", "getCustomer", "id");
87
+ }
88
+ // Path Params
89
+ const localVarPath = '/customers/{id}'
90
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
91
+ // Make Request Context
92
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
93
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
94
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
95
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
96
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
97
+ }
98
+ return requestContext;
99
+ });
100
+ }
101
+ /**
102
+ * @param aPIQueryPayloadAPICustomer
103
+ */
104
+ queryCustomers(aPIQueryPayloadAPICustomer, _options) {
105
+ var _a, _b, _c;
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ let _config = _options || this.configuration;
108
+ // verify required parameter 'aPIQueryPayloadAPICustomer' is not null or undefined
109
+ if (aPIQueryPayloadAPICustomer === null || aPIQueryPayloadAPICustomer === undefined) {
110
+ throw new baseapi_1.RequiredError("CustomersApi", "queryCustomers", "aPIQueryPayloadAPICustomer");
111
+ }
112
+ // Path Params
113
+ const localVarPath = '/customers/query';
114
+ // Make Request Context
115
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
116
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
117
+ // Body Params
118
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
119
+ "application/json"
120
+ ]);
121
+ requestContext.setHeaderParam("Content-Type", contentType);
122
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(aPIQueryPayloadAPICustomer, "APIQueryPayloadAPICustomer", ""), contentType);
123
+ requestContext.setBody(serializedBody);
124
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
125
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
126
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
127
+ }
128
+ return requestContext;
129
+ });
130
+ }
131
+ /**
132
+ * @param body
133
+ * @param id
134
+ * @param productId
135
+ */
136
+ updateACustomersProduct(body, id, productId, _options) {
137
+ var _a, _b, _c;
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ let _config = _options || this.configuration;
140
+ // verify required parameter 'body' is not null or undefined
141
+ if (body === null || body === undefined) {
142
+ throw new baseapi_1.RequiredError("CustomersApi", "updateACustomersProduct", "body");
143
+ }
144
+ // verify required parameter 'id' is not null or undefined
145
+ if (id === null || id === undefined) {
146
+ throw new baseapi_1.RequiredError("CustomersApi", "updateACustomersProduct", "id");
147
+ }
148
+ // verify required parameter 'productId' is not null or undefined
149
+ if (productId === null || productId === undefined) {
150
+ throw new baseapi_1.RequiredError("CustomersApi", "updateACustomersProduct", "productId");
151
+ }
152
+ // Path Params
153
+ const localVarPath = '/customers/{id}/products/{productId}'
154
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
155
+ .replace('{' + 'productId' + '}', encodeURIComponent(String(productId)));
156
+ // Make Request Context
157
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
158
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
159
+ // Body Params
160
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
161
+ "application/json"
162
+ ]);
163
+ requestContext.setHeaderParam("Content-Type", contentType);
164
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ReviseEntitlementPayload", ""), contentType);
165
+ requestContext.setBody(serializedBody);
166
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
167
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
168
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
169
+ }
170
+ return requestContext;
171
+ });
172
+ }
173
+ /**
174
+ * @param aPIUpdateCustomerPayload
175
+ * @param id
176
+ */
177
+ updateCustomer(aPIUpdateCustomerPayload, id, _options) {
178
+ var _a, _b, _c;
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ let _config = _options || this.configuration;
181
+ // verify required parameter 'aPIUpdateCustomerPayload' is not null or undefined
182
+ if (aPIUpdateCustomerPayload === null || aPIUpdateCustomerPayload === undefined) {
183
+ throw new baseapi_1.RequiredError("CustomersApi", "updateCustomer", "aPIUpdateCustomerPayload");
184
+ }
185
+ // verify required parameter 'id' is not null or undefined
186
+ if (id === null || id === undefined) {
187
+ throw new baseapi_1.RequiredError("CustomersApi", "updateCustomer", "id");
188
+ }
189
+ // Path Params
190
+ const localVarPath = '/customers/{id}'
191
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
192
+ // Make Request Context
193
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
194
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
195
+ // Body Params
196
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
197
+ "application/json"
198
+ ]);
199
+ requestContext.setHeaderParam("Content-Type", contentType);
200
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(aPIUpdateCustomerPayload, "APIUpdateCustomerPayload", ""), contentType);
201
+ requestContext.setBody(serializedBody);
202
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
203
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
204
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
205
+ }
206
+ return requestContext;
207
+ });
208
+ }
209
+ }
210
+ exports.CustomersApiRequestFactory = CustomersApiRequestFactory;
211
+ class CustomersApiResponseProcessor {
212
+ /**
213
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
214
+ * to the expected objects
215
+ *
216
+ * @params response Response returned by the server for a request to createCustomer
217
+ * @throws ApiException if the response code was not in [200, 299]
218
+ */
219
+ createCustomerWithHttpInfo(response) {
220
+ return __awaiter(this, void 0, void 0, function* () {
221
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
222
+ if ((0, util_1.isCodeInRange)("201", response.httpStatusCode)) {
223
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APICustomer", "");
224
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
225
+ }
226
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
227
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid payload", undefined, response.headers);
228
+ }
229
+ // Work around for missing responses in specification, e.g. for petstore.yaml
230
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
231
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APICustomer", "");
232
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
233
+ }
234
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
235
+ });
236
+ }
237
+ /**
238
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
239
+ * to the expected objects
240
+ *
241
+ * @params response Response returned by the server for a request to deleteCustomer
242
+ * @throws ApiException if the response code was not in [200, 299]
243
+ */
244
+ deleteCustomerWithHttpInfo(response) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
247
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
248
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined);
249
+ }
250
+ // Work around for missing responses in specification, e.g. for petstore.yaml
251
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
252
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
253
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
254
+ }
255
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
256
+ });
257
+ }
258
+ /**
259
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
260
+ * to the expected objects
261
+ *
262
+ * @params response Response returned by the server for a request to getCustomer
263
+ * @throws ApiException if the response code was not in [200, 299]
264
+ */
265
+ getCustomerWithHttpInfo(response) {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
268
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
269
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APICustomer", "");
270
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
271
+ }
272
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
273
+ throw new exception_1.ApiException(response.httpStatusCode, "Customer not found", undefined, response.headers);
274
+ }
275
+ // Work around for missing responses in specification, e.g. for petstore.yaml
276
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
277
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APICustomer", "");
278
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
279
+ }
280
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
281
+ });
282
+ }
283
+ /**
284
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
285
+ * to the expected objects
286
+ *
287
+ * @params response Response returned by the server for a request to queryCustomers
288
+ * @throws ApiException if the response code was not in [200, 299]
289
+ */
290
+ queryCustomersWithHttpInfo(response) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
293
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
294
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "QueryResultAPICustomer", "");
295
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
296
+ }
297
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
298
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid query", undefined, response.headers);
299
+ }
300
+ // Work around for missing responses in specification, e.g. for petstore.yaml
301
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
302
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "QueryResultAPICustomer", "");
303
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
304
+ }
305
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
306
+ });
307
+ }
308
+ /**
309
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
310
+ * to the expected objects
311
+ *
312
+ * @params response Response returned by the server for a request to updateACustomersProduct
313
+ * @throws ApiException if the response code was not in [200, 299]
314
+ */
315
+ updateACustomersProductWithHttpInfo(response) {
316
+ return __awaiter(this, void 0, void 0, function* () {
317
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
318
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
319
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIEntitlement", "");
320
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
321
+ }
322
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
323
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid payload", undefined, response.headers);
324
+ }
325
+ // Work around for missing responses in specification, e.g. for petstore.yaml
326
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
327
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIEntitlement", "");
328
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
329
+ }
330
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
331
+ });
332
+ }
333
+ /**
334
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
335
+ * to the expected objects
336
+ *
337
+ * @params response Response returned by the server for a request to updateCustomer
338
+ * @throws ApiException if the response code was not in [200, 299]
339
+ */
340
+ updateCustomerWithHttpInfo(response) {
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
343
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
344
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APICustomer", "");
345
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
346
+ }
347
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
348
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid payload", undefined, response.headers);
349
+ }
350
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
351
+ throw new exception_1.ApiException(response.httpStatusCode, "Customer not found", undefined, response.headers);
352
+ }
353
+ // Work around for missing responses in specification, e.g. for petstore.yaml
354
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
355
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APICustomer", "");
356
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
357
+ }
358
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
359
+ });
360
+ }
361
+ }
362
+ exports.CustomersApiResponseProcessor = CustomersApiResponseProcessor;
@@ -0,0 +1,49 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
+ import { APIEntitlement } from '../models/APIEntitlement';
5
+ import { APIQueryPayloadAPIEntitlement } from '../models/APIQueryPayloadAPIEntitlement';
6
+ import { QueryResultAPIEntitlement } from '../models/QueryResultAPIEntitlement';
7
+ /**
8
+ * no description
9
+ */
10
+ export declare class EntitlementsApiRequestFactory extends BaseAPIRequestFactory {
11
+ /**
12
+ * @param id
13
+ */
14
+ deleteEntitlement(id: string, _options?: Configuration): Promise<RequestContext>;
15
+ /**
16
+ * @param id
17
+ */
18
+ getEntitlement(id: string, _options?: Configuration): Promise<RequestContext>;
19
+ /**
20
+ * @param aPIQueryPayloadAPIEntitlement
21
+ */
22
+ queryEntitlements(aPIQueryPayloadAPIEntitlement: APIQueryPayloadAPIEntitlement, _options?: Configuration): Promise<RequestContext>;
23
+ }
24
+ export declare class EntitlementsApiResponseProcessor {
25
+ /**
26
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
27
+ * to the expected objects
28
+ *
29
+ * @params response Response returned by the server for a request to deleteEntitlement
30
+ * @throws ApiException if the response code was not in [200, 299]
31
+ */
32
+ deleteEntitlementWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
33
+ /**
34
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
35
+ * to the expected objects
36
+ *
37
+ * @params response Response returned by the server for a request to getEntitlement
38
+ * @throws ApiException if the response code was not in [200, 299]
39
+ */
40
+ getEntitlementWithHttpInfo(response: ResponseContext): Promise<HttpInfo<APIEntitlement>>;
41
+ /**
42
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
43
+ * to the expected objects
44
+ *
45
+ * @params response Response returned by the server for a request to queryEntitlements
46
+ * @throws ApiException if the response code was not in [200, 299]
47
+ */
48
+ queryEntitlementsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<QueryResultAPIEntitlement>>;
49
+ }