vayu-ts 0.2.15 → 0.3.7
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/AuthApi.js +8 -4
- package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
- package/dist/openapi/apis/CatalogProductsApi.js +377 -0
- package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
- package/dist/openapi/apis/CloudUsageSubmissionApi.js +89 -0
- package/dist/openapi/apis/ContractsApi.d.ts +21 -3
- package/dist/openapi/apis/ContractsApi.js +119 -21
- package/dist/openapi/apis/CreditsApi.js +24 -12
- package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
- package/dist/openapi/apis/CustomFieldsApi.js +377 -0
- package/dist/openapi/apis/CustomersApi.d.ts +63 -0
- package/dist/openapi/apis/CustomersApi.js +360 -38
- package/dist/openapi/apis/EventsApi.d.ts +132 -1
- package/dist/openapi/apis/EventsApi.js +660 -25
- package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
- package/dist/openapi/apis/InvoicesApi.js +91 -12
- package/dist/openapi/apis/MeasurementsApi.js +36 -18
- package/dist/openapi/apis/MetersApi.js +38 -19
- package/dist/openapi/apis/PlansApi.d.ts +56 -0
- package/dist/openapi/apis/PlansApi.js +225 -0
- package/dist/openapi/apis/ProductConsumptionsApi.js +10 -5
- package/dist/openapi/apis/WebhooksApi.js +10 -5
- 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 +5 -1
- package/dist/openapi/models/Address.d.ts +5 -5
- package/dist/openapi/models/BillingInterval.d.ts +18 -0
- package/dist/openapi/models/BillingInterval.js +22 -0
- package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
- package/dist/openapi/models/CloudUsageResult.js +103 -0
- package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
- package/dist/openapi/models/ConflictErrorResponse.js +52 -0
- package/dist/openapi/models/Contact.d.ts +3 -1
- package/dist/openapi/models/Contact.js +13 -1
- 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 +53 -5
- package/dist/openapi/models/CreateContractRequest.js +76 -4
- package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
- package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
- package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
- package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
- package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
- 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 +70 -2
- package/dist/openapi/models/CreateCustomerRequest.js +112 -6
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +70 -2
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +112 -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/CustomFieldEntities.d.ts +20 -0
- package/dist/openapi/models/CustomFieldEntities.js +24 -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 +20 -0
- package/dist/openapi/models/CustomFieldValueTypes.js +24 -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 +53 -5
- package/dist/openapi/models/DeleteContractResponseContract.js +76 -4
- package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
- package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
- package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +70 -2
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +112 -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/DeletePlanResponse.d.ts +32 -0
- package/dist/openapi/models/DeletePlanResponse.js +32 -0
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
- package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
- 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 +53 -5
- package/dist/openapi/models/GetContractResponseContract.js +76 -4
- package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
- 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 +123 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +183 -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/GetPlanResponse.d.ts +32 -0
- package/dist/openapi/models/GetPlanResponse.js +32 -0
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
- package/dist/openapi/models/GetPlanResponsePlan.js +62 -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/InternalServerErrorResponse.d.ts +42 -0
- package/dist/openapi/models/InternalServerErrorResponse.js +52 -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/ListCustomFieldsResponse.d.ts +35 -0
- package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
- package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
- package/dist/openapi/models/ListPlansResponse.js +50 -0
- package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
- package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
- package/dist/openapi/models/NotificationEventType.d.ts +7 -1
- package/dist/openapi/models/NotificationEventType.js +6 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +112 -0
- package/dist/openapi/models/ObjectSerializer.js +367 -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/PlanBillingData.d.ts +41 -0
- package/dist/openapi/models/PlanBillingData.js +59 -0
- package/dist/openapi/models/PlanDuration.d.ts +30 -0
- package/dist/openapi/models/PlanDuration.js +25 -0
- package/dist/openapi/models/PlanStatus.d.ts +19 -0
- package/dist/openapi/models/PlanStatus.js +23 -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 +53 -0
- package/dist/openapi/models/ProductGroupCommitment.js +64 -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 +53 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +64 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +54 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +54 -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 +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +54 -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/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -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/QueryEventsResponse.d.ts +3 -3
- package/dist/openapi/models/QueryEventsResponse.js +18 -0
- package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
- package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
- package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
- package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -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/UnauthorizedErrorResponse.d.ts +42 -0
- package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
- package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
- package/dist/openapi/models/UnlimitedDuration.js +18 -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/UpdateCustomFieldRequest.d.ts +71 -0
- package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
- package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +70 -2
- package/dist/openapi/models/UpdateCustomerRequest.js +112 -6
- package/dist/openapi/models/UsageWindow.d.ts +41 -0
- package/dist/openapi/models/UsageWindow.js +41 -0
- package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
- package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
- package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
- package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
- package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
- package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
- package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
- package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
- package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
- package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
- package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
- package/dist/openapi/models/V2GetEventResponse.js +32 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
- package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
- package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
- package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
- package/dist/openapi/models/V2SendEventsRequest.js +32 -0
- package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
- package/dist/openapi/models/V2SendEventsResponse.js +38 -0
- package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
- package/dist/openapi/models/ValidationErrorResponse.js +60 -0
- package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
- package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
- package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
- package/dist/openapi/models/all.d.ts +112 -0
- package/dist/openapi/models/all.js +112 -0
- package/dist/openapi/types/ObservableAPI.d.ts +447 -14
- package/dist/openapi/types/ObservableAPI.js +907 -29
- package/dist/openapi/types/PromiseAPI.d.ts +439 -14
- package/dist/openapi/types/PromiseAPI.js +600 -38
- 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 +5 -1
- package/dist/sdk/clients/CustomersClient.js +12 -0
- package/dist/sdk/clients/EventsClient.d.ts +2 -1
- package/dist/sdk/clients/EventsClient.js +4 -1
- 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/WebhooksClient.d.ts +2 -0
- package/dist/sdk/clients/WebhooksClient.js +14 -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.PromisePlansApi = exports.PromiseMetersApi = exports.PromiseMeasurementsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCustomFieldsApi = 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,111 @@ class PromiseCreditsApi {
|
|
|
172
320
|
}
|
|
173
321
|
}
|
|
174
322
|
exports.PromiseCreditsApi = PromiseCreditsApi;
|
|
175
|
-
const
|
|
323
|
+
const ObservableAPI_6 = require("./ObservableAPI");
|
|
324
|
+
class PromiseCustomFieldsApi {
|
|
325
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
326
|
+
this.api = new ObservableAPI_6.ObservableCustomFieldsApi(configuration, requestFactory, responseProcessor);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Create a new Custom field.
|
|
330
|
+
* Create Custom field
|
|
331
|
+
* @param createCustomFieldRequest
|
|
332
|
+
*/
|
|
333
|
+
createCustomFieldWithHttpInfo(createCustomFieldRequest, _options) {
|
|
334
|
+
const result = this.api.createCustomFieldWithHttpInfo(createCustomFieldRequest, _options);
|
|
335
|
+
return result.toPromise();
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Create a new Custom field.
|
|
339
|
+
* Create Custom field
|
|
340
|
+
* @param createCustomFieldRequest
|
|
341
|
+
*/
|
|
342
|
+
createCustomField(createCustomFieldRequest, _options) {
|
|
343
|
+
const result = this.api.createCustomField(createCustomFieldRequest, _options);
|
|
344
|
+
return result.toPromise();
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Delete a Custom field by id.
|
|
348
|
+
* Delete Custom field
|
|
349
|
+
* @param customFieldId
|
|
350
|
+
*/
|
|
351
|
+
deleteCustomFieldWithHttpInfo(customFieldId, _options) {
|
|
352
|
+
const result = this.api.deleteCustomFieldWithHttpInfo(customFieldId, _options);
|
|
353
|
+
return result.toPromise();
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Delete a Custom field by id.
|
|
357
|
+
* Delete Custom field
|
|
358
|
+
* @param customFieldId
|
|
359
|
+
*/
|
|
360
|
+
deleteCustomField(customFieldId, _options) {
|
|
361
|
+
const result = this.api.deleteCustomField(customFieldId, _options);
|
|
362
|
+
return result.toPromise();
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get a Custom field by id.
|
|
366
|
+
* Get Custom field
|
|
367
|
+
* @param customFieldId
|
|
368
|
+
*/
|
|
369
|
+
getCustomFieldWithHttpInfo(customFieldId, _options) {
|
|
370
|
+
const result = this.api.getCustomFieldWithHttpInfo(customFieldId, _options);
|
|
371
|
+
return result.toPromise();
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Get a Custom field by id.
|
|
375
|
+
* Get Custom field
|
|
376
|
+
* @param customFieldId
|
|
377
|
+
*/
|
|
378
|
+
getCustomField(customFieldId, _options) {
|
|
379
|
+
const result = this.api.getCustomField(customFieldId, _options);
|
|
380
|
+
return result.toPromise();
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Get a list of Custom fields.
|
|
384
|
+
* List Custom fields
|
|
385
|
+
* @param [limit]
|
|
386
|
+
* @param [cursor]
|
|
387
|
+
*/
|
|
388
|
+
listCustomFieldsWithHttpInfo(limit, cursor, _options) {
|
|
389
|
+
const result = this.api.listCustomFieldsWithHttpInfo(limit, cursor, _options);
|
|
390
|
+
return result.toPromise();
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Get a list of Custom fields.
|
|
394
|
+
* List Custom fields
|
|
395
|
+
* @param [limit]
|
|
396
|
+
* @param [cursor]
|
|
397
|
+
*/
|
|
398
|
+
listCustomFields(limit, cursor, _options) {
|
|
399
|
+
const result = this.api.listCustomFields(limit, cursor, _options);
|
|
400
|
+
return result.toPromise();
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Update a Custom field by id.
|
|
404
|
+
* Update Custom field
|
|
405
|
+
* @param updateCustomFieldRequest
|
|
406
|
+
* @param customFieldId
|
|
407
|
+
*/
|
|
408
|
+
updateCustomFieldWithHttpInfo(updateCustomFieldRequest, customFieldId, _options) {
|
|
409
|
+
const result = this.api.updateCustomFieldWithHttpInfo(updateCustomFieldRequest, customFieldId, _options);
|
|
410
|
+
return result.toPromise();
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Update a Custom field by id.
|
|
414
|
+
* Update Custom field
|
|
415
|
+
* @param updateCustomFieldRequest
|
|
416
|
+
* @param customFieldId
|
|
417
|
+
*/
|
|
418
|
+
updateCustomField(updateCustomFieldRequest, customFieldId, _options) {
|
|
419
|
+
const result = this.api.updateCustomField(updateCustomFieldRequest, customFieldId, _options);
|
|
420
|
+
return result.toPromise();
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
exports.PromiseCustomFieldsApi = PromiseCustomFieldsApi;
|
|
424
|
+
const ObservableAPI_7 = require("./ObservableAPI");
|
|
176
425
|
class PromiseCustomersApi {
|
|
177
426
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
178
|
-
this.api = new
|
|
427
|
+
this.api = new ObservableAPI_7.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
179
428
|
}
|
|
180
429
|
/**
|
|
181
430
|
* Create a new Customer.
|
|
@@ -195,6 +444,24 @@ class PromiseCustomersApi {
|
|
|
195
444
|
const result = this.api.createCustomer(createCustomerRequest, _options);
|
|
196
445
|
return result.toPromise();
|
|
197
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* Create a new Customer relation.
|
|
449
|
+
* Create Customer relation
|
|
450
|
+
* @param createCustomerRelationRequest
|
|
451
|
+
*/
|
|
452
|
+
createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options) {
|
|
453
|
+
const result = this.api.createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options);
|
|
454
|
+
return result.toPromise();
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Create a new Customer relation.
|
|
458
|
+
* Create Customer relation
|
|
459
|
+
* @param createCustomerRelationRequest
|
|
460
|
+
*/
|
|
461
|
+
createCustomerRelation(createCustomerRelationRequest, _options) {
|
|
462
|
+
const result = this.api.createCustomerRelation(createCustomerRelationRequest, _options);
|
|
463
|
+
return result.toPromise();
|
|
464
|
+
}
|
|
198
465
|
/**
|
|
199
466
|
* Delete a Customer by id.
|
|
200
467
|
* Delete Customer
|
|
@@ -249,6 +516,44 @@ class PromiseCustomersApi {
|
|
|
249
516
|
const result = this.api.getCustomerByExternalId(externalId, _options);
|
|
250
517
|
return result.toPromise();
|
|
251
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
521
|
+
* Get customer by integration id
|
|
522
|
+
* @param integrationType
|
|
523
|
+
* @param integrationId
|
|
524
|
+
*/
|
|
525
|
+
getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
526
|
+
const result = this.api.getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options);
|
|
527
|
+
return result.toPromise();
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
531
|
+
* Get customer by integration id
|
|
532
|
+
* @param integrationType
|
|
533
|
+
* @param integrationId
|
|
534
|
+
*/
|
|
535
|
+
getCustomerByIntegrationId(integrationType, integrationId, _options) {
|
|
536
|
+
const result = this.api.getCustomerByIntegrationId(integrationType, integrationId, _options);
|
|
537
|
+
return result.toPromise();
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Use this endpoint to get a specific customer using its name.
|
|
541
|
+
* Get customer by name
|
|
542
|
+
* @param name
|
|
543
|
+
*/
|
|
544
|
+
getCustomerByNameWithHttpInfo(name, _options) {
|
|
545
|
+
const result = this.api.getCustomerByNameWithHttpInfo(name, _options);
|
|
546
|
+
return result.toPromise();
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Use this endpoint to get a specific customer using its name.
|
|
550
|
+
* Get customer by name
|
|
551
|
+
* @param name
|
|
552
|
+
*/
|
|
553
|
+
getCustomerByName(name, _options) {
|
|
554
|
+
const result = this.api.getCustomerByName(name, _options);
|
|
555
|
+
return result.toPromise();
|
|
556
|
+
}
|
|
252
557
|
/**
|
|
253
558
|
* Use this endpoint to get the products consumptions by the customer id.
|
|
254
559
|
* Get products consumptions by customer id
|
|
@@ -285,6 +590,24 @@ class PromiseCustomersApi {
|
|
|
285
590
|
const result = this.api.getCustomerProductsConsumptionsByAlias(alias, _options);
|
|
286
591
|
return result.toPromise();
|
|
287
592
|
}
|
|
593
|
+
/**
|
|
594
|
+
* Get a Customer relation by id.
|
|
595
|
+
* Get Customer relation
|
|
596
|
+
* @param customerRelationId
|
|
597
|
+
*/
|
|
598
|
+
getCustomerRelationWithHttpInfo(customerRelationId, _options) {
|
|
599
|
+
const result = this.api.getCustomerRelationWithHttpInfo(customerRelationId, _options);
|
|
600
|
+
return result.toPromise();
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Get a Customer relation by id.
|
|
604
|
+
* Get Customer relation
|
|
605
|
+
* @param customerRelationId
|
|
606
|
+
*/
|
|
607
|
+
getCustomerRelation(customerRelationId, _options) {
|
|
608
|
+
const result = this.api.getCustomerRelation(customerRelationId, _options);
|
|
609
|
+
return result.toPromise();
|
|
610
|
+
}
|
|
288
611
|
/**
|
|
289
612
|
* Get a list of Customers.
|
|
290
613
|
* List Customers
|
|
@@ -327,10 +650,10 @@ class PromiseCustomersApi {
|
|
|
327
650
|
}
|
|
328
651
|
}
|
|
329
652
|
exports.PromiseCustomersApi = PromiseCustomersApi;
|
|
330
|
-
const
|
|
653
|
+
const ObservableAPI_8 = require("./ObservableAPI");
|
|
331
654
|
class PromiseEventsApi {
|
|
332
655
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
333
|
-
this.api = new
|
|
656
|
+
this.api = new ObservableAPI_8.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
334
657
|
}
|
|
335
658
|
/**
|
|
336
659
|
* Use this endpoint to remove a specific event using its reference ID.
|
|
@@ -350,6 +673,24 @@ class PromiseEventsApi {
|
|
|
350
673
|
const result = this.api.deleteEventByRefId(refId, _options);
|
|
351
674
|
return result.toPromise();
|
|
352
675
|
}
|
|
676
|
+
/**
|
|
677
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
678
|
+
* Delete events by refs
|
|
679
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
680
|
+
*/
|
|
681
|
+
deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options) {
|
|
682
|
+
const result = this.api.deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options);
|
|
683
|
+
return result.toPromise();
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
687
|
+
* Delete events by refs
|
|
688
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
689
|
+
*/
|
|
690
|
+
deleteEventsByRefs(deleteEventsByRefsRequest, _options) {
|
|
691
|
+
const result = this.api.deleteEventsByRefs(deleteEventsByRefsRequest, _options);
|
|
692
|
+
return result.toPromise();
|
|
693
|
+
}
|
|
353
694
|
/**
|
|
354
695
|
* Use this endpoint to get a specific event using its reference ID.
|
|
355
696
|
* Get event by refId
|
|
@@ -374,11 +715,12 @@ class PromiseEventsApi {
|
|
|
374
715
|
* @param startTime
|
|
375
716
|
* @param endTime
|
|
376
717
|
* @param [eventName]
|
|
718
|
+
* @param [customerAlias]
|
|
377
719
|
* @param [limit]
|
|
378
720
|
* @param [cursor]
|
|
379
721
|
*/
|
|
380
|
-
queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options) {
|
|
381
|
-
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options);
|
|
722
|
+
queryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
723
|
+
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
382
724
|
return result.toPromise();
|
|
383
725
|
}
|
|
384
726
|
/**
|
|
@@ -387,11 +729,12 @@ class PromiseEventsApi {
|
|
|
387
729
|
* @param startTime
|
|
388
730
|
* @param endTime
|
|
389
731
|
* @param [eventName]
|
|
732
|
+
* @param [customerAlias]
|
|
390
733
|
* @param [limit]
|
|
391
734
|
* @param [cursor]
|
|
392
735
|
*/
|
|
393
|
-
queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
|
|
394
|
-
const result = this.api.queryEvents(startTime, endTime, eventName, limit, cursor, _options);
|
|
736
|
+
queryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
737
|
+
const result = this.api.queryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
395
738
|
return result.toPromise();
|
|
396
739
|
}
|
|
397
740
|
/**
|
|
@@ -430,12 +773,148 @@ class PromiseEventsApi {
|
|
|
430
773
|
const result = this.api.sendEventsDryRun(eventsDryRunRequest, _options);
|
|
431
774
|
return result.toPromise();
|
|
432
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
* Use this endpoint to remove a specific event using its reference ID (v2).
|
|
778
|
+
* Delete an event by refId (v2)
|
|
779
|
+
* @param refId
|
|
780
|
+
*/
|
|
781
|
+
v2DeleteEventByRefIdWithHttpInfo(refId, _options) {
|
|
782
|
+
const result = this.api.v2DeleteEventByRefIdWithHttpInfo(refId, _options);
|
|
783
|
+
return result.toPromise();
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Use this endpoint to remove a specific event using its reference ID (v2).
|
|
787
|
+
* Delete an event by refId (v2)
|
|
788
|
+
* @param refId
|
|
789
|
+
*/
|
|
790
|
+
v2DeleteEventByRefId(refId, _options) {
|
|
791
|
+
const result = this.api.v2DeleteEventByRefId(refId, _options);
|
|
792
|
+
return result.toPromise();
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Delete multiple events, identified by ref, in a single request (v2).
|
|
796
|
+
* Delete events by refs (v2)
|
|
797
|
+
* @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
798
|
+
*/
|
|
799
|
+
v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest, _options) {
|
|
800
|
+
const result = this.api.v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest, _options);
|
|
801
|
+
return result.toPromise();
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Delete multiple events, identified by ref, in a single request (v2).
|
|
805
|
+
* Delete events by refs (v2)
|
|
806
|
+
* @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
807
|
+
*/
|
|
808
|
+
v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest, _options) {
|
|
809
|
+
const result = this.api.v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest, _options);
|
|
810
|
+
return result.toPromise();
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Use this endpoint to get a specific event using its reference ID (v2).
|
|
814
|
+
* Get event by refId (v2)
|
|
815
|
+
* @param refId
|
|
816
|
+
*/
|
|
817
|
+
v2GetEventByRefIdWithHttpInfo(refId, _options) {
|
|
818
|
+
const result = this.api.v2GetEventByRefIdWithHttpInfo(refId, _options);
|
|
819
|
+
return result.toPromise();
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Use this endpoint to get a specific event using its reference ID (v2).
|
|
823
|
+
* Get event by refId (v2)
|
|
824
|
+
* @param refId
|
|
825
|
+
*/
|
|
826
|
+
v2GetEventByRefId(refId, _options) {
|
|
827
|
+
const result = this.api.v2GetEventByRefId(refId, _options);
|
|
828
|
+
return result.toPromise();
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
|
|
832
|
+
* Query events by timestamp period and optional event name (v2)
|
|
833
|
+
* @param startTime
|
|
834
|
+
* @param endTime
|
|
835
|
+
* @param [eventName]
|
|
836
|
+
* @param [customerAlias]
|
|
837
|
+
* @param [limit]
|
|
838
|
+
* @param [cursor]
|
|
839
|
+
*/
|
|
840
|
+
v2QueryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
841
|
+
const result = this.api.v2QueryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
842
|
+
return result.toPromise();
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
|
|
846
|
+
* Query events by timestamp period and optional event name (v2)
|
|
847
|
+
* @param startTime
|
|
848
|
+
* @param endTime
|
|
849
|
+
* @param [eventName]
|
|
850
|
+
* @param [customerAlias]
|
|
851
|
+
* @param [limit]
|
|
852
|
+
* @param [cursor]
|
|
853
|
+
*/
|
|
854
|
+
v2QueryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
855
|
+
const result = this.api.v2QueryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
856
|
+
return result.toPromise();
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Aggregate events by meters and time grouping via the events-service.
|
|
860
|
+
* Aggregate events (v2)
|
|
861
|
+
* @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
|
|
862
|
+
*/
|
|
863
|
+
v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest, _options) {
|
|
864
|
+
const result = this.api.v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest, _options);
|
|
865
|
+
return result.toPromise();
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Aggregate events by meters and time grouping via the events-service.
|
|
869
|
+
* Aggregate events (v2)
|
|
870
|
+
* @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
|
|
871
|
+
*/
|
|
872
|
+
v2QueryEventsAggregation(v2QueryEventsAggregationRequest, _options) {
|
|
873
|
+
const result = this.api.v2QueryEventsAggregation(v2QueryEventsAggregationRequest, _options);
|
|
874
|
+
return result.toPromise();
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Submit a batch of events for ingestion via the events-service.
|
|
878
|
+
* Submit a batch of events for ingestion (v2)
|
|
879
|
+
* @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
880
|
+
*/
|
|
881
|
+
v2SendEventsWithHttpInfo(v2SendEventsRequest, _options) {
|
|
882
|
+
const result = this.api.v2SendEventsWithHttpInfo(v2SendEventsRequest, _options);
|
|
883
|
+
return result.toPromise();
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Submit a batch of events for ingestion via the events-service.
|
|
887
|
+
* Submit a batch of events for ingestion (v2)
|
|
888
|
+
* @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
889
|
+
*/
|
|
890
|
+
v2SendEvents(v2SendEventsRequest, _options) {
|
|
891
|
+
const result = this.api.v2SendEvents(v2SendEventsRequest, _options);
|
|
892
|
+
return result.toPromise();
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
|
|
896
|
+
* Submit a batch of events for testing (v2)
|
|
897
|
+
* @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
898
|
+
*/
|
|
899
|
+
v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest, _options) {
|
|
900
|
+
const result = this.api.v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest, _options);
|
|
901
|
+
return result.toPromise();
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
|
|
905
|
+
* Submit a batch of events for testing (v2)
|
|
906
|
+
* @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
907
|
+
*/
|
|
908
|
+
v2SendEventsDryRun(v2EventsDryRunRequest, _options) {
|
|
909
|
+
const result = this.api.v2SendEventsDryRun(v2EventsDryRunRequest, _options);
|
|
910
|
+
return result.toPromise();
|
|
911
|
+
}
|
|
433
912
|
}
|
|
434
913
|
exports.PromiseEventsApi = PromiseEventsApi;
|
|
435
|
-
const
|
|
914
|
+
const ObservableAPI_9 = require("./ObservableAPI");
|
|
436
915
|
class PromiseInvoicesApi {
|
|
437
916
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
438
|
-
this.api = new
|
|
917
|
+
this.api = new ObservableAPI_9.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
439
918
|
}
|
|
440
919
|
/**
|
|
441
920
|
* Get a Invoice by id.
|
|
@@ -456,31 +935,51 @@ class PromiseInvoicesApi {
|
|
|
456
935
|
return result.toPromise();
|
|
457
936
|
}
|
|
458
937
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
938
|
+
* 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.
|
|
939
|
+
* Get invoice payment status
|
|
940
|
+
* @param invoiceId
|
|
941
|
+
*/
|
|
942
|
+
getInvoicePaymentStatusWithHttpInfo(invoiceId, _options) {
|
|
943
|
+
const result = this.api.getInvoicePaymentStatusWithHttpInfo(invoiceId, _options);
|
|
944
|
+
return result.toPromise();
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* 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.
|
|
948
|
+
* Get invoice payment status
|
|
949
|
+
* @param invoiceId
|
|
950
|
+
*/
|
|
951
|
+
getInvoicePaymentStatus(invoiceId, _options) {
|
|
952
|
+
const result = this.api.getInvoicePaymentStatus(invoiceId, _options);
|
|
953
|
+
return result.toPromise();
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
957
|
+
* List invoices
|
|
461
958
|
* @param [limit]
|
|
462
959
|
* @param [cursor]
|
|
960
|
+
* @param [customerId]
|
|
463
961
|
*/
|
|
464
|
-
listInvoicesWithHttpInfo(limit, cursor, _options) {
|
|
465
|
-
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, _options);
|
|
962
|
+
listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
|
|
963
|
+
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, customerId, _options);
|
|
466
964
|
return result.toPromise();
|
|
467
965
|
}
|
|
468
966
|
/**
|
|
469
|
-
*
|
|
470
|
-
* List
|
|
967
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
968
|
+
* List invoices
|
|
471
969
|
* @param [limit]
|
|
472
970
|
* @param [cursor]
|
|
971
|
+
* @param [customerId]
|
|
473
972
|
*/
|
|
474
|
-
listInvoices(limit, cursor, _options) {
|
|
475
|
-
const result = this.api.listInvoices(limit, cursor, _options);
|
|
973
|
+
listInvoices(limit, cursor, customerId, _options) {
|
|
974
|
+
const result = this.api.listInvoices(limit, cursor, customerId, _options);
|
|
476
975
|
return result.toPromise();
|
|
477
976
|
}
|
|
478
977
|
}
|
|
479
978
|
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
480
|
-
const
|
|
979
|
+
const ObservableAPI_10 = require("./ObservableAPI");
|
|
481
980
|
class PromiseMeasurementsApi {
|
|
482
981
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
483
|
-
this.api = new
|
|
982
|
+
this.api = new ObservableAPI_10.ObservableMeasurementsApi(configuration, requestFactory, responseProcessor);
|
|
484
983
|
}
|
|
485
984
|
/**
|
|
486
985
|
* Create a new Measurement.
|
|
@@ -558,10 +1057,10 @@ class PromiseMeasurementsApi {
|
|
|
558
1057
|
}
|
|
559
1058
|
}
|
|
560
1059
|
exports.PromiseMeasurementsApi = PromiseMeasurementsApi;
|
|
561
|
-
const
|
|
1060
|
+
const ObservableAPI_11 = require("./ObservableAPI");
|
|
562
1061
|
class PromiseMetersApi {
|
|
563
1062
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
564
|
-
this.api = new
|
|
1063
|
+
this.api = new ObservableAPI_11.ObservableMetersApi(configuration, requestFactory, responseProcessor);
|
|
565
1064
|
}
|
|
566
1065
|
/**
|
|
567
1066
|
* Delete a Meter by id.
|
|
@@ -641,10 +1140,73 @@ class PromiseMetersApi {
|
|
|
641
1140
|
}
|
|
642
1141
|
}
|
|
643
1142
|
exports.PromiseMetersApi = PromiseMetersApi;
|
|
644
|
-
const
|
|
1143
|
+
const ObservableAPI_12 = require("./ObservableAPI");
|
|
1144
|
+
class PromisePlansApi {
|
|
1145
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
1146
|
+
this.api = new ObservableAPI_12.ObservablePlansApi(configuration, requestFactory, responseProcessor);
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Delete a Plan by id.
|
|
1150
|
+
* Delete Plan
|
|
1151
|
+
* @param planId
|
|
1152
|
+
*/
|
|
1153
|
+
deletePlanWithHttpInfo(planId, _options) {
|
|
1154
|
+
const result = this.api.deletePlanWithHttpInfo(planId, _options);
|
|
1155
|
+
return result.toPromise();
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Delete a Plan by id.
|
|
1159
|
+
* Delete Plan
|
|
1160
|
+
* @param planId
|
|
1161
|
+
*/
|
|
1162
|
+
deletePlan(planId, _options) {
|
|
1163
|
+
const result = this.api.deletePlan(planId, _options);
|
|
1164
|
+
return result.toPromise();
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Get a Plan by id.
|
|
1168
|
+
* Get Plan
|
|
1169
|
+
* @param planId
|
|
1170
|
+
*/
|
|
1171
|
+
getPlanWithHttpInfo(planId, _options) {
|
|
1172
|
+
const result = this.api.getPlanWithHttpInfo(planId, _options);
|
|
1173
|
+
return result.toPromise();
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Get a Plan by id.
|
|
1177
|
+
* Get Plan
|
|
1178
|
+
* @param planId
|
|
1179
|
+
*/
|
|
1180
|
+
getPlan(planId, _options) {
|
|
1181
|
+
const result = this.api.getPlan(planId, _options);
|
|
1182
|
+
return result.toPromise();
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Get a list of Plans.
|
|
1186
|
+
* List Plans
|
|
1187
|
+
* @param [limit]
|
|
1188
|
+
* @param [cursor]
|
|
1189
|
+
*/
|
|
1190
|
+
listPlansWithHttpInfo(limit, cursor, _options) {
|
|
1191
|
+
const result = this.api.listPlansWithHttpInfo(limit, cursor, _options);
|
|
1192
|
+
return result.toPromise();
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Get a list of Plans.
|
|
1196
|
+
* List Plans
|
|
1197
|
+
* @param [limit]
|
|
1198
|
+
* @param [cursor]
|
|
1199
|
+
*/
|
|
1200
|
+
listPlans(limit, cursor, _options) {
|
|
1201
|
+
const result = this.api.listPlans(limit, cursor, _options);
|
|
1202
|
+
return result.toPromise();
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
exports.PromisePlansApi = PromisePlansApi;
|
|
1206
|
+
const ObservableAPI_13 = require("./ObservableAPI");
|
|
645
1207
|
class PromiseProductConsumptionsApi {
|
|
646
1208
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
647
|
-
this.api = new
|
|
1209
|
+
this.api = new ObservableAPI_13.ObservableProductConsumptionsApi(configuration, requestFactory, responseProcessor);
|
|
648
1210
|
}
|
|
649
1211
|
/**
|
|
650
1212
|
* Use this action to get the consumption data for a product
|
|
@@ -666,10 +1228,10 @@ class PromiseProductConsumptionsApi {
|
|
|
666
1228
|
}
|
|
667
1229
|
}
|
|
668
1230
|
exports.PromiseProductConsumptionsApi = PromiseProductConsumptionsApi;
|
|
669
|
-
const
|
|
1231
|
+
const ObservableAPI_14 = require("./ObservableAPI");
|
|
670
1232
|
class PromiseWebhooksApi {
|
|
671
1233
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
672
|
-
this.api = new
|
|
1234
|
+
this.api = new ObservableAPI_14.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
|
|
673
1235
|
}
|
|
674
1236
|
/**
|
|
675
1237
|
* Use this endpoint to subscribe to webhooks and receive event notifications.
|