vayu-ts 0.2.5 → 0.2.7-test
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/openapi/apis/AuthApi.js +47 -61
- package/dist/openapi/apis/ContractsApi.js +203 -232
- package/dist/openapi/apis/CreditsApi.js +162 -186
- package/dist/openapi/apis/CustomersApi.d.ts +15 -0
- package/dist/openapi/apis/CustomersApi.js +378 -353
- package/dist/openapi/apis/EventsApi.js +282 -316
- package/dist/openapi/apis/IntegrationsApi.js +105 -124
- package/dist/openapi/apis/InvoicesApi.js +100 -119
- package/dist/openapi/apis/MetersApi.js +211 -240
- package/dist/openapi/apis/PlansApi.js +150 -174
- package/dist/openapi/apis/ProductConsumptionsApi.d.ts +25 -0
- package/dist/openapi/apis/ProductConsumptionsApi.js +82 -0
- package/dist/openapi/apis/ReportsApi.js +100 -119
- package/dist/openapi/apis/WebhooksApi.js +55 -69
- package/dist/openapi/auth/auth.d.ts +1 -0
- package/dist/openapi/auth/auth.js +2 -13
- package/dist/openapi/http/http.d.ts +7 -20
- package/dist/openapi/http/http.js +15 -25
- package/dist/openapi/index.d.ts +3 -3
- package/dist/openapi/index.js +2 -1
- package/dist/openapi/models/Address.d.ts +3 -0
- package/dist/openapi/models/Address.js +1 -0
- package/dist/openapi/models/AggregationMethod.d.ts +3 -0
- package/dist/openapi/models/AggregationMethod.js +1 -0
- package/dist/openapi/models/Condition.d.ts +3 -0
- package/dist/openapi/models/Condition.js +1 -0
- package/dist/openapi/models/Contact.d.ts +4 -1
- package/dist/openapi/models/Contact.js +3 -2
- package/dist/openapi/models/ContractStatus.d.ts +1 -0
- package/dist/openapi/models/ContractStatus.js +1 -0
- package/dist/openapi/models/CreateContractRequest.d.ts +3 -0
- package/dist/openapi/models/CreateContractRequest.js +1 -0
- package/dist/openapi/models/CreateContractResponse.d.ts +3 -0
- package/dist/openapi/models/CreateContractResponse.js +1 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +3 -0
- package/dist/openapi/models/CreateCustomerRequest.js +1 -0
- package/dist/openapi/models/CreateCustomerResponse.d.ts +3 -0
- package/dist/openapi/models/CreateCustomerResponse.js +1 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +3 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +1 -0
- package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -0
- package/dist/openapi/models/CreditLedgerEntry.js +1 -0
- package/dist/openapi/models/Criterion.d.ts +3 -0
- package/dist/openapi/models/Criterion.js +1 -0
- package/dist/openapi/models/CriterionOperator.d.ts +3 -1
- package/dist/openapi/models/CriterionOperator.js +2 -0
- package/dist/openapi/models/DeductCreditsRequest.d.ts +3 -0
- package/dist/openapi/models/DeductCreditsRequest.js +1 -0
- package/dist/openapi/models/DeleteContractResponse.d.ts +3 -0
- package/dist/openapi/models/DeleteContractResponse.js +1 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +3 -0
- package/dist/openapi/models/DeleteContractResponseContract.js +1 -0
- package/dist/openapi/models/DeleteCustomerResponse.d.ts +3 -0
- package/dist/openapi/models/DeleteCustomerResponse.js +1 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +3 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +1 -0
- package/dist/openapi/models/DeleteEventResponse.d.ts +3 -0
- package/dist/openapi/models/DeleteEventResponse.js +1 -0
- package/dist/openapi/models/DeleteEventResponseEvent.d.ts +3 -0
- package/dist/openapi/models/DeleteEventResponseEvent.js +1 -0
- package/dist/openapi/models/DeleteMeterResponse.d.ts +3 -0
- package/dist/openapi/models/DeleteMeterResponse.js +1 -0
- package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +3 -0
- package/dist/openapi/models/DeleteMeterResponseMeter.js +1 -0
- package/dist/openapi/models/DeletePlanResponse.d.ts +3 -0
- package/dist/openapi/models/DeletePlanResponse.js +1 -0
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +3 -0
- package/dist/openapi/models/DeletePlanResponsePlan.js +1 -0
- package/dist/openapi/models/Event.d.ts +3 -0
- package/dist/openapi/models/Event.js +1 -0
- package/dist/openapi/models/EventsDryRunRequest.d.ts +3 -0
- package/dist/openapi/models/EventsDryRunRequest.js +1 -0
- package/dist/openapi/models/EventsDryRunResponse.d.ts +3 -0
- package/dist/openapi/models/EventsDryRunResponse.js +1 -0
- package/dist/openapi/models/EventsDryRunResponseObject.d.ts +3 -0
- package/dist/openapi/models/EventsDryRunResponseObject.js +1 -0
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +3 -0
- package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +1 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +3 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +1 -0
- package/dist/openapi/models/Filter.d.ts +3 -0
- package/dist/openapi/models/Filter.js +1 -0
- package/dist/openapi/models/FullDayPeriod.d.ts +3 -0
- package/dist/openapi/models/FullDayPeriod.js +1 -0
- package/dist/openapi/models/GetCommitmentReportResponse.d.ts +5 -0
- package/dist/openapi/models/GetCommitmentReportResponse.js +13 -0
- package/dist/openapi/models/GetContractResponse.d.ts +3 -0
- package/dist/openapi/models/GetContractResponse.js +1 -0
- package/dist/openapi/models/GetContractResponseContract.d.ts +3 -0
- package/dist/openapi/models/GetContractResponseContract.js +1 -0
- package/dist/openapi/models/GetCustomerProductsConsumptionsResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerProductsConsumptionsResponse.js +32 -0
- package/dist/openapi/models/GetCustomerResponse.d.ts +3 -0
- package/dist/openapi/models/GetCustomerResponse.js +1 -0
- package/dist/openapi/models/GetEventResponse.d.ts +3 -0
- package/dist/openapi/models/GetEventResponse.js +1 -0
- package/dist/openapi/models/GetEventResponseEvent.d.ts +3 -0
- package/dist/openapi/models/GetEventResponseEvent.js +1 -0
- package/dist/openapi/models/GetInvoiceResponse.d.ts +3 -0
- package/dist/openapi/models/GetInvoiceResponse.js +1 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +3 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.js +1 -0
- package/dist/openapi/models/GetMeterResponse.d.ts +3 -0
- package/dist/openapi/models/GetMeterResponse.js +1 -0
- package/dist/openapi/models/GetMeterResponseMeter.d.ts +3 -0
- package/dist/openapi/models/GetMeterResponseMeter.js +1 -0
- package/dist/openapi/models/GetPlanResponse.d.ts +3 -0
- package/dist/openapi/models/GetPlanResponse.js +1 -0
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +3 -0
- package/dist/openapi/models/GetPlanResponsePlan.js +1 -0
- package/dist/openapi/models/GetProductConsumptionResponse.d.ts +32 -0
- package/dist/openapi/models/GetProductConsumptionResponse.js +32 -0
- package/dist/openapi/models/GetProductConsumptionResponseProductConsumption.d.ts +59 -0
- package/dist/openapi/models/GetProductConsumptionResponseProductConsumption.js +74 -0
- package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +5 -0
- package/dist/openapi/models/GetProductsUsageReportResponse.js +13 -0
- package/dist/openapi/models/GrantCreditsRequest.d.ts +3 -0
- package/dist/openapi/models/GrantCreditsRequest.js +1 -0
- package/dist/openapi/models/InvalidEvent.d.ts +3 -0
- package/dist/openapi/models/InvalidEvent.js +1 -0
- package/dist/openapi/models/LineItem.d.ts +3 -0
- package/dist/openapi/models/LineItem.js +1 -0
- package/dist/openapi/models/LineItemRevenueBreakdown.d.ts +3 -0
- package/dist/openapi/models/LineItemRevenueBreakdown.js +1 -0
- package/dist/openapi/models/ListContractsResponse.d.ts +3 -0
- package/dist/openapi/models/ListContractsResponse.js +1 -0
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +3 -0
- package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +1 -0
- package/dist/openapi/models/ListCustomersResponse.d.ts +3 -0
- package/dist/openapi/models/ListCustomersResponse.js +1 -0
- package/dist/openapi/models/ListInvoicesResponse.d.ts +3 -0
- package/dist/openapi/models/ListInvoicesResponse.js +1 -0
- package/dist/openapi/models/ListMetersResponse.d.ts +3 -0
- package/dist/openapi/models/ListMetersResponse.js +1 -0
- package/dist/openapi/models/ListPlansResponse.d.ts +3 -0
- package/dist/openapi/models/ListPlansResponse.js +1 -0
- package/dist/openapi/models/LoginRequest.d.ts +3 -0
- package/dist/openapi/models/LoginRequest.js +1 -0
- package/dist/openapi/models/LoginResponse.d.ts +3 -0
- package/dist/openapi/models/LoginResponse.js +1 -0
- package/dist/openapi/models/Meter.d.ts +3 -0
- package/dist/openapi/models/Meter.js +1 -0
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +3 -0
- package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +1 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +3 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +1 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +3 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +1 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +3 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +1 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +3 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +1 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +3 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +1 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +3 -0
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +1 -0
- package/dist/openapi/models/NotificationEventType.d.ts +2 -1
- package/dist/openapi/models/NotificationEventType.js +1 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +6 -0
- package/dist/openapi/models/ObjectSerializer.js +68 -11
- package/dist/openapi/models/PlanBillingData.d.ts +5 -1
- package/dist/openapi/models/PlanBillingData.js +2 -1
- package/dist/{openapi-v2/models/UpdateEventPayload.d.ts → openapi/models/PlanDuration.d.ts} +7 -10
- package/dist/openapi/models/PlanDuration.js +25 -0
- package/dist/openapi/models/ProductConsumption.d.ts +59 -0
- package/dist/openapi/models/ProductConsumption.js +74 -0
- package/dist/openapi/models/QueryEventsResponse.d.ts +3 -0
- package/dist/openapi/models/QueryEventsResponse.js +1 -0
- package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +3 -0
- package/dist/openapi/models/QueryEventsResponseEventsInner.js +1 -0
- package/dist/openapi/models/SendEventsRequest.d.ts +3 -0
- package/dist/openapi/models/SendEventsRequest.js +1 -0
- package/dist/openapi/models/SendEventsResponse.d.ts +3 -0
- package/dist/openapi/models/SendEventsResponse.js +1 -0
- package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
- package/dist/openapi/models/UnlimitedDuration.js +18 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +3 -0
- package/dist/openapi/models/UpdateCustomerRequest.js +1 -0
- package/dist/openapi/models/UpdateCustomerResponse.d.ts +3 -0
- package/dist/openapi/models/UpdateCustomerResponse.js +1 -0
- package/dist/openapi/models/UpdateMeterRequest.d.ts +3 -0
- package/dist/openapi/models/UpdateMeterRequest.js +1 -0
- package/dist/openapi/models/UpdateMeterResponse.d.ts +3 -0
- package/dist/openapi/models/UpdateMeterResponse.js +1 -0
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +3 -0
- package/dist/openapi/models/WebhookSubscribeRequest.js +1 -0
- package/dist/openapi/models/all.d.ts +6 -0
- package/dist/openapi/models/all.js +6 -0
- package/dist/openapi/servers.js +2 -3
- package/dist/openapi/types/ObservableAPI.d.ts +71 -38
- package/dist/openapi/types/ObservableAPI.js +172 -105
- package/dist/openapi/types/PromiseAPI.d.ts +69 -38
- package/dist/openapi/types/PromiseAPI.js +85 -42
- package/dist/openapi-v2/apis/AuthenticationApi.js +35 -49
- package/dist/openapi-v2/apis/CustomersApi.d.ts +15 -9
- package/dist/openapi-v2/apis/CustomersApi.js +245 -278
- package/dist/openapi-v2/apis/EntitlementsApi.d.ts +6 -3
- package/dist/openapi-v2/apis/EntitlementsApi.js +104 -125
- package/dist/openapi-v2/apis/EventsApi.d.ts +8 -4
- package/dist/openapi-v2/apis/EventsApi.js +144 -169
- package/dist/openapi-v2/apis/InvoicesApi.d.ts +13 -7
- package/dist/openapi-v2/apis/InvoicesApi.js +227 -260
- package/dist/openapi-v2/apis/ProductsApi.d.ts +11 -6
- package/dist/openapi-v2/apis/ProductsApi.js +193 -222
- package/dist/openapi-v2/auth/auth.d.ts +1 -0
- package/dist/openapi-v2/http/http.d.ts +7 -20
- package/dist/openapi-v2/http/http.js +15 -25
- package/dist/openapi-v2/index.d.ts +2 -2
- package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +3 -0
- package/dist/openapi-v2/models/APICreateCustomerPayload.js +1 -0
- package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +3 -0
- package/dist/openapi-v2/models/APICreateInvoicePayload.js +1 -0
- package/dist/openapi-v2/models/APICreateProductPayload.d.ts +3 -0
- package/dist/openapi-v2/models/APICreateProductPayload.js +1 -0
- package/dist/openapi-v2/models/APICustomer.d.ts +3 -0
- package/dist/openapi-v2/models/APICustomer.js +1 -0
- package/dist/openapi-v2/models/APIEntitlement.d.ts +3 -0
- package/dist/openapi-v2/models/APIEntitlement.js +1 -0
- package/dist/openapi-v2/models/APIEvent.d.ts +3 -0
- package/dist/openapi-v2/models/APIEvent.js +1 -0
- package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +3 -0
- package/dist/openapi-v2/models/APIIngestEventPayload.js +1 -0
- package/dist/openapi-v2/models/APIInvoice.d.ts +3 -0
- package/dist/openapi-v2/models/APIInvoice.js +1 -0
- package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +3 -0
- package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +1 -0
- package/dist/openapi-v2/models/APIProduct.d.ts +3 -0
- package/dist/openapi-v2/models/APIProduct.js +1 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +3 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +1 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.d.ts +3 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.js +1 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +3 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +1 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +3 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +1 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +3 -0
- package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +1 -0
- package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +3 -0
- package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +1 -0
- package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +3 -0
- package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +1 -0
- package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +3 -0
- package/dist/openapi-v2/models/APIUpdateProductPayload.js +1 -0
- package/dist/openapi-v2/models/Aggregation.d.ts +3 -0
- package/dist/openapi-v2/models/Aggregation.js +1 -0
- package/dist/openapi-v2/models/Condition.d.ts +3 -0
- package/dist/openapi-v2/models/Condition.js +1 -0
- package/dist/openapi-v2/models/Criterion.d.ts +3 -0
- package/dist/openapi-v2/models/Criterion.js +1 -0
- package/dist/openapi-v2/models/CriterionValue.d.ts +3 -0
- package/dist/openapi-v2/models/CriterionValue.js +1 -0
- package/dist/openapi-v2/models/EntitlementRevision.d.ts +3 -0
- package/dist/openapi-v2/models/EntitlementRevision.js +1 -0
- package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +3 -0
- package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +1 -0
- package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +3 -0
- package/dist/openapi-v2/models/InvoiceProductBreakdown.js +1 -0
- package/dist/openapi-v2/models/Login200Response.d.ts +3 -0
- package/dist/openapi-v2/models/Login200Response.js +1 -0
- package/dist/openapi-v2/models/LoginRequest.d.ts +3 -0
- package/dist/openapi-v2/models/LoginRequest.js +1 -0
- package/dist/openapi-v2/models/ObjectSerializer.d.ts +1 -2
- package/dist/openapi-v2/models/ObjectSerializer.js +53 -17
- package/dist/openapi-v2/models/Pricing.d.ts +5 -0
- package/dist/openapi-v2/models/Pricing.js +7 -0
- package/dist/openapi-v2/models/PricingCadence.d.ts +18 -0
- package/dist/openapi-v2/models/PricingCadence.js +22 -0
- package/dist/openapi-v2/models/PricingTiersInner.d.ts +3 -0
- package/dist/openapi-v2/models/PricingTiersInner.js +1 -0
- package/dist/openapi-v2/models/ProductBreakdown.d.ts +3 -0
- package/dist/openapi-v2/models/ProductBreakdown.js +1 -0
- package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +3 -0
- package/dist/openapi-v2/models/QueryResultAPICustomer.js +1 -0
- package/dist/openapi-v2/models/QueryResultAPIEntitlement.d.ts +3 -0
- package/dist/openapi-v2/models/QueryResultAPIEntitlement.js +1 -0
- package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +3 -0
- package/dist/openapi-v2/models/QueryResultAPIEvent.js +1 -0
- package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +3 -0
- package/dist/openapi-v2/models/QueryResultAPIInvoice.js +1 -0
- package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +3 -0
- package/dist/openapi-v2/models/QueryResultAPIProduct.js +1 -0
- package/dist/openapi-v2/models/ReviseEntitlementPayload.d.ts +3 -0
- package/dist/openapi-v2/models/ReviseEntitlementPayload.js +1 -0
- package/dist/openapi-v2/models/all.d.ts +1 -2
- package/dist/openapi-v2/models/all.js +1 -2
- package/dist/openapi-v2/servers.js +2 -3
- package/dist/openapi-v2/types/ObservableAPI.d.ts +106 -58
- package/dist/openapi-v2/types/ObservableAPI.js +156 -108
- package/dist/openapi-v2/types/PromiseAPI.d.ts +106 -58
- package/dist/openapi-v2/types/PromiseAPI.js +106 -58
- package/dist/sdk/clients/ContractsClient.js +10 -27
- package/dist/sdk/clients/CustomersClient.js +14 -35
- package/dist/sdk/clients/EventsClient.js +13 -32
- package/dist/sdk/clients/InvoicesClient.js +6 -19
- package/dist/sdk/clients/MetersClient.js +10 -27
- package/dist/sdk/clients/PlansClient.js +8 -23
- package/dist/sdk/clients/ProductsConsumptionsClient.d.ts +5 -0
- package/dist/sdk/clients/ProductsConsumptionsClient.js +14 -0
- package/dist/sdk/clients/WebhooksClient.js +2 -13
- package/dist/sdk/clients/index.d.ts +1 -0
- package/dist/sdk/clients/index.js +1 -0
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +5 -13
- package/dist/sdk/services/configuration.service.js +21 -33
- package/dist/sdk-v2/clients/CustomersClient.js +12 -33
- package/dist/sdk-v2/clients/EntitlementsClient.js +6 -21
- package/dist/sdk-v2/clients/EventsClient.js +8 -25
- package/dist/sdk-v2/clients/InvoicesClient.js +12 -33
- package/dist/sdk-v2/clients/ProductsClient.js +10 -29
- package/dist/sdk-v2/index.js +2 -13
- package/dist/sdk-v2/services/configuration.service.js +22 -34
- package/dist/sdk-v2/types/index.d.ts +1 -1
- package/dist/sdk-v2/types/index.js +2 -1
- package/package.json +1 -1
- package/dist/openapi-v2/models/Event.d.ts +0 -54
- package/dist/openapi-v2/models/Event.js +0 -85
- package/dist/openapi-v2/models/UpdateEventPayload.js +0 -31
|
@@ -17,13 +17,13 @@ class ObservableAuthenticationApi {
|
|
|
17
17
|
const requestContextPromise = this.requestFactory.login(loginRequest, _options);
|
|
18
18
|
// build promise chain
|
|
19
19
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
20
|
-
for (
|
|
20
|
+
for (const middleware of this.configuration.middleware) {
|
|
21
21
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
22
22
|
}
|
|
23
23
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
24
24
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
25
25
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
26
|
-
for (
|
|
26
|
+
for (const middleware of this.configuration.middleware) {
|
|
27
27
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
28
28
|
}
|
|
29
29
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.loginWithHttpInfo(rsp)));
|
|
@@ -45,157 +45,169 @@ class ObservableCustomersApi {
|
|
|
45
45
|
this.responseProcessor = responseProcessor || new CustomersApi_1.CustomersApiResponseProcessor();
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Create a new customer.
|
|
49
|
+
* @param aPICreateCustomerPayload - The details of the customer to create.
|
|
49
50
|
*/
|
|
50
51
|
createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
|
|
51
52
|
const requestContextPromise = this.requestFactory.createCustomer(aPICreateCustomerPayload, _options);
|
|
52
53
|
// build promise chain
|
|
53
54
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
54
|
-
for (
|
|
55
|
+
for (const middleware of this.configuration.middleware) {
|
|
55
56
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
56
57
|
}
|
|
57
58
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
58
59
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
59
60
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
60
|
-
for (
|
|
61
|
+
for (const middleware of this.configuration.middleware) {
|
|
61
62
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
62
63
|
}
|
|
63
64
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCustomerWithHttpInfo(rsp)));
|
|
64
65
|
}));
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
+
* Create a new customer.
|
|
69
|
+
* @param aPICreateCustomerPayload - The details of the customer to create.
|
|
68
70
|
*/
|
|
69
71
|
createCustomer(aPICreateCustomerPayload, _options) {
|
|
70
72
|
return this.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
71
73
|
}
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
75
|
+
* Delete a customer by ID.
|
|
76
|
+
* @param id - The ID of the customer to delete.
|
|
74
77
|
*/
|
|
75
78
|
deleteCustomerWithHttpInfo(id, _options) {
|
|
76
79
|
const requestContextPromise = this.requestFactory.deleteCustomer(id, _options);
|
|
77
80
|
// build promise chain
|
|
78
81
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
79
|
-
for (
|
|
82
|
+
for (const middleware of this.configuration.middleware) {
|
|
80
83
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
81
84
|
}
|
|
82
85
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
83
86
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
84
87
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
85
|
-
for (
|
|
88
|
+
for (const middleware of this.configuration.middleware) {
|
|
86
89
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
87
90
|
}
|
|
88
91
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteCustomerWithHttpInfo(rsp)));
|
|
89
92
|
}));
|
|
90
93
|
}
|
|
91
94
|
/**
|
|
92
|
-
*
|
|
95
|
+
* Delete a customer by ID.
|
|
96
|
+
* @param id - The ID of the customer to delete.
|
|
93
97
|
*/
|
|
94
98
|
deleteCustomer(id, _options) {
|
|
95
99
|
return this.deleteCustomerWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
96
100
|
}
|
|
97
101
|
/**
|
|
98
|
-
*
|
|
102
|
+
* Get a single customer by ID.
|
|
103
|
+
* @param id - The ID of the customer to fetch.
|
|
99
104
|
*/
|
|
100
105
|
getCustomerWithHttpInfo(id, _options) {
|
|
101
106
|
const requestContextPromise = this.requestFactory.getCustomer(id, _options);
|
|
102
107
|
// build promise chain
|
|
103
108
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
104
|
-
for (
|
|
109
|
+
for (const middleware of this.configuration.middleware) {
|
|
105
110
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
106
111
|
}
|
|
107
112
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
108
113
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
109
114
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
110
|
-
for (
|
|
115
|
+
for (const middleware of this.configuration.middleware) {
|
|
111
116
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
112
117
|
}
|
|
113
118
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerWithHttpInfo(rsp)));
|
|
114
119
|
}));
|
|
115
120
|
}
|
|
116
121
|
/**
|
|
117
|
-
*
|
|
122
|
+
* Get a single customer by ID.
|
|
123
|
+
* @param id - The ID of the customer to fetch.
|
|
118
124
|
*/
|
|
119
125
|
getCustomer(id, _options) {
|
|
120
126
|
return this.getCustomerWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
121
127
|
}
|
|
122
128
|
/**
|
|
123
|
-
*
|
|
129
|
+
* Query customers based on filters and pagination.
|
|
130
|
+
* @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
|
|
124
131
|
*/
|
|
125
132
|
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
|
|
126
133
|
const requestContextPromise = this.requestFactory.queryCustomers(aPIQueryPayloadAPICustomer, _options);
|
|
127
134
|
// build promise chain
|
|
128
135
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
129
|
-
for (
|
|
136
|
+
for (const middleware of this.configuration.middleware) {
|
|
130
137
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
131
138
|
}
|
|
132
139
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
133
140
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
134
141
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
135
|
-
for (
|
|
142
|
+
for (const middleware of this.configuration.middleware) {
|
|
136
143
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
137
144
|
}
|
|
138
145
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryCustomersWithHttpInfo(rsp)));
|
|
139
146
|
}));
|
|
140
147
|
}
|
|
141
148
|
/**
|
|
142
|
-
*
|
|
149
|
+
* Query customers based on filters and pagination.
|
|
150
|
+
* @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
|
|
143
151
|
*/
|
|
144
152
|
queryCustomers(aPIQueryPayloadAPICustomer, _options) {
|
|
145
153
|
return this.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
146
154
|
}
|
|
147
155
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @param
|
|
150
|
-
* @param
|
|
156
|
+
* Revise a customer\'s product.
|
|
157
|
+
* @param body - The details of the revision to apply.
|
|
158
|
+
* @param id - The ID of the customer to revise.
|
|
159
|
+
* @param productId - The ID of the product to revise.
|
|
151
160
|
*/
|
|
152
161
|
updateACustomersProductWithHttpInfo(body, id, productId, _options) {
|
|
153
162
|
const requestContextPromise = this.requestFactory.updateACustomersProduct(body, id, productId, _options);
|
|
154
163
|
// build promise chain
|
|
155
164
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
156
|
-
for (
|
|
165
|
+
for (const middleware of this.configuration.middleware) {
|
|
157
166
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
158
167
|
}
|
|
159
168
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
160
169
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
161
170
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
162
|
-
for (
|
|
171
|
+
for (const middleware of this.configuration.middleware) {
|
|
163
172
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
164
173
|
}
|
|
165
174
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateACustomersProductWithHttpInfo(rsp)));
|
|
166
175
|
}));
|
|
167
176
|
}
|
|
168
177
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @param
|
|
171
|
-
* @param
|
|
178
|
+
* Revise a customer\'s product.
|
|
179
|
+
* @param body - The details of the revision to apply.
|
|
180
|
+
* @param id - The ID of the customer to revise.
|
|
181
|
+
* @param productId - The ID of the product to revise.
|
|
172
182
|
*/
|
|
173
183
|
updateACustomersProduct(body, id, productId, _options) {
|
|
174
184
|
return this.updateACustomersProductWithHttpInfo(body, id, productId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
175
185
|
}
|
|
176
186
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @param
|
|
187
|
+
* Update an existing customer.
|
|
188
|
+
* @param aPIUpdateCustomerPayload - The updated details of the customer.
|
|
189
|
+
* @param id - The ID of the customer to update.
|
|
179
190
|
*/
|
|
180
191
|
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
|
|
181
192
|
const requestContextPromise = this.requestFactory.updateCustomer(aPIUpdateCustomerPayload, id, _options);
|
|
182
193
|
// build promise chain
|
|
183
194
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
184
|
-
for (
|
|
195
|
+
for (const middleware of this.configuration.middleware) {
|
|
185
196
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
186
197
|
}
|
|
187
198
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
188
199
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
189
200
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
190
|
-
for (
|
|
201
|
+
for (const middleware of this.configuration.middleware) {
|
|
191
202
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
192
203
|
}
|
|
193
204
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateCustomerWithHttpInfo(rsp)));
|
|
194
205
|
}));
|
|
195
206
|
}
|
|
196
207
|
/**
|
|
197
|
-
*
|
|
198
|
-
* @param
|
|
208
|
+
* Update an existing customer.
|
|
209
|
+
* @param aPIUpdateCustomerPayload - The updated details of the customer.
|
|
210
|
+
* @param id - The ID of the customer to update.
|
|
199
211
|
*/
|
|
200
212
|
updateCustomer(aPIUpdateCustomerPayload, id, _options) {
|
|
201
213
|
return this.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -210,76 +222,82 @@ class ObservableEntitlementsApi {
|
|
|
210
222
|
this.responseProcessor = responseProcessor || new EntitlementsApi_1.EntitlementsApiResponseProcessor();
|
|
211
223
|
}
|
|
212
224
|
/**
|
|
213
|
-
*
|
|
225
|
+
* Delete an entitlement by ID.
|
|
226
|
+
* @param id - The ID of the entitlement to delete.
|
|
214
227
|
*/
|
|
215
228
|
deleteEntitlementWithHttpInfo(id, _options) {
|
|
216
229
|
const requestContextPromise = this.requestFactory.deleteEntitlement(id, _options);
|
|
217
230
|
// build promise chain
|
|
218
231
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
219
|
-
for (
|
|
232
|
+
for (const middleware of this.configuration.middleware) {
|
|
220
233
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
221
234
|
}
|
|
222
235
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
223
236
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
224
237
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
225
|
-
for (
|
|
238
|
+
for (const middleware of this.configuration.middleware) {
|
|
226
239
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
227
240
|
}
|
|
228
241
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEntitlementWithHttpInfo(rsp)));
|
|
229
242
|
}));
|
|
230
243
|
}
|
|
231
244
|
/**
|
|
232
|
-
*
|
|
245
|
+
* Delete an entitlement by ID.
|
|
246
|
+
* @param id - The ID of the entitlement to delete.
|
|
233
247
|
*/
|
|
234
248
|
deleteEntitlement(id, _options) {
|
|
235
249
|
return this.deleteEntitlementWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
236
250
|
}
|
|
237
251
|
/**
|
|
238
|
-
*
|
|
252
|
+
* Get a single entitlement by ID.
|
|
253
|
+
* @param id - The ID of the entitlement to fetch.
|
|
239
254
|
*/
|
|
240
255
|
getEntitlementWithHttpInfo(id, _options) {
|
|
241
256
|
const requestContextPromise = this.requestFactory.getEntitlement(id, _options);
|
|
242
257
|
// build promise chain
|
|
243
258
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
244
|
-
for (
|
|
259
|
+
for (const middleware of this.configuration.middleware) {
|
|
245
260
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
246
261
|
}
|
|
247
262
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
248
263
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
249
264
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
250
|
-
for (
|
|
265
|
+
for (const middleware of this.configuration.middleware) {
|
|
251
266
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
252
267
|
}
|
|
253
268
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEntitlementWithHttpInfo(rsp)));
|
|
254
269
|
}));
|
|
255
270
|
}
|
|
256
271
|
/**
|
|
257
|
-
*
|
|
272
|
+
* Get a single entitlement by ID.
|
|
273
|
+
* @param id - The ID of the entitlement to fetch.
|
|
258
274
|
*/
|
|
259
275
|
getEntitlement(id, _options) {
|
|
260
276
|
return this.getEntitlementWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
261
277
|
}
|
|
262
278
|
/**
|
|
263
|
-
*
|
|
279
|
+
* Query entitlements based on filters and pagination.
|
|
280
|
+
* @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
|
|
264
281
|
*/
|
|
265
282
|
queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options) {
|
|
266
283
|
const requestContextPromise = this.requestFactory.queryEntitlements(aPIQueryPayloadAPIEntitlement, _options);
|
|
267
284
|
// build promise chain
|
|
268
285
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
269
|
-
for (
|
|
286
|
+
for (const middleware of this.configuration.middleware) {
|
|
270
287
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
271
288
|
}
|
|
272
289
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
273
290
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
274
291
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
275
|
-
for (
|
|
292
|
+
for (const middleware of this.configuration.middleware) {
|
|
276
293
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
277
294
|
}
|
|
278
295
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryEntitlementsWithHttpInfo(rsp)));
|
|
279
296
|
}));
|
|
280
297
|
}
|
|
281
298
|
/**
|
|
282
|
-
*
|
|
299
|
+
* Query entitlements based on filters and pagination.
|
|
300
|
+
* @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
|
|
283
301
|
*/
|
|
284
302
|
queryEntitlements(aPIQueryPayloadAPIEntitlement, _options) {
|
|
285
303
|
return this.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -294,101 +312,109 @@ class ObservableEventsApi {
|
|
|
294
312
|
this.responseProcessor = responseProcessor || new EventsApi_1.EventsApiResponseProcessor();
|
|
295
313
|
}
|
|
296
314
|
/**
|
|
297
|
-
*
|
|
315
|
+
* Delete an event by ID.
|
|
316
|
+
* @param id - The ID of the event to delete.
|
|
298
317
|
*/
|
|
299
318
|
deleteEventWithHttpInfo(id, _options) {
|
|
300
319
|
const requestContextPromise = this.requestFactory.deleteEvent(id, _options);
|
|
301
320
|
// build promise chain
|
|
302
321
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
303
|
-
for (
|
|
322
|
+
for (const middleware of this.configuration.middleware) {
|
|
304
323
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
305
324
|
}
|
|
306
325
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
307
326
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
308
327
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
309
|
-
for (
|
|
328
|
+
for (const middleware of this.configuration.middleware) {
|
|
310
329
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
311
330
|
}
|
|
312
331
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEventWithHttpInfo(rsp)));
|
|
313
332
|
}));
|
|
314
333
|
}
|
|
315
334
|
/**
|
|
316
|
-
*
|
|
335
|
+
* Delete an event by ID.
|
|
336
|
+
* @param id - The ID of the event to delete.
|
|
317
337
|
*/
|
|
318
338
|
deleteEvent(id, _options) {
|
|
319
339
|
return this.deleteEventWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
320
340
|
}
|
|
321
341
|
/**
|
|
322
|
-
*
|
|
342
|
+
* Get a single event by ID.
|
|
343
|
+
* @param id - The ID of the event to fetch.
|
|
323
344
|
*/
|
|
324
345
|
getEventWithHttpInfo(id, _options) {
|
|
325
346
|
const requestContextPromise = this.requestFactory.getEvent(id, _options);
|
|
326
347
|
// build promise chain
|
|
327
348
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
328
|
-
for (
|
|
349
|
+
for (const middleware of this.configuration.middleware) {
|
|
329
350
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
330
351
|
}
|
|
331
352
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
332
353
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
333
354
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
334
|
-
for (
|
|
355
|
+
for (const middleware of this.configuration.middleware) {
|
|
335
356
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
336
357
|
}
|
|
337
358
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEventWithHttpInfo(rsp)));
|
|
338
359
|
}));
|
|
339
360
|
}
|
|
340
361
|
/**
|
|
341
|
-
*
|
|
362
|
+
* Get a single event by ID.
|
|
363
|
+
* @param id - The ID of the event to fetch.
|
|
342
364
|
*/
|
|
343
365
|
getEvent(id, _options) {
|
|
344
366
|
return this.getEventWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
345
367
|
}
|
|
346
368
|
/**
|
|
347
|
-
*
|
|
369
|
+
* Ingest events to the system
|
|
370
|
+
* @param aPIIngestEventPayload - The events to ingest
|
|
348
371
|
*/
|
|
349
372
|
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
|
|
350
373
|
const requestContextPromise = this.requestFactory.ingestEventToTheSystem(aPIIngestEventPayload, _options);
|
|
351
374
|
// build promise chain
|
|
352
375
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
353
|
-
for (
|
|
376
|
+
for (const middleware of this.configuration.middleware) {
|
|
354
377
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
355
378
|
}
|
|
356
379
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
357
380
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
358
381
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
359
|
-
for (
|
|
382
|
+
for (const middleware of this.configuration.middleware) {
|
|
360
383
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
361
384
|
}
|
|
362
385
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.ingestEventToTheSystemWithHttpInfo(rsp)));
|
|
363
386
|
}));
|
|
364
387
|
}
|
|
365
388
|
/**
|
|
366
|
-
*
|
|
389
|
+
* Ingest events to the system
|
|
390
|
+
* @param aPIIngestEventPayload - The events to ingest
|
|
367
391
|
*/
|
|
368
392
|
ingestEventToTheSystem(aPIIngestEventPayload, _options) {
|
|
369
393
|
return this.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
370
394
|
}
|
|
371
395
|
/**
|
|
372
|
-
*
|
|
396
|
+
* Query events based on filters and pagination.
|
|
397
|
+
* @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
|
|
373
398
|
*/
|
|
374
399
|
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
|
|
375
400
|
const requestContextPromise = this.requestFactory.queryEvents(aPIQueryPayloadAPIEvent, _options);
|
|
376
401
|
// build promise chain
|
|
377
402
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
378
|
-
for (
|
|
403
|
+
for (const middleware of this.configuration.middleware) {
|
|
379
404
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
380
405
|
}
|
|
381
406
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
382
407
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
383
408
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
384
|
-
for (
|
|
409
|
+
for (const middleware of this.configuration.middleware) {
|
|
385
410
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
386
411
|
}
|
|
387
412
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryEventsWithHttpInfo(rsp)));
|
|
388
413
|
}));
|
|
389
414
|
}
|
|
390
415
|
/**
|
|
391
|
-
*
|
|
416
|
+
* Query events based on filters and pagination.
|
|
417
|
+
* @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
|
|
392
418
|
*/
|
|
393
419
|
queryEvents(aPIQueryPayloadAPIEvent, _options) {
|
|
394
420
|
return this.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -403,153 +429,165 @@ class ObservableInvoicesApi {
|
|
|
403
429
|
this.responseProcessor = responseProcessor || new InvoicesApi_1.InvoicesApiResponseProcessor();
|
|
404
430
|
}
|
|
405
431
|
/**
|
|
406
|
-
*
|
|
432
|
+
* Calculate the total of an invoice.
|
|
433
|
+
* @param id - The ID of the invoice to calculate.
|
|
407
434
|
*/
|
|
408
435
|
calculateInvoiceWithHttpInfo(id, _options) {
|
|
409
436
|
const requestContextPromise = this.requestFactory.calculateInvoice(id, _options);
|
|
410
437
|
// build promise chain
|
|
411
438
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
412
|
-
for (
|
|
439
|
+
for (const middleware of this.configuration.middleware) {
|
|
413
440
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
414
441
|
}
|
|
415
442
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
416
443
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
417
444
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
418
|
-
for (
|
|
445
|
+
for (const middleware of this.configuration.middleware) {
|
|
419
446
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
420
447
|
}
|
|
421
448
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.calculateInvoiceWithHttpInfo(rsp)));
|
|
422
449
|
}));
|
|
423
450
|
}
|
|
424
451
|
/**
|
|
425
|
-
*
|
|
452
|
+
* Calculate the total of an invoice.
|
|
453
|
+
* @param id - The ID of the invoice to calculate.
|
|
426
454
|
*/
|
|
427
455
|
calculateInvoice(id, _options) {
|
|
428
456
|
return this.calculateInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
429
457
|
}
|
|
430
458
|
/**
|
|
431
|
-
*
|
|
459
|
+
* Create a new invoice.
|
|
460
|
+
* @param aPICreateInvoicePayload - The details of the invoice to create.
|
|
432
461
|
*/
|
|
433
462
|
createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
|
|
434
463
|
const requestContextPromise = this.requestFactory.createInvoice(aPICreateInvoicePayload, _options);
|
|
435
464
|
// build promise chain
|
|
436
465
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
437
|
-
for (
|
|
466
|
+
for (const middleware of this.configuration.middleware) {
|
|
438
467
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
439
468
|
}
|
|
440
469
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
441
470
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
442
471
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
443
|
-
for (
|
|
472
|
+
for (const middleware of this.configuration.middleware) {
|
|
444
473
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
445
474
|
}
|
|
446
475
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createInvoiceWithHttpInfo(rsp)));
|
|
447
476
|
}));
|
|
448
477
|
}
|
|
449
478
|
/**
|
|
450
|
-
*
|
|
479
|
+
* Create a new invoice.
|
|
480
|
+
* @param aPICreateInvoicePayload - The details of the invoice to create.
|
|
451
481
|
*/
|
|
452
482
|
createInvoice(aPICreateInvoicePayload, _options) {
|
|
453
483
|
return this.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
454
484
|
}
|
|
455
485
|
/**
|
|
456
|
-
*
|
|
486
|
+
* Delete an invoice by ID.
|
|
487
|
+
* @param id - The ID of the invoice to delete.
|
|
457
488
|
*/
|
|
458
489
|
deleteInvoiceWithHttpInfo(id, _options) {
|
|
459
490
|
const requestContextPromise = this.requestFactory.deleteInvoice(id, _options);
|
|
460
491
|
// build promise chain
|
|
461
492
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
462
|
-
for (
|
|
493
|
+
for (const middleware of this.configuration.middleware) {
|
|
463
494
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
464
495
|
}
|
|
465
496
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
466
497
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
467
498
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
468
|
-
for (
|
|
499
|
+
for (const middleware of this.configuration.middleware) {
|
|
469
500
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
470
501
|
}
|
|
471
502
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteInvoiceWithHttpInfo(rsp)));
|
|
472
503
|
}));
|
|
473
504
|
}
|
|
474
505
|
/**
|
|
475
|
-
*
|
|
506
|
+
* Delete an invoice by ID.
|
|
507
|
+
* @param id - The ID of the invoice to delete.
|
|
476
508
|
*/
|
|
477
509
|
deleteInvoice(id, _options) {
|
|
478
510
|
return this.deleteInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
479
511
|
}
|
|
480
512
|
/**
|
|
481
|
-
*
|
|
513
|
+
* Get a single invoice by ID.
|
|
514
|
+
* @param id - The ID of the invoice to fetch.
|
|
482
515
|
*/
|
|
483
516
|
getInvoiceWithHttpInfo(id, _options) {
|
|
484
517
|
const requestContextPromise = this.requestFactory.getInvoice(id, _options);
|
|
485
518
|
// build promise chain
|
|
486
519
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
487
|
-
for (
|
|
520
|
+
for (const middleware of this.configuration.middleware) {
|
|
488
521
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
489
522
|
}
|
|
490
523
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
491
524
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
492
525
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
493
|
-
for (
|
|
526
|
+
for (const middleware of this.configuration.middleware) {
|
|
494
527
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
495
528
|
}
|
|
496
529
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getInvoiceWithHttpInfo(rsp)));
|
|
497
530
|
}));
|
|
498
531
|
}
|
|
499
532
|
/**
|
|
500
|
-
*
|
|
533
|
+
* Get a single invoice by ID.
|
|
534
|
+
* @param id - The ID of the invoice to fetch.
|
|
501
535
|
*/
|
|
502
536
|
getInvoice(id, _options) {
|
|
503
537
|
return this.getInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
504
538
|
}
|
|
505
539
|
/**
|
|
506
|
-
*
|
|
540
|
+
* Query invoices based on filters and pagination.
|
|
541
|
+
* @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
|
|
507
542
|
*/
|
|
508
543
|
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
|
|
509
544
|
const requestContextPromise = this.requestFactory.queryInvoices(aPIQueryPayloadAPIInvoice, _options);
|
|
510
545
|
// build promise chain
|
|
511
546
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
512
|
-
for (
|
|
547
|
+
for (const middleware of this.configuration.middleware) {
|
|
513
548
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
514
549
|
}
|
|
515
550
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
516
551
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
517
552
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
518
|
-
for (
|
|
553
|
+
for (const middleware of this.configuration.middleware) {
|
|
519
554
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
520
555
|
}
|
|
521
556
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryInvoicesWithHttpInfo(rsp)));
|
|
522
557
|
}));
|
|
523
558
|
}
|
|
524
559
|
/**
|
|
525
|
-
*
|
|
560
|
+
* Query invoices based on filters and pagination.
|
|
561
|
+
* @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
|
|
526
562
|
*/
|
|
527
563
|
queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
|
|
528
564
|
return this.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
529
565
|
}
|
|
530
566
|
/**
|
|
531
|
-
*
|
|
532
|
-
* @param
|
|
567
|
+
* Update an existing invoice.
|
|
568
|
+
* @param aPIUpdateInvoicePayload - The updated details of the invoice.
|
|
569
|
+
* @param id - The ID of the invoice to update.
|
|
533
570
|
*/
|
|
534
571
|
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
|
|
535
572
|
const requestContextPromise = this.requestFactory.updateInvoice(aPIUpdateInvoicePayload, id, _options);
|
|
536
573
|
// build promise chain
|
|
537
574
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
538
|
-
for (
|
|
575
|
+
for (const middleware of this.configuration.middleware) {
|
|
539
576
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
540
577
|
}
|
|
541
578
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
542
579
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
543
580
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
544
|
-
for (
|
|
581
|
+
for (const middleware of this.configuration.middleware) {
|
|
545
582
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
546
583
|
}
|
|
547
584
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateInvoiceWithHttpInfo(rsp)));
|
|
548
585
|
}));
|
|
549
586
|
}
|
|
550
587
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @param
|
|
588
|
+
* Update an existing invoice.
|
|
589
|
+
* @param aPIUpdateInvoicePayload - The updated details of the invoice.
|
|
590
|
+
* @param id - The ID of the invoice to update.
|
|
553
591
|
*/
|
|
554
592
|
updateInvoice(aPIUpdateInvoicePayload, id, _options) {
|
|
555
593
|
return this.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -564,128 +602,138 @@ class ObservableProductsApi {
|
|
|
564
602
|
this.responseProcessor = responseProcessor || new ProductsApi_1.ProductsApiResponseProcessor();
|
|
565
603
|
}
|
|
566
604
|
/**
|
|
567
|
-
*
|
|
605
|
+
* Create a new product.
|
|
606
|
+
* @param aPICreateProductPayload - The details of the product to create.
|
|
568
607
|
*/
|
|
569
608
|
createProductWithHttpInfo(aPICreateProductPayload, _options) {
|
|
570
609
|
const requestContextPromise = this.requestFactory.createProduct(aPICreateProductPayload, _options);
|
|
571
610
|
// build promise chain
|
|
572
611
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
573
|
-
for (
|
|
612
|
+
for (const middleware of this.configuration.middleware) {
|
|
574
613
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
575
614
|
}
|
|
576
615
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
577
616
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
578
617
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
579
|
-
for (
|
|
618
|
+
for (const middleware of this.configuration.middleware) {
|
|
580
619
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
581
620
|
}
|
|
582
621
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createProductWithHttpInfo(rsp)));
|
|
583
622
|
}));
|
|
584
623
|
}
|
|
585
624
|
/**
|
|
586
|
-
*
|
|
625
|
+
* Create a new product.
|
|
626
|
+
* @param aPICreateProductPayload - The details of the product to create.
|
|
587
627
|
*/
|
|
588
628
|
createProduct(aPICreateProductPayload, _options) {
|
|
589
629
|
return this.createProductWithHttpInfo(aPICreateProductPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
590
630
|
}
|
|
591
631
|
/**
|
|
592
|
-
*
|
|
632
|
+
* Delete a product by ID.
|
|
633
|
+
* @param id - The ID of the product to delete.
|
|
593
634
|
*/
|
|
594
635
|
deleteProductWithHttpInfo(id, _options) {
|
|
595
636
|
const requestContextPromise = this.requestFactory.deleteProduct(id, _options);
|
|
596
637
|
// build promise chain
|
|
597
638
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
598
|
-
for (
|
|
639
|
+
for (const middleware of this.configuration.middleware) {
|
|
599
640
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
600
641
|
}
|
|
601
642
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
602
643
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
603
644
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
604
|
-
for (
|
|
645
|
+
for (const middleware of this.configuration.middleware) {
|
|
605
646
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
606
647
|
}
|
|
607
648
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteProductWithHttpInfo(rsp)));
|
|
608
649
|
}));
|
|
609
650
|
}
|
|
610
651
|
/**
|
|
611
|
-
*
|
|
652
|
+
* Delete a product by ID.
|
|
653
|
+
* @param id - The ID of the product to delete.
|
|
612
654
|
*/
|
|
613
655
|
deleteProduct(id, _options) {
|
|
614
656
|
return this.deleteProductWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
615
657
|
}
|
|
616
658
|
/**
|
|
617
|
-
*
|
|
659
|
+
* Get a single product by ID.
|
|
660
|
+
* @param id - The ID of the product to fetch.
|
|
618
661
|
*/
|
|
619
662
|
getProductWithHttpInfo(id, _options) {
|
|
620
663
|
const requestContextPromise = this.requestFactory.getProduct(id, _options);
|
|
621
664
|
// build promise chain
|
|
622
665
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
623
|
-
for (
|
|
666
|
+
for (const middleware of this.configuration.middleware) {
|
|
624
667
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
625
668
|
}
|
|
626
669
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
627
670
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
628
671
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
629
|
-
for (
|
|
672
|
+
for (const middleware of this.configuration.middleware) {
|
|
630
673
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
631
674
|
}
|
|
632
675
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getProductWithHttpInfo(rsp)));
|
|
633
676
|
}));
|
|
634
677
|
}
|
|
635
678
|
/**
|
|
636
|
-
*
|
|
679
|
+
* Get a single product by ID.
|
|
680
|
+
* @param id - The ID of the product to fetch.
|
|
637
681
|
*/
|
|
638
682
|
getProduct(id, _options) {
|
|
639
683
|
return this.getProductWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
640
684
|
}
|
|
641
685
|
/**
|
|
642
|
-
*
|
|
686
|
+
* Query products based on filters and pagination.
|
|
687
|
+
* @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
|
|
643
688
|
*/
|
|
644
689
|
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
|
|
645
690
|
const requestContextPromise = this.requestFactory.queryProducts(aPIQueryPayloadAPIProduct, _options);
|
|
646
691
|
// build promise chain
|
|
647
692
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
648
|
-
for (
|
|
693
|
+
for (const middleware of this.configuration.middleware) {
|
|
649
694
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
650
695
|
}
|
|
651
696
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
652
697
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
653
698
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
654
|
-
for (
|
|
699
|
+
for (const middleware of this.configuration.middleware) {
|
|
655
700
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
656
701
|
}
|
|
657
702
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryProductsWithHttpInfo(rsp)));
|
|
658
703
|
}));
|
|
659
704
|
}
|
|
660
705
|
/**
|
|
661
|
-
*
|
|
706
|
+
* Query products based on filters and pagination.
|
|
707
|
+
* @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
|
|
662
708
|
*/
|
|
663
709
|
queryProducts(aPIQueryPayloadAPIProduct, _options) {
|
|
664
710
|
return this.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
665
711
|
}
|
|
666
712
|
/**
|
|
667
|
-
*
|
|
668
|
-
* @param
|
|
713
|
+
* Update an existing product.
|
|
714
|
+
* @param aPIUpdateProductPayload - The updated details of the product.
|
|
715
|
+
* @param id - The ID of the product to update.
|
|
669
716
|
*/
|
|
670
717
|
updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
|
|
671
718
|
const requestContextPromise = this.requestFactory.updateProduct(aPIUpdateProductPayload, id, _options);
|
|
672
719
|
// build promise chain
|
|
673
720
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
674
|
-
for (
|
|
721
|
+
for (const middleware of this.configuration.middleware) {
|
|
675
722
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
676
723
|
}
|
|
677
724
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
678
725
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
679
726
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
680
|
-
for (
|
|
727
|
+
for (const middleware of this.configuration.middleware) {
|
|
681
728
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
682
729
|
}
|
|
683
730
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateProductWithHttpInfo(rsp)));
|
|
684
731
|
}));
|
|
685
732
|
}
|
|
686
733
|
/**
|
|
687
|
-
*
|
|
688
|
-
* @param
|
|
734
|
+
* Update an existing product.
|
|
735
|
+
* @param aPIUpdateProductPayload - The updated details of the product.
|
|
736
|
+
* @param id - The ID of the product to update.
|
|
689
737
|
*/
|
|
690
738
|
updateProduct(aPIUpdateProductPayload, id, _options) {
|
|
691
739
|
return this.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|