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
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudUsageSubmissionApiResponseProcessor = exports.CloudUsageSubmissionApiRequestFactory = void 0;
|
|
4
|
+
// TODO: better import syntax?
|
|
5
|
+
const baseapi_1 = require("./baseapi");
|
|
6
|
+
const http_1 = require("../http/http");
|
|
7
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
8
|
+
const exception_1 = require("./exception");
|
|
9
|
+
const util_1 = require("../util");
|
|
10
|
+
/**
|
|
11
|
+
* no description
|
|
12
|
+
*/
|
|
13
|
+
class CloudUsageSubmissionApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
14
|
+
/**
|
|
15
|
+
* Submit cloud usage data
|
|
16
|
+
* Submit cloud usage
|
|
17
|
+
* @param submitCloudUsageRequest
|
|
18
|
+
*/
|
|
19
|
+
async submitCloudUsage(submitCloudUsageRequest, _options) {
|
|
20
|
+
let _config = _options || this.configuration;
|
|
21
|
+
// verify required parameter 'submitCloudUsageRequest' is not null or undefined
|
|
22
|
+
if (submitCloudUsageRequest === null || submitCloudUsageRequest === undefined) {
|
|
23
|
+
throw new baseapi_1.RequiredError("CloudUsageSubmissionApi", "submitCloudUsage", "submitCloudUsageRequest");
|
|
24
|
+
}
|
|
25
|
+
// Path Params
|
|
26
|
+
const localVarPath = '/cloudUsageSubmission';
|
|
27
|
+
// Make Request Context
|
|
28
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
29
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
30
|
+
// Body Params
|
|
31
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
32
|
+
"application/json"
|
|
33
|
+
]);
|
|
34
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
35
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(submitCloudUsageRequest, "SubmitCloudUsageRequest", ""), contentType);
|
|
36
|
+
requestContext.setBody(serializedBody);
|
|
37
|
+
let authMethod;
|
|
38
|
+
// Apply auth methods
|
|
39
|
+
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
40
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
41
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
42
|
+
}
|
|
43
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
44
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
45
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
46
|
+
}
|
|
47
|
+
return requestContext;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.CloudUsageSubmissionApiRequestFactory = CloudUsageSubmissionApiRequestFactory;
|
|
51
|
+
class CloudUsageSubmissionApiResponseProcessor {
|
|
52
|
+
/**
|
|
53
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
54
|
+
* to the expected objects
|
|
55
|
+
*
|
|
56
|
+
* @params response Response returned by the server for a request to submitCloudUsage
|
|
57
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
58
|
+
*/
|
|
59
|
+
async submitCloudUsageWithHttpInfo(response) {
|
|
60
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
61
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
62
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "any", "");
|
|
63
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
64
|
+
}
|
|
65
|
+
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
66
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
67
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
68
|
+
}
|
|
69
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
70
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
71
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
72
|
+
}
|
|
73
|
+
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
74
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
75
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
76
|
+
}
|
|
77
|
+
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
78
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
79
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
80
|
+
}
|
|
81
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
82
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
83
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "any", "");
|
|
84
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
85
|
+
}
|
|
86
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.CloudUsageSubmissionApiResponseProcessor = CloudUsageSubmissionApiResponseProcessor;
|
|
@@ -4,7 +4,9 @@ import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
|
|
|
4
4
|
import { CreateContractRequest } from '../models/CreateContractRequest';
|
|
5
5
|
import { CreateContractResponse } from '../models/CreateContractResponse';
|
|
6
6
|
import { DeleteContractResponse } from '../models/DeleteContractResponse';
|
|
7
|
+
import { GetContractByIntegrationIdResponse } from '../models/GetContractByIntegrationIdResponse';
|
|
7
8
|
import { GetContractResponse } from '../models/GetContractResponse';
|
|
9
|
+
import { IntegrationType } from '../models/IntegrationType';
|
|
8
10
|
import { ListContractsResponse } from '../models/ListContractsResponse';
|
|
9
11
|
/**
|
|
10
12
|
* no description
|
|
@@ -29,12 +31,20 @@ export declare class ContractsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
29
31
|
*/
|
|
30
32
|
getContract(contractId: string, _options?: Configuration): Promise<RequestContext>;
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
35
|
+
* Get contract by integration id
|
|
36
|
+
* @param integrationType
|
|
37
|
+
* @param integrationId
|
|
38
|
+
*/
|
|
39
|
+
getContractByIntegrationId(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Promise<RequestContext>;
|
|
40
|
+
/**
|
|
41
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
42
|
+
* List contracts
|
|
34
43
|
* @param limit
|
|
35
44
|
* @param cursor
|
|
45
|
+
* @param customerId
|
|
36
46
|
*/
|
|
37
|
-
listContracts(limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
|
|
47
|
+
listContracts(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<RequestContext>;
|
|
38
48
|
}
|
|
39
49
|
export declare class ContractsApiResponseProcessor {
|
|
40
50
|
/**
|
|
@@ -61,6 +71,14 @@ export declare class ContractsApiResponseProcessor {
|
|
|
61
71
|
* @throws ApiException if the response code was not in [200, 299]
|
|
62
72
|
*/
|
|
63
73
|
getContractWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetContractResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
76
|
+
* to the expected objects
|
|
77
|
+
*
|
|
78
|
+
* @params response Response returned by the server for a request to getContractByIntegrationId
|
|
79
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
80
|
+
*/
|
|
81
|
+
getContractByIntegrationIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetContractByIntegrationIdResponse>>;
|
|
64
82
|
/**
|
|
65
83
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
66
84
|
* to the expected objects
|
|
@@ -105,12 +105,48 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
105
105
|
return requestContext;
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
109
|
+
* Get contract by integration id
|
|
110
|
+
* @param integrationType
|
|
111
|
+
* @param integrationId
|
|
112
|
+
*/
|
|
113
|
+
async getContractByIntegrationId(integrationType, integrationId, _options) {
|
|
114
|
+
let _config = _options || this.configuration;
|
|
115
|
+
// verify required parameter 'integrationType' is not null or undefined
|
|
116
|
+
if (integrationType === null || integrationType === undefined) {
|
|
117
|
+
throw new baseapi_1.RequiredError("ContractsApi", "getContractByIntegrationId", "integrationType");
|
|
118
|
+
}
|
|
119
|
+
// verify required parameter 'integrationId' is not null or undefined
|
|
120
|
+
if (integrationId === null || integrationId === undefined) {
|
|
121
|
+
throw new baseapi_1.RequiredError("ContractsApi", "getContractByIntegrationId", "integrationId");
|
|
122
|
+
}
|
|
123
|
+
// Path Params
|
|
124
|
+
const localVarPath = '/contracts/integration/{integrationType}/{integrationId}'
|
|
125
|
+
.replace('{' + 'integrationType' + '}', encodeURIComponent(String(integrationType)))
|
|
126
|
+
.replace('{' + 'integrationId' + '}', encodeURIComponent(String(integrationId)));
|
|
127
|
+
// Make Request Context
|
|
128
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
129
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
130
|
+
let authMethod;
|
|
131
|
+
// Apply auth methods
|
|
132
|
+
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
133
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
134
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
135
|
+
}
|
|
136
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
137
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
138
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
139
|
+
}
|
|
140
|
+
return requestContext;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
144
|
+
* List contracts
|
|
110
145
|
* @param limit
|
|
111
146
|
* @param cursor
|
|
147
|
+
* @param customerId
|
|
112
148
|
*/
|
|
113
|
-
async listContracts(limit, cursor, _options) {
|
|
149
|
+
async listContracts(limit, cursor, customerId, _options) {
|
|
114
150
|
let _config = _options || this.configuration;
|
|
115
151
|
// Path Params
|
|
116
152
|
const localVarPath = '/contracts';
|
|
@@ -125,6 +161,10 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
125
161
|
if (cursor !== undefined) {
|
|
126
162
|
requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
|
|
127
163
|
}
|
|
164
|
+
// Query Params
|
|
165
|
+
if (customerId !== undefined) {
|
|
166
|
+
requestContext.setQueryParam("customerId", ObjectSerializer_1.ObjectSerializer.serialize(customerId, "string", ""));
|
|
167
|
+
}
|
|
128
168
|
let authMethod;
|
|
129
169
|
// Apply auth methods
|
|
130
170
|
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
@@ -154,16 +194,20 @@ class ContractsApiResponseProcessor {
|
|
|
154
194
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
155
195
|
}
|
|
156
196
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
157
|
-
|
|
197
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
198
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
158
199
|
}
|
|
159
200
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
160
|
-
|
|
201
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
202
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
161
203
|
}
|
|
162
204
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
163
|
-
|
|
205
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
206
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
164
207
|
}
|
|
165
208
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
166
|
-
|
|
209
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
210
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
167
211
|
}
|
|
168
212
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
169
213
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -186,19 +230,24 @@ class ContractsApiResponseProcessor {
|
|
|
186
230
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
187
231
|
}
|
|
188
232
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
189
|
-
|
|
233
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
234
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
190
235
|
}
|
|
191
236
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
192
|
-
|
|
237
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
238
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
193
239
|
}
|
|
194
240
|
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
195
|
-
|
|
241
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
|
|
242
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
196
243
|
}
|
|
197
244
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
198
|
-
|
|
245
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
246
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
199
247
|
}
|
|
200
248
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
201
|
-
|
|
249
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
250
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
202
251
|
}
|
|
203
252
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
204
253
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -221,19 +270,24 @@ class ContractsApiResponseProcessor {
|
|
|
221
270
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
222
271
|
}
|
|
223
272
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
224
|
-
|
|
273
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
274
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
225
275
|
}
|
|
226
276
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
227
|
-
|
|
277
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
278
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
228
279
|
}
|
|
229
280
|
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
230
|
-
|
|
281
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
|
|
282
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
231
283
|
}
|
|
232
284
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
233
|
-
|
|
285
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
286
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
234
287
|
}
|
|
235
288
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
236
|
-
|
|
289
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
290
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
237
291
|
}
|
|
238
292
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
239
293
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -242,6 +296,46 @@ class ContractsApiResponseProcessor {
|
|
|
242
296
|
}
|
|
243
297
|
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
244
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
301
|
+
* to the expected objects
|
|
302
|
+
*
|
|
303
|
+
* @params response Response returned by the server for a request to getContractByIntegrationId
|
|
304
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
305
|
+
*/
|
|
306
|
+
async getContractByIntegrationIdWithHttpInfo(response) {
|
|
307
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
308
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
309
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetContractByIntegrationIdResponse", "");
|
|
310
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
311
|
+
}
|
|
312
|
+
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
313
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
314
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
315
|
+
}
|
|
316
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
317
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
318
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
319
|
+
}
|
|
320
|
+
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
321
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
|
|
322
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
323
|
+
}
|
|
324
|
+
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
325
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
326
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
327
|
+
}
|
|
328
|
+
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
329
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
330
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
331
|
+
}
|
|
332
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
333
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
334
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetContractByIntegrationIdResponse", "");
|
|
335
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
336
|
+
}
|
|
337
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
338
|
+
}
|
|
245
339
|
/**
|
|
246
340
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
247
341
|
* to the expected objects
|
|
@@ -256,16 +350,20 @@ class ContractsApiResponseProcessor {
|
|
|
256
350
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
257
351
|
}
|
|
258
352
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
259
|
-
|
|
353
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
354
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
260
355
|
}
|
|
261
356
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
262
|
-
|
|
357
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
358
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
263
359
|
}
|
|
264
360
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
265
|
-
|
|
361
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
362
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
266
363
|
}
|
|
267
364
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
268
|
-
|
|
365
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
366
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
269
367
|
}
|
|
270
368
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
271
369
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -139,16 +139,20 @@ class CreditsApiResponseProcessor {
|
|
|
139
139
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined);
|
|
140
140
|
}
|
|
141
141
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
142
|
-
|
|
142
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
143
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
143
144
|
}
|
|
144
145
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
145
|
-
|
|
146
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
147
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
146
148
|
}
|
|
147
149
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
148
|
-
|
|
150
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
151
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
149
152
|
}
|
|
150
153
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
151
|
-
|
|
154
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
155
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
152
156
|
}
|
|
153
157
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
154
158
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -170,16 +174,20 @@ class CreditsApiResponseProcessor {
|
|
|
170
174
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined);
|
|
171
175
|
}
|
|
172
176
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
173
|
-
|
|
177
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
178
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
174
179
|
}
|
|
175
180
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
176
|
-
|
|
181
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
182
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
177
183
|
}
|
|
178
184
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
179
|
-
|
|
185
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
186
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
180
187
|
}
|
|
181
188
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
182
|
-
|
|
189
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
190
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
183
191
|
}
|
|
184
192
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
185
193
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -202,16 +210,20 @@ class CreditsApiResponseProcessor {
|
|
|
202
210
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
203
211
|
}
|
|
204
212
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
205
|
-
|
|
213
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
|
|
214
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
|
|
206
215
|
}
|
|
207
216
|
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
208
|
-
|
|
217
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
|
|
218
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
|
|
209
219
|
}
|
|
210
220
|
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
211
|
-
|
|
221
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
|
|
222
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
|
|
212
223
|
}
|
|
213
224
|
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
214
|
-
|
|
225
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
|
|
226
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
215
227
|
}
|
|
216
228
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
217
229
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
|
|
4
|
+
import { CreateCustomFieldRequest } from '../models/CreateCustomFieldRequest';
|
|
5
|
+
import { CreateCustomFieldResponse } from '../models/CreateCustomFieldResponse';
|
|
6
|
+
import { DeleteCustomFieldResponse } from '../models/DeleteCustomFieldResponse';
|
|
7
|
+
import { GetCustomFieldResponse } from '../models/GetCustomFieldResponse';
|
|
8
|
+
import { ListCustomFieldsResponse } from '../models/ListCustomFieldsResponse';
|
|
9
|
+
import { UpdateCustomFieldRequest } from '../models/UpdateCustomFieldRequest';
|
|
10
|
+
import { UpdateCustomFieldResponse } from '../models/UpdateCustomFieldResponse';
|
|
11
|
+
/**
|
|
12
|
+
* no description
|
|
13
|
+
*/
|
|
14
|
+
export declare class CustomFieldsApiRequestFactory extends BaseAPIRequestFactory {
|
|
15
|
+
/**
|
|
16
|
+
* Create a new Custom field.
|
|
17
|
+
* Create Custom field
|
|
18
|
+
* @param createCustomFieldRequest
|
|
19
|
+
*/
|
|
20
|
+
createCustomField(createCustomFieldRequest: CreateCustomFieldRequest, _options?: Configuration): Promise<RequestContext>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete a Custom field by id.
|
|
23
|
+
* Delete Custom field
|
|
24
|
+
* @param customFieldId
|
|
25
|
+
*/
|
|
26
|
+
deleteCustomField(customFieldId: string, _options?: Configuration): Promise<RequestContext>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a Custom field by id.
|
|
29
|
+
* Get Custom field
|
|
30
|
+
* @param customFieldId
|
|
31
|
+
*/
|
|
32
|
+
getCustomField(customFieldId: string, _options?: Configuration): Promise<RequestContext>;
|
|
33
|
+
/**
|
|
34
|
+
* Get a list of Custom fields.
|
|
35
|
+
* List Custom fields
|
|
36
|
+
* @param limit
|
|
37
|
+
* @param cursor
|
|
38
|
+
*/
|
|
39
|
+
listCustomFields(limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a Custom field by id.
|
|
42
|
+
* Update Custom field
|
|
43
|
+
* @param updateCustomFieldRequest
|
|
44
|
+
* @param customFieldId
|
|
45
|
+
*/
|
|
46
|
+
updateCustomField(updateCustomFieldRequest: UpdateCustomFieldRequest, customFieldId: string, _options?: Configuration): Promise<RequestContext>;
|
|
47
|
+
}
|
|
48
|
+
export declare class CustomFieldsApiResponseProcessor {
|
|
49
|
+
/**
|
|
50
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
51
|
+
* to the expected objects
|
|
52
|
+
*
|
|
53
|
+
* @params response Response returned by the server for a request to createCustomField
|
|
54
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
55
|
+
*/
|
|
56
|
+
createCustomFieldWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CreateCustomFieldResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
59
|
+
* to the expected objects
|
|
60
|
+
*
|
|
61
|
+
* @params response Response returned by the server for a request to deleteCustomField
|
|
62
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
63
|
+
*/
|
|
64
|
+
deleteCustomFieldWithHttpInfo(response: ResponseContext): Promise<HttpInfo<DeleteCustomFieldResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
67
|
+
* to the expected objects
|
|
68
|
+
*
|
|
69
|
+
* @params response Response returned by the server for a request to getCustomField
|
|
70
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
71
|
+
*/
|
|
72
|
+
getCustomFieldWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetCustomFieldResponse>>;
|
|
73
|
+
/**
|
|
74
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
75
|
+
* to the expected objects
|
|
76
|
+
*
|
|
77
|
+
* @params response Response returned by the server for a request to listCustomFields
|
|
78
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
79
|
+
*/
|
|
80
|
+
listCustomFieldsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ListCustomFieldsResponse>>;
|
|
81
|
+
/**
|
|
82
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
83
|
+
* to the expected objects
|
|
84
|
+
*
|
|
85
|
+
* @params response Response returned by the server for a request to updateCustomField
|
|
86
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
87
|
+
*/
|
|
88
|
+
updateCustomFieldWithHttpInfo(response: ResponseContext): Promise<HttpInfo<UpdateCustomFieldResponse>>;
|
|
89
|
+
}
|