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,590 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectWebhooksApi = exports.ObjectReportsApi = exports.ObjectPlansApi = exports.ObjectMetersApi = exports.ObjectInvoicesApi = exports.ObjectIntegrationsApi = exports.ObjectEventsApi = exports.ObjectCustomersApi = exports.ObjectCreditsApi = exports.ObjectContractsApi = exports.ObjectAuthApi = void 0;
|
|
4
|
-
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
|
-
class ObjectAuthApi {
|
|
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 param the request object
|
|
13
|
-
*/
|
|
14
|
-
loginWithHttpInfo(param, options) {
|
|
15
|
-
return this.api.loginWithHttpInfo(param.loginRequest, options).toPromise();
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 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.
|
|
19
|
-
* Login by obtaining a new access token
|
|
20
|
-
* @param param the request object
|
|
21
|
-
*/
|
|
22
|
-
login(param, options) {
|
|
23
|
-
return this.api.login(param.loginRequest, options).toPromise();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.ObjectAuthApi = ObjectAuthApi;
|
|
27
|
-
const ObservableAPI_2 = require("./ObservableAPI");
|
|
28
|
-
class ObjectContractsApi {
|
|
29
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
30
|
-
this.api = new ObservableAPI_2.ObservableContractsApi(configuration, requestFactory, responseProcessor);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Create a new Contract.
|
|
34
|
-
* Create Contract
|
|
35
|
-
* @param param the request object
|
|
36
|
-
*/
|
|
37
|
-
createContractWithHttpInfo(param, options) {
|
|
38
|
-
return this.api.createContractWithHttpInfo(param.createContractRequest, options).toPromise();
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Create a new Contract.
|
|
42
|
-
* Create Contract
|
|
43
|
-
* @param param the request object
|
|
44
|
-
*/
|
|
45
|
-
createContract(param, options) {
|
|
46
|
-
return this.api.createContract(param.createContractRequest, options).toPromise();
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Delete a Contract by id.
|
|
50
|
-
* Delete Contract
|
|
51
|
-
* @param param the request object
|
|
52
|
-
*/
|
|
53
|
-
deleteContractWithHttpInfo(param, options) {
|
|
54
|
-
return this.api.deleteContractWithHttpInfo(param.contractId, options).toPromise();
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Delete a Contract by id.
|
|
58
|
-
* Delete Contract
|
|
59
|
-
* @param param the request object
|
|
60
|
-
*/
|
|
61
|
-
deleteContract(param, options) {
|
|
62
|
-
return this.api.deleteContract(param.contractId, options).toPromise();
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Get a Contract by id.
|
|
66
|
-
* Get Contract
|
|
67
|
-
* @param param the request object
|
|
68
|
-
*/
|
|
69
|
-
getContractWithHttpInfo(param, options) {
|
|
70
|
-
return this.api.getContractWithHttpInfo(param.contractId, options).toPromise();
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Get a Contract by id.
|
|
74
|
-
* Get Contract
|
|
75
|
-
* @param param the request object
|
|
76
|
-
*/
|
|
77
|
-
getContract(param, options) {
|
|
78
|
-
return this.api.getContract(param.contractId, options).toPromise();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Get a list of Contracts.
|
|
82
|
-
* List Contracts
|
|
83
|
-
* @param param the request object
|
|
84
|
-
*/
|
|
85
|
-
listContractsWithHttpInfo(param = {}, options) {
|
|
86
|
-
return this.api.listContractsWithHttpInfo(param.limit, param.cursor, options).toPromise();
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Get a list of Contracts.
|
|
90
|
-
* List Contracts
|
|
91
|
-
* @param param the request object
|
|
92
|
-
*/
|
|
93
|
-
listContracts(param = {}, options) {
|
|
94
|
-
return this.api.listContracts(param.limit, param.cursor, options).toPromise();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.ObjectContractsApi = ObjectContractsApi;
|
|
98
|
-
const ObservableAPI_3 = require("./ObservableAPI");
|
|
99
|
-
class ObjectCreditsApi {
|
|
100
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
101
|
-
this.api = new ObservableAPI_3.ObservableCreditsApi(configuration, requestFactory, responseProcessor);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* 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.
|
|
105
|
-
* Deduct credits from customer credit ledger
|
|
106
|
-
* @param param the request object
|
|
107
|
-
*/
|
|
108
|
-
deductCreditsWithHttpInfo(param, options) {
|
|
109
|
-
return this.api.deductCreditsWithHttpInfo(param.deductCreditsRequest, options).toPromise();
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* 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.
|
|
113
|
-
* Deduct credits from customer credit ledger
|
|
114
|
-
* @param param the request object
|
|
115
|
-
*/
|
|
116
|
-
deductCredits(param, options) {
|
|
117
|
-
return this.api.deductCredits(param.deductCreditsRequest, options).toPromise();
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* 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.
|
|
121
|
-
* Grant credits to a customer credit ledger
|
|
122
|
-
* @param param the request object
|
|
123
|
-
*/
|
|
124
|
-
grantCreditsWithHttpInfo(param, options) {
|
|
125
|
-
return this.api.grantCreditsWithHttpInfo(param.grantCreditsRequest, options).toPromise();
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* 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.
|
|
129
|
-
* Grant credits to a customer credit ledger
|
|
130
|
-
* @param param the request object
|
|
131
|
-
*/
|
|
132
|
-
grantCredits(param, options) {
|
|
133
|
-
return this.api.grantCredits(param.grantCreditsRequest, options).toPromise();
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* This endpoint is used to retrieve the credit ledger entries for a specific customer.
|
|
137
|
-
* Retrieve credit ledger entries for customer.
|
|
138
|
-
* @param param the request object
|
|
139
|
-
*/
|
|
140
|
-
listCreditLedgerEntriesWithHttpInfo(param, options) {
|
|
141
|
-
return this.api.listCreditLedgerEntriesWithHttpInfo(param.customerId, param.limit, param.cursor, options).toPromise();
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* This endpoint is used to retrieve the credit ledger entries for a specific customer.
|
|
145
|
-
* Retrieve credit ledger entries for customer.
|
|
146
|
-
* @param param the request object
|
|
147
|
-
*/
|
|
148
|
-
listCreditLedgerEntries(param, options) {
|
|
149
|
-
return this.api.listCreditLedgerEntries(param.customerId, param.limit, param.cursor, options).toPromise();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.ObjectCreditsApi = ObjectCreditsApi;
|
|
153
|
-
const ObservableAPI_4 = require("./ObservableAPI");
|
|
154
|
-
class ObjectCustomersApi {
|
|
155
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
156
|
-
this.api = new ObservableAPI_4.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Create a new Customer.
|
|
160
|
-
* Create Customer
|
|
161
|
-
* @param param the request object
|
|
162
|
-
*/
|
|
163
|
-
createCustomerWithHttpInfo(param, options) {
|
|
164
|
-
return this.api.createCustomerWithHttpInfo(param.createCustomerRequest, options).toPromise();
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Create a new Customer.
|
|
168
|
-
* Create Customer
|
|
169
|
-
* @param param the request object
|
|
170
|
-
*/
|
|
171
|
-
createCustomer(param, options) {
|
|
172
|
-
return this.api.createCustomer(param.createCustomerRequest, options).toPromise();
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Delete a Customer by id.
|
|
176
|
-
* Delete Customer
|
|
177
|
-
* @param param the request object
|
|
178
|
-
*/
|
|
179
|
-
deleteCustomerWithHttpInfo(param, options) {
|
|
180
|
-
return this.api.deleteCustomerWithHttpInfo(param.customerId, options).toPromise();
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Delete a Customer by id.
|
|
184
|
-
* Delete Customer
|
|
185
|
-
* @param param the request object
|
|
186
|
-
*/
|
|
187
|
-
deleteCustomer(param, options) {
|
|
188
|
-
return this.api.deleteCustomer(param.customerId, options).toPromise();
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Get a Customer by id.
|
|
192
|
-
* Get Customer
|
|
193
|
-
* @param param the request object
|
|
194
|
-
*/
|
|
195
|
-
getCustomerWithHttpInfo(param, options) {
|
|
196
|
-
return this.api.getCustomerWithHttpInfo(param.customerId, options).toPromise();
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Get a Customer by id.
|
|
200
|
-
* Get Customer
|
|
201
|
-
* @param param the request object
|
|
202
|
-
*/
|
|
203
|
-
getCustomer(param, options) {
|
|
204
|
-
return this.api.getCustomer(param.customerId, options).toPromise();
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Get a list of Customers.
|
|
208
|
-
* List Customers
|
|
209
|
-
* @param param the request object
|
|
210
|
-
*/
|
|
211
|
-
listCustomersWithHttpInfo(param = {}, options) {
|
|
212
|
-
return this.api.listCustomersWithHttpInfo(param.limit, param.cursor, options).toPromise();
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Get a list of Customers.
|
|
216
|
-
* List Customers
|
|
217
|
-
* @param param the request object
|
|
218
|
-
*/
|
|
219
|
-
listCustomers(param = {}, options) {
|
|
220
|
-
return this.api.listCustomers(param.limit, param.cursor, options).toPromise();
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Update a Customer by id.
|
|
224
|
-
* Update Customer
|
|
225
|
-
* @param param the request object
|
|
226
|
-
*/
|
|
227
|
-
updateCustomerWithHttpInfo(param, options) {
|
|
228
|
-
return this.api.updateCustomerWithHttpInfo(param.updateCustomerRequest, param.customerId, options).toPromise();
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Update a Customer by id.
|
|
232
|
-
* Update Customer
|
|
233
|
-
* @param param the request object
|
|
234
|
-
*/
|
|
235
|
-
updateCustomer(param, options) {
|
|
236
|
-
return this.api.updateCustomer(param.updateCustomerRequest, param.customerId, options).toPromise();
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
exports.ObjectCustomersApi = ObjectCustomersApi;
|
|
240
|
-
const ObservableAPI_5 = require("./ObservableAPI");
|
|
241
|
-
class ObjectEventsApi {
|
|
242
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
243
|
-
this.api = new ObservableAPI_5.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Use this endpoint to remove a specific event using its reference ID.
|
|
247
|
-
* Delete an event by refId
|
|
248
|
-
* @param param the request object
|
|
249
|
-
*/
|
|
250
|
-
deleteEventByRefIdWithHttpInfo(param, options) {
|
|
251
|
-
return this.api.deleteEventByRefIdWithHttpInfo(param.refId, options).toPromise();
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Use this endpoint to remove a specific event using its reference ID.
|
|
255
|
-
* Delete an event by refId
|
|
256
|
-
* @param param the request object
|
|
257
|
-
*/
|
|
258
|
-
deleteEventByRefId(param, options) {
|
|
259
|
-
return this.api.deleteEventByRefId(param.refId, options).toPromise();
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Use this endpoint to get a specific event using its reference ID.
|
|
263
|
-
* Get event by refId
|
|
264
|
-
* @param param the request object
|
|
265
|
-
*/
|
|
266
|
-
getEventByRefIdWithHttpInfo(param, options) {
|
|
267
|
-
return this.api.getEventByRefIdWithHttpInfo(param.refId, options).toPromise();
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Use this endpoint to get a specific event using its reference ID.
|
|
271
|
-
* Get event by refId
|
|
272
|
-
* @param param the request object
|
|
273
|
-
*/
|
|
274
|
-
getEventByRefId(param, options) {
|
|
275
|
-
return this.api.getEventByRefId(param.refId, options).toPromise();
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
|
|
279
|
-
* Query events by timestamp period and optional event name
|
|
280
|
-
* @param param the request object
|
|
281
|
-
*/
|
|
282
|
-
queryEventsWithHttpInfo(param, options) {
|
|
283
|
-
return this.api.queryEventsWithHttpInfo(param.startTime, param.endTime, param.eventName, param.limit, param.cursor, options).toPromise();
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
|
|
287
|
-
* Query events by timestamp period and optional event name
|
|
288
|
-
* @param param the request object
|
|
289
|
-
*/
|
|
290
|
-
queryEvents(param, options) {
|
|
291
|
-
return this.api.queryEvents(param.startTime, param.endTime, param.eventName, param.limit, param.cursor, options).toPromise();
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
|
|
295
|
-
* Submit a batch of events for ingestion
|
|
296
|
-
* @param param the request object
|
|
297
|
-
*/
|
|
298
|
-
sendEventsWithHttpInfo(param, options) {
|
|
299
|
-
return this.api.sendEventsWithHttpInfo(param.sendEventsRequest, options).toPromise();
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
|
|
303
|
-
* Submit a batch of events for ingestion
|
|
304
|
-
* @param param the request object
|
|
305
|
-
*/
|
|
306
|
-
sendEvents(param, options) {
|
|
307
|
-
return this.api.sendEvents(param.sendEventsRequest, options).toPromise();
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* 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.
|
|
311
|
-
* Submit a batch of events for testing
|
|
312
|
-
* @param param the request object
|
|
313
|
-
*/
|
|
314
|
-
sendEventsDryRunWithHttpInfo(param, options) {
|
|
315
|
-
return this.api.sendEventsDryRunWithHttpInfo(param.eventsDryRunRequest, options).toPromise();
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* 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.
|
|
319
|
-
* Submit a batch of events for testing
|
|
320
|
-
* @param param the request object
|
|
321
|
-
*/
|
|
322
|
-
sendEventsDryRun(param, options) {
|
|
323
|
-
return this.api.sendEventsDryRun(param.eventsDryRunRequest, options).toPromise();
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
exports.ObjectEventsApi = ObjectEventsApi;
|
|
327
|
-
const ObservableAPI_6 = require("./ObservableAPI");
|
|
328
|
-
class ObjectIntegrationsApi {
|
|
329
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
330
|
-
this.api = new ObservableAPI_6.ObservableIntegrationsApi(configuration, requestFactory, responseProcessor);
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
334
|
-
* Export sales order to NetSuite
|
|
335
|
-
* @param param the request object
|
|
336
|
-
*/
|
|
337
|
-
exportNetSuiteSalesOrderWithHttpInfo(param, options) {
|
|
338
|
-
return this.api.exportNetSuiteSalesOrderWithHttpInfo(param.netSuiteExportSalesOrderRequest, options).toPromise();
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
342
|
-
* Export sales order to NetSuite
|
|
343
|
-
* @param param the request object
|
|
344
|
-
*/
|
|
345
|
-
exportNetSuiteSalesOrder(param, options) {
|
|
346
|
-
return this.api.exportNetSuiteSalesOrder(param.netSuiteExportSalesOrderRequest, options).toPromise();
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
350
|
-
* Sync invoices to NetSuite
|
|
351
|
-
* @param param the request object
|
|
352
|
-
*/
|
|
353
|
-
netSuiteSyncInvoicesWithHttpInfo(param, options) {
|
|
354
|
-
return this.api.netSuiteSyncInvoicesWithHttpInfo(param.netSuiteSyncInvoicesRequest, options).toPromise();
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
358
|
-
* Sync invoices to NetSuite
|
|
359
|
-
* @param param the request object
|
|
360
|
-
*/
|
|
361
|
-
netSuiteSyncInvoices(param, options) {
|
|
362
|
-
return this.api.netSuiteSyncInvoices(param.netSuiteSyncInvoicesRequest, options).toPromise();
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
exports.ObjectIntegrationsApi = ObjectIntegrationsApi;
|
|
366
|
-
const ObservableAPI_7 = require("./ObservableAPI");
|
|
367
|
-
class ObjectInvoicesApi {
|
|
368
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
369
|
-
this.api = new ObservableAPI_7.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Get a Invoice by id.
|
|
373
|
-
* Get Invoice
|
|
374
|
-
* @param param the request object
|
|
375
|
-
*/
|
|
376
|
-
getInvoiceWithHttpInfo(param, options) {
|
|
377
|
-
return this.api.getInvoiceWithHttpInfo(param.invoiceId, options).toPromise();
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Get a Invoice by id.
|
|
381
|
-
* Get Invoice
|
|
382
|
-
* @param param the request object
|
|
383
|
-
*/
|
|
384
|
-
getInvoice(param, options) {
|
|
385
|
-
return this.api.getInvoice(param.invoiceId, options).toPromise();
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Get a list of Invoices.
|
|
389
|
-
* List Invoices
|
|
390
|
-
* @param param the request object
|
|
391
|
-
*/
|
|
392
|
-
listInvoicesWithHttpInfo(param = {}, options) {
|
|
393
|
-
return this.api.listInvoicesWithHttpInfo(param.limit, param.cursor, options).toPromise();
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Get a list of Invoices.
|
|
397
|
-
* List Invoices
|
|
398
|
-
* @param param the request object
|
|
399
|
-
*/
|
|
400
|
-
listInvoices(param = {}, options) {
|
|
401
|
-
return this.api.listInvoices(param.limit, param.cursor, options).toPromise();
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
exports.ObjectInvoicesApi = ObjectInvoicesApi;
|
|
405
|
-
const ObservableAPI_8 = require("./ObservableAPI");
|
|
406
|
-
class ObjectMetersApi {
|
|
407
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
408
|
-
this.api = new ObservableAPI_8.ObservableMetersApi(configuration, requestFactory, responseProcessor);
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Delete a Meter by id.
|
|
412
|
-
* Delete Meter
|
|
413
|
-
* @param param the request object
|
|
414
|
-
*/
|
|
415
|
-
deleteMeterWithHttpInfo(param, options) {
|
|
416
|
-
return this.api.deleteMeterWithHttpInfo(param.meterId, options).toPromise();
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Delete a Meter by id.
|
|
420
|
-
* Delete Meter
|
|
421
|
-
* @param param the request object
|
|
422
|
-
*/
|
|
423
|
-
deleteMeter(param, options) {
|
|
424
|
-
return this.api.deleteMeter(param.meterId, options).toPromise();
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* Get a Meter by id.
|
|
428
|
-
* Get Meter
|
|
429
|
-
* @param param the request object
|
|
430
|
-
*/
|
|
431
|
-
getMeterWithHttpInfo(param, options) {
|
|
432
|
-
return this.api.getMeterWithHttpInfo(param.meterId, options).toPromise();
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Get a Meter by id.
|
|
436
|
-
* Get Meter
|
|
437
|
-
* @param param the request object
|
|
438
|
-
*/
|
|
439
|
-
getMeter(param, options) {
|
|
440
|
-
return this.api.getMeter(param.meterId, options).toPromise();
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Get a list of Meters.
|
|
444
|
-
* List Meters
|
|
445
|
-
* @param param the request object
|
|
446
|
-
*/
|
|
447
|
-
listMetersWithHttpInfo(param = {}, options) {
|
|
448
|
-
return this.api.listMetersWithHttpInfo(param.limit, param.cursor, options).toPromise();
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* Get a list of Meters.
|
|
452
|
-
* List Meters
|
|
453
|
-
* @param param the request object
|
|
454
|
-
*/
|
|
455
|
-
listMeters(param = {}, options) {
|
|
456
|
-
return this.api.listMeters(param.limit, param.cursor, options).toPromise();
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Update a Meter by id.
|
|
460
|
-
* Update Meter
|
|
461
|
-
* @param param the request object
|
|
462
|
-
*/
|
|
463
|
-
updateMeterWithHttpInfo(param, options) {
|
|
464
|
-
return this.api.updateMeterWithHttpInfo(param.updateMeterRequest, param.meterId, options).toPromise();
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Update a Meter by id.
|
|
468
|
-
* Update Meter
|
|
469
|
-
* @param param the request object
|
|
470
|
-
*/
|
|
471
|
-
updateMeter(param, options) {
|
|
472
|
-
return this.api.updateMeter(param.updateMeterRequest, param.meterId, options).toPromise();
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
exports.ObjectMetersApi = ObjectMetersApi;
|
|
476
|
-
const ObservableAPI_9 = require("./ObservableAPI");
|
|
477
|
-
class ObjectPlansApi {
|
|
478
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
479
|
-
this.api = new ObservableAPI_9.ObservablePlansApi(configuration, requestFactory, responseProcessor);
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* Delete a Plan by id.
|
|
483
|
-
* Delete Plan
|
|
484
|
-
* @param param the request object
|
|
485
|
-
*/
|
|
486
|
-
deletePlanWithHttpInfo(param, options) {
|
|
487
|
-
return this.api.deletePlanWithHttpInfo(param.planId, options).toPromise();
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Delete a Plan by id.
|
|
491
|
-
* Delete Plan
|
|
492
|
-
* @param param the request object
|
|
493
|
-
*/
|
|
494
|
-
deletePlan(param, options) {
|
|
495
|
-
return this.api.deletePlan(param.planId, options).toPromise();
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Get a Plan by id.
|
|
499
|
-
* Get Plan
|
|
500
|
-
* @param param the request object
|
|
501
|
-
*/
|
|
502
|
-
getPlanWithHttpInfo(param, options) {
|
|
503
|
-
return this.api.getPlanWithHttpInfo(param.planId, options).toPromise();
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* Get a Plan by id.
|
|
507
|
-
* Get Plan
|
|
508
|
-
* @param param the request object
|
|
509
|
-
*/
|
|
510
|
-
getPlan(param, options) {
|
|
511
|
-
return this.api.getPlan(param.planId, options).toPromise();
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Get a list of Plans.
|
|
515
|
-
* List Plans
|
|
516
|
-
* @param param the request object
|
|
517
|
-
*/
|
|
518
|
-
listPlansWithHttpInfo(param = {}, options) {
|
|
519
|
-
return this.api.listPlansWithHttpInfo(param.limit, param.cursor, options).toPromise();
|
|
520
|
-
}
|
|
521
|
-
/**
|
|
522
|
-
* Get a list of Plans.
|
|
523
|
-
* List Plans
|
|
524
|
-
* @param param the request object
|
|
525
|
-
*/
|
|
526
|
-
listPlans(param = {}, options) {
|
|
527
|
-
return this.api.listPlans(param.limit, param.cursor, options).toPromise();
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
exports.ObjectPlansApi = ObjectPlansApi;
|
|
531
|
-
const ObservableAPI_10 = require("./ObservableAPI");
|
|
532
|
-
class ObjectReportsApi {
|
|
533
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
534
|
-
this.api = new ObservableAPI_10.ObservableReportsApi(configuration, requestFactory, responseProcessor);
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* Get commitment report
|
|
538
|
-
* @param param the request object
|
|
539
|
-
*/
|
|
540
|
-
getCommitmentReportResponseWithHttpInfo(param = {}, options) {
|
|
541
|
-
return this.api.getCommitmentReportResponseWithHttpInfo(param.reportId, options).toPromise();
|
|
542
|
-
}
|
|
543
|
-
/**
|
|
544
|
-
* Get commitment report
|
|
545
|
-
* @param param the request object
|
|
546
|
-
*/
|
|
547
|
-
getCommitmentReportResponse(param = {}, options) {
|
|
548
|
-
return this.api.getCommitmentReportResponse(param.reportId, options).toPromise();
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Use this endpoint to get the products usage report.
|
|
552
|
-
* Get products usage report
|
|
553
|
-
* @param param the request object
|
|
554
|
-
*/
|
|
555
|
-
getProductsUsageReportWithHttpInfo(param = {}, options) {
|
|
556
|
-
return this.api.getProductsUsageReportWithHttpInfo(param.reportId, param.limit, param.cursor, options).toPromise();
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* Use this endpoint to get the products usage report.
|
|
560
|
-
* Get products usage report
|
|
561
|
-
* @param param the request object
|
|
562
|
-
*/
|
|
563
|
-
getProductsUsageReport(param = {}, options) {
|
|
564
|
-
return this.api.getProductsUsageReport(param.reportId, param.limit, param.cursor, options).toPromise();
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
exports.ObjectReportsApi = ObjectReportsApi;
|
|
568
|
-
const ObservableAPI_11 = require("./ObservableAPI");
|
|
569
|
-
class ObjectWebhooksApi {
|
|
570
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
571
|
-
this.api = new ObservableAPI_11.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
575
|
-
* Subscribe to webhooks
|
|
576
|
-
* @param param the request object
|
|
577
|
-
*/
|
|
578
|
-
webhookSubscribeWithHttpInfo(param, options) {
|
|
579
|
-
return this.api.webhookSubscribeWithHttpInfo(param.webhookSubscribeRequest, options).toPromise();
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
583
|
-
* Subscribe to webhooks
|
|
584
|
-
* @param param the request object
|
|
585
|
-
*/
|
|
586
|
-
webhookSubscribe(param, options) {
|
|
587
|
-
return this.api.webhookSubscribe(param.webhookSubscribeRequest, options).toPromise();
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
exports.ObjectWebhooksApi = ObjectWebhooksApi;
|