vayu-ts 0.2.14 → 0.3.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/dist/example/index.d.ts +1 -0
- package/dist/example/index.js +74 -0
- package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
- package/dist/openapi/apis/CatalogProductsApi.js +354 -0
- package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
- package/dist/openapi/apis/CloudUsageSubmissionApi.js +85 -0
- package/dist/openapi/apis/ContractsApi.d.ts +21 -3
- package/dist/openapi/apis/ContractsApi.js +75 -3
- package/dist/openapi/apis/CustomersApi.d.ts +63 -0
- package/dist/openapi/apis/CustomersApi.js +257 -7
- package/dist/openapi/apis/EventsApi.d.ts +16 -0
- package/dist/openapi/apis/EventsApi.js +67 -12
- package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
- package/dist/openapi/apis/InvoicesApi.js +69 -3
- package/dist/openapi/apis/ProductConsumptionsApi.js +0 -3
- package/dist/openapi/apis/WebhooksApi.js +0 -3
- package/dist/openapi/http/http.d.ts +6 -18
- package/dist/openapi/http/http.js +25 -13
- package/dist/openapi/http/isomorphic-fetch.d.ts +1 -0
- package/dist/openapi/http/isomorphic-fetch.js +4 -7
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +3 -1
- package/dist/openapi/models/Address.d.ts +5 -5
- package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
- package/dist/openapi/models/CloudUsageResult.js +103 -0
- package/dist/openapi/models/Contact.d.ts +3 -1
- package/dist/openapi/models/Contact.js +12 -0
- package/dist/openapi/models/ContractStatus.d.ts +23 -0
- package/dist/openapi/models/ContractStatus.js +27 -0
- package/dist/openapi/models/CreateCatalogProductRequest.d.ts +42 -0
- package/dist/openapi/models/CreateCatalogProductRequest.js +44 -0
- package/dist/openapi/models/CreateCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCatalogProductResponse.js +32 -0
- package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.d.ts +45 -0
- package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.js +62 -0
- package/dist/openapi/models/CreateContractRequest.d.ts +47 -5
- package/dist/openapi/models/CreateContractRequest.js +65 -5
- package/dist/openapi/models/CreateCustomerRelationRequest.d.ts +38 -0
- package/dist/openapi/models/CreateCustomerRelationRequest.js +38 -0
- package/dist/openapi/models/CreateCustomerRelationResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCustomerRelationResponse.js +32 -0
- package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.d.ts +41 -0
- package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.js +56 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +50 -2
- package/dist/openapi/models/CreateCustomerRequest.js +82 -6
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +50 -2
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +82 -6
- package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -1
- package/dist/openapi/models/CreditLedgerEntry.js +8 -2
- package/dist/openapi/models/Currency.d.ts +24 -0
- package/dist/openapi/models/Currency.js +28 -0
- package/dist/openapi/models/CustomField.d.ts +65 -0
- package/dist/openapi/models/CustomField.js +78 -0
- package/dist/openapi/models/CustomFieldValue.d.ts +33 -0
- package/dist/openapi/models/CustomFieldValue.js +44 -0
- package/dist/openapi/models/CustomFieldValueTypes.d.ts +19 -0
- package/dist/openapi/models/CustomFieldValueTypes.js +23 -0
- package/dist/openapi/models/CustomerCloudProviderSettings.d.ts +39 -0
- package/dist/openapi/models/CustomerCloudProviderSettings.js +51 -0
- package/dist/openapi/models/CustomerSource.d.ts +21 -0
- package/dist/openapi/models/CustomerSource.js +25 -0
- package/dist/openapi/models/DeleteCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/DeleteCatalogProductResponse.js +32 -0
- package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.d.ts +46 -0
- package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.js +68 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -5
- package/dist/openapi/models/DeleteContractResponseContract.js +65 -5
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -2
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +82 -6
- package/dist/openapi/models/DeleteEventsByRefsRequest.d.ts +31 -0
- package/dist/openapi/models/DeleteEventsByRefsRequest.js +32 -0
- package/dist/openapi/models/DeleteEventsByRefsResponse.d.ts +35 -0
- package/dist/openapi/models/DeleteEventsByRefsResponse.js +32 -0
- package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.d.ts +56 -0
- package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.js +80 -0
- package/dist/openapi/models/ExternalOverageStrategy.d.ts +20 -0
- package/dist/openapi/models/ExternalOverageStrategy.js +24 -0
- package/dist/openapi/models/GetCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/GetCatalogProductResponse.js +32 -0
- package/dist/openapi/models/GetContractByIntegrationIdResponse.d.ts +32 -0
- package/dist/openapi/models/GetContractByIntegrationIdResponse.js +32 -0
- package/dist/openapi/models/GetContractResponseContract.d.ts +47 -5
- package/dist/openapi/models/GetContractResponseContract.js +65 -5
- package/dist/openapi/models/GetCustomerByIntegrationIdResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerByIntegrationIdResponse.js +32 -0
- package/dist/openapi/models/GetCustomerByNameResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerByNameResponse.js +32 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +103 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +153 -0
- package/dist/openapi/models/GetCustomerRelationResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerRelationResponse.js +32 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +14 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.js +30 -0
- package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.d.ts +39 -0
- package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.js +65 -0
- package/dist/openapi/models/IntegrationEntity.d.ts +42 -0
- package/dist/openapi/models/IntegrationEntity.js +62 -0
- package/dist/openapi/models/IntegrationEntityTypes.d.ts +23 -0
- package/dist/openapi/models/IntegrationEntityTypes.js +27 -0
- package/dist/openapi/models/IntegrationProviders.d.ts +26 -0
- package/dist/openapi/models/IntegrationProviders.js +30 -0
- package/dist/openapi/models/IntegrationType.d.ts +26 -0
- package/dist/openapi/models/IntegrationType.js +30 -0
- package/dist/openapi/models/InvoiceBillingStatus.d.ts +21 -0
- package/dist/openapi/models/InvoiceBillingStatus.js +25 -0
- package/dist/openapi/models/InvoicePaymentStatusResponse.d.ts +39 -0
- package/dist/openapi/models/InvoicePaymentStatusResponse.js +74 -0
- package/dist/openapi/models/ListCatalogProductsResponse.d.ts +35 -0
- package/dist/openapi/models/ListCatalogProductsResponse.js +50 -0
- package/dist/openapi/models/NotificationEventType.d.ts +3 -1
- package/dist/openapi/models/NotificationEventType.js +2 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +61 -0
- package/dist/openapi/models/ObjectSerializer.js +191 -0
- package/dist/openapi/models/PartnerSubmissionDetail.d.ts +46 -0
- package/dist/openapi/models/PartnerSubmissionDetail.js +49 -0
- package/dist/openapi/models/PaymentInfo.d.ts +45 -0
- package/dist/openapi/models/PaymentInfo.js +89 -0
- package/dist/openapi/models/PaymentInfoDepositTo.d.ts +32 -0
- package/dist/openapi/models/PaymentInfoDepositTo.js +38 -0
- package/dist/openapi/models/PaymentTerm.d.ts +18 -0
- package/dist/openapi/models/PaymentTerm.js +22 -0
- package/dist/openapi/models/ProductCloudProviderSettings.d.ts +39 -0
- package/dist/openapi/models/ProductCloudProviderSettings.js +51 -0
- package/dist/openapi/models/ProductGroup.d.ts +65 -0
- package/dist/openapi/models/ProductGroup.js +80 -0
- package/dist/openapi/models/ProductGroupCommitment.d.ts +45 -0
- package/dist/openapi/models/ProductGroupCommitment.js +53 -0
- package/dist/openapi/models/ProductGroupProductsInner.d.ts +68 -0
- package/dist/openapi/models/ProductGroupProductsInner.js +98 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +45 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +53 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +36 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +35 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +37 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.d.ts +32 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.js +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +37 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.d.ts +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.js +45 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.d.ts +46 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.js +78 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.d.ts +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.js +45 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.d.ts +35 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.js +56 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.js +60 -0
- package/dist/openapi/models/ProductGroupProductsInnerScheduling.d.ts +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerScheduling.js +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.js +48 -0
- package/dist/openapi/models/SubmitCloudUsageRequest.d.ts +39 -0
- package/dist/openapi/models/SubmitCloudUsageRequest.js +38 -0
- package/dist/openapi/models/SyncStatus.d.ts +16 -0
- package/dist/openapi/models/SyncStatus.js +20 -0
- package/dist/openapi/models/UpdateCatalogProductRequest.d.ts +42 -0
- package/dist/openapi/models/UpdateCatalogProductRequest.js +44 -0
- package/dist/openapi/models/UpdateCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/UpdateCatalogProductResponse.js +32 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +50 -2
- package/dist/openapi/models/UpdateCustomerRequest.js +82 -6
- package/dist/openapi/models/UsageWindow.d.ts +41 -0
- package/dist/openapi/models/UsageWindow.js +41 -0
- package/dist/openapi/models/all.d.ts +61 -0
- package/dist/openapi/models/all.js +61 -0
- package/dist/openapi/types/ObservableAPI.d.ts +212 -12
- package/dist/openapi/types/ObservableAPI.js +424 -17
- package/dist/openapi/types/PromiseAPI.d.ts +208 -12
- package/dist/openapi/types/PromiseAPI.js +294 -34
- package/dist/sdk/clients/CatalogProductsClient.d.ts +11 -0
- package/dist/sdk/clients/CatalogProductsClient.js +28 -0
- package/dist/sdk/clients/CloudUsageSubmissionClient.d.ts +6 -0
- package/dist/sdk/clients/CloudUsageSubmissionClient.js +14 -0
- package/dist/sdk/clients/ContractsClient.d.ts +2 -1
- package/dist/sdk/clients/ContractsClient.js +3 -0
- package/dist/sdk/clients/CreditsClient.d.ts +9 -0
- package/dist/sdk/clients/CreditsClient.js +22 -0
- package/dist/sdk/clients/CustomersClient.d.ts +6 -1
- package/dist/sdk/clients/CustomersClient.js +15 -0
- package/dist/sdk/clients/EventsClient.d.ts +2 -1
- package/dist/sdk/clients/EventsClient.js +3 -0
- package/dist/sdk/clients/InvoicesClient.d.ts +1 -0
- package/dist/sdk/clients/InvoicesClient.js +3 -0
- package/dist/sdk/clients/MeasurementsClient.d.ts +10 -0
- package/dist/sdk/clients/MeasurementsClient.js +25 -0
- package/dist/sdk/clients/index.d.ts +4 -0
- package/dist/sdk/clients/index.js +4 -0
- package/dist/sdk/index.d.ts +6 -1
- package/dist/sdk/index.js +13 -0
- package/dist/sdk/services/authenticated-http-library.d.ts +11 -0
- package/dist/sdk/services/authenticated-http-library.js +29 -0
- package/dist/sdk/services/authenticator.d.ts +11 -0
- package/dist/sdk/services/authenticator.js +57 -0
- package/dist/sdk/services/configuration.service.d.ts +7 -6
- package/dist/sdk/services/configuration.service.js +12 -44
- package/dist/sdk/types/CatalogProducts.d.ts +1 -0
- package/dist/sdk/types/CatalogProducts.js +2 -0
- package/dist/sdk/types/CloudUsageSubmission.d.ts +1 -0
- package/dist/sdk/types/CloudUsageSubmission.js +2 -0
- package/dist/sdk/types/Contracts.d.ts +1 -1
- package/dist/sdk/types/Credits.d.ts +1 -0
- package/dist/sdk/types/Credits.js +2 -0
- package/dist/sdk/types/Customers.d.ts +1 -1
- package/dist/sdk/types/Events.d.ts +1 -1
- package/dist/sdk/types/Invoices.d.ts +1 -1
- package/dist/sdk/types/Measurements.d.ts +1 -0
- package/dist/sdk/types/Measurements.js +2 -0
- package/dist/sdk/types/index.d.ts +4 -0
- package/dist/sdk/types/index.js +4 -0
- package/dist/sdk-v2/services/configuration.service.js +16 -8
- package/package.json +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromiseWebhooksApi = exports.PromiseProductConsumptionsApi = exports.PromiseMetersApi = exports.PromiseMeasurementsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseAuthApi = void 0;
|
|
3
|
+
exports.PromiseWebhooksApi = exports.PromiseProductConsumptionsApi = exports.PromiseMetersApi = exports.PromiseMeasurementsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseCloudUsageSubmissionApi = exports.PromiseCatalogProductsApi = exports.PromiseAuthApi = void 0;
|
|
4
4
|
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
5
|
class PromiseAuthApi {
|
|
6
6
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -27,9 +27,135 @@ class PromiseAuthApi {
|
|
|
27
27
|
}
|
|
28
28
|
exports.PromiseAuthApi = PromiseAuthApi;
|
|
29
29
|
const ObservableAPI_2 = require("./ObservableAPI");
|
|
30
|
+
class PromiseCatalogProductsApi {
|
|
31
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
32
|
+
this.api = new ObservableAPI_2.ObservableCatalogProductsApi(configuration, requestFactory, responseProcessor);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create a new Catalog product.
|
|
36
|
+
* Create Catalog product
|
|
37
|
+
* @param createCatalogProductRequest
|
|
38
|
+
*/
|
|
39
|
+
createCatalogProductWithHttpInfo(createCatalogProductRequest, _options) {
|
|
40
|
+
const result = this.api.createCatalogProductWithHttpInfo(createCatalogProductRequest, _options);
|
|
41
|
+
return result.toPromise();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create a new Catalog product.
|
|
45
|
+
* Create Catalog product
|
|
46
|
+
* @param createCatalogProductRequest
|
|
47
|
+
*/
|
|
48
|
+
createCatalogProduct(createCatalogProductRequest, _options) {
|
|
49
|
+
const result = this.api.createCatalogProduct(createCatalogProductRequest, _options);
|
|
50
|
+
return result.toPromise();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Delete a Catalog product by id.
|
|
54
|
+
* Delete Catalog product
|
|
55
|
+
* @param catalogProductId
|
|
56
|
+
*/
|
|
57
|
+
deleteCatalogProductWithHttpInfo(catalogProductId, _options) {
|
|
58
|
+
const result = this.api.deleteCatalogProductWithHttpInfo(catalogProductId, _options);
|
|
59
|
+
return result.toPromise();
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Delete a Catalog product by id.
|
|
63
|
+
* Delete Catalog product
|
|
64
|
+
* @param catalogProductId
|
|
65
|
+
*/
|
|
66
|
+
deleteCatalogProduct(catalogProductId, _options) {
|
|
67
|
+
const result = this.api.deleteCatalogProduct(catalogProductId, _options);
|
|
68
|
+
return result.toPromise();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get a Catalog product by id.
|
|
72
|
+
* Get Catalog product
|
|
73
|
+
* @param catalogProductId
|
|
74
|
+
*/
|
|
75
|
+
getCatalogProductWithHttpInfo(catalogProductId, _options) {
|
|
76
|
+
const result = this.api.getCatalogProductWithHttpInfo(catalogProductId, _options);
|
|
77
|
+
return result.toPromise();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get a Catalog product by id.
|
|
81
|
+
* Get Catalog product
|
|
82
|
+
* @param catalogProductId
|
|
83
|
+
*/
|
|
84
|
+
getCatalogProduct(catalogProductId, _options) {
|
|
85
|
+
const result = this.api.getCatalogProduct(catalogProductId, _options);
|
|
86
|
+
return result.toPromise();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get a list of Catalog products.
|
|
90
|
+
* List Catalog products
|
|
91
|
+
* @param [limit]
|
|
92
|
+
* @param [cursor]
|
|
93
|
+
*/
|
|
94
|
+
listCatalogProductsWithHttpInfo(limit, cursor, _options) {
|
|
95
|
+
const result = this.api.listCatalogProductsWithHttpInfo(limit, cursor, _options);
|
|
96
|
+
return result.toPromise();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get a list of Catalog products.
|
|
100
|
+
* List Catalog products
|
|
101
|
+
* @param [limit]
|
|
102
|
+
* @param [cursor]
|
|
103
|
+
*/
|
|
104
|
+
listCatalogProducts(limit, cursor, _options) {
|
|
105
|
+
const result = this.api.listCatalogProducts(limit, cursor, _options);
|
|
106
|
+
return result.toPromise();
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Update a Catalog product by id.
|
|
110
|
+
* Update Catalog product
|
|
111
|
+
* @param updateCatalogProductRequest
|
|
112
|
+
* @param catalogProductId
|
|
113
|
+
*/
|
|
114
|
+
updateCatalogProductWithHttpInfo(updateCatalogProductRequest, catalogProductId, _options) {
|
|
115
|
+
const result = this.api.updateCatalogProductWithHttpInfo(updateCatalogProductRequest, catalogProductId, _options);
|
|
116
|
+
return result.toPromise();
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Update a Catalog product by id.
|
|
120
|
+
* Update Catalog product
|
|
121
|
+
* @param updateCatalogProductRequest
|
|
122
|
+
* @param catalogProductId
|
|
123
|
+
*/
|
|
124
|
+
updateCatalogProduct(updateCatalogProductRequest, catalogProductId, _options) {
|
|
125
|
+
const result = this.api.updateCatalogProduct(updateCatalogProductRequest, catalogProductId, _options);
|
|
126
|
+
return result.toPromise();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.PromiseCatalogProductsApi = PromiseCatalogProductsApi;
|
|
130
|
+
const ObservableAPI_3 = require("./ObservableAPI");
|
|
131
|
+
class PromiseCloudUsageSubmissionApi {
|
|
132
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
133
|
+
this.api = new ObservableAPI_3.ObservableCloudUsageSubmissionApi(configuration, requestFactory, responseProcessor);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Submit cloud usage data
|
|
137
|
+
* Submit cloud usage
|
|
138
|
+
* @param submitCloudUsageRequest
|
|
139
|
+
*/
|
|
140
|
+
submitCloudUsageWithHttpInfo(submitCloudUsageRequest, _options) {
|
|
141
|
+
const result = this.api.submitCloudUsageWithHttpInfo(submitCloudUsageRequest, _options);
|
|
142
|
+
return result.toPromise();
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Submit cloud usage data
|
|
146
|
+
* Submit cloud usage
|
|
147
|
+
* @param submitCloudUsageRequest
|
|
148
|
+
*/
|
|
149
|
+
submitCloudUsage(submitCloudUsageRequest, _options) {
|
|
150
|
+
const result = this.api.submitCloudUsage(submitCloudUsageRequest, _options);
|
|
151
|
+
return result.toPromise();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.PromiseCloudUsageSubmissionApi = PromiseCloudUsageSubmissionApi;
|
|
155
|
+
const ObservableAPI_4 = require("./ObservableAPI");
|
|
30
156
|
class PromiseContractsApi {
|
|
31
157
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
32
|
-
this.api = new
|
|
158
|
+
this.api = new ObservableAPI_4.ObservableContractsApi(configuration, requestFactory, responseProcessor);
|
|
33
159
|
}
|
|
34
160
|
/**
|
|
35
161
|
* Create a new Contract.
|
|
@@ -86,31 +212,53 @@ class PromiseContractsApi {
|
|
|
86
212
|
return result.toPromise();
|
|
87
213
|
}
|
|
88
214
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
215
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
216
|
+
* Get contract by integration id
|
|
217
|
+
* @param integrationType
|
|
218
|
+
* @param integrationId
|
|
219
|
+
*/
|
|
220
|
+
getContractByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
221
|
+
const result = this.api.getContractByIntegrationIdWithHttpInfo(integrationType, integrationId, _options);
|
|
222
|
+
return result.toPromise();
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
226
|
+
* Get contract by integration id
|
|
227
|
+
* @param integrationType
|
|
228
|
+
* @param integrationId
|
|
229
|
+
*/
|
|
230
|
+
getContractByIntegrationId(integrationType, integrationId, _options) {
|
|
231
|
+
const result = this.api.getContractByIntegrationId(integrationType, integrationId, _options);
|
|
232
|
+
return result.toPromise();
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
236
|
+
* List contracts
|
|
91
237
|
* @param [limit]
|
|
92
238
|
* @param [cursor]
|
|
239
|
+
* @param [customerId]
|
|
93
240
|
*/
|
|
94
|
-
listContractsWithHttpInfo(limit, cursor, _options) {
|
|
95
|
-
const result = this.api.listContractsWithHttpInfo(limit, cursor, _options);
|
|
241
|
+
listContractsWithHttpInfo(limit, cursor, customerId, _options) {
|
|
242
|
+
const result = this.api.listContractsWithHttpInfo(limit, cursor, customerId, _options);
|
|
96
243
|
return result.toPromise();
|
|
97
244
|
}
|
|
98
245
|
/**
|
|
99
|
-
*
|
|
100
|
-
* List
|
|
246
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
247
|
+
* List contracts
|
|
101
248
|
* @param [limit]
|
|
102
249
|
* @param [cursor]
|
|
250
|
+
* @param [customerId]
|
|
103
251
|
*/
|
|
104
|
-
listContracts(limit, cursor, _options) {
|
|
105
|
-
const result = this.api.listContracts(limit, cursor, _options);
|
|
252
|
+
listContracts(limit, cursor, customerId, _options) {
|
|
253
|
+
const result = this.api.listContracts(limit, cursor, customerId, _options);
|
|
106
254
|
return result.toPromise();
|
|
107
255
|
}
|
|
108
256
|
}
|
|
109
257
|
exports.PromiseContractsApi = PromiseContractsApi;
|
|
110
|
-
const
|
|
258
|
+
const ObservableAPI_5 = require("./ObservableAPI");
|
|
111
259
|
class PromiseCreditsApi {
|
|
112
260
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
113
|
-
this.api = new
|
|
261
|
+
this.api = new ObservableAPI_5.ObservableCreditsApi(configuration, requestFactory, responseProcessor);
|
|
114
262
|
}
|
|
115
263
|
/**
|
|
116
264
|
* 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.
|
|
@@ -172,10 +320,10 @@ class PromiseCreditsApi {
|
|
|
172
320
|
}
|
|
173
321
|
}
|
|
174
322
|
exports.PromiseCreditsApi = PromiseCreditsApi;
|
|
175
|
-
const
|
|
323
|
+
const ObservableAPI_6 = require("./ObservableAPI");
|
|
176
324
|
class PromiseCustomersApi {
|
|
177
325
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
178
|
-
this.api = new
|
|
326
|
+
this.api = new ObservableAPI_6.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
179
327
|
}
|
|
180
328
|
/**
|
|
181
329
|
* Create a new Customer.
|
|
@@ -195,6 +343,24 @@ class PromiseCustomersApi {
|
|
|
195
343
|
const result = this.api.createCustomer(createCustomerRequest, _options);
|
|
196
344
|
return result.toPromise();
|
|
197
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* Create a new Customer relation.
|
|
348
|
+
* Create Customer relation
|
|
349
|
+
* @param createCustomerRelationRequest
|
|
350
|
+
*/
|
|
351
|
+
createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options) {
|
|
352
|
+
const result = this.api.createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options);
|
|
353
|
+
return result.toPromise();
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Create a new Customer relation.
|
|
357
|
+
* Create Customer relation
|
|
358
|
+
* @param createCustomerRelationRequest
|
|
359
|
+
*/
|
|
360
|
+
createCustomerRelation(createCustomerRelationRequest, _options) {
|
|
361
|
+
const result = this.api.createCustomerRelation(createCustomerRelationRequest, _options);
|
|
362
|
+
return result.toPromise();
|
|
363
|
+
}
|
|
198
364
|
/**
|
|
199
365
|
* Delete a Customer by id.
|
|
200
366
|
* Delete Customer
|
|
@@ -249,6 +415,44 @@ class PromiseCustomersApi {
|
|
|
249
415
|
const result = this.api.getCustomerByExternalId(externalId, _options);
|
|
250
416
|
return result.toPromise();
|
|
251
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
420
|
+
* Get customer by integration id
|
|
421
|
+
* @param integrationType
|
|
422
|
+
* @param integrationId
|
|
423
|
+
*/
|
|
424
|
+
getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
425
|
+
const result = this.api.getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options);
|
|
426
|
+
return result.toPromise();
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
430
|
+
* Get customer by integration id
|
|
431
|
+
* @param integrationType
|
|
432
|
+
* @param integrationId
|
|
433
|
+
*/
|
|
434
|
+
getCustomerByIntegrationId(integrationType, integrationId, _options) {
|
|
435
|
+
const result = this.api.getCustomerByIntegrationId(integrationType, integrationId, _options);
|
|
436
|
+
return result.toPromise();
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Use this endpoint to get a specific customer using its name.
|
|
440
|
+
* Get customer by name
|
|
441
|
+
* @param name
|
|
442
|
+
*/
|
|
443
|
+
getCustomerByNameWithHttpInfo(name, _options) {
|
|
444
|
+
const result = this.api.getCustomerByNameWithHttpInfo(name, _options);
|
|
445
|
+
return result.toPromise();
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Use this endpoint to get a specific customer using its name.
|
|
449
|
+
* Get customer by name
|
|
450
|
+
* @param name
|
|
451
|
+
*/
|
|
452
|
+
getCustomerByName(name, _options) {
|
|
453
|
+
const result = this.api.getCustomerByName(name, _options);
|
|
454
|
+
return result.toPromise();
|
|
455
|
+
}
|
|
252
456
|
/**
|
|
253
457
|
* Use this endpoint to get the products consumptions by the customer id.
|
|
254
458
|
* Get products consumptions by customer id
|
|
@@ -285,6 +489,24 @@ class PromiseCustomersApi {
|
|
|
285
489
|
const result = this.api.getCustomerProductsConsumptionsByAlias(alias, _options);
|
|
286
490
|
return result.toPromise();
|
|
287
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* Get a Customer relation by id.
|
|
494
|
+
* Get Customer relation
|
|
495
|
+
* @param customerRelationId
|
|
496
|
+
*/
|
|
497
|
+
getCustomerRelationWithHttpInfo(customerRelationId, _options) {
|
|
498
|
+
const result = this.api.getCustomerRelationWithHttpInfo(customerRelationId, _options);
|
|
499
|
+
return result.toPromise();
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Get a Customer relation by id.
|
|
503
|
+
* Get Customer relation
|
|
504
|
+
* @param customerRelationId
|
|
505
|
+
*/
|
|
506
|
+
getCustomerRelation(customerRelationId, _options) {
|
|
507
|
+
const result = this.api.getCustomerRelation(customerRelationId, _options);
|
|
508
|
+
return result.toPromise();
|
|
509
|
+
}
|
|
288
510
|
/**
|
|
289
511
|
* Get a list of Customers.
|
|
290
512
|
* List Customers
|
|
@@ -327,10 +549,10 @@ class PromiseCustomersApi {
|
|
|
327
549
|
}
|
|
328
550
|
}
|
|
329
551
|
exports.PromiseCustomersApi = PromiseCustomersApi;
|
|
330
|
-
const
|
|
552
|
+
const ObservableAPI_7 = require("./ObservableAPI");
|
|
331
553
|
class PromiseEventsApi {
|
|
332
554
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
333
|
-
this.api = new
|
|
555
|
+
this.api = new ObservableAPI_7.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
334
556
|
}
|
|
335
557
|
/**
|
|
336
558
|
* Use this endpoint to remove a specific event using its reference ID.
|
|
@@ -350,6 +572,24 @@ class PromiseEventsApi {
|
|
|
350
572
|
const result = this.api.deleteEventByRefId(refId, _options);
|
|
351
573
|
return result.toPromise();
|
|
352
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
577
|
+
* Delete events by refs
|
|
578
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
579
|
+
*/
|
|
580
|
+
deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options) {
|
|
581
|
+
const result = this.api.deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options);
|
|
582
|
+
return result.toPromise();
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
586
|
+
* Delete events by refs
|
|
587
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
588
|
+
*/
|
|
589
|
+
deleteEventsByRefs(deleteEventsByRefsRequest, _options) {
|
|
590
|
+
const result = this.api.deleteEventsByRefs(deleteEventsByRefsRequest, _options);
|
|
591
|
+
return result.toPromise();
|
|
592
|
+
}
|
|
353
593
|
/**
|
|
354
594
|
* Use this endpoint to get a specific event using its reference ID.
|
|
355
595
|
* Get event by refId
|
|
@@ -432,10 +672,10 @@ class PromiseEventsApi {
|
|
|
432
672
|
}
|
|
433
673
|
}
|
|
434
674
|
exports.PromiseEventsApi = PromiseEventsApi;
|
|
435
|
-
const
|
|
675
|
+
const ObservableAPI_8 = require("./ObservableAPI");
|
|
436
676
|
class PromiseInvoicesApi {
|
|
437
677
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
438
|
-
this.api = new
|
|
678
|
+
this.api = new ObservableAPI_8.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
439
679
|
}
|
|
440
680
|
/**
|
|
441
681
|
* Get a Invoice by id.
|
|
@@ -456,31 +696,51 @@ class PromiseInvoicesApi {
|
|
|
456
696
|
return result.toPromise();
|
|
457
697
|
}
|
|
458
698
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
699
|
+
* Use this endpoint to retrieve payment status information for a specific invoice, including payment status, amount due, amount paid, total, due date, paid date, and invoice PDF URL.
|
|
700
|
+
* Get invoice payment status
|
|
701
|
+
* @param invoiceId
|
|
702
|
+
*/
|
|
703
|
+
getInvoicePaymentStatusWithHttpInfo(invoiceId, _options) {
|
|
704
|
+
const result = this.api.getInvoicePaymentStatusWithHttpInfo(invoiceId, _options);
|
|
705
|
+
return result.toPromise();
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Use this endpoint to retrieve payment status information for a specific invoice, including payment status, amount due, amount paid, total, due date, paid date, and invoice PDF URL.
|
|
709
|
+
* Get invoice payment status
|
|
710
|
+
* @param invoiceId
|
|
711
|
+
*/
|
|
712
|
+
getInvoicePaymentStatus(invoiceId, _options) {
|
|
713
|
+
const result = this.api.getInvoicePaymentStatus(invoiceId, _options);
|
|
714
|
+
return result.toPromise();
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
718
|
+
* List invoices
|
|
461
719
|
* @param [limit]
|
|
462
720
|
* @param [cursor]
|
|
721
|
+
* @param [customerId]
|
|
463
722
|
*/
|
|
464
|
-
listInvoicesWithHttpInfo(limit, cursor, _options) {
|
|
465
|
-
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, _options);
|
|
723
|
+
listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
|
|
724
|
+
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, customerId, _options);
|
|
466
725
|
return result.toPromise();
|
|
467
726
|
}
|
|
468
727
|
/**
|
|
469
|
-
*
|
|
470
|
-
* List
|
|
728
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
729
|
+
* List invoices
|
|
471
730
|
* @param [limit]
|
|
472
731
|
* @param [cursor]
|
|
732
|
+
* @param [customerId]
|
|
473
733
|
*/
|
|
474
|
-
listInvoices(limit, cursor, _options) {
|
|
475
|
-
const result = this.api.listInvoices(limit, cursor, _options);
|
|
734
|
+
listInvoices(limit, cursor, customerId, _options) {
|
|
735
|
+
const result = this.api.listInvoices(limit, cursor, customerId, _options);
|
|
476
736
|
return result.toPromise();
|
|
477
737
|
}
|
|
478
738
|
}
|
|
479
739
|
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
480
|
-
const
|
|
740
|
+
const ObservableAPI_9 = require("./ObservableAPI");
|
|
481
741
|
class PromiseMeasurementsApi {
|
|
482
742
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
483
|
-
this.api = new
|
|
743
|
+
this.api = new ObservableAPI_9.ObservableMeasurementsApi(configuration, requestFactory, responseProcessor);
|
|
484
744
|
}
|
|
485
745
|
/**
|
|
486
746
|
* Create a new Measurement.
|
|
@@ -558,10 +818,10 @@ class PromiseMeasurementsApi {
|
|
|
558
818
|
}
|
|
559
819
|
}
|
|
560
820
|
exports.PromiseMeasurementsApi = PromiseMeasurementsApi;
|
|
561
|
-
const
|
|
821
|
+
const ObservableAPI_10 = require("./ObservableAPI");
|
|
562
822
|
class PromiseMetersApi {
|
|
563
823
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
564
|
-
this.api = new
|
|
824
|
+
this.api = new ObservableAPI_10.ObservableMetersApi(configuration, requestFactory, responseProcessor);
|
|
565
825
|
}
|
|
566
826
|
/**
|
|
567
827
|
* Delete a Meter by id.
|
|
@@ -641,10 +901,10 @@ class PromiseMetersApi {
|
|
|
641
901
|
}
|
|
642
902
|
}
|
|
643
903
|
exports.PromiseMetersApi = PromiseMetersApi;
|
|
644
|
-
const
|
|
904
|
+
const ObservableAPI_11 = require("./ObservableAPI");
|
|
645
905
|
class PromiseProductConsumptionsApi {
|
|
646
906
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
647
|
-
this.api = new
|
|
907
|
+
this.api = new ObservableAPI_11.ObservableProductConsumptionsApi(configuration, requestFactory, responseProcessor);
|
|
648
908
|
}
|
|
649
909
|
/**
|
|
650
910
|
* Use this action to get the consumption data for a product
|
|
@@ -666,10 +926,10 @@ class PromiseProductConsumptionsApi {
|
|
|
666
926
|
}
|
|
667
927
|
}
|
|
668
928
|
exports.PromiseProductConsumptionsApi = PromiseProductConsumptionsApi;
|
|
669
|
-
const
|
|
929
|
+
const ObservableAPI_12 = require("./ObservableAPI");
|
|
670
930
|
class PromiseWebhooksApi {
|
|
671
931
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
672
|
-
this.api = new
|
|
932
|
+
this.api = new ObservableAPI_12.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
|
|
673
933
|
}
|
|
674
934
|
/**
|
|
675
935
|
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CreateCatalogProductRequest, UpdateCatalogProductRequest } from '../../openapi';
|
|
2
|
+
import type { PaginationOptions } from '../types';
|
|
3
|
+
export declare class CatalogProductsClient {
|
|
4
|
+
private client;
|
|
5
|
+
constructor();
|
|
6
|
+
list(pagination?: PaginationOptions): Promise<import("../types").ListCatalogProductsResponse>;
|
|
7
|
+
get(id: string): Promise<import("../types").GetCatalogProductResponse>;
|
|
8
|
+
create(payload: CreateCatalogProductRequest): Promise<import("../types").CreateCatalogProductResponse>;
|
|
9
|
+
update(id: string, payload: UpdateCatalogProductRequest): Promise<import("../types").UpdateCatalogProductResponse>;
|
|
10
|
+
delete(id: string): Promise<import("../types").DeleteCatalogProductResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CatalogProductsClient = void 0;
|
|
4
|
+
const openapi_1 = require("../../openapi");
|
|
5
|
+
const services_1 = require("../services");
|
|
6
|
+
class CatalogProductsClient {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.CatalogProductsApi);
|
|
9
|
+
}
|
|
10
|
+
async list(pagination) {
|
|
11
|
+
const cursor = pagination?.cursor;
|
|
12
|
+
const limit = pagination?.limit;
|
|
13
|
+
return this.client.listCatalogProducts(limit, cursor);
|
|
14
|
+
}
|
|
15
|
+
async get(id) {
|
|
16
|
+
return this.client.getCatalogProduct(id);
|
|
17
|
+
}
|
|
18
|
+
async create(payload) {
|
|
19
|
+
return this.client.createCatalogProduct(payload);
|
|
20
|
+
}
|
|
21
|
+
async update(id, payload) {
|
|
22
|
+
return this.client.updateCatalogProduct(payload, id);
|
|
23
|
+
}
|
|
24
|
+
async delete(id) {
|
|
25
|
+
return this.client.deleteCatalogProduct(id);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.CatalogProductsClient = CatalogProductsClient;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudUsageSubmissionClient = void 0;
|
|
4
|
+
const openapi_1 = require("../../openapi");
|
|
5
|
+
const services_1 = require("../services");
|
|
6
|
+
class CloudUsageSubmissionClient {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.CloudUsageSubmissionApi);
|
|
9
|
+
}
|
|
10
|
+
async submit(payload) {
|
|
11
|
+
return this.client.submitCloudUsage(payload);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.CloudUsageSubmissionClient = CloudUsageSubmissionClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateContractRequest } from '../../openapi';
|
|
1
|
+
import type { CreateContractRequest, IntegrationType } from '../../openapi';
|
|
2
2
|
import type { PaginationOptions } from '../types';
|
|
3
3
|
export declare class ContractsClient {
|
|
4
4
|
private client;
|
|
@@ -7,4 +7,5 @@ export declare class ContractsClient {
|
|
|
7
7
|
get(id: string): Promise<import("../types").GetContractResponse>;
|
|
8
8
|
create(payload: CreateContractRequest): Promise<import("../types").CreateContractResponse>;
|
|
9
9
|
delete(id: string): Promise<import("../types").DeleteContractResponse>;
|
|
10
|
+
getByIntegrationId(integrationType: IntegrationType, integrationId: string): Promise<import("../types").GetContractByIntegrationIdResponse>;
|
|
10
11
|
}
|
|
@@ -21,5 +21,8 @@ class ContractsClient {
|
|
|
21
21
|
async delete(id) {
|
|
22
22
|
return this.client.deleteContract(id);
|
|
23
23
|
}
|
|
24
|
+
async getByIntegrationId(integrationType, integrationId) {
|
|
25
|
+
return this.client.getContractByIntegrationId(integrationType, integrationId);
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
exports.ContractsClient = ContractsClient;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DeductCreditsRequest, GrantCreditsRequest } from '../../openapi';
|
|
2
|
+
import type { PaginationOptions } from '../types';
|
|
3
|
+
export declare class CreditsClient {
|
|
4
|
+
private client;
|
|
5
|
+
constructor();
|
|
6
|
+
deduct(payload: DeductCreditsRequest): Promise<void>;
|
|
7
|
+
grant(payload: GrantCreditsRequest): Promise<void>;
|
|
8
|
+
listLedgerEntries(customerId: string, pagination?: PaginationOptions): Promise<import("../types").ListCreditLedgerEntriesResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditsClient = void 0;
|
|
4
|
+
const openapi_1 = require("../../openapi");
|
|
5
|
+
const services_1 = require("../services");
|
|
6
|
+
class CreditsClient {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.CreditsApi);
|
|
9
|
+
}
|
|
10
|
+
async deduct(payload) {
|
|
11
|
+
return this.client.deductCredits(payload);
|
|
12
|
+
}
|
|
13
|
+
async grant(payload) {
|
|
14
|
+
return this.client.grantCredits(payload);
|
|
15
|
+
}
|
|
16
|
+
async listLedgerEntries(customerId, pagination) {
|
|
17
|
+
const cursor = pagination?.cursor;
|
|
18
|
+
const limit = pagination?.limit;
|
|
19
|
+
return this.client.listCreditLedgerEntries(customerId, limit, cursor);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreditsClient = CreditsClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateCustomerRequest, UpdateCustomerRequest } from '../../openapi';
|
|
1
|
+
import type { CreateCustomerRelationRequest, CreateCustomerRequest, IntegrationType, UpdateCustomerRequest } from '../../openapi';
|
|
2
2
|
import type { PaginationOptions } from '../types';
|
|
3
3
|
export declare class CustomersClient {
|
|
4
4
|
private client;
|
|
@@ -10,4 +10,9 @@ export declare class CustomersClient {
|
|
|
10
10
|
update(id: string, payload: UpdateCustomerRequest): Promise<import("../types").UpdateCustomerResponse>;
|
|
11
11
|
delete(id: string): Promise<import("../types").DeleteCustomerResponse>;
|
|
12
12
|
listCustomerProductsConsumptions(id: string): Promise<import("../../openapi").GetCustomerProductsConsumptionsResponse>;
|
|
13
|
+
listCustomerProductsConsumptionsByAlias(alias: string): Promise<import("../../openapi").GetCustomerProductsConsumptionsByAliasResponse>;
|
|
14
|
+
getByName(name: string): Promise<import("../types").GetCustomerByNameResponse>;
|
|
15
|
+
getByIntegrationId(integrationType: IntegrationType, integrationId: string): Promise<import("../types").GetCustomerByIntegrationIdResponse>;
|
|
16
|
+
createRelation(payload: CreateCustomerRelationRequest): Promise<import("../types").CreateCustomerRelationResponse>;
|
|
17
|
+
getRelation(customerRelationId: string): Promise<import("../types").GetCustomerRelationResponse>;
|
|
13
18
|
}
|
|
@@ -30,5 +30,20 @@ class CustomersClient {
|
|
|
30
30
|
async listCustomerProductsConsumptions(id) {
|
|
31
31
|
return this.client.getCustomerProductsConsumptions(id);
|
|
32
32
|
}
|
|
33
|
+
async listCustomerProductsConsumptionsByAlias(alias) {
|
|
34
|
+
return this.client.getCustomerProductsConsumptionsByAlias(alias);
|
|
35
|
+
}
|
|
36
|
+
async getByName(name) {
|
|
37
|
+
return this.client.getCustomerByName(name);
|
|
38
|
+
}
|
|
39
|
+
async getByIntegrationId(integrationType, integrationId) {
|
|
40
|
+
return this.client.getCustomerByIntegrationId(integrationType, integrationId);
|
|
41
|
+
}
|
|
42
|
+
async createRelation(payload) {
|
|
43
|
+
return this.client.createCustomerRelation(payload);
|
|
44
|
+
}
|
|
45
|
+
async getRelation(customerRelationId) {
|
|
46
|
+
return this.client.getCustomerRelation(customerRelationId);
|
|
47
|
+
}
|
|
33
48
|
}
|
|
34
49
|
exports.CustomersClient = CustomersClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event } from '../../openapi';
|
|
1
|
+
import type { DeleteEventsByRefsRequest, Event } from '../../openapi';
|
|
2
2
|
import type { PaginationOptions } from '../types';
|
|
3
3
|
export declare class EventsClient {
|
|
4
4
|
private client;
|
|
@@ -8,4 +8,5 @@ export declare class EventsClient {
|
|
|
8
8
|
query(startTime: Date, endTime: Date, eventName: string, paginationOptions?: PaginationOptions): Promise<import("../types").QueryEventsResponse>;
|
|
9
9
|
send(events: Event[]): Promise<import("../types").SendEventsResponse>;
|
|
10
10
|
dryRun(events: Event[]): Promise<import("../types").EventsDryRunResponse>;
|
|
11
|
+
deleteByRefs(payload: DeleteEventsByRefsRequest): Promise<import("../types").DeleteEventsByRefsResponse>;
|
|
11
12
|
}
|
|
@@ -4,4 +4,5 @@ export declare class InvoicesClient {
|
|
|
4
4
|
constructor();
|
|
5
5
|
list(pagination?: PaginationOptions): Promise<import("../types").ListInvoicesResponse>;
|
|
6
6
|
get(id: string): Promise<import("../types").GetInvoiceResponse>;
|
|
7
|
+
getPaymentStatus(id: string): Promise<import("../types").InvoicePaymentStatusResponse>;
|
|
7
8
|
}
|