vayu-ts 0.0.4 → 0.0.13
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/README.md +1 -1
- package/package.json +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -17
- package/dist/openapi/apis/AuthApi.d.ts +0 -26
- package/dist/openapi/apis/AuthApi.js +0 -93
- package/dist/openapi/apis/ContractsApi.d.ts +0 -72
- package/dist/openapi/apis/ContractsApi.js +0 -307
- package/dist/openapi/apis/CreditsApi.d.ts +0 -57
- package/dist/openapi/apis/CreditsApi.js +0 -248
- package/dist/openapi/apis/CustomersApi.d.ts +0 -89
- package/dist/openapi/apis/CustomersApi.js +0 -388
- package/dist/openapi/apis/EventsApi.d.ts +0 -91
- package/dist/openapi/apis/EventsApi.js +0 -408
- package/dist/openapi/apis/IntegrationsApi.d.ts +0 -41
- package/dist/openapi/apis/IntegrationsApi.js +0 -170
- package/dist/openapi/apis/InvoicesApi.d.ts +0 -41
- package/dist/openapi/apis/InvoicesApi.js +0 -166
- package/dist/openapi/apis/MetersApi.d.ts +0 -73
- package/dist/openapi/apis/MetersApi.js +0 -316
- package/dist/openapi/apis/PlansApi.d.ts +0 -56
- package/dist/openapi/apis/PlansApi.js +0 -235
- package/dist/openapi/apis/ReportsApi.d.ts +0 -41
- package/dist/openapi/apis/ReportsApi.js +0 -166
- package/dist/openapi/apis/WebhooksApi.d.ts +0 -25
- package/dist/openapi/apis/WebhooksApi.js +0 -101
- package/dist/openapi/apis/baseapi.d.ts +0 -33
- package/dist/openapi/apis/baseapi.js +0 -41
- package/dist/openapi/apis/exception.d.ts +0 -19
- package/dist/openapi/apis/exception.js +0 -22
- package/dist/openapi/auth/auth.d.ts +0 -54
- package/dist/openapi/auth/auth.js +0 -50
- package/dist/openapi/configuration.d.ts +0 -63
- package/dist/openapi/configuration.js +0 -34
- package/dist/openapi/http/http.d.ts +0 -142
- package/dist/openapi/http/http.js +0 -229
- package/dist/openapi/http/isomorphic-fetch.d.ts +0 -5
- package/dist/openapi/http/isomorphic-fetch.js +0 -33
- package/dist/openapi/index.d.ts +0 -10
- package/dist/openapi/index.js +0 -38
- package/dist/openapi/middleware.d.ts +0 -54
- package/dist/openapi/middleware.js +0 -16
- package/dist/openapi/models/AggregationMethod.d.ts +0 -40
- package/dist/openapi/models/AggregationMethod.js +0 -46
- package/dist/openapi/models/AggregationOperator.d.ts +0 -24
- package/dist/openapi/models/AggregationOperator.js +0 -28
- package/dist/openapi/models/BillingCycleStatus.d.ts +0 -15
- package/dist/openapi/models/BillingCycleStatus.js +0 -19
- package/dist/openapi/models/BillingInterval.d.ts +0 -18
- package/dist/openapi/models/BillingInterval.js +0 -22
- package/dist/openapi/models/Condition.d.ts +0 -29
- package/dist/openapi/models/Condition.js +0 -31
- package/dist/openapi/models/ContractStatus.d.ts +0 -18
- package/dist/openapi/models/ContractStatus.js +0 -22
- package/dist/openapi/models/CreateContractRequest.d.ts +0 -43
- package/dist/openapi/models/CreateContractRequest.js +0 -49
- package/dist/openapi/models/CreateContractResponse.d.ts +0 -29
- package/dist/openapi/models/CreateContractResponse.js +0 -31
- package/dist/openapi/models/CreateCustomerRequest.d.ts +0 -35
- package/dist/openapi/models/CreateCustomerRequest.js +0 -37
- package/dist/openapi/models/CreateCustomerResponse.d.ts +0 -29
- package/dist/openapi/models/CreateCustomerResponse.js +0 -31
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +0 -38
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +0 -55
- package/dist/openapi/models/CreditLedgerEntry.d.ts +0 -32
- package/dist/openapi/models/CreditLedgerEntry.js +0 -49
- package/dist/openapi/models/Criterion.d.ts +0 -31
- package/dist/openapi/models/Criterion.js +0 -43
- package/dist/openapi/models/CriterionOperator.d.ts +0 -23
- package/dist/openapi/models/CriterionOperator.js +0 -27
- package/dist/openapi/models/Currency.d.ts +0 -17
- package/dist/openapi/models/Currency.js +0 -21
- package/dist/openapi/models/DeductCreditsRequest.d.ts +0 -35
- package/dist/openapi/models/DeductCreditsRequest.js +0 -37
- package/dist/openapi/models/DeleteContractResponse.d.ts +0 -29
- package/dist/openapi/models/DeleteContractResponse.js +0 -31
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +0 -47
- package/dist/openapi/models/DeleteContractResponseContract.js +0 -73
- package/dist/openapi/models/DeleteCustomerResponse.d.ts +0 -29
- package/dist/openapi/models/DeleteCustomerResponse.js +0 -31
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +0 -39
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +0 -61
- package/dist/openapi/models/DeleteEventResponse.d.ts +0 -29
- package/dist/openapi/models/DeleteEventResponse.js +0 -31
- package/dist/openapi/models/DeleteEventResponseEvent.d.ts +0 -56
- package/dist/openapi/models/DeleteEventResponseEvent.js +0 -82
- package/dist/openapi/models/DeleteMeterResponse.d.ts +0 -29
- package/dist/openapi/models/DeleteMeterResponse.js +0 -31
- package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +0 -43
- package/dist/openapi/models/DeleteMeterResponseMeter.js +0 -73
- package/dist/openapi/models/DeletePlanResponse.d.ts +0 -29
- package/dist/openapi/models/DeletePlanResponse.js +0 -31
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +0 -39
- package/dist/openapi/models/DeletePlanResponsePlan.js +0 -67
- package/dist/openapi/models/Event.d.ts +0 -49
- package/dist/openapi/models/Event.js +0 -55
- package/dist/openapi/models/EventsDryRunRequest.d.ts +0 -29
- package/dist/openapi/models/EventsDryRunRequest.js +0 -31
- package/dist/openapi/models/EventsDryRunResponse.d.ts +0 -29
- package/dist/openapi/models/EventsDryRunResponse.js +0 -31
- package/dist/openapi/models/EventsDryRunResponseObject.d.ts +0 -32
- package/dist/openapi/models/EventsDryRunResponseObject.js +0 -43
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +0 -35
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +0 -61
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +0 -41
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +0 -61
- package/dist/openapi/models/Filter.d.ts +0 -32
- package/dist/openapi/models/Filter.js +0 -34
- package/dist/openapi/models/GetCommitmentReportResponse.d.ts +0 -44
- package/dist/openapi/models/GetCommitmentReportResponse.js +0 -115
- package/dist/openapi/models/GetContractResponse.d.ts +0 -29
- package/dist/openapi/models/GetContractResponse.js +0 -31
- package/dist/openapi/models/GetContractResponseContract.d.ts +0 -46
- package/dist/openapi/models/GetContractResponseContract.js +0 -67
- package/dist/openapi/models/GetCustomerResponse.d.ts +0 -29
- package/dist/openapi/models/GetCustomerResponse.js +0 -31
- package/dist/openapi/models/GetEventResponse.d.ts +0 -29
- package/dist/openapi/models/GetEventResponse.js +0 -31
- package/dist/openapi/models/GetEventResponseEvent.d.ts +0 -55
- package/dist/openapi/models/GetEventResponseEvent.js +0 -76
- package/dist/openapi/models/GetInvoiceResponse.d.ts +0 -29
- package/dist/openapi/models/GetInvoiceResponse.js +0 -31
- package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +0 -50
- package/dist/openapi/models/GetInvoiceResponseInvoice.js +0 -79
- package/dist/openapi/models/GetMeterResponse.d.ts +0 -29
- package/dist/openapi/models/GetMeterResponse.js +0 -31
- package/dist/openapi/models/GetMeterResponseMeter.d.ts +0 -42
- package/dist/openapi/models/GetMeterResponseMeter.js +0 -67
- package/dist/openapi/models/GetPlanResponse.d.ts +0 -29
- package/dist/openapi/models/GetPlanResponse.js +0 -31
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +0 -38
- package/dist/openapi/models/GetPlanResponsePlan.js +0 -61
- package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +0 -44
- package/dist/openapi/models/GetProductsUsageReportResponse.js +0 -115
- package/dist/openapi/models/GrantCreditsRequest.d.ts +0 -35
- package/dist/openapi/models/GrantCreditsRequest.js +0 -37
- package/dist/openapi/models/InvalidEvent.d.ts +0 -33
- package/dist/openapi/models/InvalidEvent.js +0 -37
- package/dist/openapi/models/LineItem.d.ts +0 -35
- package/dist/openapi/models/LineItem.js +0 -37
- package/dist/openapi/models/ListContractsResponse.d.ts +0 -32
- package/dist/openapi/models/ListContractsResponse.js +0 -49
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +0 -32
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +0 -31
- package/dist/openapi/models/ListCustomersResponse.d.ts +0 -32
- package/dist/openapi/models/ListCustomersResponse.js +0 -49
- package/dist/openapi/models/ListInvoicesResponse.d.ts +0 -32
- package/dist/openapi/models/ListInvoicesResponse.js +0 -49
- package/dist/openapi/models/ListMetersResponse.d.ts +0 -32
- package/dist/openapi/models/ListMetersResponse.js +0 -49
- package/dist/openapi/models/ListPlansResponse.d.ts +0 -32
- package/dist/openapi/models/ListPlansResponse.js +0 -49
- package/dist/openapi/models/LoginRequest.d.ts +0 -31
- package/dist/openapi/models/LoginRequest.js +0 -31
- package/dist/openapi/models/LoginResponse.d.ts +0 -31
- package/dist/openapi/models/LoginResponse.js +0 -31
- package/dist/openapi/models/Meter.d.ts +0 -39
- package/dist/openapi/models/Meter.js +0 -49
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +0 -30
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +0 -43
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +0 -34
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +0 -47
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +0 -39
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +0 -85
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +0 -28
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +0 -31
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +0 -29
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +0 -31
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +0 -33
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +0 -55
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +0 -29
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +0 -37
- package/dist/openapi/models/NotificationEventType.d.ts +0 -17
- package/dist/openapi/models/NotificationEventType.js +0 -21
- package/dist/openapi/models/ObjectSerializer.d.ts +0 -106
- package/dist/openapi/models/ObjectSerializer.js +0 -488
- package/dist/openapi/models/PaymentTerm.d.ts +0 -15
- package/dist/openapi/models/PaymentTerm.js +0 -19
- package/dist/openapi/models/Period.d.ts +0 -32
- package/dist/openapi/models/Period.js +0 -40
- package/dist/openapi/models/PlanBillingData.d.ts +0 -37
- package/dist/openapi/models/PlanBillingData.js +0 -58
- package/dist/openapi/models/PlanStatus.d.ts +0 -19
- package/dist/openapi/models/PlanStatus.js +0 -23
- package/dist/openapi/models/QueryEventsResponse.d.ts +0 -32
- package/dist/openapi/models/QueryEventsResponse.js +0 -31
- package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +0 -52
- package/dist/openapi/models/QueryEventsResponseEventsInner.js +0 -73
- package/dist/openapi/models/SendEventsRequest.d.ts +0 -29
- package/dist/openapi/models/SendEventsRequest.js +0 -31
- package/dist/openapi/models/SendEventsResponse.d.ts +0 -37
- package/dist/openapi/models/SendEventsResponse.js +0 -37
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +0 -35
- package/dist/openapi/models/UpdateCustomerRequest.js +0 -37
- package/dist/openapi/models/UpdateCustomerResponse.d.ts +0 -29
- package/dist/openapi/models/UpdateCustomerResponse.js +0 -31
- package/dist/openapi/models/UpdateMeterRequest.d.ts +0 -39
- package/dist/openapi/models/UpdateMeterRequest.js +0 -49
- package/dist/openapi/models/UpdateMeterResponse.d.ts +0 -29
- package/dist/openapi/models/UpdateMeterResponse.js +0 -31
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +0 -30
- package/dist/openapi/models/WebhookSubscribeRequest.js +0 -37
- package/dist/openapi/models/all.d.ts +0 -79
- package/dist/openapi/models/all.js +0 -95
- package/dist/openapi/rxjsStub.d.ts +0 -10
- package/dist/openapi/rxjsStub.js +0 -31
- package/dist/openapi/servers.d.ts +0 -39
- package/dist/openapi/servers.js +0 -52
- package/dist/openapi/types/ObjectParamAPI.d.ts +0 -825
- package/dist/openapi/types/ObjectParamAPI.js +0 -590
- package/dist/openapi/types/ObservableAPI.d.ts +0 -532
- package/dist/openapi/types/ObservableAPI.js +0 -1060
- package/dist/openapi/types/PromiseAPI.d.ts +0 -509
- package/dist/openapi/types/PromiseAPI.js +0 -684
- package/dist/openapi/util.d.ts +0 -15
- package/dist/openapi/util.js +0 -42
- package/dist/sdk/clients/ContractsClient.d.ts +0 -10
- package/dist/sdk/clients/ContractsClient.js +0 -42
- package/dist/sdk/clients/CustomersClient.d.ts +0 -11
- package/dist/sdk/clients/CustomersClient.js +0 -47
- package/dist/sdk/clients/EventsClient.d.ts +0 -11
- package/dist/sdk/clients/EventsClient.js +0 -49
- package/dist/sdk/clients/InvoicesClient.d.ts +0 -7
- package/dist/sdk/clients/InvoicesClient.js +0 -32
- package/dist/sdk/clients/MetersClient.d.ts +0 -10
- package/dist/sdk/clients/MetersClient.js +0 -42
- package/dist/sdk/clients/PlansClient.d.ts +0 -8
- package/dist/sdk/clients/PlansClient.js +0 -37
- package/dist/sdk/clients/index.d.ts +0 -6
- package/dist/sdk/clients/index.js +0 -22
- package/dist/sdk/index.d.ts +0 -13
- package/dist/sdk/index.js +0 -59
- package/dist/sdk/services/configuration.service.d.ts +0 -21
- package/dist/sdk/services/configuration.service.js +0 -104
- package/dist/sdk/services/index.d.ts +0 -1
- package/dist/sdk/services/index.js +0 -17
- package/dist/sdk/types/Contracts.d.ts +0 -1
- package/dist/sdk/types/Contracts.js +0 -2
- package/dist/sdk/types/Customers.d.ts +0 -1
- package/dist/sdk/types/Customers.js +0 -2
- package/dist/sdk/types/Events.d.ts +0 -1
- package/dist/sdk/types/Events.js +0 -2
- package/dist/sdk/types/Invoices.d.ts +0 -1
- package/dist/sdk/types/Invoices.js +0 -2
- package/dist/sdk/types/Meters.d.ts +0 -1
- package/dist/sdk/types/Meters.js +0 -2
- package/dist/sdk/types/Plans.d.ts +0 -1
- package/dist/sdk/types/Plans.js +0 -2
- package/dist/sdk/types/index.d.ts +0 -7
- package/dist/sdk/types/index.js +0 -23
- package/dist/sdk/types/pagination-options.d.ts +0 -4
- package/dist/sdk/types/pagination-options.js +0 -2
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -17
|
@@ -1,388 +0,0 @@
|
|
|
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
|
-
* Create a new Customer.
|
|
25
|
-
* Create Customer
|
|
26
|
-
* @param createCustomerRequest
|
|
27
|
-
*/
|
|
28
|
-
createCustomer(createCustomerRequest, _options) {
|
|
29
|
-
var _a, _b, _c;
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
let _config = _options || this.configuration;
|
|
32
|
-
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
33
|
-
if (createCustomerRequest === null || createCustomerRequest === undefined) {
|
|
34
|
-
throw new baseapi_1.RequiredError("CustomersApi", "createCustomer", "createCustomerRequest");
|
|
35
|
-
}
|
|
36
|
-
// Path Params
|
|
37
|
-
const localVarPath = '/customers';
|
|
38
|
-
// Make Request Context
|
|
39
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
40
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
41
|
-
// Body Params
|
|
42
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
43
|
-
"application/json"
|
|
44
|
-
]);
|
|
45
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
46
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createCustomerRequest, "CreateCustomerRequest", ""), contentType);
|
|
47
|
-
requestContext.setBody(serializedBody);
|
|
48
|
-
let authMethod;
|
|
49
|
-
// Apply auth methods
|
|
50
|
-
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
51
|
-
if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
|
|
52
|
-
yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
|
|
53
|
-
}
|
|
54
|
-
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);
|
|
55
|
-
if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
|
|
56
|
-
yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
|
|
57
|
-
}
|
|
58
|
-
return requestContext;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Delete a Customer by id.
|
|
63
|
-
* Delete Customer
|
|
64
|
-
* @param customerId
|
|
65
|
-
*/
|
|
66
|
-
deleteCustomer(customerId, _options) {
|
|
67
|
-
var _a, _b, _c;
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
let _config = _options || this.configuration;
|
|
70
|
-
// verify required parameter 'customerId' is not null or undefined
|
|
71
|
-
if (customerId === null || customerId === undefined) {
|
|
72
|
-
throw new baseapi_1.RequiredError("CustomersApi", "deleteCustomer", "customerId");
|
|
73
|
-
}
|
|
74
|
-
// Path Params
|
|
75
|
-
const localVarPath = '/customers/{customerId}'
|
|
76
|
-
.replace('{' + 'customerId' + '}', encodeURIComponent(String(customerId)));
|
|
77
|
-
// Make Request Context
|
|
78
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
79
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
80
|
-
let authMethod;
|
|
81
|
-
// Apply auth methods
|
|
82
|
-
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
83
|
-
if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
|
|
84
|
-
yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
|
|
85
|
-
}
|
|
86
|
-
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);
|
|
87
|
-
if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
|
|
88
|
-
yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
|
|
89
|
-
}
|
|
90
|
-
return requestContext;
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Get a Customer by id.
|
|
95
|
-
* Get Customer
|
|
96
|
-
* @param customerId
|
|
97
|
-
*/
|
|
98
|
-
getCustomer(customerId, _options) {
|
|
99
|
-
var _a, _b, _c;
|
|
100
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
let _config = _options || this.configuration;
|
|
102
|
-
// verify required parameter 'customerId' is not null or undefined
|
|
103
|
-
if (customerId === null || customerId === undefined) {
|
|
104
|
-
throw new baseapi_1.RequiredError("CustomersApi", "getCustomer", "customerId");
|
|
105
|
-
}
|
|
106
|
-
// Path Params
|
|
107
|
-
const localVarPath = '/customers/{customerId}'
|
|
108
|
-
.replace('{' + 'customerId' + '}', encodeURIComponent(String(customerId)));
|
|
109
|
-
// Make Request Context
|
|
110
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
111
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
112
|
-
let authMethod;
|
|
113
|
-
// Apply auth methods
|
|
114
|
-
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
115
|
-
if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
|
|
116
|
-
yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
|
|
117
|
-
}
|
|
118
|
-
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);
|
|
119
|
-
if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
|
|
120
|
-
yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
|
|
121
|
-
}
|
|
122
|
-
return requestContext;
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Get a list of Customers.
|
|
127
|
-
* List Customers
|
|
128
|
-
* @param limit
|
|
129
|
-
* @param cursor
|
|
130
|
-
*/
|
|
131
|
-
listCustomers(limit, cursor, _options) {
|
|
132
|
-
var _a, _b, _c;
|
|
133
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
let _config = _options || this.configuration;
|
|
135
|
-
// Path Params
|
|
136
|
-
const localVarPath = '/customers';
|
|
137
|
-
// Make Request Context
|
|
138
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
139
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
140
|
-
// Query Params
|
|
141
|
-
if (limit !== undefined) {
|
|
142
|
-
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
143
|
-
}
|
|
144
|
-
// Query Params
|
|
145
|
-
if (cursor !== undefined) {
|
|
146
|
-
requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
|
|
147
|
-
}
|
|
148
|
-
let authMethod;
|
|
149
|
-
// Apply auth methods
|
|
150
|
-
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
151
|
-
if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
|
|
152
|
-
yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
|
|
153
|
-
}
|
|
154
|
-
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);
|
|
155
|
-
if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
|
|
156
|
-
yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
|
|
157
|
-
}
|
|
158
|
-
return requestContext;
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Update a Customer by id.
|
|
163
|
-
* Update Customer
|
|
164
|
-
* @param updateCustomerRequest
|
|
165
|
-
* @param customerId
|
|
166
|
-
*/
|
|
167
|
-
updateCustomer(updateCustomerRequest, customerId, _options) {
|
|
168
|
-
var _a, _b, _c;
|
|
169
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
-
let _config = _options || this.configuration;
|
|
171
|
-
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
172
|
-
if (updateCustomerRequest === null || updateCustomerRequest === undefined) {
|
|
173
|
-
throw new baseapi_1.RequiredError("CustomersApi", "updateCustomer", "updateCustomerRequest");
|
|
174
|
-
}
|
|
175
|
-
// verify required parameter 'customerId' is not null or undefined
|
|
176
|
-
if (customerId === null || customerId === undefined) {
|
|
177
|
-
throw new baseapi_1.RequiredError("CustomersApi", "updateCustomer", "customerId");
|
|
178
|
-
}
|
|
179
|
-
// Path Params
|
|
180
|
-
const localVarPath = '/customers/{customerId}'
|
|
181
|
-
.replace('{' + 'customerId' + '}', encodeURIComponent(String(customerId)));
|
|
182
|
-
// Make Request Context
|
|
183
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
184
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
185
|
-
// Body Params
|
|
186
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
187
|
-
"application/json"
|
|
188
|
-
]);
|
|
189
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
190
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateCustomerRequest, "UpdateCustomerRequest", ""), contentType);
|
|
191
|
-
requestContext.setBody(serializedBody);
|
|
192
|
-
let authMethod;
|
|
193
|
-
// Apply auth methods
|
|
194
|
-
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
195
|
-
if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
|
|
196
|
-
yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
|
|
197
|
-
}
|
|
198
|
-
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);
|
|
199
|
-
if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
|
|
200
|
-
yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
|
|
201
|
-
}
|
|
202
|
-
return requestContext;
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
exports.CustomersApiRequestFactory = CustomersApiRequestFactory;
|
|
207
|
-
class CustomersApiResponseProcessor {
|
|
208
|
-
/**
|
|
209
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
210
|
-
* to the expected objects
|
|
211
|
-
*
|
|
212
|
-
* @params response Response returned by the server for a request to createCustomer
|
|
213
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
214
|
-
*/
|
|
215
|
-
createCustomerWithHttpInfo(response) {
|
|
216
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
218
|
-
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
219
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateCustomerResponse", "");
|
|
220
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
221
|
-
}
|
|
222
|
-
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
223
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
224
|
-
}
|
|
225
|
-
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
226
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
227
|
-
}
|
|
228
|
-
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
229
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
230
|
-
}
|
|
231
|
-
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
232
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
233
|
-
}
|
|
234
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
235
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
236
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateCustomerResponse", "");
|
|
237
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
238
|
-
}
|
|
239
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
244
|
-
* to the expected objects
|
|
245
|
-
*
|
|
246
|
-
* @params response Response returned by the server for a request to deleteCustomer
|
|
247
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
248
|
-
*/
|
|
249
|
-
deleteCustomerWithHttpInfo(response) {
|
|
250
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
252
|
-
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
253
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteCustomerResponse", "");
|
|
254
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
255
|
-
}
|
|
256
|
-
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
257
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
258
|
-
}
|
|
259
|
-
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
260
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
261
|
-
}
|
|
262
|
-
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
263
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
|
|
264
|
-
}
|
|
265
|
-
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
266
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
267
|
-
}
|
|
268
|
-
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
269
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
270
|
-
}
|
|
271
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
272
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
273
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteCustomerResponse", "");
|
|
274
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
275
|
-
}
|
|
276
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
281
|
-
* to the expected objects
|
|
282
|
-
*
|
|
283
|
-
* @params response Response returned by the server for a request to getCustomer
|
|
284
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
285
|
-
*/
|
|
286
|
-
getCustomerWithHttpInfo(response) {
|
|
287
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
289
|
-
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
290
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetCustomerResponse", "");
|
|
291
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
292
|
-
}
|
|
293
|
-
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
294
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
295
|
-
}
|
|
296
|
-
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
297
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
298
|
-
}
|
|
299
|
-
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
300
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
|
|
301
|
-
}
|
|
302
|
-
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
303
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
304
|
-
}
|
|
305
|
-
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
306
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
307
|
-
}
|
|
308
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
309
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
310
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetCustomerResponse", "");
|
|
311
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
312
|
-
}
|
|
313
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
318
|
-
* to the expected objects
|
|
319
|
-
*
|
|
320
|
-
* @params response Response returned by the server for a request to listCustomers
|
|
321
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
322
|
-
*/
|
|
323
|
-
listCustomersWithHttpInfo(response) {
|
|
324
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
326
|
-
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
327
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListCustomersResponse", "");
|
|
328
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
329
|
-
}
|
|
330
|
-
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
331
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
332
|
-
}
|
|
333
|
-
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
334
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
335
|
-
}
|
|
336
|
-
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
337
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
338
|
-
}
|
|
339
|
-
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
340
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
341
|
-
}
|
|
342
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
343
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
344
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListCustomersResponse", "");
|
|
345
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
346
|
-
}
|
|
347
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
352
|
-
* to the expected objects
|
|
353
|
-
*
|
|
354
|
-
* @params response Response returned by the server for a request to updateCustomer
|
|
355
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
356
|
-
*/
|
|
357
|
-
updateCustomerWithHttpInfo(response) {
|
|
358
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
-
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
360
|
-
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
361
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateCustomerResponse", "");
|
|
362
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
363
|
-
}
|
|
364
|
-
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
365
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
366
|
-
}
|
|
367
|
-
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
368
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
369
|
-
}
|
|
370
|
-
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
371
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
|
|
372
|
-
}
|
|
373
|
-
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
374
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
375
|
-
}
|
|
376
|
-
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
377
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
378
|
-
}
|
|
379
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
380
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
381
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateCustomerResponse", "");
|
|
382
|
-
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
383
|
-
}
|
|
384
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
exports.CustomersApiResponseProcessor = CustomersApiResponseProcessor;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
-
import { Configuration } from '../configuration';
|
|
3
|
-
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
|
|
4
|
-
import { DeleteEventResponse } from '../models/DeleteEventResponse';
|
|
5
|
-
import { EventsDryRunRequest } from '../models/EventsDryRunRequest';
|
|
6
|
-
import { EventsDryRunResponse } from '../models/EventsDryRunResponse';
|
|
7
|
-
import { GetEventResponse } from '../models/GetEventResponse';
|
|
8
|
-
import { QueryEventsResponse } from '../models/QueryEventsResponse';
|
|
9
|
-
import { SendEventsRequest } from '../models/SendEventsRequest';
|
|
10
|
-
import { SendEventsResponse } from '../models/SendEventsResponse';
|
|
11
|
-
/**
|
|
12
|
-
* no description
|
|
13
|
-
*/
|
|
14
|
-
export declare class EventsApiRequestFactory extends BaseAPIRequestFactory {
|
|
15
|
-
/**
|
|
16
|
-
* Use this endpoint to remove a specific event using its reference ID.
|
|
17
|
-
* Delete an event by refId
|
|
18
|
-
* @param refId
|
|
19
|
-
*/
|
|
20
|
-
deleteEventByRefId(refId: string, _options?: Configuration): Promise<RequestContext>;
|
|
21
|
-
/**
|
|
22
|
-
* Use this endpoint to get a specific event using its reference ID.
|
|
23
|
-
* Get event by refId
|
|
24
|
-
* @param refId
|
|
25
|
-
*/
|
|
26
|
-
getEventByRefId(refId: string, _options?: Configuration): Promise<RequestContext>;
|
|
27
|
-
/**
|
|
28
|
-
* Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
|
|
29
|
-
* Query events by timestamp period and optional event name
|
|
30
|
-
* @param startTime
|
|
31
|
-
* @param endTime
|
|
32
|
-
* @param eventName
|
|
33
|
-
* @param limit
|
|
34
|
-
* @param cursor
|
|
35
|
-
*/
|
|
36
|
-
queryEvents(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
|
|
37
|
-
/**
|
|
38
|
-
* Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
|
|
39
|
-
* Submit a batch of events for ingestion
|
|
40
|
-
* @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
|
|
41
|
-
*/
|
|
42
|
-
sendEvents(sendEventsRequest: SendEventsRequest, _options?: Configuration): Promise<RequestContext>;
|
|
43
|
-
/**
|
|
44
|
-
* Use this endpoint to send an array of events for processing. Make sure to comply with the request schema for each event. NOTE: this is a dry run and will not result in actual storage of the events.
|
|
45
|
-
* Submit a batch of events for testing
|
|
46
|
-
* @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
|
|
47
|
-
*/
|
|
48
|
-
sendEventsDryRun(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Promise<RequestContext>;
|
|
49
|
-
}
|
|
50
|
-
export declare class EventsApiResponseProcessor {
|
|
51
|
-
/**
|
|
52
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
53
|
-
* to the expected objects
|
|
54
|
-
*
|
|
55
|
-
* @params response Response returned by the server for a request to deleteEventByRefId
|
|
56
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
57
|
-
*/
|
|
58
|
-
deleteEventByRefIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<DeleteEventResponse>>;
|
|
59
|
-
/**
|
|
60
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
61
|
-
* to the expected objects
|
|
62
|
-
*
|
|
63
|
-
* @params response Response returned by the server for a request to getEventByRefId
|
|
64
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
65
|
-
*/
|
|
66
|
-
getEventByRefIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetEventResponse>>;
|
|
67
|
-
/**
|
|
68
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
69
|
-
* to the expected objects
|
|
70
|
-
*
|
|
71
|
-
* @params response Response returned by the server for a request to queryEvents
|
|
72
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
73
|
-
*/
|
|
74
|
-
queryEventsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<QueryEventsResponse>>;
|
|
75
|
-
/**
|
|
76
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
77
|
-
* to the expected objects
|
|
78
|
-
*
|
|
79
|
-
* @params response Response returned by the server for a request to sendEvents
|
|
80
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
81
|
-
*/
|
|
82
|
-
sendEventsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<SendEventsResponse>>;
|
|
83
|
-
/**
|
|
84
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
85
|
-
* to the expected objects
|
|
86
|
-
*
|
|
87
|
-
* @params response Response returned by the server for a request to sendEventsDryRun
|
|
88
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
89
|
-
*/
|
|
90
|
-
sendEventsDryRunWithHttpInfo(response: ResponseContext): Promise<HttpInfo<EventsDryRunResponse>>;
|
|
91
|
-
}
|