vayu-ts 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +202 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/openapi/apis/AuthApi.d.ts +26 -0
- package/dist/openapi/apis/AuthApi.js +93 -0
- package/dist/openapi/apis/ContractsApi.d.ts +72 -0
- package/dist/openapi/apis/ContractsApi.js +307 -0
- package/dist/openapi/apis/CreditsApi.d.ts +57 -0
- package/dist/openapi/apis/CreditsApi.js +248 -0
- package/dist/openapi/apis/CustomersApi.d.ts +89 -0
- package/dist/openapi/apis/CustomersApi.js +388 -0
- package/dist/openapi/apis/EventsApi.d.ts +91 -0
- package/dist/openapi/apis/EventsApi.js +408 -0
- package/dist/openapi/apis/IntegrationsApi.d.ts +41 -0
- package/dist/openapi/apis/IntegrationsApi.js +170 -0
- package/dist/openapi/apis/InvoicesApi.d.ts +41 -0
- package/dist/openapi/apis/InvoicesApi.js +166 -0
- package/dist/openapi/apis/MetersApi.d.ts +73 -0
- package/dist/openapi/apis/MetersApi.js +316 -0
- package/dist/openapi/apis/PlansApi.d.ts +56 -0
- package/dist/openapi/apis/PlansApi.js +235 -0
- package/dist/openapi/apis/ReportsApi.d.ts +41 -0
- package/dist/openapi/apis/ReportsApi.js +166 -0
- package/dist/openapi/apis/WebhooksApi.d.ts +25 -0
- package/dist/openapi/apis/WebhooksApi.js +101 -0
- package/dist/openapi/apis/baseapi.d.ts +33 -0
- package/dist/openapi/apis/baseapi.js +41 -0
- package/dist/openapi/apis/exception.d.ts +19 -0
- package/dist/openapi/apis/exception.js +22 -0
- package/dist/openapi/auth/auth.d.ts +54 -0
- package/dist/openapi/auth/auth.js +50 -0
- package/dist/openapi/configuration.d.ts +63 -0
- package/dist/openapi/configuration.js +34 -0
- package/dist/openapi/http/http.d.ts +142 -0
- package/dist/openapi/http/http.js +229 -0
- package/dist/openapi/http/isomorphic-fetch.d.ts +5 -0
- package/dist/openapi/http/isomorphic-fetch.js +33 -0
- package/dist/openapi/index.d.ts +10 -0
- package/dist/openapi/index.js +38 -0
- package/dist/openapi/middleware.d.ts +54 -0
- package/dist/openapi/middleware.js +16 -0
- package/dist/openapi/models/AggregationMethod.d.ts +40 -0
- package/dist/openapi/models/AggregationMethod.js +46 -0
- package/dist/openapi/models/AggregationOperator.d.ts +24 -0
- package/dist/openapi/models/AggregationOperator.js +28 -0
- package/dist/openapi/models/BillingCycleStatus.d.ts +15 -0
- package/dist/openapi/models/BillingCycleStatus.js +19 -0
- package/dist/openapi/models/BillingInterval.d.ts +18 -0
- package/dist/openapi/models/BillingInterval.js +22 -0
- package/dist/openapi/models/Condition.d.ts +29 -0
- package/dist/openapi/models/Condition.js +31 -0
- package/dist/openapi/models/ContractStatus.d.ts +18 -0
- package/dist/openapi/models/ContractStatus.js +22 -0
- package/dist/openapi/models/CreateContractRequest.d.ts +43 -0
- package/dist/openapi/models/CreateContractRequest.js +49 -0
- package/dist/openapi/models/CreateContractResponse.d.ts +29 -0
- package/dist/openapi/models/CreateContractResponse.js +31 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +35 -0
- package/dist/openapi/models/CreateCustomerRequest.js +37 -0
- package/dist/openapi/models/CreateCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/CreateCustomerResponse.js +31 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +38 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +55 -0
- package/dist/openapi/models/CreditLedgerEntry.d.ts +32 -0
- package/dist/openapi/models/CreditLedgerEntry.js +49 -0
- package/dist/openapi/models/Criterion.d.ts +31 -0
- package/dist/openapi/models/Criterion.js +43 -0
- package/dist/openapi/models/CriterionOperator.d.ts +23 -0
- package/dist/openapi/models/CriterionOperator.js +27 -0
- package/dist/openapi/models/Currency.d.ts +17 -0
- package/dist/openapi/models/Currency.js +21 -0
- package/dist/openapi/models/DeductCreditsRequest.d.ts +35 -0
- package/dist/openapi/models/DeductCreditsRequest.js +37 -0
- package/dist/openapi/models/DeleteContractResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteContractResponse.js +31 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -0
- package/dist/openapi/models/DeleteContractResponseContract.js +73 -0
- package/dist/openapi/models/DeleteCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteCustomerResponse.js +31 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +39 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +61 -0
- package/dist/openapi/models/DeleteEventResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteEventResponse.js +31 -0
- package/dist/openapi/models/DeleteEventResponseEvent.d.ts +56 -0
- package/dist/openapi/models/DeleteEventResponseEvent.js +82 -0
- package/dist/openapi/models/DeleteMeterResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteMeterResponse.js +31 -0
- package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +43 -0
- package/dist/openapi/models/DeleteMeterResponseMeter.js +73 -0
- package/dist/openapi/models/DeletePlanResponse.d.ts +29 -0
- package/dist/openapi/models/DeletePlanResponse.js +31 -0
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +39 -0
- package/dist/openapi/models/DeletePlanResponsePlan.js +67 -0
- package/dist/openapi/models/Event.d.ts +49 -0
- package/dist/openapi/models/Event.js +55 -0
- package/dist/openapi/models/EventsDryRunRequest.d.ts +29 -0
- package/dist/openapi/models/EventsDryRunRequest.js +31 -0
- package/dist/openapi/models/EventsDryRunResponse.d.ts +29 -0
- package/dist/openapi/models/EventsDryRunResponse.js +31 -0
- package/dist/openapi/models/EventsDryRunResponseObject.d.ts +32 -0
- package/dist/openapi/models/EventsDryRunResponseObject.js +43 -0
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +35 -0
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +61 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +41 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +61 -0
- package/dist/openapi/models/Filter.d.ts +32 -0
- package/dist/openapi/models/Filter.js +34 -0
- package/dist/openapi/models/GetCommitmentReportResponse.d.ts +44 -0
- package/dist/openapi/models/GetCommitmentReportResponse.js +115 -0
- package/dist/openapi/models/GetContractResponse.d.ts +29 -0
- package/dist/openapi/models/GetContractResponse.js +31 -0
- package/dist/openapi/models/GetContractResponseContract.d.ts +46 -0
- package/dist/openapi/models/GetContractResponseContract.js +67 -0
- package/dist/openapi/models/GetCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/GetCustomerResponse.js +31 -0
- package/dist/openapi/models/GetEventResponse.d.ts +29 -0
- package/dist/openapi/models/GetEventResponse.js +31 -0
- package/dist/openapi/models/GetEventResponseEvent.d.ts +55 -0
- package/dist/openapi/models/GetEventResponseEvent.js +76 -0
- package/dist/openapi/models/GetInvoiceResponse.d.ts +29 -0
- package/dist/openapi/models/GetInvoiceResponse.js +31 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +50 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.js +79 -0
- package/dist/openapi/models/GetMeterResponse.d.ts +29 -0
- package/dist/openapi/models/GetMeterResponse.js +31 -0
- package/dist/openapi/models/GetMeterResponseMeter.d.ts +42 -0
- package/dist/openapi/models/GetMeterResponseMeter.js +67 -0
- package/dist/openapi/models/GetPlanResponse.d.ts +29 -0
- package/dist/openapi/models/GetPlanResponse.js +31 -0
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +38 -0
- package/dist/openapi/models/GetPlanResponsePlan.js +61 -0
- package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +44 -0
- package/dist/openapi/models/GetProductsUsageReportResponse.js +115 -0
- package/dist/openapi/models/GrantCreditsRequest.d.ts +35 -0
- package/dist/openapi/models/GrantCreditsRequest.js +37 -0
- package/dist/openapi/models/InvalidEvent.d.ts +33 -0
- package/dist/openapi/models/InvalidEvent.js +37 -0
- package/dist/openapi/models/LineItem.d.ts +35 -0
- package/dist/openapi/models/LineItem.js +37 -0
- package/dist/openapi/models/ListContractsResponse.d.ts +32 -0
- package/dist/openapi/models/ListContractsResponse.js +49 -0
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +32 -0
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +31 -0
- package/dist/openapi/models/ListCustomersResponse.d.ts +32 -0
- package/dist/openapi/models/ListCustomersResponse.js +49 -0
- package/dist/openapi/models/ListInvoicesResponse.d.ts +32 -0
- package/dist/openapi/models/ListInvoicesResponse.js +49 -0
- package/dist/openapi/models/ListMetersResponse.d.ts +32 -0
- package/dist/openapi/models/ListMetersResponse.js +49 -0
- package/dist/openapi/models/ListPlansResponse.d.ts +32 -0
- package/dist/openapi/models/ListPlansResponse.js +49 -0
- package/dist/openapi/models/LoginRequest.d.ts +31 -0
- package/dist/openapi/models/LoginRequest.js +31 -0
- package/dist/openapi/models/LoginResponse.d.ts +31 -0
- package/dist/openapi/models/LoginResponse.js +31 -0
- package/dist/openapi/models/Meter.d.ts +39 -0
- package/dist/openapi/models/Meter.js +49 -0
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +30 -0
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +43 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +34 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +47 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +39 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +85 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +28 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +31 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +29 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +31 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +33 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +55 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +29 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +37 -0
- package/dist/openapi/models/NotificationEventType.d.ts +17 -0
- package/dist/openapi/models/NotificationEventType.js +21 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +106 -0
- package/dist/openapi/models/ObjectSerializer.js +488 -0
- package/dist/openapi/models/PaymentTerm.d.ts +15 -0
- package/dist/openapi/models/PaymentTerm.js +19 -0
- package/dist/openapi/models/Period.d.ts +32 -0
- package/dist/openapi/models/Period.js +40 -0
- package/dist/openapi/models/PlanBillingData.d.ts +37 -0
- package/dist/openapi/models/PlanBillingData.js +58 -0
- package/dist/openapi/models/PlanStatus.d.ts +19 -0
- package/dist/openapi/models/PlanStatus.js +23 -0
- package/dist/openapi/models/QueryEventsResponse.d.ts +32 -0
- package/dist/openapi/models/QueryEventsResponse.js +31 -0
- package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +52 -0
- package/dist/openapi/models/QueryEventsResponseEventsInner.js +73 -0
- package/dist/openapi/models/SendEventsRequest.d.ts +29 -0
- package/dist/openapi/models/SendEventsRequest.js +31 -0
- package/dist/openapi/models/SendEventsResponse.d.ts +37 -0
- package/dist/openapi/models/SendEventsResponse.js +37 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +35 -0
- package/dist/openapi/models/UpdateCustomerRequest.js +37 -0
- package/dist/openapi/models/UpdateCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/UpdateCustomerResponse.js +31 -0
- package/dist/openapi/models/UpdateMeterRequest.d.ts +39 -0
- package/dist/openapi/models/UpdateMeterRequest.js +49 -0
- package/dist/openapi/models/UpdateMeterResponse.d.ts +29 -0
- package/dist/openapi/models/UpdateMeterResponse.js +31 -0
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +30 -0
- package/dist/openapi/models/WebhookSubscribeRequest.js +37 -0
- package/dist/openapi/models/all.d.ts +79 -0
- package/dist/openapi/models/all.js +95 -0
- package/dist/openapi/rxjsStub.d.ts +10 -0
- package/dist/openapi/rxjsStub.js +31 -0
- package/dist/openapi/servers.d.ts +39 -0
- package/dist/openapi/servers.js +52 -0
- package/dist/openapi/types/ObjectParamAPI.d.ts +825 -0
- package/dist/openapi/types/ObjectParamAPI.js +590 -0
- package/dist/openapi/types/ObservableAPI.d.ts +532 -0
- package/dist/openapi/types/ObservableAPI.js +1060 -0
- package/dist/openapi/types/PromiseAPI.d.ts +509 -0
- package/dist/openapi/types/PromiseAPI.js +684 -0
- package/dist/openapi/util.d.ts +15 -0
- package/dist/openapi/util.js +42 -0
- package/dist/sdk/clients/ContractsClient.d.ts +10 -0
- package/dist/sdk/clients/ContractsClient.js +42 -0
- package/dist/sdk/clients/CustomersClient.d.ts +11 -0
- package/dist/sdk/clients/CustomersClient.js +47 -0
- package/dist/sdk/clients/EventsClient.d.ts +11 -0
- package/dist/sdk/clients/EventsClient.js +49 -0
- package/dist/sdk/clients/InvoicesClient.d.ts +7 -0
- package/dist/sdk/clients/InvoicesClient.js +32 -0
- package/dist/sdk/clients/MetersClient.d.ts +10 -0
- package/dist/sdk/clients/MetersClient.js +42 -0
- package/dist/sdk/clients/PlansClient.d.ts +8 -0
- package/dist/sdk/clients/PlansClient.js +37 -0
- package/dist/sdk/clients/index.d.ts +6 -0
- package/dist/sdk/clients/index.js +22 -0
- package/dist/sdk/index.d.ts +13 -0
- package/dist/sdk/index.js +59 -0
- package/dist/sdk/services/configuration.service.d.ts +21 -0
- package/dist/sdk/services/configuration.service.js +104 -0
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/sdk/services/index.js +17 -0
- package/dist/sdk/types/Contracts.d.ts +1 -0
- package/dist/sdk/types/Contracts.js +2 -0
- package/dist/sdk/types/Customers.d.ts +1 -0
- package/dist/sdk/types/Customers.js +2 -0
- package/dist/sdk/types/Events.d.ts +1 -0
- package/dist/sdk/types/Events.js +2 -0
- package/dist/sdk/types/Invoices.d.ts +1 -0
- package/dist/sdk/types/Invoices.js +2 -0
- package/dist/sdk/types/Meters.d.ts +1 -0
- package/dist/sdk/types/Meters.js +2 -0
- package/dist/sdk/types/Plans.d.ts +1 -0
- package/dist/sdk/types/Plans.js +2 -0
- package/dist/sdk/types/index.d.ts +7 -0
- package/dist/sdk/types/index.js +23 -0
- package/dist/sdk/types/pagination-options.d.ts +4 -0
- package/dist/sdk/types/pagination-options.js +2 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +17 -0
- package/package.json +51 -0
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromiseWebhooksApi = exports.PromiseReportsApi = exports.PromisePlansApi = exports.PromiseMetersApi = exports.PromiseInvoicesApi = exports.PromiseIntegrationsApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseAuthApi = void 0;
|
|
4
|
+
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
|
+
class PromiseAuthApi {
|
|
6
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
7
|
+
this.api = new ObservableAPI_1.ObservableAuthApi(configuration, requestFactory, responseProcessor);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint is designed to acquire a temporary access token. Submit the auth token in the request body to obtain a new access token. Use this new token for subsequent API calls. Token is set to expire every hour.
|
|
11
|
+
* Login by obtaining a new access token
|
|
12
|
+
* @param loginRequest
|
|
13
|
+
*/
|
|
14
|
+
loginWithHttpInfo(loginRequest, _options) {
|
|
15
|
+
const result = this.api.loginWithHttpInfo(loginRequest, _options);
|
|
16
|
+
return result.toPromise();
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* This endpoint is designed to acquire a temporary access token. Submit the auth token in the request body to obtain a new access token. Use this new token for subsequent API calls. Token is set to expire every hour.
|
|
20
|
+
* Login by obtaining a new access token
|
|
21
|
+
* @param loginRequest
|
|
22
|
+
*/
|
|
23
|
+
login(loginRequest, _options) {
|
|
24
|
+
const result = this.api.login(loginRequest, _options);
|
|
25
|
+
return result.toPromise();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.PromiseAuthApi = PromiseAuthApi;
|
|
29
|
+
const ObservableAPI_2 = require("./ObservableAPI");
|
|
30
|
+
class PromiseContractsApi {
|
|
31
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
32
|
+
this.api = new ObservableAPI_2.ObservableContractsApi(configuration, requestFactory, responseProcessor);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create a new Contract.
|
|
36
|
+
* Create Contract
|
|
37
|
+
* @param createContractRequest
|
|
38
|
+
*/
|
|
39
|
+
createContractWithHttpInfo(createContractRequest, _options) {
|
|
40
|
+
const result = this.api.createContractWithHttpInfo(createContractRequest, _options);
|
|
41
|
+
return result.toPromise();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create a new Contract.
|
|
45
|
+
* Create Contract
|
|
46
|
+
* @param createContractRequest
|
|
47
|
+
*/
|
|
48
|
+
createContract(createContractRequest, _options) {
|
|
49
|
+
const result = this.api.createContract(createContractRequest, _options);
|
|
50
|
+
return result.toPromise();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Delete a Contract by id.
|
|
54
|
+
* Delete Contract
|
|
55
|
+
* @param contractId
|
|
56
|
+
*/
|
|
57
|
+
deleteContractWithHttpInfo(contractId, _options) {
|
|
58
|
+
const result = this.api.deleteContractWithHttpInfo(contractId, _options);
|
|
59
|
+
return result.toPromise();
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Delete a Contract by id.
|
|
63
|
+
* Delete Contract
|
|
64
|
+
* @param contractId
|
|
65
|
+
*/
|
|
66
|
+
deleteContract(contractId, _options) {
|
|
67
|
+
const result = this.api.deleteContract(contractId, _options);
|
|
68
|
+
return result.toPromise();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get a Contract by id.
|
|
72
|
+
* Get Contract
|
|
73
|
+
* @param contractId
|
|
74
|
+
*/
|
|
75
|
+
getContractWithHttpInfo(contractId, _options) {
|
|
76
|
+
const result = this.api.getContractWithHttpInfo(contractId, _options);
|
|
77
|
+
return result.toPromise();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get a Contract by id.
|
|
81
|
+
* Get Contract
|
|
82
|
+
* @param contractId
|
|
83
|
+
*/
|
|
84
|
+
getContract(contractId, _options) {
|
|
85
|
+
const result = this.api.getContract(contractId, _options);
|
|
86
|
+
return result.toPromise();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get a list of Contracts.
|
|
90
|
+
* List Contracts
|
|
91
|
+
* @param limit
|
|
92
|
+
* @param cursor
|
|
93
|
+
*/
|
|
94
|
+
listContractsWithHttpInfo(limit, cursor, _options) {
|
|
95
|
+
const result = this.api.listContractsWithHttpInfo(limit, cursor, _options);
|
|
96
|
+
return result.toPromise();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get a list of Contracts.
|
|
100
|
+
* List Contracts
|
|
101
|
+
* @param limit
|
|
102
|
+
* @param cursor
|
|
103
|
+
*/
|
|
104
|
+
listContracts(limit, cursor, _options) {
|
|
105
|
+
const result = this.api.listContracts(limit, cursor, _options);
|
|
106
|
+
return result.toPromise();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.PromiseContractsApi = PromiseContractsApi;
|
|
110
|
+
const ObservableAPI_3 = require("./ObservableAPI");
|
|
111
|
+
class PromiseCreditsApi {
|
|
112
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
113
|
+
this.api = new ObservableAPI_3.ObservableCreditsApi(configuration, requestFactory, responseProcessor);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* This endpoint is used to deduct credits from the specified customer account. Submit the credit amount and customer ID in the request body to deduct the credits. The deducted credits will be subtracted from the customer\'s account.
|
|
117
|
+
* Deduct credits from customer credit ledger
|
|
118
|
+
* @param deductCreditsRequest
|
|
119
|
+
*/
|
|
120
|
+
deductCreditsWithHttpInfo(deductCreditsRequest, _options) {
|
|
121
|
+
const result = this.api.deductCreditsWithHttpInfo(deductCreditsRequest, _options);
|
|
122
|
+
return result.toPromise();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* This endpoint is used to deduct credits from the specified customer account. Submit the credit amount and customer ID in the request body to deduct the credits. The deducted credits will be subtracted from the customer\'s account.
|
|
126
|
+
* Deduct credits from customer credit ledger
|
|
127
|
+
* @param deductCreditsRequest
|
|
128
|
+
*/
|
|
129
|
+
deductCredits(deductCreditsRequest, _options) {
|
|
130
|
+
const result = this.api.deductCredits(deductCreditsRequest, _options);
|
|
131
|
+
return result.toPromise();
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* This endpoint is used to grant credits to a customer. Submit the credit amount and customer ID in the request body to grant the credits. The granted credits will be added to the customer\'s account.
|
|
135
|
+
* Grant credits to a customer credit ledger
|
|
136
|
+
* @param grantCreditsRequest
|
|
137
|
+
*/
|
|
138
|
+
grantCreditsWithHttpInfo(grantCreditsRequest, _options) {
|
|
139
|
+
const result = this.api.grantCreditsWithHttpInfo(grantCreditsRequest, _options);
|
|
140
|
+
return result.toPromise();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* This endpoint is used to grant credits to a customer. Submit the credit amount and customer ID in the request body to grant the credits. The granted credits will be added to the customer\'s account.
|
|
144
|
+
* Grant credits to a customer credit ledger
|
|
145
|
+
* @param grantCreditsRequest
|
|
146
|
+
*/
|
|
147
|
+
grantCredits(grantCreditsRequest, _options) {
|
|
148
|
+
const result = this.api.grantCredits(grantCreditsRequest, _options);
|
|
149
|
+
return result.toPromise();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* This endpoint is used to retrieve the credit ledger entries for a specific customer.
|
|
153
|
+
* Retrieve credit ledger entries for customer.
|
|
154
|
+
* @param customerId
|
|
155
|
+
* @param limit
|
|
156
|
+
* @param cursor
|
|
157
|
+
*/
|
|
158
|
+
listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, _options) {
|
|
159
|
+
const result = this.api.listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, _options);
|
|
160
|
+
return result.toPromise();
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* This endpoint is used to retrieve the credit ledger entries for a specific customer.
|
|
164
|
+
* Retrieve credit ledger entries for customer.
|
|
165
|
+
* @param customerId
|
|
166
|
+
* @param limit
|
|
167
|
+
* @param cursor
|
|
168
|
+
*/
|
|
169
|
+
listCreditLedgerEntries(customerId, limit, cursor, _options) {
|
|
170
|
+
const result = this.api.listCreditLedgerEntries(customerId, limit, cursor, _options);
|
|
171
|
+
return result.toPromise();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
exports.PromiseCreditsApi = PromiseCreditsApi;
|
|
175
|
+
const ObservableAPI_4 = require("./ObservableAPI");
|
|
176
|
+
class PromiseCustomersApi {
|
|
177
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
178
|
+
this.api = new ObservableAPI_4.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Create a new Customer.
|
|
182
|
+
* Create Customer
|
|
183
|
+
* @param createCustomerRequest
|
|
184
|
+
*/
|
|
185
|
+
createCustomerWithHttpInfo(createCustomerRequest, _options) {
|
|
186
|
+
const result = this.api.createCustomerWithHttpInfo(createCustomerRequest, _options);
|
|
187
|
+
return result.toPromise();
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Create a new Customer.
|
|
191
|
+
* Create Customer
|
|
192
|
+
* @param createCustomerRequest
|
|
193
|
+
*/
|
|
194
|
+
createCustomer(createCustomerRequest, _options) {
|
|
195
|
+
const result = this.api.createCustomer(createCustomerRequest, _options);
|
|
196
|
+
return result.toPromise();
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Delete a Customer by id.
|
|
200
|
+
* Delete Customer
|
|
201
|
+
* @param customerId
|
|
202
|
+
*/
|
|
203
|
+
deleteCustomerWithHttpInfo(customerId, _options) {
|
|
204
|
+
const result = this.api.deleteCustomerWithHttpInfo(customerId, _options);
|
|
205
|
+
return result.toPromise();
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Delete a Customer by id.
|
|
209
|
+
* Delete Customer
|
|
210
|
+
* @param customerId
|
|
211
|
+
*/
|
|
212
|
+
deleteCustomer(customerId, _options) {
|
|
213
|
+
const result = this.api.deleteCustomer(customerId, _options);
|
|
214
|
+
return result.toPromise();
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Get a Customer by id.
|
|
218
|
+
* Get Customer
|
|
219
|
+
* @param customerId
|
|
220
|
+
*/
|
|
221
|
+
getCustomerWithHttpInfo(customerId, _options) {
|
|
222
|
+
const result = this.api.getCustomerWithHttpInfo(customerId, _options);
|
|
223
|
+
return result.toPromise();
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Get a Customer by id.
|
|
227
|
+
* Get Customer
|
|
228
|
+
* @param customerId
|
|
229
|
+
*/
|
|
230
|
+
getCustomer(customerId, _options) {
|
|
231
|
+
const result = this.api.getCustomer(customerId, _options);
|
|
232
|
+
return result.toPromise();
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Get a list of Customers.
|
|
236
|
+
* List Customers
|
|
237
|
+
* @param limit
|
|
238
|
+
* @param cursor
|
|
239
|
+
*/
|
|
240
|
+
listCustomersWithHttpInfo(limit, cursor, _options) {
|
|
241
|
+
const result = this.api.listCustomersWithHttpInfo(limit, cursor, _options);
|
|
242
|
+
return result.toPromise();
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Get a list of Customers.
|
|
246
|
+
* List Customers
|
|
247
|
+
* @param limit
|
|
248
|
+
* @param cursor
|
|
249
|
+
*/
|
|
250
|
+
listCustomers(limit, cursor, _options) {
|
|
251
|
+
const result = this.api.listCustomers(limit, cursor, _options);
|
|
252
|
+
return result.toPromise();
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Update a Customer by id.
|
|
256
|
+
* Update Customer
|
|
257
|
+
* @param updateCustomerRequest
|
|
258
|
+
* @param customerId
|
|
259
|
+
*/
|
|
260
|
+
updateCustomerWithHttpInfo(updateCustomerRequest, customerId, _options) {
|
|
261
|
+
const result = this.api.updateCustomerWithHttpInfo(updateCustomerRequest, customerId, _options);
|
|
262
|
+
return result.toPromise();
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Update a Customer by id.
|
|
266
|
+
* Update Customer
|
|
267
|
+
* @param updateCustomerRequest
|
|
268
|
+
* @param customerId
|
|
269
|
+
*/
|
|
270
|
+
updateCustomer(updateCustomerRequest, customerId, _options) {
|
|
271
|
+
const result = this.api.updateCustomer(updateCustomerRequest, customerId, _options);
|
|
272
|
+
return result.toPromise();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
exports.PromiseCustomersApi = PromiseCustomersApi;
|
|
276
|
+
const ObservableAPI_5 = require("./ObservableAPI");
|
|
277
|
+
class PromiseEventsApi {
|
|
278
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
279
|
+
this.api = new ObservableAPI_5.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Use this endpoint to remove a specific event using its reference ID.
|
|
283
|
+
* Delete an event by refId
|
|
284
|
+
* @param refId
|
|
285
|
+
*/
|
|
286
|
+
deleteEventByRefIdWithHttpInfo(refId, _options) {
|
|
287
|
+
const result = this.api.deleteEventByRefIdWithHttpInfo(refId, _options);
|
|
288
|
+
return result.toPromise();
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Use this endpoint to remove a specific event using its reference ID.
|
|
292
|
+
* Delete an event by refId
|
|
293
|
+
* @param refId
|
|
294
|
+
*/
|
|
295
|
+
deleteEventByRefId(refId, _options) {
|
|
296
|
+
const result = this.api.deleteEventByRefId(refId, _options);
|
|
297
|
+
return result.toPromise();
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Use this endpoint to get a specific event using its reference ID.
|
|
301
|
+
* Get event by refId
|
|
302
|
+
* @param refId
|
|
303
|
+
*/
|
|
304
|
+
getEventByRefIdWithHttpInfo(refId, _options) {
|
|
305
|
+
const result = this.api.getEventByRefIdWithHttpInfo(refId, _options);
|
|
306
|
+
return result.toPromise();
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Use this endpoint to get a specific event using its reference ID.
|
|
310
|
+
* Get event by refId
|
|
311
|
+
* @param refId
|
|
312
|
+
*/
|
|
313
|
+
getEventByRefId(refId, _options) {
|
|
314
|
+
const result = this.api.getEventByRefId(refId, _options);
|
|
315
|
+
return result.toPromise();
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
|
|
319
|
+
* Query events by timestamp period and optional event name
|
|
320
|
+
* @param startTime
|
|
321
|
+
* @param endTime
|
|
322
|
+
* @param eventName
|
|
323
|
+
* @param limit
|
|
324
|
+
* @param cursor
|
|
325
|
+
*/
|
|
326
|
+
queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options) {
|
|
327
|
+
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options);
|
|
328
|
+
return result.toPromise();
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
|
|
332
|
+
* Query events by timestamp period and optional event name
|
|
333
|
+
* @param startTime
|
|
334
|
+
* @param endTime
|
|
335
|
+
* @param eventName
|
|
336
|
+
* @param limit
|
|
337
|
+
* @param cursor
|
|
338
|
+
*/
|
|
339
|
+
queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
|
|
340
|
+
const result = this.api.queryEvents(startTime, endTime, eventName, limit, cursor, _options);
|
|
341
|
+
return result.toPromise();
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
|
|
345
|
+
* Submit a batch of events for ingestion
|
|
346
|
+
* @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
|
|
347
|
+
*/
|
|
348
|
+
sendEventsWithHttpInfo(sendEventsRequest, _options) {
|
|
349
|
+
const result = this.api.sendEventsWithHttpInfo(sendEventsRequest, _options);
|
|
350
|
+
return result.toPromise();
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
|
|
354
|
+
* Submit a batch of events for ingestion
|
|
355
|
+
* @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
|
|
356
|
+
*/
|
|
357
|
+
sendEvents(sendEventsRequest, _options) {
|
|
358
|
+
const result = this.api.sendEvents(sendEventsRequest, _options);
|
|
359
|
+
return result.toPromise();
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* 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.
|
|
363
|
+
* Submit a batch of events for testing
|
|
364
|
+
* @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
|
|
365
|
+
*/
|
|
366
|
+
sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options) {
|
|
367
|
+
const result = this.api.sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options);
|
|
368
|
+
return result.toPromise();
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* 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.
|
|
372
|
+
* Submit a batch of events for testing
|
|
373
|
+
* @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
|
|
374
|
+
*/
|
|
375
|
+
sendEventsDryRun(eventsDryRunRequest, _options) {
|
|
376
|
+
const result = this.api.sendEventsDryRun(eventsDryRunRequest, _options);
|
|
377
|
+
return result.toPromise();
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
exports.PromiseEventsApi = PromiseEventsApi;
|
|
381
|
+
const ObservableAPI_6 = require("./ObservableAPI");
|
|
382
|
+
class PromiseIntegrationsApi {
|
|
383
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
384
|
+
this.api = new ObservableAPI_6.ObservableIntegrationsApi(configuration, requestFactory, responseProcessor);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* This endpoint is used to export sales order to NetSuite.
|
|
388
|
+
* Export sales order to NetSuite
|
|
389
|
+
* @param netSuiteExportSalesOrderRequest
|
|
390
|
+
*/
|
|
391
|
+
exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options) {
|
|
392
|
+
const result = this.api.exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options);
|
|
393
|
+
return result.toPromise();
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* This endpoint is used to export sales order to NetSuite.
|
|
397
|
+
* Export sales order to NetSuite
|
|
398
|
+
* @param netSuiteExportSalesOrderRequest
|
|
399
|
+
*/
|
|
400
|
+
exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options) {
|
|
401
|
+
const result = this.api.exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options);
|
|
402
|
+
return result.toPromise();
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* This endpoint is used to sync invoices to NetSuite.
|
|
406
|
+
* Sync invoices to NetSuite
|
|
407
|
+
* @param netSuiteSyncInvoicesRequest
|
|
408
|
+
*/
|
|
409
|
+
netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options) {
|
|
410
|
+
const result = this.api.netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options);
|
|
411
|
+
return result.toPromise();
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* This endpoint is used to sync invoices to NetSuite.
|
|
415
|
+
* Sync invoices to NetSuite
|
|
416
|
+
* @param netSuiteSyncInvoicesRequest
|
|
417
|
+
*/
|
|
418
|
+
netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options) {
|
|
419
|
+
const result = this.api.netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options);
|
|
420
|
+
return result.toPromise();
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
exports.PromiseIntegrationsApi = PromiseIntegrationsApi;
|
|
424
|
+
const ObservableAPI_7 = require("./ObservableAPI");
|
|
425
|
+
class PromiseInvoicesApi {
|
|
426
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
427
|
+
this.api = new ObservableAPI_7.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Get a Invoice by id.
|
|
431
|
+
* Get Invoice
|
|
432
|
+
* @param invoiceId
|
|
433
|
+
*/
|
|
434
|
+
getInvoiceWithHttpInfo(invoiceId, _options) {
|
|
435
|
+
const result = this.api.getInvoiceWithHttpInfo(invoiceId, _options);
|
|
436
|
+
return result.toPromise();
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Get a Invoice by id.
|
|
440
|
+
* Get Invoice
|
|
441
|
+
* @param invoiceId
|
|
442
|
+
*/
|
|
443
|
+
getInvoice(invoiceId, _options) {
|
|
444
|
+
const result = this.api.getInvoice(invoiceId, _options);
|
|
445
|
+
return result.toPromise();
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Get a list of Invoices.
|
|
449
|
+
* List Invoices
|
|
450
|
+
* @param limit
|
|
451
|
+
* @param cursor
|
|
452
|
+
*/
|
|
453
|
+
listInvoicesWithHttpInfo(limit, cursor, _options) {
|
|
454
|
+
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, _options);
|
|
455
|
+
return result.toPromise();
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Get a list of Invoices.
|
|
459
|
+
* List Invoices
|
|
460
|
+
* @param limit
|
|
461
|
+
* @param cursor
|
|
462
|
+
*/
|
|
463
|
+
listInvoices(limit, cursor, _options) {
|
|
464
|
+
const result = this.api.listInvoices(limit, cursor, _options);
|
|
465
|
+
return result.toPromise();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
469
|
+
const ObservableAPI_8 = require("./ObservableAPI");
|
|
470
|
+
class PromiseMetersApi {
|
|
471
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
472
|
+
this.api = new ObservableAPI_8.ObservableMetersApi(configuration, requestFactory, responseProcessor);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Delete a Meter by id.
|
|
476
|
+
* Delete Meter
|
|
477
|
+
* @param meterId
|
|
478
|
+
*/
|
|
479
|
+
deleteMeterWithHttpInfo(meterId, _options) {
|
|
480
|
+
const result = this.api.deleteMeterWithHttpInfo(meterId, _options);
|
|
481
|
+
return result.toPromise();
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Delete a Meter by id.
|
|
485
|
+
* Delete Meter
|
|
486
|
+
* @param meterId
|
|
487
|
+
*/
|
|
488
|
+
deleteMeter(meterId, _options) {
|
|
489
|
+
const result = this.api.deleteMeter(meterId, _options);
|
|
490
|
+
return result.toPromise();
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Get a Meter by id.
|
|
494
|
+
* Get Meter
|
|
495
|
+
* @param meterId
|
|
496
|
+
*/
|
|
497
|
+
getMeterWithHttpInfo(meterId, _options) {
|
|
498
|
+
const result = this.api.getMeterWithHttpInfo(meterId, _options);
|
|
499
|
+
return result.toPromise();
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Get a Meter by id.
|
|
503
|
+
* Get Meter
|
|
504
|
+
* @param meterId
|
|
505
|
+
*/
|
|
506
|
+
getMeter(meterId, _options) {
|
|
507
|
+
const result = this.api.getMeter(meterId, _options);
|
|
508
|
+
return result.toPromise();
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Get a list of Meters.
|
|
512
|
+
* List Meters
|
|
513
|
+
* @param limit
|
|
514
|
+
* @param cursor
|
|
515
|
+
*/
|
|
516
|
+
listMetersWithHttpInfo(limit, cursor, _options) {
|
|
517
|
+
const result = this.api.listMetersWithHttpInfo(limit, cursor, _options);
|
|
518
|
+
return result.toPromise();
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Get a list of Meters.
|
|
522
|
+
* List Meters
|
|
523
|
+
* @param limit
|
|
524
|
+
* @param cursor
|
|
525
|
+
*/
|
|
526
|
+
listMeters(limit, cursor, _options) {
|
|
527
|
+
const result = this.api.listMeters(limit, cursor, _options);
|
|
528
|
+
return result.toPromise();
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Update a Meter by id.
|
|
532
|
+
* Update Meter
|
|
533
|
+
* @param updateMeterRequest
|
|
534
|
+
* @param meterId
|
|
535
|
+
*/
|
|
536
|
+
updateMeterWithHttpInfo(updateMeterRequest, meterId, _options) {
|
|
537
|
+
const result = this.api.updateMeterWithHttpInfo(updateMeterRequest, meterId, _options);
|
|
538
|
+
return result.toPromise();
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Update a Meter by id.
|
|
542
|
+
* Update Meter
|
|
543
|
+
* @param updateMeterRequest
|
|
544
|
+
* @param meterId
|
|
545
|
+
*/
|
|
546
|
+
updateMeter(updateMeterRequest, meterId, _options) {
|
|
547
|
+
const result = this.api.updateMeter(updateMeterRequest, meterId, _options);
|
|
548
|
+
return result.toPromise();
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
exports.PromiseMetersApi = PromiseMetersApi;
|
|
552
|
+
const ObservableAPI_9 = require("./ObservableAPI");
|
|
553
|
+
class PromisePlansApi {
|
|
554
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
555
|
+
this.api = new ObservableAPI_9.ObservablePlansApi(configuration, requestFactory, responseProcessor);
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Delete a Plan by id.
|
|
559
|
+
* Delete Plan
|
|
560
|
+
* @param planId
|
|
561
|
+
*/
|
|
562
|
+
deletePlanWithHttpInfo(planId, _options) {
|
|
563
|
+
const result = this.api.deletePlanWithHttpInfo(planId, _options);
|
|
564
|
+
return result.toPromise();
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Delete a Plan by id.
|
|
568
|
+
* Delete Plan
|
|
569
|
+
* @param planId
|
|
570
|
+
*/
|
|
571
|
+
deletePlan(planId, _options) {
|
|
572
|
+
const result = this.api.deletePlan(planId, _options);
|
|
573
|
+
return result.toPromise();
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Get a Plan by id.
|
|
577
|
+
* Get Plan
|
|
578
|
+
* @param planId
|
|
579
|
+
*/
|
|
580
|
+
getPlanWithHttpInfo(planId, _options) {
|
|
581
|
+
const result = this.api.getPlanWithHttpInfo(planId, _options);
|
|
582
|
+
return result.toPromise();
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Get a Plan by id.
|
|
586
|
+
* Get Plan
|
|
587
|
+
* @param planId
|
|
588
|
+
*/
|
|
589
|
+
getPlan(planId, _options) {
|
|
590
|
+
const result = this.api.getPlan(planId, _options);
|
|
591
|
+
return result.toPromise();
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Get a list of Plans.
|
|
595
|
+
* List Plans
|
|
596
|
+
* @param limit
|
|
597
|
+
* @param cursor
|
|
598
|
+
*/
|
|
599
|
+
listPlansWithHttpInfo(limit, cursor, _options) {
|
|
600
|
+
const result = this.api.listPlansWithHttpInfo(limit, cursor, _options);
|
|
601
|
+
return result.toPromise();
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Get a list of Plans.
|
|
605
|
+
* List Plans
|
|
606
|
+
* @param limit
|
|
607
|
+
* @param cursor
|
|
608
|
+
*/
|
|
609
|
+
listPlans(limit, cursor, _options) {
|
|
610
|
+
const result = this.api.listPlans(limit, cursor, _options);
|
|
611
|
+
return result.toPromise();
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
exports.PromisePlansApi = PromisePlansApi;
|
|
615
|
+
const ObservableAPI_10 = require("./ObservableAPI");
|
|
616
|
+
class PromiseReportsApi {
|
|
617
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
618
|
+
this.api = new ObservableAPI_10.ObservableReportsApi(configuration, requestFactory, responseProcessor);
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Get commitment report
|
|
622
|
+
* @param reportId
|
|
623
|
+
*/
|
|
624
|
+
getCommitmentReportResponseWithHttpInfo(reportId, _options) {
|
|
625
|
+
const result = this.api.getCommitmentReportResponseWithHttpInfo(reportId, _options);
|
|
626
|
+
return result.toPromise();
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Get commitment report
|
|
630
|
+
* @param reportId
|
|
631
|
+
*/
|
|
632
|
+
getCommitmentReportResponse(reportId, _options) {
|
|
633
|
+
const result = this.api.getCommitmentReportResponse(reportId, _options);
|
|
634
|
+
return result.toPromise();
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Use this endpoint to get the products usage report.
|
|
638
|
+
* Get products usage report
|
|
639
|
+
* @param reportId
|
|
640
|
+
* @param limit
|
|
641
|
+
* @param cursor
|
|
642
|
+
*/
|
|
643
|
+
getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options) {
|
|
644
|
+
const result = this.api.getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options);
|
|
645
|
+
return result.toPromise();
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Use this endpoint to get the products usage report.
|
|
649
|
+
* Get products usage report
|
|
650
|
+
* @param reportId
|
|
651
|
+
* @param limit
|
|
652
|
+
* @param cursor
|
|
653
|
+
*/
|
|
654
|
+
getProductsUsageReport(reportId, limit, cursor, _options) {
|
|
655
|
+
const result = this.api.getProductsUsageReport(reportId, limit, cursor, _options);
|
|
656
|
+
return result.toPromise();
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
exports.PromiseReportsApi = PromiseReportsApi;
|
|
660
|
+
const ObservableAPI_11 = require("./ObservableAPI");
|
|
661
|
+
class PromiseWebhooksApi {
|
|
662
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
663
|
+
this.api = new ObservableAPI_11.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
667
|
+
* Subscribe to webhooks
|
|
668
|
+
* @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
|
|
669
|
+
*/
|
|
670
|
+
webhookSubscribeWithHttpInfo(webhookSubscribeRequest, _options) {
|
|
671
|
+
const result = this.api.webhookSubscribeWithHttpInfo(webhookSubscribeRequest, _options);
|
|
672
|
+
return result.toPromise();
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
676
|
+
* Subscribe to webhooks
|
|
677
|
+
* @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
|
|
678
|
+
*/
|
|
679
|
+
webhookSubscribe(webhookSubscribeRequest, _options) {
|
|
680
|
+
const result = this.api.webhookSubscribe(webhookSubscribeRequest, _options);
|
|
681
|
+
return result.toPromise();
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
exports.PromiseWebhooksApi = PromiseWebhooksApi;
|
|
@@ -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;
|