yellowgrid-api-ts 3.2.132-dev.0 → 3.2.132
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/.openapi-generator/FILES +11 -15
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +0 -0
- package/README.md +16 -28
- package/api.ts +1108 -1430
- package/base.ts +2 -2
- package/common.ts +1 -1
- package/config.json +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +556 -699
- package/dist/api.js +901 -1260
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -2
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/CourierEnum.d.ts +0 -0
- package/dist/models/CourierEnum.js +0 -0
- package/dist/models/EventStatusEnum.d.ts +0 -0
- package/dist/models/EventStatusEnum.js +0 -0
- package/dist/models/EventTypeEnum.d.ts +0 -0
- package/dist/models/EventTypeEnum.js +0 -0
- package/dist/models/PaymentMethodEnum.d.ts +13 -0
- package/dist/models/PaymentMethodEnum.js +15 -0
- package/dist/models/PortStatusEnum.d.ts +0 -0
- package/dist/models/PortStatusEnum.js +0 -0
- package/dist/models/PrinterEnum.d.ts +0 -0
- package/dist/models/PrinterEnum.js +0 -0
- package/dist/models/ScheduledTaskEnum.d.ts +0 -0
- package/dist/models/ScheduledTaskEnum.js +0 -0
- package/dist/models/ServiceEnum.d.ts +5 -0
- package/dist/models/ServiceEnum.js +5 -0
- package/dist/models/ServiceHealthEnum.d.ts +0 -0
- package/dist/models/ServiceHealthEnum.js +0 -0
- package/dist/models/ServiceStatusEnum.d.ts +0 -0
- package/dist/models/ServiceStatusEnum.js +0 -0
- package/dist/models/UpdateTypeEnum.d.ts +0 -0
- package/dist/models/UpdateTypeEnum.js +0 -0
- package/dist/models/UserGroupEnum.d.ts +28 -0
- package/dist/models/UserGroupEnum.js +30 -0
- package/docs/AbstractOrderRequestDTO.md +1 -1
- package/docs/AccountContactEntity.md +0 -0
- package/docs/AccountContactModel.md +0 -0
- package/docs/AccountContactRequestModel.md +0 -0
- package/docs/AccountDetailedSummaryDTO.md +0 -0
- package/docs/AccountRequestModel.md +0 -0
- package/docs/AccountSummaryDTO.md +0 -0
- package/docs/AccountsApi.md +5 -589
- package/docs/AccountsResponseModel.md +0 -0
- package/docs/AddressModel.md +0 -0
- package/docs/AddressRequestModel.md +0 -0
- package/docs/AdminNumberPortDTO.md +0 -0
- package/docs/AdminOrderRequestDTO.md +3 -1
- package/docs/AdminUserModel.md +4 -2
- package/docs/AgentHoursGraphModel.md +0 -0
- package/docs/AgentHoursGraphMonthModel.md +0 -0
- package/docs/ApiLogEntity.md +0 -0
- package/docs/AreaCodeModel.md +0 -0
- package/docs/AttachmentModel.md +0 -0
- package/docs/AttributeSetEnum.md +0 -0
- package/docs/AuditLogEntity.md +0 -0
- package/docs/AuthCodeResponseModel.md +0 -0
- package/docs/BasicItemDTO.md +0 -0
- package/docs/BasicProductDTO.md +0 -0
- package/docs/BatchDTO.md +0 -0
- package/docs/BatchEntity.md +0 -0
- package/docs/BillingApi.md +55 -0
- package/docs/CRMApi.md +1 -121
- package/docs/CallBarringModel.md +0 -0
- package/docs/Class3CXApi.md +1 -1
- package/docs/Class3CXInstallationWizardApi.md +1 -1
- package/docs/Class3CXInstallationsApi.md +1 -1
- package/docs/Class3CXIntegrationsApi.md +1 -1
- package/docs/Class3CXMultiTenantApi.md +1 -1
- package/docs/ClientDetailsModel.md +0 -0
- package/docs/ClientModel.md +0 -0
- package/docs/CompanyContractModel.md +0 -0
- package/docs/ContactInfoModel.md +0 -0
- package/docs/ConversationModel.md +0 -0
- package/docs/CourierPriceEntity.md +0 -0
- package/docs/CreditAccountEntity.md +0 -0
- package/docs/CreditNoteDTO.md +0 -0
- package/docs/CreditNoteEntity.md +0 -0
- package/docs/CreditNoteItemDTO.md +0 -0
- package/docs/CreditNoteItemEntity.md +0 -0
- package/docs/CreditNoteItemModel.md +0 -0
- package/docs/CreditNoteModel.md +0 -0
- package/docs/CrmContactDTO.md +0 -0
- package/docs/CustomerInformationModel.md +0 -0
- package/docs/CustomerItemRequestDTO.md +2 -0
- package/docs/CustomerOrderRequestDTO.md +1 -1
- package/docs/CustomerPriceListEnum.md +0 -0
- package/docs/CustomerSummaryReportDTO.md +0 -0
- package/docs/DdiRangeRequestModel.md +0 -0
- package/docs/DdiRangesRequestModel.md +0 -0
- package/docs/DetailedItemRequestDTO.md +2 -0
- package/docs/DetailedOrderRequestDTO.md +1 -1
- package/docs/DivertRequestModel.md +0 -0
- package/docs/DivertResponseModel.md +0 -0
- package/docs/EdTechProClientEntity.md +0 -0
- package/docs/EdTechProSchoolModel.md +0 -0
- package/docs/EdTechProSchoolsModel.md +0 -0
- package/docs/EdTechProSetupModel.md +0 -0
- package/docs/EventDTO.md +0 -0
- package/docs/EventRequestDTO.md +0 -0
- package/docs/EventSubscriptionModel.md +0 -0
- package/docs/EventUpdateDTO.md +0 -0
- package/docs/EventUpdateEntity.md +0 -0
- package/docs/EventUpdateRequestDTO.md +0 -0
- package/docs/FraudManagementModel.md +0 -0
- package/docs/FreshdeskCompanyTicketsModel.md +0 -0
- package/docs/FreshdeskTicketEntity.md +0 -0
- package/docs/FtpAccountsEntity.md +0 -0
- package/docs/GenericFileModel.md +0 -0
- package/docs/GetGetPrice200Response.md +0 -0
- package/docs/GetGetRecording200Response.md +0 -0
- package/docs/HostingChangeResponseModel.md +0 -0
- package/docs/HostingRegionDTO.md +0 -0
- package/docs/InstallationDetailsDTO.md +0 -0
- package/docs/InstanceAutoFailoverEntity.md +0 -0
- package/docs/InstanceDeletionScheduleEntity.md +0 -0
- package/docs/InstanceEntity.md +0 -0
- package/docs/InstanceFailoverEntity.md +0 -0
- package/docs/InstanceMonitoringEntity.md +0 -0
- package/docs/InstanceMonitoringLogEntity.md +0 -0
- package/docs/InstanceScheduledTasksEntity.md +0 -0
- package/docs/InstanceTcxDetailsEntity.md +0 -0
- package/docs/InstanceUserCredentialsEntity.md +0 -0
- package/docs/ItemDTO.md +2 -0
- package/docs/ItemDiscountEntity.md +0 -0
- package/docs/ItemEntity.md +0 -0
- package/docs/LinkedOrderEntity.md +0 -0
- package/docs/MFARequiredModel.md +0 -0
- package/docs/MonthlyUsageModel.md +0 -0
- package/docs/MultiTenantChangeResponseModel.md +0 -0
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NavigationModel.md +0 -0
- package/docs/NumberPortDTO.md +0 -0
- package/docs/NumberPortNoteDTO.md +0 -0
- package/docs/NumberPortRangeDTO.md +0 -0
- package/docs/NumberPortRangeRequestDTO.md +0 -0
- package/docs/NumberPortingApi.md +6 -6
- package/docs/NumberPortsModel.md +0 -0
- package/docs/OAuth20Api.md +49 -1
- package/docs/OfflineInstancesEntity.md +0 -0
- package/docs/OrderDTO.md +25 -0
- package/docs/OrderDetailsDTO.md +0 -0
- package/docs/OrderEntity.md +0 -0
- package/docs/OrderItemDTO.md +2 -0
- package/docs/OrderRequestModel.md +0 -0
- package/docs/OrderResponseDTO.md +25 -0
- package/docs/OrderSummariesModel.md +0 -0
- package/docs/OrderSummaryDTO.md +0 -0
- package/docs/OrderTotalModel.md +0 -0
- package/docs/OrderedItemEntity.md +0 -0
- package/docs/OrderedItemModel.md +0 -0
- package/docs/OrdersApi.md +57 -1
- package/docs/PatchSetTcxWizardCnameRequest.md +0 -0
- package/docs/PatchUpdateAccountContactPasswordRequest.md +0 -0
- package/docs/PortalAccountModel.md +0 -0
- package/docs/PortalLoginModel.md +0 -0
- package/docs/PostAddAdminNoteRequest.md +0 -0
- package/docs/PostAddOrderNoteRequest.md +0 -0
- package/docs/PostAddWebhook200Response.md +0 -0
- package/docs/PostGetClientCredentialsRequest.md +0 -0
- package/docs/PostGetProductForCustomerRequest.md +2 -0
- package/docs/PostSplitOrderRequest.md +0 -0
- package/docs/PriceListItemModel.md +0 -0
- package/docs/PricingApi.md +1 -1
- package/docs/PrinterEntity.md +0 -0
- package/docs/PrizesEntity.md +0 -0
- package/docs/ProductPriceListItemModel.md +0 -0
- package/docs/ProductSearchResultsModel.md +0 -0
- package/docs/ProductSerialInfoModel.md +0 -0
- package/docs/ProductSummaryDTO.md +2 -2
- package/docs/ProductsApi.md +6 -6
- package/docs/PromoCodesEntity.md +0 -0
- package/docs/PromoItemsEntity.md +0 -0
- package/docs/ProspectDTO.md +33 -0
- package/docs/ProspectEntity.md +41 -0
- package/docs/ProspectsApi.md +226 -0
- package/docs/ProvisioningApi.md +1 -1
- package/docs/ProvisioningModel.md +0 -0
- package/docs/ProvisioningRequestEntity.md +0 -0
- package/docs/PutAllocateItemsRequest.md +0 -0
- package/docs/PutAllocateItemsRequestItemsInner.md +0 -0
- package/docs/RecordingBackupAzureModel.md +0 -0
- package/docs/RecordingsBackupInfoDTO.md +2 -2
- package/docs/RemoteStorageDTO.md +0 -0
- package/docs/ResourceNotReadyException.md +0 -0
- package/docs/RootAccessModel.md +0 -0
- package/docs/S3BucketEntity.md +0 -0
- package/docs/SIPTrunksApi.md +1 -1
- package/docs/SMSApi.md +1 -1
- package/docs/SbcDTO.md +35 -0
- package/docs/ScannedItemModel.md +0 -0
- package/docs/ScopeModel.md +0 -0
- package/docs/ServiceHealthDTO.md +0 -0
- package/docs/ServiceStatusDTO.md +0 -0
- package/docs/ServicesApi.md +1 -1
- package/docs/ShipmentAddressEntity.md +0 -0
- package/docs/ShipmentDTO.md +0 -0
- package/docs/ShipmentEntity.md +0 -0
- package/docs/ShipmentItemDTO.md +0 -0
- package/docs/ShipmentItemEntity.md +0 -0
- package/docs/ShipmentItemModel.md +0 -0
- package/docs/ShipmentModel.md +0 -0
- package/docs/ShipmentRequestDTO.md +2 -2
- package/docs/ShippingAddressDTO.md +35 -0
- package/docs/ShippingApi.md +1 -1
- package/docs/ShippingConsignmentModel.md +0 -0
- package/docs/ShippingInformationDTO.md +0 -0
- package/docs/ShippingRequestDTO.md +0 -0
- package/docs/ShippingServiceDTO.md +0 -0
- package/docs/ShippingServiceModel.md +0 -0
- package/docs/ShippingServicesModel.md +0 -0
- package/docs/SipTrunkChangeResponseModel.md +0 -0
- package/docs/SipTrunkCreationRequestModel.md +0 -0
- package/docs/SipTrunkEntity.md +0 -0
- package/docs/SipTrunksResponseModel.md +0 -0
- package/docs/SmsAccountDTO.md +0 -0
- package/docs/SmsAccountEntity.md +0 -0
- package/docs/SmsAccountRequestDTO.md +0 -0
- package/docs/SmsDataModel.md +0 -0
- package/docs/SmsMessageModel.md +0 -0
- package/docs/SmsNumbersEntity.md +0 -0
- package/docs/SmsPayloadModel.md +0 -0
- package/docs/SmsPhoneNumberModel.md +0 -0
- package/docs/SmsResponseModel.md +0 -0
- package/docs/SmsWhitelistEntity.md +0 -0
- package/docs/StockManagementApi.md +1 -1
- package/docs/StockOrderCourierEntity.md +0 -0
- package/docs/StockOrderDeductionModel.md +0 -0
- package/docs/StockOrderDeductionRequestModel.md +0 -0
- package/docs/StockOrderDeductionsEntity.md +0 -0
- package/docs/StockOrderEntity.md +0 -0
- package/docs/StockOrderItemEntity.md +0 -0
- package/docs/StockOrderItemModel.md +0 -0
- package/docs/StockOrderItemRequestModel.md +0 -0
- package/docs/StockOrderModel.md +0 -0
- package/docs/StockOrderProductEntity.md +0 -0
- package/docs/StockOrderRequestModel.md +0 -0
- package/docs/StockOrderSupplierEntity.md +0 -0
- package/docs/StockOrderSupplierModel.md +0 -0
- package/docs/StockOrdersModel.md +0 -0
- package/docs/StockProductModel.md +0 -0
- package/docs/StockProductPriceModel.md +0 -0
- package/docs/StockProductSummariesModel.md +0 -0
- package/docs/StockProductSummaryModel.md +0 -0
- package/docs/StockTransactionsEntity.md +0 -0
- package/docs/SupplierEntity.md +0 -0
- package/docs/SupplierItemEntity.md +0 -0
- package/docs/SupplierItemModel.md +0 -0
- package/docs/SupplierModel.md +0 -0
- package/docs/SupportTicketModel.md +0 -0
- package/docs/SystemApi.md +1 -1
- package/docs/TcxBackupEntity.md +0 -0
- package/docs/TcxBackupModel.md +0 -0
- package/docs/TcxBillingEntity.md +0 -0
- package/docs/TcxBulkLicenceDetailsModel.md +0 -0
- package/docs/TcxDeadLicenceEntity.md +0 -0
- package/docs/TcxExtsEntity.md +0 -0
- package/docs/TcxHostingPricingEntity.md +0 -0
- package/docs/TcxInstallationModel.md +0 -0
- package/docs/TcxInstallationsModel.md +0 -0
- package/docs/TcxKeySummaryDTO.md +1 -1
- package/docs/TcxKeysEntity.md +0 -0
- package/docs/TcxLicenceDetailsErrorModel.md +0 -0
- package/docs/TcxLicenceDetailsModel.md +0 -0
- package/docs/TcxMacsEntity.md +0 -0
- package/docs/TcxMultiTenantModel.md +0 -0
- package/docs/TcxMultiTenantUserModel.md +0 -0
- package/docs/TcxMultiTenantsModel.md +0 -0
- package/docs/TcxNumbersEntity.md +0 -0
- package/docs/TcxOfficeHoursEntity.md +0 -0
- package/docs/TcxPhoneModel.md +0 -0
- package/docs/TcxPhonesEntity.md +0 -0
- package/docs/TcxRemoteStorageModel.md +0 -0
- package/docs/TcxSbcDTO.md +0 -0
- package/docs/TcxSbcEntity.md +0 -0
- package/docs/TcxSbcModel.md +0 -0
- package/docs/TcxSbcResponseDTO.md +0 -0
- package/docs/TcxSetupEntity.md +0 -0
- package/docs/TcxSetupsModel.md +0 -0
- package/docs/TcxSipTrunksEntity.md +0 -0
- package/docs/TcxTemplateXmlEnum.md +0 -0
- package/docs/TcxUsersEntity.md +0 -0
- package/docs/TcxWizardConfigModel.md +0 -0
- package/docs/TcxWizardModel.md +0 -0
- package/docs/TechSupportCompanySummaryDTO.md +0 -0
- package/docs/TicketSummaryModel.md +0 -0
- package/docs/TicketTimeDTO.md +0 -0
- package/docs/TicketsApi.md +1 -1
- package/docs/TokenResponseModel.md +0 -0
- package/docs/UpgradeOrderResponseModel.md +0 -0
- package/docs/UpgradeRequestModel.md +0 -0
- package/docs/UserEntity.md +0 -0
- package/docs/WebhooksApi.md +1 -1
- package/docs/XeroLogEntity.md +0 -0
- package/getEnums.php +31 -31
- package/git_push.sh +0 -0
- package/index.ts +1 -1
- package/models/CourierEnum.ts +0 -0
- package/models/EventStatusEnum.ts +0 -0
- package/models/EventTypeEnum.ts +0 -0
- package/models/PaymentMethodEnum.ts +14 -0
- package/models/PortStatusEnum.ts +0 -0
- package/models/PrinterEnum.ts +0 -0
- package/models/ScheduledTaskEnum.ts +0 -0
- package/models/ServiceEnum.ts +5 -0
- package/models/ServiceHealthEnum.ts +0 -0
- package/models/ServiceStatusEnum.ts +0 -0
- package/models/UpdateTypeEnum.ts +0 -0
- package/models/UserGroupEnum.ts +29 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/tsconfig.json +0 -0
- package/dist/models/StatusEnum.d.ts +0 -18
- package/dist/models/StatusEnum.js +0 -20
- package/dist/src/apis/AccountsApi.d.ts +0 -258
- package/dist/src/apis/AccountsApi.js +0 -975
- package/dist/src/apis/CRMApi.d.ts +0 -26
- package/dist/src/apis/CRMApi.js +0 -122
- package/dist/src/apis/Class3CXApi.d.ts +0 -44
- package/dist/src/apis/Class3CXApi.js +0 -177
- package/dist/src/apis/Class3CXInstallationWizardApi.d.ts +0 -446
- package/dist/src/apis/Class3CXInstallationWizardApi.js +0 -1740
- package/dist/src/apis/Class3CXInstallationsApi.d.ts +0 -253
- package/dist/src/apis/Class3CXInstallationsApi.js +0 -806
- package/dist/src/apis/Class3CXIntegrationsApi.d.ts +0 -102
- package/dist/src/apis/Class3CXIntegrationsApi.js +0 -386
- package/dist/src/apis/Class3CXMultiTenantApi.d.ts +0 -122
- package/dist/src/apis/Class3CXMultiTenantApi.js +0 -431
- package/dist/src/apis/MyPBXToolsApi.d.ts +0 -32
- package/dist/src/apis/MyPBXToolsApi.js +0 -136
- package/dist/src/apis/OAuth20Api.d.ts +0 -185
- package/dist/src/apis/OAuth20Api.js +0 -507
- package/dist/src/apis/OrdersApi.d.ts +0 -154
- package/dist/src/apis/OrdersApi.js +0 -512
- package/dist/src/apis/PricingApi.d.ts +0 -154
- package/dist/src/apis/PricingApi.js +0 -308
- package/dist/src/apis/ProductsApi.d.ts +0 -135
- package/dist/src/apis/ProductsApi.js +0 -531
- package/dist/src/apis/ProvisioningApi.d.ts +0 -112
- package/dist/src/apis/ProvisioningApi.js +0 -427
- package/dist/src/apis/SIPTrunksApi.d.ts +0 -315
- package/dist/src/apis/SIPTrunksApi.js +0 -1197
- package/dist/src/apis/SMSApi.d.ts +0 -30
- package/dist/src/apis/SMSApi.js +0 -130
- package/dist/src/apis/ServicesApi.d.ts +0 -81
- package/dist/src/apis/ServicesApi.js +0 -386
- package/dist/src/apis/ShippingApi.d.ts +0 -45
- package/dist/src/apis/ShippingApi.js +0 -179
- package/dist/src/apis/StockManagementApi.d.ts +0 -345
- package/dist/src/apis/StockManagementApi.js +0 -1293
- package/dist/src/apis/SystemApi.d.ts +0 -37
- package/dist/src/apis/SystemApi.js +0 -146
- package/dist/src/apis/TicketsApi.d.ts +0 -79
- package/dist/src/apis/TicketsApi.js +0 -360
- package/dist/src/apis/WebhooksApi.d.ts +0 -56
- package/dist/src/apis/WebhooksApi.js +0 -189
- package/dist/src/apis/index.d.ts +0 -21
- package/dist/src/apis/index.js +0 -39
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -21
- package/dist/src/models/AbstractOrderRequestDTO.d.ts +0 -71
- package/dist/src/models/AbstractOrderRequestDTO.js +0 -64
- package/dist/src/models/AccountContactEntity.d.ts +0 -104
- package/dist/src/models/AccountContactEntity.js +0 -73
- package/dist/src/models/AccountContactModel.d.ts +0 -104
- package/dist/src/models/AccountContactModel.js +0 -73
- package/dist/src/models/AccountContactRequestModel.d.ts +0 -80
- package/dist/src/models/AccountContactRequestModel.js +0 -65
- package/dist/src/models/AccountDetailedSummaryDTO.d.ts +0 -89
- package/dist/src/models/AccountDetailedSummaryDTO.js +0 -70
- package/dist/src/models/AccountRequestModel.d.ts +0 -128
- package/dist/src/models/AccountRequestModel.js +0 -81
- package/dist/src/models/AccountSummaryDTO.d.ts +0 -44
- package/dist/src/models/AccountSummaryDTO.js +0 -53
- package/dist/src/models/AccountsResponseModel.d.ts +0 -51
- package/dist/src/models/AccountsResponseModel.js +0 -56
- package/dist/src/models/AddressModel.d.ts +0 -110
- package/dist/src/models/AddressModel.js +0 -75
- package/dist/src/models/AddressRequestModel.d.ts +0 -50
- package/dist/src/models/AddressRequestModel.js +0 -55
- package/dist/src/models/AdminOrderRequestDTO.d.ts +0 -113
- package/dist/src/models/AdminOrderRequestDTO.js +0 -78
- package/dist/src/models/AdminUserModel.d.ts +0 -79
- package/dist/src/models/AdminUserModel.js +0 -72
- package/dist/src/models/AgentHoursGraphModel.d.ts +0 -51
- package/dist/src/models/AgentHoursGraphModel.js +0 -56
- package/dist/src/models/AgentHoursGraphMonthModel.d.ts +0 -38
- package/dist/src/models/AgentHoursGraphMonthModel.js +0 -51
- package/dist/src/models/ApiLogEntity.d.ts +0 -98
- package/dist/src/models/ApiLogEntity.js +0 -71
- package/dist/src/models/AreaCodeModel.d.ts +0 -38
- package/dist/src/models/AreaCodeModel.js +0 -51
- package/dist/src/models/AttachmentModel.d.ts +0 -56
- package/dist/src/models/AttachmentModel.js +0 -57
- package/dist/src/models/AttributeSetEnum.d.ts +0 -38
- package/dist/src/models/AttributeSetEnum.js +0 -51
- package/dist/src/models/AuditLogEntity.d.ts +0 -80
- package/dist/src/models/AuditLogEntity.js +0 -65
- package/dist/src/models/AuthCodeResponseModel.d.ts +0 -44
- package/dist/src/models/AuthCodeResponseModel.js +0 -53
- package/dist/src/models/BasicItemDTO.d.ts +0 -38
- package/dist/src/models/BasicItemDTO.js +0 -51
- package/dist/src/models/BasicProductDTO.d.ts +0 -38
- package/dist/src/models/BasicProductDTO.js +0 -51
- package/dist/src/models/BatchEntity.d.ts +0 -128
- package/dist/src/models/BatchEntity.js +0 -81
- package/dist/src/models/CallBarringModel.d.ts +0 -56
- package/dist/src/models/CallBarringModel.js +0 -57
- package/dist/src/models/ClientDetailsModel.d.ts +0 -68
- package/dist/src/models/ClientDetailsModel.js +0 -61
- package/dist/src/models/ClientModel.d.ts +0 -50
- package/dist/src/models/ClientModel.js +0 -55
- package/dist/src/models/CompanyContractModel.d.ts +0 -56
- package/dist/src/models/CompanyContractModel.js +0 -57
- package/dist/src/models/ContactInfoModel.d.ts +0 -56
- package/dist/src/models/ContactInfoModel.js +0 -57
- package/dist/src/models/ConversationModel.d.ts +0 -75
- package/dist/src/models/ConversationModel.js +0 -64
- package/dist/src/models/CourierPriceEntity.d.ts +0 -86
- package/dist/src/models/CourierPriceEntity.js +0 -67
- package/dist/src/models/CreditAccountEntity.d.ts +0 -152
- package/dist/src/models/CreditAccountEntity.js +0 -89
- package/dist/src/models/CrmContactDTO.d.ts +0 -68
- package/dist/src/models/CrmContactDTO.js +0 -61
- package/dist/src/models/CustomerInformationModel.d.ts +0 -68
- package/dist/src/models/CustomerInformationModel.js +0 -61
- package/dist/src/models/CustomerItemRequestDTO.d.ts +0 -81
- package/dist/src/models/CustomerItemRequestDTO.js +0 -66
- package/dist/src/models/CustomerOrderRequestDTO.d.ts +0 -71
- package/dist/src/models/CustomerOrderRequestDTO.js +0 -64
- package/dist/src/models/CustomerPriceListEnum.d.ts +0 -38
- package/dist/src/models/CustomerPriceListEnum.js +0 -51
- package/dist/src/models/CustomerSummaryReportDTO.d.ts +0 -65
- package/dist/src/models/CustomerSummaryReportDTO.js +0 -62
- package/dist/src/models/DdiRangeRequestModel.d.ts +0 -44
- package/dist/src/models/DdiRangeRequestModel.js +0 -53
- package/dist/src/models/DdiRangesRequestModel.d.ts +0 -33
- package/dist/src/models/DdiRangesRequestModel.js +0 -50
- package/dist/src/models/DetailedItemRequestDTO.d.ts +0 -99
- package/dist/src/models/DetailedItemRequestDTO.js +0 -72
- package/dist/src/models/DetailedOrderRequestDTO.d.ts +0 -71
- package/dist/src/models/DetailedOrderRequestDTO.js +0 -64
- package/dist/src/models/DivertRequestModel.d.ts +0 -38
- package/dist/src/models/DivertRequestModel.js +0 -51
- package/dist/src/models/DivertResponseModel.d.ts +0 -52
- package/dist/src/models/DivertResponseModel.js +0 -61
- package/dist/src/models/EdTechProClientEntity.d.ts +0 -56
- package/dist/src/models/EdTechProClientEntity.js +0 -57
- package/dist/src/models/EdTechProSchoolModel.d.ts +0 -104
- package/dist/src/models/EdTechProSchoolModel.js +0 -73
- package/dist/src/models/EdTechProSchoolsModel.d.ts +0 -51
- package/dist/src/models/EdTechProSchoolsModel.js +0 -56
- package/dist/src/models/EdTechProSetupModel.d.ts +0 -56
- package/dist/src/models/EdTechProSetupModel.js +0 -57
- package/dist/src/models/EventDTO.d.ts +0 -84
- package/dist/src/models/EventDTO.js +0 -73
- package/dist/src/models/EventRequestDTO.d.ts +0 -44
- package/dist/src/models/EventRequestDTO.js +0 -53
- package/dist/src/models/EventSubscriptionModel.d.ts +0 -38
- package/dist/src/models/EventSubscriptionModel.js +0 -51
- package/dist/src/models/EventTypeEnum.d.ts +0 -19
- package/dist/src/models/EventTypeEnum.js +0 -24
- package/dist/src/models/EventUpdateDTO.d.ts +0 -50
- package/dist/src/models/EventUpdateDTO.js +0 -55
- package/dist/src/models/EventUpdateEntity.d.ts +0 -56
- package/dist/src/models/EventUpdateEntity.js +0 -57
- package/dist/src/models/EventUpdateRequestDTO.d.ts +0 -44
- package/dist/src/models/EventUpdateRequestDTO.js +0 -53
- package/dist/src/models/FraudManagementModel.d.ts +0 -38
- package/dist/src/models/FraudManagementModel.js +0 -51
- package/dist/src/models/FreshdeskCompanyTicketsModel.d.ts +0 -51
- package/dist/src/models/FreshdeskCompanyTicketsModel.js +0 -56
- package/dist/src/models/FreshdeskTicketEntity.d.ts +0 -68
- package/dist/src/models/FreshdeskTicketEntity.js +0 -61
- package/dist/src/models/FtpAccountsEntity.d.ts +0 -56
- package/dist/src/models/FtpAccountsEntity.js +0 -57
- package/dist/src/models/GenericFileModel.d.ts +0 -44
- package/dist/src/models/GenericFileModel.js +0 -53
- package/dist/src/models/GetGetPrice200Response.d.ts +0 -32
- package/dist/src/models/GetGetPrice200Response.js +0 -49
- package/dist/src/models/GetGetRecording200Response.d.ts +0 -32
- package/dist/src/models/GetGetRecording200Response.js +0 -49
- package/dist/src/models/HostingChangeResponseModel.d.ts +0 -64
- package/dist/src/models/HostingChangeResponseModel.js +0 -65
- package/dist/src/models/HostingRegionDTO.d.ts +0 -59
- package/dist/src/models/HostingRegionDTO.js +0 -68
- package/dist/src/models/InstanceAutoFailoverEntity.d.ts +0 -56
- package/dist/src/models/InstanceAutoFailoverEntity.js +0 -57
- package/dist/src/models/InstanceDeletionScheduleEntity.d.ts +0 -50
- package/dist/src/models/InstanceDeletionScheduleEntity.js +0 -55
- package/dist/src/models/InstanceEntity.d.ts +0 -152
- package/dist/src/models/InstanceEntity.js +0 -89
- package/dist/src/models/InstanceFailoverEntity.d.ts +0 -92
- package/dist/src/models/InstanceFailoverEntity.js +0 -69
- package/dist/src/models/InstanceMonitoringEntity.d.ts +0 -44
- package/dist/src/models/InstanceMonitoringEntity.js +0 -53
- package/dist/src/models/InstanceMonitoringLogEntity.d.ts +0 -62
- package/dist/src/models/InstanceMonitoringLogEntity.js +0 -59
- package/dist/src/models/InstanceScheduledTasksEntity.d.ts +0 -62
- package/dist/src/models/InstanceScheduledTasksEntity.js +0 -59
- package/dist/src/models/InstanceTcxDetailsEntity.d.ts +0 -86
- package/dist/src/models/InstanceTcxDetailsEntity.js +0 -67
- package/dist/src/models/InstanceUserCredentialsEntity.d.ts +0 -56
- package/dist/src/models/InstanceUserCredentialsEntity.js +0 -57
- package/dist/src/models/ItemDTO.d.ts +0 -117
- package/dist/src/models/ItemDTO.js +0 -78
- package/dist/src/models/ItemDiscountEntity.d.ts +0 -77
- package/dist/src/models/ItemDiscountEntity.js +0 -70
- package/dist/src/models/ItemEntity.d.ts +0 -158
- package/dist/src/models/ItemEntity.js +0 -91
- package/dist/src/models/LinkedOrderEntity.d.ts +0 -38
- package/dist/src/models/LinkedOrderEntity.js +0 -51
- package/dist/src/models/MFARequiredModel.d.ts +0 -38
- package/dist/src/models/MFARequiredModel.js +0 -51
- package/dist/src/models/MonthlyUsageModel.d.ts +0 -38
- package/dist/src/models/MonthlyUsageModel.js +0 -51
- package/dist/src/models/MultiTenantChangeResponseModel.d.ts +0 -70
- package/dist/src/models/MultiTenantChangeResponseModel.js +0 -75
- package/dist/src/models/NavigationModel.d.ts +0 -50
- package/dist/src/models/NavigationModel.js +0 -55
- package/dist/src/models/OfflineInstancesEntity.d.ts +0 -56
- package/dist/src/models/OfflineInstancesEntity.js +0 -57
- package/dist/src/models/OrderEntity.d.ts +0 -374
- package/dist/src/models/OrderEntity.js +0 -163
- package/dist/src/models/OrderRequestModel.d.ts +0 -120
- package/dist/src/models/OrderRequestModel.js +0 -88
- package/dist/src/models/OrderSummariesModel.d.ts +0 -51
- package/dist/src/models/OrderSummariesModel.js +0 -56
- package/dist/src/models/OrderSummaryDTO.d.ts +0 -126
- package/dist/src/models/OrderSummaryDTO.js +0 -83
- package/dist/src/models/OrderTotalModel.d.ts +0 -111
- package/dist/src/models/OrderTotalModel.js +0 -100
- package/dist/src/models/OrderedItemEntity.d.ts +0 -110
- package/dist/src/models/OrderedItemEntity.js +0 -75
- package/dist/src/models/PatchSetTcxWizardCnameRequest.d.ts +0 -32
- package/dist/src/models/PatchSetTcxWizardCnameRequest.js +0 -49
- package/dist/src/models/PatchUpdateAccountContactPasswordRequest.d.ts +0 -32
- package/dist/src/models/PatchUpdateAccountContactPasswordRequest.js +0 -49
- package/dist/src/models/PortalAccountModel.d.ts +0 -171
- package/dist/src/models/PortalAccountModel.js +0 -96
- package/dist/src/models/PortalLoginModel.d.ts +0 -68
- package/dist/src/models/PortalLoginModel.js +0 -61
- package/dist/src/models/PostAddWebhook200Response.d.ts +0 -32
- package/dist/src/models/PostAddWebhook200Response.js +0 -49
- package/dist/src/models/PostGetClientCredentialsRequest.d.ts +0 -32
- package/dist/src/models/PostGetClientCredentialsRequest.js +0 -49
- package/dist/src/models/PostGetProductForCustomerRequest.d.ts +0 -50
- package/dist/src/models/PostGetProductForCustomerRequest.js +0 -55
- package/dist/src/models/PostGetProductRequest.d.ts +0 -44
- package/dist/src/models/PostGetProductRequest.js +0 -53
- package/dist/src/models/PriceListItemModel.d.ts +0 -56
- package/dist/src/models/PriceListItemModel.js +0 -57
- package/dist/src/models/PrizesEntity.d.ts +0 -62
- package/dist/src/models/PrizesEntity.js +0 -59
- package/dist/src/models/ProductPriceListItemModel.d.ts +0 -62
- package/dist/src/models/ProductPriceListItemModel.js +0 -59
- package/dist/src/models/ProductSearchResultsModel.d.ts +0 -33
- package/dist/src/models/ProductSearchResultsModel.js +0 -50
- package/dist/src/models/ProductSerialInfoModel.d.ts +0 -50
- package/dist/src/models/ProductSerialInfoModel.js +0 -55
- package/dist/src/models/ProductSummaryDTO.d.ts +0 -81
- package/dist/src/models/ProductSummaryDTO.js +0 -66
- package/dist/src/models/PromoCodesEntity.d.ts +0 -98
- package/dist/src/models/PromoCodesEntity.js +0 -71
- package/dist/src/models/PromoItemsEntity.d.ts +0 -74
- package/dist/src/models/PromoItemsEntity.js +0 -63
- package/dist/src/models/ProvisioningModel.d.ts +0 -56
- package/dist/src/models/ProvisioningModel.js +0 -57
- package/dist/src/models/ProvisioningRequestEntity.d.ts +0 -44
- package/dist/src/models/ProvisioningRequestEntity.js +0 -53
- package/dist/src/models/RecordingBackupAzureModel.d.ts +0 -50
- package/dist/src/models/RecordingBackupAzureModel.js +0 -55
- package/dist/src/models/RecordingsBackupInfoDTO.d.ts +0 -40
- package/dist/src/models/RecordingsBackupInfoDTO.js +0 -53
- package/dist/src/models/ResourceNotReadyException.d.ts +0 -44
- package/dist/src/models/ResourceNotReadyException.js +0 -53
- package/dist/src/models/RootAccessModel.d.ts +0 -44
- package/dist/src/models/RootAccessModel.js +0 -53
- package/dist/src/models/S3BucketEntity.d.ts +0 -50
- package/dist/src/models/S3BucketEntity.js +0 -55
- package/dist/src/models/ScannedItemModel.d.ts +0 -56
- package/dist/src/models/ScannedItemModel.js +0 -57
- package/dist/src/models/ScopeModel.d.ts +0 -38
- package/dist/src/models/ScopeModel.js +0 -51
- package/dist/src/models/ServiceEnum.d.ts +0 -14
- package/dist/src/models/ServiceEnum.js +0 -19
- package/dist/src/models/ServiceHealthDTO.d.ts +0 -48
- package/dist/src/models/ServiceHealthDTO.js +0 -61
- package/dist/src/models/ServiceHealthEnum.d.ts +0 -19
- package/dist/src/models/ServiceHealthEnum.js +0 -24
- package/dist/src/models/ServiceStatusDTO.d.ts +0 -60
- package/dist/src/models/ServiceStatusDTO.js +0 -65
- package/dist/src/models/ServiceStatusEnum.d.ts +0 -19
- package/dist/src/models/ServiceStatusEnum.js +0 -24
- package/dist/src/models/ShipmentAddressEntity.d.ts +0 -92
- package/dist/src/models/ShipmentAddressEntity.js +0 -69
- package/dist/src/models/ShipmentEntity.d.ts +0 -98
- package/dist/src/models/ShipmentEntity.js +0 -71
- package/dist/src/models/ShipmentItemEntity.d.ts +0 -56
- package/dist/src/models/ShipmentItemEntity.js +0 -57
- package/dist/src/models/ShippingConsignmentModel.d.ts +0 -51
- package/dist/src/models/ShippingConsignmentModel.js +0 -56
- package/dist/src/models/ShippingInformationDTO.d.ts +0 -45
- package/dist/src/models/ShippingInformationDTO.js +0 -54
- package/dist/src/models/ShippingServiceDTO.d.ts +0 -47
- package/dist/src/models/ShippingServiceDTO.js +0 -60
- package/dist/src/models/ShippingServiceModel.d.ts +0 -71
- package/dist/src/models/ShippingServiceModel.js +0 -68
- package/dist/src/models/ShippingServicesModel.d.ts +0 -33
- package/dist/src/models/ShippingServicesModel.js +0 -50
- package/dist/src/models/SipTrunkChangeResponseModel.d.ts +0 -77
- package/dist/src/models/SipTrunkChangeResponseModel.js +0 -78
- package/dist/src/models/SipTrunkCreationRequestModel.d.ts +0 -66
- package/dist/src/models/SipTrunkCreationRequestModel.js +0 -63
- package/dist/src/models/SipTrunkEntity.d.ts +0 -98
- package/dist/src/models/SipTrunkEntity.js +0 -71
- package/dist/src/models/SipTrunksResponseModel.d.ts +0 -51
- package/dist/src/models/SipTrunksResponseModel.js +0 -56
- package/dist/src/models/SmsAccountEntity.d.ts +0 -68
- package/dist/src/models/SmsAccountEntity.js +0 -61
- package/dist/src/models/SmsDataModel.d.ts +0 -33
- package/dist/src/models/SmsDataModel.js +0 -50
- package/dist/src/models/SmsMessageModel.d.ts +0 -44
- package/dist/src/models/SmsMessageModel.js +0 -53
- package/dist/src/models/SmsNumbersEntity.d.ts +0 -38
- package/dist/src/models/SmsNumbersEntity.js +0 -51
- package/dist/src/models/SmsPayloadModel.d.ts +0 -45
- package/dist/src/models/SmsPayloadModel.js +0 -54
- package/dist/src/models/SmsPhoneNumberModel.d.ts +0 -53
- package/dist/src/models/SmsPhoneNumberModel.js +0 -66
- package/dist/src/models/SmsResponseModel.d.ts +0 -67
- package/dist/src/models/SmsResponseModel.js +0 -68
- package/dist/src/models/SmsWhitelistEntity.d.ts +0 -38
- package/dist/src/models/SmsWhitelistEntity.js +0 -51
- package/dist/src/models/StockOrderCourierEntity.d.ts +0 -50
- package/dist/src/models/StockOrderCourierEntity.js +0 -55
- package/dist/src/models/StockOrderDeductionModel.d.ts +0 -50
- package/dist/src/models/StockOrderDeductionModel.js +0 -55
- package/dist/src/models/StockOrderDeductionRequestModel.d.ts +0 -38
- package/dist/src/models/StockOrderDeductionRequestModel.js +0 -51
- package/dist/src/models/StockOrderDeductionsEntity.d.ts +0 -50
- package/dist/src/models/StockOrderDeductionsEntity.js +0 -55
- package/dist/src/models/StockOrderEntity.d.ts +0 -158
- package/dist/src/models/StockOrderEntity.js +0 -91
- package/dist/src/models/StockOrderItemEntity.d.ts +0 -68
- package/dist/src/models/StockOrderItemEntity.js +0 -61
- package/dist/src/models/StockOrderItemModel.d.ts +0 -80
- package/dist/src/models/StockOrderItemModel.js +0 -65
- package/dist/src/models/StockOrderItemRequestModel.d.ts +0 -50
- package/dist/src/models/StockOrderItemRequestModel.js +0 -55
- package/dist/src/models/StockOrderModel.d.ts +0 -137
- package/dist/src/models/StockOrderModel.js +0 -97
- package/dist/src/models/StockOrderProductEntity.d.ts +0 -62
- package/dist/src/models/StockOrderProductEntity.js +0 -59
- package/dist/src/models/StockOrderRequestModel.d.ts +0 -46
- package/dist/src/models/StockOrderRequestModel.js +0 -55
- package/dist/src/models/StockOrderSupplierEntity.d.ts +0 -80
- package/dist/src/models/StockOrderSupplierEntity.js +0 -65
- package/dist/src/models/StockOrderSupplierModel.d.ts +0 -80
- package/dist/src/models/StockOrderSupplierModel.js +0 -65
- package/dist/src/models/StockOrdersModel.d.ts +0 -51
- package/dist/src/models/StockOrdersModel.js +0 -56
- package/dist/src/models/StockProductModel.d.ts +0 -120
- package/dist/src/models/StockProductModel.js +0 -81
- package/dist/src/models/StockProductPriceModel.d.ts +0 -39
- package/dist/src/models/StockProductPriceModel.js +0 -52
- package/dist/src/models/StockProductSummariesModel.d.ts +0 -51
- package/dist/src/models/StockProductSummariesModel.js +0 -56
- package/dist/src/models/StockProductSummaryModel.d.ts +0 -69
- package/dist/src/models/StockProductSummaryModel.js +0 -62
- package/dist/src/models/StockTransactionsEntity.d.ts +0 -74
- package/dist/src/models/StockTransactionsEntity.js +0 -63
- package/dist/src/models/SupplierEntity.d.ts +0 -80
- package/dist/src/models/SupplierEntity.js +0 -65
- package/dist/src/models/SupplierItemEntity.d.ts +0 -74
- package/dist/src/models/SupplierItemEntity.js +0 -63
- package/dist/src/models/TcxBackupEntity.d.ts +0 -80
- package/dist/src/models/TcxBackupEntity.js +0 -65
- package/dist/src/models/TcxBackupModel.d.ts +0 -140
- package/dist/src/models/TcxBackupModel.js +0 -85
- package/dist/src/models/TcxBillingEntity.d.ts +0 -86
- package/dist/src/models/TcxBillingEntity.js +0 -67
- package/dist/src/models/TcxBulkLicenceDetailsModel.d.ts +0 -40
- package/dist/src/models/TcxBulkLicenceDetailsModel.js +0 -53
- package/dist/src/models/TcxDeadLicenceEntity.d.ts +0 -44
- package/dist/src/models/TcxDeadLicenceEntity.js +0 -53
- package/dist/src/models/TcxExtsEntity.d.ts +0 -74
- package/dist/src/models/TcxExtsEntity.js +0 -63
- package/dist/src/models/TcxHostingPricingEntity.d.ts +0 -74
- package/dist/src/models/TcxHostingPricingEntity.js +0 -63
- package/dist/src/models/TcxInstallationDetailsModel.d.ts +0 -106
- package/dist/src/models/TcxInstallationDetailsModel.js +0 -75
- package/dist/src/models/TcxInstallationModel.d.ts +0 -200
- package/dist/src/models/TcxInstallationModel.js +0 -105
- package/dist/src/models/TcxInstallationsModel.d.ts +0 -51
- package/dist/src/models/TcxInstallationsModel.js +0 -56
- package/dist/src/models/TcxKeySummaryDTO.d.ts +0 -56
- package/dist/src/models/TcxKeySummaryDTO.js +0 -57
- package/dist/src/models/TcxKeysEntity.d.ts +0 -62
- package/dist/src/models/TcxKeysEntity.js +0 -59
- package/dist/src/models/TcxLicenceDetailsErrorModel.d.ts +0 -50
- package/dist/src/models/TcxLicenceDetailsErrorModel.js +0 -55
- package/dist/src/models/TcxLicenceDetailsModel.d.ts +0 -92
- package/dist/src/models/TcxLicenceDetailsModel.js +0 -69
- package/dist/src/models/TcxMacsEntity.d.ts +0 -44
- package/dist/src/models/TcxMacsEntity.js +0 -53
- package/dist/src/models/TcxMultiTenantModel.d.ts +0 -118
- package/dist/src/models/TcxMultiTenantModel.js +0 -83
- package/dist/src/models/TcxMultiTenantUserModel.d.ts +0 -44
- package/dist/src/models/TcxMultiTenantUserModel.js +0 -53
- package/dist/src/models/TcxMultiTenantsModel.d.ts +0 -51
- package/dist/src/models/TcxMultiTenantsModel.js +0 -56
- package/dist/src/models/TcxNumbersEntity.d.ts +0 -44
- package/dist/src/models/TcxNumbersEntity.js +0 -53
- package/dist/src/models/TcxOfficeHoursEntity.d.ts +0 -116
- package/dist/src/models/TcxOfficeHoursEntity.js +0 -77
- package/dist/src/models/TcxPhoneModel.d.ts +0 -68
- package/dist/src/models/TcxPhoneModel.js +0 -61
- package/dist/src/models/TcxPhonesEntity.d.ts +0 -62
- package/dist/src/models/TcxPhonesEntity.js +0 -59
- package/dist/src/models/TcxRemoteStorageModel.d.ts +0 -50
- package/dist/src/models/TcxRemoteStorageModel.js +0 -55
- package/dist/src/models/TcxSbcDTO.d.ts +0 -62
- package/dist/src/models/TcxSbcDTO.js +0 -59
- package/dist/src/models/TcxSbcEntity.d.ts +0 -122
- package/dist/src/models/TcxSbcEntity.js +0 -79
- package/dist/src/models/TcxSbcModel.d.ts +0 -122
- package/dist/src/models/TcxSbcModel.js +0 -79
- package/dist/src/models/TcxSetupEntity.d.ts +0 -207
- package/dist/src/models/TcxSetupEntity.js +0 -123
- package/dist/src/models/TcxSetupsModel.d.ts +0 -51
- package/dist/src/models/TcxSetupsModel.js +0 -56
- package/dist/src/models/TcxSipTrunksEntity.d.ts +0 -104
- package/dist/src/models/TcxSipTrunksEntity.js +0 -73
- package/dist/src/models/TcxTemplateXmlEnum.d.ts +0 -38
- package/dist/src/models/TcxTemplateXmlEnum.js +0 -51
- package/dist/src/models/TcxUsersEntity.d.ts +0 -62
- package/dist/src/models/TcxUsersEntity.js +0 -59
- package/dist/src/models/TcxWizardConfigModel.d.ts +0 -39
- package/dist/src/models/TcxWizardConfigModel.js +0 -52
- package/dist/src/models/TcxWizardModel.d.ts +0 -150
- package/dist/src/models/TcxWizardModel.js +0 -114
- package/dist/src/models/TechSupportCompanySummaryDTO.d.ts +0 -57
- package/dist/src/models/TechSupportCompanySummaryDTO.js +0 -58
- package/dist/src/models/TelephonySupportTicketModel.d.ts +0 -94
- package/dist/src/models/TelephonySupportTicketModel.js +0 -71
- package/dist/src/models/TicketSummaryModel.d.ts +0 -74
- package/dist/src/models/TicketSummaryModel.js +0 -63
- package/dist/src/models/TicketTimeDTO.d.ts +0 -80
- package/dist/src/models/TicketTimeDTO.js +0 -65
- package/dist/src/models/TokenResponseModel.d.ts +0 -44
- package/dist/src/models/TokenResponseModel.js +0 -53
- package/dist/src/models/UpdateTypeEnum.d.ts +0 -19
- package/dist/src/models/UpdateTypeEnum.js +0 -24
- package/dist/src/models/UpgradeOrderResponseModel.d.ts +0 -38
- package/dist/src/models/UpgradeOrderResponseModel.js +0 -51
- package/dist/src/models/UpgradeRequestModel.d.ts +0 -66
- package/dist/src/models/UpgradeRequestModel.js +0 -70
- package/dist/src/models/UserEntity.d.ts +0 -98
- package/dist/src/models/UserEntity.js +0 -71
- package/dist/src/models/XeroLogEntity.d.ts +0 -86
- package/dist/src/models/XeroLogEntity.js +0 -67
- package/dist/src/models/index.d.ts +0 -196
- package/dist/src/models/index.js +0 -214
- package/dist/src/runtime.d.ts +0 -184
- package/dist/src/runtime.js +0 -564
- package/docs/AccountPageDetailsDTO.md +0 -41
- package/docs/AddressDTO.md +0 -31
- package/docs/CreateCrmNoteBody.md +0 -20
- package/docs/CrmActivitiesResponseDto.md +0 -23
- package/docs/CrmActivityDto.md +0 -33
- package/docs/CrmDateActivitiesDTO.md +0 -23
- package/docs/CrmNoteEntity.md +0 -39
- package/docs/CrmNoteModel.md +0 -39
- package/docs/NumberPortAdminNoteBody.md +0 -20
- package/docs/PatchSendWelcomeEmailRequest.md +0 -20
- package/docs/PatchUpdateAccountCnameRequest.md +0 -20
- package/docs/PatchUpdateAccountCompanyNumberRequest.md +0 -20
- package/docs/PatchUpdateAccountPhoneRequest.md +0 -20
- package/docs/PatchUpdateAccountVatNumberRequest.md +0 -20
- package/docs/PostCreateCrmNoteRequest.md +0 -20
- package/docs/PostGetProductRequest.md +0 -24
- package/docs/PostSendWelcomeEmailRequest.md +0 -20
- package/docs/TcxInstallationDetailsModel.md +0 -45
package/dist/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Yellowgrid
|
|
6
|
-
* Welcome to the Yellowgrid API documentation.
|
|
6
|
+
* Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `https://bitbucket.org` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0
|
|
9
9
|
*
|
|
@@ -84,27 +84,39 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
87
|
+
exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
|
|
88
|
+
exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = void 0;
|
|
89
|
+
exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = void 0;
|
|
90
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = void 0;
|
|
90
91
|
var axios_1 = require("axios");
|
|
91
92
|
// Some imports not used depending on template conditions
|
|
92
93
|
// @ts-ignore
|
|
93
94
|
var common_1 = require("./common");
|
|
94
95
|
// @ts-ignore
|
|
95
96
|
var base_1 = require("./base");
|
|
97
|
+
exports.AdminOrderRequestDTOPaymentMethodEnum = {
|
|
98
|
+
Card: 'card',
|
|
99
|
+
Bacs: 'bacs',
|
|
100
|
+
};
|
|
96
101
|
exports.AdminUserModelRoleEnum = {
|
|
97
102
|
NUMBER_0: 0,
|
|
98
103
|
NUMBER_1: 1,
|
|
99
104
|
NUMBER_2: 2,
|
|
100
105
|
NUMBER_3: 3,
|
|
101
|
-
NUMBER_4: 4
|
|
106
|
+
NUMBER_4: 4,
|
|
107
|
+
};
|
|
108
|
+
exports.AdminUserModelPermissionsEnum = {
|
|
109
|
+
All: 'All',
|
|
110
|
+
Standard: 'Standard',
|
|
111
|
+
Technical: 'Technical',
|
|
112
|
+
Privileged: 'Privileged',
|
|
113
|
+
Development: 'Development',
|
|
102
114
|
};
|
|
103
115
|
exports.AuditLogEntityActionEnum = {
|
|
104
116
|
Create: 'CREATE',
|
|
105
117
|
Read: 'READ',
|
|
106
118
|
Update: 'UPDATE',
|
|
107
|
-
Delete: 'DELETE'
|
|
119
|
+
Delete: 'DELETE',
|
|
108
120
|
};
|
|
109
121
|
exports.AuditLogEntityTypeEnum = {
|
|
110
122
|
AuditLog: 'audit_log',
|
|
@@ -113,7 +125,6 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
113
125
|
ApiLog: 'api_log',
|
|
114
126
|
PopsBatches: 'pops_batches',
|
|
115
127
|
PopsCourierPrices: 'pops_courier_prices',
|
|
116
|
-
PopsCrmNotes: 'pops_crm_notes',
|
|
117
128
|
PopsCreditAccounts: 'pops_credit_accounts',
|
|
118
129
|
PopsCreditNotes: 'pops_credit_notes',
|
|
119
130
|
PopsCreditNotesItems: 'pops_credit_notes_items',
|
|
@@ -147,6 +158,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
147
158
|
PopsPromoCodes: 'pops_promo_codes',
|
|
148
159
|
PopsPromoItems: 'pops_promo_items',
|
|
149
160
|
PopsProvisioning: 'pops_provisioning',
|
|
161
|
+
PopsProspectsV2: 'pops_prospects_v2',
|
|
150
162
|
S3Buckets: 's3_buckets',
|
|
151
163
|
PopsShipmentAddress: 'pops_shipment_address',
|
|
152
164
|
PopsShipments: 'pops_shipments',
|
|
@@ -183,20 +195,20 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
183
195
|
Webhook: 'webhook',
|
|
184
196
|
PopsXeroLog: 'pops_xero_log',
|
|
185
197
|
Oauth2Clients: 'oauth2_clients',
|
|
186
|
-
Oauth2Tokens: 'oauth2_tokens'
|
|
198
|
+
Oauth2Tokens: 'oauth2_tokens',
|
|
187
199
|
};
|
|
188
200
|
exports.DivertResponseModelStatusEnum = {
|
|
189
201
|
Enabled: 'enabled',
|
|
190
|
-
Disabled: 'disabled'
|
|
202
|
+
Disabled: 'disabled',
|
|
191
203
|
};
|
|
192
204
|
exports.EventDTOStatusEnum = {
|
|
193
205
|
NUMBER_0: 0,
|
|
194
206
|
NUMBER_1: 1,
|
|
195
|
-
NUMBER_2: 2
|
|
207
|
+
NUMBER_2: 2,
|
|
196
208
|
};
|
|
197
209
|
exports.HostingChangeResponseModelTypeEnum = {
|
|
198
210
|
NewInstance: 'New Instance',
|
|
199
|
-
BuildingInstance: 'Building Instance'
|
|
211
|
+
BuildingInstance: 'Building Instance',
|
|
200
212
|
};
|
|
201
213
|
exports.HostingRegionDTOCodeEnum = {
|
|
202
214
|
Uk1: 'UK1',
|
|
@@ -207,12 +219,12 @@ exports.HostingRegionDTOCodeEnum = {
|
|
|
207
219
|
Syd1: 'SYD1',
|
|
208
220
|
Sgp1: 'SGP1',
|
|
209
221
|
UsEastVa1: 'US-EAST-VA-1',
|
|
210
|
-
UsWestOr1: 'US-WEST-OR-1'
|
|
222
|
+
UsWestOr1: 'US-WEST-OR-1',
|
|
211
223
|
};
|
|
212
224
|
exports.ItemDiscountEntityTypeEnum = {
|
|
213
225
|
TcxPhones: 'TCX_PHONES',
|
|
214
226
|
PhoneBulk: 'PHONE_BULK',
|
|
215
|
-
Additional: 'ADDITIONAL'
|
|
227
|
+
Additional: 'ADDITIONAL',
|
|
216
228
|
};
|
|
217
229
|
exports.MultiTenantChangeResponseModelTypeEnum = {
|
|
218
230
|
NewTrunk: 'New Trunk',
|
|
@@ -228,15 +240,15 @@ exports.MultiTenantChangeResponseModelTypeEnum = {
|
|
|
228
240
|
Address: 'Address',
|
|
229
241
|
BulkEndpointDetails: 'Bulk Endpoint Details',
|
|
230
242
|
Fraud: 'Fraud',
|
|
231
|
-
CallBarring: 'Call Barring'
|
|
243
|
+
CallBarring: 'Call Barring',
|
|
232
244
|
};
|
|
233
245
|
exports.OrderRequestModelLicenceTypeEnum = {
|
|
234
246
|
Lite: 'lite',
|
|
235
|
-
Pro: 'pro'
|
|
247
|
+
Pro: 'pro',
|
|
236
248
|
};
|
|
237
249
|
exports.OrderRequestModelSchoolTypeEnum = {
|
|
238
250
|
Primary: 'primary',
|
|
239
|
-
Secondary: 'secondary'
|
|
251
|
+
Secondary: 'secondary',
|
|
240
252
|
};
|
|
241
253
|
exports.OrderTotalModelCurrencyEnum = {
|
|
242
254
|
Eur: 'EUR',
|
|
@@ -269,47 +281,54 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
269
281
|
Php: 'PHP',
|
|
270
282
|
Sgd: 'SGD',
|
|
271
283
|
Thb: 'THB',
|
|
272
|
-
Zar: 'ZAR'
|
|
284
|
+
Zar: 'ZAR',
|
|
285
|
+
};
|
|
286
|
+
exports.ProspectDTOStatusEnum = {
|
|
287
|
+
NoCallBackSet: 'No Call Back Set',
|
|
288
|
+
CallBackDue: 'Call Back Due',
|
|
289
|
+
NoOrdersPlaced: 'No Orders Placed',
|
|
290
|
+
NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
|
|
291
|
+
NoActionRequired: 'No Action Required',
|
|
273
292
|
};
|
|
274
293
|
exports.ServiceHealthDTOGlobalStatusEnum = {
|
|
275
294
|
NUMBER_0: 0,
|
|
276
295
|
NUMBER_1: 1,
|
|
277
|
-
NUMBER_2: 2
|
|
296
|
+
NUMBER_2: 2,
|
|
278
297
|
};
|
|
279
298
|
exports.ServiceStatusDTOStatusEnum = {
|
|
280
299
|
_0: '0',
|
|
281
300
|
_1: '1',
|
|
282
|
-
_2: '2'
|
|
301
|
+
_2: '2',
|
|
283
302
|
};
|
|
284
303
|
exports.ShipmentDTOCourierEnum = {
|
|
285
304
|
Dpd: 'DPD',
|
|
286
305
|
ChorltonPallet: 'Chorlton Pallet',
|
|
287
|
-
Pops: 'POPS'
|
|
306
|
+
Pops: 'POPS',
|
|
288
307
|
};
|
|
289
308
|
exports.ShipmentRequestDTOCourierEnum = {
|
|
290
309
|
Dpd: 'DPD',
|
|
291
310
|
ChorltonPallet: 'Chorlton Pallet',
|
|
292
|
-
Pops: 'POPS'
|
|
311
|
+
Pops: 'POPS',
|
|
293
312
|
};
|
|
294
313
|
exports.ShippingRequestDTOCourierEnum = {
|
|
295
314
|
Dpd: 'DPD',
|
|
296
315
|
ChorltonPallet: 'Chorlton Pallet',
|
|
297
|
-
Pops: 'POPS'
|
|
316
|
+
Pops: 'POPS',
|
|
298
317
|
};
|
|
299
318
|
exports.ShippingRequestDTOPrinterEnum = {
|
|
300
319
|
NUMBER_1: 1,
|
|
301
320
|
NUMBER_2: 2,
|
|
302
|
-
NUMBER_3: 3
|
|
321
|
+
NUMBER_3: 3,
|
|
303
322
|
};
|
|
304
323
|
exports.ShippingServiceDTOCourierEnum = {
|
|
305
324
|
Dpd: 'DPD',
|
|
306
325
|
ChorltonPallet: 'Chorlton Pallet',
|
|
307
|
-
Pops: 'POPS'
|
|
326
|
+
Pops: 'POPS',
|
|
308
327
|
};
|
|
309
328
|
exports.ShippingServiceModelCourierEnum = {
|
|
310
329
|
Dpd: 'DPD',
|
|
311
330
|
ChorltonPallet: 'Chorlton Pallet',
|
|
312
|
-
Pops: 'POPS'
|
|
331
|
+
Pops: 'POPS',
|
|
313
332
|
};
|
|
314
333
|
exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
315
334
|
NewTrunk: 'New Trunk',
|
|
@@ -325,17 +344,17 @@ exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
|
325
344
|
Address: 'Address',
|
|
326
345
|
BulkEndpointDetails: 'Bulk Endpoint Details',
|
|
327
346
|
Fraud: 'Fraud',
|
|
328
|
-
CallBarring: 'Call Barring'
|
|
347
|
+
CallBarring: 'Call Barring',
|
|
329
348
|
};
|
|
330
349
|
exports.SmsAccountRequestDTOProviderEnum = {
|
|
331
|
-
NUMBER_1: 1
|
|
350
|
+
NUMBER_1: 1,
|
|
332
351
|
};
|
|
333
352
|
exports.SmsAccountRequestDTOTypeEnum = {
|
|
334
353
|
Local: 'local',
|
|
335
354
|
TollFree: 'toll_free',
|
|
336
355
|
Mobile: 'mobile',
|
|
337
356
|
National: 'national',
|
|
338
|
-
SharedCost: 'shared_cost'
|
|
357
|
+
SharedCost: 'shared_cost',
|
|
339
358
|
};
|
|
340
359
|
exports.SmsPhoneNumberModelStatusEnum = {
|
|
341
360
|
Queued: 'queued',
|
|
@@ -346,31 +365,31 @@ exports.SmsPhoneNumberModelStatusEnum = {
|
|
|
346
365
|
DeliveryUnconfirmed: 'delivery_unconfirmed',
|
|
347
366
|
Delivered: 'delivered',
|
|
348
367
|
DeliveryFailed: 'delivery_failed',
|
|
349
|
-
WebhookDelivered: 'webhook_delivered'
|
|
368
|
+
WebhookDelivered: 'webhook_delivered',
|
|
350
369
|
};
|
|
351
370
|
exports.SmsResponseModelEventTypeEnum = {
|
|
352
371
|
MessageSent: 'message.sent',
|
|
353
372
|
MessageFinalized: 'message.finalized',
|
|
354
|
-
MessageReceived: 'message.received'
|
|
373
|
+
MessageReceived: 'message.received',
|
|
355
374
|
};
|
|
356
375
|
exports.StockOrderModelDeliveryMethodEnum = {
|
|
357
376
|
Sea: 'Sea',
|
|
358
377
|
Air: 'Air',
|
|
359
|
-
Road: 'Road'
|
|
378
|
+
Road: 'Road',
|
|
360
379
|
};
|
|
361
380
|
exports.StockOrderModelPaidEnum = {
|
|
362
381
|
NUMBER_0: 0,
|
|
363
382
|
NUMBER_1: 1,
|
|
364
|
-
NUMBER_2: 2
|
|
383
|
+
NUMBER_2: 2,
|
|
365
384
|
};
|
|
366
385
|
exports.TcxMultiTenantModelPackageEnum = {
|
|
367
|
-
_3CxStarterBundle: '3CX Starter Bundle'
|
|
386
|
+
_3CxStarterBundle: '3CX Starter Bundle',
|
|
368
387
|
};
|
|
369
388
|
exports.TcxSetupEntityInstallTypeEnum = {
|
|
370
389
|
New: 'new',
|
|
371
390
|
Restore: 'restore',
|
|
372
391
|
Failover: 'failover',
|
|
373
|
-
MultiTenant: 'multi-tenant'
|
|
392
|
+
MultiTenant: 'multi-tenant',
|
|
374
393
|
};
|
|
375
394
|
exports.TcxSetupEntityRegionEnum = {
|
|
376
395
|
Uk1: 'UK1',
|
|
@@ -381,13 +400,13 @@ exports.TcxSetupEntityRegionEnum = {
|
|
|
381
400
|
Syd1: 'SYD1',
|
|
382
401
|
Sgp1: 'SGP1',
|
|
383
402
|
UsEastVa1: 'US-EAST-VA-1',
|
|
384
|
-
UsWestOr1: 'US-WEST-OR-1'
|
|
403
|
+
UsWestOr1: 'US-WEST-OR-1',
|
|
385
404
|
};
|
|
386
405
|
exports.TcxWizardModelInstallTypeEnum = {
|
|
387
406
|
New: 'new',
|
|
388
407
|
Restore: 'restore',
|
|
389
408
|
Failover: 'failover',
|
|
390
|
-
MultiTenant: 'multi-tenant'
|
|
409
|
+
MultiTenant: 'multi-tenant',
|
|
391
410
|
};
|
|
392
411
|
exports.TcxWizardModelInstallationStatusEnum = {
|
|
393
412
|
Building: 'Building',
|
|
@@ -404,15 +423,15 @@ exports.TcxWizardModelInstallationStatusEnum = {
|
|
|
404
423
|
RecordingsBackupInstalled: 'Recordings Backup Installed',
|
|
405
424
|
Complete: 'Complete',
|
|
406
425
|
Deleted: 'Deleted',
|
|
407
|
-
Failed: 'Failed'
|
|
426
|
+
Failed: 'Failed',
|
|
408
427
|
};
|
|
409
428
|
exports.UpgradeRequestModelLicenceTypeEnum = {
|
|
410
429
|
Lite: 'lite',
|
|
411
|
-
Pro: 'pro'
|
|
430
|
+
Pro: 'pro',
|
|
412
431
|
};
|
|
413
432
|
exports.UpgradeRequestModelSchoolTypeEnum = {
|
|
414
433
|
Primary: 'primary',
|
|
415
|
-
Secondary: 'secondary'
|
|
434
|
+
Secondary: 'secondary',
|
|
416
435
|
};
|
|
417
436
|
/**
|
|
418
437
|
* AccountsApi - axios parameter creator
|
|
@@ -439,7 +458,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
439
458
|
// verify required parameter 'id' is not null or undefined
|
|
440
459
|
(0, common_1.assertParamExists)('deleteDeleteClientCredentials', 'id', id);
|
|
441
460
|
localVarPath = "/accounts/me/contacts/credentials/{id}"
|
|
442
|
-
.replace(
|
|
461
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
443
462
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
444
463
|
if (configuration) {
|
|
445
464
|
baseOptions = configuration.baseOptions;
|
|
@@ -476,7 +495,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
476
495
|
// verify required parameter 'email' is not null or undefined
|
|
477
496
|
(0, common_1.assertParamExists)('deleteUpdateAccountContact', 'email', email);
|
|
478
497
|
localVarPath = "/accounts/me/contacts/{email}"
|
|
479
|
-
.replace(
|
|
498
|
+
.replace('{email}', encodeURIComponent(String(email)));
|
|
480
499
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
481
500
|
if (configuration) {
|
|
482
501
|
baseOptions = configuration.baseOptions;
|
|
@@ -585,44 +604,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
585
604
|
// verify required parameter 'id' is not null or undefined
|
|
586
605
|
(0, common_1.assertParamExists)('getGetAccountDetailedSummary', 'id', id);
|
|
587
606
|
localVarPath = "/accounts/{id}/summary"
|
|
588
|
-
.replace(
|
|
589
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
590
|
-
if (configuration) {
|
|
591
|
-
baseOptions = configuration.baseOptions;
|
|
592
|
-
}
|
|
593
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
594
|
-
localVarHeaderParameter = {};
|
|
595
|
-
localVarQueryParameter = {};
|
|
596
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
597
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
598
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
599
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
600
|
-
return [2 /*return*/, {
|
|
601
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
602
|
-
options: localVarRequestOptions,
|
|
603
|
-
}];
|
|
604
|
-
});
|
|
605
|
-
});
|
|
606
|
-
},
|
|
607
|
-
/**
|
|
608
|
-
* Get Account Page Details
|
|
609
|
-
* @param {string} id Xero ID
|
|
610
|
-
* @param {*} [options] Override http request option.
|
|
611
|
-
* @throws {RequiredError}
|
|
612
|
-
*/
|
|
613
|
-
getGetAccountPageInfo: function (id_1) {
|
|
614
|
-
var args_1 = [];
|
|
615
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
616
|
-
args_1[_i - 1] = arguments[_i];
|
|
617
|
-
}
|
|
618
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
619
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
620
|
-
if (options === void 0) { options = {}; }
|
|
621
|
-
return __generator(this, function (_a) {
|
|
622
|
-
// verify required parameter 'id' is not null or undefined
|
|
623
|
-
(0, common_1.assertParamExists)('getGetAccountPageInfo', 'id', id);
|
|
624
|
-
localVarPath = "/admin/accounts/{id}"
|
|
625
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
607
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
626
608
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
627
609
|
if (configuration) {
|
|
628
610
|
baseOptions = configuration.baseOptions;
|
|
@@ -798,98 +780,18 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
798
780
|
});
|
|
799
781
|
});
|
|
800
782
|
},
|
|
801
|
-
/**
|
|
802
|
-
* Set Account Portal Access
|
|
803
|
-
* @param {string} id Xero ID
|
|
804
|
-
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
805
|
-
* @param {*} [options] Override http request option.
|
|
806
|
-
* @throws {RequiredError}
|
|
807
|
-
*/
|
|
808
|
-
patchSetPortalAccess: function (id_1, state_1) {
|
|
809
|
-
var args_1 = [];
|
|
810
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
811
|
-
args_1[_i - 2] = arguments[_i];
|
|
812
|
-
}
|
|
813
|
-
return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
|
|
814
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
815
|
-
if (options === void 0) { options = {}; }
|
|
816
|
-
return __generator(this, function (_a) {
|
|
817
|
-
// verify required parameter 'id' is not null or undefined
|
|
818
|
-
(0, common_1.assertParamExists)('patchSetPortalAccess', 'id', id);
|
|
819
|
-
// verify required parameter 'state' is not null or undefined
|
|
820
|
-
(0, common_1.assertParamExists)('patchSetPortalAccess', 'state', state);
|
|
821
|
-
localVarPath = "/admin/accounts/{id}/portal/access/{state}"
|
|
822
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
823
|
-
.replace("{".concat("state", "}"), encodeURIComponent(String(state)));
|
|
824
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
825
|
-
if (configuration) {
|
|
826
|
-
baseOptions = configuration.baseOptions;
|
|
827
|
-
}
|
|
828
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
829
|
-
localVarHeaderParameter = {};
|
|
830
|
-
localVarQueryParameter = {};
|
|
831
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
832
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
833
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
834
|
-
return [2 /*return*/, {
|
|
835
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
836
|
-
options: localVarRequestOptions,
|
|
837
|
-
}];
|
|
838
|
-
});
|
|
839
|
-
});
|
|
840
|
-
},
|
|
841
|
-
/**
|
|
842
|
-
* Set Account Prize Promo
|
|
843
|
-
* @param {string} id Xero ID
|
|
844
|
-
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
845
|
-
* @param {*} [options] Override http request option.
|
|
846
|
-
* @throws {RequiredError}
|
|
847
|
-
*/
|
|
848
|
-
patchSetPrizePromo: function (id_1, state_1) {
|
|
849
|
-
var args_1 = [];
|
|
850
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
851
|
-
args_1[_i - 2] = arguments[_i];
|
|
852
|
-
}
|
|
853
|
-
return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
|
|
854
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
855
|
-
if (options === void 0) { options = {}; }
|
|
856
|
-
return __generator(this, function (_a) {
|
|
857
|
-
// verify required parameter 'id' is not null or undefined
|
|
858
|
-
(0, common_1.assertParamExists)('patchSetPrizePromo', 'id', id);
|
|
859
|
-
// verify required parameter 'state' is not null or undefined
|
|
860
|
-
(0, common_1.assertParamExists)('patchSetPrizePromo', 'state', state);
|
|
861
|
-
localVarPath = "/admin/accounts/{id}/prizes/{state}"
|
|
862
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
863
|
-
.replace("{".concat("state", "}"), encodeURIComponent(String(state)));
|
|
864
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
865
|
-
if (configuration) {
|
|
866
|
-
baseOptions = configuration.baseOptions;
|
|
867
|
-
}
|
|
868
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
869
|
-
localVarHeaderParameter = {};
|
|
870
|
-
localVarQueryParameter = {};
|
|
871
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
872
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
873
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
874
|
-
return [2 /*return*/, {
|
|
875
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
876
|
-
options: localVarRequestOptions,
|
|
877
|
-
}];
|
|
878
|
-
});
|
|
879
|
-
});
|
|
880
|
-
},
|
|
881
783
|
/**
|
|
882
784
|
* Set 3CX Wizard CNAME
|
|
883
|
-
* @param {
|
|
785
|
+
* @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
|
|
884
786
|
* @param {*} [options] Override http request option.
|
|
885
787
|
* @throws {RequiredError}
|
|
886
788
|
*/
|
|
887
|
-
patchSetTcxWizardCname: function (
|
|
789
|
+
patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest_1) {
|
|
888
790
|
var args_1 = [];
|
|
889
791
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
890
792
|
args_1[_i - 1] = arguments[_i];
|
|
891
793
|
}
|
|
892
|
-
return __awaiter(_this, __spreadArray([
|
|
794
|
+
return __awaiter(_this, __spreadArray([patchSetTcxWizardCnameRequest_1], args_1, true), void 0, function (patchSetTcxWizardCnameRequest, options) {
|
|
893
795
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
894
796
|
if (options === void 0) { options = {}; }
|
|
895
797
|
return __generator(this, function (_a) {
|
|
@@ -905,85 +807,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
905
807
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
906
808
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
907
809
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
908
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
909
|
-
return [2 /*return*/, {
|
|
910
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
911
|
-
options: localVarRequestOptions,
|
|
912
|
-
}];
|
|
913
|
-
});
|
|
914
|
-
});
|
|
915
|
-
},
|
|
916
|
-
/**
|
|
917
|
-
* Set Account CNAME
|
|
918
|
-
* @param {string} id Xero ID
|
|
919
|
-
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
920
|
-
* @param {*} [options] Override http request option.
|
|
921
|
-
* @throws {RequiredError}
|
|
922
|
-
*/
|
|
923
|
-
patchUpdateAccountCname: function (id_1, patchUpdateAccountCnameRequest_1) {
|
|
924
|
-
var args_1 = [];
|
|
925
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
926
|
-
args_1[_i - 2] = arguments[_i];
|
|
927
|
-
}
|
|
928
|
-
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCnameRequest, options) {
|
|
929
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
930
|
-
if (options === void 0) { options = {}; }
|
|
931
|
-
return __generator(this, function (_a) {
|
|
932
|
-
// verify required parameter 'id' is not null or undefined
|
|
933
|
-
(0, common_1.assertParamExists)('patchUpdateAccountCname', 'id', id);
|
|
934
|
-
localVarPath = "/admin/accounts/{id}/cname"
|
|
935
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
936
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
937
|
-
if (configuration) {
|
|
938
|
-
baseOptions = configuration.baseOptions;
|
|
939
|
-
}
|
|
940
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
941
|
-
localVarHeaderParameter = {};
|
|
942
|
-
localVarQueryParameter = {};
|
|
943
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
944
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
945
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
946
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
947
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
|
|
948
|
-
return [2 /*return*/, {
|
|
949
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
950
|
-
options: localVarRequestOptions,
|
|
951
|
-
}];
|
|
952
|
-
});
|
|
953
|
-
});
|
|
954
|
-
},
|
|
955
|
-
/**
|
|
956
|
-
* Set Account Company Number
|
|
957
|
-
* @param {string} id Xero ID
|
|
958
|
-
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
959
|
-
* @param {*} [options] Override http request option.
|
|
960
|
-
* @throws {RequiredError}
|
|
961
|
-
*/
|
|
962
|
-
patchUpdateAccountCompanyNumber: function (id_1, patchUpdateAccountCompanyNumberRequest_1) {
|
|
963
|
-
var args_1 = [];
|
|
964
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
965
|
-
args_1[_i - 2] = arguments[_i];
|
|
966
|
-
}
|
|
967
|
-
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCompanyNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
968
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
969
|
-
if (options === void 0) { options = {}; }
|
|
970
|
-
return __generator(this, function (_a) {
|
|
971
|
-
// verify required parameter 'id' is not null or undefined
|
|
972
|
-
(0, common_1.assertParamExists)('patchUpdateAccountCompanyNumber', 'id', id);
|
|
973
|
-
localVarPath = "/admin/accounts/{id}/companyNumber"
|
|
974
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
975
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
976
|
-
if (configuration) {
|
|
977
|
-
baseOptions = configuration.baseOptions;
|
|
978
|
-
}
|
|
979
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
980
|
-
localVarHeaderParameter = {};
|
|
981
|
-
localVarQueryParameter = {};
|
|
982
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
983
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
984
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
986
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration);
|
|
810
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration);
|
|
987
811
|
return [2 /*return*/, {
|
|
988
812
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
989
813
|
options: localVarRequestOptions,
|
|
@@ -1033,84 +857,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1033
857
|
});
|
|
1034
858
|
});
|
|
1035
859
|
},
|
|
1036
|
-
/**
|
|
1037
|
-
* Set Account Phone
|
|
1038
|
-
* @param {string} id Xero ID
|
|
1039
|
-
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
1040
|
-
* @param {*} [options] Override http request option.
|
|
1041
|
-
* @throws {RequiredError}
|
|
1042
|
-
*/
|
|
1043
|
-
patchUpdateAccountPhone: function (id_1, patchUpdateAccountPhoneRequest_1) {
|
|
1044
|
-
var args_1 = [];
|
|
1045
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1046
|
-
args_1[_i - 2] = arguments[_i];
|
|
1047
|
-
}
|
|
1048
|
-
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountPhoneRequest_1], args_1, true), void 0, function (id, patchUpdateAccountPhoneRequest, options) {
|
|
1049
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1050
|
-
if (options === void 0) { options = {}; }
|
|
1051
|
-
return __generator(this, function (_a) {
|
|
1052
|
-
// verify required parameter 'id' is not null or undefined
|
|
1053
|
-
(0, common_1.assertParamExists)('patchUpdateAccountPhone', 'id', id);
|
|
1054
|
-
localVarPath = "/admin/accounts/{id}/phone"
|
|
1055
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1056
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1057
|
-
if (configuration) {
|
|
1058
|
-
baseOptions = configuration.baseOptions;
|
|
1059
|
-
}
|
|
1060
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1061
|
-
localVarHeaderParameter = {};
|
|
1062
|
-
localVarQueryParameter = {};
|
|
1063
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1064
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1065
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1066
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1067
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration);
|
|
1068
|
-
return [2 /*return*/, {
|
|
1069
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1070
|
-
options: localVarRequestOptions,
|
|
1071
|
-
}];
|
|
1072
|
-
});
|
|
1073
|
-
});
|
|
1074
|
-
},
|
|
1075
|
-
/**
|
|
1076
|
-
* Set Account VAT Number
|
|
1077
|
-
* @param {string} id Xero ID
|
|
1078
|
-
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
1079
|
-
* @param {*} [options] Override http request option.
|
|
1080
|
-
* @throws {RequiredError}
|
|
1081
|
-
*/
|
|
1082
|
-
patchUpdateAccountVatNumber: function (id_1, patchUpdateAccountVatNumberRequest_1) {
|
|
1083
|
-
var args_1 = [];
|
|
1084
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1085
|
-
args_1[_i - 2] = arguments[_i];
|
|
1086
|
-
}
|
|
1087
|
-
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountVatNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
1088
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1089
|
-
if (options === void 0) { options = {}; }
|
|
1090
|
-
return __generator(this, function (_a) {
|
|
1091
|
-
// verify required parameter 'id' is not null or undefined
|
|
1092
|
-
(0, common_1.assertParamExists)('patchUpdateAccountVatNumber', 'id', id);
|
|
1093
|
-
localVarPath = "/admin/accounts/{id}/vatNumber"
|
|
1094
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1095
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1096
|
-
if (configuration) {
|
|
1097
|
-
baseOptions = configuration.baseOptions;
|
|
1098
|
-
}
|
|
1099
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1100
|
-
localVarHeaderParameter = {};
|
|
1101
|
-
localVarQueryParameter = {};
|
|
1102
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1103
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1104
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1105
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1106
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration);
|
|
1107
|
-
return [2 /*return*/, {
|
|
1108
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1109
|
-
options: localVarRequestOptions,
|
|
1110
|
-
}];
|
|
1111
|
-
});
|
|
1112
|
-
});
|
|
1113
|
-
},
|
|
1114
860
|
/**
|
|
1115
861
|
* Add Account Contacts
|
|
1116
862
|
* @summary Add Account Contact
|
|
@@ -1274,7 +1020,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1274
1020
|
// verify required parameter 'email' is not null or undefined
|
|
1275
1021
|
(0, common_1.assertParamExists)('postSendEmailVerificationEmail', 'email', email);
|
|
1276
1022
|
localVarPath = "/accounts/contacts/verify/{email}"
|
|
1277
|
-
.replace(
|
|
1023
|
+
.replace('{email}', encodeURIComponent(String(email)));
|
|
1278
1024
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1279
1025
|
if (configuration) {
|
|
1280
1026
|
baseOptions = configuration.baseOptions;
|
|
@@ -1331,45 +1077,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1331
1077
|
});
|
|
1332
1078
|
});
|
|
1333
1079
|
},
|
|
1334
|
-
/**
|
|
1335
|
-
* Send Account Welcome Email
|
|
1336
|
-
* @param {string} id Xero ID
|
|
1337
|
-
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
1338
|
-
* @param {*} [options] Override http request option.
|
|
1339
|
-
* @throws {RequiredError}
|
|
1340
|
-
*/
|
|
1341
|
-
postSendWelcomeEmail: function (id_1, postSendWelcomeEmailRequest_1) {
|
|
1342
|
-
var args_1 = [];
|
|
1343
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1344
|
-
args_1[_i - 2] = arguments[_i];
|
|
1345
|
-
}
|
|
1346
|
-
return __awaiter(_this, __spreadArray([id_1, postSendWelcomeEmailRequest_1], args_1, true), void 0, function (id, postSendWelcomeEmailRequest, options) {
|
|
1347
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1348
|
-
if (options === void 0) { options = {}; }
|
|
1349
|
-
return __generator(this, function (_a) {
|
|
1350
|
-
// verify required parameter 'id' is not null or undefined
|
|
1351
|
-
(0, common_1.assertParamExists)('postSendWelcomeEmail', 'id', id);
|
|
1352
|
-
localVarPath = "/admin/accounts/{id}/email/welcome"
|
|
1353
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1354
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1355
|
-
if (configuration) {
|
|
1356
|
-
baseOptions = configuration.baseOptions;
|
|
1357
|
-
}
|
|
1358
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1359
|
-
localVarHeaderParameter = {};
|
|
1360
|
-
localVarQueryParameter = {};
|
|
1361
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1362
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1363
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1364
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1365
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSendWelcomeEmailRequest, localVarRequestOptions, configuration);
|
|
1366
|
-
return [2 /*return*/, {
|
|
1367
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1368
|
-
options: localVarRequestOptions,
|
|
1369
|
-
}];
|
|
1370
|
-
});
|
|
1371
|
-
});
|
|
1372
|
-
},
|
|
1373
1080
|
/**
|
|
1374
1081
|
* Submit reseller application
|
|
1375
1082
|
* @summary Submit reseller application
|
|
@@ -1435,7 +1142,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1435
1142
|
// verify required parameter 'email' is not null or undefined
|
|
1436
1143
|
(0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
|
|
1437
1144
|
localVarPath = "/accounts/me/contacts/{email}"
|
|
1438
|
-
.replace(
|
|
1145
|
+
.replace('{email}', encodeURIComponent(String(email)));
|
|
1439
1146
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1440
1147
|
if (configuration) {
|
|
1441
1148
|
baseOptions = configuration.baseOptions;
|
|
@@ -1455,84 +1162,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1455
1162
|
});
|
|
1456
1163
|
});
|
|
1457
1164
|
},
|
|
1458
|
-
/**
|
|
1459
|
-
* Update Account Billing Address
|
|
1460
|
-
* @param {string} id Xero ID
|
|
1461
|
-
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
1462
|
-
* @param {*} [options] Override http request option.
|
|
1463
|
-
* @throws {RequiredError}
|
|
1464
|
-
*/
|
|
1465
|
-
putUpdateBillingAddress: function (id_1, addressDTO_1) {
|
|
1466
|
-
var args_1 = [];
|
|
1467
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1468
|
-
args_1[_i - 2] = arguments[_i];
|
|
1469
|
-
}
|
|
1470
|
-
return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
|
|
1471
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1472
|
-
if (options === void 0) { options = {}; }
|
|
1473
|
-
return __generator(this, function (_a) {
|
|
1474
|
-
// verify required parameter 'id' is not null or undefined
|
|
1475
|
-
(0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
|
|
1476
|
-
localVarPath = "/admin/accounts/{id}/billing/address"
|
|
1477
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1478
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1479
|
-
if (configuration) {
|
|
1480
|
-
baseOptions = configuration.baseOptions;
|
|
1481
|
-
}
|
|
1482
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1483
|
-
localVarHeaderParameter = {};
|
|
1484
|
-
localVarQueryParameter = {};
|
|
1485
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1486
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1487
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1488
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1489
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
|
|
1490
|
-
return [2 /*return*/, {
|
|
1491
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1492
|
-
options: localVarRequestOptions,
|
|
1493
|
-
}];
|
|
1494
|
-
});
|
|
1495
|
-
});
|
|
1496
|
-
},
|
|
1497
|
-
/**
|
|
1498
|
-
* Update Account Shipping Address
|
|
1499
|
-
* @param {string} id Xero ID
|
|
1500
|
-
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
1501
|
-
* @param {*} [options] Override http request option.
|
|
1502
|
-
* @throws {RequiredError}
|
|
1503
|
-
*/
|
|
1504
|
-
putUpdateShippingAddress: function (id_1, addressDTO_1) {
|
|
1505
|
-
var args_1 = [];
|
|
1506
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1507
|
-
args_1[_i - 2] = arguments[_i];
|
|
1508
|
-
}
|
|
1509
|
-
return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
|
|
1510
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1511
|
-
if (options === void 0) { options = {}; }
|
|
1512
|
-
return __generator(this, function (_a) {
|
|
1513
|
-
// verify required parameter 'id' is not null or undefined
|
|
1514
|
-
(0, common_1.assertParamExists)('putUpdateShippingAddress', 'id', id);
|
|
1515
|
-
localVarPath = "/admin/accounts/{id}/shipping/address"
|
|
1516
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1517
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1518
|
-
if (configuration) {
|
|
1519
|
-
baseOptions = configuration.baseOptions;
|
|
1520
|
-
}
|
|
1521
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1522
|
-
localVarHeaderParameter = {};
|
|
1523
|
-
localVarQueryParameter = {};
|
|
1524
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1525
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1526
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1527
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1528
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
|
|
1529
|
-
return [2 /*return*/, {
|
|
1530
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1531
|
-
options: localVarRequestOptions,
|
|
1532
|
-
}];
|
|
1533
|
-
});
|
|
1534
|
-
});
|
|
1535
|
-
},
|
|
1536
1165
|
};
|
|
1537
1166
|
};
|
|
1538
1167
|
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
@@ -1656,28 +1285,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1656
1285
|
});
|
|
1657
1286
|
});
|
|
1658
1287
|
},
|
|
1659
|
-
/**
|
|
1660
|
-
* Get Account Page Details
|
|
1661
|
-
* @param {string} id Xero ID
|
|
1662
|
-
* @param {*} [options] Override http request option.
|
|
1663
|
-
* @throws {RequiredError}
|
|
1664
|
-
*/
|
|
1665
|
-
getGetAccountPageInfo: function (id, options) {
|
|
1666
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1667
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1668
|
-
var _a, _b, _c;
|
|
1669
|
-
return __generator(this, function (_d) {
|
|
1670
|
-
switch (_d.label) {
|
|
1671
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountPageInfo(id, options)];
|
|
1672
|
-
case 1:
|
|
1673
|
-
localVarAxiosArgs = _d.sent();
|
|
1674
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1675
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountPageInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1676
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1677
|
-
}
|
|
1678
|
-
});
|
|
1679
|
-
});
|
|
1680
|
-
},
|
|
1681
1288
|
/**
|
|
1682
1289
|
* Get Accounts
|
|
1683
1290
|
* @summary Get Accounts
|
|
@@ -1771,65 +1378,19 @@ var AccountsApiFp = function (configuration) {
|
|
|
1771
1378
|
});
|
|
1772
1379
|
});
|
|
1773
1380
|
},
|
|
1774
|
-
/**
|
|
1775
|
-
* Set Account Portal Access
|
|
1776
|
-
* @param {string} id Xero ID
|
|
1777
|
-
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
1778
|
-
* @param {*} [options] Override http request option.
|
|
1779
|
-
* @throws {RequiredError}
|
|
1780
|
-
*/
|
|
1781
|
-
patchSetPortalAccess: function (id, state, options) {
|
|
1782
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1783
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1784
|
-
var _a, _b, _c;
|
|
1785
|
-
return __generator(this, function (_d) {
|
|
1786
|
-
switch (_d.label) {
|
|
1787
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPortalAccess(id, state, options)];
|
|
1788
|
-
case 1:
|
|
1789
|
-
localVarAxiosArgs = _d.sent();
|
|
1790
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1791
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPortalAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1792
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1793
|
-
}
|
|
1794
|
-
});
|
|
1795
|
-
});
|
|
1796
|
-
},
|
|
1797
|
-
/**
|
|
1798
|
-
* Set Account Prize Promo
|
|
1799
|
-
* @param {string} id Xero ID
|
|
1800
|
-
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
1801
|
-
* @param {*} [options] Override http request option.
|
|
1802
|
-
* @throws {RequiredError}
|
|
1803
|
-
*/
|
|
1804
|
-
patchSetPrizePromo: function (id, state, options) {
|
|
1805
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1806
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1807
|
-
var _a, _b, _c;
|
|
1808
|
-
return __generator(this, function (_d) {
|
|
1809
|
-
switch (_d.label) {
|
|
1810
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPrizePromo(id, state, options)];
|
|
1811
|
-
case 1:
|
|
1812
|
-
localVarAxiosArgs = _d.sent();
|
|
1813
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1814
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPrizePromo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1815
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
});
|
|
1819
|
-
},
|
|
1820
1381
|
/**
|
|
1821
1382
|
* Set 3CX Wizard CNAME
|
|
1822
|
-
* @param {
|
|
1383
|
+
* @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
|
|
1823
1384
|
* @param {*} [options] Override http request option.
|
|
1824
1385
|
* @throws {RequiredError}
|
|
1825
1386
|
*/
|
|
1826
|
-
patchSetTcxWizardCname: function (
|
|
1387
|
+
patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest, options) {
|
|
1827
1388
|
return __awaiter(this, void 0, void 0, function () {
|
|
1828
1389
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1829
1390
|
var _a, _b, _c;
|
|
1830
1391
|
return __generator(this, function (_d) {
|
|
1831
1392
|
switch (_d.label) {
|
|
1832
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(
|
|
1393
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options)];
|
|
1833
1394
|
case 1:
|
|
1834
1395
|
localVarAxiosArgs = _d.sent();
|
|
1835
1396
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1839,52 +1400,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1839
1400
|
});
|
|
1840
1401
|
});
|
|
1841
1402
|
},
|
|
1842
|
-
/**
|
|
1843
|
-
* Set Account CNAME
|
|
1844
|
-
* @param {string} id Xero ID
|
|
1845
|
-
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
1846
|
-
* @param {*} [options] Override http request option.
|
|
1847
|
-
* @throws {RequiredError}
|
|
1848
|
-
*/
|
|
1849
|
-
patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
|
|
1850
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1851
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1852
|
-
var _a, _b, _c;
|
|
1853
|
-
return __generator(this, function (_d) {
|
|
1854
|
-
switch (_d.label) {
|
|
1855
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options)];
|
|
1856
|
-
case 1:
|
|
1857
|
-
localVarAxiosArgs = _d.sent();
|
|
1858
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1859
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1860
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1861
|
-
}
|
|
1862
|
-
});
|
|
1863
|
-
});
|
|
1864
|
-
},
|
|
1865
|
-
/**
|
|
1866
|
-
* Set Account Company Number
|
|
1867
|
-
* @param {string} id Xero ID
|
|
1868
|
-
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1869
|
-
* @param {*} [options] Override http request option.
|
|
1870
|
-
* @throws {RequiredError}
|
|
1871
|
-
*/
|
|
1872
|
-
patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
1873
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1874
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1875
|
-
var _a, _b, _c;
|
|
1876
|
-
return __generator(this, function (_d) {
|
|
1877
|
-
switch (_d.label) {
|
|
1878
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options)];
|
|
1879
|
-
case 1:
|
|
1880
|
-
localVarAxiosArgs = _d.sent();
|
|
1881
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1882
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1883
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1884
|
-
}
|
|
1885
|
-
});
|
|
1886
|
-
});
|
|
1887
|
-
},
|
|
1888
1403
|
/**
|
|
1889
1404
|
* Update Account Password
|
|
1890
1405
|
* @summary Update Account Password
|
|
@@ -1909,52 +1424,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
1909
1424
|
});
|
|
1910
1425
|
});
|
|
1911
1426
|
},
|
|
1912
|
-
/**
|
|
1913
|
-
* Set Account Phone
|
|
1914
|
-
* @param {string} id Xero ID
|
|
1915
|
-
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
1916
|
-
* @param {*} [options] Override http request option.
|
|
1917
|
-
* @throws {RequiredError}
|
|
1918
|
-
*/
|
|
1919
|
-
patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
|
|
1920
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1921
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1922
|
-
var _a, _b, _c;
|
|
1923
|
-
return __generator(this, function (_d) {
|
|
1924
|
-
switch (_d.label) {
|
|
1925
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options)];
|
|
1926
|
-
case 1:
|
|
1927
|
-
localVarAxiosArgs = _d.sent();
|
|
1928
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1929
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1930
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1931
|
-
}
|
|
1932
|
-
});
|
|
1933
|
-
});
|
|
1934
|
-
},
|
|
1935
|
-
/**
|
|
1936
|
-
* Set Account VAT Number
|
|
1937
|
-
* @param {string} id Xero ID
|
|
1938
|
-
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
1939
|
-
* @param {*} [options] Override http request option.
|
|
1940
|
-
* @throws {RequiredError}
|
|
1941
|
-
*/
|
|
1942
|
-
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
1943
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1944
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1945
|
-
var _a, _b, _c;
|
|
1946
|
-
return __generator(this, function (_d) {
|
|
1947
|
-
switch (_d.label) {
|
|
1948
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options)];
|
|
1949
|
-
case 1:
|
|
1950
|
-
localVarAxiosArgs = _d.sent();
|
|
1951
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1952
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountVatNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1953
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1954
|
-
}
|
|
1955
|
-
});
|
|
1956
|
-
});
|
|
1957
|
-
},
|
|
1958
1427
|
/**
|
|
1959
1428
|
* Add Account Contacts
|
|
1960
1429
|
* @summary Add Account Contact
|
|
@@ -2092,29 +1561,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
2092
1561
|
});
|
|
2093
1562
|
});
|
|
2094
1563
|
},
|
|
2095
|
-
/**
|
|
2096
|
-
* Send Account Welcome Email
|
|
2097
|
-
* @param {string} id Xero ID
|
|
2098
|
-
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
2099
|
-
* @param {*} [options] Override http request option.
|
|
2100
|
-
* @throws {RequiredError}
|
|
2101
|
-
*/
|
|
2102
|
-
postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
|
|
2103
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2104
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2105
|
-
var _a, _b, _c;
|
|
2106
|
-
return __generator(this, function (_d) {
|
|
2107
|
-
switch (_d.label) {
|
|
2108
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options)];
|
|
2109
|
-
case 1:
|
|
2110
|
-
localVarAxiosArgs = _d.sent();
|
|
2111
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2112
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postSendWelcomeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2113
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2114
|
-
}
|
|
2115
|
-
});
|
|
2116
|
-
});
|
|
2117
|
-
},
|
|
2118
1564
|
/**
|
|
2119
1565
|
* Submit reseller application
|
|
2120
1566
|
* @summary Submit reseller application
|
|
@@ -2164,52 +1610,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
2164
1610
|
});
|
|
2165
1611
|
});
|
|
2166
1612
|
},
|
|
2167
|
-
/**
|
|
2168
|
-
* Update Account Billing Address
|
|
2169
|
-
* @param {string} id Xero ID
|
|
2170
|
-
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
2171
|
-
* @param {*} [options] Override http request option.
|
|
2172
|
-
* @throws {RequiredError}
|
|
2173
|
-
*/
|
|
2174
|
-
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
2175
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2176
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2177
|
-
var _a, _b, _c;
|
|
2178
|
-
return __generator(this, function (_d) {
|
|
2179
|
-
switch (_d.label) {
|
|
2180
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
|
|
2181
|
-
case 1:
|
|
2182
|
-
localVarAxiosArgs = _d.sent();
|
|
2183
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2184
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateBillingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2185
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2186
|
-
}
|
|
2187
|
-
});
|
|
2188
|
-
});
|
|
2189
|
-
},
|
|
2190
|
-
/**
|
|
2191
|
-
* Update Account Shipping Address
|
|
2192
|
-
* @param {string} id Xero ID
|
|
2193
|
-
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2194
|
-
* @param {*} [options] Override http request option.
|
|
2195
|
-
* @throws {RequiredError}
|
|
2196
|
-
*/
|
|
2197
|
-
putUpdateShippingAddress: function (id, addressDTO, options) {
|
|
2198
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2199
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2200
|
-
var _a, _b, _c;
|
|
2201
|
-
return __generator(this, function (_d) {
|
|
2202
|
-
switch (_d.label) {
|
|
2203
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options)];
|
|
2204
|
-
case 1:
|
|
2205
|
-
localVarAxiosArgs = _d.sent();
|
|
2206
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2207
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateShippingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2208
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2209
|
-
}
|
|
2210
|
-
});
|
|
2211
|
-
});
|
|
2212
|
-
},
|
|
2213
1613
|
};
|
|
2214
1614
|
};
|
|
2215
1615
|
exports.AccountsApiFp = AccountsApiFp;
|
|
@@ -2268,15 +1668,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2268
1668
|
getGetAccountDetailedSummary: function (id, options) {
|
|
2269
1669
|
return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
|
|
2270
1670
|
},
|
|
2271
|
-
/**
|
|
2272
|
-
* Get Account Page Details
|
|
2273
|
-
* @param {string} id Xero ID
|
|
2274
|
-
* @param {*} [options] Override http request option.
|
|
2275
|
-
* @throws {RequiredError}
|
|
2276
|
-
*/
|
|
2277
|
-
getGetAccountPageInfo: function (id, options) {
|
|
2278
|
-
return localVarFp.getGetAccountPageInfo(id, options).then(function (request) { return request(axios, basePath); });
|
|
2279
|
-
},
|
|
2280
1671
|
/**
|
|
2281
1672
|
* Get Accounts
|
|
2282
1673
|
* @summary Get Accounts
|
|
@@ -2319,113 +1710,53 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2319
1710
|
return localVarFp.getVerifyEmailAddress(token, options).then(function (request) { return request(axios, basePath); });
|
|
2320
1711
|
},
|
|
2321
1712
|
/**
|
|
2322
|
-
* Set
|
|
2323
|
-
* @param {
|
|
2324
|
-
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
1713
|
+
* Set 3CX Wizard CNAME
|
|
1714
|
+
* @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
|
|
2325
1715
|
* @param {*} [options] Override http request option.
|
|
2326
1716
|
* @throws {RequiredError}
|
|
2327
1717
|
*/
|
|
2328
|
-
|
|
2329
|
-
return localVarFp.
|
|
1718
|
+
patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest, options) {
|
|
1719
|
+
return localVarFp.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2330
1720
|
},
|
|
2331
1721
|
/**
|
|
2332
|
-
*
|
|
2333
|
-
* @
|
|
2334
|
-
* @param {
|
|
1722
|
+
* Update Account Password
|
|
1723
|
+
* @summary Update Account Password
|
|
1724
|
+
* @param {string} token Verification Token
|
|
1725
|
+
* @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
|
|
2335
1726
|
* @param {*} [options] Override http request option.
|
|
2336
1727
|
* @throws {RequiredError}
|
|
2337
1728
|
*/
|
|
2338
|
-
|
|
2339
|
-
return localVarFp.
|
|
1729
|
+
patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
|
|
1730
|
+
return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2340
1731
|
},
|
|
2341
1732
|
/**
|
|
2342
|
-
*
|
|
2343
|
-
* @
|
|
1733
|
+
* Add Account Contacts
|
|
1734
|
+
* @summary Add Account Contact
|
|
1735
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] New account request
|
|
2344
1736
|
* @param {*} [options] Override http request option.
|
|
2345
1737
|
* @throws {RequiredError}
|
|
2346
1738
|
*/
|
|
2347
|
-
|
|
2348
|
-
return localVarFp.
|
|
1739
|
+
postGetAccountContacts: function (accountContactRequestModel, options) {
|
|
1740
|
+
return localVarFp.postGetAccountContacts(accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2349
1741
|
},
|
|
2350
1742
|
/**
|
|
2351
|
-
*
|
|
2352
|
-
* @
|
|
2353
|
-
* @param {
|
|
1743
|
+
* Create new customer account
|
|
1744
|
+
* @summary Create a new customer account
|
|
1745
|
+
* @param {AccountRequestModel} [accountRequestModel] New account request
|
|
2354
1746
|
* @param {*} [options] Override http request option.
|
|
2355
1747
|
* @throws {RequiredError}
|
|
2356
1748
|
*/
|
|
2357
|
-
|
|
2358
|
-
return localVarFp.
|
|
1749
|
+
postGetAccounts: function (accountRequestModel, options) {
|
|
1750
|
+
return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2359
1751
|
},
|
|
2360
1752
|
/**
|
|
2361
|
-
*
|
|
2362
|
-
* @
|
|
2363
|
-
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1753
|
+
* Get Admin Account
|
|
1754
|
+
* @summary Get Admin Account
|
|
2364
1755
|
* @param {*} [options] Override http request option.
|
|
2365
1756
|
* @throws {RequiredError}
|
|
2366
1757
|
*/
|
|
2367
|
-
|
|
2368
|
-
return localVarFp.
|
|
2369
|
-
},
|
|
2370
|
-
/**
|
|
2371
|
-
* Update Account Password
|
|
2372
|
-
* @summary Update Account Password
|
|
2373
|
-
* @param {string} token Verification Token
|
|
2374
|
-
* @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
|
|
2375
|
-
* @param {*} [options] Override http request option.
|
|
2376
|
-
* @throws {RequiredError}
|
|
2377
|
-
*/
|
|
2378
|
-
patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
|
|
2379
|
-
return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2380
|
-
},
|
|
2381
|
-
/**
|
|
2382
|
-
* Set Account Phone
|
|
2383
|
-
* @param {string} id Xero ID
|
|
2384
|
-
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
2385
|
-
* @param {*} [options] Override http request option.
|
|
2386
|
-
* @throws {RequiredError}
|
|
2387
|
-
*/
|
|
2388
|
-
patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
|
|
2389
|
-
return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2390
|
-
},
|
|
2391
|
-
/**
|
|
2392
|
-
* Set Account VAT Number
|
|
2393
|
-
* @param {string} id Xero ID
|
|
2394
|
-
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
2395
|
-
* @param {*} [options] Override http request option.
|
|
2396
|
-
* @throws {RequiredError}
|
|
2397
|
-
*/
|
|
2398
|
-
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2399
|
-
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2400
|
-
},
|
|
2401
|
-
/**
|
|
2402
|
-
* Add Account Contacts
|
|
2403
|
-
* @summary Add Account Contact
|
|
2404
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] New account request
|
|
2405
|
-
* @param {*} [options] Override http request option.
|
|
2406
|
-
* @throws {RequiredError}
|
|
2407
|
-
*/
|
|
2408
|
-
postGetAccountContacts: function (accountContactRequestModel, options) {
|
|
2409
|
-
return localVarFp.postGetAccountContacts(accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2410
|
-
},
|
|
2411
|
-
/**
|
|
2412
|
-
* Create new customer account
|
|
2413
|
-
* @summary Create a new customer account
|
|
2414
|
-
* @param {AccountRequestModel} [accountRequestModel] New account request
|
|
2415
|
-
* @param {*} [options] Override http request option.
|
|
2416
|
-
* @throws {RequiredError}
|
|
2417
|
-
*/
|
|
2418
|
-
postGetAccounts: function (accountRequestModel, options) {
|
|
2419
|
-
return localVarFp.postGetAccounts(accountRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2420
|
-
},
|
|
2421
|
-
/**
|
|
2422
|
-
* Get Admin Account
|
|
2423
|
-
* @summary Get Admin Account
|
|
2424
|
-
* @param {*} [options] Override http request option.
|
|
2425
|
-
* @throws {RequiredError}
|
|
2426
|
-
*/
|
|
2427
|
-
postGetAdminAccount: function (options) {
|
|
2428
|
-
return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
|
|
1758
|
+
postGetAdminAccount: function (options) {
|
|
1759
|
+
return localVarFp.postGetAdminAccount(options).then(function (request) { return request(axios, basePath); });
|
|
2429
1760
|
},
|
|
2430
1761
|
/**
|
|
2431
1762
|
* Create client credentials
|
|
@@ -2457,16 +1788,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2457
1788
|
postSendPasswordReset: function (email, options) {
|
|
2458
1789
|
return localVarFp.postSendPasswordReset(email, options).then(function (request) { return request(axios, basePath); });
|
|
2459
1790
|
},
|
|
2460
|
-
/**
|
|
2461
|
-
* Send Account Welcome Email
|
|
2462
|
-
* @param {string} id Xero ID
|
|
2463
|
-
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
2464
|
-
* @param {*} [options] Override http request option.
|
|
2465
|
-
* @throws {RequiredError}
|
|
2466
|
-
*/
|
|
2467
|
-
postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
|
|
2468
|
-
return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2469
|
-
},
|
|
2470
1791
|
/**
|
|
2471
1792
|
* Submit reseller application
|
|
2472
1793
|
* @summary Submit reseller application
|
|
@@ -2490,26 +1811,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2490
1811
|
putUpdateAccountContact: function (email, accountContactRequestModel, options) {
|
|
2491
1812
|
return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2492
1813
|
},
|
|
2493
|
-
/**
|
|
2494
|
-
* Update Account Billing Address
|
|
2495
|
-
* @param {string} id Xero ID
|
|
2496
|
-
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
2497
|
-
* @param {*} [options] Override http request option.
|
|
2498
|
-
* @throws {RequiredError}
|
|
2499
|
-
*/
|
|
2500
|
-
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
2501
|
-
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
2502
|
-
},
|
|
2503
|
-
/**
|
|
2504
|
-
* Update Account Shipping Address
|
|
2505
|
-
* @param {string} id Xero ID
|
|
2506
|
-
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2507
|
-
* @param {*} [options] Override http request option.
|
|
2508
|
-
* @throws {RequiredError}
|
|
2509
|
-
*/
|
|
2510
|
-
putUpdateShippingAddress: function (id, addressDTO, options) {
|
|
2511
|
-
return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
2512
|
-
},
|
|
2513
1814
|
};
|
|
2514
1815
|
};
|
|
2515
1816
|
exports.AccountsApiFactory = AccountsApiFactory;
|
|
@@ -2575,16 +1876,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2575
1876
|
var _this = this;
|
|
2576
1877
|
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2577
1878
|
};
|
|
2578
|
-
/**
|
|
2579
|
-
* Get Account Page Details
|
|
2580
|
-
* @param {string} id Xero ID
|
|
2581
|
-
* @param {*} [options] Override http request option.
|
|
2582
|
-
* @throws {RequiredError}
|
|
2583
|
-
*/
|
|
2584
|
-
AccountsApi.prototype.getGetAccountPageInfo = function (id, options) {
|
|
2585
|
-
var _this = this;
|
|
2586
|
-
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountPageInfo(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2587
|
-
};
|
|
2588
1879
|
/**
|
|
2589
1880
|
* Get Accounts
|
|
2590
1881
|
* @summary Get Accounts
|
|
@@ -2630,59 +1921,15 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2630
1921
|
var _this = this;
|
|
2631
1922
|
return (0, exports.AccountsApiFp)(this.configuration).getVerifyEmailAddress(token, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2632
1923
|
};
|
|
2633
|
-
/**
|
|
2634
|
-
* Set Account Portal Access
|
|
2635
|
-
* @param {string} id Xero ID
|
|
2636
|
-
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
2637
|
-
* @param {*} [options] Override http request option.
|
|
2638
|
-
* @throws {RequiredError}
|
|
2639
|
-
*/
|
|
2640
|
-
AccountsApi.prototype.patchSetPortalAccess = function (id, state, options) {
|
|
2641
|
-
var _this = this;
|
|
2642
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchSetPortalAccess(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2643
|
-
};
|
|
2644
|
-
/**
|
|
2645
|
-
* Set Account Prize Promo
|
|
2646
|
-
* @param {string} id Xero ID
|
|
2647
|
-
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
2648
|
-
* @param {*} [options] Override http request option.
|
|
2649
|
-
* @throws {RequiredError}
|
|
2650
|
-
*/
|
|
2651
|
-
AccountsApi.prototype.patchSetPrizePromo = function (id, state, options) {
|
|
2652
|
-
var _this = this;
|
|
2653
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchSetPrizePromo(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2654
|
-
};
|
|
2655
1924
|
/**
|
|
2656
1925
|
* Set 3CX Wizard CNAME
|
|
2657
|
-
* @param {
|
|
2658
|
-
* @param {*} [options] Override http request option.
|
|
2659
|
-
* @throws {RequiredError}
|
|
2660
|
-
*/
|
|
2661
|
-
AccountsApi.prototype.patchSetTcxWizardCname = function (patchUpdateAccountCnameRequest, options) {
|
|
2662
|
-
var _this = this;
|
|
2663
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2664
|
-
};
|
|
2665
|
-
/**
|
|
2666
|
-
* Set Account CNAME
|
|
2667
|
-
* @param {string} id Xero ID
|
|
2668
|
-
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
2669
|
-
* @param {*} [options] Override http request option.
|
|
2670
|
-
* @throws {RequiredError}
|
|
2671
|
-
*/
|
|
2672
|
-
AccountsApi.prototype.patchUpdateAccountCname = function (id, patchUpdateAccountCnameRequest, options) {
|
|
2673
|
-
var _this = this;
|
|
2674
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2675
|
-
};
|
|
2676
|
-
/**
|
|
2677
|
-
* Set Account Company Number
|
|
2678
|
-
* @param {string} id Xero ID
|
|
2679
|
-
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1926
|
+
* @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
|
|
2680
1927
|
* @param {*} [options] Override http request option.
|
|
2681
1928
|
* @throws {RequiredError}
|
|
2682
1929
|
*/
|
|
2683
|
-
AccountsApi.prototype.
|
|
1930
|
+
AccountsApi.prototype.patchSetTcxWizardCname = function (patchSetTcxWizardCnameRequest, options) {
|
|
2684
1931
|
var _this = this;
|
|
2685
|
-
return (0, exports.AccountsApiFp)(this.configuration).
|
|
1932
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2686
1933
|
};
|
|
2687
1934
|
/**
|
|
2688
1935
|
* Update Account Password
|
|
@@ -2696,28 +1943,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2696
1943
|
var _this = this;
|
|
2697
1944
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2698
1945
|
};
|
|
2699
|
-
/**
|
|
2700
|
-
* Set Account Phone
|
|
2701
|
-
* @param {string} id Xero ID
|
|
2702
|
-
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
2703
|
-
* @param {*} [options] Override http request option.
|
|
2704
|
-
* @throws {RequiredError}
|
|
2705
|
-
*/
|
|
2706
|
-
AccountsApi.prototype.patchUpdateAccountPhone = function (id, patchUpdateAccountPhoneRequest, options) {
|
|
2707
|
-
var _this = this;
|
|
2708
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2709
|
-
};
|
|
2710
|
-
/**
|
|
2711
|
-
* Set Account VAT Number
|
|
2712
|
-
* @param {string} id Xero ID
|
|
2713
|
-
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
2714
|
-
* @param {*} [options] Override http request option.
|
|
2715
|
-
* @throws {RequiredError}
|
|
2716
|
-
*/
|
|
2717
|
-
AccountsApi.prototype.patchUpdateAccountVatNumber = function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2718
|
-
var _this = this;
|
|
2719
|
-
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2720
|
-
};
|
|
2721
1946
|
/**
|
|
2722
1947
|
* Add Account Contacts
|
|
2723
1948
|
* @summary Add Account Contact
|
|
@@ -2783,17 +2008,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2783
2008
|
var _this = this;
|
|
2784
2009
|
return (0, exports.AccountsApiFp)(this.configuration).postSendPasswordReset(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2785
2010
|
};
|
|
2786
|
-
/**
|
|
2787
|
-
* Send Account Welcome Email
|
|
2788
|
-
* @param {string} id Xero ID
|
|
2789
|
-
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
2790
|
-
* @param {*} [options] Override http request option.
|
|
2791
|
-
* @throws {RequiredError}
|
|
2792
|
-
*/
|
|
2793
|
-
AccountsApi.prototype.postSendWelcomeEmail = function (id, postSendWelcomeEmailRequest, options) {
|
|
2794
|
-
var _this = this;
|
|
2795
|
-
return (0, exports.AccountsApiFp)(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2796
|
-
};
|
|
2797
2011
|
/**
|
|
2798
2012
|
* Submit reseller application
|
|
2799
2013
|
* @summary Submit reseller application
|
|
@@ -2819,66 +2033,31 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2819
2033
|
var _this = this;
|
|
2820
2034
|
return (0, exports.AccountsApiFp)(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2821
2035
|
};
|
|
2822
|
-
/**
|
|
2823
|
-
* Update Account Billing Address
|
|
2824
|
-
* @param {string} id Xero ID
|
|
2825
|
-
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
2826
|
-
* @param {*} [options] Override http request option.
|
|
2827
|
-
* @throws {RequiredError}
|
|
2828
|
-
*/
|
|
2829
|
-
AccountsApi.prototype.putUpdateBillingAddress = function (id, addressDTO, options) {
|
|
2830
|
-
var _this = this;
|
|
2831
|
-
return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2832
|
-
};
|
|
2833
|
-
/**
|
|
2834
|
-
* Update Account Shipping Address
|
|
2835
|
-
* @param {string} id Xero ID
|
|
2836
|
-
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2837
|
-
* @param {*} [options] Override http request option.
|
|
2838
|
-
* @throws {RequiredError}
|
|
2839
|
-
*/
|
|
2840
|
-
AccountsApi.prototype.putUpdateShippingAddress = function (id, addressDTO, options) {
|
|
2841
|
-
var _this = this;
|
|
2842
|
-
return (0, exports.AccountsApiFp)(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2843
|
-
};
|
|
2844
2036
|
return AccountsApi;
|
|
2845
2037
|
}(base_1.BaseAPI));
|
|
2846
2038
|
exports.AccountsApi = AccountsApi;
|
|
2847
|
-
exports.PatchSetPortalAccessStateEnum = {
|
|
2848
|
-
Enable: 'enable',
|
|
2849
|
-
Disable: 'disable'
|
|
2850
|
-
};
|
|
2851
|
-
exports.PatchSetPrizePromoStateEnum = {
|
|
2852
|
-
Enable: 'enable',
|
|
2853
|
-
Disable: 'disable'
|
|
2854
|
-
};
|
|
2855
2039
|
/**
|
|
2856
|
-
*
|
|
2040
|
+
* BillingApi - axios parameter creator
|
|
2857
2041
|
*/
|
|
2858
|
-
var
|
|
2042
|
+
var BillingApiAxiosParamCreator = function (configuration) {
|
|
2859
2043
|
var _this = this;
|
|
2860
2044
|
return {
|
|
2861
2045
|
/**
|
|
2862
|
-
* Get
|
|
2863
|
-
* @
|
|
2864
|
-
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
2865
|
-
* @param {number} [userId] Activity Created By
|
|
2046
|
+
* Get Billing Customers
|
|
2047
|
+
* @summary Get Billing Customers
|
|
2866
2048
|
* @param {*} [options] Override http request option.
|
|
2867
2049
|
* @throws {RequiredError}
|
|
2868
2050
|
*/
|
|
2869
|
-
|
|
2051
|
+
getGetAllCustomer: function () {
|
|
2870
2052
|
var args_1 = [];
|
|
2871
|
-
for (var _i =
|
|
2872
|
-
args_1[_i
|
|
2053
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2054
|
+
args_1[_i] = arguments[_i];
|
|
2873
2055
|
}
|
|
2874
|
-
return __awaiter(_this, __spreadArray([
|
|
2056
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2875
2057
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2876
2058
|
if (options === void 0) { options = {}; }
|
|
2877
2059
|
return __generator(this, function (_a) {
|
|
2878
|
-
|
|
2879
|
-
(0, common_1.assertParamExists)('getGetCrmActivities', 'id', id);
|
|
2880
|
-
localVarPath = "/admin/crm/{id}/activities"
|
|
2881
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
2060
|
+
localVarPath = "/billing/admin/customerList";
|
|
2882
2061
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2883
2062
|
if (configuration) {
|
|
2884
2063
|
baseOptions = configuration.baseOptions;
|
|
@@ -2886,12 +2065,6 @@ var CRMApiAxiosParamCreator = function (configuration) {
|
|
|
2886
2065
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2887
2066
|
localVarHeaderParameter = {};
|
|
2888
2067
|
localVarQueryParameter = {};
|
|
2889
|
-
if (type !== undefined) {
|
|
2890
|
-
localVarQueryParameter['type'] = type;
|
|
2891
|
-
}
|
|
2892
|
-
if (userId !== undefined) {
|
|
2893
|
-
localVarQueryParameter['userId'] = userId;
|
|
2894
|
-
}
|
|
2895
2068
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2896
2069
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2897
2070
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2903,72 +2076,111 @@ var CRMApiAxiosParamCreator = function (configuration) {
|
|
|
2903
2076
|
});
|
|
2904
2077
|
});
|
|
2905
2078
|
},
|
|
2079
|
+
};
|
|
2080
|
+
};
|
|
2081
|
+
exports.BillingApiAxiosParamCreator = BillingApiAxiosParamCreator;
|
|
2082
|
+
/**
|
|
2083
|
+
* BillingApi - functional programming interface
|
|
2084
|
+
*/
|
|
2085
|
+
var BillingApiFp = function (configuration) {
|
|
2086
|
+
var localVarAxiosParamCreator = (0, exports.BillingApiAxiosParamCreator)(configuration);
|
|
2087
|
+
return {
|
|
2906
2088
|
/**
|
|
2907
|
-
*
|
|
2089
|
+
* Get Billing Customers
|
|
2090
|
+
* @summary Get Billing Customers
|
|
2908
2091
|
* @param {*} [options] Override http request option.
|
|
2909
2092
|
* @throws {RequiredError}
|
|
2910
2093
|
*/
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
baseOptions = configuration.baseOptions;
|
|
2094
|
+
getGetAllCustomer: function (options) {
|
|
2095
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2096
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2097
|
+
var _a, _b, _c;
|
|
2098
|
+
return __generator(this, function (_d) {
|
|
2099
|
+
switch (_d.label) {
|
|
2100
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAllCustomer(options)];
|
|
2101
|
+
case 1:
|
|
2102
|
+
localVarAxiosArgs = _d.sent();
|
|
2103
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2104
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.getGetAllCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2105
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2924
2106
|
}
|
|
2925
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2926
|
-
localVarHeaderParameter = {};
|
|
2927
|
-
localVarQueryParameter = {};
|
|
2928
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2929
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2930
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2931
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2932
|
-
return [2 /*return*/, {
|
|
2933
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2934
|
-
options: localVarRequestOptions,
|
|
2935
|
-
}];
|
|
2936
2107
|
});
|
|
2937
2108
|
});
|
|
2938
2109
|
},
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
exports.BillingApiFp = BillingApiFp;
|
|
2113
|
+
/**
|
|
2114
|
+
* BillingApi - factory interface
|
|
2115
|
+
*/
|
|
2116
|
+
var BillingApiFactory = function (configuration, basePath, axios) {
|
|
2117
|
+
var localVarFp = (0, exports.BillingApiFp)(configuration);
|
|
2118
|
+
return {
|
|
2119
|
+
/**
|
|
2120
|
+
* Get Billing Customers
|
|
2121
|
+
* @summary Get Billing Customers
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
*/
|
|
2125
|
+
getGetAllCustomer: function (options) {
|
|
2126
|
+
return localVarFp.getGetAllCustomer(options).then(function (request) { return request(axios, basePath); });
|
|
2127
|
+
},
|
|
2128
|
+
};
|
|
2129
|
+
};
|
|
2130
|
+
exports.BillingApiFactory = BillingApiFactory;
|
|
2131
|
+
/**
|
|
2132
|
+
* BillingApi - object-oriented interface
|
|
2133
|
+
*/
|
|
2134
|
+
var BillingApi = /** @class */ (function (_super) {
|
|
2135
|
+
__extends(BillingApi, _super);
|
|
2136
|
+
function BillingApi() {
|
|
2137
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Get Billing Customers
|
|
2141
|
+
* @summary Get Billing Customers
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
*/
|
|
2145
|
+
BillingApi.prototype.getGetAllCustomer = function (options) {
|
|
2146
|
+
var _this = this;
|
|
2147
|
+
return (0, exports.BillingApiFp)(this.configuration).getGetAllCustomer(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2148
|
+
};
|
|
2149
|
+
return BillingApi;
|
|
2150
|
+
}(base_1.BaseAPI));
|
|
2151
|
+
exports.BillingApi = BillingApi;
|
|
2152
|
+
/**
|
|
2153
|
+
* CRMApi - axios parameter creator
|
|
2154
|
+
*/
|
|
2155
|
+
var CRMApiAxiosParamCreator = function (configuration) {
|
|
2156
|
+
var _this = this;
|
|
2157
|
+
return {
|
|
2939
2158
|
/**
|
|
2940
|
-
*
|
|
2941
|
-
* @param {number} id Account ID
|
|
2942
|
-
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
2159
|
+
* Search for contacts by phone number
|
|
2943
2160
|
* @param {*} [options] Override http request option.
|
|
2944
2161
|
* @throws {RequiredError}
|
|
2945
2162
|
*/
|
|
2946
|
-
|
|
2163
|
+
getSearchByPhone: function () {
|
|
2947
2164
|
var args_1 = [];
|
|
2948
|
-
for (var _i =
|
|
2949
|
-
args_1[_i
|
|
2165
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2166
|
+
args_1[_i] = arguments[_i];
|
|
2950
2167
|
}
|
|
2951
|
-
return __awaiter(_this, __spreadArray([
|
|
2168
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
2952
2169
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2953
2170
|
if (options === void 0) { options = {}; }
|
|
2954
2171
|
return __generator(this, function (_a) {
|
|
2955
|
-
|
|
2956
|
-
(0, common_1.assertParamExists)('postCreateCrmNote', 'id', id);
|
|
2957
|
-
localVarPath = "/admin/crm/{id}/activities/note"
|
|
2958
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
2172
|
+
localVarPath = "/crm/contact/search";
|
|
2959
2173
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2960
2174
|
if (configuration) {
|
|
2961
2175
|
baseOptions = configuration.baseOptions;
|
|
2962
2176
|
}
|
|
2963
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2177
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2964
2178
|
localVarHeaderParameter = {};
|
|
2965
2179
|
localVarQueryParameter = {};
|
|
2966
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2967
2180
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2968
2181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2969
2182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2970
2183
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2971
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCrmNoteBody, localVarRequestOptions, configuration);
|
|
2972
2184
|
return [2 /*return*/, {
|
|
2973
2185
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2974
2186
|
options: localVarRequestOptions,
|
|
@@ -2985,30 +2197,6 @@ exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
|
|
|
2985
2197
|
var CRMApiFp = function (configuration) {
|
|
2986
2198
|
var localVarAxiosParamCreator = (0, exports.CRMApiAxiosParamCreator)(configuration);
|
|
2987
2199
|
return {
|
|
2988
|
-
/**
|
|
2989
|
-
* Get Customer CRM Activities
|
|
2990
|
-
* @param {number} id Account ID
|
|
2991
|
-
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
2992
|
-
* @param {number} [userId] Activity Created By
|
|
2993
|
-
* @param {*} [options] Override http request option.
|
|
2994
|
-
* @throws {RequiredError}
|
|
2995
|
-
*/
|
|
2996
|
-
getGetCrmActivities: function (id, type, userId, options) {
|
|
2997
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2998
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2999
|
-
var _a, _b, _c;
|
|
3000
|
-
return __generator(this, function (_d) {
|
|
3001
|
-
switch (_d.label) {
|
|
3002
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCrmActivities(id, type, userId, options)];
|
|
3003
|
-
case 1:
|
|
3004
|
-
localVarAxiosArgs = _d.sent();
|
|
3005
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3006
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.getGetCrmActivities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3007
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3008
|
-
}
|
|
3009
|
-
});
|
|
3010
|
-
});
|
|
3011
|
-
},
|
|
3012
2200
|
/**
|
|
3013
2201
|
* Search for contacts by phone number
|
|
3014
2202
|
* @param {*} [options] Override http request option.
|
|
@@ -3030,29 +2218,6 @@ var CRMApiFp = function (configuration) {
|
|
|
3030
2218
|
});
|
|
3031
2219
|
});
|
|
3032
2220
|
},
|
|
3033
|
-
/**
|
|
3034
|
-
* Create CRM Note
|
|
3035
|
-
* @param {number} id Account ID
|
|
3036
|
-
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
3037
|
-
* @param {*} [options] Override http request option.
|
|
3038
|
-
* @throws {RequiredError}
|
|
3039
|
-
*/
|
|
3040
|
-
postCreateCrmNote: function (id, createCrmNoteBody, options) {
|
|
3041
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3042
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3043
|
-
var _a, _b, _c;
|
|
3044
|
-
return __generator(this, function (_d) {
|
|
3045
|
-
switch (_d.label) {
|
|
3046
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateCrmNote(id, createCrmNoteBody, options)];
|
|
3047
|
-
case 1:
|
|
3048
|
-
localVarAxiosArgs = _d.sent();
|
|
3049
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3050
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.postCreateCrmNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3051
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3052
|
-
}
|
|
3053
|
-
});
|
|
3054
|
-
});
|
|
3055
|
-
},
|
|
3056
2221
|
};
|
|
3057
2222
|
};
|
|
3058
2223
|
exports.CRMApiFp = CRMApiFp;
|
|
@@ -3062,17 +2227,6 @@ exports.CRMApiFp = CRMApiFp;
|
|
|
3062
2227
|
var CRMApiFactory = function (configuration, basePath, axios) {
|
|
3063
2228
|
var localVarFp = (0, exports.CRMApiFp)(configuration);
|
|
3064
2229
|
return {
|
|
3065
|
-
/**
|
|
3066
|
-
* Get Customer CRM Activities
|
|
3067
|
-
* @param {number} id Account ID
|
|
3068
|
-
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
3069
|
-
* @param {number} [userId] Activity Created By
|
|
3070
|
-
* @param {*} [options] Override http request option.
|
|
3071
|
-
* @throws {RequiredError}
|
|
3072
|
-
*/
|
|
3073
|
-
getGetCrmActivities: function (id, type, userId, options) {
|
|
3074
|
-
return localVarFp.getGetCrmActivities(id, type, userId, options).then(function (request) { return request(axios, basePath); });
|
|
3075
|
-
},
|
|
3076
2230
|
/**
|
|
3077
2231
|
* Search for contacts by phone number
|
|
3078
2232
|
* @param {*} [options] Override http request option.
|
|
@@ -3081,16 +2235,6 @@ var CRMApiFactory = function (configuration, basePath, axios) {
|
|
|
3081
2235
|
getSearchByPhone: function (options) {
|
|
3082
2236
|
return localVarFp.getSearchByPhone(options).then(function (request) { return request(axios, basePath); });
|
|
3083
2237
|
},
|
|
3084
|
-
/**
|
|
3085
|
-
* Create CRM Note
|
|
3086
|
-
* @param {number} id Account ID
|
|
3087
|
-
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
3088
|
-
* @param {*} [options] Override http request option.
|
|
3089
|
-
* @throws {RequiredError}
|
|
3090
|
-
*/
|
|
3091
|
-
postCreateCrmNote: function (id, createCrmNoteBody, options) {
|
|
3092
|
-
return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(axios, basePath); });
|
|
3093
|
-
},
|
|
3094
2238
|
};
|
|
3095
2239
|
};
|
|
3096
2240
|
exports.CRMApiFactory = CRMApiFactory;
|
|
@@ -3102,18 +2246,6 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
3102
2246
|
function CRMApi() {
|
|
3103
2247
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3104
2248
|
}
|
|
3105
|
-
/**
|
|
3106
|
-
* Get Customer CRM Activities
|
|
3107
|
-
* @param {number} id Account ID
|
|
3108
|
-
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
3109
|
-
* @param {number} [userId] Activity Created By
|
|
3110
|
-
* @param {*} [options] Override http request option.
|
|
3111
|
-
* @throws {RequiredError}
|
|
3112
|
-
*/
|
|
3113
|
-
CRMApi.prototype.getGetCrmActivities = function (id, type, userId, options) {
|
|
3114
|
-
var _this = this;
|
|
3115
|
-
return (0, exports.CRMApiFp)(this.configuration).getGetCrmActivities(id, type, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3116
|
-
};
|
|
3117
2249
|
/**
|
|
3118
2250
|
* Search for contacts by phone number
|
|
3119
2251
|
* @param {*} [options] Override http request option.
|
|
@@ -3123,28 +2255,9 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
3123
2255
|
var _this = this;
|
|
3124
2256
|
return (0, exports.CRMApiFp)(this.configuration).getSearchByPhone(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3125
2257
|
};
|
|
3126
|
-
/**
|
|
3127
|
-
* Create CRM Note
|
|
3128
|
-
* @param {number} id Account ID
|
|
3129
|
-
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
3130
|
-
* @param {*} [options] Override http request option.
|
|
3131
|
-
* @throws {RequiredError}
|
|
3132
|
-
*/
|
|
3133
|
-
CRMApi.prototype.postCreateCrmNote = function (id, createCrmNoteBody, options) {
|
|
3134
|
-
var _this = this;
|
|
3135
|
-
return (0, exports.CRMApiFp)(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3136
|
-
};
|
|
3137
2258
|
return CRMApi;
|
|
3138
2259
|
}(base_1.BaseAPI));
|
|
3139
2260
|
exports.CRMApi = CRMApi;
|
|
3140
|
-
exports.GetGetCrmActivitiesTypeEnum = {
|
|
3141
|
-
Alert: 'alert',
|
|
3142
|
-
Call: 'call',
|
|
3143
|
-
Note: 'note',
|
|
3144
|
-
Order: 'order',
|
|
3145
|
-
Quote: 'quote',
|
|
3146
|
-
TcxOrder: 'tcx_order'
|
|
3147
|
-
};
|
|
3148
2261
|
/**
|
|
3149
2262
|
* Class3CXApi - axios parameter creator
|
|
3150
2263
|
*/
|
|
@@ -3618,7 +2731,7 @@ var Class3CXInstallationWizardApiAxiosParamCreator = function (configuration) {
|
|
|
3618
2731
|
// verify required parameter 'id' is not null or undefined
|
|
3619
2732
|
(0, common_1.assertParamExists)('getGetDdisTcxWizard', 'id', id);
|
|
3620
2733
|
localVarPath = "/tcx/wizards/sip/trunks/{id}/ddis"
|
|
3621
|
-
.replace(
|
|
2734
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
3622
2735
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3623
2736
|
if (configuration) {
|
|
3624
2737
|
baseOptions = configuration.baseOptions;
|
|
@@ -3847,7 +2960,7 @@ var Class3CXInstallationWizardApiAxiosParamCreator = function (configuration) {
|
|
|
3847
2960
|
// verify required parameter 'id' is not null or undefined
|
|
3848
2961
|
(0, common_1.assertParamExists)('getGetSipTrunkTcxWizard', 'id', id);
|
|
3849
2962
|
localVarPath = "/tcx/wizards/sip/trunks/{id}"
|
|
3850
|
-
.replace(
|
|
2963
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
3851
2964
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3852
2965
|
if (configuration) {
|
|
3853
2966
|
baseOptions = configuration.baseOptions;
|
|
@@ -4485,7 +3598,7 @@ var Class3CXInstallationWizardApiAxiosParamCreator = function (configuration) {
|
|
|
4485
3598
|
// verify required parameter 'id' is not null or undefined
|
|
4486
3599
|
(0, common_1.assertParamExists)('postGetDdisTcxWizard', 'id', id);
|
|
4487
3600
|
localVarPath = "/tcx/wizards/sip/trunks/{id}/ddis"
|
|
4488
|
-
.replace(
|
|
3601
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
4489
3602
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4490
3603
|
if (configuration) {
|
|
4491
3604
|
baseOptions = configuration.baseOptions;
|
|
@@ -6224,7 +5337,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6224
5337
|
// verify required parameter 'wizardId' is not null or undefined
|
|
6225
5338
|
(0, common_1.assertParamExists)('getGetDetails', 'wizardId', wizardId);
|
|
6226
5339
|
localVarPath = "/tcx/installations/{wizard_id}/details"
|
|
6227
|
-
.replace(
|
|
5340
|
+
.replace('{wizard_id}', encodeURIComponent(String(wizardId)));
|
|
6228
5341
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6229
5342
|
if (configuration) {
|
|
6230
5343
|
baseOptions = configuration.baseOptions;
|
|
@@ -6327,7 +5440,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6327
5440
|
// verify required parameter 'customerId' is not null or undefined
|
|
6328
5441
|
(0, common_1.assertParamExists)('patchChangeInstanceOwner', 'customerId', customerId);
|
|
6329
5442
|
localVarPath = "/tcx/installations/{instance_id}/owner"
|
|
6330
|
-
.replace(
|
|
5443
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6331
5444
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6332
5445
|
if (configuration) {
|
|
6333
5446
|
baseOptions = configuration.baseOptions;
|
|
@@ -6370,7 +5483,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6370
5483
|
// verify required parameter 'enable' is not null or undefined
|
|
6371
5484
|
(0, common_1.assertParamExists)('patchUpdateAutoFailover', 'enable', enable);
|
|
6372
5485
|
localVarPath = "/tcx/installations/{instance_id}/failover/auto"
|
|
6373
|
-
.replace(
|
|
5486
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6374
5487
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6375
5488
|
if (configuration) {
|
|
6376
5489
|
baseOptions = configuration.baseOptions;
|
|
@@ -6413,7 +5526,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6413
5526
|
// verify required parameter 'gigabytes' is not null or undefined
|
|
6414
5527
|
(0, common_1.assertParamExists)('postAddDisk', 'gigabytes', gigabytes);
|
|
6415
5528
|
localVarPath = "/tcx/installations/{instance_id}/disk"
|
|
6416
|
-
.replace(
|
|
5529
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6417
5530
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6418
5531
|
if (configuration) {
|
|
6419
5532
|
baseOptions = configuration.baseOptions;
|
|
@@ -6459,7 +5572,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6459
5572
|
// verify required parameter 'ipAddress' is not null or undefined
|
|
6460
5573
|
(0, common_1.assertParamExists)('postCreateSshUser', 'ipAddress', ipAddress);
|
|
6461
5574
|
localVarPath = "/tcx/installations/{instance_id}/create/user/root"
|
|
6462
|
-
.replace(
|
|
5575
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6463
5576
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6464
5577
|
if (configuration) {
|
|
6465
5578
|
baseOptions = configuration.baseOptions;
|
|
@@ -6503,7 +5616,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6503
5616
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6504
5617
|
(0, common_1.assertParamExists)('postDeleteInstance', 'instanceId', instanceId);
|
|
6505
5618
|
localVarPath = "/tcx/installations/{instance_id}/delete"
|
|
6506
|
-
.replace(
|
|
5619
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6507
5620
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6508
5621
|
if (configuration) {
|
|
6509
5622
|
baseOptions = configuration.baseOptions;
|
|
@@ -6544,7 +5657,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6544
5657
|
// verify required parameter 'gigabytes' is not null or undefined
|
|
6545
5658
|
(0, common_1.assertParamExists)('postExtendDisk', 'gigabytes', gigabytes);
|
|
6546
5659
|
localVarPath = "/tcx/installations/{instance_id}/disk/extend"
|
|
6547
|
-
.replace(
|
|
5660
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6548
5661
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6549
5662
|
if (configuration) {
|
|
6550
5663
|
baseOptions = configuration.baseOptions;
|
|
@@ -6590,7 +5703,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6590
5703
|
// verify required parameter 'type' is not null or undefined
|
|
6591
5704
|
(0, common_1.assertParamExists)('postFailoverInstance', 'type', type);
|
|
6592
5705
|
localVarPath = "/tcx/installations/{instance_id}/failover"
|
|
6593
|
-
.replace(
|
|
5706
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6594
5707
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6595
5708
|
if (configuration) {
|
|
6596
5709
|
baseOptions = configuration.baseOptions;
|
|
@@ -6630,7 +5743,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6630
5743
|
// verify required parameter 'sbcId' is not null or undefined
|
|
6631
5744
|
(0, common_1.assertParamExists)('postInstallTcxSbc', 'sbcId', sbcId);
|
|
6632
5745
|
localVarPath = "/tcx/installations/sbcs/{sbc_id}/install"
|
|
6633
|
-
.replace(
|
|
5746
|
+
.replace('{sbc_id}', encodeURIComponent(String(sbcId)));
|
|
6634
5747
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6635
5748
|
if (configuration) {
|
|
6636
5749
|
baseOptions = configuration.baseOptions;
|
|
@@ -6668,7 +5781,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6668
5781
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6669
5782
|
(0, common_1.assertParamExists)('postRebootInstance', 'instanceId', instanceId);
|
|
6670
5783
|
localVarPath = "/tcx/installations/{instance_id}/reboot"
|
|
6671
|
-
.replace(
|
|
5784
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6672
5785
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6673
5786
|
if (configuration) {
|
|
6674
5787
|
baseOptions = configuration.baseOptions;
|
|
@@ -6709,7 +5822,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6709
5822
|
// verify required parameter 'size' is not null or undefined
|
|
6710
5823
|
(0, common_1.assertParamExists)('postResizeInstance', 'size', size);
|
|
6711
5824
|
localVarPath = "/tcx/installations/{instance_id}/resize"
|
|
6712
|
-
.replace(
|
|
5825
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6713
5826
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6714
5827
|
if (configuration) {
|
|
6715
5828
|
baseOptions = configuration.baseOptions;
|
|
@@ -6753,7 +5866,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6753
5866
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6754
5867
|
(0, common_1.assertParamExists)('postRestartServices', 'instanceId', instanceId);
|
|
6755
5868
|
localVarPath = "/tcx/installations/{instance_id}/services/restart"
|
|
6756
|
-
.replace(
|
|
5869
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6757
5870
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6758
5871
|
if (configuration) {
|
|
6759
5872
|
baseOptions = configuration.baseOptions;
|
|
@@ -6794,7 +5907,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6794
5907
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6795
5908
|
(0, common_1.assertParamExists)('postScheduledReboot', 'instanceId', instanceId);
|
|
6796
5909
|
localVarPath = "/tcx/installations/{instance_id}/reboot/scheduled"
|
|
6797
|
-
.replace(
|
|
5910
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6798
5911
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6799
5912
|
if (configuration) {
|
|
6800
5913
|
baseOptions = configuration.baseOptions;
|
|
@@ -6835,7 +5948,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6835
5948
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6836
5949
|
(0, common_1.assertParamExists)('postSuspendInstance', 'instanceId', instanceId);
|
|
6837
5950
|
localVarPath = "/tcx/installations/{instance_id}/suspend"
|
|
6838
|
-
.replace(
|
|
5951
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6839
5952
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6840
5953
|
if (configuration) {
|
|
6841
5954
|
baseOptions = configuration.baseOptions;
|
|
@@ -6875,7 +5988,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6875
5988
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6876
5989
|
(0, common_1.assertParamExists)('postTestLoginCredentials', 'instanceId', instanceId);
|
|
6877
5990
|
localVarPath = "/tcx/installations/{instance_id}/tests/login"
|
|
6878
|
-
.replace(
|
|
5991
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6879
5992
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6880
5993
|
if (configuration) {
|
|
6881
5994
|
baseOptions = configuration.baseOptions;
|
|
@@ -6912,7 +6025,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6912
6025
|
// verify required parameter 'instanceId' is not null or undefined
|
|
6913
6026
|
(0, common_1.assertParamExists)('postUnsuspendInstance', 'instanceId', instanceId);
|
|
6914
6027
|
localVarPath = "/tcx/installations/{instance_id}/unsuspend"
|
|
6915
|
-
.replace(
|
|
6028
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6916
6029
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6917
6030
|
if (configuration) {
|
|
6918
6031
|
baseOptions = configuration.baseOptions;
|
|
@@ -6952,7 +6065,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6952
6065
|
// verify required parameter 'schedule' is not null or undefined
|
|
6953
6066
|
(0, common_1.assertParamExists)('postUpgradeDebian', 'schedule', schedule);
|
|
6954
6067
|
localVarPath = "/tcx/installations/{instance_id}/debian/upgrade"
|
|
6955
|
-
.replace(
|
|
6068
|
+
.replace('{instance_id}', encodeURIComponent(String(instanceId)));
|
|
6956
6069
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6957
6070
|
if (configuration) {
|
|
6958
6071
|
baseOptions = configuration.baseOptions;
|
|
@@ -6993,7 +6106,7 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
6993
6106
|
// verify required parameter 'wizardId' is not null or undefined
|
|
6994
6107
|
(0, common_1.assertParamExists)('putGetDetails', 'wizardId', wizardId);
|
|
6995
6108
|
localVarPath = "/tcx/installations/{wizard_id}/details"
|
|
6996
|
-
.replace(
|
|
6109
|
+
.replace('{wizard_id}', encodeURIComponent(String(wizardId)));
|
|
6997
6110
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6998
6111
|
if (configuration) {
|
|
6999
6112
|
baseOptions = configuration.baseOptions;
|
|
@@ -7949,30 +7062,30 @@ exports.GetGetInstallationsStatusEnum = {
|
|
|
7949
7062
|
Completed: 'Completed',
|
|
7950
7063
|
Outstanding: 'Outstanding',
|
|
7951
7064
|
Offline: 'Offline',
|
|
7952
|
-
FailedOver: 'Failed Over'
|
|
7065
|
+
FailedOver: 'Failed Over',
|
|
7953
7066
|
};
|
|
7954
7067
|
exports.GetGetInstallationsHostingEnum = {
|
|
7955
7068
|
Yellowgrid: 'yellowgrid',
|
|
7956
7069
|
MultiTenant: 'multi-tenant',
|
|
7957
7070
|
Onprem: 'onprem',
|
|
7958
|
-
All: 'all'
|
|
7071
|
+
All: 'all',
|
|
7959
7072
|
};
|
|
7960
7073
|
exports.GetGetInstallationsInstallTypeEnum = {
|
|
7961
7074
|
New: 'new',
|
|
7962
7075
|
Restore: 'restore',
|
|
7963
7076
|
Failover: 'failover',
|
|
7964
|
-
MultiTenant: 'multi-tenant'
|
|
7077
|
+
MultiTenant: 'multi-tenant',
|
|
7965
7078
|
};
|
|
7966
7079
|
exports.PostFailoverInstanceTypeEnum = {
|
|
7967
7080
|
Config: 'config',
|
|
7968
|
-
Image: 'image'
|
|
7081
|
+
Image: 'image',
|
|
7969
7082
|
};
|
|
7970
7083
|
exports.PostResizeInstanceSizeEnum = {
|
|
7971
7084
|
D24: 'd2-4',
|
|
7972
7085
|
D28: 'd2-8',
|
|
7973
7086
|
B230: 'b2-30',
|
|
7974
7087
|
S2vcpu4gb: 's-2vcpu-4gb',
|
|
7975
|
-
S4vcpu8gb: 's-4vcpu-8gb'
|
|
7088
|
+
S4vcpu8gb: 's-4vcpu-8gb',
|
|
7976
7089
|
};
|
|
7977
7090
|
/**
|
|
7978
7091
|
* Class3CXIntegrationsApi - axios parameter creator
|
|
@@ -8127,8 +7240,8 @@ var Class3CXIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
|
8127
7240
|
// verify required parameter 'ref' is not null or undefined
|
|
8128
7241
|
(0, common_1.assertParamExists)('patchUpdateEtpOrderReference', 'ref', ref);
|
|
8129
7242
|
localVarPath = "/tcx/integrations/edtechpro/{clientId}/schools/{schoolId}/orderReference"
|
|
8130
|
-
.replace(
|
|
8131
|
-
.replace(
|
|
7243
|
+
.replace('{clientId}', encodeURIComponent(String(clientId)))
|
|
7244
|
+
.replace('{schoolId}', encodeURIComponent(String(schoolId)));
|
|
8132
7245
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8133
7246
|
if (configuration) {
|
|
8134
7247
|
baseOptions = configuration.baseOptions;
|
|
@@ -8513,11 +7626,11 @@ var Class3CXIntegrationsApi = /** @class */ (function (_super) {
|
|
|
8513
7626
|
exports.Class3CXIntegrationsApi = Class3CXIntegrationsApi;
|
|
8514
7627
|
exports.GetGetPriceLicenceTypeEnum = {
|
|
8515
7628
|
Lite: 'lite',
|
|
8516
|
-
Pro: 'pro'
|
|
7629
|
+
Pro: 'pro',
|
|
8517
7630
|
};
|
|
8518
7631
|
exports.GetGetPriceSchoolTypeEnum = {
|
|
8519
7632
|
Primary: 'primary',
|
|
8520
|
-
Secondary: 'secondary'
|
|
7633
|
+
Secondary: 'secondary',
|
|
8521
7634
|
};
|
|
8522
7635
|
/**
|
|
8523
7636
|
* Class3CXMultiTenantApi - axios parameter creator
|
|
@@ -8544,7 +7657,7 @@ var Class3CXMultiTenantApiAxiosParamCreator = function (configuration) {
|
|
|
8544
7657
|
// verify required parameter 'reference' is not null or undefined
|
|
8545
7658
|
(0, common_1.assertParamExists)('deleteGetTenant', 'reference', reference);
|
|
8546
7659
|
localVarPath = "/tcx/mt/tenants/{reference}"
|
|
8547
|
-
.replace(
|
|
7660
|
+
.replace('{reference}', encodeURIComponent(String(reference)));
|
|
8548
7661
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8549
7662
|
if (configuration) {
|
|
8550
7663
|
baseOptions = configuration.baseOptions;
|
|
@@ -8621,7 +7734,7 @@ var Class3CXMultiTenantApiAxiosParamCreator = function (configuration) {
|
|
|
8621
7734
|
// verify required parameter 'reference' is not null or undefined
|
|
8622
7735
|
(0, common_1.assertParamExists)('getGetTenant', 'reference', reference);
|
|
8623
7736
|
localVarPath = "/tcx/mt/tenants/{reference}"
|
|
8624
|
-
.replace(
|
|
7737
|
+
.replace('{reference}', encodeURIComponent(String(reference)));
|
|
8625
7738
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8626
7739
|
if (configuration) {
|
|
8627
7740
|
baseOptions = configuration.baseOptions;
|
|
@@ -9238,7 +8351,7 @@ exports.GetGetTenantsStatusEnum = {
|
|
|
9238
8351
|
Completed: 'Completed',
|
|
9239
8352
|
Outstanding: 'Outstanding',
|
|
9240
8353
|
Offline: 'Offline',
|
|
9241
|
-
FailedOver: 'Failed Over'
|
|
8354
|
+
FailedOver: 'Failed Over',
|
|
9242
8355
|
};
|
|
9243
8356
|
/**
|
|
9244
8357
|
* MyPBXToolsApi - axios parameter creator
|
|
@@ -9395,7 +8508,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9395
8508
|
// verify required parameter 'id' is not null or undefined
|
|
9396
8509
|
(0, common_1.assertParamExists)('deleteGetAdminNumberPort', 'id', id);
|
|
9397
8510
|
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
9398
|
-
.replace(
|
|
8511
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9399
8512
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9400
8513
|
if (configuration) {
|
|
9401
8514
|
baseOptions = configuration.baseOptions;
|
|
@@ -9476,7 +8589,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9476
8589
|
// verify required parameter 'id' is not null or undefined
|
|
9477
8590
|
(0, common_1.assertParamExists)('getGetAdminNumberPort', 'id', id);
|
|
9478
8591
|
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
9479
|
-
.replace(
|
|
8592
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9480
8593
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9481
8594
|
if (configuration) {
|
|
9482
8595
|
baseOptions = configuration.baseOptions;
|
|
@@ -9558,7 +8671,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9558
8671
|
// verify required parameter 'id' is not null or undefined
|
|
9559
8672
|
(0, common_1.assertParamExists)('getUpdateNumberPort', 'id', id);
|
|
9560
8673
|
localVarPath = "/sip/numbers/ports/{id}"
|
|
9561
|
-
.replace(
|
|
8674
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9562
8675
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9563
8676
|
if (configuration) {
|
|
9564
8677
|
baseOptions = configuration.baseOptions;
|
|
@@ -9595,7 +8708,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9595
8708
|
// verify required parameter 'id' is not null or undefined
|
|
9596
8709
|
(0, common_1.assertParamExists)('patchCancelAdminNumberPort', 'id', id);
|
|
9597
8710
|
localVarPath = "/admin/sip/numbers/ports/{id}/cancel"
|
|
9598
|
-
.replace(
|
|
8711
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9599
8712
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9600
8713
|
if (configuration) {
|
|
9601
8714
|
baseOptions = configuration.baseOptions;
|
|
@@ -9632,7 +8745,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9632
8745
|
// verify required parameter 'id' is not null or undefined
|
|
9633
8746
|
(0, common_1.assertParamExists)('patchCloseAdminNumberPort', 'id', id);
|
|
9634
8747
|
localVarPath = "/admin/sip/numbers/ports/{id}/close"
|
|
9635
|
-
.replace(
|
|
8748
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9636
8749
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9637
8750
|
if (configuration) {
|
|
9638
8751
|
baseOptions = configuration.baseOptions;
|
|
@@ -9654,25 +8767,25 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9654
8767
|
/**
|
|
9655
8768
|
*
|
|
9656
8769
|
* @param {number} id Number Port ID
|
|
9657
|
-
* @param {
|
|
8770
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
9658
8771
|
* @param {*} [options] Override http request option.
|
|
9659
8772
|
* @throws {RequiredError}
|
|
9660
8773
|
*/
|
|
9661
|
-
postAddAdminNote: function (id_1,
|
|
8774
|
+
postAddAdminNote: function (id_1, postAddAdminNoteRequest_1) {
|
|
9662
8775
|
var args_1 = [];
|
|
9663
8776
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
9664
8777
|
args_1[_i - 2] = arguments[_i];
|
|
9665
8778
|
}
|
|
9666
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
8779
|
+
return __awaiter(_this, __spreadArray([id_1, postAddAdminNoteRequest_1], args_1, true), void 0, function (id, postAddAdminNoteRequest, options) {
|
|
9667
8780
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9668
8781
|
if (options === void 0) { options = {}; }
|
|
9669
8782
|
return __generator(this, function (_a) {
|
|
9670
8783
|
// verify required parameter 'id' is not null or undefined
|
|
9671
8784
|
(0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
|
|
9672
|
-
// verify required parameter '
|
|
9673
|
-
(0, common_1.assertParamExists)('postAddAdminNote', '
|
|
8785
|
+
// verify required parameter 'postAddAdminNoteRequest' is not null or undefined
|
|
8786
|
+
(0, common_1.assertParamExists)('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest);
|
|
9674
8787
|
localVarPath = "/admin/sip/numbers/ports/{id}/notes"
|
|
9675
|
-
.replace(
|
|
8788
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9676
8789
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9677
8790
|
if (configuration) {
|
|
9678
8791
|
baseOptions = configuration.baseOptions;
|
|
@@ -9685,7 +8798,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9685
8798
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9686
8799
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9687
8800
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9688
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8801
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postAddAdminNoteRequest, localVarRequestOptions, configuration);
|
|
9689
8802
|
return [2 /*return*/, {
|
|
9690
8803
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9691
8804
|
options: localVarRequestOptions,
|
|
@@ -9807,7 +8920,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9807
8920
|
// verify required parameter 'id' is not null or undefined
|
|
9808
8921
|
(0, common_1.assertParamExists)('postSubmitNumberPort', 'id', id);
|
|
9809
8922
|
localVarPath = "/sip/numbers/ports/{id}/submit"
|
|
9810
|
-
.replace(
|
|
8923
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9811
8924
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9812
8925
|
if (configuration) {
|
|
9813
8926
|
baseOptions = configuration.baseOptions;
|
|
@@ -9895,7 +9008,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9895
9008
|
// verify required parameter 'id' is not null or undefined
|
|
9896
9009
|
(0, common_1.assertParamExists)('postUpdateNumberPort', 'id', id);
|
|
9897
9010
|
localVarPath = "/sip/numbers/ports/{id}"
|
|
9898
|
-
.replace(
|
|
9011
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9899
9012
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9900
9013
|
if (configuration) {
|
|
9901
9014
|
baseOptions = configuration.baseOptions;
|
|
@@ -9974,7 +9087,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
9974
9087
|
// verify required parameter 'numberPortDTO' is not null or undefined
|
|
9975
9088
|
(0, common_1.assertParamExists)('putGetAdminNumberPort', 'numberPortDTO', numberPortDTO);
|
|
9976
9089
|
localVarPath = "/admin/sip/numbers/ports/{id}"
|
|
9977
|
-
.replace(
|
|
9090
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
9978
9091
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9979
9092
|
if (configuration) {
|
|
9980
9093
|
baseOptions = configuration.baseOptions;
|
|
@@ -10165,17 +9278,17 @@ var NumberPortingApiFp = function (configuration) {
|
|
|
10165
9278
|
/**
|
|
10166
9279
|
*
|
|
10167
9280
|
* @param {number} id Number Port ID
|
|
10168
|
-
* @param {
|
|
9281
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
10169
9282
|
* @param {*} [options] Override http request option.
|
|
10170
9283
|
* @throws {RequiredError}
|
|
10171
9284
|
*/
|
|
10172
|
-
postAddAdminNote: function (id,
|
|
9285
|
+
postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
|
|
10173
9286
|
return __awaiter(this, void 0, void 0, function () {
|
|
10174
9287
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10175
9288
|
var _a, _b, _c;
|
|
10176
9289
|
return __generator(this, function (_d) {
|
|
10177
9290
|
switch (_d.label) {
|
|
10178
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id,
|
|
9291
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options)];
|
|
10179
9292
|
case 1:
|
|
10180
9293
|
localVarAxiosArgs = _d.sent();
|
|
10181
9294
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -10388,12 +9501,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
|
10388
9501
|
/**
|
|
10389
9502
|
*
|
|
10390
9503
|
* @param {number} id Number Port ID
|
|
10391
|
-
* @param {
|
|
9504
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
10392
9505
|
* @param {*} [options] Override http request option.
|
|
10393
9506
|
* @throws {RequiredError}
|
|
10394
9507
|
*/
|
|
10395
|
-
postAddAdminNote: function (id,
|
|
10396
|
-
return localVarFp.postAddAdminNote(id,
|
|
9508
|
+
postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
|
|
9509
|
+
return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(axios, basePath); });
|
|
10397
9510
|
},
|
|
10398
9511
|
/**
|
|
10399
9512
|
*
|
|
@@ -10555,13 +9668,13 @@ var NumberPortingApi = /** @class */ (function (_super) {
|
|
|
10555
9668
|
/**
|
|
10556
9669
|
*
|
|
10557
9670
|
* @param {number} id Number Port ID
|
|
10558
|
-
* @param {
|
|
9671
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
10559
9672
|
* @param {*} [options] Override http request option.
|
|
10560
9673
|
* @throws {RequiredError}
|
|
10561
9674
|
*/
|
|
10562
|
-
NumberPortingApi.prototype.postAddAdminNote = function (id,
|
|
9675
|
+
NumberPortingApi.prototype.postAddAdminNote = function (id, postAddAdminNoteRequest, options) {
|
|
10563
9676
|
var _this = this;
|
|
10564
|
-
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id,
|
|
9677
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10565
9678
|
};
|
|
10566
9679
|
/**
|
|
10567
9680
|
*
|
|
@@ -10902,6 +10015,38 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
|
|
|
10902
10015
|
});
|
|
10903
10016
|
});
|
|
10904
10017
|
},
|
|
10018
|
+
/**
|
|
10019
|
+
* Remove Oauth 2.0 Cookies
|
|
10020
|
+
* @param {*} [options] Override http request option.
|
|
10021
|
+
* @throws {RequiredError}
|
|
10022
|
+
*/
|
|
10023
|
+
postLogout: function () {
|
|
10024
|
+
var args_1 = [];
|
|
10025
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10026
|
+
args_1[_i] = arguments[_i];
|
|
10027
|
+
}
|
|
10028
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
10029
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10030
|
+
if (options === void 0) { options = {}; }
|
|
10031
|
+
return __generator(this, function (_a) {
|
|
10032
|
+
localVarPath = "/oauth2/logout";
|
|
10033
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10034
|
+
if (configuration) {
|
|
10035
|
+
baseOptions = configuration.baseOptions;
|
|
10036
|
+
}
|
|
10037
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10038
|
+
localVarHeaderParameter = {};
|
|
10039
|
+
localVarQueryParameter = {};
|
|
10040
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10041
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10042
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10043
|
+
return [2 /*return*/, {
|
|
10044
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10045
|
+
options: localVarRequestOptions,
|
|
10046
|
+
}];
|
|
10047
|
+
});
|
|
10048
|
+
});
|
|
10049
|
+
},
|
|
10905
10050
|
/**
|
|
10906
10051
|
* Portal Login
|
|
10907
10052
|
* @summary Portal Login
|
|
@@ -11077,6 +10222,27 @@ var OAuth20ApiFp = function (configuration) {
|
|
|
11077
10222
|
});
|
|
11078
10223
|
});
|
|
11079
10224
|
},
|
|
10225
|
+
/**
|
|
10226
|
+
* Remove Oauth 2.0 Cookies
|
|
10227
|
+
* @param {*} [options] Override http request option.
|
|
10228
|
+
* @throws {RequiredError}
|
|
10229
|
+
*/
|
|
10230
|
+
postLogout: function (options) {
|
|
10231
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10232
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10233
|
+
var _a, _b, _c;
|
|
10234
|
+
return __generator(this, function (_d) {
|
|
10235
|
+
switch (_d.label) {
|
|
10236
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postLogout(options)];
|
|
10237
|
+
case 1:
|
|
10238
|
+
localVarAxiosArgs = _d.sent();
|
|
10239
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10240
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10241
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10242
|
+
}
|
|
10243
|
+
});
|
|
10244
|
+
});
|
|
10245
|
+
},
|
|
11080
10246
|
/**
|
|
11081
10247
|
* Portal Login
|
|
11082
10248
|
* @summary Portal Login
|
|
@@ -11173,6 +10339,14 @@ var OAuth20ApiFactory = function (configuration, basePath, axios) {
|
|
|
11173
10339
|
postGetIdentity: function (options) {
|
|
11174
10340
|
return localVarFp.postGetIdentity(options).then(function (request) { return request(axios, basePath); });
|
|
11175
10341
|
},
|
|
10342
|
+
/**
|
|
10343
|
+
* Remove Oauth 2.0 Cookies
|
|
10344
|
+
* @param {*} [options] Override http request option.
|
|
10345
|
+
* @throws {RequiredError}
|
|
10346
|
+
*/
|
|
10347
|
+
postLogout: function (options) {
|
|
10348
|
+
return localVarFp.postLogout(options).then(function (request) { return request(axios, basePath); });
|
|
10349
|
+
},
|
|
11176
10350
|
/**
|
|
11177
10351
|
* Portal Login
|
|
11178
10352
|
* @summary Portal Login
|
|
@@ -11263,6 +10437,15 @@ var OAuth20Api = /** @class */ (function (_super) {
|
|
|
11263
10437
|
var _this = this;
|
|
11264
10438
|
return (0, exports.OAuth20ApiFp)(this.configuration).postGetIdentity(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11265
10439
|
};
|
|
10440
|
+
/**
|
|
10441
|
+
* Remove Oauth 2.0 Cookies
|
|
10442
|
+
* @param {*} [options] Override http request option.
|
|
10443
|
+
* @throws {RequiredError}
|
|
10444
|
+
*/
|
|
10445
|
+
OAuth20Api.prototype.postLogout = function (options) {
|
|
10446
|
+
var _this = this;
|
|
10447
|
+
return (0, exports.OAuth20ApiFp)(this.configuration).postLogout(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10448
|
+
};
|
|
11266
10449
|
/**
|
|
11267
10450
|
* Portal Login
|
|
11268
10451
|
* @summary Portal Login
|
|
@@ -11284,7 +10467,7 @@ exports.PostAccessTokenGrantTypeEnum = {
|
|
|
11284
10467
|
AuthorizationCode: 'authorization_code',
|
|
11285
10468
|
MsAuth: 'ms_auth',
|
|
11286
10469
|
TokenExchange: 'token_exchange',
|
|
11287
|
-
Password: 'password'
|
|
10470
|
+
Password: 'password',
|
|
11288
10471
|
};
|
|
11289
10472
|
exports.PostAccessTokenScopeEnum = {
|
|
11290
10473
|
Star: '*',
|
|
@@ -11314,11 +10497,11 @@ exports.PostAccessTokenScopeEnum = {
|
|
|
11314
10497
|
TcxMtRead: 'tcx_mt.read',
|
|
11315
10498
|
TcxMtWrite: 'tcx_mt.write',
|
|
11316
10499
|
TicketsRead: 'tickets.read',
|
|
11317
|
-
TicketsWrite: 'tickets.write'
|
|
10500
|
+
TicketsWrite: 'tickets.write',
|
|
11318
10501
|
};
|
|
11319
10502
|
exports.PostAccessTokenTokenExchangeTypeEnum = {
|
|
11320
10503
|
TcxWizard: 'tcx_wizard',
|
|
11321
|
-
Portal: 'portal'
|
|
10504
|
+
Portal: 'portal',
|
|
11322
10505
|
};
|
|
11323
10506
|
exports.PostAuthoriseScopeEnum = {
|
|
11324
10507
|
Star: '*',
|
|
@@ -11348,7 +10531,7 @@ exports.PostAuthoriseScopeEnum = {
|
|
|
11348
10531
|
TcxMtRead: 'tcx_mt.read',
|
|
11349
10532
|
TcxMtWrite: 'tcx_mt.write',
|
|
11350
10533
|
TicketsRead: 'tickets.read',
|
|
11351
|
-
TicketsWrite: 'tickets.write'
|
|
10534
|
+
TicketsWrite: 'tickets.write',
|
|
11352
10535
|
};
|
|
11353
10536
|
/**
|
|
11354
10537
|
* OrdersApi - axios parameter creator
|
|
@@ -11377,8 +10560,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11377
10560
|
// verify required parameter 'batchId' is not null or undefined
|
|
11378
10561
|
(0, common_1.assertParamExists)('deleteDeleteBatch', 'batchId', batchId);
|
|
11379
10562
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}"
|
|
11380
|
-
.replace(
|
|
11381
|
-
.replace(
|
|
10563
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
10564
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)));
|
|
11382
10565
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11383
10566
|
if (configuration) {
|
|
11384
10567
|
baseOptions = configuration.baseOptions;
|
|
@@ -11415,7 +10598,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11415
10598
|
// verify required parameter 'id' is not null or undefined
|
|
11416
10599
|
(0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
|
|
11417
10600
|
localVarPath = "/orders/{id}"
|
|
11418
|
-
.replace(
|
|
10601
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11419
10602
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11420
10603
|
if (configuration) {
|
|
11421
10604
|
baseOptions = configuration.baseOptions;
|
|
@@ -11458,9 +10641,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11458
10641
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
11459
10642
|
(0, common_1.assertParamExists)('deleteUpdateShipment', 'shipmentId', shipmentId);
|
|
11460
10643
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
|
|
11461
|
-
.replace(
|
|
11462
|
-
.replace(
|
|
11463
|
-
.replace(
|
|
10644
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
10645
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)))
|
|
10646
|
+
.replace('{shipment_id}', encodeURIComponent(String(shipmentId)));
|
|
11464
10647
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11465
10648
|
if (configuration) {
|
|
11466
10649
|
baseOptions = configuration.baseOptions;
|
|
@@ -11497,7 +10680,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11497
10680
|
// verify required parameter 'id' is not null or undefined
|
|
11498
10681
|
(0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
|
|
11499
10682
|
localVarPath = "/admin/orders/{id}/views/editable"
|
|
11500
|
-
.replace(
|
|
10683
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11501
10684
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11502
10685
|
if (configuration) {
|
|
11503
10686
|
baseOptions = configuration.baseOptions;
|
|
@@ -11535,7 +10718,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11535
10718
|
// verify required parameter 'id' is not null or undefined
|
|
11536
10719
|
(0, common_1.assertParamExists)('getGetAdminOrderDetails', 'id', id);
|
|
11537
10720
|
localVarPath = "/admin/orders/{id}/details"
|
|
11538
|
-
.replace(
|
|
10721
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11539
10722
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11540
10723
|
if (configuration) {
|
|
11541
10724
|
baseOptions = configuration.baseOptions;
|
|
@@ -11579,9 +10762,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11579
10762
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
11580
10763
|
(0, common_1.assertParamExists)('getGetCommercialInvoice', 'shipmentId', shipmentId);
|
|
11581
10764
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf"
|
|
11582
|
-
.replace(
|
|
11583
|
-
.replace(
|
|
11584
|
-
.replace(
|
|
10765
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
10766
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)))
|
|
10767
|
+
.replace('{shipment_id}', encodeURIComponent(String(shipmentId)));
|
|
11585
10768
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11586
10769
|
if (configuration) {
|
|
11587
10770
|
baseOptions = configuration.baseOptions;
|
|
@@ -11619,7 +10802,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11619
10802
|
// verify required parameter 'id' is not null or undefined
|
|
11620
10803
|
(0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
|
|
11621
10804
|
localVarPath = "/orders/{id}/views/editable"
|
|
11622
|
-
.replace(
|
|
10805
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11623
10806
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11624
10807
|
if (configuration) {
|
|
11625
10808
|
baseOptions = configuration.baseOptions;
|
|
@@ -11660,8 +10843,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11660
10843
|
// verify required parameter 'itemId' is not null or undefined
|
|
11661
10844
|
(0, common_1.assertParamExists)('getGetItemSerialInfo', 'itemId', itemId);
|
|
11662
10845
|
localVarPath = "/admin/orders/{id}/items/{item_id}/info"
|
|
11663
|
-
.replace(
|
|
11664
|
-
.replace(
|
|
10846
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
10847
|
+
.replace('{item_id}', encodeURIComponent(String(itemId)));
|
|
11665
10848
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11666
10849
|
if (configuration) {
|
|
11667
10850
|
baseOptions = configuration.baseOptions;
|
|
@@ -11699,7 +10882,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11699
10882
|
// verify required parameter 'id' is not null or undefined
|
|
11700
10883
|
(0, common_1.assertParamExists)('getGetOrderPdf', 'id', id);
|
|
11701
10884
|
localVarPath = "/orders/{id}/pdf"
|
|
11702
|
-
.replace(
|
|
10885
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11703
10886
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11704
10887
|
if (configuration) {
|
|
11705
10888
|
baseOptions = configuration.baseOptions;
|
|
@@ -11737,7 +10920,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11737
10920
|
// verify required parameter 'id' is not null or undefined
|
|
11738
10921
|
(0, common_1.assertParamExists)('getGetOrderSummary', 'id', id);
|
|
11739
10922
|
localVarPath = "/admin/orders/{id}/summary"
|
|
11740
|
-
.replace(
|
|
10923
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11741
10924
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11742
10925
|
if (configuration) {
|
|
11743
10926
|
baseOptions = configuration.baseOptions;
|
|
@@ -11837,7 +11020,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11837
11020
|
// verify required parameter 'id' is not null or undefined
|
|
11838
11021
|
(0, common_1.assertParamExists)('patchCompleteOrder', 'id', id);
|
|
11839
11022
|
localVarPath = "/admin/orders/{id}/complete"
|
|
11840
|
-
.replace(
|
|
11023
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11841
11024
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11842
11025
|
if (configuration) {
|
|
11843
11026
|
baseOptions = configuration.baseOptions;
|
|
@@ -11876,7 +11059,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11876
11059
|
// verify required parameter 'id' is not null or undefined
|
|
11877
11060
|
(0, common_1.assertParamExists)('postAddOrderNote', 'id', id);
|
|
11878
11061
|
localVarPath = "/admin/orders/{id}/notes"
|
|
11879
|
-
.replace(
|
|
11062
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11880
11063
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11881
11064
|
if (configuration) {
|
|
11882
11065
|
baseOptions = configuration.baseOptions;
|
|
@@ -11961,8 +11144,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11961
11144
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
11962
11145
|
(0, common_1.assertParamExists)('postCreateConsignment', 'shipmentId', shipmentId);
|
|
11963
11146
|
localVarPath = "/admin/orders/{id}/shipments/{shipment_id}/consignment"
|
|
11964
|
-
.replace(
|
|
11965
|
-
.replace(
|
|
11147
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11148
|
+
.replace('{shipment_id}', encodeURIComponent(String(shipmentId)));
|
|
11966
11149
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11967
11150
|
if (configuration) {
|
|
11968
11151
|
baseOptions = configuration.baseOptions;
|
|
@@ -11983,6 +11166,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11983
11166
|
});
|
|
11984
11167
|
});
|
|
11985
11168
|
},
|
|
11169
|
+
/**
|
|
11170
|
+
* Create an order via the legacy portal
|
|
11171
|
+
* @summary Create an order via the legacy portal
|
|
11172
|
+
* @param {OrderDTO} [orderDTO] Legacy Portal Order
|
|
11173
|
+
* @param {*} [options] Override http request option.
|
|
11174
|
+
* @throws {RequiredError}
|
|
11175
|
+
*/
|
|
11176
|
+
postCreatePortalOrderLegacy: function (orderDTO_1) {
|
|
11177
|
+
var args_1 = [];
|
|
11178
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
11179
|
+
args_1[_i - 1] = arguments[_i];
|
|
11180
|
+
}
|
|
11181
|
+
return __awaiter(_this, __spreadArray([orderDTO_1], args_1, true), void 0, function (orderDTO, options) {
|
|
11182
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11183
|
+
if (options === void 0) { options = {}; }
|
|
11184
|
+
return __generator(this, function (_a) {
|
|
11185
|
+
localVarPath = "/orders/portal/legacy";
|
|
11186
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11187
|
+
if (configuration) {
|
|
11188
|
+
baseOptions = configuration.baseOptions;
|
|
11189
|
+
}
|
|
11190
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
11191
|
+
localVarHeaderParameter = {};
|
|
11192
|
+
localVarQueryParameter = {};
|
|
11193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11194
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11196
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11197
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11198
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orderDTO, localVarRequestOptions, configuration);
|
|
11199
|
+
return [2 /*return*/, {
|
|
11200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11201
|
+
options: localVarRequestOptions,
|
|
11202
|
+
}];
|
|
11203
|
+
});
|
|
11204
|
+
});
|
|
11205
|
+
},
|
|
11986
11206
|
/**
|
|
11987
11207
|
* Create Shipment (Admin)
|
|
11988
11208
|
* @summary Create Shipment (Admin)
|
|
@@ -12006,8 +11226,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12006
11226
|
// verify required parameter 'batchId' is not null or undefined
|
|
12007
11227
|
(0, common_1.assertParamExists)('postCreateShipment', 'batchId', batchId);
|
|
12008
11228
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
|
|
12009
|
-
.replace(
|
|
12010
|
-
.replace(
|
|
11229
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11230
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)));
|
|
12011
11231
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12012
11232
|
if (configuration) {
|
|
12013
11233
|
baseOptions = configuration.baseOptions;
|
|
@@ -12089,7 +11309,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12089
11309
|
// verify required parameter 'id' is not null or undefined
|
|
12090
11310
|
(0, common_1.assertParamExists)('postIssueCredit', 'id', id);
|
|
12091
11311
|
localVarPath = "/admin/orders/{id}/credit"
|
|
12092
|
-
.replace(
|
|
11312
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12093
11313
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12094
11314
|
if (configuration) {
|
|
12095
11315
|
baseOptions = configuration.baseOptions;
|
|
@@ -12135,8 +11355,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12135
11355
|
// verify required parameter 'printer' is not null or undefined
|
|
12136
11356
|
(0, common_1.assertParamExists)('postPrintShippingLabel', 'printer', printer);
|
|
12137
11357
|
localVarPath = "/admin/orders/{id}/shipments/{shipment_id}/label/print"
|
|
12138
|
-
.replace(
|
|
12139
|
-
.replace(
|
|
11358
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11359
|
+
.replace('{shipment_id}', encodeURIComponent(String(shipmentId)));
|
|
12140
11360
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12141
11361
|
if (configuration) {
|
|
12142
11362
|
baseOptions = configuration.baseOptions;
|
|
@@ -12180,8 +11400,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12180
11400
|
// verify required parameter 'batchId' is not null or undefined
|
|
12181
11401
|
(0, common_1.assertParamExists)('postProcessTcxLicences', 'batchId', batchId);
|
|
12182
11402
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/licences/process"
|
|
12183
|
-
.replace(
|
|
12184
|
-
.replace(
|
|
11403
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11404
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)));
|
|
12185
11405
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12186
11406
|
if (configuration) {
|
|
12187
11407
|
baseOptions = configuration.baseOptions;
|
|
@@ -12222,7 +11442,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12222
11442
|
// verify required parameter 'email' is not null or undefined
|
|
12223
11443
|
(0, common_1.assertParamExists)('postSendOrderEmail', 'email', email);
|
|
12224
11444
|
localVarPath = "/admin/orders/{id}/email/send"
|
|
12225
|
-
.replace(
|
|
11445
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12226
11446
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12227
11447
|
if (configuration) {
|
|
12228
11448
|
baseOptions = configuration.baseOptions;
|
|
@@ -12271,9 +11491,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12271
11491
|
// verify required parameter 'email' is not null or undefined
|
|
12272
11492
|
(0, common_1.assertParamExists)('postSendShipmentEmail', 'email', email);
|
|
12273
11493
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/send/email"
|
|
12274
|
-
.replace(
|
|
12275
|
-
.replace(
|
|
12276
|
-
.replace(
|
|
11494
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11495
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)))
|
|
11496
|
+
.replace('{shipment_id}', encodeURIComponent(String(shipmentId)));
|
|
12277
11497
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12278
11498
|
if (configuration) {
|
|
12279
11499
|
baseOptions = configuration.baseOptions;
|
|
@@ -12316,8 +11536,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12316
11536
|
// verify required parameter 'batchId' is not null or undefined
|
|
12317
11537
|
(0, common_1.assertParamExists)('postSendSupplierEmail', 'batchId', batchId);
|
|
12318
11538
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/email/send"
|
|
12319
|
-
.replace(
|
|
12320
|
-
.replace(
|
|
11539
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11540
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)));
|
|
12321
11541
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12322
11542
|
if (configuration) {
|
|
12323
11543
|
baseOptions = configuration.baseOptions;
|
|
@@ -12355,7 +11575,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12355
11575
|
// verify required parameter 'id' is not null or undefined
|
|
12356
11576
|
(0, common_1.assertParamExists)('postSplitOrder', 'id', id);
|
|
12357
11577
|
localVarPath = "/admin/orders/{id}/split"
|
|
12358
|
-
.replace(
|
|
11578
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12359
11579
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12360
11580
|
if (configuration) {
|
|
12361
11581
|
baseOptions = configuration.baseOptions;
|
|
@@ -12399,7 +11619,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12399
11619
|
// verify required parameter 'supplierId' is not null or undefined
|
|
12400
11620
|
(0, common_1.assertParamExists)('putAllocateItems', 'supplierId', supplierId);
|
|
12401
11621
|
localVarPath = "/admin/orders/{id}/items/allocate"
|
|
12402
|
-
.replace(
|
|
11622
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12403
11623
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12404
11624
|
if (configuration) {
|
|
12405
11625
|
baseOptions = configuration.baseOptions;
|
|
@@ -12444,7 +11664,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12444
11664
|
// verify required parameter 'id' is not null or undefined
|
|
12445
11665
|
(0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
|
|
12446
11666
|
localVarPath = "/admin/orders/{id}"
|
|
12447
|
-
.replace(
|
|
11667
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12448
11668
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12449
11669
|
if (configuration) {
|
|
12450
11670
|
baseOptions = configuration.baseOptions;
|
|
@@ -12494,9 +11714,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12494
11714
|
// verify required parameter 'itemId' is not null or undefined
|
|
12495
11715
|
(0, common_1.assertParamExists)('putUpdateBatchItem', 'itemId', itemId);
|
|
12496
11716
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/items/{item_id}"
|
|
12497
|
-
.replace(
|
|
12498
|
-
.replace(
|
|
12499
|
-
.replace(
|
|
11717
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11718
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)))
|
|
11719
|
+
.replace('{item_id}', encodeURIComponent(String(itemId)));
|
|
12500
11720
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12501
11721
|
if (configuration) {
|
|
12502
11722
|
baseOptions = configuration.baseOptions;
|
|
@@ -12538,7 +11758,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12538
11758
|
// verify required parameter 'id' is not null or undefined
|
|
12539
11759
|
(0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
|
|
12540
11760
|
localVarPath = "/orders/{id}"
|
|
12541
|
-
.replace(
|
|
11761
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12542
11762
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12543
11763
|
if (configuration) {
|
|
12544
11764
|
baseOptions = configuration.baseOptions;
|
|
@@ -12584,7 +11804,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12584
11804
|
// verify required parameter 'paid' is not null or undefined
|
|
12585
11805
|
(0, common_1.assertParamExists)('putUpdatePaymentStatus', 'paid', paid);
|
|
12586
11806
|
localVarPath = "/admin/orders/{id}/paid"
|
|
12587
|
-
.replace(
|
|
11807
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
12588
11808
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12589
11809
|
if (configuration) {
|
|
12590
11810
|
baseOptions = configuration.baseOptions;
|
|
@@ -12632,9 +11852,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
12632
11852
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
12633
11853
|
(0, common_1.assertParamExists)('putUpdateShipment', 'shipmentId', shipmentId);
|
|
12634
11854
|
localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
|
|
12635
|
-
.replace(
|
|
12636
|
-
.replace(
|
|
12637
|
-
.replace(
|
|
11855
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
11856
|
+
.replace('{batch_id}', encodeURIComponent(String(batchId)))
|
|
11857
|
+
.replace('{shipment_id}', encodeURIComponent(String(shipmentId)));
|
|
12638
11858
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12639
11859
|
if (configuration) {
|
|
12640
11860
|
baseOptions = configuration.baseOptions;
|
|
@@ -13024,6 +12244,29 @@ var OrdersApiFp = function (configuration) {
|
|
|
13024
12244
|
});
|
|
13025
12245
|
});
|
|
13026
12246
|
},
|
|
12247
|
+
/**
|
|
12248
|
+
* Create an order via the legacy portal
|
|
12249
|
+
* @summary Create an order via the legacy portal
|
|
12250
|
+
* @param {OrderDTO} [orderDTO] Legacy Portal Order
|
|
12251
|
+
* @param {*} [options] Override http request option.
|
|
12252
|
+
* @throws {RequiredError}
|
|
12253
|
+
*/
|
|
12254
|
+
postCreatePortalOrderLegacy: function (orderDTO, options) {
|
|
12255
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12256
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12257
|
+
var _a, _b, _c;
|
|
12258
|
+
return __generator(this, function (_d) {
|
|
12259
|
+
switch (_d.label) {
|
|
12260
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreatePortalOrderLegacy(orderDTO, options)];
|
|
12261
|
+
case 1:
|
|
12262
|
+
localVarAxiosArgs = _d.sent();
|
|
12263
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12264
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreatePortalOrderLegacy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12265
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12266
|
+
}
|
|
12267
|
+
});
|
|
12268
|
+
});
|
|
12269
|
+
},
|
|
13027
12270
|
/**
|
|
13028
12271
|
* Create Shipment (Admin)
|
|
13029
12272
|
* @summary Create Shipment (Admin)
|
|
@@ -13569,6 +12812,16 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
13569
12812
|
postCreateConsignment: function (id, shipmentId, shippingRequestDTO, options) {
|
|
13570
12813
|
return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
13571
12814
|
},
|
|
12815
|
+
/**
|
|
12816
|
+
* Create an order via the legacy portal
|
|
12817
|
+
* @summary Create an order via the legacy portal
|
|
12818
|
+
* @param {OrderDTO} [orderDTO] Legacy Portal Order
|
|
12819
|
+
* @param {*} [options] Override http request option.
|
|
12820
|
+
* @throws {RequiredError}
|
|
12821
|
+
*/
|
|
12822
|
+
postCreatePortalOrderLegacy: function (orderDTO, options) {
|
|
12823
|
+
return localVarFp.postCreatePortalOrderLegacy(orderDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12824
|
+
},
|
|
13572
12825
|
/**
|
|
13573
12826
|
* Create Shipment (Admin)
|
|
13574
12827
|
* @summary Create Shipment (Admin)
|
|
@@ -13936,6 +13189,17 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
13936
13189
|
var _this = this;
|
|
13937
13190
|
return (0, exports.OrdersApiFp)(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13938
13191
|
};
|
|
13192
|
+
/**
|
|
13193
|
+
* Create an order via the legacy portal
|
|
13194
|
+
* @summary Create an order via the legacy portal
|
|
13195
|
+
* @param {OrderDTO} [orderDTO] Legacy Portal Order
|
|
13196
|
+
* @param {*} [options] Override http request option.
|
|
13197
|
+
* @throws {RequiredError}
|
|
13198
|
+
*/
|
|
13199
|
+
OrdersApi.prototype.postCreatePortalOrderLegacy = function (orderDTO, options) {
|
|
13200
|
+
var _this = this;
|
|
13201
|
+
return (0, exports.OrdersApiFp)(this.configuration).postCreatePortalOrderLegacy(orderDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13202
|
+
};
|
|
13939
13203
|
/**
|
|
13940
13204
|
* Create Shipment (Admin)
|
|
13941
13205
|
* @summary Create Shipment (Admin)
|
|
@@ -14134,18 +13398,18 @@ exports.GetGetOrdersStatusEnum = {
|
|
|
14134
13398
|
Paid: 'PAID',
|
|
14135
13399
|
InvoicePaid: 'INVOICE_PAID',
|
|
14136
13400
|
Unpaid: 'UNPAID',
|
|
14137
|
-
Quote: 'QUOTE'
|
|
13401
|
+
Quote: 'QUOTE',
|
|
14138
13402
|
};
|
|
14139
13403
|
exports.GetGetOrdersFilterEnum = {
|
|
14140
13404
|
Outstanding: 'OUTSTANDING',
|
|
14141
13405
|
Quotes: 'QUOTES',
|
|
14142
13406
|
All: 'ALL',
|
|
14143
|
-
BackOrders: 'BACK_ORDERS'
|
|
13407
|
+
BackOrders: 'BACK_ORDERS',
|
|
14144
13408
|
};
|
|
14145
13409
|
exports.PostPrintShippingLabelPrinterEnum = {
|
|
14146
13410
|
NUMBER_1: 1,
|
|
14147
13411
|
NUMBER_2: 2,
|
|
14148
|
-
NUMBER_3: 3
|
|
13412
|
+
NUMBER_3: 3,
|
|
14149
13413
|
};
|
|
14150
13414
|
/**
|
|
14151
13415
|
* PricingApi - axios parameter creator
|
|
@@ -14418,14 +13682,14 @@ exports.GetGetPriceListTypeEnum = {
|
|
|
14418
13682
|
EdTechPro: 'EdTechPro',
|
|
14419
13683
|
Sms: 'SMS',
|
|
14420
13684
|
SipTrunks: 'SIP Trunks',
|
|
14421
|
-
CrmIntegrations: 'CRM Integrations'
|
|
13685
|
+
CrmIntegrations: 'CRM Integrations',
|
|
14422
13686
|
};
|
|
14423
13687
|
exports.GetGetPriceListFormatEnum = {
|
|
14424
13688
|
Pdf: 'pdf',
|
|
14425
13689
|
Json: 'json',
|
|
14426
13690
|
Csv: 'csv',
|
|
14427
13691
|
Xml: 'xml',
|
|
14428
|
-
Html: 'html'
|
|
13692
|
+
Html: 'html',
|
|
14429
13693
|
};
|
|
14430
13694
|
exports.GetGetPriceListCategoryEnum = {
|
|
14431
13695
|
Yealink: 'Yealink',
|
|
@@ -14447,7 +13711,7 @@ exports.GetGetPriceListCategoryEnum = {
|
|
|
14447
13711
|
FanvilWirelessPhones: 'Fanvil Wireless Phones',
|
|
14448
13712
|
FanvilSecurityProducts: 'Fanvil Security Products',
|
|
14449
13713
|
FanvilAccessories: 'Fanvil Accessories',
|
|
14450
|
-
FanvilHotelPhones: 'Fanvil Hotel Phones'
|
|
13714
|
+
FanvilHotelPhones: 'Fanvil Hotel Phones',
|
|
14451
13715
|
};
|
|
14452
13716
|
exports.PostSendPriceListTypeEnum = {
|
|
14453
13717
|
Products: 'Products',
|
|
@@ -14458,14 +13722,14 @@ exports.PostSendPriceListTypeEnum = {
|
|
|
14458
13722
|
EdTechPro: 'EdTechPro',
|
|
14459
13723
|
Sms: 'SMS',
|
|
14460
13724
|
SipTrunks: 'SIP Trunks',
|
|
14461
|
-
CrmIntegrations: 'CRM Integrations'
|
|
13725
|
+
CrmIntegrations: 'CRM Integrations',
|
|
14462
13726
|
};
|
|
14463
13727
|
exports.PostSendPriceListFormatEnum = {
|
|
14464
13728
|
Pdf: 'pdf',
|
|
14465
13729
|
Json: 'json',
|
|
14466
13730
|
Csv: 'csv',
|
|
14467
13731
|
Xml: 'xml',
|
|
14468
|
-
Html: 'html'
|
|
13732
|
+
Html: 'html',
|
|
14469
13733
|
};
|
|
14470
13734
|
exports.PostSendPriceListCategoryEnum = {
|
|
14471
13735
|
Yealink: 'Yealink',
|
|
@@ -14487,7 +13751,7 @@ exports.PostSendPriceListCategoryEnum = {
|
|
|
14487
13751
|
FanvilWirelessPhones: 'Fanvil Wireless Phones',
|
|
14488
13752
|
FanvilSecurityProducts: 'Fanvil Security Products',
|
|
14489
13753
|
FanvilAccessories: 'Fanvil Accessories',
|
|
14490
|
-
FanvilHotelPhones: 'Fanvil Hotel Phones'
|
|
13754
|
+
FanvilHotelPhones: 'Fanvil Hotel Phones',
|
|
14491
13755
|
};
|
|
14492
13756
|
/**
|
|
14493
13757
|
* ProductsApi - axios parameter creator
|
|
@@ -14774,7 +14038,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
14774
14038
|
// verify required parameter 'quantity' is not null or undefined
|
|
14775
14039
|
(0, common_1.assertParamExists)('patchAddQuantityToStock', 'quantity', quantity);
|
|
14776
14040
|
localVarPath = "/products/{sku}/stock/add"
|
|
14777
|
-
.replace(
|
|
14041
|
+
.replace('{sku}', encodeURIComponent(String(sku)));
|
|
14778
14042
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14779
14043
|
if (configuration) {
|
|
14780
14044
|
baseOptions = configuration.baseOptions;
|
|
@@ -14799,25 +14063,25 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
14799
14063
|
* Get Product
|
|
14800
14064
|
* @summary Get Product
|
|
14801
14065
|
* @param {string} sku Product SKU
|
|
14802
|
-
* @param {
|
|
14066
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
14803
14067
|
* @param {*} [options] Override http request option.
|
|
14804
14068
|
* @throws {RequiredError}
|
|
14805
14069
|
*/
|
|
14806
|
-
postGetProduct: function (sku_1,
|
|
14070
|
+
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
|
|
14807
14071
|
var args_1 = [];
|
|
14808
14072
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
14809
14073
|
args_1[_i - 2] = arguments[_i];
|
|
14810
14074
|
}
|
|
14811
|
-
return __awaiter(_this, __spreadArray([sku_1,
|
|
14075
|
+
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
|
|
14812
14076
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14813
14077
|
if (options === void 0) { options = {}; }
|
|
14814
14078
|
return __generator(this, function (_a) {
|
|
14815
14079
|
// verify required parameter 'sku' is not null or undefined
|
|
14816
14080
|
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
14817
|
-
// verify required parameter '
|
|
14818
|
-
(0, common_1.assertParamExists)('postGetProduct', '
|
|
14081
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
14082
|
+
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
14819
14083
|
localVarPath = "/products/{sku}"
|
|
14820
|
-
.replace(
|
|
14084
|
+
.replace('{sku}', encodeURIComponent(String(sku)));
|
|
14821
14085
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14822
14086
|
if (configuration) {
|
|
14823
14087
|
baseOptions = configuration.baseOptions;
|
|
@@ -14830,7 +14094,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
14830
14094
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14831
14095
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14832
14096
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14833
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
14097
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
14834
14098
|
return [2 /*return*/, {
|
|
14835
14099
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14836
14100
|
options: localVarRequestOptions,
|
|
@@ -14863,7 +14127,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
14863
14127
|
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
14864
14128
|
(0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
14865
14129
|
localVarPath = "/admin/products/{sku}"
|
|
14866
|
-
.replace(
|
|
14130
|
+
.replace('{sku}', encodeURIComponent(String(sku)));
|
|
14867
14131
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14868
14132
|
if (configuration) {
|
|
14869
14133
|
baseOptions = configuration.baseOptions;
|
|
@@ -15083,17 +14347,17 @@ var ProductsApiFp = function (configuration) {
|
|
|
15083
14347
|
* Get Product
|
|
15084
14348
|
* @summary Get Product
|
|
15085
14349
|
* @param {string} sku Product SKU
|
|
15086
|
-
* @param {
|
|
14350
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15087
14351
|
* @param {*} [options] Override http request option.
|
|
15088
14352
|
* @throws {RequiredError}
|
|
15089
14353
|
*/
|
|
15090
|
-
postGetProduct: function (sku,
|
|
14354
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
15091
14355
|
return __awaiter(this, void 0, void 0, function () {
|
|
15092
14356
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
15093
14357
|
var _a, _b, _c;
|
|
15094
14358
|
return __generator(this, function (_d) {
|
|
15095
14359
|
switch (_d.label) {
|
|
15096
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku,
|
|
14360
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
|
|
15097
14361
|
case 1:
|
|
15098
14362
|
localVarAxiosArgs = _d.sent();
|
|
15099
14363
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -15220,12 +14484,12 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
15220
14484
|
* Get Product
|
|
15221
14485
|
* @summary Get Product
|
|
15222
14486
|
* @param {string} sku Product SKU
|
|
15223
|
-
* @param {
|
|
14487
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15224
14488
|
* @param {*} [options] Override http request option.
|
|
15225
14489
|
* @throws {RequiredError}
|
|
15226
14490
|
*/
|
|
15227
|
-
postGetProduct: function (sku,
|
|
15228
|
-
return localVarFp.postGetProduct(sku,
|
|
14491
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
14492
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
15229
14493
|
},
|
|
15230
14494
|
/**
|
|
15231
14495
|
* Get Product For Customer
|
|
@@ -15341,13 +14605,13 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
15341
14605
|
* Get Product
|
|
15342
14606
|
* @summary Get Product
|
|
15343
14607
|
* @param {string} sku Product SKU
|
|
15344
|
-
* @param {
|
|
14608
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15345
14609
|
* @param {*} [options] Override http request option.
|
|
15346
14610
|
* @throws {RequiredError}
|
|
15347
14611
|
*/
|
|
15348
|
-
ProductsApi.prototype.postGetProduct = function (sku,
|
|
14612
|
+
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
15349
14613
|
var _this = this;
|
|
15350
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku,
|
|
14614
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15351
14615
|
};
|
|
15352
14616
|
/**
|
|
15353
14617
|
* Get Product For Customer
|
|
@@ -15367,8 +14631,385 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
15367
14631
|
exports.ProductsApi = ProductsApi;
|
|
15368
14632
|
exports.GetGetLegacyStockListFormatEnum = {
|
|
15369
14633
|
Xml: 'XML',
|
|
15370
|
-
Csv: 'CSV'
|
|
14634
|
+
Csv: 'CSV',
|
|
14635
|
+
};
|
|
14636
|
+
/**
|
|
14637
|
+
* ProspectsApi - axios parameter creator
|
|
14638
|
+
*/
|
|
14639
|
+
var ProspectsApiAxiosParamCreator = function (configuration) {
|
|
14640
|
+
var _this = this;
|
|
14641
|
+
return {
|
|
14642
|
+
/**
|
|
14643
|
+
* Get Prospect
|
|
14644
|
+
* @summary Get Prospect
|
|
14645
|
+
* @param {string} xeroId Xero ID
|
|
14646
|
+
* @param {*} [options] Override http request option.
|
|
14647
|
+
* @throws {RequiredError}
|
|
14648
|
+
*/
|
|
14649
|
+
getGetProspect: function (xeroId_1) {
|
|
14650
|
+
var args_1 = [];
|
|
14651
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
14652
|
+
args_1[_i - 1] = arguments[_i];
|
|
14653
|
+
}
|
|
14654
|
+
return __awaiter(_this, __spreadArray([xeroId_1], args_1, true), void 0, function (xeroId, options) {
|
|
14655
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14656
|
+
if (options === void 0) { options = {}; }
|
|
14657
|
+
return __generator(this, function (_a) {
|
|
14658
|
+
// verify required parameter 'xeroId' is not null or undefined
|
|
14659
|
+
(0, common_1.assertParamExists)('getGetProspect', 'xeroId', xeroId);
|
|
14660
|
+
localVarPath = "/accounts/prospects/{xero_id}"
|
|
14661
|
+
.replace('{xero_id}', encodeURIComponent(String(xeroId)));
|
|
14662
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14663
|
+
if (configuration) {
|
|
14664
|
+
baseOptions = configuration.baseOptions;
|
|
14665
|
+
}
|
|
14666
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14667
|
+
localVarHeaderParameter = {};
|
|
14668
|
+
localVarQueryParameter = {};
|
|
14669
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14670
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14671
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14672
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14673
|
+
return [2 /*return*/, {
|
|
14674
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14675
|
+
options: localVarRequestOptions,
|
|
14676
|
+
}];
|
|
14677
|
+
});
|
|
14678
|
+
});
|
|
14679
|
+
},
|
|
14680
|
+
/**
|
|
14681
|
+
* Get Prospects
|
|
14682
|
+
* @summary Get Prospects
|
|
14683
|
+
* @param {*} [options] Override http request option.
|
|
14684
|
+
* @throws {RequiredError}
|
|
14685
|
+
*/
|
|
14686
|
+
getGetProspects: function () {
|
|
14687
|
+
var args_1 = [];
|
|
14688
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
14689
|
+
args_1[_i] = arguments[_i];
|
|
14690
|
+
}
|
|
14691
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
14692
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14693
|
+
if (options === void 0) { options = {}; }
|
|
14694
|
+
return __generator(this, function (_a) {
|
|
14695
|
+
localVarPath = "/accounts/prospects";
|
|
14696
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14697
|
+
if (configuration) {
|
|
14698
|
+
baseOptions = configuration.baseOptions;
|
|
14699
|
+
}
|
|
14700
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14701
|
+
localVarHeaderParameter = {};
|
|
14702
|
+
localVarQueryParameter = {};
|
|
14703
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14704
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14705
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14706
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14707
|
+
return [2 /*return*/, {
|
|
14708
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14709
|
+
options: localVarRequestOptions,
|
|
14710
|
+
}];
|
|
14711
|
+
});
|
|
14712
|
+
});
|
|
14713
|
+
},
|
|
14714
|
+
/**
|
|
14715
|
+
* Remove From Prospect
|
|
14716
|
+
* @summary Remove From Prospects
|
|
14717
|
+
* @param {string} xeroId Xero ID
|
|
14718
|
+
* @param {boolean} status Status
|
|
14719
|
+
* @param {*} [options] Override http request option.
|
|
14720
|
+
* @throws {RequiredError}
|
|
14721
|
+
*/
|
|
14722
|
+
getRemoveFromProspects: function (xeroId_1, status_1) {
|
|
14723
|
+
var args_1 = [];
|
|
14724
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
14725
|
+
args_1[_i - 2] = arguments[_i];
|
|
14726
|
+
}
|
|
14727
|
+
return __awaiter(_this, __spreadArray([xeroId_1, status_1], args_1, true), void 0, function (xeroId, status, options) {
|
|
14728
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14729
|
+
if (options === void 0) { options = {}; }
|
|
14730
|
+
return __generator(this, function (_a) {
|
|
14731
|
+
// verify required parameter 'xeroId' is not null or undefined
|
|
14732
|
+
(0, common_1.assertParamExists)('getRemoveFromProspects', 'xeroId', xeroId);
|
|
14733
|
+
// verify required parameter 'status' is not null or undefined
|
|
14734
|
+
(0, common_1.assertParamExists)('getRemoveFromProspects', 'status', status);
|
|
14735
|
+
localVarPath = "/accounts/prospects/{xero_id}/remove"
|
|
14736
|
+
.replace('{xero_id}', encodeURIComponent(String(xeroId)));
|
|
14737
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14738
|
+
if (configuration) {
|
|
14739
|
+
baseOptions = configuration.baseOptions;
|
|
14740
|
+
}
|
|
14741
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14742
|
+
localVarHeaderParameter = {};
|
|
14743
|
+
localVarQueryParameter = {};
|
|
14744
|
+
if (status !== undefined) {
|
|
14745
|
+
localVarQueryParameter['status'] = status;
|
|
14746
|
+
}
|
|
14747
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14748
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14749
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14750
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14751
|
+
return [2 /*return*/, {
|
|
14752
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14753
|
+
options: localVarRequestOptions,
|
|
14754
|
+
}];
|
|
14755
|
+
});
|
|
14756
|
+
});
|
|
14757
|
+
},
|
|
14758
|
+
/**
|
|
14759
|
+
* Set Call Back Date
|
|
14760
|
+
* @summary Set Call Back Date
|
|
14761
|
+
* @param {string} xeroId Xero ID
|
|
14762
|
+
* @param {string} date Callback Date
|
|
14763
|
+
* @param {*} [options] Override http request option.
|
|
14764
|
+
* @throws {RequiredError}
|
|
14765
|
+
*/
|
|
14766
|
+
getSetCallback: function (xeroId_1, date_1) {
|
|
14767
|
+
var args_1 = [];
|
|
14768
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
14769
|
+
args_1[_i - 2] = arguments[_i];
|
|
14770
|
+
}
|
|
14771
|
+
return __awaiter(_this, __spreadArray([xeroId_1, date_1], args_1, true), void 0, function (xeroId, date, options) {
|
|
14772
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14773
|
+
if (options === void 0) { options = {}; }
|
|
14774
|
+
return __generator(this, function (_a) {
|
|
14775
|
+
// verify required parameter 'xeroId' is not null or undefined
|
|
14776
|
+
(0, common_1.assertParamExists)('getSetCallback', 'xeroId', xeroId);
|
|
14777
|
+
// verify required parameter 'date' is not null or undefined
|
|
14778
|
+
(0, common_1.assertParamExists)('getSetCallback', 'date', date);
|
|
14779
|
+
localVarPath = "/accounts/prospects/{xero_id}/date"
|
|
14780
|
+
.replace('{xero_id}', encodeURIComponent(String(xeroId)));
|
|
14781
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14782
|
+
if (configuration) {
|
|
14783
|
+
baseOptions = configuration.baseOptions;
|
|
14784
|
+
}
|
|
14785
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14786
|
+
localVarHeaderParameter = {};
|
|
14787
|
+
localVarQueryParameter = {};
|
|
14788
|
+
if (date !== undefined) {
|
|
14789
|
+
localVarQueryParameter['date'] = date;
|
|
14790
|
+
}
|
|
14791
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14792
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14793
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14794
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14795
|
+
return [2 /*return*/, {
|
|
14796
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14797
|
+
options: localVarRequestOptions,
|
|
14798
|
+
}];
|
|
14799
|
+
});
|
|
14800
|
+
});
|
|
14801
|
+
},
|
|
14802
|
+
};
|
|
15371
14803
|
};
|
|
14804
|
+
exports.ProspectsApiAxiosParamCreator = ProspectsApiAxiosParamCreator;
|
|
14805
|
+
/**
|
|
14806
|
+
* ProspectsApi - functional programming interface
|
|
14807
|
+
*/
|
|
14808
|
+
var ProspectsApiFp = function (configuration) {
|
|
14809
|
+
var localVarAxiosParamCreator = (0, exports.ProspectsApiAxiosParamCreator)(configuration);
|
|
14810
|
+
return {
|
|
14811
|
+
/**
|
|
14812
|
+
* Get Prospect
|
|
14813
|
+
* @summary Get Prospect
|
|
14814
|
+
* @param {string} xeroId Xero ID
|
|
14815
|
+
* @param {*} [options] Override http request option.
|
|
14816
|
+
* @throws {RequiredError}
|
|
14817
|
+
*/
|
|
14818
|
+
getGetProspect: function (xeroId, options) {
|
|
14819
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14820
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
14821
|
+
var _a, _b, _c;
|
|
14822
|
+
return __generator(this, function (_d) {
|
|
14823
|
+
switch (_d.label) {
|
|
14824
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProspect(xeroId, options)];
|
|
14825
|
+
case 1:
|
|
14826
|
+
localVarAxiosArgs = _d.sent();
|
|
14827
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14828
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getGetProspect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14829
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
14830
|
+
}
|
|
14831
|
+
});
|
|
14832
|
+
});
|
|
14833
|
+
},
|
|
14834
|
+
/**
|
|
14835
|
+
* Get Prospects
|
|
14836
|
+
* @summary Get Prospects
|
|
14837
|
+
* @param {*} [options] Override http request option.
|
|
14838
|
+
* @throws {RequiredError}
|
|
14839
|
+
*/
|
|
14840
|
+
getGetProspects: function (options) {
|
|
14841
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14842
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
14843
|
+
var _a, _b, _c;
|
|
14844
|
+
return __generator(this, function (_d) {
|
|
14845
|
+
switch (_d.label) {
|
|
14846
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProspects(options)];
|
|
14847
|
+
case 1:
|
|
14848
|
+
localVarAxiosArgs = _d.sent();
|
|
14849
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14850
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getGetProspects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14851
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
14852
|
+
}
|
|
14853
|
+
});
|
|
14854
|
+
});
|
|
14855
|
+
},
|
|
14856
|
+
/**
|
|
14857
|
+
* Remove From Prospect
|
|
14858
|
+
* @summary Remove From Prospects
|
|
14859
|
+
* @param {string} xeroId Xero ID
|
|
14860
|
+
* @param {boolean} status Status
|
|
14861
|
+
* @param {*} [options] Override http request option.
|
|
14862
|
+
* @throws {RequiredError}
|
|
14863
|
+
*/
|
|
14864
|
+
getRemoveFromProspects: function (xeroId, status, options) {
|
|
14865
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14866
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
14867
|
+
var _a, _b, _c;
|
|
14868
|
+
return __generator(this, function (_d) {
|
|
14869
|
+
switch (_d.label) {
|
|
14870
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRemoveFromProspects(xeroId, status, options)];
|
|
14871
|
+
case 1:
|
|
14872
|
+
localVarAxiosArgs = _d.sent();
|
|
14873
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14874
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getRemoveFromProspects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14875
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
14876
|
+
}
|
|
14877
|
+
});
|
|
14878
|
+
});
|
|
14879
|
+
},
|
|
14880
|
+
/**
|
|
14881
|
+
* Set Call Back Date
|
|
14882
|
+
* @summary Set Call Back Date
|
|
14883
|
+
* @param {string} xeroId Xero ID
|
|
14884
|
+
* @param {string} date Callback Date
|
|
14885
|
+
* @param {*} [options] Override http request option.
|
|
14886
|
+
* @throws {RequiredError}
|
|
14887
|
+
*/
|
|
14888
|
+
getSetCallback: function (xeroId, date, options) {
|
|
14889
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14890
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
14891
|
+
var _a, _b, _c;
|
|
14892
|
+
return __generator(this, function (_d) {
|
|
14893
|
+
switch (_d.label) {
|
|
14894
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSetCallback(xeroId, date, options)];
|
|
14895
|
+
case 1:
|
|
14896
|
+
localVarAxiosArgs = _d.sent();
|
|
14897
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14898
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getSetCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14899
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
14900
|
+
}
|
|
14901
|
+
});
|
|
14902
|
+
});
|
|
14903
|
+
},
|
|
14904
|
+
};
|
|
14905
|
+
};
|
|
14906
|
+
exports.ProspectsApiFp = ProspectsApiFp;
|
|
14907
|
+
/**
|
|
14908
|
+
* ProspectsApi - factory interface
|
|
14909
|
+
*/
|
|
14910
|
+
var ProspectsApiFactory = function (configuration, basePath, axios) {
|
|
14911
|
+
var localVarFp = (0, exports.ProspectsApiFp)(configuration);
|
|
14912
|
+
return {
|
|
14913
|
+
/**
|
|
14914
|
+
* Get Prospect
|
|
14915
|
+
* @summary Get Prospect
|
|
14916
|
+
* @param {string} xeroId Xero ID
|
|
14917
|
+
* @param {*} [options] Override http request option.
|
|
14918
|
+
* @throws {RequiredError}
|
|
14919
|
+
*/
|
|
14920
|
+
getGetProspect: function (xeroId, options) {
|
|
14921
|
+
return localVarFp.getGetProspect(xeroId, options).then(function (request) { return request(axios, basePath); });
|
|
14922
|
+
},
|
|
14923
|
+
/**
|
|
14924
|
+
* Get Prospects
|
|
14925
|
+
* @summary Get Prospects
|
|
14926
|
+
* @param {*} [options] Override http request option.
|
|
14927
|
+
* @throws {RequiredError}
|
|
14928
|
+
*/
|
|
14929
|
+
getGetProspects: function (options) {
|
|
14930
|
+
return localVarFp.getGetProspects(options).then(function (request) { return request(axios, basePath); });
|
|
14931
|
+
},
|
|
14932
|
+
/**
|
|
14933
|
+
* Remove From Prospect
|
|
14934
|
+
* @summary Remove From Prospects
|
|
14935
|
+
* @param {string} xeroId Xero ID
|
|
14936
|
+
* @param {boolean} status Status
|
|
14937
|
+
* @param {*} [options] Override http request option.
|
|
14938
|
+
* @throws {RequiredError}
|
|
14939
|
+
*/
|
|
14940
|
+
getRemoveFromProspects: function (xeroId, status, options) {
|
|
14941
|
+
return localVarFp.getRemoveFromProspects(xeroId, status, options).then(function (request) { return request(axios, basePath); });
|
|
14942
|
+
},
|
|
14943
|
+
/**
|
|
14944
|
+
* Set Call Back Date
|
|
14945
|
+
* @summary Set Call Back Date
|
|
14946
|
+
* @param {string} xeroId Xero ID
|
|
14947
|
+
* @param {string} date Callback Date
|
|
14948
|
+
* @param {*} [options] Override http request option.
|
|
14949
|
+
* @throws {RequiredError}
|
|
14950
|
+
*/
|
|
14951
|
+
getSetCallback: function (xeroId, date, options) {
|
|
14952
|
+
return localVarFp.getSetCallback(xeroId, date, options).then(function (request) { return request(axios, basePath); });
|
|
14953
|
+
},
|
|
14954
|
+
};
|
|
14955
|
+
};
|
|
14956
|
+
exports.ProspectsApiFactory = ProspectsApiFactory;
|
|
14957
|
+
/**
|
|
14958
|
+
* ProspectsApi - object-oriented interface
|
|
14959
|
+
*/
|
|
14960
|
+
var ProspectsApi = /** @class */ (function (_super) {
|
|
14961
|
+
__extends(ProspectsApi, _super);
|
|
14962
|
+
function ProspectsApi() {
|
|
14963
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14964
|
+
}
|
|
14965
|
+
/**
|
|
14966
|
+
* Get Prospect
|
|
14967
|
+
* @summary Get Prospect
|
|
14968
|
+
* @param {string} xeroId Xero ID
|
|
14969
|
+
* @param {*} [options] Override http request option.
|
|
14970
|
+
* @throws {RequiredError}
|
|
14971
|
+
*/
|
|
14972
|
+
ProspectsApi.prototype.getGetProspect = function (xeroId, options) {
|
|
14973
|
+
var _this = this;
|
|
14974
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getGetProspect(xeroId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14975
|
+
};
|
|
14976
|
+
/**
|
|
14977
|
+
* Get Prospects
|
|
14978
|
+
* @summary Get Prospects
|
|
14979
|
+
* @param {*} [options] Override http request option.
|
|
14980
|
+
* @throws {RequiredError}
|
|
14981
|
+
*/
|
|
14982
|
+
ProspectsApi.prototype.getGetProspects = function (options) {
|
|
14983
|
+
var _this = this;
|
|
14984
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getGetProspects(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14985
|
+
};
|
|
14986
|
+
/**
|
|
14987
|
+
* Remove From Prospect
|
|
14988
|
+
* @summary Remove From Prospects
|
|
14989
|
+
* @param {string} xeroId Xero ID
|
|
14990
|
+
* @param {boolean} status Status
|
|
14991
|
+
* @param {*} [options] Override http request option.
|
|
14992
|
+
* @throws {RequiredError}
|
|
14993
|
+
*/
|
|
14994
|
+
ProspectsApi.prototype.getRemoveFromProspects = function (xeroId, status, options) {
|
|
14995
|
+
var _this = this;
|
|
14996
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getRemoveFromProspects(xeroId, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14997
|
+
};
|
|
14998
|
+
/**
|
|
14999
|
+
* Set Call Back Date
|
|
15000
|
+
* @summary Set Call Back Date
|
|
15001
|
+
* @param {string} xeroId Xero ID
|
|
15002
|
+
* @param {string} date Callback Date
|
|
15003
|
+
* @param {*} [options] Override http request option.
|
|
15004
|
+
* @throws {RequiredError}
|
|
15005
|
+
*/
|
|
15006
|
+
ProspectsApi.prototype.getSetCallback = function (xeroId, date, options) {
|
|
15007
|
+
var _this = this;
|
|
15008
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getSetCallback(xeroId, date, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15009
|
+
};
|
|
15010
|
+
return ProspectsApi;
|
|
15011
|
+
}(base_1.BaseAPI));
|
|
15012
|
+
exports.ProspectsApi = ProspectsApi;
|
|
15372
15013
|
/**
|
|
15373
15014
|
* ProvisioningApi - axios parameter creator
|
|
15374
15015
|
*/
|
|
@@ -15397,8 +15038,8 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
15397
15038
|
// verify required parameter 'mac' is not null or undefined
|
|
15398
15039
|
(0, common_1.assertParamExists)('deleteAddFanvilMac', 'mac', mac);
|
|
15399
15040
|
localVarPath = "/provisioning/fanvil/groups/{id}/macs/{mac}"
|
|
15400
|
-
.replace(
|
|
15401
|
-
.replace(
|
|
15041
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
15042
|
+
.replace('{mac}', encodeURIComponent(String(mac)));
|
|
15402
15043
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15403
15044
|
if (configuration) {
|
|
15404
15045
|
baseOptions = configuration.baseOptions;
|
|
@@ -15435,7 +15076,7 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
15435
15076
|
// verify required parameter 'id' is not null or undefined
|
|
15436
15077
|
(0, common_1.assertParamExists)('deleteDeleteFanvilGroup', 'id', id);
|
|
15437
15078
|
localVarPath = "/provisioning/fanvil/groups/{id}"
|
|
15438
|
-
.replace(
|
|
15079
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
15439
15080
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15440
15081
|
if (configuration) {
|
|
15441
15082
|
baseOptions = configuration.baseOptions;
|
|
@@ -15475,8 +15116,8 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
15475
15116
|
// verify required parameter 'mac' is not null or undefined
|
|
15476
15117
|
(0, common_1.assertParamExists)('getGetFanvilEncryptionKey', 'mac', mac);
|
|
15477
15118
|
localVarPath = "/provisioning/fanvil/groups/{id}/macs/{mac}/key"
|
|
15478
|
-
.replace(
|
|
15479
|
-
.replace(
|
|
15119
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
15120
|
+
.replace('{mac}', encodeURIComponent(String(mac)));
|
|
15480
15121
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15481
15122
|
if (configuration) {
|
|
15482
15123
|
baseOptions = configuration.baseOptions;
|
|
@@ -15514,7 +15155,7 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
15514
15155
|
// verify required parameter 'id' is not null or undefined
|
|
15515
15156
|
(0, common_1.assertParamExists)('getGetFanvilGroupMacs', 'id', id);
|
|
15516
15157
|
localVarPath = "/provisioning/fanvil/groups/{id}/macs"
|
|
15517
|
-
.replace(
|
|
15158
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
15518
15159
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15519
15160
|
if (configuration) {
|
|
15520
15161
|
baseOptions = configuration.baseOptions;
|
|
@@ -15630,8 +15271,8 @@ var ProvisioningApiAxiosParamCreator = function (configuration) {
|
|
|
15630
15271
|
// verify required parameter 'mac' is not null or undefined
|
|
15631
15272
|
(0, common_1.assertParamExists)('postAddFanvilMac', 'mac', mac);
|
|
15632
15273
|
localVarPath = "/provisioning/fanvil/groups/{id}/macs/{mac}"
|
|
15633
|
-
.replace(
|
|
15634
|
-
.replace(
|
|
15274
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
15275
|
+
.replace('{mac}', encodeURIComponent(String(mac)));
|
|
15635
15276
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15636
15277
|
if (configuration) {
|
|
15637
15278
|
baseOptions = configuration.baseOptions;
|
|
@@ -16023,7 +15664,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16023
15664
|
// verify required parameter 'id' is not null or undefined
|
|
16024
15665
|
(0, common_1.assertParamExists)('deleteGetSipTrunk', 'id', id);
|
|
16025
15666
|
localVarPath = "/sip/trunks/{id}"
|
|
16026
|
-
.replace(
|
|
15667
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16027
15668
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16028
15669
|
if (configuration) {
|
|
16029
15670
|
baseOptions = configuration.baseOptions;
|
|
@@ -16061,7 +15702,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16061
15702
|
// verify required parameter 'id' is not null or undefined
|
|
16062
15703
|
(0, common_1.assertParamExists)('getCanDivert', 'id', id);
|
|
16063
15704
|
localVarPath = "/sip/trunks/{id}/diverts/allowed"
|
|
16064
|
-
.replace(
|
|
15705
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16065
15706
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16066
15707
|
if (configuration) {
|
|
16067
15708
|
baseOptions = configuration.baseOptions;
|
|
@@ -16099,7 +15740,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16099
15740
|
// verify required parameter 'id' is not null or undefined
|
|
16100
15741
|
(0, common_1.assertParamExists)('getGetAddress', 'id', id);
|
|
16101
15742
|
localVarPath = "/sip/trunks/{id}/address"
|
|
16102
|
-
.replace(
|
|
15743
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16103
15744
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16104
15745
|
if (configuration) {
|
|
16105
15746
|
baseOptions = configuration.baseOptions;
|
|
@@ -16208,7 +15849,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16208
15849
|
// verify required parameter 'id' is not null or undefined
|
|
16209
15850
|
(0, common_1.assertParamExists)('getGetCliFlexibility', 'id', id);
|
|
16210
15851
|
localVarPath = "/sip/trunks/{id}/cli/flexibility"
|
|
16211
|
-
.replace(
|
|
15852
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16212
15853
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16213
15854
|
if (configuration) {
|
|
16214
15855
|
baseOptions = configuration.baseOptions;
|
|
@@ -16246,7 +15887,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16246
15887
|
// verify required parameter 'id' is not null or undefined
|
|
16247
15888
|
(0, common_1.assertParamExists)('getGetDdis', 'id', id);
|
|
16248
15889
|
localVarPath = "/sip/trunks/{id}/ddis"
|
|
16249
|
-
.replace(
|
|
15890
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16250
15891
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16251
15892
|
if (configuration) {
|
|
16252
15893
|
baseOptions = configuration.baseOptions;
|
|
@@ -16285,7 +15926,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16285
15926
|
// verify required parameter 'id' is not null or undefined
|
|
16286
15927
|
(0, common_1.assertParamExists)('getGetDiverts', 'id', id);
|
|
16287
15928
|
localVarPath = "/sip/trunks/{id}/diverts"
|
|
16288
|
-
.replace(
|
|
15929
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16289
15930
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16290
15931
|
if (configuration) {
|
|
16291
15932
|
baseOptions = configuration.baseOptions;
|
|
@@ -16326,7 +15967,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16326
15967
|
// verify required parameter 'id' is not null or undefined
|
|
16327
15968
|
(0, common_1.assertParamExists)('getGetSipTrunk', 'id', id);
|
|
16328
15969
|
localVarPath = "/sip/trunks/{id}"
|
|
16329
|
-
.replace(
|
|
15970
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16330
15971
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16331
15972
|
if (configuration) {
|
|
16332
15973
|
baseOptions = configuration.baseOptions;
|
|
@@ -16413,7 +16054,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16413
16054
|
// verify required parameter 'enabled' is not null or undefined
|
|
16414
16055
|
(0, common_1.assertParamExists)('patchGetCliFlexibility', 'enabled', enabled);
|
|
16415
16056
|
localVarPath = "/sip/trunks/{id}/cli/flexibility"
|
|
16416
|
-
.replace(
|
|
16057
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16417
16058
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16418
16059
|
if (configuration) {
|
|
16419
16060
|
baseOptions = configuration.baseOptions;
|
|
@@ -16454,7 +16095,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16454
16095
|
// verify required parameter 'id' is not null or undefined
|
|
16455
16096
|
(0, common_1.assertParamExists)('patchSetAsAvailable', 'id', id);
|
|
16456
16097
|
localVarPath = "/sip/trunks/{id}/available"
|
|
16457
|
-
.replace(
|
|
16098
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16458
16099
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16459
16100
|
if (configuration) {
|
|
16460
16101
|
baseOptions = configuration.baseOptions;
|
|
@@ -16495,7 +16136,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16495
16136
|
// verify required parameter 'ownerId' is not null or undefined
|
|
16496
16137
|
(0, common_1.assertParamExists)('patchSetOwnership', 'ownerId', ownerId);
|
|
16497
16138
|
localVarPath = "/sip/trunks/{id}/owner"
|
|
16498
|
-
.replace(
|
|
16139
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16499
16140
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16500
16141
|
if (configuration) {
|
|
16501
16142
|
baseOptions = configuration.baseOptions;
|
|
@@ -16541,7 +16182,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16541
16182
|
// verify required parameter 'channels' is not null or undefined
|
|
16542
16183
|
(0, common_1.assertParamExists)('patchUpdateChannelCount', 'channels', channels);
|
|
16543
16184
|
localVarPath = "/sip/trunks/{id}/channels"
|
|
16544
|
-
.replace(
|
|
16185
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16545
16186
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16546
16187
|
if (configuration) {
|
|
16547
16188
|
baseOptions = configuration.baseOptions;
|
|
@@ -16585,7 +16226,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16585
16226
|
// verify required parameter 'company' is not null or undefined
|
|
16586
16227
|
(0, common_1.assertParamExists)('patchUpdateCompanyName', 'company', company);
|
|
16587
16228
|
localVarPath = "/sip/trunks/{id}/company"
|
|
16588
|
-
.replace(
|
|
16229
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16589
16230
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16590
16231
|
if (configuration) {
|
|
16591
16232
|
baseOptions = configuration.baseOptions;
|
|
@@ -16629,7 +16270,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16629
16270
|
// verify required parameter 'number' is not null or undefined
|
|
16630
16271
|
(0, common_1.assertParamExists)('patchUpdateMainTrunkNumber', 'number', number);
|
|
16631
16272
|
localVarPath = "/sip/trunks/{id}/number"
|
|
16632
|
-
.replace(
|
|
16273
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16633
16274
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16634
16275
|
if (configuration) {
|
|
16635
16276
|
baseOptions = configuration.baseOptions;
|
|
@@ -16673,7 +16314,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16673
16314
|
// verify required parameter 'ipAddress' is not null or undefined
|
|
16674
16315
|
(0, common_1.assertParamExists)('patchUpdatePbxIPAddress', 'ipAddress', ipAddress);
|
|
16675
16316
|
localVarPath = "/sip/trunks/{id}/pbx/ip"
|
|
16676
|
-
.replace(
|
|
16317
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16677
16318
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16678
16319
|
if (configuration) {
|
|
16679
16320
|
baseOptions = configuration.baseOptions;
|
|
@@ -16715,7 +16356,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16715
16356
|
// verify required parameter 'id' is not null or undefined
|
|
16716
16357
|
(0, common_1.assertParamExists)('postGetDdis', 'id', id);
|
|
16717
16358
|
localVarPath = "/sip/trunks/{id}/ddis"
|
|
16718
|
-
.replace(
|
|
16359
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16719
16360
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16720
16361
|
if (configuration) {
|
|
16721
16362
|
baseOptions = configuration.baseOptions;
|
|
@@ -16867,7 +16508,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16867
16508
|
// verify required parameter 'id' is not null or undefined
|
|
16868
16509
|
(0, common_1.assertParamExists)('putGetAddress', 'id', id);
|
|
16869
16510
|
localVarPath = "/sip/trunks/{id}/address"
|
|
16870
|
-
.replace(
|
|
16511
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16871
16512
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16872
16513
|
if (configuration) {
|
|
16873
16514
|
baseOptions = configuration.baseOptions;
|
|
@@ -16911,7 +16552,7 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
|
|
|
16911
16552
|
// verify required parameter 'enabled' is not null or undefined
|
|
16912
16553
|
(0, common_1.assertParamExists)('putGetDiverts', 'enabled', enabled);
|
|
16913
16554
|
localVarPath = "/sip/trunks/{id}/diverts"
|
|
16914
|
-
.replace(
|
|
16555
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
16915
16556
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16916
16557
|
if (configuration) {
|
|
16917
16558
|
baseOptions = configuration.baseOptions;
|
|
@@ -18317,7 +17958,7 @@ var ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
18317
17958
|
// verify required parameter 'id' is not null or undefined
|
|
18318
17959
|
(0, common_1.assertParamExists)('patchArchiveEvent', 'id', id);
|
|
18319
17960
|
localVarPath = "/services/events/{id}/archive"
|
|
18320
|
-
.replace(
|
|
17961
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
18321
17962
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18322
17963
|
if (configuration) {
|
|
18323
17964
|
baseOptions = configuration.baseOptions;
|
|
@@ -18355,7 +17996,7 @@ var ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
18355
17996
|
// verify required parameter 'id' is not null or undefined
|
|
18356
17997
|
(0, common_1.assertParamExists)('patchUpdateEvent', 'id', id);
|
|
18357
17998
|
localVarPath = "/services/events/{id}"
|
|
18358
|
-
.replace(
|
|
17999
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
18359
18000
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18360
18001
|
if (configuration) {
|
|
18361
18002
|
baseOptions = configuration.baseOptions;
|
|
@@ -18431,7 +18072,7 @@ var ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
18431
18072
|
// verify required parameter 'id' is not null or undefined
|
|
18432
18073
|
(0, common_1.assertParamExists)('postCreateEventUpdate', 'id', id);
|
|
18433
18074
|
localVarPath = "/services/events/{id}/updates"
|
|
18434
|
-
.replace(
|
|
18075
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
18435
18076
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18436
18077
|
if (configuration) {
|
|
18437
18078
|
baseOptions = configuration.baseOptions;
|
|
@@ -19047,7 +18688,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19047
18688
|
// verify required parameter 'id' is not null or undefined
|
|
19048
18689
|
(0, common_1.assertParamExists)('deleteDeleteStockOrder', 'id', id);
|
|
19049
18690
|
localVarPath = "/stock/orders/{id}"
|
|
19050
|
-
.replace(
|
|
18691
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19051
18692
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19052
18693
|
if (configuration) {
|
|
19053
18694
|
baseOptions = configuration.baseOptions;
|
|
@@ -19087,8 +18728,8 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19087
18728
|
// verify required parameter 'deductionId' is not null or undefined
|
|
19088
18729
|
(0, common_1.assertParamExists)('deleteDeleteStockOrderDeduction', 'deductionId', deductionId);
|
|
19089
18730
|
localVarPath = "/stock/orders/{order_id}/deductions/{deduction_id}"
|
|
19090
|
-
.replace(
|
|
19091
|
-
.replace(
|
|
18731
|
+
.replace('{order_id}', encodeURIComponent(String(orderId)))
|
|
18732
|
+
.replace('{deduction_id}', encodeURIComponent(String(deductionId)));
|
|
19092
18733
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19093
18734
|
if (configuration) {
|
|
19094
18735
|
baseOptions = configuration.baseOptions;
|
|
@@ -19128,8 +18769,8 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19128
18769
|
// verify required parameter 'itemId' is not null or undefined
|
|
19129
18770
|
(0, common_1.assertParamExists)('deleteDeleteStockOrderItem', 'itemId', itemId);
|
|
19130
18771
|
localVarPath = "/stock/orders/{order_id}/items/{item_id}"
|
|
19131
|
-
.replace(
|
|
19132
|
-
.replace(
|
|
18772
|
+
.replace('{order_id}', encodeURIComponent(String(orderId)))
|
|
18773
|
+
.replace('{item_id}', encodeURIComponent(String(itemId)));
|
|
19133
18774
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19134
18775
|
if (configuration) {
|
|
19135
18776
|
baseOptions = configuration.baseOptions;
|
|
@@ -19166,7 +18807,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19166
18807
|
// verify required parameter 'id' is not null or undefined
|
|
19167
18808
|
(0, common_1.assertParamExists)('deleteGetStockProduct', 'id', id);
|
|
19168
18809
|
localVarPath = "/stock/products/{id}"
|
|
19169
|
-
.replace(
|
|
18810
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19170
18811
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19171
18812
|
if (configuration) {
|
|
19172
18813
|
baseOptions = configuration.baseOptions;
|
|
@@ -19203,7 +18844,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19203
18844
|
// verify required parameter 'id' is not null or undefined
|
|
19204
18845
|
(0, common_1.assertParamExists)('getDeleteStockOrder', 'id', id);
|
|
19205
18846
|
localVarPath = "/stock/orders/{id}"
|
|
19206
|
-
.replace(
|
|
18847
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19207
18848
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19208
18849
|
if (configuration) {
|
|
19209
18850
|
baseOptions = configuration.baseOptions;
|
|
@@ -19241,7 +18882,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19241
18882
|
// verify required parameter 'sku' is not null or undefined
|
|
19242
18883
|
(0, common_1.assertParamExists)('getGetProductDetails', 'sku', sku);
|
|
19243
18884
|
localVarPath = "/stock/products/{sku}/details"
|
|
19244
|
-
.replace(
|
|
18885
|
+
.replace('{sku}', encodeURIComponent(String(sku)));
|
|
19245
18886
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19246
18887
|
if (configuration) {
|
|
19247
18888
|
baseOptions = configuration.baseOptions;
|
|
@@ -19279,7 +18920,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19279
18920
|
// verify required parameter 'id' is not null or undefined
|
|
19280
18921
|
(0, common_1.assertParamExists)('getGetStockOrderPurchaseOrder', 'id', id);
|
|
19281
18922
|
localVarPath = "/stock/orders/{id}/po"
|
|
19282
|
-
.replace(
|
|
18923
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19283
18924
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19284
18925
|
if (configuration) {
|
|
19285
18926
|
baseOptions = configuration.baseOptions;
|
|
@@ -19317,7 +18958,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19317
18958
|
// verify required parameter 'id' is not null or undefined
|
|
19318
18959
|
(0, common_1.assertParamExists)('getGetStockOrderSupplierEmail', 'id', id);
|
|
19319
18960
|
localVarPath = "/stock/orders/{id}/supplier/email"
|
|
19320
|
-
.replace(
|
|
18961
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19321
18962
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19322
18963
|
if (configuration) {
|
|
19323
18964
|
baseOptions = configuration.baseOptions;
|
|
@@ -19405,7 +19046,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19405
19046
|
// verify required parameter 'id' is not null or undefined
|
|
19406
19047
|
(0, common_1.assertParamExists)('getGetStockProduct', 'id', id);
|
|
19407
19048
|
localVarPath = "/stock/products/{id}"
|
|
19408
|
-
.replace(
|
|
19049
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19409
19050
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19410
19051
|
if (configuration) {
|
|
19411
19052
|
baseOptions = configuration.baseOptions;
|
|
@@ -19523,7 +19164,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19523
19164
|
// verify required parameter 'id' is not null or undefined
|
|
19524
19165
|
(0, common_1.assertParamExists)('getGetStockSupplierProducts', 'id', id);
|
|
19525
19166
|
localVarPath = "/stock/suppliers/{id}/products"
|
|
19526
|
-
.replace(
|
|
19167
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19527
19168
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19528
19169
|
if (configuration) {
|
|
19529
19170
|
baseOptions = configuration.baseOptions;
|
|
@@ -19561,7 +19202,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19561
19202
|
// verify required parameter 'id' is not null or undefined
|
|
19562
19203
|
(0, common_1.assertParamExists)('getUploadStockOrderInvoice', 'id', id);
|
|
19563
19204
|
localVarPath = "/stock/orders/{id}/invoice"
|
|
19564
|
-
.replace(
|
|
19205
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19565
19206
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19566
19207
|
if (configuration) {
|
|
19567
19208
|
baseOptions = configuration.baseOptions;
|
|
@@ -19600,7 +19241,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19600
19241
|
// verify required parameter 'id' is not null or undefined
|
|
19601
19242
|
(0, common_1.assertParamExists)('patchDeleteStockOrder', 'id', id);
|
|
19602
19243
|
localVarPath = "/stock/orders/{id}"
|
|
19603
|
-
.replace(
|
|
19244
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19604
19245
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19605
19246
|
if (configuration) {
|
|
19606
19247
|
baseOptions = configuration.baseOptions;
|
|
@@ -19644,8 +19285,8 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19644
19285
|
// verify required parameter 'deductionId' is not null or undefined
|
|
19645
19286
|
(0, common_1.assertParamExists)('patchDeleteStockOrderDeduction', 'deductionId', deductionId);
|
|
19646
19287
|
localVarPath = "/stock/orders/{order_id}/deductions/{deduction_id}"
|
|
19647
|
-
.replace(
|
|
19648
|
-
.replace(
|
|
19288
|
+
.replace('{order_id}', encodeURIComponent(String(orderId)))
|
|
19289
|
+
.replace('{deduction_id}', encodeURIComponent(String(deductionId)));
|
|
19649
19290
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19650
19291
|
if (configuration) {
|
|
19651
19292
|
baseOptions = configuration.baseOptions;
|
|
@@ -19689,8 +19330,8 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19689
19330
|
// verify required parameter 'itemId' is not null or undefined
|
|
19690
19331
|
(0, common_1.assertParamExists)('patchDeleteStockOrderItem', 'itemId', itemId);
|
|
19691
19332
|
localVarPath = "/stock/orders/{order_id}/items/{item_id}"
|
|
19692
|
-
.replace(
|
|
19693
|
-
.replace(
|
|
19333
|
+
.replace('{order_id}', encodeURIComponent(String(orderId)))
|
|
19334
|
+
.replace('{item_id}', encodeURIComponent(String(itemId)));
|
|
19694
19335
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19695
19336
|
if (configuration) {
|
|
19696
19337
|
baseOptions = configuration.baseOptions;
|
|
@@ -19731,7 +19372,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19731
19372
|
// verify required parameter 'id' is not null or undefined
|
|
19732
19373
|
(0, common_1.assertParamExists)('postAddStockOrderDeduction', 'id', id);
|
|
19733
19374
|
localVarPath = "/stock/orders/{id}/deductions"
|
|
19734
|
-
.replace(
|
|
19375
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19735
19376
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19736
19377
|
if (configuration) {
|
|
19737
19378
|
baseOptions = configuration.baseOptions;
|
|
@@ -19772,7 +19413,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19772
19413
|
// verify required parameter 'id' is not null or undefined
|
|
19773
19414
|
(0, common_1.assertParamExists)('postAddStockOrderItem', 'id', id);
|
|
19774
19415
|
localVarPath = "/stock/orders/{id}/items"
|
|
19775
|
-
.replace(
|
|
19416
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19776
19417
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19777
19418
|
if (configuration) {
|
|
19778
19419
|
baseOptions = configuration.baseOptions;
|
|
@@ -19889,7 +19530,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19889
19530
|
// verify required parameter 'invoice' is not null or undefined
|
|
19890
19531
|
(0, common_1.assertParamExists)('postUploadStockOrderInvoice', 'invoice', invoice);
|
|
19891
19532
|
localVarPath = "/stock/orders/{id}/invoice"
|
|
19892
|
-
.replace(
|
|
19533
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19893
19534
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19894
19535
|
if (configuration) {
|
|
19895
19536
|
baseOptions = configuration.baseOptions;
|
|
@@ -19933,7 +19574,7 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19933
19574
|
// verify required parameter 'id' is not null or undefined
|
|
19934
19575
|
(0, common_1.assertParamExists)('putGetStockProduct', 'id', id);
|
|
19935
19576
|
localVarPath = "/stock/products/{id}"
|
|
19936
|
-
.replace(
|
|
19577
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
19937
19578
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19938
19579
|
if (configuration) {
|
|
19939
19580
|
baseOptions = configuration.baseOptions;
|
|
@@ -19979,8 +19620,8 @@ var StockManagementApiAxiosParamCreator = function (configuration) {
|
|
|
19979
19620
|
// verify required parameter 'received' is not null or undefined
|
|
19980
19621
|
(0, common_1.assertParamExists)('putReceiveStockOrderItem', 'received', received);
|
|
19981
19622
|
localVarPath = "/stock/orders/{order_id}/items/{item_id}/receive"
|
|
19982
|
-
.replace(
|
|
19983
|
-
.replace(
|
|
19623
|
+
.replace('{order_id}', encodeURIComponent(String(orderId)))
|
|
19624
|
+
.replace('{item_id}', encodeURIComponent(String(itemId)));
|
|
19984
19625
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19985
19626
|
if (configuration) {
|
|
19986
19627
|
baseOptions = configuration.baseOptions;
|
|
@@ -21374,7 +21015,7 @@ var TicketsApiAxiosParamCreator = function (configuration) {
|
|
|
21374
21015
|
// verify required parameter 'id' is not null or undefined
|
|
21375
21016
|
(0, common_1.assertParamExists)('getGetTicket', 'id', id);
|
|
21376
21017
|
localVarPath = "/tickets/support/{id}"
|
|
21377
|
-
.replace(
|
|
21018
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
21378
21019
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21379
21020
|
if (configuration) {
|
|
21380
21021
|
baseOptions = configuration.baseOptions;
|
|
@@ -21411,7 +21052,7 @@ var TicketsApiAxiosParamCreator = function (configuration) {
|
|
|
21411
21052
|
// verify required parameter 'id' is not null or undefined
|
|
21412
21053
|
(0, common_1.assertParamExists)('patchCloseTicket', 'id', id);
|
|
21413
21054
|
localVarPath = "/tickets/support/{id}/close"
|
|
21414
|
-
.replace(
|
|
21055
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
21415
21056
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21416
21057
|
if (configuration) {
|
|
21417
21058
|
baseOptions = configuration.baseOptions;
|
|
@@ -21500,7 +21141,7 @@ var TicketsApiAxiosParamCreator = function (configuration) {
|
|
|
21500
21141
|
// verify required parameter 'id' is not null or undefined
|
|
21501
21142
|
(0, common_1.assertParamExists)('postTicketReply', 'id', id);
|
|
21502
21143
|
localVarPath = "/tickets/support/{id}/reply"
|
|
21503
|
-
.replace(
|
|
21144
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
21504
21145
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21505
21146
|
if (configuration) {
|
|
21506
21147
|
baseOptions = configuration.baseOptions;
|
|
@@ -21996,5 +21637,5 @@ exports.PostAddWebhookWebhookUriEnum = {
|
|
|
21996
21637
|
WebhookFreshdeskUpdate: '/webhook/freshdesk/update',
|
|
21997
21638
|
WebhookTest: '/webhook/test',
|
|
21998
21639
|
WebhookXeroInvoices: '/webhook/xero/invoices',
|
|
21999
|
-
WebhookTcxPhonesAdd: '/webhook/tcx/phones/add'
|
|
21640
|
+
WebhookTcxPhonesAdd: '/webhook/tcx/phones/add',
|
|
22000
21641
|
};
|