vayu-ts 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/configuration.d.ts +8 -2
- package/dist/openapi/http/http.d.ts +7 -20
- package/dist/openapi/http/http.js +15 -25
- package/dist/openapi/index.d.ts +4 -3
- package/dist/openapi/index.js +4 -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 +138 -105
- package/dist/openapi/types/ObservableAPI.js +1185 -138
- package/dist/openapi/types/PromiseAPI.d.ts +136 -105
- package/dist/openapi/types/PromiseAPI.js +852 -108
- 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/configuration.d.ts +8 -2
- 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 +3 -2
- package/dist/openapi-v2/index.js +3 -1
- 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 +157 -109
- package/dist/openapi-v2/types/ObservableAPI.js +881 -133
- package/dist/openapi-v2/types/PromiseAPI.d.ts +157 -109
- package/dist/openapi-v2/types/PromiseAPI.js +657 -108
- 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
|
@@ -14,16 +14,44 @@ class ObservableAuthenticationApi {
|
|
|
14
14
|
* @param loginRequest
|
|
15
15
|
*/
|
|
16
16
|
loginWithHttpInfo(loginRequest, _options) {
|
|
17
|
-
|
|
17
|
+
let _config = this.configuration;
|
|
18
|
+
let allMiddleware = [];
|
|
19
|
+
if (_options && _options.middleware) {
|
|
20
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
21
|
+
// call-time middleware provided
|
|
22
|
+
const calltimeMiddleware = _options.middleware;
|
|
23
|
+
switch (middlewareMergeStrategy) {
|
|
24
|
+
case 'append':
|
|
25
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
26
|
+
break;
|
|
27
|
+
case 'prepend':
|
|
28
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
29
|
+
break;
|
|
30
|
+
case 'replace':
|
|
31
|
+
allMiddleware = calltimeMiddleware;
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (_options) {
|
|
38
|
+
_config = {
|
|
39
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
40
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
41
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
42
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const requestContextPromise = this.requestFactory.login(loginRequest, _config);
|
|
18
46
|
// build promise chain
|
|
19
47
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
20
|
-
for (
|
|
48
|
+
for (const middleware of allMiddleware) {
|
|
21
49
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
22
50
|
}
|
|
23
51
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
24
52
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
25
53
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
26
|
-
for (
|
|
54
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
27
55
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
28
56
|
}
|
|
29
57
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.loginWithHttpInfo(rsp)));
|
|
@@ -45,157 +73,337 @@ class ObservableCustomersApi {
|
|
|
45
73
|
this.responseProcessor = responseProcessor || new CustomersApi_1.CustomersApiResponseProcessor();
|
|
46
74
|
}
|
|
47
75
|
/**
|
|
48
|
-
*
|
|
76
|
+
* Create a new customer.
|
|
77
|
+
* @param aPICreateCustomerPayload - The details of the customer to create.
|
|
49
78
|
*/
|
|
50
79
|
createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
|
|
51
|
-
|
|
80
|
+
let _config = this.configuration;
|
|
81
|
+
let allMiddleware = [];
|
|
82
|
+
if (_options && _options.middleware) {
|
|
83
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
84
|
+
// call-time middleware provided
|
|
85
|
+
const calltimeMiddleware = _options.middleware;
|
|
86
|
+
switch (middlewareMergeStrategy) {
|
|
87
|
+
case 'append':
|
|
88
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
89
|
+
break;
|
|
90
|
+
case 'prepend':
|
|
91
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
92
|
+
break;
|
|
93
|
+
case 'replace':
|
|
94
|
+
allMiddleware = calltimeMiddleware;
|
|
95
|
+
break;
|
|
96
|
+
default:
|
|
97
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (_options) {
|
|
101
|
+
_config = {
|
|
102
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
103
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
104
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
105
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
const requestContextPromise = this.requestFactory.createCustomer(aPICreateCustomerPayload, _config);
|
|
52
109
|
// build promise chain
|
|
53
110
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
54
|
-
for (
|
|
111
|
+
for (const middleware of allMiddleware) {
|
|
55
112
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
56
113
|
}
|
|
57
114
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
58
115
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
59
116
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
60
|
-
for (
|
|
117
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
61
118
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
62
119
|
}
|
|
63
120
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCustomerWithHttpInfo(rsp)));
|
|
64
121
|
}));
|
|
65
122
|
}
|
|
66
123
|
/**
|
|
67
|
-
*
|
|
124
|
+
* Create a new customer.
|
|
125
|
+
* @param aPICreateCustomerPayload - The details of the customer to create.
|
|
68
126
|
*/
|
|
69
127
|
createCustomer(aPICreateCustomerPayload, _options) {
|
|
70
128
|
return this.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
71
129
|
}
|
|
72
130
|
/**
|
|
73
|
-
*
|
|
131
|
+
* Delete a customer by ID.
|
|
132
|
+
* @param id - The ID of the customer to delete.
|
|
74
133
|
*/
|
|
75
134
|
deleteCustomerWithHttpInfo(id, _options) {
|
|
76
|
-
|
|
135
|
+
let _config = this.configuration;
|
|
136
|
+
let allMiddleware = [];
|
|
137
|
+
if (_options && _options.middleware) {
|
|
138
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
139
|
+
// call-time middleware provided
|
|
140
|
+
const calltimeMiddleware = _options.middleware;
|
|
141
|
+
switch (middlewareMergeStrategy) {
|
|
142
|
+
case 'append':
|
|
143
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
144
|
+
break;
|
|
145
|
+
case 'prepend':
|
|
146
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
147
|
+
break;
|
|
148
|
+
case 'replace':
|
|
149
|
+
allMiddleware = calltimeMiddleware;
|
|
150
|
+
break;
|
|
151
|
+
default:
|
|
152
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (_options) {
|
|
156
|
+
_config = {
|
|
157
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
158
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
159
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
160
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
const requestContextPromise = this.requestFactory.deleteCustomer(id, _config);
|
|
77
164
|
// build promise chain
|
|
78
165
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
79
|
-
for (
|
|
166
|
+
for (const middleware of allMiddleware) {
|
|
80
167
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
81
168
|
}
|
|
82
169
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
83
170
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
84
171
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
85
|
-
for (
|
|
172
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
86
173
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
87
174
|
}
|
|
88
175
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteCustomerWithHttpInfo(rsp)));
|
|
89
176
|
}));
|
|
90
177
|
}
|
|
91
178
|
/**
|
|
92
|
-
*
|
|
179
|
+
* Delete a customer by ID.
|
|
180
|
+
* @param id - The ID of the customer to delete.
|
|
93
181
|
*/
|
|
94
182
|
deleteCustomer(id, _options) {
|
|
95
183
|
return this.deleteCustomerWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
96
184
|
}
|
|
97
185
|
/**
|
|
98
|
-
*
|
|
186
|
+
* Get a single customer by ID.
|
|
187
|
+
* @param id - The ID of the customer to fetch.
|
|
99
188
|
*/
|
|
100
189
|
getCustomerWithHttpInfo(id, _options) {
|
|
101
|
-
|
|
190
|
+
let _config = this.configuration;
|
|
191
|
+
let allMiddleware = [];
|
|
192
|
+
if (_options && _options.middleware) {
|
|
193
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
194
|
+
// call-time middleware provided
|
|
195
|
+
const calltimeMiddleware = _options.middleware;
|
|
196
|
+
switch (middlewareMergeStrategy) {
|
|
197
|
+
case 'append':
|
|
198
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
199
|
+
break;
|
|
200
|
+
case 'prepend':
|
|
201
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
202
|
+
break;
|
|
203
|
+
case 'replace':
|
|
204
|
+
allMiddleware = calltimeMiddleware;
|
|
205
|
+
break;
|
|
206
|
+
default:
|
|
207
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (_options) {
|
|
211
|
+
_config = {
|
|
212
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
213
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
214
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
215
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
const requestContextPromise = this.requestFactory.getCustomer(id, _config);
|
|
102
219
|
// build promise chain
|
|
103
220
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
104
|
-
for (
|
|
221
|
+
for (const middleware of allMiddleware) {
|
|
105
222
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
106
223
|
}
|
|
107
224
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
108
225
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
109
226
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
110
|
-
for (
|
|
227
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
111
228
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
112
229
|
}
|
|
113
230
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerWithHttpInfo(rsp)));
|
|
114
231
|
}));
|
|
115
232
|
}
|
|
116
233
|
/**
|
|
117
|
-
*
|
|
234
|
+
* Get a single customer by ID.
|
|
235
|
+
* @param id - The ID of the customer to fetch.
|
|
118
236
|
*/
|
|
119
237
|
getCustomer(id, _options) {
|
|
120
238
|
return this.getCustomerWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
121
239
|
}
|
|
122
240
|
/**
|
|
123
|
-
*
|
|
241
|
+
* Query customers based on filters and pagination.
|
|
242
|
+
* @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
|
|
124
243
|
*/
|
|
125
244
|
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
|
|
126
|
-
|
|
245
|
+
let _config = this.configuration;
|
|
246
|
+
let allMiddleware = [];
|
|
247
|
+
if (_options && _options.middleware) {
|
|
248
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
249
|
+
// call-time middleware provided
|
|
250
|
+
const calltimeMiddleware = _options.middleware;
|
|
251
|
+
switch (middlewareMergeStrategy) {
|
|
252
|
+
case 'append':
|
|
253
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
254
|
+
break;
|
|
255
|
+
case 'prepend':
|
|
256
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
257
|
+
break;
|
|
258
|
+
case 'replace':
|
|
259
|
+
allMiddleware = calltimeMiddleware;
|
|
260
|
+
break;
|
|
261
|
+
default:
|
|
262
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
if (_options) {
|
|
266
|
+
_config = {
|
|
267
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
268
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
269
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
270
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
const requestContextPromise = this.requestFactory.queryCustomers(aPIQueryPayloadAPICustomer, _config);
|
|
127
274
|
// build promise chain
|
|
128
275
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
129
|
-
for (
|
|
276
|
+
for (const middleware of allMiddleware) {
|
|
130
277
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
131
278
|
}
|
|
132
279
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
133
280
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
134
281
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
135
|
-
for (
|
|
282
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
136
283
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
137
284
|
}
|
|
138
285
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryCustomersWithHttpInfo(rsp)));
|
|
139
286
|
}));
|
|
140
287
|
}
|
|
141
288
|
/**
|
|
142
|
-
*
|
|
289
|
+
* Query customers based on filters and pagination.
|
|
290
|
+
* @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
|
|
143
291
|
*/
|
|
144
292
|
queryCustomers(aPIQueryPayloadAPICustomer, _options) {
|
|
145
293
|
return this.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
146
294
|
}
|
|
147
295
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @param
|
|
150
|
-
* @param
|
|
296
|
+
* Revise a customer\'s product.
|
|
297
|
+
* @param body - The details of the revision to apply.
|
|
298
|
+
* @param id - The ID of the customer to revise.
|
|
299
|
+
* @param productId - The ID of the product to revise.
|
|
151
300
|
*/
|
|
152
301
|
updateACustomersProductWithHttpInfo(body, id, productId, _options) {
|
|
153
|
-
|
|
302
|
+
let _config = this.configuration;
|
|
303
|
+
let allMiddleware = [];
|
|
304
|
+
if (_options && _options.middleware) {
|
|
305
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
306
|
+
// call-time middleware provided
|
|
307
|
+
const calltimeMiddleware = _options.middleware;
|
|
308
|
+
switch (middlewareMergeStrategy) {
|
|
309
|
+
case 'append':
|
|
310
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
311
|
+
break;
|
|
312
|
+
case 'prepend':
|
|
313
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
314
|
+
break;
|
|
315
|
+
case 'replace':
|
|
316
|
+
allMiddleware = calltimeMiddleware;
|
|
317
|
+
break;
|
|
318
|
+
default:
|
|
319
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (_options) {
|
|
323
|
+
_config = {
|
|
324
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
325
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
326
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
327
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
const requestContextPromise = this.requestFactory.updateACustomersProduct(body, id, productId, _config);
|
|
154
331
|
// build promise chain
|
|
155
332
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
156
|
-
for (
|
|
333
|
+
for (const middleware of allMiddleware) {
|
|
157
334
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
158
335
|
}
|
|
159
336
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
160
337
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
161
338
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
162
|
-
for (
|
|
339
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
163
340
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
164
341
|
}
|
|
165
342
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateACustomersProductWithHttpInfo(rsp)));
|
|
166
343
|
}));
|
|
167
344
|
}
|
|
168
345
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @param
|
|
171
|
-
* @param
|
|
346
|
+
* Revise a customer\'s product.
|
|
347
|
+
* @param body - The details of the revision to apply.
|
|
348
|
+
* @param id - The ID of the customer to revise.
|
|
349
|
+
* @param productId - The ID of the product to revise.
|
|
172
350
|
*/
|
|
173
351
|
updateACustomersProduct(body, id, productId, _options) {
|
|
174
352
|
return this.updateACustomersProductWithHttpInfo(body, id, productId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
175
353
|
}
|
|
176
354
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @param
|
|
355
|
+
* Update an existing customer.
|
|
356
|
+
* @param aPIUpdateCustomerPayload - The updated details of the customer.
|
|
357
|
+
* @param id - The ID of the customer to update.
|
|
179
358
|
*/
|
|
180
359
|
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
|
|
181
|
-
|
|
360
|
+
let _config = this.configuration;
|
|
361
|
+
let allMiddleware = [];
|
|
362
|
+
if (_options && _options.middleware) {
|
|
363
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
364
|
+
// call-time middleware provided
|
|
365
|
+
const calltimeMiddleware = _options.middleware;
|
|
366
|
+
switch (middlewareMergeStrategy) {
|
|
367
|
+
case 'append':
|
|
368
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
369
|
+
break;
|
|
370
|
+
case 'prepend':
|
|
371
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
372
|
+
break;
|
|
373
|
+
case 'replace':
|
|
374
|
+
allMiddleware = calltimeMiddleware;
|
|
375
|
+
break;
|
|
376
|
+
default:
|
|
377
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
if (_options) {
|
|
381
|
+
_config = {
|
|
382
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
383
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
384
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
385
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
const requestContextPromise = this.requestFactory.updateCustomer(aPIUpdateCustomerPayload, id, _config);
|
|
182
389
|
// build promise chain
|
|
183
390
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
184
|
-
for (
|
|
391
|
+
for (const middleware of allMiddleware) {
|
|
185
392
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
186
393
|
}
|
|
187
394
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
188
395
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
189
396
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
190
|
-
for (
|
|
397
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
191
398
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
192
399
|
}
|
|
193
400
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateCustomerWithHttpInfo(rsp)));
|
|
194
401
|
}));
|
|
195
402
|
}
|
|
196
403
|
/**
|
|
197
|
-
*
|
|
198
|
-
* @param
|
|
404
|
+
* Update an existing customer.
|
|
405
|
+
* @param aPIUpdateCustomerPayload - The updated details of the customer.
|
|
406
|
+
* @param id - The ID of the customer to update.
|
|
199
407
|
*/
|
|
200
408
|
updateCustomer(aPIUpdateCustomerPayload, id, _options) {
|
|
201
409
|
return this.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -210,76 +418,166 @@ class ObservableEntitlementsApi {
|
|
|
210
418
|
this.responseProcessor = responseProcessor || new EntitlementsApi_1.EntitlementsApiResponseProcessor();
|
|
211
419
|
}
|
|
212
420
|
/**
|
|
213
|
-
*
|
|
421
|
+
* Delete an entitlement by ID.
|
|
422
|
+
* @param id - The ID of the entitlement to delete.
|
|
214
423
|
*/
|
|
215
424
|
deleteEntitlementWithHttpInfo(id, _options) {
|
|
216
|
-
|
|
425
|
+
let _config = this.configuration;
|
|
426
|
+
let allMiddleware = [];
|
|
427
|
+
if (_options && _options.middleware) {
|
|
428
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
429
|
+
// call-time middleware provided
|
|
430
|
+
const calltimeMiddleware = _options.middleware;
|
|
431
|
+
switch (middlewareMergeStrategy) {
|
|
432
|
+
case 'append':
|
|
433
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
434
|
+
break;
|
|
435
|
+
case 'prepend':
|
|
436
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
437
|
+
break;
|
|
438
|
+
case 'replace':
|
|
439
|
+
allMiddleware = calltimeMiddleware;
|
|
440
|
+
break;
|
|
441
|
+
default:
|
|
442
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (_options) {
|
|
446
|
+
_config = {
|
|
447
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
448
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
449
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
450
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
const requestContextPromise = this.requestFactory.deleteEntitlement(id, _config);
|
|
217
454
|
// build promise chain
|
|
218
455
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
219
|
-
for (
|
|
456
|
+
for (const middleware of allMiddleware) {
|
|
220
457
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
221
458
|
}
|
|
222
459
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
223
460
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
224
461
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
225
|
-
for (
|
|
462
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
226
463
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
227
464
|
}
|
|
228
465
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEntitlementWithHttpInfo(rsp)));
|
|
229
466
|
}));
|
|
230
467
|
}
|
|
231
468
|
/**
|
|
232
|
-
*
|
|
469
|
+
* Delete an entitlement by ID.
|
|
470
|
+
* @param id - The ID of the entitlement to delete.
|
|
233
471
|
*/
|
|
234
472
|
deleteEntitlement(id, _options) {
|
|
235
473
|
return this.deleteEntitlementWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
236
474
|
}
|
|
237
475
|
/**
|
|
238
|
-
*
|
|
476
|
+
* Get a single entitlement by ID.
|
|
477
|
+
* @param id - The ID of the entitlement to fetch.
|
|
239
478
|
*/
|
|
240
479
|
getEntitlementWithHttpInfo(id, _options) {
|
|
241
|
-
|
|
480
|
+
let _config = this.configuration;
|
|
481
|
+
let allMiddleware = [];
|
|
482
|
+
if (_options && _options.middleware) {
|
|
483
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
484
|
+
// call-time middleware provided
|
|
485
|
+
const calltimeMiddleware = _options.middleware;
|
|
486
|
+
switch (middlewareMergeStrategy) {
|
|
487
|
+
case 'append':
|
|
488
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
489
|
+
break;
|
|
490
|
+
case 'prepend':
|
|
491
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
492
|
+
break;
|
|
493
|
+
case 'replace':
|
|
494
|
+
allMiddleware = calltimeMiddleware;
|
|
495
|
+
break;
|
|
496
|
+
default:
|
|
497
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
if (_options) {
|
|
501
|
+
_config = {
|
|
502
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
503
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
504
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
505
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
const requestContextPromise = this.requestFactory.getEntitlement(id, _config);
|
|
242
509
|
// build promise chain
|
|
243
510
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
244
|
-
for (
|
|
511
|
+
for (const middleware of allMiddleware) {
|
|
245
512
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
246
513
|
}
|
|
247
514
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
248
515
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
249
516
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
250
|
-
for (
|
|
517
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
251
518
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
252
519
|
}
|
|
253
520
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEntitlementWithHttpInfo(rsp)));
|
|
254
521
|
}));
|
|
255
522
|
}
|
|
256
523
|
/**
|
|
257
|
-
*
|
|
524
|
+
* Get a single entitlement by ID.
|
|
525
|
+
* @param id - The ID of the entitlement to fetch.
|
|
258
526
|
*/
|
|
259
527
|
getEntitlement(id, _options) {
|
|
260
528
|
return this.getEntitlementWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
261
529
|
}
|
|
262
530
|
/**
|
|
263
|
-
*
|
|
531
|
+
* Query entitlements based on filters and pagination.
|
|
532
|
+
* @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
|
|
264
533
|
*/
|
|
265
534
|
queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options) {
|
|
266
|
-
|
|
535
|
+
let _config = this.configuration;
|
|
536
|
+
let allMiddleware = [];
|
|
537
|
+
if (_options && _options.middleware) {
|
|
538
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
539
|
+
// call-time middleware provided
|
|
540
|
+
const calltimeMiddleware = _options.middleware;
|
|
541
|
+
switch (middlewareMergeStrategy) {
|
|
542
|
+
case 'append':
|
|
543
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
544
|
+
break;
|
|
545
|
+
case 'prepend':
|
|
546
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
547
|
+
break;
|
|
548
|
+
case 'replace':
|
|
549
|
+
allMiddleware = calltimeMiddleware;
|
|
550
|
+
break;
|
|
551
|
+
default:
|
|
552
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
if (_options) {
|
|
556
|
+
_config = {
|
|
557
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
558
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
559
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
560
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
const requestContextPromise = this.requestFactory.queryEntitlements(aPIQueryPayloadAPIEntitlement, _config);
|
|
267
564
|
// build promise chain
|
|
268
565
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
269
|
-
for (
|
|
566
|
+
for (const middleware of allMiddleware) {
|
|
270
567
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
271
568
|
}
|
|
272
569
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
273
570
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
274
571
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
275
|
-
for (
|
|
572
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
276
573
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
277
574
|
}
|
|
278
575
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryEntitlementsWithHttpInfo(rsp)));
|
|
279
576
|
}));
|
|
280
577
|
}
|
|
281
578
|
/**
|
|
282
|
-
*
|
|
579
|
+
* Query entitlements based on filters and pagination.
|
|
580
|
+
* @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
|
|
283
581
|
*/
|
|
284
582
|
queryEntitlements(aPIQueryPayloadAPIEntitlement, _options) {
|
|
285
583
|
return this.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -294,101 +592,221 @@ class ObservableEventsApi {
|
|
|
294
592
|
this.responseProcessor = responseProcessor || new EventsApi_1.EventsApiResponseProcessor();
|
|
295
593
|
}
|
|
296
594
|
/**
|
|
297
|
-
*
|
|
595
|
+
* Delete an event by ID.
|
|
596
|
+
* @param id - The ID of the event to delete.
|
|
298
597
|
*/
|
|
299
598
|
deleteEventWithHttpInfo(id, _options) {
|
|
300
|
-
|
|
599
|
+
let _config = this.configuration;
|
|
600
|
+
let allMiddleware = [];
|
|
601
|
+
if (_options && _options.middleware) {
|
|
602
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
603
|
+
// call-time middleware provided
|
|
604
|
+
const calltimeMiddleware = _options.middleware;
|
|
605
|
+
switch (middlewareMergeStrategy) {
|
|
606
|
+
case 'append':
|
|
607
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
608
|
+
break;
|
|
609
|
+
case 'prepend':
|
|
610
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
611
|
+
break;
|
|
612
|
+
case 'replace':
|
|
613
|
+
allMiddleware = calltimeMiddleware;
|
|
614
|
+
break;
|
|
615
|
+
default:
|
|
616
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
if (_options) {
|
|
620
|
+
_config = {
|
|
621
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
622
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
623
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
624
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
const requestContextPromise = this.requestFactory.deleteEvent(id, _config);
|
|
301
628
|
// build promise chain
|
|
302
629
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
303
|
-
for (
|
|
630
|
+
for (const middleware of allMiddleware) {
|
|
304
631
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
305
632
|
}
|
|
306
633
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
307
634
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
308
635
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
309
|
-
for (
|
|
636
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
310
637
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
311
638
|
}
|
|
312
639
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEventWithHttpInfo(rsp)));
|
|
313
640
|
}));
|
|
314
641
|
}
|
|
315
642
|
/**
|
|
316
|
-
*
|
|
643
|
+
* Delete an event by ID.
|
|
644
|
+
* @param id - The ID of the event to delete.
|
|
317
645
|
*/
|
|
318
646
|
deleteEvent(id, _options) {
|
|
319
647
|
return this.deleteEventWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
320
648
|
}
|
|
321
649
|
/**
|
|
322
|
-
*
|
|
650
|
+
* Get a single event by ID.
|
|
651
|
+
* @param id - The ID of the event to fetch.
|
|
323
652
|
*/
|
|
324
653
|
getEventWithHttpInfo(id, _options) {
|
|
325
|
-
|
|
654
|
+
let _config = this.configuration;
|
|
655
|
+
let allMiddleware = [];
|
|
656
|
+
if (_options && _options.middleware) {
|
|
657
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
658
|
+
// call-time middleware provided
|
|
659
|
+
const calltimeMiddleware = _options.middleware;
|
|
660
|
+
switch (middlewareMergeStrategy) {
|
|
661
|
+
case 'append':
|
|
662
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
663
|
+
break;
|
|
664
|
+
case 'prepend':
|
|
665
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
666
|
+
break;
|
|
667
|
+
case 'replace':
|
|
668
|
+
allMiddleware = calltimeMiddleware;
|
|
669
|
+
break;
|
|
670
|
+
default:
|
|
671
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
if (_options) {
|
|
675
|
+
_config = {
|
|
676
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
677
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
678
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
679
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
const requestContextPromise = this.requestFactory.getEvent(id, _config);
|
|
326
683
|
// build promise chain
|
|
327
684
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
328
|
-
for (
|
|
685
|
+
for (const middleware of allMiddleware) {
|
|
329
686
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
330
687
|
}
|
|
331
688
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
332
689
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
333
690
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
334
|
-
for (
|
|
691
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
335
692
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
336
693
|
}
|
|
337
694
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEventWithHttpInfo(rsp)));
|
|
338
695
|
}));
|
|
339
696
|
}
|
|
340
697
|
/**
|
|
341
|
-
*
|
|
698
|
+
* Get a single event by ID.
|
|
699
|
+
* @param id - The ID of the event to fetch.
|
|
342
700
|
*/
|
|
343
701
|
getEvent(id, _options) {
|
|
344
702
|
return this.getEventWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
345
703
|
}
|
|
346
704
|
/**
|
|
347
|
-
*
|
|
705
|
+
* Ingest events to the system
|
|
706
|
+
* @param aPIIngestEventPayload - The events to ingest
|
|
348
707
|
*/
|
|
349
708
|
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
|
|
350
|
-
|
|
709
|
+
let _config = this.configuration;
|
|
710
|
+
let allMiddleware = [];
|
|
711
|
+
if (_options && _options.middleware) {
|
|
712
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
713
|
+
// call-time middleware provided
|
|
714
|
+
const calltimeMiddleware = _options.middleware;
|
|
715
|
+
switch (middlewareMergeStrategy) {
|
|
716
|
+
case 'append':
|
|
717
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
718
|
+
break;
|
|
719
|
+
case 'prepend':
|
|
720
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
721
|
+
break;
|
|
722
|
+
case 'replace':
|
|
723
|
+
allMiddleware = calltimeMiddleware;
|
|
724
|
+
break;
|
|
725
|
+
default:
|
|
726
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
if (_options) {
|
|
730
|
+
_config = {
|
|
731
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
732
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
733
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
734
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
const requestContextPromise = this.requestFactory.ingestEventToTheSystem(aPIIngestEventPayload, _config);
|
|
351
738
|
// build promise chain
|
|
352
739
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
353
|
-
for (
|
|
740
|
+
for (const middleware of allMiddleware) {
|
|
354
741
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
355
742
|
}
|
|
356
743
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
357
744
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
358
745
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
359
|
-
for (
|
|
746
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
360
747
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
361
748
|
}
|
|
362
749
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.ingestEventToTheSystemWithHttpInfo(rsp)));
|
|
363
750
|
}));
|
|
364
751
|
}
|
|
365
752
|
/**
|
|
366
|
-
*
|
|
753
|
+
* Ingest events to the system
|
|
754
|
+
* @param aPIIngestEventPayload - The events to ingest
|
|
367
755
|
*/
|
|
368
756
|
ingestEventToTheSystem(aPIIngestEventPayload, _options) {
|
|
369
757
|
return this.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
370
758
|
}
|
|
371
759
|
/**
|
|
372
|
-
*
|
|
760
|
+
* Query events based on filters and pagination.
|
|
761
|
+
* @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
|
|
373
762
|
*/
|
|
374
763
|
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
|
|
375
|
-
|
|
764
|
+
let _config = this.configuration;
|
|
765
|
+
let allMiddleware = [];
|
|
766
|
+
if (_options && _options.middleware) {
|
|
767
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
768
|
+
// call-time middleware provided
|
|
769
|
+
const calltimeMiddleware = _options.middleware;
|
|
770
|
+
switch (middlewareMergeStrategy) {
|
|
771
|
+
case 'append':
|
|
772
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
773
|
+
break;
|
|
774
|
+
case 'prepend':
|
|
775
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
776
|
+
break;
|
|
777
|
+
case 'replace':
|
|
778
|
+
allMiddleware = calltimeMiddleware;
|
|
779
|
+
break;
|
|
780
|
+
default:
|
|
781
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
if (_options) {
|
|
785
|
+
_config = {
|
|
786
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
787
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
788
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
789
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
const requestContextPromise = this.requestFactory.queryEvents(aPIQueryPayloadAPIEvent, _config);
|
|
376
793
|
// build promise chain
|
|
377
794
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
378
|
-
for (
|
|
795
|
+
for (const middleware of allMiddleware) {
|
|
379
796
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
380
797
|
}
|
|
381
798
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
382
799
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
383
800
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
384
|
-
for (
|
|
801
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
385
802
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
386
803
|
}
|
|
387
804
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryEventsWithHttpInfo(rsp)));
|
|
388
805
|
}));
|
|
389
806
|
}
|
|
390
807
|
/**
|
|
391
|
-
*
|
|
808
|
+
* Query events based on filters and pagination.
|
|
809
|
+
* @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
|
|
392
810
|
*/
|
|
393
811
|
queryEvents(aPIQueryPayloadAPIEvent, _options) {
|
|
394
812
|
return this.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -403,153 +821,333 @@ class ObservableInvoicesApi {
|
|
|
403
821
|
this.responseProcessor = responseProcessor || new InvoicesApi_1.InvoicesApiResponseProcessor();
|
|
404
822
|
}
|
|
405
823
|
/**
|
|
406
|
-
*
|
|
824
|
+
* Calculate the total of an invoice.
|
|
825
|
+
* @param id - The ID of the invoice to calculate.
|
|
407
826
|
*/
|
|
408
827
|
calculateInvoiceWithHttpInfo(id, _options) {
|
|
409
|
-
|
|
828
|
+
let _config = this.configuration;
|
|
829
|
+
let allMiddleware = [];
|
|
830
|
+
if (_options && _options.middleware) {
|
|
831
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
832
|
+
// call-time middleware provided
|
|
833
|
+
const calltimeMiddleware = _options.middleware;
|
|
834
|
+
switch (middlewareMergeStrategy) {
|
|
835
|
+
case 'append':
|
|
836
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
837
|
+
break;
|
|
838
|
+
case 'prepend':
|
|
839
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
840
|
+
break;
|
|
841
|
+
case 'replace':
|
|
842
|
+
allMiddleware = calltimeMiddleware;
|
|
843
|
+
break;
|
|
844
|
+
default:
|
|
845
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (_options) {
|
|
849
|
+
_config = {
|
|
850
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
851
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
852
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
853
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
const requestContextPromise = this.requestFactory.calculateInvoice(id, _config);
|
|
410
857
|
// build promise chain
|
|
411
858
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
412
|
-
for (
|
|
859
|
+
for (const middleware of allMiddleware) {
|
|
413
860
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
414
861
|
}
|
|
415
862
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
416
863
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
417
864
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
418
|
-
for (
|
|
865
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
419
866
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
420
867
|
}
|
|
421
868
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.calculateInvoiceWithHttpInfo(rsp)));
|
|
422
869
|
}));
|
|
423
870
|
}
|
|
424
871
|
/**
|
|
425
|
-
*
|
|
872
|
+
* Calculate the total of an invoice.
|
|
873
|
+
* @param id - The ID of the invoice to calculate.
|
|
426
874
|
*/
|
|
427
875
|
calculateInvoice(id, _options) {
|
|
428
876
|
return this.calculateInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
429
877
|
}
|
|
430
878
|
/**
|
|
431
|
-
*
|
|
879
|
+
* Create a new invoice.
|
|
880
|
+
* @param aPICreateInvoicePayload - The details of the invoice to create.
|
|
432
881
|
*/
|
|
433
882
|
createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
|
|
434
|
-
|
|
883
|
+
let _config = this.configuration;
|
|
884
|
+
let allMiddleware = [];
|
|
885
|
+
if (_options && _options.middleware) {
|
|
886
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
887
|
+
// call-time middleware provided
|
|
888
|
+
const calltimeMiddleware = _options.middleware;
|
|
889
|
+
switch (middlewareMergeStrategy) {
|
|
890
|
+
case 'append':
|
|
891
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
892
|
+
break;
|
|
893
|
+
case 'prepend':
|
|
894
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
895
|
+
break;
|
|
896
|
+
case 'replace':
|
|
897
|
+
allMiddleware = calltimeMiddleware;
|
|
898
|
+
break;
|
|
899
|
+
default:
|
|
900
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
if (_options) {
|
|
904
|
+
_config = {
|
|
905
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
906
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
907
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
908
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
const requestContextPromise = this.requestFactory.createInvoice(aPICreateInvoicePayload, _config);
|
|
435
912
|
// build promise chain
|
|
436
913
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
437
|
-
for (
|
|
914
|
+
for (const middleware of allMiddleware) {
|
|
438
915
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
439
916
|
}
|
|
440
917
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
441
918
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
442
919
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
443
|
-
for (
|
|
920
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
444
921
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
445
922
|
}
|
|
446
923
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createInvoiceWithHttpInfo(rsp)));
|
|
447
924
|
}));
|
|
448
925
|
}
|
|
449
926
|
/**
|
|
450
|
-
*
|
|
927
|
+
* Create a new invoice.
|
|
928
|
+
* @param aPICreateInvoicePayload - The details of the invoice to create.
|
|
451
929
|
*/
|
|
452
930
|
createInvoice(aPICreateInvoicePayload, _options) {
|
|
453
931
|
return this.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
454
932
|
}
|
|
455
933
|
/**
|
|
456
|
-
*
|
|
934
|
+
* Delete an invoice by ID.
|
|
935
|
+
* @param id - The ID of the invoice to delete.
|
|
457
936
|
*/
|
|
458
937
|
deleteInvoiceWithHttpInfo(id, _options) {
|
|
459
|
-
|
|
938
|
+
let _config = this.configuration;
|
|
939
|
+
let allMiddleware = [];
|
|
940
|
+
if (_options && _options.middleware) {
|
|
941
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
942
|
+
// call-time middleware provided
|
|
943
|
+
const calltimeMiddleware = _options.middleware;
|
|
944
|
+
switch (middlewareMergeStrategy) {
|
|
945
|
+
case 'append':
|
|
946
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
947
|
+
break;
|
|
948
|
+
case 'prepend':
|
|
949
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
950
|
+
break;
|
|
951
|
+
case 'replace':
|
|
952
|
+
allMiddleware = calltimeMiddleware;
|
|
953
|
+
break;
|
|
954
|
+
default:
|
|
955
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
if (_options) {
|
|
959
|
+
_config = {
|
|
960
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
961
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
962
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
963
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
const requestContextPromise = this.requestFactory.deleteInvoice(id, _config);
|
|
460
967
|
// build promise chain
|
|
461
968
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
462
|
-
for (
|
|
969
|
+
for (const middleware of allMiddleware) {
|
|
463
970
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
464
971
|
}
|
|
465
972
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
466
973
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
467
974
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
468
|
-
for (
|
|
975
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
469
976
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
470
977
|
}
|
|
471
978
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteInvoiceWithHttpInfo(rsp)));
|
|
472
979
|
}));
|
|
473
980
|
}
|
|
474
981
|
/**
|
|
475
|
-
*
|
|
982
|
+
* Delete an invoice by ID.
|
|
983
|
+
* @param id - The ID of the invoice to delete.
|
|
476
984
|
*/
|
|
477
985
|
deleteInvoice(id, _options) {
|
|
478
986
|
return this.deleteInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
479
987
|
}
|
|
480
988
|
/**
|
|
481
|
-
*
|
|
989
|
+
* Get a single invoice by ID.
|
|
990
|
+
* @param id - The ID of the invoice to fetch.
|
|
482
991
|
*/
|
|
483
992
|
getInvoiceWithHttpInfo(id, _options) {
|
|
484
|
-
|
|
993
|
+
let _config = this.configuration;
|
|
994
|
+
let allMiddleware = [];
|
|
995
|
+
if (_options && _options.middleware) {
|
|
996
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
997
|
+
// call-time middleware provided
|
|
998
|
+
const calltimeMiddleware = _options.middleware;
|
|
999
|
+
switch (middlewareMergeStrategy) {
|
|
1000
|
+
case 'append':
|
|
1001
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1002
|
+
break;
|
|
1003
|
+
case 'prepend':
|
|
1004
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1005
|
+
break;
|
|
1006
|
+
case 'replace':
|
|
1007
|
+
allMiddleware = calltimeMiddleware;
|
|
1008
|
+
break;
|
|
1009
|
+
default:
|
|
1010
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
if (_options) {
|
|
1014
|
+
_config = {
|
|
1015
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1016
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1017
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1018
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
const requestContextPromise = this.requestFactory.getInvoice(id, _config);
|
|
485
1022
|
// build promise chain
|
|
486
1023
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
487
|
-
for (
|
|
1024
|
+
for (const middleware of allMiddleware) {
|
|
488
1025
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
489
1026
|
}
|
|
490
1027
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
491
1028
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
492
1029
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
493
|
-
for (
|
|
1030
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
494
1031
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
495
1032
|
}
|
|
496
1033
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getInvoiceWithHttpInfo(rsp)));
|
|
497
1034
|
}));
|
|
498
1035
|
}
|
|
499
1036
|
/**
|
|
500
|
-
*
|
|
1037
|
+
* Get a single invoice by ID.
|
|
1038
|
+
* @param id - The ID of the invoice to fetch.
|
|
501
1039
|
*/
|
|
502
1040
|
getInvoice(id, _options) {
|
|
503
1041
|
return this.getInvoiceWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
504
1042
|
}
|
|
505
1043
|
/**
|
|
506
|
-
*
|
|
1044
|
+
* Query invoices based on filters and pagination.
|
|
1045
|
+
* @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
|
|
507
1046
|
*/
|
|
508
1047
|
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
|
|
509
|
-
|
|
1048
|
+
let _config = this.configuration;
|
|
1049
|
+
let allMiddleware = [];
|
|
1050
|
+
if (_options && _options.middleware) {
|
|
1051
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1052
|
+
// call-time middleware provided
|
|
1053
|
+
const calltimeMiddleware = _options.middleware;
|
|
1054
|
+
switch (middlewareMergeStrategy) {
|
|
1055
|
+
case 'append':
|
|
1056
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1057
|
+
break;
|
|
1058
|
+
case 'prepend':
|
|
1059
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1060
|
+
break;
|
|
1061
|
+
case 'replace':
|
|
1062
|
+
allMiddleware = calltimeMiddleware;
|
|
1063
|
+
break;
|
|
1064
|
+
default:
|
|
1065
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
if (_options) {
|
|
1069
|
+
_config = {
|
|
1070
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1071
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1072
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1073
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
const requestContextPromise = this.requestFactory.queryInvoices(aPIQueryPayloadAPIInvoice, _config);
|
|
510
1077
|
// build promise chain
|
|
511
1078
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
512
|
-
for (
|
|
1079
|
+
for (const middleware of allMiddleware) {
|
|
513
1080
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
514
1081
|
}
|
|
515
1082
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
516
1083
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
517
1084
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
518
|
-
for (
|
|
1085
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
519
1086
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
520
1087
|
}
|
|
521
1088
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryInvoicesWithHttpInfo(rsp)));
|
|
522
1089
|
}));
|
|
523
1090
|
}
|
|
524
1091
|
/**
|
|
525
|
-
*
|
|
1092
|
+
* Query invoices based on filters and pagination.
|
|
1093
|
+
* @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
|
|
526
1094
|
*/
|
|
527
1095
|
queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
|
|
528
1096
|
return this.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
529
1097
|
}
|
|
530
1098
|
/**
|
|
531
|
-
*
|
|
532
|
-
* @param
|
|
1099
|
+
* Update an existing invoice.
|
|
1100
|
+
* @param aPIUpdateInvoicePayload - The updated details of the invoice.
|
|
1101
|
+
* @param id - The ID of the invoice to update.
|
|
533
1102
|
*/
|
|
534
1103
|
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
|
|
535
|
-
|
|
1104
|
+
let _config = this.configuration;
|
|
1105
|
+
let allMiddleware = [];
|
|
1106
|
+
if (_options && _options.middleware) {
|
|
1107
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1108
|
+
// call-time middleware provided
|
|
1109
|
+
const calltimeMiddleware = _options.middleware;
|
|
1110
|
+
switch (middlewareMergeStrategy) {
|
|
1111
|
+
case 'append':
|
|
1112
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1113
|
+
break;
|
|
1114
|
+
case 'prepend':
|
|
1115
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1116
|
+
break;
|
|
1117
|
+
case 'replace':
|
|
1118
|
+
allMiddleware = calltimeMiddleware;
|
|
1119
|
+
break;
|
|
1120
|
+
default:
|
|
1121
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
if (_options) {
|
|
1125
|
+
_config = {
|
|
1126
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1127
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1128
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1129
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
const requestContextPromise = this.requestFactory.updateInvoice(aPIUpdateInvoicePayload, id, _config);
|
|
536
1133
|
// build promise chain
|
|
537
1134
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
538
|
-
for (
|
|
1135
|
+
for (const middleware of allMiddleware) {
|
|
539
1136
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
540
1137
|
}
|
|
541
1138
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
542
1139
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
543
1140
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
544
|
-
for (
|
|
1141
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
545
1142
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
546
1143
|
}
|
|
547
1144
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateInvoiceWithHttpInfo(rsp)));
|
|
548
1145
|
}));
|
|
549
1146
|
}
|
|
550
1147
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @param
|
|
1148
|
+
* Update an existing invoice.
|
|
1149
|
+
* @param aPIUpdateInvoicePayload - The updated details of the invoice.
|
|
1150
|
+
* @param id - The ID of the invoice to update.
|
|
553
1151
|
*/
|
|
554
1152
|
updateInvoice(aPIUpdateInvoicePayload, id, _options) {
|
|
555
1153
|
return this.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
@@ -564,128 +1162,278 @@ class ObservableProductsApi {
|
|
|
564
1162
|
this.responseProcessor = responseProcessor || new ProductsApi_1.ProductsApiResponseProcessor();
|
|
565
1163
|
}
|
|
566
1164
|
/**
|
|
567
|
-
*
|
|
1165
|
+
* Create a new product.
|
|
1166
|
+
* @param aPICreateProductPayload - The details of the product to create.
|
|
568
1167
|
*/
|
|
569
1168
|
createProductWithHttpInfo(aPICreateProductPayload, _options) {
|
|
570
|
-
|
|
1169
|
+
let _config = this.configuration;
|
|
1170
|
+
let allMiddleware = [];
|
|
1171
|
+
if (_options && _options.middleware) {
|
|
1172
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1173
|
+
// call-time middleware provided
|
|
1174
|
+
const calltimeMiddleware = _options.middleware;
|
|
1175
|
+
switch (middlewareMergeStrategy) {
|
|
1176
|
+
case 'append':
|
|
1177
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1178
|
+
break;
|
|
1179
|
+
case 'prepend':
|
|
1180
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1181
|
+
break;
|
|
1182
|
+
case 'replace':
|
|
1183
|
+
allMiddleware = calltimeMiddleware;
|
|
1184
|
+
break;
|
|
1185
|
+
default:
|
|
1186
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
if (_options) {
|
|
1190
|
+
_config = {
|
|
1191
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1192
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1193
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1194
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
const requestContextPromise = this.requestFactory.createProduct(aPICreateProductPayload, _config);
|
|
571
1198
|
// build promise chain
|
|
572
1199
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
573
|
-
for (
|
|
1200
|
+
for (const middleware of allMiddleware) {
|
|
574
1201
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
575
1202
|
}
|
|
576
1203
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
577
1204
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
578
1205
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
579
|
-
for (
|
|
1206
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
580
1207
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
581
1208
|
}
|
|
582
1209
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createProductWithHttpInfo(rsp)));
|
|
583
1210
|
}));
|
|
584
1211
|
}
|
|
585
1212
|
/**
|
|
586
|
-
*
|
|
1213
|
+
* Create a new product.
|
|
1214
|
+
* @param aPICreateProductPayload - The details of the product to create.
|
|
587
1215
|
*/
|
|
588
1216
|
createProduct(aPICreateProductPayload, _options) {
|
|
589
1217
|
return this.createProductWithHttpInfo(aPICreateProductPayload, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
590
1218
|
}
|
|
591
1219
|
/**
|
|
592
|
-
*
|
|
1220
|
+
* Delete a product by ID.
|
|
1221
|
+
* @param id - The ID of the product to delete.
|
|
593
1222
|
*/
|
|
594
1223
|
deleteProductWithHttpInfo(id, _options) {
|
|
595
|
-
|
|
1224
|
+
let _config = this.configuration;
|
|
1225
|
+
let allMiddleware = [];
|
|
1226
|
+
if (_options && _options.middleware) {
|
|
1227
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1228
|
+
// call-time middleware provided
|
|
1229
|
+
const calltimeMiddleware = _options.middleware;
|
|
1230
|
+
switch (middlewareMergeStrategy) {
|
|
1231
|
+
case 'append':
|
|
1232
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1233
|
+
break;
|
|
1234
|
+
case 'prepend':
|
|
1235
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1236
|
+
break;
|
|
1237
|
+
case 'replace':
|
|
1238
|
+
allMiddleware = calltimeMiddleware;
|
|
1239
|
+
break;
|
|
1240
|
+
default:
|
|
1241
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
if (_options) {
|
|
1245
|
+
_config = {
|
|
1246
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1247
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1248
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1249
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
const requestContextPromise = this.requestFactory.deleteProduct(id, _config);
|
|
596
1253
|
// build promise chain
|
|
597
1254
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
598
|
-
for (
|
|
1255
|
+
for (const middleware of allMiddleware) {
|
|
599
1256
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
600
1257
|
}
|
|
601
1258
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
602
1259
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
603
1260
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
604
|
-
for (
|
|
1261
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
605
1262
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
606
1263
|
}
|
|
607
1264
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteProductWithHttpInfo(rsp)));
|
|
608
1265
|
}));
|
|
609
1266
|
}
|
|
610
1267
|
/**
|
|
611
|
-
*
|
|
1268
|
+
* Delete a product by ID.
|
|
1269
|
+
* @param id - The ID of the product to delete.
|
|
612
1270
|
*/
|
|
613
1271
|
deleteProduct(id, _options) {
|
|
614
1272
|
return this.deleteProductWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
615
1273
|
}
|
|
616
1274
|
/**
|
|
617
|
-
*
|
|
1275
|
+
* Get a single product by ID.
|
|
1276
|
+
* @param id - The ID of the product to fetch.
|
|
618
1277
|
*/
|
|
619
1278
|
getProductWithHttpInfo(id, _options) {
|
|
620
|
-
|
|
1279
|
+
let _config = this.configuration;
|
|
1280
|
+
let allMiddleware = [];
|
|
1281
|
+
if (_options && _options.middleware) {
|
|
1282
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1283
|
+
// call-time middleware provided
|
|
1284
|
+
const calltimeMiddleware = _options.middleware;
|
|
1285
|
+
switch (middlewareMergeStrategy) {
|
|
1286
|
+
case 'append':
|
|
1287
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1288
|
+
break;
|
|
1289
|
+
case 'prepend':
|
|
1290
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1291
|
+
break;
|
|
1292
|
+
case 'replace':
|
|
1293
|
+
allMiddleware = calltimeMiddleware;
|
|
1294
|
+
break;
|
|
1295
|
+
default:
|
|
1296
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
if (_options) {
|
|
1300
|
+
_config = {
|
|
1301
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1302
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1303
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1304
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
const requestContextPromise = this.requestFactory.getProduct(id, _config);
|
|
621
1308
|
// build promise chain
|
|
622
1309
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
623
|
-
for (
|
|
1310
|
+
for (const middleware of allMiddleware) {
|
|
624
1311
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
625
1312
|
}
|
|
626
1313
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
627
1314
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
628
1315
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
629
|
-
for (
|
|
1316
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
630
1317
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
631
1318
|
}
|
|
632
1319
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getProductWithHttpInfo(rsp)));
|
|
633
1320
|
}));
|
|
634
1321
|
}
|
|
635
1322
|
/**
|
|
636
|
-
*
|
|
1323
|
+
* Get a single product by ID.
|
|
1324
|
+
* @param id - The ID of the product to fetch.
|
|
637
1325
|
*/
|
|
638
1326
|
getProduct(id, _options) {
|
|
639
1327
|
return this.getProductWithHttpInfo(id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
640
1328
|
}
|
|
641
1329
|
/**
|
|
642
|
-
*
|
|
1330
|
+
* Query products based on filters and pagination.
|
|
1331
|
+
* @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
|
|
643
1332
|
*/
|
|
644
1333
|
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
|
|
645
|
-
|
|
1334
|
+
let _config = this.configuration;
|
|
1335
|
+
let allMiddleware = [];
|
|
1336
|
+
if (_options && _options.middleware) {
|
|
1337
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1338
|
+
// call-time middleware provided
|
|
1339
|
+
const calltimeMiddleware = _options.middleware;
|
|
1340
|
+
switch (middlewareMergeStrategy) {
|
|
1341
|
+
case 'append':
|
|
1342
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1343
|
+
break;
|
|
1344
|
+
case 'prepend':
|
|
1345
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1346
|
+
break;
|
|
1347
|
+
case 'replace':
|
|
1348
|
+
allMiddleware = calltimeMiddleware;
|
|
1349
|
+
break;
|
|
1350
|
+
default:
|
|
1351
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
if (_options) {
|
|
1355
|
+
_config = {
|
|
1356
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1357
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1358
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1359
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
const requestContextPromise = this.requestFactory.queryProducts(aPIQueryPayloadAPIProduct, _config);
|
|
646
1363
|
// build promise chain
|
|
647
1364
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
648
|
-
for (
|
|
1365
|
+
for (const middleware of allMiddleware) {
|
|
649
1366
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
650
1367
|
}
|
|
651
1368
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
652
1369
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
653
1370
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
654
|
-
for (
|
|
1371
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
655
1372
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
656
1373
|
}
|
|
657
1374
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.queryProductsWithHttpInfo(rsp)));
|
|
658
1375
|
}));
|
|
659
1376
|
}
|
|
660
1377
|
/**
|
|
661
|
-
*
|
|
1378
|
+
* Query products based on filters and pagination.
|
|
1379
|
+
* @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
|
|
662
1380
|
*/
|
|
663
1381
|
queryProducts(aPIQueryPayloadAPIProduct, _options) {
|
|
664
1382
|
return this.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
665
1383
|
}
|
|
666
1384
|
/**
|
|
667
|
-
*
|
|
668
|
-
* @param
|
|
1385
|
+
* Update an existing product.
|
|
1386
|
+
* @param aPIUpdateProductPayload - The updated details of the product.
|
|
1387
|
+
* @param id - The ID of the product to update.
|
|
669
1388
|
*/
|
|
670
1389
|
updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
|
|
671
|
-
|
|
1390
|
+
let _config = this.configuration;
|
|
1391
|
+
let allMiddleware = [];
|
|
1392
|
+
if (_options && _options.middleware) {
|
|
1393
|
+
const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace'; // default to replace behavior
|
|
1394
|
+
// call-time middleware provided
|
|
1395
|
+
const calltimeMiddleware = _options.middleware;
|
|
1396
|
+
switch (middlewareMergeStrategy) {
|
|
1397
|
+
case 'append':
|
|
1398
|
+
allMiddleware = this.configuration.middleware.concat(calltimeMiddleware);
|
|
1399
|
+
break;
|
|
1400
|
+
case 'prepend':
|
|
1401
|
+
allMiddleware = calltimeMiddleware.concat(this.configuration.middleware);
|
|
1402
|
+
break;
|
|
1403
|
+
case 'replace':
|
|
1404
|
+
allMiddleware = calltimeMiddleware;
|
|
1405
|
+
break;
|
|
1406
|
+
default:
|
|
1407
|
+
throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
if (_options) {
|
|
1411
|
+
_config = {
|
|
1412
|
+
baseServer: _options.baseServer || this.configuration.baseServer,
|
|
1413
|
+
httpApi: _options.httpApi || this.configuration.httpApi,
|
|
1414
|
+
authMethods: _options.authMethods || this.configuration.authMethods,
|
|
1415
|
+
middleware: allMiddleware || this.configuration.middleware
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
const requestContextPromise = this.requestFactory.updateProduct(aPIUpdateProductPayload, id, _config);
|
|
672
1419
|
// build promise chain
|
|
673
1420
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
674
|
-
for (
|
|
1421
|
+
for (const middleware of allMiddleware) {
|
|
675
1422
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
676
1423
|
}
|
|
677
1424
|
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
678
1425
|
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
679
1426
|
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
680
|
-
for (
|
|
1427
|
+
for (const middleware of allMiddleware.reverse()) {
|
|
681
1428
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
682
1429
|
}
|
|
683
1430
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateProductWithHttpInfo(rsp)));
|
|
684
1431
|
}));
|
|
685
1432
|
}
|
|
686
1433
|
/**
|
|
687
|
-
*
|
|
688
|
-
* @param
|
|
1434
|
+
* Update an existing product.
|
|
1435
|
+
* @param aPIUpdateProductPayload - The updated details of the product.
|
|
1436
|
+
* @param id - The ID of the product to update.
|
|
689
1437
|
*/
|
|
690
1438
|
updateProduct(aPIUpdateProductPayload, id, _options) {
|
|
691
1439
|
return this.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|