vayu-ts 0.1.3 → 0.2.1
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/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/openapi/apis/AuthApi.d.ts +26 -0
- package/dist/openapi/apis/AuthApi.js +93 -0
- package/dist/openapi/apis/ContractsApi.d.ts +72 -0
- package/dist/openapi/apis/ContractsApi.js +307 -0
- package/dist/openapi/apis/CreditsApi.d.ts +57 -0
- package/dist/openapi/apis/CreditsApi.js +248 -0
- package/dist/openapi/apis/CustomersApi.d.ts +103 -0
- package/dist/openapi/apis/CustomersApi.js +457 -0
- package/dist/openapi/apis/EventsApi.d.ts +91 -0
- package/dist/openapi/apis/EventsApi.js +408 -0
- package/dist/openapi/apis/IntegrationsApi.d.ts +41 -0
- package/dist/openapi/apis/IntegrationsApi.js +170 -0
- package/dist/openapi/apis/InvoicesApi.d.ts +41 -0
- package/dist/openapi/apis/InvoicesApi.js +166 -0
- package/dist/openapi/apis/MetersApi.d.ts +73 -0
- package/dist/openapi/apis/MetersApi.js +316 -0
- package/dist/openapi/apis/PlansApi.d.ts +56 -0
- package/dist/openapi/apis/PlansApi.js +235 -0
- package/dist/openapi/apis/ReportsApi.d.ts +41 -0
- package/dist/openapi/apis/ReportsApi.js +166 -0
- package/dist/openapi/apis/WebhooksApi.d.ts +25 -0
- package/dist/openapi/apis/WebhooksApi.js +101 -0
- package/dist/openapi/apis/baseapi.d.ts +33 -0
- package/dist/openapi/apis/baseapi.js +41 -0
- package/dist/openapi/apis/exception.d.ts +19 -0
- package/dist/openapi/apis/exception.js +22 -0
- package/dist/openapi/auth/auth.d.ts +54 -0
- package/dist/openapi/auth/auth.js +50 -0
- package/dist/openapi/configuration.d.ts +63 -0
- package/dist/openapi/configuration.js +34 -0
- package/dist/openapi/http/http.d.ts +142 -0
- package/dist/openapi/http/http.js +229 -0
- package/dist/openapi/http/isomorphic-fetch.d.ts +5 -0
- package/dist/openapi/http/isomorphic-fetch.js +33 -0
- package/dist/openapi/index.d.ts +10 -0
- package/dist/openapi/index.js +38 -0
- package/dist/openapi/middleware.d.ts +54 -0
- package/dist/openapi/middleware.js +16 -0
- package/dist/openapi/models/Address.d.ts +35 -0
- package/dist/openapi/models/Address.js +58 -0
- package/dist/openapi/models/AggregationMethod.d.ts +40 -0
- package/dist/openapi/models/AggregationMethod.js +46 -0
- package/dist/openapi/models/AggregationOperator.d.ts +24 -0
- package/dist/openapi/models/AggregationOperator.js +28 -0
- package/dist/openapi/models/BillingCycleStatus.d.ts +15 -0
- package/dist/openapi/models/BillingCycleStatus.js +19 -0
- package/dist/openapi/models/BillingInterval.d.ts +18 -0
- package/dist/openapi/models/BillingInterval.js +22 -0
- package/dist/openapi/models/Condition.d.ts +29 -0
- package/dist/openapi/models/Condition.js +31 -0
- package/dist/openapi/models/Contact.d.ts +30 -0
- package/dist/openapi/models/Contact.js +43 -0
- package/dist/openapi/models/ContractStatus.d.ts +18 -0
- package/dist/openapi/models/ContractStatus.js +22 -0
- package/dist/openapi/models/CreateContractRequest.d.ts +43 -0
- package/dist/openapi/models/CreateContractRequest.js +49 -0
- package/dist/openapi/models/CreateContractResponse.d.ts +29 -0
- package/dist/openapi/models/CreateContractResponse.js +31 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +46 -0
- package/dist/openapi/models/CreateCustomerRequest.js +55 -0
- package/dist/openapi/models/CreateCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/CreateCustomerResponse.js +31 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +49 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +73 -0
- package/dist/openapi/models/CreditLedgerEntry.d.ts +32 -0
- package/dist/openapi/models/CreditLedgerEntry.js +49 -0
- package/dist/openapi/models/Criterion.d.ts +31 -0
- package/dist/openapi/models/Criterion.js +43 -0
- package/dist/openapi/models/CriterionOperator.d.ts +23 -0
- package/dist/openapi/models/CriterionOperator.js +27 -0
- package/dist/openapi/models/Currency.d.ts +17 -0
- package/dist/openapi/models/Currency.js +21 -0
- package/dist/openapi/models/DeductCreditsRequest.d.ts +35 -0
- package/dist/openapi/models/DeductCreditsRequest.js +37 -0
- package/dist/openapi/models/DeleteContractResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteContractResponse.js +31 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -0
- package/dist/openapi/models/DeleteContractResponseContract.js +73 -0
- package/dist/openapi/models/DeleteCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteCustomerResponse.js +31 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +79 -0
- package/dist/openapi/models/DeleteEventResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteEventResponse.js +31 -0
- package/dist/openapi/models/DeleteEventResponseEvent.d.ts +56 -0
- package/dist/openapi/models/DeleteEventResponseEvent.js +82 -0
- package/dist/openapi/models/DeleteMeterResponse.d.ts +29 -0
- package/dist/openapi/models/DeleteMeterResponse.js +31 -0
- package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +43 -0
- package/dist/openapi/models/DeleteMeterResponseMeter.js +73 -0
- package/dist/openapi/models/DeletePlanResponse.d.ts +29 -0
- package/dist/openapi/models/DeletePlanResponse.js +31 -0
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +39 -0
- package/dist/openapi/models/DeletePlanResponsePlan.js +67 -0
- package/dist/openapi/models/Event.d.ts +49 -0
- package/dist/openapi/models/Event.js +55 -0
- package/dist/openapi/models/EventsDryRunRequest.d.ts +29 -0
- package/dist/openapi/models/EventsDryRunRequest.js +31 -0
- package/dist/openapi/models/EventsDryRunResponse.d.ts +29 -0
- package/dist/openapi/models/EventsDryRunResponse.js +31 -0
- package/dist/openapi/models/EventsDryRunResponseObject.d.ts +32 -0
- package/dist/openapi/models/EventsDryRunResponseObject.js +43 -0
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +35 -0
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +61 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +41 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +61 -0
- package/dist/openapi/models/Filter.d.ts +32 -0
- package/dist/openapi/models/Filter.js +34 -0
- package/dist/openapi/models/FullDayPeriod.d.ts +32 -0
- package/dist/openapi/models/FullDayPeriod.js +40 -0
- package/dist/openapi/models/GetCommitmentReportResponse.d.ts +44 -0
- package/dist/openapi/models/GetCommitmentReportResponse.js +115 -0
- package/dist/openapi/models/GetContractResponse.d.ts +29 -0
- package/dist/openapi/models/GetContractResponse.js +31 -0
- package/dist/openapi/models/GetContractResponseContract.d.ts +46 -0
- package/dist/openapi/models/GetContractResponseContract.js +67 -0
- package/dist/openapi/models/GetCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/GetCustomerResponse.js +31 -0
- package/dist/openapi/models/GetEventResponse.d.ts +29 -0
- package/dist/openapi/models/GetEventResponse.js +31 -0
- package/dist/openapi/models/GetEventResponseEvent.d.ts +55 -0
- package/dist/openapi/models/GetEventResponseEvent.js +76 -0
- package/dist/openapi/models/GetInvoiceResponse.d.ts +29 -0
- package/dist/openapi/models/GetInvoiceResponse.js +31 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +50 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.js +79 -0
- package/dist/openapi/models/GetMeterResponse.d.ts +29 -0
- package/dist/openapi/models/GetMeterResponse.js +31 -0
- package/dist/openapi/models/GetMeterResponseMeter.d.ts +42 -0
- package/dist/openapi/models/GetMeterResponseMeter.js +67 -0
- package/dist/openapi/models/GetPlanResponse.d.ts +29 -0
- package/dist/openapi/models/GetPlanResponse.js +31 -0
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +38 -0
- package/dist/openapi/models/GetPlanResponsePlan.js +61 -0
- package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +44 -0
- package/dist/openapi/models/GetProductsUsageReportResponse.js +115 -0
- package/dist/openapi/models/GrantCreditsRequest.d.ts +35 -0
- package/dist/openapi/models/GrantCreditsRequest.js +37 -0
- package/dist/openapi/models/InvalidEvent.d.ts +33 -0
- package/dist/openapi/models/InvalidEvent.js +37 -0
- package/dist/openapi/models/LineItem.d.ts +33 -0
- package/dist/openapi/models/LineItem.js +37 -0
- package/dist/openapi/models/LineItemRevenueBreakdown.d.ts +36 -0
- package/dist/openapi/models/LineItemRevenueBreakdown.js +64 -0
- package/dist/openapi/models/ListContractsResponse.d.ts +32 -0
- package/dist/openapi/models/ListContractsResponse.js +49 -0
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +32 -0
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +31 -0
- package/dist/openapi/models/ListCustomersResponse.d.ts +32 -0
- package/dist/openapi/models/ListCustomersResponse.js +49 -0
- package/dist/openapi/models/ListInvoicesResponse.d.ts +32 -0
- package/dist/openapi/models/ListInvoicesResponse.js +49 -0
- package/dist/openapi/models/ListMetersResponse.d.ts +32 -0
- package/dist/openapi/models/ListMetersResponse.js +49 -0
- package/dist/openapi/models/ListPlansResponse.d.ts +32 -0
- package/dist/openapi/models/ListPlansResponse.js +49 -0
- package/dist/openapi/models/LoginRequest.d.ts +31 -0
- package/dist/openapi/models/LoginRequest.js +31 -0
- package/dist/openapi/models/LoginResponse.d.ts +31 -0
- package/dist/openapi/models/LoginResponse.js +31 -0
- package/dist/openapi/models/Meter.d.ts +39 -0
- package/dist/openapi/models/Meter.js +49 -0
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +30 -0
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +43 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +34 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +47 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +39 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +85 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +28 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +31 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +29 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +31 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +33 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +55 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +29 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +37 -0
- package/dist/openapi/models/NotificationEventType.d.ts +17 -0
- package/dist/openapi/models/NotificationEventType.js +21 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +109 -0
- package/dist/openapi/models/ObjectSerializer.js +497 -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 +37 -0
- package/dist/openapi/models/PlanBillingData.js +58 -0
- package/dist/openapi/models/PlanStatus.d.ts +19 -0
- package/dist/openapi/models/PlanStatus.js +23 -0
- package/dist/openapi/models/QueryEventsResponse.d.ts +32 -0
- package/dist/openapi/models/QueryEventsResponse.js +31 -0
- package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +52 -0
- package/dist/openapi/models/QueryEventsResponseEventsInner.js +73 -0
- package/dist/openapi/models/SendEventsRequest.d.ts +29 -0
- package/dist/openapi/models/SendEventsRequest.js +31 -0
- package/dist/openapi/models/SendEventsResponse.d.ts +37 -0
- package/dist/openapi/models/SendEventsResponse.js +37 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +46 -0
- package/dist/openapi/models/UpdateCustomerRequest.js +55 -0
- package/dist/openapi/models/UpdateCustomerResponse.d.ts +29 -0
- package/dist/openapi/models/UpdateCustomerResponse.js +31 -0
- package/dist/openapi/models/UpdateMeterRequest.d.ts +39 -0
- package/dist/openapi/models/UpdateMeterRequest.js +49 -0
- package/dist/openapi/models/UpdateMeterResponse.d.ts +29 -0
- package/dist/openapi/models/UpdateMeterResponse.js +31 -0
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +30 -0
- package/dist/openapi/models/WebhookSubscribeRequest.js +37 -0
- package/dist/openapi/models/all.d.ts +82 -0
- package/dist/openapi/models/all.js +98 -0
- package/dist/openapi/rxjsStub.d.ts +10 -0
- package/dist/openapi/rxjsStub.js +31 -0
- package/dist/openapi/servers.d.ts +39 -0
- package/dist/openapi/servers.js +52 -0
- package/dist/openapi/types/ObservableAPI.d.ts +544 -0
- package/dist/openapi/types/ObservableAPI.js +1089 -0
- package/dist/openapi/types/PromiseAPI.d.ts +521 -0
- package/dist/openapi/types/PromiseAPI.js +702 -0
- package/dist/openapi/util.d.ts +15 -0
- package/dist/openapi/util.js +42 -0
- package/dist/openapi-v2/apis/AuthenticationApi.d.ts +24 -0
- package/dist/openapi-v2/apis/AuthenticationApi.js +79 -0
- package/dist/openapi-v2/apis/CustomersApi.d.ts +76 -0
- package/dist/openapi-v2/apis/CustomersApi.js +295 -0
- package/dist/openapi-v2/apis/EventsApi.d.ts +63 -0
- package/dist/openapi-v2/apis/EventsApi.js +231 -0
- package/dist/openapi-v2/apis/InvoicesApi.d.ts +88 -0
- package/dist/openapi-v2/apis/InvoicesApi.js +344 -0
- package/dist/openapi-v2/apis/ProductsApi.d.ts +90 -0
- package/dist/openapi-v2/apis/ProductsApi.js +359 -0
- package/dist/openapi-v2/apis/baseapi.d.ts +33 -0
- package/dist/openapi-v2/apis/baseapi.js +41 -0
- package/dist/openapi-v2/apis/exception.d.ts +19 -0
- package/dist/openapi-v2/apis/exception.js +22 -0
- package/dist/openapi-v2/auth/auth.d.ts +38 -0
- package/dist/openapi-v2/auth/auth.js +16 -0
- package/dist/openapi-v2/configuration.d.ts +63 -0
- package/dist/openapi-v2/configuration.js +34 -0
- package/dist/openapi-v2/http/http.d.ts +142 -0
- package/dist/openapi-v2/http/http.js +229 -0
- package/dist/openapi-v2/http/isomorphic-fetch.d.ts +5 -0
- package/dist/openapi-v2/http/isomorphic-fetch.js +33 -0
- package/dist/openapi-v2/index.d.ts +10 -0
- package/dist/openapi-v2/index.js +32 -0
- package/dist/openapi-v2/middleware.d.ts +54 -0
- package/dist/openapi-v2/middleware.js +16 -0
- package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +45 -0
- package/dist/openapi-v2/models/APICreateCustomerPayload.js +49 -0
- package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +41 -0
- package/dist/openapi-v2/models/APICreateInvoicePayload.js +49 -0
- package/dist/openapi-v2/models/APICreateProductPayload.d.ts +39 -0
- package/dist/openapi-v2/models/APICreateProductPayload.js +49 -0
- package/dist/openapi-v2/models/APICustomer.d.ts +64 -0
- package/dist/openapi-v2/models/APICustomer.js +76 -0
- package/dist/openapi-v2/models/APIEvent.d.ts +72 -0
- package/dist/openapi-v2/models/APIEvent.js +88 -0
- package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +49 -0
- package/dist/openapi-v2/models/APIIngestEventPayload.js +55 -0
- package/dist/openapi-v2/models/APIInvoice.d.ts +71 -0
- package/dist/openapi-v2/models/APIInvoice.js +88 -0
- package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +38 -0
- package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +40 -0
- package/dist/openapi-v2/models/APIProduct.d.ts +63 -0
- package/dist/openapi-v2/models/APIProduct.js +82 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +49 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +43 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +49 -0
- package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +45 -0
- package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +49 -0
- package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +41 -0
- package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +49 -0
- package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +39 -0
- package/dist/openapi-v2/models/APIUpdateProductPayload.js +49 -0
- package/dist/openapi-v2/models/Aggregation.d.ts +32 -0
- package/dist/openapi-v2/models/Aggregation.js +43 -0
- package/dist/openapi-v2/models/AggregationMethods.d.ts +18 -0
- package/dist/openapi-v2/models/AggregationMethods.js +22 -0
- package/dist/openapi-v2/models/Condition.d.ts +29 -0
- package/dist/openapi-v2/models/Condition.js +31 -0
- package/dist/openapi-v2/models/Criterion.d.ts +32 -0
- package/dist/openapi-v2/models/Criterion.js +43 -0
- package/dist/openapi-v2/models/CriterionOperators.d.ts +23 -0
- package/dist/openapi-v2/models/CriterionOperators.js +27 -0
- package/dist/openapi-v2/models/CriterionValue.d.ts +27 -0
- package/dist/openapi-v2/models/CriterionValue.js +24 -0
- package/dist/openapi-v2/models/Event.d.ts +54 -0
- package/dist/openapi-v2/models/Event.js +85 -0
- package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +31 -0
- package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +43 -0
- package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +36 -0
- package/dist/openapi-v2/models/InvoiceProductBreakdown.js +46 -0
- package/dist/openapi-v2/models/Login200Response.d.ts +28 -0
- package/dist/openapi-v2/models/Login200Response.js +31 -0
- package/dist/openapi-v2/models/LoginRequest.d.ts +28 -0
- package/dist/openapi-v2/models/LoginRequest.js +31 -0
- package/dist/openapi-v2/models/ObjectSerializer.d.ts +64 -0
- package/dist/openapi-v2/models/ObjectSerializer.js +368 -0
- package/dist/openapi-v2/models/Pricing.d.ts +30 -0
- package/dist/openapi-v2/models/Pricing.js +37 -0
- package/dist/openapi-v2/models/PricingTiersInner.d.ts +31 -0
- package/dist/openapi-v2/models/PricingTiersInner.js +49 -0
- package/dist/openapi-v2/models/ProductBreakdown.d.ts +29 -0
- package/dist/openapi-v2/models/ProductBreakdown.js +37 -0
- package/dist/openapi-v2/models/ProductRevision.d.ts +36 -0
- package/dist/openapi-v2/models/ProductRevision.js +55 -0
- package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPICustomer.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIEvent.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIInvoice.js +43 -0
- package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +40 -0
- package/dist/openapi-v2/models/QueryResultAPIProduct.js +43 -0
- package/dist/openapi-v2/models/ReviseProductPayload.d.ts +37 -0
- package/dist/openapi-v2/models/ReviseProductPayload.js +43 -0
- package/dist/openapi-v2/models/UpdateEventPayload.d.ts +33 -0
- package/dist/openapi-v2/models/UpdateEventPayload.js +31 -0
- package/dist/openapi-v2/models/all.d.ts +37 -0
- package/dist/openapi-v2/models/all.js +53 -0
- package/dist/openapi-v2/rxjsStub.d.ts +10 -0
- package/dist/openapi-v2/rxjsStub.js +31 -0
- package/dist/openapi-v2/servers.d.ts +38 -0
- package/dist/openapi-v2/servers.js +51 -0
- package/dist/openapi-v2/types/ObservableAPI.d.ts +245 -0
- package/dist/openapi-v2/types/ObservableAPI.js +608 -0
- package/dist/openapi-v2/types/PromiseAPI.d.ts +234 -0
- package/dist/openapi-v2/types/PromiseAPI.js +354 -0
- package/dist/openapi-v2/util.d.ts +15 -0
- package/dist/openapi-v2/util.js +42 -0
- package/dist/sdk/clients/ContractsClient.d.ts +10 -0
- package/dist/sdk/clients/ContractsClient.js +42 -0
- package/dist/sdk/clients/CustomersClient.d.ts +12 -0
- package/dist/sdk/clients/CustomersClient.js +52 -0
- package/dist/sdk/clients/EventsClient.d.ts +11 -0
- package/dist/sdk/clients/EventsClient.js +49 -0
- package/dist/sdk/clients/InvoicesClient.d.ts +7 -0
- package/dist/sdk/clients/InvoicesClient.js +32 -0
- package/dist/sdk/clients/MetersClient.d.ts +10 -0
- package/dist/sdk/clients/MetersClient.js +42 -0
- package/dist/sdk/clients/PlansClient.d.ts +8 -0
- package/dist/sdk/clients/PlansClient.js +37 -0
- package/dist/sdk/clients/WebhooksClient.d.ts +6 -0
- package/dist/sdk/clients/WebhooksClient.js +25 -0
- package/dist/sdk/clients/index.d.ts +7 -0
- package/dist/sdk/clients/index.js +23 -0
- package/dist/sdk/index.d.ts +14 -0
- package/dist/sdk/index.js +62 -0
- package/dist/sdk/services/configuration.service.d.ts +21 -0
- package/dist/sdk/services/configuration.service.js +104 -0
- package/dist/sdk/services/index.d.ts +1 -0
- package/dist/sdk/services/index.js +17 -0
- package/dist/sdk/types/Contracts.d.ts +1 -0
- package/dist/sdk/types/Contracts.js +2 -0
- package/dist/sdk/types/Customers.d.ts +1 -0
- package/dist/sdk/types/Customers.js +2 -0
- package/dist/sdk/types/Events.d.ts +1 -0
- package/dist/sdk/types/Events.js +2 -0
- package/dist/sdk/types/Invoices.d.ts +1 -0
- package/dist/sdk/types/Invoices.js +2 -0
- package/dist/sdk/types/Meters.d.ts +1 -0
- package/dist/sdk/types/Meters.js +2 -0
- package/dist/sdk/types/Plans.d.ts +1 -0
- package/dist/sdk/types/Plans.js +2 -0
- package/dist/sdk/types/index.d.ts +7 -0
- package/dist/sdk/types/index.js +23 -0
- package/dist/sdk/types/pagination-options.d.ts +4 -0
- package/dist/sdk/types/pagination-options.js +2 -0
- package/dist/sdk-v2/clients/CustomersClient.d.ts +10 -0
- package/dist/sdk-v2/clients/CustomersClient.js +45 -0
- package/dist/sdk-v2/clients/EventsClient.d.ts +9 -0
- package/dist/sdk-v2/clients/EventsClient.js +46 -0
- package/dist/sdk-v2/clients/InvoicesClient.d.ts +11 -0
- package/dist/sdk-v2/clients/InvoicesClient.js +50 -0
- package/dist/sdk-v2/clients/ProductsClient.d.ts +11 -0
- package/dist/sdk-v2/clients/ProductsClient.js +50 -0
- package/dist/sdk-v2/clients/index.d.ts +4 -0
- package/dist/sdk-v2/clients/index.js +20 -0
- package/dist/sdk-v2/index.d.ts +11 -0
- package/dist/sdk-v2/index.js +53 -0
- package/dist/sdk-v2/services/configuration.service.d.ts +21 -0
- package/dist/sdk-v2/services/configuration.service.js +98 -0
- package/dist/sdk-v2/services/index.d.ts +1 -0
- package/dist/sdk-v2/services/index.js +17 -0
- package/dist/sdk-v2/types/Customers.d.ts +1 -0
- package/dist/sdk-v2/types/Customers.js +2 -0
- package/dist/sdk-v2/types/Events.d.ts +1 -0
- package/dist/sdk-v2/types/Events.js +2 -0
- package/dist/sdk-v2/types/Invoices.d.ts +1 -0
- package/dist/sdk-v2/types/Invoices.js +2 -0
- package/dist/sdk-v2/types/Products.d.ts +1 -0
- package/dist/sdk-v2/types/Products.js +2 -0
- package/dist/sdk-v2/types/index.d.ts +6 -0
- package/dist/sdk-v2/types/index.js +23 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +17 -0
- package/dist/v2.d.ts +1 -0
- package/dist/v2.js +17 -0
- package/package.json +17 -1
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { HttpInfo } from '../http/http';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { APICreateCustomerPayload } from '../models/APICreateCustomerPayload';
|
|
4
|
+
import { APICreateInvoicePayload } from '../models/APICreateInvoicePayload';
|
|
5
|
+
import { APICreateProductPayload } from '../models/APICreateProductPayload';
|
|
6
|
+
import { APICustomer } from '../models/APICustomer';
|
|
7
|
+
import { APIEvent } from '../models/APIEvent';
|
|
8
|
+
import { APIIngestEventPayload } from '../models/APIIngestEventPayload';
|
|
9
|
+
import { APIInvoice } from '../models/APIInvoice';
|
|
10
|
+
import { APIProduct } from '../models/APIProduct';
|
|
11
|
+
import { APIQueryPayloadAPICustomer } from '../models/APIQueryPayloadAPICustomer';
|
|
12
|
+
import { APIQueryPayloadAPIEvent } from '../models/APIQueryPayloadAPIEvent';
|
|
13
|
+
import { APIQueryPayloadAPIInvoice } from '../models/APIQueryPayloadAPIInvoice';
|
|
14
|
+
import { APIQueryPayloadAPIProduct } from '../models/APIQueryPayloadAPIProduct';
|
|
15
|
+
import { APIUpdateCustomerPayload } from '../models/APIUpdateCustomerPayload';
|
|
16
|
+
import { APIUpdateInvoicePayload } from '../models/APIUpdateInvoicePayload';
|
|
17
|
+
import { APIUpdateProductPayload } from '../models/APIUpdateProductPayload';
|
|
18
|
+
import { IngestEventToTheSystem201Response } from '../models/IngestEventToTheSystem201Response';
|
|
19
|
+
import { Login200Response } from '../models/Login200Response';
|
|
20
|
+
import { LoginRequest } from '../models/LoginRequest';
|
|
21
|
+
import { QueryResultAPICustomer } from '../models/QueryResultAPICustomer';
|
|
22
|
+
import { QueryResultAPIEvent } from '../models/QueryResultAPIEvent';
|
|
23
|
+
import { QueryResultAPIInvoice } from '../models/QueryResultAPIInvoice';
|
|
24
|
+
import { QueryResultAPIProduct } from '../models/QueryResultAPIProduct';
|
|
25
|
+
import { ReviseProductPayload } from '../models/ReviseProductPayload';
|
|
26
|
+
import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor } from "../apis/AuthenticationApi";
|
|
27
|
+
export declare class PromiseAuthenticationApi {
|
|
28
|
+
private api;
|
|
29
|
+
constructor(configuration: Configuration, requestFactory?: AuthenticationApiRequestFactory, responseProcessor?: AuthenticationApiResponseProcessor);
|
|
30
|
+
/**
|
|
31
|
+
* @param loginRequest
|
|
32
|
+
*/
|
|
33
|
+
loginWithHttpInfo(loginRequest: LoginRequest, _options?: Configuration): Promise<HttpInfo<Login200Response>>;
|
|
34
|
+
/**
|
|
35
|
+
* @param loginRequest
|
|
36
|
+
*/
|
|
37
|
+
login(loginRequest: LoginRequest, _options?: Configuration): Promise<Login200Response>;
|
|
38
|
+
}
|
|
39
|
+
import { CustomersApiRequestFactory, CustomersApiResponseProcessor } from "../apis/CustomersApi";
|
|
40
|
+
export declare class PromiseCustomersApi {
|
|
41
|
+
private api;
|
|
42
|
+
constructor(configuration: Configuration, requestFactory?: CustomersApiRequestFactory, responseProcessor?: CustomersApiResponseProcessor);
|
|
43
|
+
/**
|
|
44
|
+
* @param aPICreateCustomerPayload
|
|
45
|
+
*/
|
|
46
|
+
createCustomerWithHttpInfo(aPICreateCustomerPayload: APICreateCustomerPayload, _options?: Configuration): Promise<HttpInfo<APICustomer>>;
|
|
47
|
+
/**
|
|
48
|
+
* @param aPICreateCustomerPayload
|
|
49
|
+
*/
|
|
50
|
+
createCustomer(aPICreateCustomerPayload: APICreateCustomerPayload, _options?: Configuration): Promise<APICustomer>;
|
|
51
|
+
/**
|
|
52
|
+
* @param id
|
|
53
|
+
*/
|
|
54
|
+
deleteCustomerWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
55
|
+
/**
|
|
56
|
+
* @param id
|
|
57
|
+
*/
|
|
58
|
+
deleteCustomer(id: string, _options?: Configuration): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @param id
|
|
61
|
+
*/
|
|
62
|
+
getCustomerWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APICustomer>>;
|
|
63
|
+
/**
|
|
64
|
+
* @param id
|
|
65
|
+
*/
|
|
66
|
+
getCustomer(id: string, _options?: Configuration): Promise<APICustomer>;
|
|
67
|
+
/**
|
|
68
|
+
* @param aPIQueryPayloadAPICustomer
|
|
69
|
+
*/
|
|
70
|
+
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer: APIQueryPayloadAPICustomer, _options?: Configuration): Promise<HttpInfo<QueryResultAPICustomer>>;
|
|
71
|
+
/**
|
|
72
|
+
* @param aPIQueryPayloadAPICustomer
|
|
73
|
+
*/
|
|
74
|
+
queryCustomers(aPIQueryPayloadAPICustomer: APIQueryPayloadAPICustomer, _options?: Configuration): Promise<QueryResultAPICustomer>;
|
|
75
|
+
/**
|
|
76
|
+
* @param aPIUpdateCustomerPayload
|
|
77
|
+
* @param id
|
|
78
|
+
*/
|
|
79
|
+
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Promise<HttpInfo<APICustomer>>;
|
|
80
|
+
/**
|
|
81
|
+
* @param aPIUpdateCustomerPayload
|
|
82
|
+
* @param id
|
|
83
|
+
*/
|
|
84
|
+
updateCustomer(aPIUpdateCustomerPayload: APIUpdateCustomerPayload, id: string, _options?: Configuration): Promise<APICustomer>;
|
|
85
|
+
}
|
|
86
|
+
import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
|
|
87
|
+
export declare class PromiseEventsApi {
|
|
88
|
+
private api;
|
|
89
|
+
constructor(configuration: Configuration, requestFactory?: EventsApiRequestFactory, responseProcessor?: EventsApiResponseProcessor);
|
|
90
|
+
/**
|
|
91
|
+
* @param id
|
|
92
|
+
*/
|
|
93
|
+
deleteEventWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
94
|
+
/**
|
|
95
|
+
* @param id
|
|
96
|
+
*/
|
|
97
|
+
deleteEvent(id: string, _options?: Configuration): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* @param id
|
|
100
|
+
*/
|
|
101
|
+
getEventWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIEvent>>;
|
|
102
|
+
/**
|
|
103
|
+
* @param id
|
|
104
|
+
*/
|
|
105
|
+
getEvent(id: string, _options?: Configuration): Promise<APIEvent>;
|
|
106
|
+
/**
|
|
107
|
+
* @param aPIIngestEventPayload
|
|
108
|
+
*/
|
|
109
|
+
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload: Array<APIIngestEventPayload>, _options?: Configuration): Promise<HttpInfo<IngestEventToTheSystem201Response>>;
|
|
110
|
+
/**
|
|
111
|
+
* @param aPIIngestEventPayload
|
|
112
|
+
*/
|
|
113
|
+
ingestEventToTheSystem(aPIIngestEventPayload: Array<APIIngestEventPayload>, _options?: Configuration): Promise<IngestEventToTheSystem201Response>;
|
|
114
|
+
/**
|
|
115
|
+
* @param aPIQueryPayloadAPIEvent
|
|
116
|
+
*/
|
|
117
|
+
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent: APIQueryPayloadAPIEvent, _options?: Configuration): Promise<HttpInfo<QueryResultAPIEvent>>;
|
|
118
|
+
/**
|
|
119
|
+
* @param aPIQueryPayloadAPIEvent
|
|
120
|
+
*/
|
|
121
|
+
queryEvents(aPIQueryPayloadAPIEvent: APIQueryPayloadAPIEvent, _options?: Configuration): Promise<QueryResultAPIEvent>;
|
|
122
|
+
}
|
|
123
|
+
import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
|
|
124
|
+
export declare class PromiseInvoicesApi {
|
|
125
|
+
private api;
|
|
126
|
+
constructor(configuration: Configuration, requestFactory?: InvoicesApiRequestFactory, responseProcessor?: InvoicesApiResponseProcessor);
|
|
127
|
+
/**
|
|
128
|
+
* @param id
|
|
129
|
+
*/
|
|
130
|
+
calculateInvoiceWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
131
|
+
/**
|
|
132
|
+
* @param id
|
|
133
|
+
*/
|
|
134
|
+
calculateInvoice(id: string, _options?: Configuration): Promise<APIInvoice>;
|
|
135
|
+
/**
|
|
136
|
+
* @param aPICreateInvoicePayload
|
|
137
|
+
*/
|
|
138
|
+
createInvoiceWithHttpInfo(aPICreateInvoicePayload: APICreateInvoicePayload, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
139
|
+
/**
|
|
140
|
+
* @param aPICreateInvoicePayload
|
|
141
|
+
*/
|
|
142
|
+
createInvoice(aPICreateInvoicePayload: APICreateInvoicePayload, _options?: Configuration): Promise<APIInvoice>;
|
|
143
|
+
/**
|
|
144
|
+
* @param id
|
|
145
|
+
*/
|
|
146
|
+
deleteInvoiceWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
147
|
+
/**
|
|
148
|
+
* @param id
|
|
149
|
+
*/
|
|
150
|
+
deleteInvoice(id: string, _options?: Configuration): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* @param id
|
|
153
|
+
*/
|
|
154
|
+
getInvoiceWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
155
|
+
/**
|
|
156
|
+
* @param id
|
|
157
|
+
*/
|
|
158
|
+
getInvoice(id: string, _options?: Configuration): Promise<APIInvoice>;
|
|
159
|
+
/**
|
|
160
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
161
|
+
*/
|
|
162
|
+
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice: APIQueryPayloadAPIInvoice, _options?: Configuration): Promise<HttpInfo<QueryResultAPIInvoice>>;
|
|
163
|
+
/**
|
|
164
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
165
|
+
*/
|
|
166
|
+
queryInvoices(aPIQueryPayloadAPIInvoice: APIQueryPayloadAPIInvoice, _options?: Configuration): Promise<QueryResultAPIInvoice>;
|
|
167
|
+
/**
|
|
168
|
+
* @param aPIUpdateInvoicePayload
|
|
169
|
+
* @param id
|
|
170
|
+
*/
|
|
171
|
+
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload: APIUpdateInvoicePayload, id: string, _options?: Configuration): Promise<HttpInfo<APIInvoice>>;
|
|
172
|
+
/**
|
|
173
|
+
* @param aPIUpdateInvoicePayload
|
|
174
|
+
* @param id
|
|
175
|
+
*/
|
|
176
|
+
updateInvoice(aPIUpdateInvoicePayload: APIUpdateInvoicePayload, id: string, _options?: Configuration): Promise<APIInvoice>;
|
|
177
|
+
}
|
|
178
|
+
import { ProductsApiRequestFactory, ProductsApiResponseProcessor } from "../apis/ProductsApi";
|
|
179
|
+
export declare class PromiseProductsApi {
|
|
180
|
+
private api;
|
|
181
|
+
constructor(configuration: Configuration, requestFactory?: ProductsApiRequestFactory, responseProcessor?: ProductsApiResponseProcessor);
|
|
182
|
+
/**
|
|
183
|
+
* @param aPICreateProductPayload
|
|
184
|
+
*/
|
|
185
|
+
createProductWithHttpInfo(aPICreateProductPayload: APICreateProductPayload, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
186
|
+
/**
|
|
187
|
+
* @param aPICreateProductPayload
|
|
188
|
+
*/
|
|
189
|
+
createProduct(aPICreateProductPayload: APICreateProductPayload, _options?: Configuration): Promise<APIProduct>;
|
|
190
|
+
/**
|
|
191
|
+
* @param id
|
|
192
|
+
*/
|
|
193
|
+
deleteProductWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
194
|
+
/**
|
|
195
|
+
* @param id
|
|
196
|
+
*/
|
|
197
|
+
deleteProduct(id: string, _options?: Configuration): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* @param id
|
|
200
|
+
*/
|
|
201
|
+
getProductWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
202
|
+
/**
|
|
203
|
+
* @param id
|
|
204
|
+
*/
|
|
205
|
+
getProduct(id: string, _options?: Configuration): Promise<APIProduct>;
|
|
206
|
+
/**
|
|
207
|
+
* @param aPIQueryPayloadAPIProduct
|
|
208
|
+
*/
|
|
209
|
+
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct: APIQueryPayloadAPIProduct, _options?: Configuration): Promise<HttpInfo<QueryResultAPIProduct>>;
|
|
210
|
+
/**
|
|
211
|
+
* @param aPIQueryPayloadAPIProduct
|
|
212
|
+
*/
|
|
213
|
+
queryProducts(aPIQueryPayloadAPIProduct: APIQueryPayloadAPIProduct, _options?: Configuration): Promise<QueryResultAPIProduct>;
|
|
214
|
+
/**
|
|
215
|
+
* @param body
|
|
216
|
+
* @param id
|
|
217
|
+
*/
|
|
218
|
+
reviseAProductWithHttpInfo(body: ReviseProductPayload, id: string, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
219
|
+
/**
|
|
220
|
+
* @param body
|
|
221
|
+
* @param id
|
|
222
|
+
*/
|
|
223
|
+
reviseAProduct(body: ReviseProductPayload, id: string, _options?: Configuration): Promise<APIProduct>;
|
|
224
|
+
/**
|
|
225
|
+
* @param aPIUpdateProductPayload
|
|
226
|
+
* @param id
|
|
227
|
+
*/
|
|
228
|
+
updateProductWithHttpInfo(aPIUpdateProductPayload: APIUpdateProductPayload, id: string, _options?: Configuration): Promise<HttpInfo<APIProduct>>;
|
|
229
|
+
/**
|
|
230
|
+
* @param aPIUpdateProductPayload
|
|
231
|
+
* @param id
|
|
232
|
+
*/
|
|
233
|
+
updateProduct(aPIUpdateProductPayload: APIUpdateProductPayload, id: string, _options?: Configuration): Promise<APIProduct>;
|
|
234
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromiseProductsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseAuthenticationApi = void 0;
|
|
4
|
+
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
|
+
class PromiseAuthenticationApi {
|
|
6
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
7
|
+
this.api = new ObservableAPI_1.ObservableAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @param loginRequest
|
|
11
|
+
*/
|
|
12
|
+
loginWithHttpInfo(loginRequest, _options) {
|
|
13
|
+
const result = this.api.loginWithHttpInfo(loginRequest, _options);
|
|
14
|
+
return result.toPromise();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @param loginRequest
|
|
18
|
+
*/
|
|
19
|
+
login(loginRequest, _options) {
|
|
20
|
+
const result = this.api.login(loginRequest, _options);
|
|
21
|
+
return result.toPromise();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.PromiseAuthenticationApi = PromiseAuthenticationApi;
|
|
25
|
+
const ObservableAPI_2 = require("./ObservableAPI");
|
|
26
|
+
class PromiseCustomersApi {
|
|
27
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
28
|
+
this.api = new ObservableAPI_2.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param aPICreateCustomerPayload
|
|
32
|
+
*/
|
|
33
|
+
createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
|
|
34
|
+
const result = this.api.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options);
|
|
35
|
+
return result.toPromise();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @param aPICreateCustomerPayload
|
|
39
|
+
*/
|
|
40
|
+
createCustomer(aPICreateCustomerPayload, _options) {
|
|
41
|
+
const result = this.api.createCustomer(aPICreateCustomerPayload, _options);
|
|
42
|
+
return result.toPromise();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @param id
|
|
46
|
+
*/
|
|
47
|
+
deleteCustomerWithHttpInfo(id, _options) {
|
|
48
|
+
const result = this.api.deleteCustomerWithHttpInfo(id, _options);
|
|
49
|
+
return result.toPromise();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @param id
|
|
53
|
+
*/
|
|
54
|
+
deleteCustomer(id, _options) {
|
|
55
|
+
const result = this.api.deleteCustomer(id, _options);
|
|
56
|
+
return result.toPromise();
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param id
|
|
60
|
+
*/
|
|
61
|
+
getCustomerWithHttpInfo(id, _options) {
|
|
62
|
+
const result = this.api.getCustomerWithHttpInfo(id, _options);
|
|
63
|
+
return result.toPromise();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @param id
|
|
67
|
+
*/
|
|
68
|
+
getCustomer(id, _options) {
|
|
69
|
+
const result = this.api.getCustomer(id, _options);
|
|
70
|
+
return result.toPromise();
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param aPIQueryPayloadAPICustomer
|
|
74
|
+
*/
|
|
75
|
+
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
|
|
76
|
+
const result = this.api.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options);
|
|
77
|
+
return result.toPromise();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @param aPIQueryPayloadAPICustomer
|
|
81
|
+
*/
|
|
82
|
+
queryCustomers(aPIQueryPayloadAPICustomer, _options) {
|
|
83
|
+
const result = this.api.queryCustomers(aPIQueryPayloadAPICustomer, _options);
|
|
84
|
+
return result.toPromise();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @param aPIUpdateCustomerPayload
|
|
88
|
+
* @param id
|
|
89
|
+
*/
|
|
90
|
+
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
|
|
91
|
+
const result = this.api.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options);
|
|
92
|
+
return result.toPromise();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @param aPIUpdateCustomerPayload
|
|
96
|
+
* @param id
|
|
97
|
+
*/
|
|
98
|
+
updateCustomer(aPIUpdateCustomerPayload, id, _options) {
|
|
99
|
+
const result = this.api.updateCustomer(aPIUpdateCustomerPayload, id, _options);
|
|
100
|
+
return result.toPromise();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.PromiseCustomersApi = PromiseCustomersApi;
|
|
104
|
+
const ObservableAPI_3 = require("./ObservableAPI");
|
|
105
|
+
class PromiseEventsApi {
|
|
106
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
107
|
+
this.api = new ObservableAPI_3.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @param id
|
|
111
|
+
*/
|
|
112
|
+
deleteEventWithHttpInfo(id, _options) {
|
|
113
|
+
const result = this.api.deleteEventWithHttpInfo(id, _options);
|
|
114
|
+
return result.toPromise();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param id
|
|
118
|
+
*/
|
|
119
|
+
deleteEvent(id, _options) {
|
|
120
|
+
const result = this.api.deleteEvent(id, _options);
|
|
121
|
+
return result.toPromise();
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @param id
|
|
125
|
+
*/
|
|
126
|
+
getEventWithHttpInfo(id, _options) {
|
|
127
|
+
const result = this.api.getEventWithHttpInfo(id, _options);
|
|
128
|
+
return result.toPromise();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @param id
|
|
132
|
+
*/
|
|
133
|
+
getEvent(id, _options) {
|
|
134
|
+
const result = this.api.getEvent(id, _options);
|
|
135
|
+
return result.toPromise();
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @param aPIIngestEventPayload
|
|
139
|
+
*/
|
|
140
|
+
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
|
|
141
|
+
const result = this.api.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options);
|
|
142
|
+
return result.toPromise();
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @param aPIIngestEventPayload
|
|
146
|
+
*/
|
|
147
|
+
ingestEventToTheSystem(aPIIngestEventPayload, _options) {
|
|
148
|
+
const result = this.api.ingestEventToTheSystem(aPIIngestEventPayload, _options);
|
|
149
|
+
return result.toPromise();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @param aPIQueryPayloadAPIEvent
|
|
153
|
+
*/
|
|
154
|
+
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
|
|
155
|
+
const result = this.api.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options);
|
|
156
|
+
return result.toPromise();
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @param aPIQueryPayloadAPIEvent
|
|
160
|
+
*/
|
|
161
|
+
queryEvents(aPIQueryPayloadAPIEvent, _options) {
|
|
162
|
+
const result = this.api.queryEvents(aPIQueryPayloadAPIEvent, _options);
|
|
163
|
+
return result.toPromise();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.PromiseEventsApi = PromiseEventsApi;
|
|
167
|
+
const ObservableAPI_4 = require("./ObservableAPI");
|
|
168
|
+
class PromiseInvoicesApi {
|
|
169
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
170
|
+
this.api = new ObservableAPI_4.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @param id
|
|
174
|
+
*/
|
|
175
|
+
calculateInvoiceWithHttpInfo(id, _options) {
|
|
176
|
+
const result = this.api.calculateInvoiceWithHttpInfo(id, _options);
|
|
177
|
+
return result.toPromise();
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @param id
|
|
181
|
+
*/
|
|
182
|
+
calculateInvoice(id, _options) {
|
|
183
|
+
const result = this.api.calculateInvoice(id, _options);
|
|
184
|
+
return result.toPromise();
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @param aPICreateInvoicePayload
|
|
188
|
+
*/
|
|
189
|
+
createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
|
|
190
|
+
const result = this.api.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options);
|
|
191
|
+
return result.toPromise();
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @param aPICreateInvoicePayload
|
|
195
|
+
*/
|
|
196
|
+
createInvoice(aPICreateInvoicePayload, _options) {
|
|
197
|
+
const result = this.api.createInvoice(aPICreateInvoicePayload, _options);
|
|
198
|
+
return result.toPromise();
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* @param id
|
|
202
|
+
*/
|
|
203
|
+
deleteInvoiceWithHttpInfo(id, _options) {
|
|
204
|
+
const result = this.api.deleteInvoiceWithHttpInfo(id, _options);
|
|
205
|
+
return result.toPromise();
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* @param id
|
|
209
|
+
*/
|
|
210
|
+
deleteInvoice(id, _options) {
|
|
211
|
+
const result = this.api.deleteInvoice(id, _options);
|
|
212
|
+
return result.toPromise();
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @param id
|
|
216
|
+
*/
|
|
217
|
+
getInvoiceWithHttpInfo(id, _options) {
|
|
218
|
+
const result = this.api.getInvoiceWithHttpInfo(id, _options);
|
|
219
|
+
return result.toPromise();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @param id
|
|
223
|
+
*/
|
|
224
|
+
getInvoice(id, _options) {
|
|
225
|
+
const result = this.api.getInvoice(id, _options);
|
|
226
|
+
return result.toPromise();
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
230
|
+
*/
|
|
231
|
+
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
|
|
232
|
+
const result = this.api.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options);
|
|
233
|
+
return result.toPromise();
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @param aPIQueryPayloadAPIInvoice
|
|
237
|
+
*/
|
|
238
|
+
queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
|
|
239
|
+
const result = this.api.queryInvoices(aPIQueryPayloadAPIInvoice, _options);
|
|
240
|
+
return result.toPromise();
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @param aPIUpdateInvoicePayload
|
|
244
|
+
* @param id
|
|
245
|
+
*/
|
|
246
|
+
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
|
|
247
|
+
const result = this.api.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options);
|
|
248
|
+
return result.toPromise();
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @param aPIUpdateInvoicePayload
|
|
252
|
+
* @param id
|
|
253
|
+
*/
|
|
254
|
+
updateInvoice(aPIUpdateInvoicePayload, id, _options) {
|
|
255
|
+
const result = this.api.updateInvoice(aPIUpdateInvoicePayload, id, _options);
|
|
256
|
+
return result.toPromise();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
260
|
+
const ObservableAPI_5 = require("./ObservableAPI");
|
|
261
|
+
class PromiseProductsApi {
|
|
262
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
263
|
+
this.api = new ObservableAPI_5.ObservableProductsApi(configuration, requestFactory, responseProcessor);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* @param aPICreateProductPayload
|
|
267
|
+
*/
|
|
268
|
+
createProductWithHttpInfo(aPICreateProductPayload, _options) {
|
|
269
|
+
const result = this.api.createProductWithHttpInfo(aPICreateProductPayload, _options);
|
|
270
|
+
return result.toPromise();
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @param aPICreateProductPayload
|
|
274
|
+
*/
|
|
275
|
+
createProduct(aPICreateProductPayload, _options) {
|
|
276
|
+
const result = this.api.createProduct(aPICreateProductPayload, _options);
|
|
277
|
+
return result.toPromise();
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* @param id
|
|
281
|
+
*/
|
|
282
|
+
deleteProductWithHttpInfo(id, _options) {
|
|
283
|
+
const result = this.api.deleteProductWithHttpInfo(id, _options);
|
|
284
|
+
return result.toPromise();
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @param id
|
|
288
|
+
*/
|
|
289
|
+
deleteProduct(id, _options) {
|
|
290
|
+
const result = this.api.deleteProduct(id, _options);
|
|
291
|
+
return result.toPromise();
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @param id
|
|
295
|
+
*/
|
|
296
|
+
getProductWithHttpInfo(id, _options) {
|
|
297
|
+
const result = this.api.getProductWithHttpInfo(id, _options);
|
|
298
|
+
return result.toPromise();
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @param id
|
|
302
|
+
*/
|
|
303
|
+
getProduct(id, _options) {
|
|
304
|
+
const result = this.api.getProduct(id, _options);
|
|
305
|
+
return result.toPromise();
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* @param aPIQueryPayloadAPIProduct
|
|
309
|
+
*/
|
|
310
|
+
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
|
|
311
|
+
const result = this.api.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options);
|
|
312
|
+
return result.toPromise();
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* @param aPIQueryPayloadAPIProduct
|
|
316
|
+
*/
|
|
317
|
+
queryProducts(aPIQueryPayloadAPIProduct, _options) {
|
|
318
|
+
const result = this.api.queryProducts(aPIQueryPayloadAPIProduct, _options);
|
|
319
|
+
return result.toPromise();
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* @param body
|
|
323
|
+
* @param id
|
|
324
|
+
*/
|
|
325
|
+
reviseAProductWithHttpInfo(body, id, _options) {
|
|
326
|
+
const result = this.api.reviseAProductWithHttpInfo(body, id, _options);
|
|
327
|
+
return result.toPromise();
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @param body
|
|
331
|
+
* @param id
|
|
332
|
+
*/
|
|
333
|
+
reviseAProduct(body, id, _options) {
|
|
334
|
+
const result = this.api.reviseAProduct(body, id, _options);
|
|
335
|
+
return result.toPromise();
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* @param aPIUpdateProductPayload
|
|
339
|
+
* @param id
|
|
340
|
+
*/
|
|
341
|
+
updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
|
|
342
|
+
const result = this.api.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options);
|
|
343
|
+
return result.toPromise();
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* @param aPIUpdateProductPayload
|
|
347
|
+
* @param id
|
|
348
|
+
*/
|
|
349
|
+
updateProduct(aPIUpdateProductPayload, id, _options) {
|
|
350
|
+
const result = this.api.updateProduct(aPIUpdateProductPayload, id, _options);
|
|
351
|
+
return result.toPromise();
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
exports.PromiseProductsApi = PromiseProductsApi;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns if a specific http code is in a given code range
|
|
3
|
+
* where the code range is defined as a combination of digits
|
|
4
|
+
* and "X" (the letter X) with a length of 3
|
|
5
|
+
*
|
|
6
|
+
* @param codeRange string with length 3 consisting of digits and "X" (the letter X)
|
|
7
|
+
* @param code the http status code to be checked against the code range
|
|
8
|
+
*/
|
|
9
|
+
export declare function isCodeInRange(codeRange: string, code: number): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Returns if it can consume form
|
|
12
|
+
*
|
|
13
|
+
* @param consumes array
|
|
14
|
+
*/
|
|
15
|
+
export declare function canConsumeForm(contentTypes: string[]): boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.canConsumeForm = exports.isCodeInRange = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Returns if a specific http code is in a given code range
|
|
6
|
+
* where the code range is defined as a combination of digits
|
|
7
|
+
* and "X" (the letter X) with a length of 3
|
|
8
|
+
*
|
|
9
|
+
* @param codeRange string with length 3 consisting of digits and "X" (the letter X)
|
|
10
|
+
* @param code the http status code to be checked against the code range
|
|
11
|
+
*/
|
|
12
|
+
function isCodeInRange(codeRange, code) {
|
|
13
|
+
// This is how the default value is encoded in OAG
|
|
14
|
+
if (codeRange === "0") {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
if (codeRange == code.toString()) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
const codeString = code.toString();
|
|
22
|
+
if (codeString.length != codeRange.length) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
for (let i = 0; i < codeString.length; i++) {
|
|
26
|
+
if (codeRange.charAt(i) != "X" && codeRange.charAt(i) != codeString.charAt(i)) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.isCodeInRange = isCodeInRange;
|
|
34
|
+
/**
|
|
35
|
+
* Returns if it can consume form
|
|
36
|
+
*
|
|
37
|
+
* @param consumes array
|
|
38
|
+
*/
|
|
39
|
+
function canConsumeForm(contentTypes) {
|
|
40
|
+
return contentTypes.indexOf('multipart/form-data') !== -1;
|
|
41
|
+
}
|
|
42
|
+
exports.canConsumeForm = canConsumeForm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CreateContractRequest } from '../../openapi';
|
|
2
|
+
import type { PaginationOptions } from '../types';
|
|
3
|
+
export declare class ContractsClient {
|
|
4
|
+
private client;
|
|
5
|
+
constructor();
|
|
6
|
+
list(pagination?: PaginationOptions): Promise<import("../types").ListContractsResponse>;
|
|
7
|
+
get(id: string): Promise<import("../types").GetContractResponse>;
|
|
8
|
+
create(payload: CreateContractRequest): Promise<import("../types").CreateContractResponse>;
|
|
9
|
+
delete(id: string): Promise<import("../types").DeleteContractResponse>;
|
|
10
|
+
}
|