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.ObservableWebhooksApi = exports.ObservableProductConsumptionsApi = exports.ObservableMetersApi = exports.ObservableMeasurementsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableCustomersApi = exports.ObservableCreditsApi = exports.ObservableContractsApi = exports.ObservableAuthApi = void 0;
|
|
3
|
+
exports.ObservableWebhooksApi = exports.ObservableProductConsumptionsApi = exports.ObservablePlansApi = exports.ObservableMetersApi = exports.ObservableMeasurementsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableCustomersApi = exports.ObservableCustomFieldsApi = exports.ObservableCreditsApi = exports.ObservableContractsApi = exports.ObservableCloudUsageSubmissionApi = exports.ObservableCatalogProductsApi = exports.ObservableAuthApi = void 0;
|
|
4
4
|
const rxjsStub_1 = require("../rxjsStub");
|
|
5
5
|
const rxjsStub_2 = require("../rxjsStub");
|
|
6
6
|
const AuthApi_1 = require("../apis/AuthApi");
|
|
@@ -41,6 +41,202 @@ class ObservableAuthApi {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.ObservableAuthApi = ObservableAuthApi;
|
|
44
|
+
const CatalogProductsApi_1 = require("../apis/CatalogProductsApi");
|
|
45
|
+
class ObservableCatalogProductsApi {
|
|
46
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
47
|
+
this.configuration = configuration;
|
|
48
|
+
this.requestFactory = requestFactory || new CatalogProductsApi_1.CatalogProductsApiRequestFactory(configuration);
|
|
49
|
+
this.responseProcessor = responseProcessor || new CatalogProductsApi_1.CatalogProductsApiResponseProcessor();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Create a new Catalog product.
|
|
53
|
+
* Create Catalog product
|
|
54
|
+
* @param createCatalogProductRequest
|
|
55
|
+
*/
|
|
56
|
+
createCatalogProductWithHttpInfo(createCatalogProductRequest, _options) {
|
|
57
|
+
const requestContextPromise = this.requestFactory.createCatalogProduct(createCatalogProductRequest, _options);
|
|
58
|
+
// build promise chain
|
|
59
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
60
|
+
for (const middleware of this.configuration.middleware) {
|
|
61
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
62
|
+
}
|
|
63
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
64
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
65
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
66
|
+
for (const middleware of this.configuration.middleware) {
|
|
67
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
68
|
+
}
|
|
69
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCatalogProductWithHttpInfo(rsp)));
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Create a new Catalog product.
|
|
74
|
+
* Create Catalog product
|
|
75
|
+
* @param createCatalogProductRequest
|
|
76
|
+
*/
|
|
77
|
+
createCatalogProduct(createCatalogProductRequest, _options) {
|
|
78
|
+
return this.createCatalogProductWithHttpInfo(createCatalogProductRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Delete a Catalog product by id.
|
|
82
|
+
* Delete Catalog product
|
|
83
|
+
* @param catalogProductId
|
|
84
|
+
*/
|
|
85
|
+
deleteCatalogProductWithHttpInfo(catalogProductId, _options) {
|
|
86
|
+
const requestContextPromise = this.requestFactory.deleteCatalogProduct(catalogProductId, _options);
|
|
87
|
+
// build promise chain
|
|
88
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
89
|
+
for (const middleware of this.configuration.middleware) {
|
|
90
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
91
|
+
}
|
|
92
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
93
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
94
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
95
|
+
for (const middleware of this.configuration.middleware) {
|
|
96
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
97
|
+
}
|
|
98
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteCatalogProductWithHttpInfo(rsp)));
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Delete a Catalog product by id.
|
|
103
|
+
* Delete Catalog product
|
|
104
|
+
* @param catalogProductId
|
|
105
|
+
*/
|
|
106
|
+
deleteCatalogProduct(catalogProductId, _options) {
|
|
107
|
+
return this.deleteCatalogProductWithHttpInfo(catalogProductId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Get a Catalog product by id.
|
|
111
|
+
* Get Catalog product
|
|
112
|
+
* @param catalogProductId
|
|
113
|
+
*/
|
|
114
|
+
getCatalogProductWithHttpInfo(catalogProductId, _options) {
|
|
115
|
+
const requestContextPromise = this.requestFactory.getCatalogProduct(catalogProductId, _options);
|
|
116
|
+
// build promise chain
|
|
117
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
118
|
+
for (const middleware of this.configuration.middleware) {
|
|
119
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
120
|
+
}
|
|
121
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
122
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
123
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
124
|
+
for (const middleware of this.configuration.middleware) {
|
|
125
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
126
|
+
}
|
|
127
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCatalogProductWithHttpInfo(rsp)));
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get a Catalog product by id.
|
|
132
|
+
* Get Catalog product
|
|
133
|
+
* @param catalogProductId
|
|
134
|
+
*/
|
|
135
|
+
getCatalogProduct(catalogProductId, _options) {
|
|
136
|
+
return this.getCatalogProductWithHttpInfo(catalogProductId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get a list of Catalog products.
|
|
140
|
+
* List Catalog products
|
|
141
|
+
* @param [limit]
|
|
142
|
+
* @param [cursor]
|
|
143
|
+
*/
|
|
144
|
+
listCatalogProductsWithHttpInfo(limit, cursor, _options) {
|
|
145
|
+
const requestContextPromise = this.requestFactory.listCatalogProducts(limit, cursor, _options);
|
|
146
|
+
// build promise chain
|
|
147
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
148
|
+
for (const middleware of this.configuration.middleware) {
|
|
149
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
150
|
+
}
|
|
151
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
152
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
153
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
154
|
+
for (const middleware of this.configuration.middleware) {
|
|
155
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
156
|
+
}
|
|
157
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listCatalogProductsWithHttpInfo(rsp)));
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get a list of Catalog products.
|
|
162
|
+
* List Catalog products
|
|
163
|
+
* @param [limit]
|
|
164
|
+
* @param [cursor]
|
|
165
|
+
*/
|
|
166
|
+
listCatalogProducts(limit, cursor, _options) {
|
|
167
|
+
return this.listCatalogProductsWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Update a Catalog product by id.
|
|
171
|
+
* Update Catalog product
|
|
172
|
+
* @param updateCatalogProductRequest
|
|
173
|
+
* @param catalogProductId
|
|
174
|
+
*/
|
|
175
|
+
updateCatalogProductWithHttpInfo(updateCatalogProductRequest, catalogProductId, _options) {
|
|
176
|
+
const requestContextPromise = this.requestFactory.updateCatalogProduct(updateCatalogProductRequest, catalogProductId, _options);
|
|
177
|
+
// build promise chain
|
|
178
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
179
|
+
for (const middleware of this.configuration.middleware) {
|
|
180
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
181
|
+
}
|
|
182
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
183
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
184
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
185
|
+
for (const middleware of this.configuration.middleware) {
|
|
186
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
187
|
+
}
|
|
188
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateCatalogProductWithHttpInfo(rsp)));
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Update a Catalog product by id.
|
|
193
|
+
* Update Catalog product
|
|
194
|
+
* @param updateCatalogProductRequest
|
|
195
|
+
* @param catalogProductId
|
|
196
|
+
*/
|
|
197
|
+
updateCatalogProduct(updateCatalogProductRequest, catalogProductId, _options) {
|
|
198
|
+
return this.updateCatalogProductWithHttpInfo(updateCatalogProductRequest, catalogProductId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.ObservableCatalogProductsApi = ObservableCatalogProductsApi;
|
|
202
|
+
const CloudUsageSubmissionApi_1 = require("../apis/CloudUsageSubmissionApi");
|
|
203
|
+
class ObservableCloudUsageSubmissionApi {
|
|
204
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
205
|
+
this.configuration = configuration;
|
|
206
|
+
this.requestFactory = requestFactory || new CloudUsageSubmissionApi_1.CloudUsageSubmissionApiRequestFactory(configuration);
|
|
207
|
+
this.responseProcessor = responseProcessor || new CloudUsageSubmissionApi_1.CloudUsageSubmissionApiResponseProcessor();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Submit cloud usage data
|
|
211
|
+
* Submit cloud usage
|
|
212
|
+
* @param submitCloudUsageRequest
|
|
213
|
+
*/
|
|
214
|
+
submitCloudUsageWithHttpInfo(submitCloudUsageRequest, _options) {
|
|
215
|
+
const requestContextPromise = this.requestFactory.submitCloudUsage(submitCloudUsageRequest, _options);
|
|
216
|
+
// build promise chain
|
|
217
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
218
|
+
for (const middleware of this.configuration.middleware) {
|
|
219
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
220
|
+
}
|
|
221
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
222
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
223
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
224
|
+
for (const middleware of this.configuration.middleware) {
|
|
225
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
226
|
+
}
|
|
227
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.submitCloudUsageWithHttpInfo(rsp)));
|
|
228
|
+
}));
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Submit cloud usage data
|
|
232
|
+
* Submit cloud usage
|
|
233
|
+
* @param submitCloudUsageRequest
|
|
234
|
+
*/
|
|
235
|
+
submitCloudUsage(submitCloudUsageRequest, _options) {
|
|
236
|
+
return this.submitCloudUsageWithHttpInfo(submitCloudUsageRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
exports.ObservableCloudUsageSubmissionApi = ObservableCloudUsageSubmissionApi;
|
|
44
240
|
const ContractsApi_1 = require("../apis/ContractsApi");
|
|
45
241
|
class ObservableContractsApi {
|
|
46
242
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -136,13 +332,45 @@ class ObservableContractsApi {
|
|
|
136
332
|
return this.getContractWithHttpInfo(contractId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
137
333
|
}
|
|
138
334
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
335
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
336
|
+
* Get contract by integration id
|
|
337
|
+
* @param integrationType
|
|
338
|
+
* @param integrationId
|
|
339
|
+
*/
|
|
340
|
+
getContractByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
341
|
+
const requestContextPromise = this.requestFactory.getContractByIntegrationId(integrationType, integrationId, _options);
|
|
342
|
+
// build promise chain
|
|
343
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
344
|
+
for (const middleware of this.configuration.middleware) {
|
|
345
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
346
|
+
}
|
|
347
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
348
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
349
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
350
|
+
for (const middleware of this.configuration.middleware) {
|
|
351
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
352
|
+
}
|
|
353
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getContractByIntegrationIdWithHttpInfo(rsp)));
|
|
354
|
+
}));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
358
|
+
* Get contract by integration id
|
|
359
|
+
* @param integrationType
|
|
360
|
+
* @param integrationId
|
|
361
|
+
*/
|
|
362
|
+
getContractByIntegrationId(integrationType, integrationId, _options) {
|
|
363
|
+
return this.getContractByIntegrationIdWithHttpInfo(integrationType, integrationId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
367
|
+
* List contracts
|
|
141
368
|
* @param [limit]
|
|
142
369
|
* @param [cursor]
|
|
370
|
+
* @param [customerId]
|
|
143
371
|
*/
|
|
144
|
-
listContractsWithHttpInfo(limit, cursor, _options) {
|
|
145
|
-
const requestContextPromise = this.requestFactory.listContracts(limit, cursor, _options);
|
|
372
|
+
listContractsWithHttpInfo(limit, cursor, customerId, _options) {
|
|
373
|
+
const requestContextPromise = this.requestFactory.listContracts(limit, cursor, customerId, _options);
|
|
146
374
|
// build promise chain
|
|
147
375
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
148
376
|
for (const middleware of this.configuration.middleware) {
|
|
@@ -158,13 +386,14 @@ class ObservableContractsApi {
|
|
|
158
386
|
}));
|
|
159
387
|
}
|
|
160
388
|
/**
|
|
161
|
-
*
|
|
162
|
-
* List
|
|
389
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
390
|
+
* List contracts
|
|
163
391
|
* @param [limit]
|
|
164
392
|
* @param [cursor]
|
|
393
|
+
* @param [customerId]
|
|
165
394
|
*/
|
|
166
|
-
listContracts(limit, cursor, _options) {
|
|
167
|
-
return this.listContractsWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
395
|
+
listContracts(limit, cursor, customerId, _options) {
|
|
396
|
+
return this.listContractsWithHttpInfo(limit, cursor, customerId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
168
397
|
}
|
|
169
398
|
}
|
|
170
399
|
exports.ObservableContractsApi = ObservableContractsApi;
|
|
@@ -268,6 +497,164 @@ class ObservableCreditsApi {
|
|
|
268
497
|
}
|
|
269
498
|
}
|
|
270
499
|
exports.ObservableCreditsApi = ObservableCreditsApi;
|
|
500
|
+
const CustomFieldsApi_1 = require("../apis/CustomFieldsApi");
|
|
501
|
+
class ObservableCustomFieldsApi {
|
|
502
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
503
|
+
this.configuration = configuration;
|
|
504
|
+
this.requestFactory = requestFactory || new CustomFieldsApi_1.CustomFieldsApiRequestFactory(configuration);
|
|
505
|
+
this.responseProcessor = responseProcessor || new CustomFieldsApi_1.CustomFieldsApiResponseProcessor();
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Create a new Custom field.
|
|
509
|
+
* Create Custom field
|
|
510
|
+
* @param createCustomFieldRequest
|
|
511
|
+
*/
|
|
512
|
+
createCustomFieldWithHttpInfo(createCustomFieldRequest, _options) {
|
|
513
|
+
const requestContextPromise = this.requestFactory.createCustomField(createCustomFieldRequest, _options);
|
|
514
|
+
// build promise chain
|
|
515
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
516
|
+
for (const middleware of this.configuration.middleware) {
|
|
517
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
518
|
+
}
|
|
519
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
520
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
521
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
522
|
+
for (const middleware of this.configuration.middleware) {
|
|
523
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
524
|
+
}
|
|
525
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCustomFieldWithHttpInfo(rsp)));
|
|
526
|
+
}));
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Create a new Custom field.
|
|
530
|
+
* Create Custom field
|
|
531
|
+
* @param createCustomFieldRequest
|
|
532
|
+
*/
|
|
533
|
+
createCustomField(createCustomFieldRequest, _options) {
|
|
534
|
+
return this.createCustomFieldWithHttpInfo(createCustomFieldRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Delete a Custom field by id.
|
|
538
|
+
* Delete Custom field
|
|
539
|
+
* @param customFieldId
|
|
540
|
+
*/
|
|
541
|
+
deleteCustomFieldWithHttpInfo(customFieldId, _options) {
|
|
542
|
+
const requestContextPromise = this.requestFactory.deleteCustomField(customFieldId, _options);
|
|
543
|
+
// build promise chain
|
|
544
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
545
|
+
for (const middleware of this.configuration.middleware) {
|
|
546
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
547
|
+
}
|
|
548
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
549
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
550
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
551
|
+
for (const middleware of this.configuration.middleware) {
|
|
552
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
553
|
+
}
|
|
554
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteCustomFieldWithHttpInfo(rsp)));
|
|
555
|
+
}));
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Delete a Custom field by id.
|
|
559
|
+
* Delete Custom field
|
|
560
|
+
* @param customFieldId
|
|
561
|
+
*/
|
|
562
|
+
deleteCustomField(customFieldId, _options) {
|
|
563
|
+
return this.deleteCustomFieldWithHttpInfo(customFieldId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Get a Custom field by id.
|
|
567
|
+
* Get Custom field
|
|
568
|
+
* @param customFieldId
|
|
569
|
+
*/
|
|
570
|
+
getCustomFieldWithHttpInfo(customFieldId, _options) {
|
|
571
|
+
const requestContextPromise = this.requestFactory.getCustomField(customFieldId, _options);
|
|
572
|
+
// build promise chain
|
|
573
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
574
|
+
for (const middleware of this.configuration.middleware) {
|
|
575
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
576
|
+
}
|
|
577
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
578
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
579
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
580
|
+
for (const middleware of this.configuration.middleware) {
|
|
581
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
582
|
+
}
|
|
583
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomFieldWithHttpInfo(rsp)));
|
|
584
|
+
}));
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Get a Custom field by id.
|
|
588
|
+
* Get Custom field
|
|
589
|
+
* @param customFieldId
|
|
590
|
+
*/
|
|
591
|
+
getCustomField(customFieldId, _options) {
|
|
592
|
+
return this.getCustomFieldWithHttpInfo(customFieldId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Get a list of Custom fields.
|
|
596
|
+
* List Custom fields
|
|
597
|
+
* @param [limit]
|
|
598
|
+
* @param [cursor]
|
|
599
|
+
*/
|
|
600
|
+
listCustomFieldsWithHttpInfo(limit, cursor, _options) {
|
|
601
|
+
const requestContextPromise = this.requestFactory.listCustomFields(limit, cursor, _options);
|
|
602
|
+
// build promise chain
|
|
603
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
604
|
+
for (const middleware of this.configuration.middleware) {
|
|
605
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
606
|
+
}
|
|
607
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
608
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
609
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
610
|
+
for (const middleware of this.configuration.middleware) {
|
|
611
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
612
|
+
}
|
|
613
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listCustomFieldsWithHttpInfo(rsp)));
|
|
614
|
+
}));
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Get a list of Custom fields.
|
|
618
|
+
* List Custom fields
|
|
619
|
+
* @param [limit]
|
|
620
|
+
* @param [cursor]
|
|
621
|
+
*/
|
|
622
|
+
listCustomFields(limit, cursor, _options) {
|
|
623
|
+
return this.listCustomFieldsWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Update a Custom field by id.
|
|
627
|
+
* Update Custom field
|
|
628
|
+
* @param updateCustomFieldRequest
|
|
629
|
+
* @param customFieldId
|
|
630
|
+
*/
|
|
631
|
+
updateCustomFieldWithHttpInfo(updateCustomFieldRequest, customFieldId, _options) {
|
|
632
|
+
const requestContextPromise = this.requestFactory.updateCustomField(updateCustomFieldRequest, customFieldId, _options);
|
|
633
|
+
// build promise chain
|
|
634
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
635
|
+
for (const middleware of this.configuration.middleware) {
|
|
636
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
637
|
+
}
|
|
638
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
639
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
640
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
641
|
+
for (const middleware of this.configuration.middleware) {
|
|
642
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
643
|
+
}
|
|
644
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateCustomFieldWithHttpInfo(rsp)));
|
|
645
|
+
}));
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Update a Custom field by id.
|
|
649
|
+
* Update Custom field
|
|
650
|
+
* @param updateCustomFieldRequest
|
|
651
|
+
* @param customFieldId
|
|
652
|
+
*/
|
|
653
|
+
updateCustomField(updateCustomFieldRequest, customFieldId, _options) {
|
|
654
|
+
return this.updateCustomFieldWithHttpInfo(updateCustomFieldRequest, customFieldId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
exports.ObservableCustomFieldsApi = ObservableCustomFieldsApi;
|
|
271
658
|
const CustomersApi_1 = require("../apis/CustomersApi");
|
|
272
659
|
class ObservableCustomersApi {
|
|
273
660
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -304,6 +691,35 @@ class ObservableCustomersApi {
|
|
|
304
691
|
createCustomer(createCustomerRequest, _options) {
|
|
305
692
|
return this.createCustomerWithHttpInfo(createCustomerRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
306
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* Create a new Customer relation.
|
|
696
|
+
* Create Customer relation
|
|
697
|
+
* @param createCustomerRelationRequest
|
|
698
|
+
*/
|
|
699
|
+
createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options) {
|
|
700
|
+
const requestContextPromise = this.requestFactory.createCustomerRelation(createCustomerRelationRequest, _options);
|
|
701
|
+
// build promise chain
|
|
702
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
703
|
+
for (const middleware of this.configuration.middleware) {
|
|
704
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
705
|
+
}
|
|
706
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
707
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
708
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
709
|
+
for (const middleware of this.configuration.middleware) {
|
|
710
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
711
|
+
}
|
|
712
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCustomerRelationWithHttpInfo(rsp)));
|
|
713
|
+
}));
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Create a new Customer relation.
|
|
717
|
+
* Create Customer relation
|
|
718
|
+
* @param createCustomerRelationRequest
|
|
719
|
+
*/
|
|
720
|
+
createCustomerRelation(createCustomerRelationRequest, _options) {
|
|
721
|
+
return this.createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
722
|
+
}
|
|
307
723
|
/**
|
|
308
724
|
* Delete a Customer by id.
|
|
309
725
|
* Delete Customer
|
|
@@ -391,6 +807,66 @@ class ObservableCustomersApi {
|
|
|
391
807
|
getCustomerByExternalId(externalId, _options) {
|
|
392
808
|
return this.getCustomerByExternalIdWithHttpInfo(externalId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
393
809
|
}
|
|
810
|
+
/**
|
|
811
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
812
|
+
* Get customer by integration id
|
|
813
|
+
* @param integrationType
|
|
814
|
+
* @param integrationId
|
|
815
|
+
*/
|
|
816
|
+
getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
817
|
+
const requestContextPromise = this.requestFactory.getCustomerByIntegrationId(integrationType, integrationId, _options);
|
|
818
|
+
// build promise chain
|
|
819
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
820
|
+
for (const middleware of this.configuration.middleware) {
|
|
821
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
822
|
+
}
|
|
823
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
824
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
825
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
826
|
+
for (const middleware of this.configuration.middleware) {
|
|
827
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
828
|
+
}
|
|
829
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerByIntegrationIdWithHttpInfo(rsp)));
|
|
830
|
+
}));
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
834
|
+
* Get customer by integration id
|
|
835
|
+
* @param integrationType
|
|
836
|
+
* @param integrationId
|
|
837
|
+
*/
|
|
838
|
+
getCustomerByIntegrationId(integrationType, integrationId, _options) {
|
|
839
|
+
return this.getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Use this endpoint to get a specific customer using its name.
|
|
843
|
+
* Get customer by name
|
|
844
|
+
* @param name
|
|
845
|
+
*/
|
|
846
|
+
getCustomerByNameWithHttpInfo(name, _options) {
|
|
847
|
+
const requestContextPromise = this.requestFactory.getCustomerByName(name, _options);
|
|
848
|
+
// build promise chain
|
|
849
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
850
|
+
for (const middleware of this.configuration.middleware) {
|
|
851
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
852
|
+
}
|
|
853
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
854
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
855
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
856
|
+
for (const middleware of this.configuration.middleware) {
|
|
857
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
858
|
+
}
|
|
859
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerByNameWithHttpInfo(rsp)));
|
|
860
|
+
}));
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Use this endpoint to get a specific customer using its name.
|
|
864
|
+
* Get customer by name
|
|
865
|
+
* @param name
|
|
866
|
+
*/
|
|
867
|
+
getCustomerByName(name, _options) {
|
|
868
|
+
return this.getCustomerByNameWithHttpInfo(name, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
869
|
+
}
|
|
394
870
|
/**
|
|
395
871
|
* Use this endpoint to get the products consumptions by the customer id.
|
|
396
872
|
* Get products consumptions by customer id
|
|
@@ -425,8 +901,37 @@ class ObservableCustomersApi {
|
|
|
425
901
|
* Get products consumptions by customer alias
|
|
426
902
|
* @param alias
|
|
427
903
|
*/
|
|
428
|
-
getCustomerProductsConsumptionsByAliasWithHttpInfo(alias, _options) {
|
|
429
|
-
const requestContextPromise = this.requestFactory.getCustomerProductsConsumptionsByAlias(alias, _options);
|
|
904
|
+
getCustomerProductsConsumptionsByAliasWithHttpInfo(alias, _options) {
|
|
905
|
+
const requestContextPromise = this.requestFactory.getCustomerProductsConsumptionsByAlias(alias, _options);
|
|
906
|
+
// build promise chain
|
|
907
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
908
|
+
for (const middleware of this.configuration.middleware) {
|
|
909
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
910
|
+
}
|
|
911
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
912
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
913
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
914
|
+
for (const middleware of this.configuration.middleware) {
|
|
915
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
916
|
+
}
|
|
917
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerProductsConsumptionsByAliasWithHttpInfo(rsp)));
|
|
918
|
+
}));
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
922
|
+
* Get products consumptions by customer alias
|
|
923
|
+
* @param alias
|
|
924
|
+
*/
|
|
925
|
+
getCustomerProductsConsumptionsByAlias(alias, _options) {
|
|
926
|
+
return this.getCustomerProductsConsumptionsByAliasWithHttpInfo(alias, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Get a Customer relation by id.
|
|
930
|
+
* Get Customer relation
|
|
931
|
+
* @param customerRelationId
|
|
932
|
+
*/
|
|
933
|
+
getCustomerRelationWithHttpInfo(customerRelationId, _options) {
|
|
934
|
+
const requestContextPromise = this.requestFactory.getCustomerRelation(customerRelationId, _options);
|
|
430
935
|
// build promise chain
|
|
431
936
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
432
937
|
for (const middleware of this.configuration.middleware) {
|
|
@@ -438,16 +943,16 @@ class ObservableCustomersApi {
|
|
|
438
943
|
for (const middleware of this.configuration.middleware) {
|
|
439
944
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
440
945
|
}
|
|
441
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
946
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerRelationWithHttpInfo(rsp)));
|
|
442
947
|
}));
|
|
443
948
|
}
|
|
444
949
|
/**
|
|
445
|
-
*
|
|
446
|
-
* Get
|
|
447
|
-
* @param
|
|
950
|
+
* Get a Customer relation by id.
|
|
951
|
+
* Get Customer relation
|
|
952
|
+
* @param customerRelationId
|
|
448
953
|
*/
|
|
449
|
-
|
|
450
|
-
return this.
|
|
954
|
+
getCustomerRelation(customerRelationId, _options) {
|
|
955
|
+
return this.getCustomerRelationWithHttpInfo(customerRelationId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
451
956
|
}
|
|
452
957
|
/**
|
|
453
958
|
* Get a list of Customers.
|
|
@@ -549,6 +1054,35 @@ class ObservableEventsApi {
|
|
|
549
1054
|
deleteEventByRefId(refId, _options) {
|
|
550
1055
|
return this.deleteEventByRefIdWithHttpInfo(refId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
551
1056
|
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
1059
|
+
* Delete events by refs
|
|
1060
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
1061
|
+
*/
|
|
1062
|
+
deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options) {
|
|
1063
|
+
const requestContextPromise = this.requestFactory.deleteEventsByRefs(deleteEventsByRefsRequest, _options);
|
|
1064
|
+
// build promise chain
|
|
1065
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1066
|
+
for (const middleware of this.configuration.middleware) {
|
|
1067
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1068
|
+
}
|
|
1069
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1070
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1071
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1072
|
+
for (const middleware of this.configuration.middleware) {
|
|
1073
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1074
|
+
}
|
|
1075
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEventsByRefsWithHttpInfo(rsp)));
|
|
1076
|
+
}));
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
1080
|
+
* Delete events by refs
|
|
1081
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
1082
|
+
*/
|
|
1083
|
+
deleteEventsByRefs(deleteEventsByRefsRequest, _options) {
|
|
1084
|
+
return this.deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1085
|
+
}
|
|
552
1086
|
/**
|
|
553
1087
|
* Use this endpoint to get a specific event using its reference ID.
|
|
554
1088
|
* Get event by refId
|
|
@@ -584,11 +1118,12 @@ class ObservableEventsApi {
|
|
|
584
1118
|
* @param startTime
|
|
585
1119
|
* @param endTime
|
|
586
1120
|
* @param [eventName]
|
|
1121
|
+
* @param [customerAlias]
|
|
587
1122
|
* @param [limit]
|
|
588
1123
|
* @param [cursor]
|
|
589
1124
|
*/
|
|
590
|
-
queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options) {
|
|
591
|
-
const requestContextPromise = this.requestFactory.queryEvents(startTime, endTime, eventName, limit, cursor, _options);
|
|
1125
|
+
queryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
1126
|
+
const requestContextPromise = this.requestFactory.queryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
592
1127
|
// build promise chain
|
|
593
1128
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
594
1129
|
for (const middleware of this.configuration.middleware) {
|
|
@@ -609,11 +1144,12 @@ class ObservableEventsApi {
|
|
|
609
1144
|
* @param startTime
|
|
610
1145
|
* @param endTime
|
|
611
1146
|
* @param [eventName]
|
|
1147
|
+
* @param [customerAlias]
|
|
612
1148
|
* @param [limit]
|
|
613
1149
|
* @param [cursor]
|
|
614
1150
|
*/
|
|
615
|
-
queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
|
|
616
|
-
return this.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1151
|
+
queryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
1152
|
+
return this.queryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
617
1153
|
}
|
|
618
1154
|
/**
|
|
619
1155
|
* Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
|
|
@@ -673,6 +1209,219 @@ class ObservableEventsApi {
|
|
|
673
1209
|
sendEventsDryRun(eventsDryRunRequest, _options) {
|
|
674
1210
|
return this.sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
675
1211
|
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Use this endpoint to remove a specific event using its reference ID (v2).
|
|
1214
|
+
* Delete an event by refId (v2)
|
|
1215
|
+
* @param refId
|
|
1216
|
+
*/
|
|
1217
|
+
v2DeleteEventByRefIdWithHttpInfo(refId, _options) {
|
|
1218
|
+
const requestContextPromise = this.requestFactory.v2DeleteEventByRefId(refId, _options);
|
|
1219
|
+
// build promise chain
|
|
1220
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1221
|
+
for (const middleware of this.configuration.middleware) {
|
|
1222
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1223
|
+
}
|
|
1224
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1225
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1226
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1227
|
+
for (const middleware of this.configuration.middleware) {
|
|
1228
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1229
|
+
}
|
|
1230
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2DeleteEventByRefIdWithHttpInfo(rsp)));
|
|
1231
|
+
}));
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Use this endpoint to remove a specific event using its reference ID (v2).
|
|
1235
|
+
* Delete an event by refId (v2)
|
|
1236
|
+
* @param refId
|
|
1237
|
+
*/
|
|
1238
|
+
v2DeleteEventByRefId(refId, _options) {
|
|
1239
|
+
return this.v2DeleteEventByRefIdWithHttpInfo(refId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Delete multiple events, identified by ref, in a single request (v2).
|
|
1243
|
+
* Delete events by refs (v2)
|
|
1244
|
+
* @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
1245
|
+
*/
|
|
1246
|
+
v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest, _options) {
|
|
1247
|
+
const requestContextPromise = this.requestFactory.v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest, _options);
|
|
1248
|
+
// build promise chain
|
|
1249
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1250
|
+
for (const middleware of this.configuration.middleware) {
|
|
1251
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1252
|
+
}
|
|
1253
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1254
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1255
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1256
|
+
for (const middleware of this.configuration.middleware) {
|
|
1257
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1258
|
+
}
|
|
1259
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2DeleteEventsByRefsWithHttpInfo(rsp)));
|
|
1260
|
+
}));
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Delete multiple events, identified by ref, in a single request (v2).
|
|
1264
|
+
* Delete events by refs (v2)
|
|
1265
|
+
* @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
1266
|
+
*/
|
|
1267
|
+
v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest, _options) {
|
|
1268
|
+
return this.v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Use this endpoint to get a specific event using its reference ID (v2).
|
|
1272
|
+
* Get event by refId (v2)
|
|
1273
|
+
* @param refId
|
|
1274
|
+
*/
|
|
1275
|
+
v2GetEventByRefIdWithHttpInfo(refId, _options) {
|
|
1276
|
+
const requestContextPromise = this.requestFactory.v2GetEventByRefId(refId, _options);
|
|
1277
|
+
// build promise chain
|
|
1278
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1279
|
+
for (const middleware of this.configuration.middleware) {
|
|
1280
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1281
|
+
}
|
|
1282
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1283
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1284
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1285
|
+
for (const middleware of this.configuration.middleware) {
|
|
1286
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1287
|
+
}
|
|
1288
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2GetEventByRefIdWithHttpInfo(rsp)));
|
|
1289
|
+
}));
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Use this endpoint to get a specific event using its reference ID (v2).
|
|
1293
|
+
* Get event by refId (v2)
|
|
1294
|
+
* @param refId
|
|
1295
|
+
*/
|
|
1296
|
+
v2GetEventByRefId(refId, _options) {
|
|
1297
|
+
return this.v2GetEventByRefIdWithHttpInfo(refId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
|
|
1301
|
+
* Query events by timestamp period and optional event name (v2)
|
|
1302
|
+
* @param startTime
|
|
1303
|
+
* @param endTime
|
|
1304
|
+
* @param [eventName]
|
|
1305
|
+
* @param [customerAlias]
|
|
1306
|
+
* @param [limit]
|
|
1307
|
+
* @param [cursor]
|
|
1308
|
+
*/
|
|
1309
|
+
v2QueryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
1310
|
+
const requestContextPromise = this.requestFactory.v2QueryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
1311
|
+
// build promise chain
|
|
1312
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1313
|
+
for (const middleware of this.configuration.middleware) {
|
|
1314
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1315
|
+
}
|
|
1316
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1317
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1318
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1319
|
+
for (const middleware of this.configuration.middleware) {
|
|
1320
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1321
|
+
}
|
|
1322
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2QueryEventsWithHttpInfo(rsp)));
|
|
1323
|
+
}));
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
|
|
1327
|
+
* Query events by timestamp period and optional event name (v2)
|
|
1328
|
+
* @param startTime
|
|
1329
|
+
* @param endTime
|
|
1330
|
+
* @param [eventName]
|
|
1331
|
+
* @param [customerAlias]
|
|
1332
|
+
* @param [limit]
|
|
1333
|
+
* @param [cursor]
|
|
1334
|
+
*/
|
|
1335
|
+
v2QueryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
1336
|
+
return this.v2QueryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Aggregate events by meters and time grouping via the events-service.
|
|
1340
|
+
* Aggregate events (v2)
|
|
1341
|
+
* @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
|
|
1342
|
+
*/
|
|
1343
|
+
v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest, _options) {
|
|
1344
|
+
const requestContextPromise = this.requestFactory.v2QueryEventsAggregation(v2QueryEventsAggregationRequest, _options);
|
|
1345
|
+
// build promise chain
|
|
1346
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1347
|
+
for (const middleware of this.configuration.middleware) {
|
|
1348
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1349
|
+
}
|
|
1350
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1351
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1352
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1353
|
+
for (const middleware of this.configuration.middleware) {
|
|
1354
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1355
|
+
}
|
|
1356
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2QueryEventsAggregationWithHttpInfo(rsp)));
|
|
1357
|
+
}));
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Aggregate events by meters and time grouping via the events-service.
|
|
1361
|
+
* Aggregate events (v2)
|
|
1362
|
+
* @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
|
|
1363
|
+
*/
|
|
1364
|
+
v2QueryEventsAggregation(v2QueryEventsAggregationRequest, _options) {
|
|
1365
|
+
return this.v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Submit a batch of events for ingestion via the events-service.
|
|
1369
|
+
* Submit a batch of events for ingestion (v2)
|
|
1370
|
+
* @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
1371
|
+
*/
|
|
1372
|
+
v2SendEventsWithHttpInfo(v2SendEventsRequest, _options) {
|
|
1373
|
+
const requestContextPromise = this.requestFactory.v2SendEvents(v2SendEventsRequest, _options);
|
|
1374
|
+
// build promise chain
|
|
1375
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1376
|
+
for (const middleware of this.configuration.middleware) {
|
|
1377
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1378
|
+
}
|
|
1379
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1380
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1381
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1382
|
+
for (const middleware of this.configuration.middleware) {
|
|
1383
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1384
|
+
}
|
|
1385
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2SendEventsWithHttpInfo(rsp)));
|
|
1386
|
+
}));
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Submit a batch of events for ingestion via the events-service.
|
|
1390
|
+
* Submit a batch of events for ingestion (v2)
|
|
1391
|
+
* @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
1392
|
+
*/
|
|
1393
|
+
v2SendEvents(v2SendEventsRequest, _options) {
|
|
1394
|
+
return this.v2SendEventsWithHttpInfo(v2SendEventsRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
|
|
1398
|
+
* Submit a batch of events for testing (v2)
|
|
1399
|
+
* @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
1400
|
+
*/
|
|
1401
|
+
v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest, _options) {
|
|
1402
|
+
const requestContextPromise = this.requestFactory.v2SendEventsDryRun(v2EventsDryRunRequest, _options);
|
|
1403
|
+
// build promise chain
|
|
1404
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1405
|
+
for (const middleware of this.configuration.middleware) {
|
|
1406
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1407
|
+
}
|
|
1408
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1409
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1410
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1411
|
+
for (const middleware of this.configuration.middleware) {
|
|
1412
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1413
|
+
}
|
|
1414
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.v2SendEventsDryRunWithHttpInfo(rsp)));
|
|
1415
|
+
}));
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
|
|
1419
|
+
* Submit a batch of events for testing (v2)
|
|
1420
|
+
* @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
1421
|
+
*/
|
|
1422
|
+
v2SendEventsDryRun(v2EventsDryRunRequest, _options) {
|
|
1423
|
+
return this.v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1424
|
+
}
|
|
676
1425
|
}
|
|
677
1426
|
exports.ObservableEventsApi = ObservableEventsApi;
|
|
678
1427
|
const InvoicesApi_1 = require("../apis/InvoicesApi");
|
|
@@ -712,13 +1461,43 @@ class ObservableInvoicesApi {
|
|
|
712
1461
|
return this.getInvoiceWithHttpInfo(invoiceId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
713
1462
|
}
|
|
714
1463
|
/**
|
|
715
|
-
*
|
|
716
|
-
*
|
|
1464
|
+
* 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.
|
|
1465
|
+
* Get invoice payment status
|
|
1466
|
+
* @param invoiceId
|
|
1467
|
+
*/
|
|
1468
|
+
getInvoicePaymentStatusWithHttpInfo(invoiceId, _options) {
|
|
1469
|
+
const requestContextPromise = this.requestFactory.getInvoicePaymentStatus(invoiceId, _options);
|
|
1470
|
+
// build promise chain
|
|
1471
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1472
|
+
for (const middleware of this.configuration.middleware) {
|
|
1473
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1474
|
+
}
|
|
1475
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1476
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1477
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1478
|
+
for (const middleware of this.configuration.middleware) {
|
|
1479
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1480
|
+
}
|
|
1481
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getInvoicePaymentStatusWithHttpInfo(rsp)));
|
|
1482
|
+
}));
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* 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.
|
|
1486
|
+
* Get invoice payment status
|
|
1487
|
+
* @param invoiceId
|
|
1488
|
+
*/
|
|
1489
|
+
getInvoicePaymentStatus(invoiceId, _options) {
|
|
1490
|
+
return this.getInvoicePaymentStatusWithHttpInfo(invoiceId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
1494
|
+
* List invoices
|
|
717
1495
|
* @param [limit]
|
|
718
1496
|
* @param [cursor]
|
|
1497
|
+
* @param [customerId]
|
|
719
1498
|
*/
|
|
720
|
-
listInvoicesWithHttpInfo(limit, cursor, _options) {
|
|
721
|
-
const requestContextPromise = this.requestFactory.listInvoices(limit, cursor, _options);
|
|
1499
|
+
listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
|
|
1500
|
+
const requestContextPromise = this.requestFactory.listInvoices(limit, cursor, customerId, _options);
|
|
722
1501
|
// build promise chain
|
|
723
1502
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
724
1503
|
for (const middleware of this.configuration.middleware) {
|
|
@@ -734,13 +1513,14 @@ class ObservableInvoicesApi {
|
|
|
734
1513
|
}));
|
|
735
1514
|
}
|
|
736
1515
|
/**
|
|
737
|
-
*
|
|
738
|
-
* List
|
|
1516
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
1517
|
+
* List invoices
|
|
739
1518
|
* @param [limit]
|
|
740
1519
|
* @param [cursor]
|
|
1520
|
+
* @param [customerId]
|
|
741
1521
|
*/
|
|
742
|
-
listInvoices(limit, cursor, _options) {
|
|
743
|
-
return this.listInvoicesWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1522
|
+
listInvoices(limit, cursor, customerId, _options) {
|
|
1523
|
+
return this.listInvoicesWithHttpInfo(limit, cursor, customerId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
744
1524
|
}
|
|
745
1525
|
}
|
|
746
1526
|
exports.ObservableInvoicesApi = ObservableInvoicesApi;
|
|
@@ -1000,6 +1780,104 @@ class ObservableMetersApi {
|
|
|
1000
1780
|
}
|
|
1001
1781
|
}
|
|
1002
1782
|
exports.ObservableMetersApi = ObservableMetersApi;
|
|
1783
|
+
const PlansApi_1 = require("../apis/PlansApi");
|
|
1784
|
+
class ObservablePlansApi {
|
|
1785
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
1786
|
+
this.configuration = configuration;
|
|
1787
|
+
this.requestFactory = requestFactory || new PlansApi_1.PlansApiRequestFactory(configuration);
|
|
1788
|
+
this.responseProcessor = responseProcessor || new PlansApi_1.PlansApiResponseProcessor();
|
|
1789
|
+
}
|
|
1790
|
+
/**
|
|
1791
|
+
* Delete a Plan by id.
|
|
1792
|
+
* Delete Plan
|
|
1793
|
+
* @param planId
|
|
1794
|
+
*/
|
|
1795
|
+
deletePlanWithHttpInfo(planId, _options) {
|
|
1796
|
+
const requestContextPromise = this.requestFactory.deletePlan(planId, _options);
|
|
1797
|
+
// build promise chain
|
|
1798
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1799
|
+
for (const middleware of this.configuration.middleware) {
|
|
1800
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1801
|
+
}
|
|
1802
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1803
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1804
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1805
|
+
for (const middleware of this.configuration.middleware) {
|
|
1806
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1807
|
+
}
|
|
1808
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deletePlanWithHttpInfo(rsp)));
|
|
1809
|
+
}));
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Delete a Plan by id.
|
|
1813
|
+
* Delete Plan
|
|
1814
|
+
* @param planId
|
|
1815
|
+
*/
|
|
1816
|
+
deletePlan(planId, _options) {
|
|
1817
|
+
return this.deletePlanWithHttpInfo(planId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1818
|
+
}
|
|
1819
|
+
/**
|
|
1820
|
+
* Get a Plan by id.
|
|
1821
|
+
* Get Plan
|
|
1822
|
+
* @param planId
|
|
1823
|
+
*/
|
|
1824
|
+
getPlanWithHttpInfo(planId, _options) {
|
|
1825
|
+
const requestContextPromise = this.requestFactory.getPlan(planId, _options);
|
|
1826
|
+
// build promise chain
|
|
1827
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1828
|
+
for (const middleware of this.configuration.middleware) {
|
|
1829
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1830
|
+
}
|
|
1831
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1832
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1833
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1834
|
+
for (const middleware of this.configuration.middleware) {
|
|
1835
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1836
|
+
}
|
|
1837
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPlanWithHttpInfo(rsp)));
|
|
1838
|
+
}));
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Get a Plan by id.
|
|
1842
|
+
* Get Plan
|
|
1843
|
+
* @param planId
|
|
1844
|
+
*/
|
|
1845
|
+
getPlan(planId, _options) {
|
|
1846
|
+
return this.getPlanWithHttpInfo(planId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* Get a list of Plans.
|
|
1850
|
+
* List Plans
|
|
1851
|
+
* @param [limit]
|
|
1852
|
+
* @param [cursor]
|
|
1853
|
+
*/
|
|
1854
|
+
listPlansWithHttpInfo(limit, cursor, _options) {
|
|
1855
|
+
const requestContextPromise = this.requestFactory.listPlans(limit, cursor, _options);
|
|
1856
|
+
// build promise chain
|
|
1857
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1858
|
+
for (const middleware of this.configuration.middleware) {
|
|
1859
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1860
|
+
}
|
|
1861
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1862
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1863
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1864
|
+
for (const middleware of this.configuration.middleware) {
|
|
1865
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1866
|
+
}
|
|
1867
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listPlansWithHttpInfo(rsp)));
|
|
1868
|
+
}));
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Get a list of Plans.
|
|
1872
|
+
* List Plans
|
|
1873
|
+
* @param [limit]
|
|
1874
|
+
* @param [cursor]
|
|
1875
|
+
*/
|
|
1876
|
+
listPlans(limit, cursor, _options) {
|
|
1877
|
+
return this.listPlansWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
exports.ObservablePlansApi = ObservablePlansApi;
|
|
1003
1881
|
const ProductConsumptionsApi_1 = require("../apis/ProductConsumptionsApi");
|
|
1004
1882
|
class ObservableProductConsumptionsApi {
|
|
1005
1883
|
constructor(configuration, requestFactory, responseProcessor) {
|