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,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vayu API
|
|
3
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: dev@withvayu.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare class UpdateCatalogProductRequest {
|
|
13
|
+
/**
|
|
14
|
+
* The name of the catalog product
|
|
15
|
+
*/
|
|
16
|
+
'name'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The description of the catalog product
|
|
19
|
+
*/
|
|
20
|
+
'description'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The external ID of the catalog product
|
|
23
|
+
*/
|
|
24
|
+
'externalId'?: string;
|
|
25
|
+
static readonly discriminator: string | undefined;
|
|
26
|
+
static readonly mapping: {
|
|
27
|
+
[index: string]: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
static readonly attributeTypeMap: Array<{
|
|
30
|
+
name: string;
|
|
31
|
+
baseName: string;
|
|
32
|
+
type: string;
|
|
33
|
+
format: string;
|
|
34
|
+
}>;
|
|
35
|
+
static getAttributeTypeMap(): {
|
|
36
|
+
name: string;
|
|
37
|
+
baseName: string;
|
|
38
|
+
type: string;
|
|
39
|
+
format: string;
|
|
40
|
+
}[];
|
|
41
|
+
constructor();
|
|
42
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vayu API
|
|
4
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
* Contact: dev@withvayu.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.UpdateCatalogProductRequest = void 0;
|
|
15
|
+
class UpdateCatalogProductRequest {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return UpdateCatalogProductRequest.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateCatalogProductRequest = UpdateCatalogProductRequest;
|
|
23
|
+
UpdateCatalogProductRequest.discriminator = undefined;
|
|
24
|
+
UpdateCatalogProductRequest.mapping = undefined;
|
|
25
|
+
UpdateCatalogProductRequest.attributeTypeMap = [
|
|
26
|
+
{
|
|
27
|
+
"name": "name",
|
|
28
|
+
"baseName": "name",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "description",
|
|
34
|
+
"baseName": "description",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "externalId",
|
|
40
|
+
"baseName": "externalId",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
}
|
|
44
|
+
];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vayu API
|
|
3
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: dev@withvayu.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CreateCatalogProductResponseCatalogProduct } from '../models/CreateCatalogProductResponseCatalogProduct';
|
|
13
|
+
export declare class UpdateCatalogProductResponse {
|
|
14
|
+
'catalogProduct': CreateCatalogProductResponseCatalogProduct;
|
|
15
|
+
static readonly discriminator: string | undefined;
|
|
16
|
+
static readonly mapping: {
|
|
17
|
+
[index: string]: string;
|
|
18
|
+
} | undefined;
|
|
19
|
+
static readonly attributeTypeMap: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
format: string;
|
|
24
|
+
}>;
|
|
25
|
+
static getAttributeTypeMap(): {
|
|
26
|
+
name: string;
|
|
27
|
+
baseName: string;
|
|
28
|
+
type: string;
|
|
29
|
+
format: string;
|
|
30
|
+
}[];
|
|
31
|
+
constructor();
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vayu API
|
|
4
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
* Contact: dev@withvayu.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.UpdateCatalogProductResponse = void 0;
|
|
15
|
+
class UpdateCatalogProductResponse {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return UpdateCatalogProductResponse.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateCatalogProductResponse = UpdateCatalogProductResponse;
|
|
23
|
+
UpdateCatalogProductResponse.discriminator = undefined;
|
|
24
|
+
UpdateCatalogProductResponse.mapping = undefined;
|
|
25
|
+
UpdateCatalogProductResponse.attributeTypeMap = [
|
|
26
|
+
{
|
|
27
|
+
"name": "catalogProduct",
|
|
28
|
+
"baseName": "catalogProduct",
|
|
29
|
+
"type": "CreateCatalogProductResponseCatalogProduct",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vayu API
|
|
3
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: dev@withvayu.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CustomFieldEntities } from '../models/CustomFieldEntities';
|
|
13
|
+
import { CustomFieldValueTypes } from '../models/CustomFieldValueTypes';
|
|
14
|
+
import { IntegrationEntityTypes } from '../models/IntegrationEntityTypes';
|
|
15
|
+
export declare class UpdateCustomFieldRequest {
|
|
16
|
+
'vayuEntity'?: CustomFieldEntities;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the custom field in Vayu
|
|
19
|
+
*/
|
|
20
|
+
'vayuCustomFieldName'?: string;
|
|
21
|
+
'valueType'?: CustomFieldValueTypes;
|
|
22
|
+
/**
|
|
23
|
+
* The integration provider (e.g., \"Salesforce\", \"HubSpot\")
|
|
24
|
+
*/
|
|
25
|
+
'integrationSource'?: UpdateCustomFieldRequestIntegrationSourceEnum;
|
|
26
|
+
'integrationEntityType'?: IntegrationEntityTypes;
|
|
27
|
+
/**
|
|
28
|
+
* The path to the field in the integration
|
|
29
|
+
*/
|
|
30
|
+
'fieldPath'?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Allowed values for Enum type fields
|
|
33
|
+
*/
|
|
34
|
+
'allowedValues'?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Default value for Enum type fields. Must be one of allowedValues.
|
|
37
|
+
*/
|
|
38
|
+
'defaultValue'?: string;
|
|
39
|
+
static readonly discriminator: string | undefined;
|
|
40
|
+
static readonly mapping: {
|
|
41
|
+
[index: string]: string;
|
|
42
|
+
} | undefined;
|
|
43
|
+
static readonly attributeTypeMap: Array<{
|
|
44
|
+
name: string;
|
|
45
|
+
baseName: string;
|
|
46
|
+
type: string;
|
|
47
|
+
format: string;
|
|
48
|
+
}>;
|
|
49
|
+
static getAttributeTypeMap(): {
|
|
50
|
+
name: string;
|
|
51
|
+
baseName: string;
|
|
52
|
+
type: string;
|
|
53
|
+
format: string;
|
|
54
|
+
}[];
|
|
55
|
+
constructor();
|
|
56
|
+
}
|
|
57
|
+
export declare enum UpdateCustomFieldRequestIntegrationSourceEnum {
|
|
58
|
+
NetSuite = "NetSuite",
|
|
59
|
+
QuickBooks = "QuickBooks",
|
|
60
|
+
Stripe = "Stripe",
|
|
61
|
+
Salesforce = "Salesforce",
|
|
62
|
+
Hubspot = "Hubspot",
|
|
63
|
+
Vayu = "Vayu",
|
|
64
|
+
Slack = "Slack",
|
|
65
|
+
S3 = "S3",
|
|
66
|
+
Morning = "Morning",
|
|
67
|
+
Snowflake = "Snowflake",
|
|
68
|
+
Anrok = "Anrok",
|
|
69
|
+
Connact = "Connact",
|
|
70
|
+
Xero = "Xero"
|
|
71
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vayu API
|
|
4
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
* Contact: dev@withvayu.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.UpdateCustomFieldRequestIntegrationSourceEnum = exports.UpdateCustomFieldRequest = void 0;
|
|
15
|
+
class UpdateCustomFieldRequest {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return UpdateCustomFieldRequest.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateCustomFieldRequest = UpdateCustomFieldRequest;
|
|
23
|
+
UpdateCustomFieldRequest.discriminator = undefined;
|
|
24
|
+
UpdateCustomFieldRequest.mapping = undefined;
|
|
25
|
+
UpdateCustomFieldRequest.attributeTypeMap = [
|
|
26
|
+
{
|
|
27
|
+
"name": "vayuEntity",
|
|
28
|
+
"baseName": "vayuEntity",
|
|
29
|
+
"type": "CustomFieldEntities",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "vayuCustomFieldName",
|
|
34
|
+
"baseName": "vayuCustomFieldName",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "valueType",
|
|
40
|
+
"baseName": "valueType",
|
|
41
|
+
"type": "CustomFieldValueTypes",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "integrationSource",
|
|
46
|
+
"baseName": "integrationSource",
|
|
47
|
+
"type": "UpdateCustomFieldRequestIntegrationSourceEnum",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "integrationEntityType",
|
|
52
|
+
"baseName": "integrationEntityType",
|
|
53
|
+
"type": "IntegrationEntityTypes",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "fieldPath",
|
|
58
|
+
"baseName": "fieldPath",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "allowedValues",
|
|
64
|
+
"baseName": "allowedValues",
|
|
65
|
+
"type": "Array<string>",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "defaultValue",
|
|
70
|
+
"baseName": "defaultValue",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": ""
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
var UpdateCustomFieldRequestIntegrationSourceEnum;
|
|
76
|
+
(function (UpdateCustomFieldRequestIntegrationSourceEnum) {
|
|
77
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["NetSuite"] = "NetSuite";
|
|
78
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["QuickBooks"] = "QuickBooks";
|
|
79
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Stripe"] = "Stripe";
|
|
80
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Salesforce"] = "Salesforce";
|
|
81
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Hubspot"] = "Hubspot";
|
|
82
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Vayu"] = "Vayu";
|
|
83
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Slack"] = "Slack";
|
|
84
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["S3"] = "S3";
|
|
85
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Morning"] = "Morning";
|
|
86
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Snowflake"] = "Snowflake";
|
|
87
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Anrok"] = "Anrok";
|
|
88
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Connact"] = "Connact";
|
|
89
|
+
UpdateCustomFieldRequestIntegrationSourceEnum["Xero"] = "Xero";
|
|
90
|
+
})(UpdateCustomFieldRequestIntegrationSourceEnum = exports.UpdateCustomFieldRequestIntegrationSourceEnum || (exports.UpdateCustomFieldRequestIntegrationSourceEnum = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vayu API
|
|
3
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: dev@withvayu.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CreateCustomFieldResponseCustomField } from '../models/CreateCustomFieldResponseCustomField';
|
|
13
|
+
export declare class UpdateCustomFieldResponse {
|
|
14
|
+
'customField': CreateCustomFieldResponseCustomField;
|
|
15
|
+
static readonly discriminator: string | undefined;
|
|
16
|
+
static readonly mapping: {
|
|
17
|
+
[index: string]: string;
|
|
18
|
+
} | undefined;
|
|
19
|
+
static readonly attributeTypeMap: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
format: string;
|
|
24
|
+
}>;
|
|
25
|
+
static getAttributeTypeMap(): {
|
|
26
|
+
name: string;
|
|
27
|
+
baseName: string;
|
|
28
|
+
type: string;
|
|
29
|
+
format: string;
|
|
30
|
+
}[];
|
|
31
|
+
constructor();
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vayu API
|
|
4
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
* Contact: dev@withvayu.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.UpdateCustomFieldResponse = void 0;
|
|
15
|
+
class UpdateCustomFieldResponse {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return UpdateCustomFieldResponse.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateCustomFieldResponse = UpdateCustomFieldResponse;
|
|
23
|
+
UpdateCustomFieldResponse.discriminator = undefined;
|
|
24
|
+
UpdateCustomFieldResponse.mapping = undefined;
|
|
25
|
+
UpdateCustomFieldResponse.attributeTypeMap = [
|
|
26
|
+
{
|
|
27
|
+
"name": "customField",
|
|
28
|
+
"baseName": "customField",
|
|
29
|
+
"type": "CreateCustomFieldResponseCustomField",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Address } from '../models/Address';
|
|
13
13
|
import { Contact } from '../models/Contact';
|
|
14
|
+
import { Currency } from '../models/Currency';
|
|
15
|
+
import { CustomField } from '../models/CustomField';
|
|
16
|
+
import { CustomerCloudProviderSettings } from '../models/CustomerCloudProviderSettings';
|
|
17
|
+
import { CustomerSource } from '../models/CustomerSource';
|
|
14
18
|
export declare class UpdateCustomerRequest {
|
|
15
19
|
/**
|
|
16
20
|
* The name of the customer
|
|
@@ -20,15 +24,70 @@ export declare class UpdateCustomerRequest {
|
|
|
20
24
|
* The aliases of the customer used to match events to the customer.
|
|
21
25
|
*/
|
|
22
26
|
'aliases'?: Array<string> | null;
|
|
23
|
-
'address'?: Address;
|
|
24
27
|
/**
|
|
25
28
|
* The contacts of the customer. Contact marked as primary is the target for invoice sharing.
|
|
26
29
|
*/
|
|
27
|
-
'contacts'?: Array<Contact
|
|
30
|
+
'contacts'?: Array<Contact> | null;
|
|
31
|
+
'source'?: CustomerSource | null;
|
|
32
|
+
/**
|
|
33
|
+
* The legal name of the customer
|
|
34
|
+
*/
|
|
35
|
+
'legalName'?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The tax IDs of the customer
|
|
38
|
+
*/
|
|
39
|
+
'taxIds'?: Array<string> | null;
|
|
40
|
+
/**
|
|
41
|
+
* The tax ID of the customer (deprecated, use taxIds instead)
|
|
42
|
+
*/
|
|
43
|
+
'taxId'?: string | null;
|
|
44
|
+
'cloudProviderSettings'?: CustomerCloudProviderSettings | null;
|
|
28
45
|
/**
|
|
29
46
|
* The external ID of the customer
|
|
30
47
|
*/
|
|
31
48
|
'externalId'?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the customer in the ERP system
|
|
51
|
+
*/
|
|
52
|
+
'customerErpId'?: string | null;
|
|
53
|
+
'address'?: Address | null;
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the customer in the Salesforce system
|
|
56
|
+
*/
|
|
57
|
+
'salesForceAccountId'?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The due days of the customer
|
|
60
|
+
*/
|
|
61
|
+
'dueDays'?: UpdateCustomerRequestDueDaysEnum | null;
|
|
62
|
+
'currency'?: Currency | null;
|
|
63
|
+
/**
|
|
64
|
+
* Custom fields from CRM systems (Salesforce, HubSpot, etc.)
|
|
65
|
+
*/
|
|
66
|
+
'customFields'?: Array<CustomField> | null;
|
|
67
|
+
/**
|
|
68
|
+
* The name of the subsidiary of the customer
|
|
69
|
+
*/
|
|
70
|
+
'subsidiary'?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Total outstanding amount across all unpaid invoices (in USD)
|
|
73
|
+
*/
|
|
74
|
+
'totalOutstandingAmount'?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Total amount of invoices with no billing status set (in USD)
|
|
77
|
+
*/
|
|
78
|
+
'openAmount'?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Total amount of overdue invoices (in USD)
|
|
81
|
+
*/
|
|
82
|
+
'overdueAmount'?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Total amount of invoices pending payment (in USD)
|
|
85
|
+
*/
|
|
86
|
+
'pendingPaymentAmount'?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Total amount of paid invoices (in USD)
|
|
89
|
+
*/
|
|
90
|
+
'paidAmount'?: number;
|
|
32
91
|
static readonly discriminator: string | undefined;
|
|
33
92
|
static readonly mapping: {
|
|
34
93
|
[index: string]: string;
|
|
@@ -47,3 +106,12 @@ export declare class UpdateCustomerRequest {
|
|
|
47
106
|
}[];
|
|
48
107
|
constructor();
|
|
49
108
|
}
|
|
109
|
+
export declare enum UpdateCustomerRequestDueDaysEnum {
|
|
110
|
+
EndOfMonth = "END_OF_MONTH",
|
|
111
|
+
SameDay = "SAME_DAY",
|
|
112
|
+
_15Days = "15_DAYS",
|
|
113
|
+
_30Days = "30_DAYS",
|
|
114
|
+
_45Days = "45_DAYS",
|
|
115
|
+
_60Days = "60_DAYS",
|
|
116
|
+
_90Days = "90_DAYS"
|
|
117
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.UpdateCustomerRequest = void 0;
|
|
14
|
+
exports.UpdateCustomerRequestDueDaysEnum = exports.UpdateCustomerRequest = void 0;
|
|
15
15
|
class UpdateCustomerRequest {
|
|
16
16
|
static getAttributeTypeMap() {
|
|
17
17
|
return UpdateCustomerRequest.attributeTypeMap;
|
|
@@ -35,6 +35,54 @@ UpdateCustomerRequest.attributeTypeMap = [
|
|
|
35
35
|
"type": "Array<string>",
|
|
36
36
|
"format": ""
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
"name": "contacts",
|
|
40
|
+
"baseName": "contacts",
|
|
41
|
+
"type": "Array<Contact>",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "source",
|
|
46
|
+
"baseName": "source",
|
|
47
|
+
"type": "CustomerSource",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "legalName",
|
|
52
|
+
"baseName": "legalName",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "taxIds",
|
|
58
|
+
"baseName": "taxIds",
|
|
59
|
+
"type": "Array<string>",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "taxId",
|
|
64
|
+
"baseName": "taxId",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "cloudProviderSettings",
|
|
70
|
+
"baseName": "cloudProviderSettings",
|
|
71
|
+
"type": "CustomerCloudProviderSettings",
|
|
72
|
+
"format": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "externalId",
|
|
76
|
+
"baseName": "externalId",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "customerErpId",
|
|
82
|
+
"baseName": "customerErpId",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": ""
|
|
85
|
+
},
|
|
38
86
|
{
|
|
39
87
|
"name": "address",
|
|
40
88
|
"baseName": "address",
|
|
@@ -42,15 +90,73 @@ UpdateCustomerRequest.attributeTypeMap = [
|
|
|
42
90
|
"format": ""
|
|
43
91
|
},
|
|
44
92
|
{
|
|
45
|
-
"name": "
|
|
46
|
-
"baseName": "
|
|
47
|
-
"type": "
|
|
93
|
+
"name": "salesForceAccountId",
|
|
94
|
+
"baseName": "salesForceAccountId",
|
|
95
|
+
"type": "string",
|
|
48
96
|
"format": ""
|
|
49
97
|
},
|
|
50
98
|
{
|
|
51
|
-
"name": "
|
|
52
|
-
"baseName": "
|
|
99
|
+
"name": "dueDays",
|
|
100
|
+
"baseName": "dueDays",
|
|
101
|
+
"type": "UpdateCustomerRequestDueDaysEnum",
|
|
102
|
+
"format": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "currency",
|
|
106
|
+
"baseName": "currency",
|
|
107
|
+
"type": "Currency",
|
|
108
|
+
"format": ""
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "customFields",
|
|
112
|
+
"baseName": "customFields",
|
|
113
|
+
"type": "Array<CustomField>",
|
|
114
|
+
"format": ""
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "subsidiary",
|
|
118
|
+
"baseName": "subsidiary",
|
|
53
119
|
"type": "string",
|
|
54
120
|
"format": ""
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "totalOutstandingAmount",
|
|
124
|
+
"baseName": "totalOutstandingAmount",
|
|
125
|
+
"type": "number",
|
|
126
|
+
"format": ""
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "openAmount",
|
|
130
|
+
"baseName": "openAmount",
|
|
131
|
+
"type": "number",
|
|
132
|
+
"format": ""
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "overdueAmount",
|
|
136
|
+
"baseName": "overdueAmount",
|
|
137
|
+
"type": "number",
|
|
138
|
+
"format": ""
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "pendingPaymentAmount",
|
|
142
|
+
"baseName": "pendingPaymentAmount",
|
|
143
|
+
"type": "number",
|
|
144
|
+
"format": ""
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "paidAmount",
|
|
148
|
+
"baseName": "paidAmount",
|
|
149
|
+
"type": "number",
|
|
150
|
+
"format": ""
|
|
55
151
|
}
|
|
56
152
|
];
|
|
153
|
+
var UpdateCustomerRequestDueDaysEnum;
|
|
154
|
+
(function (UpdateCustomerRequestDueDaysEnum) {
|
|
155
|
+
UpdateCustomerRequestDueDaysEnum["EndOfMonth"] = "END_OF_MONTH";
|
|
156
|
+
UpdateCustomerRequestDueDaysEnum["SameDay"] = "SAME_DAY";
|
|
157
|
+
UpdateCustomerRequestDueDaysEnum["_15Days"] = "15_DAYS";
|
|
158
|
+
UpdateCustomerRequestDueDaysEnum["_30Days"] = "30_DAYS";
|
|
159
|
+
UpdateCustomerRequestDueDaysEnum["_45Days"] = "45_DAYS";
|
|
160
|
+
UpdateCustomerRequestDueDaysEnum["_60Days"] = "60_DAYS";
|
|
161
|
+
UpdateCustomerRequestDueDaysEnum["_90Days"] = "90_DAYS";
|
|
162
|
+
})(UpdateCustomerRequestDueDaysEnum = exports.UpdateCustomerRequestDueDaysEnum || (exports.UpdateCustomerRequestDueDaysEnum = {}));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vayu API
|
|
3
|
+
* The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: dev@withvayu.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The time window for which the usage was submitted
|
|
14
|
+
*/
|
|
15
|
+
export declare class UsageWindow {
|
|
16
|
+
/**
|
|
17
|
+
* The start timestamp of the usage window in ISO 8601 format
|
|
18
|
+
*/
|
|
19
|
+
'start': Date;
|
|
20
|
+
/**
|
|
21
|
+
* The end timestamp of the usage window in ISO 8601 format
|
|
22
|
+
*/
|
|
23
|
+
'end': Date;
|
|
24
|
+
static readonly discriminator: string | undefined;
|
|
25
|
+
static readonly mapping: {
|
|
26
|
+
[index: string]: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
static readonly attributeTypeMap: Array<{
|
|
29
|
+
name: string;
|
|
30
|
+
baseName: string;
|
|
31
|
+
type: string;
|
|
32
|
+
format: string;
|
|
33
|
+
}>;
|
|
34
|
+
static getAttributeTypeMap(): {
|
|
35
|
+
name: string;
|
|
36
|
+
baseName: string;
|
|
37
|
+
type: string;
|
|
38
|
+
format: string;
|
|
39
|
+
}[];
|
|
40
|
+
constructor();
|
|
41
|
+
}
|