@thera-hr/api-sdk 0.0.1-prerelease2813-staging → 0.0.1-prerelease2854-dev
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/Client.d.ts +8 -1
- package/api/resources/api/client/Client.d.ts +6 -9
- package/api/resources/api/resources/aiprise/client/Client.d.ts +3 -6
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +8 -1
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +24 -19
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.d.ts +1 -1
- package/api/resources/api/resources/aiprise/resources/index.js +17 -7
- package/api/resources/api/resources/dev/client/Client.d.ts +3 -6
- package/api/resources/api/resources/dev/resources/dev/client/Client.d.ts +8 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +24 -21
- package/api/resources/api/resources/dev/resources/dev/client/requests/AddEorEmployeeRequest.d.ts +1 -1
- package/api/resources/api/resources/dev/resources/index.js +17 -7
- package/api/resources/api/resources/index.js +17 -7
- package/api/resources/api/resources/oneschema/resources/index.js +17 -7
- package/api/resources/api/resources/request/resources/index.js +17 -7
- package/api/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.d.ts +1 -1
- package/api/resources/api/resources/request/resources/thera/resources/document/types/Irs1099NecFormType.d.ts +1 -1
- package/api/resources/api/resources/request/resources/thera/resources/document/types/W8BenEEntityType.d.ts +1 -1
- package/api/resources/api/resources/request/resources/thera/resources/index.js +17 -7
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/ContributionType.d.ts +1 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/DeductionType.d.ts +1 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementMethod.d.ts +1 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementStatus.d.ts +1 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/index.js +17 -7
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +1 -1
- package/api/resources/api/resources/request/resources/zeal/resources/deduction/resources/index.js +17 -7
- package/api/resources/api/resources/request/resources/zeal/resources/employee/resources/index.js +17 -7
- package/api/resources/api/resources/request/resources/zeal/resources/index.js +17 -7
- package/api/resources/api/resources/response/resources/index.js +17 -7
- package/api/resources/api/resources/response/resources/thera/resources/index.js +17 -7
- package/api/resources/api/resources/services/client/Client.d.ts +3 -6
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -0
- package/api/resources/api/resources/services/resources/file/client/Client.js +47 -62
- package/api/resources/api/resources/services/resources/index.js +17 -7
- package/api/resources/api/resources/thera/client/Client.d.ts +18 -21
- package/api/resources/api/resources/thera/resources/accounting/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.d.ts +8 -1
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +42 -52
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/requests/ModifyAccountingIntegrationSetting.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingIntegrationsStatusResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/accounting/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +12 -5
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +236 -387
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethod.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodProvider.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/StripeUsBankAccountStatusResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/TransactionStatus.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/UsBankAccountProviderDetails.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionDetails.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionStatus.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +53 -3
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +350 -228
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +3 -1
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.d.ts +13 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.d.ts +16 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/common/resources/common/types/CardDisplayBrand.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/common/resources/common/types/PlaidVerificationStatus.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/common/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +4 -7
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +15 -8
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +151 -231
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.d.ts +2 -2
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractPermission.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractRole.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractorCsvResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractsCsvResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoicePermission.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoiceRole.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgPermission.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamPermission.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/WarrantObjectType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +38 -41
- package/api/resources/api/resources/thera/resources/company/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +12 -5
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +41 -46
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +5 -5
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractorsOnboardCsvUploadContractDocumentType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/WorkSubmitterType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/contractor/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +4 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +9 -2
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +59 -84
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceTypeCsvRecord.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +24 -20
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/document/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.d.ts +9 -2
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +37 -42
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/requests/BulkFileUsIrs1099NecDocumentRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/requests/GetUsIrs1099NecDocumentRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +29 -29
- package/api/resources/api/resources/thera/resources/email/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +9 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +55 -68
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateCalculationType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/WorkingWeekSelectionType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/eor/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +29 -29
- package/api/resources/api/resources/thera/resources/eor/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/misc/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +50 -76
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +4 -7
- package/api/resources/api/resources/thera/resources/payroll/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +23 -18
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +34 -39
- package/api/resources/api/resources/thera/resources/timeoff/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/timeoff/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.d.ts +21 -14
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +124 -182
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetAllContractorsTimeOffHistoryByCompanyRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ContractTypeResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetTimeOffStatusDtoRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffAllowanceType.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffLengthTypeRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/timetracking/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/timetracking/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +77 -112
- package/api/resources/api/resources/thera/resources/tp/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/tp/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +9 -2
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +81 -121
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/TpAccountRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.d.ts +3 -3
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.js +2 -2
- package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -6
- package/api/resources/api/resources/thera/resources/user/resources/index.js +17 -7
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +37 -42
- package/api/resources/api/resources/zeal/resources/company/resources/index.js +17 -7
- package/api/resources/api/resources/zeal/resources/index.js +17 -7
- package/api/resources/db/resources/company/types/AccrualType.d.ts +1 -1
- package/api/resources/db/resources/company/types/AllowanceType.d.ts +1 -1
- package/api/resources/db/resources/company/types/CompanyLegalStructure.d.ts +1 -1
- package/api/resources/db/resources/company/types/CompanyPayFrequency.d.ts +1 -1
- package/api/resources/db/resources/company/types/CompanyStatus.d.ts +1 -1
- package/api/resources/db/resources/company/types/MidYearJoiningAllowanceType.d.ts +1 -1
- package/api/resources/db/resources/company/types/PayCycleType.d.ts +1 -1
- package/api/resources/db/resources/company/types/PaymentMethodStatus.d.ts +1 -1
- package/api/resources/db/resources/company/types/TheraBillingType.d.ts +1 -1
- package/api/resources/db/resources/company/types/TimeOffType.d.ts +1 -1
- package/api/resources/db/resources/company/types/TpCompanyOnboardingStage.d.ts +1 -1
- package/api/resources/db/resources/company/types/W2ImplementationStatus.d.ts +1 -1
- package/api/resources/db/resources/company/types/W2OnboardStatus.d.ts +1 -1
- package/api/resources/db/resources/contract/types/Earning.d.ts +1 -1
- package/api/resources/db/resources/contract/types/EmploymentStatus.d.ts +1 -1
- package/api/resources/db/resources/contract/types/Frequency.d.ts +1 -1
- package/api/resources/db/resources/contract/types/MilestoneStatus.d.ts +1 -1
- package/api/resources/db/resources/contract/types/RecurrenceDetails.d.ts +1 -1
- package/api/resources/db/resources/document/types/DocumentMetadata.d.ts +1 -1
- package/api/resources/db/resources/document/types/DocumentRecipientRole.d.ts +1 -1
- package/api/resources/db/resources/document/types/DocumentType.d.ts +1 -1
- package/api/resources/db/resources/document/types/UsIrs1099NecFormStatus.d.ts +1 -1
- package/api/resources/db/resources/document/types/UsIrsDocumentMetadata.d.ts +1 -1
- package/api/resources/db/resources/generic/types/GenericTypeKey.d.ts +1 -1
- package/api/resources/db/resources/index.js +17 -7
- package/api/resources/db/resources/invoice/types/InvoiceType.d.ts +1 -1
- package/api/resources/db/resources/invoice/types/Status.d.ts +1 -1
- package/api/resources/db/resources/migrations/types/LedgerMigrationType.d.ts +1 -1
- package/api/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +1 -1
- package/api/resources/db/resources/migrations/types/MigrationMetadata.d.ts +1 -1
- package/api/resources/db/resources/migrations/types/MigrationStatus.d.ts +1 -1
- package/api/resources/db/resources/migrations/types/MigrationType.d.ts +1 -1
- package/api/resources/db/resources/paymentMethod/types/PaymentMethodDetails.d.ts +1 -1
- package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
- package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +5 -0
- package/api/resources/db/resources/paymentMethod/types/StripeBankAccountVerificationStatus.d.ts +1 -1
- package/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
- package/api/resources/db/resources/paymentMethod/types/StripeMandateStatus.d.ts +1 -1
- package/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/api/resources/db/resources/user/types/AiPriseVerificationStatus.d.ts +1 -1
- package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
- package/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
- package/api/resources/db/resources/user/types/EmployeeOnboardingStatus.d.ts +1 -1
- package/api/resources/db/resources/user/types/EntityType.d.ts +1 -1
- package/api/resources/db/resources/user/types/KycDocumentType.d.ts +1 -1
- package/api/resources/db/resources/user/types/MfaType.d.ts +1 -1
- package/api/resources/db/resources/user/types/PoweredBy.d.ts +1 -1
- package/api/resources/db/resources/user/types/TimeOffLength.d.ts +1 -1
- package/api/resources/db/resources/user/types/TimeOffStatus.d.ts +1 -1
- package/api/resources/db/resources/user/types/UserType.d.ts +1 -1
- package/api/resources/db/resources/user/types/WithdrawalMethod.d.ts +1 -1
- package/api/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +2 -1
- package/api/resources/db/resources/user/types/WithdrawalMethodAccountType.js +1 -0
- package/api/resources/index.js +17 -7
- package/api/resources/model/resources/index.js +17 -7
- package/api/resources/model/resources/thera/resources/contract/types/ContractDocumentType.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/ContractType.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/DayOfWeek.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/EmploymentType.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/MonthlyPayCycleEnd.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/PayCycleEnd.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/SemiMonthlyPayCycleEnd.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/contract/types/WageType.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/disbursement/types/DisbursementItemType.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/document/types/W9TaxClassificationType.d.ts +1 -1
- package/api/resources/model/resources/thera/resources/index.js +17 -7
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +6 -3
- package/core/fetcher/Fetcher.js +20 -185
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +12 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +68 -0
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +54 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +40 -0
- package/core/fetcher/signals.d.ts +11 -0
- package/core/fetcher/signals.js +36 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +52 -41
- package/core/schemas/Schema.d.ts +15 -9
- package/core/schemas/Schema.js +3 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +53 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +11 -23
- package/core/schemas/builders/lazy/lazyObject.js +2 -12
- package/core/schemas/builders/list/list.js +32 -46
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +121 -114
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +18 -13
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +5 -15
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +49 -62
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +6 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -25
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +7 -17
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +22 -34
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +52 -64
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +4 -14
- package/core/schemas/utils/partition.js +1 -2
- package/dist/Client.d.ts +8 -1
- package/dist/api/resources/api/client/Client.d.ts +6 -9
- package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +8 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +24 -19
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.d.ts +1 -1
- package/dist/api/resources/api/resources/aiprise/resources/index.js +17 -7
- package/dist/api/resources/api/resources/dev/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.d.ts +8 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +24 -21
- package/dist/api/resources/api/resources/dev/resources/dev/client/requests/AddEorEmployeeRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/dev/resources/index.js +17 -7
- package/dist/api/resources/api/resources/index.js +17 -7
- package/dist/api/resources/api/resources/oneschema/resources/index.js +17 -7
- package/dist/api/resources/api/resources/request/resources/index.js +17 -7
- package/dist/api/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/thera/resources/document/types/Irs1099NecFormType.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/thera/resources/document/types/W8BenEEntityType.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/thera/resources/index.js +17 -7
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/ContributionType.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/DeductionType.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementMethod.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementStatus.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/index.js +17 -7
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/deduction/resources/index.js +17 -7
- package/dist/api/resources/api/resources/request/resources/zeal/resources/employee/resources/index.js +17 -7
- package/dist/api/resources/api/resources/request/resources/zeal/resources/index.js +17 -7
- package/dist/api/resources/api/resources/response/resources/index.js +17 -7
- package/dist/api/resources/api/resources/response/resources/thera/resources/index.js +17 -7
- package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +47 -62
- package/dist/api/resources/api/resources/services/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +18 -21
- package/dist/api/resources/api/resources/thera/resources/accounting/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.d.ts +8 -1
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +42 -52
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/requests/ModifyAccountingIntegrationSetting.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingIntegrationsStatusResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +12 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +236 -387
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethod.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodProvider.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/StripeUsBankAccountStatusResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/TransactionStatus.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/UsBankAccountProviderDetails.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionDetails.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionStatus.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +53 -3
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +350 -228
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +3 -1
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.d.ts +13 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.d.ts +16 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/common/resources/common/types/CardDisplayBrand.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/common/resources/common/types/PlaidVerificationStatus.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/common/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +4 -7
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +15 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +151 -231
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.d.ts +2 -2
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractPermission.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractRole.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractorCsvResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractsCsvResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoicePermission.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoiceRole.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgPermission.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamPermission.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/WarrantObjectType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +38 -41
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +12 -5
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +41 -46
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +5 -5
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractorsOnboardCsvUploadContractDocumentType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/WorkSubmitterType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +4 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +9 -2
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +59 -84
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceTypeCsvRecord.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +24 -20
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/document/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.d.ts +9 -2
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +37 -42
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/requests/BulkFileUsIrs1099NecDocumentRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/requests/GetUsIrs1099NecDocumentRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +29 -29
- package/dist/api/resources/api/resources/thera/resources/email/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +9 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +55 -68
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateCalculationType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/WorkingWeekSelectionType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/eor/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +29 -29
- package/dist/api/resources/api/resources/thera/resources/eor/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/misc/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +50 -76
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +4 -7
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +23 -18
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +34 -39
- package/dist/api/resources/api/resources/thera/resources/timeoff/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.d.ts +21 -14
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +124 -182
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetAllContractorsTimeOffHistoryByCompanyRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ContractTypeResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetTimeOffStatusDtoRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffAllowanceType.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffLengthTypeRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/timetracking/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +77 -112
- package/dist/api/resources/api/resources/thera/resources/tp/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/tp/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +9 -2
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +81 -121
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/TpAccountRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.d.ts +3 -3
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -6
- package/dist/api/resources/api/resources/thera/resources/user/resources/index.js +17 -7
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +37 -42
- package/dist/api/resources/api/resources/zeal/resources/company/resources/index.js +17 -7
- package/dist/api/resources/api/resources/zeal/resources/index.js +17 -7
- package/dist/api/resources/db/resources/company/types/AccrualType.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/AllowanceType.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/CompanyLegalStructure.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/CompanyPayFrequency.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/CompanyStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/MidYearJoiningAllowanceType.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/PayCycleType.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/PaymentMethodStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/TheraBillingType.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/TimeOffType.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/TpCompanyOnboardingStage.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/W2ImplementationStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/W2OnboardStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/contract/types/Earning.d.ts +1 -1
- package/dist/api/resources/db/resources/contract/types/EmploymentStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/contract/types/Frequency.d.ts +1 -1
- package/dist/api/resources/db/resources/contract/types/MilestoneStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/contract/types/RecurrenceDetails.d.ts +1 -1
- package/dist/api/resources/db/resources/document/types/DocumentMetadata.d.ts +1 -1
- package/dist/api/resources/db/resources/document/types/DocumentRecipientRole.d.ts +1 -1
- package/dist/api/resources/db/resources/document/types/DocumentType.d.ts +1 -1
- package/dist/api/resources/db/resources/document/types/UsIrs1099NecFormStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/document/types/UsIrsDocumentMetadata.d.ts +1 -1
- package/dist/api/resources/db/resources/generic/types/GenericTypeKey.d.ts +1 -1
- package/dist/api/resources/db/resources/index.js +17 -7
- package/dist/api/resources/db/resources/invoice/types/InvoiceType.d.ts +1 -1
- package/dist/api/resources/db/resources/invoice/types/Status.d.ts +1 -1
- package/dist/api/resources/db/resources/migrations/types/LedgerMigrationType.d.ts +1 -1
- package/dist/api/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/migrations/types/MigrationMetadata.d.ts +1 -1
- package/dist/api/resources/db/resources/migrations/types/MigrationStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/migrations/types/MigrationType.d.ts +1 -1
- package/dist/api/resources/db/resources/paymentMethod/types/PaymentMethodDetails.d.ts +1 -1
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +5 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeBankAccountVerificationStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
- package/dist/api/resources/db/resources/paymentMethod/types/StripeMandateStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/EmployeeOnboardingStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/EntityType.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/KycDocumentType.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/MfaType.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/PoweredBy.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/TimeOffLength.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/TimeOffStatus.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/UserType.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/WithdrawalMethod.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/WithdrawalMethodAccountType.js +1 -0
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/model/resources/index.js +17 -7
- package/dist/api/resources/model/resources/thera/resources/contract/types/ContractDocumentType.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/ContractType.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/DayOfWeek.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/EmploymentType.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/MonthlyPayCycleEnd.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/PayCycleEnd.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/SemiMonthlyPayCycleEnd.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/contract/types/WageType.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/disbursement/types/DisbursementItemType.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/document/types/W9TaxClassificationType.d.ts +1 -1
- package/dist/api/resources/model/resources/thera/resources/index.js +17 -7
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +6 -3
- package/dist/core/fetcher/Fetcher.js +20 -185
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +68 -0
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +54 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +40 -0
- package/dist/core/fetcher/signals.d.ts +11 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +52 -41
- package/dist/core/schemas/Schema.d.ts +15 -9
- package/dist/core/schemas/Schema.js +3 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +53 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +11 -23
- package/dist/core/schemas/builders/lazy/lazyObject.js +2 -12
- package/dist/core/schemas/builders/list/list.js +32 -46
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +121 -114
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +18 -13
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +5 -15
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +49 -62
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +6 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -25
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +7 -17
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +22 -34
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +52 -64
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +4 -14
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/errors/TheraApiError.js +2 -1
- package/dist/errors/TheraApiTimeoutError.d.ts +1 -1
- package/dist/errors/TheraApiTimeoutError.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -8
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseAmlInfo.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseFaceLivenessInfo.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseFaceMatchInfo.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseLookupDetails.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseWarningMessage.js +17 -7
- package/dist/serialization/resources/api/resources/aiprise/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/dev/resources/dev/client/requests/AddEorEmployeeRequest.js +17 -7
- package/dist/serialization/resources/api/resources/dev/resources/dev/types/AddEorEmployment.js +17 -7
- package/dist/serialization/resources/api/resources/dev/resources/dev/types/AddEorUser.js +17 -7
- package/dist/serialization/resources/api/resources/dev/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/oneschema/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentRequest.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/Irs1099NecFormRequest.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/Irs1099NecFormType.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/W8Ben.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/W8BenE.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/W8BenEEntityType.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/AdditionalFields.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Agency.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/ContributionType.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Deduction.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/DeductionType.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployeeContribution.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployerContribution.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Disbursement.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementMethod.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementStatus.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Tax.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/FlatEarning.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/HourlyEarning.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/ReimbursementEarning.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/Shift.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeduction.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeductionDetails.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/Autopilot.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/ZealEmployee.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/response/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/response/resources/thera/resources/disbursement/types/CreateDocumentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/response/resources/thera/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/services/resources/file/client/requests/AttachDocumentToEmploymentRequest.js +17 -7
- package/dist/serialization/resources/api/resources/services/resources/file/client/requests/DeleteDocumentFromEmploymentRequest.js +17 -7
- package/dist/serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/services/resources/file/types/LoadPayInForEorResponse.js +17 -7
- package/dist/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +17 -7
- package/dist/serialization/resources/api/resources/services/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/requests/CompleteAccountingIntegrationAuth.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/requests/ModifyAccountingIntegrationSetting.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingInfo.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingIntegrationsInfoResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingIntegrationsStatusResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingMappingDetailsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/RutterAccountInfoResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/accounting/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateCheckPaymentMethodFromPlaidRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/PlaidUpdateFlowLinkTokenRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AchPaymentMethod.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AcssDebitPaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +46 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CardPaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/DeleteOffPlatformPaymentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/DeleteWithdrawalMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EditWithdrawalMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountVerificationToken.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankTransferCurrenciesByCountryResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetCurrencyConversionResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPaymentMethodsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalLimitsByMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMethodCurrenciesResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerBalancesResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerWithdrawalDeliveryEstimate.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPayment.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InitiateWorkerWithdrawalRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InitiateWorkerWithdrawalRequestDebugSettings.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InitiateWorkerWithdrawalResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InvoicePayment.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/MiscellaneousWorkerCreditTransaction.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/OffPlatformPaymentMethod.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethod.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +19 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodProvider.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PlaidUpdateFlowLinkTokenResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PlaidUsBankAccountProviderDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ReattachStripeAccountMandateRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SepaPaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/StripeUsBankAccountProviderDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/StripeUsBankAccountStatusResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/TransactionStatus.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/UsBankAccountPaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/UsBankAccountProviderDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodCurrency.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerBalance.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerInvoicePaymentTransaction.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransaction.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionStatus.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalPreviewResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransactionBreakdown.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +18 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +18 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.js +47 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.js +47 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +19 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.d.ts +20 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.js +51 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.js +47 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.d.ts +26 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.js +57 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.js +45 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.js +47 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.js +45 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.d.ts +22 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.js +53 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/CardDisplayBrand.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/PlaidVerificationStatus.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/RequestAddress.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddEorEmployeeRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditOrgRolesRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/GetMercoaTokenRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/GetMoniteTokenRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/AddEorEmployeeResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CheckCanCreateAccountResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyAffiliation.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractPermission.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractRole.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditOrgRolesResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyAffiliationsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractorCsvResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractsCsvResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetMercoaTokenResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetMoniteTokenResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorDebugSettings.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoicePermission.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoiceRole.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgManager.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgPermission.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamPermission.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/WarrantObjectType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/ToggleW2PayrollOnboardingFlowCompleteRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CheckCreatePayScheduleRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/SetupW2PayrollRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/UpdateUsContractorsTaxInfoRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractorsOnboardCsvUploadContractDocumentType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetUsContractorsTaxInfoResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/UpdateUsContractorsTaxInfoResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/UsContractorPay.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/UsContractorTaxInfo.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/WorkSubmitterType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateGeneralItemDetail.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDeductionRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/EditInvoiceRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/GetInvoicesCsvResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceTypeCsvRecord.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/client/requests/BulkFileUsIrs1099NecDocumentRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/BulkFileUsIrs1099NecDocumentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/GeneralDocumentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/GetUsIrs1099NecDocumentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecDocumentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecGroupDocumentResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/document/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/email/resources/emailApi/client/requests/UpdateEmailRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendAdminWelcomeEmailRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendInviteEmailRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendLoginEmailRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendVerifyEmailRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/email/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/client/requests/CancelContractTerminationRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/client/requests/DeleteContractInvoiceItemRecurrenceRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CalendarDaysCalculationType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateCalculationType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/GetPayCycleResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/WorkingDaysCalculationType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/WorkingWeekSelectionType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/ContractRenewalCronResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/offcycleApi/types/CheckPayrollResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/bulkModifyTimeOffStatuses.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AccrualLimitExceeded.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AssociateTimeOffPoliciesToContractorRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/BulkModifyTimeOffStatusesRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ContractTypeResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ContractorPolicyDetailsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/CreatePtoForContractorRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetContractorPoliciesDetailsByContractor.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetContractorPoliciesDetailsByPolicy.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetContractorsTimeOffsByCompany.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetTimeOffHistoryByContractorResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetTimeOffStatusDtoRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ModifyTimeOffStatusRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PaidTimeOffDetailsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PaidTimeOffResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PtoDateDetailsRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PtoRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/SuggestedDeductionResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffAllowanceType.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffLengthTypeRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdatePtoRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/bulkUpdateTimeEntries.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/BulkTimeEntryUpdateRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/CreateTimeEntryRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/MonthTimeTracking.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/StartTimeTrackingRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/StopTimeTrackingRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/TimeTrackingEntry.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/TimeTrackingHistory.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/UpdateTimeTrackingRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/WeekTimeTracking.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/YearTimeTracking.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/transactionHistory.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AddCompanyBankingDetailsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/CreateCounterPartyForBankingRequest.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ExternalTransferFund.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.js +18 -8
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/GetIndustryCodesResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/IndustryCodes.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/SubmitCompanyBeneficiariesResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/TpTransactionHistory.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/TransferFundsToOmnibusAccount.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/user/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.js +17 -7
- package/dist/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.js +17 -7
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyRequest.js +17 -7
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +17 -7
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.js +17 -7
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/ZealCompany.js +17 -7
- package/dist/serialization/resources/api/resources/zeal/resources/index.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/AccrualType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/AddCompanyBeneficiary.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/AllowanceType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/BankAccountResponseMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/Company.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyAccountingInformation.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyAccountingSetting.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyAccountingSyncSetting.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyLegalStructure.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyPayFrequency.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CompanyStatus.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/CustomContract.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/DefaultPayCycle.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/EnabledApps.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/Flags.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/LimitedAllowanceType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/MercoaCompanyDetails.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/MidYearJoiningAllowanceType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/PandadocTemplates.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/PayCycleType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/PaymentMethodStatus.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/PayrollRun.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/RequestedToEnableApps.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/SubscriptionPrice.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/SubscriptionPricing.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/Team.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TeamAutoPay.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TheraBillingType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TimeOffPolicy.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TimeOffSettings.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TimeOffTerminationDetails.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TimeOffType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TpAccountInfo.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TpCompanyOnboardingStage.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TpDepositAccount.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/TpDisbursementAccount.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/UnlimitedAllowanceType.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/W2ImplementationStatus.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/W2OnboardStatus.js +17 -7
- package/dist/serialization/resources/db/resources/company/types/W2Payroll.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Contract.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/ContractApiResponse.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/ContractRenewalDetails.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/ContractSetting.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/ContractTerminationDetails.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Deduction.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Earning.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/EmploymentDocuments.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/EmploymentStatus.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/EmploymentW2PayrollDetails.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/EorDetails.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/EorPayslip.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Frequency.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/GenericEmploymentDocument.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Milestone.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/MilestoneDetails.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/MilestoneStatus.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/ModifyRecurrencesRequest.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/ModifyRecurrencesResponse.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/PerPaycheckFrequency.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Recurrence.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/RecurrenceDetails.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/RecurrenceModifications.js +17 -7
- package/dist/serialization/resources/db/resources/contract/types/Reimbursement.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/Document.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/DocumentMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/DocumentRecipient.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/DocumentRecipientRole.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/DocumentType.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/UsIrs1099NecDocumentMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/UsIrs1099NecFormStatus.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/UsIrsDocumentMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/document/types/UsIrsW9DocumentMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/employment/types/Employment.js +17 -7
- package/dist/serialization/resources/db/resources/generic/types/GenericType.js +17 -7
- package/dist/serialization/resources/db/resources/generic/types/GenericTypeKey.js +17 -7
- package/dist/serialization/resources/db/resources/index.js +17 -7
- package/dist/serialization/resources/db/resources/invoice/types/InvoiceDeduction.js +17 -7
- package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.js +17 -7
- package/dist/serialization/resources/db/resources/invoice/types/Status.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationErrorMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationType.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/MigrationLog.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/MigrationMetadata.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/MigrationStatus.js +17 -7
- package/dist/serialization/resources/db/resources/migrations/types/MigrationType.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethodDeletionDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/PaymentMethodDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPaymentMethod.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAcssDebitAccountPaymentMethodDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +47 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeBankAccountVerificationStatus.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeCardPaymentMethodDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +19 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeMandateStatus.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeSepaPaymentMethodDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeUsBankAccountPaymentMethodDetails.js +17 -7
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationStatus.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/AiPriseWarnings.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/BankAddress.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
- package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +19 -7
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocument.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/ComplianceInformation.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformationResponse.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/EmployeeOnboardingStatus.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/EntityDocuments.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/EntityInformation.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/EntityType.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/KycDocument.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/KycDocumentFile.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/KycDocumentType.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/MercoaUserDetails.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/MfaType.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/MfaUserDetails.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/NotificationAlerts.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/PaidTimeOff.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/PaidTimeOffDetails.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/TimeOffHistory.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/TimeOffLength.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/TimeOffStatus.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UnpaidTimeOff.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UsIrs1099NecDocumentIds.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/User.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UserApiResponse.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UserCompanyDocuments.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UserCompanySettings.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UserDocuments.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/UserType.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/WithdrawalMethod.js +17 -7
- package/dist/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.js +27 -8
- package/dist/serialization/resources/db/resources/user/types/WorkerTaxData.js +17 -7
- package/dist/serialization/resources/index.js +17 -7
- package/dist/serialization/resources/model/resources/index.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/BiWeeklyPayCycleEnd.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/ContractDocumentType.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/ContractType.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/DayOfWeek.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/EmploymentType.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/FifteenthAndEndOfMonth.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/ItemRecurrence.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/LastDayOfMonth.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/MonthlyPayCycleEnd.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/PayCycle.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/PayCycleEnd.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/SemiMonthlyPayCycleEnd.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/WageType.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/contract/types/WeeklyPayCycleEnd.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/disbursement/types/DisbursementItemType.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/document/types/UsIrs1099NecDocumentData.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/document/types/W9FormData.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/document/types/W9TaxClassificationType.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/index.js +17 -7
- package/dist/serialization/resources/model/resources/thera/resources/setting/types/VerificationSetting.js +17 -7
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/errors/TheraApiError.js +2 -1
- package/errors/TheraApiTimeoutError.d.ts +1 -1
- package/errors/TheraApiTimeoutError.js +2 -2
- package/index.d.ts +1 -0
- package/index.js +19 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +18 -14
- package/reference.md +11170 -0
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseAmlInfo.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseFaceLivenessInfo.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseFaceMatchInfo.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseLookupDetails.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseWarningMessage.js +17 -7
- package/serialization/resources/api/resources/aiprise/resources/index.js +17 -7
- package/serialization/resources/api/resources/dev/resources/dev/client/requests/AddEorEmployeeRequest.js +17 -7
- package/serialization/resources/api/resources/dev/resources/dev/types/AddEorEmployment.js +17 -7
- package/serialization/resources/api/resources/dev/resources/dev/types/AddEorUser.js +17 -7
- package/serialization/resources/api/resources/dev/resources/index.js +17 -7
- package/serialization/resources/api/resources/index.js +17 -7
- package/serialization/resources/api/resources/oneschema/resources/index.js +17 -7
- package/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.js +17 -7
- package/serialization/resources/api/resources/request/resources/index.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentRequest.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/Irs1099NecFormRequest.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/Irs1099NecFormType.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/W8Ben.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/W8BenE.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/W8BenEEntityType.js +17 -7
- package/serialization/resources/api/resources/request/resources/thera/resources/index.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/AdditionalFields.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Agency.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/ContributionType.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Deduction.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/DeductionType.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployeeContribution.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployerContribution.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Disbursement.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementMethod.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/DisbursementStatus.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Tax.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/index.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/FlatEarning.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/HourlyEarning.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/ReimbursementEarning.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/Shift.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeduction.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeductionDetails.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/index.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/Autopilot.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/ZealEmployee.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/index.js +17 -7
- package/serialization/resources/api/resources/request/resources/zeal/resources/index.js +17 -7
- package/serialization/resources/api/resources/response/resources/index.js +17 -7
- package/serialization/resources/api/resources/response/resources/thera/resources/disbursement/types/CreateDocumentResponse.js +17 -7
- package/serialization/resources/api/resources/response/resources/thera/resources/index.js +17 -7
- package/serialization/resources/api/resources/services/resources/file/client/requests/AttachDocumentToEmploymentRequest.js +17 -7
- package/serialization/resources/api/resources/services/resources/file/client/requests/DeleteDocumentFromEmploymentRequest.js +17 -7
- package/serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js +17 -7
- package/serialization/resources/api/resources/services/resources/file/types/LoadPayInForEorResponse.js +17 -7
- package/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +17 -7
- package/serialization/resources/api/resources/services/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/requests/CompleteAccountingIntegrationAuth.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/requests/ModifyAccountingIntegrationSetting.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingInfo.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingIntegrationsInfoResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingIntegrationsStatusResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/CompanyAccountingMappingDetailsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/accountingApi/types/RutterAccountInfoResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/accounting/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateCheckPaymentMethodFromPlaidRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/PlaidUpdateFlowLinkTokenRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AchPaymentMethod.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AcssDebitPaymentMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +46 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CardPaymentMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/DeleteOffPlatformPaymentResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/DeleteWithdrawalMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EditWithdrawalMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountVerificationToken.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankTransferCurrenciesByCountryResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetCurrencyConversionResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPaymentMethodsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalLimitsByMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMethodCurrenciesResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerBalancesResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerWithdrawalDeliveryEstimate.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPayment.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InitiateWorkerWithdrawalRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InitiateWorkerWithdrawalRequestDebugSettings.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InitiateWorkerWithdrawalResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/InvoicePayment.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/MiscellaneousWorkerCreditTransaction.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/OffPlatformPaymentMethod.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethod.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +19 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodProvider.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PlaidUpdateFlowLinkTokenResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PlaidUsBankAccountProviderDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ReattachStripeAccountMandateRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SepaPaymentMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/StripeUsBankAccountProviderDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/StripeUsBankAccountStatusResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/TransactionStatus.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/UsBankAccountPaymentMethodResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/UsBankAccountProviderDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodCurrency.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerBalance.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerInvoicePaymentTransaction.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransaction.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerTransactionStatus.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalPreviewResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransactionBreakdown.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +18 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +18 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeCustomerDocument.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIdentifyingInformation.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountDestination.js +47 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountRequest.js +47 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateVirtualAccountSource.js +43 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +19 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.d.ts +20 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccount.js +51 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountDestination.js +47 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.d.ts +26 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistory.js +57 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistoryResponse.js +45 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountHistorySource.js +47 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountResponse.js +45 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.d.ts +22 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/VirtualAccountSource.js +53 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +10 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.js +17 -7
- package/serialization/resources/api/resources/thera/resources/common/resources/common/types/CardDisplayBrand.js +17 -7
- package/serialization/resources/api/resources/thera/resources/common/resources/common/types/PlaidVerificationStatus.js +17 -7
- package/serialization/resources/api/resources/thera/resources/common/resources/common/types/RequestAddress.js +17 -7
- package/serialization/resources/api/resources/thera/resources/common/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddEorEmployeeRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditOrgRolesRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/GetMercoaTokenRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/GetMoniteTokenRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/AddEorEmployeeResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CheckCanCreateAccountResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyAffiliation.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractPermission.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractRole.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditOrgRolesResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyAffiliationsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractorCsvResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetContractsCsvResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetMercoaTokenResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetMoniteTokenResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorDebugSettings.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoicePermission.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InvoiceRole.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgManager.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgPermission.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamPermission.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/WarrantObjectType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/ToggleW2PayrollOnboardingFlowCompleteRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CheckCreatePayScheduleRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/SetupW2PayrollRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/UpdateUsContractorsTaxInfoRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractorsOnboardCsvUploadContractDocumentType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetUsContractorsTaxInfoResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/UpdateUsContractorsTaxInfoResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/UsContractorPay.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/UsContractorTaxInfo.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/WorkSubmitterType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateGeneralItemDetail.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDeductionRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/EditInvoiceRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/GetInvoicesCsvResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceTypeCsvRecord.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +17 -7
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/client/requests/BulkFileUsIrs1099NecDocumentRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/BulkFileUsIrs1099NecDocumentResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/GeneralDocumentResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/GetUsIrs1099NecDocumentResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecDocumentResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecFormStatusResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/documentApi/types/UsIrs1099NecGroupDocumentResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/document/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/email/resources/emailApi/client/requests/UpdateEmailRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendAdminWelcomeEmailRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendInviteEmailRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendLoginEmailRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/email/resources/emailApi/types/SendVerifyEmailRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/email/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/client/requests/CancelContractTerminationRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/client/requests/DeleteContractInvoiceItemRecurrenceRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CalendarDaysCalculationType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateCalculationType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/GetPayCycleResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/WorkingDaysCalculationType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/WorkingWeekSelectionType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/employment/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/eor/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/misc/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.js +17 -7
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/ContractRenewalCronResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.js +17 -7
- package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/payroll/resources/offcycleApi/types/CheckPayrollResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/bulkModifyTimeOffStatuses.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AccrualLimitExceeded.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AssociateTimeOffPoliciesToContractorRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/BulkModifyTimeOffStatusesRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ContractTypeResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ContractorPolicyDetailsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/CreatePtoForContractorRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetContractorPoliciesDetailsByContractor.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetContractorPoliciesDetailsByPolicy.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetContractorsTimeOffsByCompany.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetTimeOffHistoryByContractorResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetTimeOffStatusDtoRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/ModifyTimeOffStatusRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PaidTimeOffDetailsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PaidTimeOffResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PtoDateDetailsRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/PtoRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/SuggestedDeductionResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffAllowanceType.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffLengthTypeRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/TimeOffStatusDtoResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdatePtoRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/bulkUpdateTimeEntries.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/BulkTimeEntryUpdateRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/CreateTimeEntryRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/MonthTimeTracking.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/StartTimeTrackingRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/StopTimeTrackingRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/TimeTrackingEntry.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/TimeTrackingHistory.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/UpdateTimeTrackingRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/WeekTimeTracking.js +17 -7
- package/serialization/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/types/YearTimeTracking.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/transactionHistory.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AddCompanyBankingDetailsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/CreateCounterPartyForBankingRequest.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ExternalTransferFund.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/FboType.js +18 -8
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/GetIndustryCodesResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/IndustryCodes.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/SubmitCompanyBeneficiariesResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/TpTransactionHistory.js +17 -7
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/TransferFundsToOmnibusAccount.js +17 -7
- package/serialization/resources/api/resources/thera/resources/user/resources/index.js +17 -7
- package/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/GetUserComplianceSettingsResponse.js +17 -7
- package/serialization/resources/api/resources/thera/resources/user/resources/userApi/types/SetUserComplianceSettingsRequest.js +17 -7
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyRequest.js +17 -7
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +17 -7
- package/serialization/resources/api/resources/zeal/resources/company/resources/index.js +17 -7
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/ZealCompany.js +17 -7
- package/serialization/resources/api/resources/zeal/resources/index.js +17 -7
- package/serialization/resources/db/resources/company/types/AccrualType.js +17 -7
- package/serialization/resources/db/resources/company/types/AddCompanyBeneficiary.js +17 -7
- package/serialization/resources/db/resources/company/types/AllowanceType.js +17 -7
- package/serialization/resources/db/resources/company/types/BankAccountResponseMetadata.js +17 -7
- package/serialization/resources/db/resources/company/types/Company.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyAccountingInformation.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyAccountingSetting.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyAccountingSyncSetting.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyLegalStructure.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyPayFrequency.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanySettings.js +17 -7
- package/serialization/resources/db/resources/company/types/CompanyStatus.js +17 -7
- package/serialization/resources/db/resources/company/types/CustomContract.js +17 -7
- package/serialization/resources/db/resources/company/types/DefaultPayCycle.js +17 -7
- package/serialization/resources/db/resources/company/types/EnabledApps.js +17 -7
- package/serialization/resources/db/resources/company/types/Flags.js +17 -7
- package/serialization/resources/db/resources/company/types/LimitedAllowanceType.js +17 -7
- package/serialization/resources/db/resources/company/types/MercoaCompanyDetails.js +17 -7
- package/serialization/resources/db/resources/company/types/MidYearJoiningAllowanceType.js +17 -7
- package/serialization/resources/db/resources/company/types/PandadocTemplates.js +17 -7
- package/serialization/resources/db/resources/company/types/PayCycleType.js +17 -7
- package/serialization/resources/db/resources/company/types/PaymentMethodStatus.js +17 -7
- package/serialization/resources/db/resources/company/types/PayrollRun.js +17 -7
- package/serialization/resources/db/resources/company/types/RequestedToEnableApps.js +17 -7
- package/serialization/resources/db/resources/company/types/SubscriptionPrice.js +17 -7
- package/serialization/resources/db/resources/company/types/SubscriptionPricing.js +17 -7
- package/serialization/resources/db/resources/company/types/Team.js +17 -7
- package/serialization/resources/db/resources/company/types/TeamAutoPay.js +17 -7
- package/serialization/resources/db/resources/company/types/TheraBillingType.js +17 -7
- package/serialization/resources/db/resources/company/types/TimeOffPolicy.js +17 -7
- package/serialization/resources/db/resources/company/types/TimeOffSettings.js +17 -7
- package/serialization/resources/db/resources/company/types/TimeOffTerminationDetails.js +17 -7
- package/serialization/resources/db/resources/company/types/TimeOffType.js +17 -7
- package/serialization/resources/db/resources/company/types/TpAccountInfo.js +17 -7
- package/serialization/resources/db/resources/company/types/TpCompanyInformation.js +17 -7
- package/serialization/resources/db/resources/company/types/TpCompanyOnboardingStage.js +17 -7
- package/serialization/resources/db/resources/company/types/TpDepositAccount.js +17 -7
- package/serialization/resources/db/resources/company/types/TpDisbursementAccount.js +17 -7
- package/serialization/resources/db/resources/company/types/UnlimitedAllowanceType.js +17 -7
- package/serialization/resources/db/resources/company/types/W2ImplementationStatus.js +17 -7
- package/serialization/resources/db/resources/company/types/W2OnboardStatus.js +17 -7
- package/serialization/resources/db/resources/company/types/W2Payroll.js +17 -7
- package/serialization/resources/db/resources/contract/types/Contract.js +17 -7
- package/serialization/resources/db/resources/contract/types/ContractApiResponse.js +17 -7
- package/serialization/resources/db/resources/contract/types/ContractRenewalDetails.js +17 -7
- package/serialization/resources/db/resources/contract/types/ContractSetting.js +17 -7
- package/serialization/resources/db/resources/contract/types/ContractTerminationDetails.js +17 -7
- package/serialization/resources/db/resources/contract/types/Deduction.js +17 -7
- package/serialization/resources/db/resources/contract/types/Earning.js +17 -7
- package/serialization/resources/db/resources/contract/types/EmploymentDocuments.js +17 -7
- package/serialization/resources/db/resources/contract/types/EmploymentStatus.js +17 -7
- package/serialization/resources/db/resources/contract/types/EmploymentW2PayrollDetails.js +17 -7
- package/serialization/resources/db/resources/contract/types/EorDetails.js +17 -7
- package/serialization/resources/db/resources/contract/types/EorPayslip.js +17 -7
- package/serialization/resources/db/resources/contract/types/Frequency.js +17 -7
- package/serialization/resources/db/resources/contract/types/GenericEmploymentDocument.js +17 -7
- package/serialization/resources/db/resources/contract/types/Milestone.js +17 -7
- package/serialization/resources/db/resources/contract/types/MilestoneDetails.js +17 -7
- package/serialization/resources/db/resources/contract/types/MilestoneStatus.js +17 -7
- package/serialization/resources/db/resources/contract/types/ModifyRecurrencesRequest.js +17 -7
- package/serialization/resources/db/resources/contract/types/ModifyRecurrencesResponse.js +17 -7
- package/serialization/resources/db/resources/contract/types/PerPaycheckFrequency.js +17 -7
- package/serialization/resources/db/resources/contract/types/Recurrence.js +17 -7
- package/serialization/resources/db/resources/contract/types/RecurrenceDetails.js +17 -7
- package/serialization/resources/db/resources/contract/types/RecurrenceModifications.js +17 -7
- package/serialization/resources/db/resources/contract/types/Reimbursement.js +17 -7
- package/serialization/resources/db/resources/document/types/Document.js +17 -7
- package/serialization/resources/db/resources/document/types/DocumentMetadata.js +17 -7
- package/serialization/resources/db/resources/document/types/DocumentRecipient.js +17 -7
- package/serialization/resources/db/resources/document/types/DocumentRecipientRole.js +17 -7
- package/serialization/resources/db/resources/document/types/DocumentType.js +17 -7
- package/serialization/resources/db/resources/document/types/UsIrs1099NecDocumentMetadata.js +17 -7
- package/serialization/resources/db/resources/document/types/UsIrs1099NecFormStatus.js +17 -7
- package/serialization/resources/db/resources/document/types/UsIrsDocumentMetadata.js +17 -7
- package/serialization/resources/db/resources/document/types/UsIrsW9DocumentMetadata.js +17 -7
- package/serialization/resources/db/resources/employment/types/Employment.js +17 -7
- package/serialization/resources/db/resources/generic/types/GenericType.js +17 -7
- package/serialization/resources/db/resources/generic/types/GenericTypeKey.js +17 -7
- package/serialization/resources/db/resources/index.js +17 -7
- package/serialization/resources/db/resources/invoice/types/InvoiceDeduction.js +17 -7
- package/serialization/resources/db/resources/invoice/types/InvoiceType.js +17 -7
- package/serialization/resources/db/resources/invoice/types/Status.js +17 -7
- package/serialization/resources/db/resources/migrations/types/LedgerMigrationErrorMetadata.js +17 -7
- package/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +17 -7
- package/serialization/resources/db/resources/migrations/types/LedgerMigrationType.js +17 -7
- package/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.js +17 -7
- package/serialization/resources/db/resources/migrations/types/MigrationLog.js +17 -7
- package/serialization/resources/db/resources/migrations/types/MigrationMetadata.js +17 -7
- package/serialization/resources/db/resources/migrations/types/MigrationStatus.js +17 -7
- package/serialization/resources/db/resources/migrations/types/MigrationType.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethodDeletionDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/PaymentMethodDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/PlaidPaymentMethod.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeAcssDebitAccountPaymentMethodDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +47 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeBankAccountVerificationStatus.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeCardPaymentMethodDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +19 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeMandateStatus.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeSepaPaymentMethodDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/StripeUsBankAccountPaymentMethodDetails.js +17 -7
- package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +17 -7
- package/serialization/resources/db/resources/user/types/AiPriseVerificationStatus.js +17 -7
- package/serialization/resources/db/resources/user/types/AiPriseWarnings.js +17 -7
- package/serialization/resources/db/resources/user/types/BankAddress.js +17 -7
- package/serialization/resources/db/resources/user/types/BankTransfer.js +17 -7
- package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
- package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +19 -7
- package/serialization/resources/db/resources/user/types/ComplianceDocument.js +17 -7
- package/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +17 -7
- package/serialization/resources/db/resources/user/types/ComplianceInformation.js +17 -7
- package/serialization/resources/db/resources/user/types/EmployeeInformation.js +17 -7
- package/serialization/resources/db/resources/user/types/EmployeeInformationResponse.js +17 -7
- package/serialization/resources/db/resources/user/types/EmployeeOnboardingStatus.js +17 -7
- package/serialization/resources/db/resources/user/types/EntityDocuments.js +17 -7
- package/serialization/resources/db/resources/user/types/EntityInformation.js +17 -7
- package/serialization/resources/db/resources/user/types/EntityType.js +17 -7
- package/serialization/resources/db/resources/user/types/KycDocument.js +17 -7
- package/serialization/resources/db/resources/user/types/KycDocumentFile.js +17 -7
- package/serialization/resources/db/resources/user/types/KycDocumentType.js +17 -7
- package/serialization/resources/db/resources/user/types/MercoaUserDetails.js +17 -7
- package/serialization/resources/db/resources/user/types/MfaType.js +17 -7
- package/serialization/resources/db/resources/user/types/MfaUserDetails.js +17 -7
- package/serialization/resources/db/resources/user/types/NotificationAlerts.js +17 -7
- package/serialization/resources/db/resources/user/types/PaidTimeOff.js +17 -7
- package/serialization/resources/db/resources/user/types/PaidTimeOffDetails.js +17 -7
- package/serialization/resources/db/resources/user/types/PoweredBy.js +17 -7
- package/serialization/resources/db/resources/user/types/TimeOffHistory.js +17 -7
- package/serialization/resources/db/resources/user/types/TimeOffLength.js +17 -7
- package/serialization/resources/db/resources/user/types/TimeOffStatus.js +17 -7
- package/serialization/resources/db/resources/user/types/UnpaidTimeOff.js +17 -7
- package/serialization/resources/db/resources/user/types/UsIrs1099NecDocumentIds.js +17 -7
- package/serialization/resources/db/resources/user/types/User.js +17 -7
- package/serialization/resources/db/resources/user/types/UserApiResponse.js +17 -7
- package/serialization/resources/db/resources/user/types/UserCompanyDocuments.js +17 -7
- package/serialization/resources/db/resources/user/types/UserCompanySettings.js +17 -7
- package/serialization/resources/db/resources/user/types/UserDocuments.js +17 -7
- package/serialization/resources/db/resources/user/types/UserType.js +17 -7
- package/serialization/resources/db/resources/user/types/WithdrawalMethod.js +17 -7
- package/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.js +27 -8
- package/serialization/resources/db/resources/user/types/WorkerTaxData.js +17 -7
- package/serialization/resources/index.js +17 -7
- package/serialization/resources/model/resources/index.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/BiWeeklyPayCycleEnd.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/ContractDocumentType.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/ContractType.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/DayOfWeek.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/EmploymentType.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/FifteenthAndEndOfMonth.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/ItemRecurrence.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/LastDayOfMonth.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/MonthlyPayCycleEnd.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/PayCycle.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/PayCycleEnd.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/SemiMonthlyPayCycleEnd.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/WageType.js +17 -7
- package/serialization/resources/model/resources/thera/resources/contract/types/WeeklyPayCycleEnd.js +17 -7
- package/serialization/resources/model/resources/thera/resources/disbursement/types/DisbursementItemType.js +17 -7
- package/serialization/resources/model/resources/thera/resources/document/types/UsIrs1099NecDocumentData.js +17 -7
- package/serialization/resources/model/resources/thera/resources/document/types/W9FormData.js +17 -7
- package/serialization/resources/model/resources/thera/resources/document/types/W9TaxClassificationType.js +17 -7
- package/serialization/resources/model/resources/thera/resources/index.js +17 -7
- package/serialization/resources/model/resources/thera/resources/setting/types/VerificationSetting.js +17 -7
- package/version.d.ts +1 -0
- package/version.js +4 -0
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -69,24 +79,19 @@ class BankApi {
|
|
|
69
79
|
*/
|
|
70
80
|
getPlaidBankDetails(companyId, requestOptions) {
|
|
71
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a;
|
|
72
83
|
const _response = yield core.fetcher({
|
|
73
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/bank/account`),
|
|
84
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/bank/account`),
|
|
74
85
|
method: "GET",
|
|
75
|
-
headers: {
|
|
76
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
77
|
-
"X-Fern-Language": "JavaScript",
|
|
78
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
79
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
80
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
81
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
82
|
-
},
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
87
|
contentType: "application/json",
|
|
88
|
+
requestType: "json",
|
|
84
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
85
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
86
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
92
|
});
|
|
88
93
|
if (_response.ok) {
|
|
89
|
-
return
|
|
94
|
+
return serializers.api.thera.bank.bankApi.getPlaidBankDetails.Response.parseOrThrow(_response.body, {
|
|
90
95
|
unrecognizedObjectKeys: "passthrough",
|
|
91
96
|
allowUnrecognizedUnionMembers: true,
|
|
92
97
|
allowUnrecognizedEnumValues: true,
|
|
@@ -107,7 +112,7 @@ class BankApi {
|
|
|
107
112
|
body: _response.error.rawBody,
|
|
108
113
|
});
|
|
109
114
|
case "timeout":
|
|
110
|
-
throw new errors.TheraApiTimeoutError();
|
|
115
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/bank/account.");
|
|
111
116
|
case "unknown":
|
|
112
117
|
throw new errors.TheraApiError({
|
|
113
118
|
message: _response.error.errorMessage,
|
|
@@ -128,25 +133,20 @@ class BankApi {
|
|
|
128
133
|
*/
|
|
129
134
|
generatePlaidUpdateFlowLinkToken(request, requestOptions) {
|
|
130
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
var _a;
|
|
131
137
|
const { redirectUri } = request, _body = __rest(request, ["redirectUri"]);
|
|
132
138
|
const _queryParams = {};
|
|
133
139
|
if (redirectUri != null) {
|
|
134
140
|
_queryParams["redirectUri"] = redirectUri;
|
|
135
141
|
}
|
|
136
142
|
const _response = yield core.fetcher({
|
|
137
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/update"),
|
|
143
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/update"),
|
|
138
144
|
method: "POST",
|
|
139
|
-
headers: {
|
|
140
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
141
|
-
"X-Fern-Language": "JavaScript",
|
|
142
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
143
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
144
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
145
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
146
|
-
},
|
|
145
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
146
|
contentType: "application/json",
|
|
148
147
|
queryParameters: _queryParams,
|
|
149
|
-
|
|
148
|
+
requestType: "json",
|
|
149
|
+
body: serializers.api.thera.bank.PlaidUpdateFlowLinkTokenRequest.jsonOrThrow(_body, {
|
|
150
150
|
unrecognizedObjectKeys: "strip",
|
|
151
151
|
}),
|
|
152
152
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -154,7 +154,7 @@ class BankApi {
|
|
|
154
154
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
155
|
});
|
|
156
156
|
if (_response.ok) {
|
|
157
|
-
return
|
|
157
|
+
return serializers.api.thera.bank.PlaidUpdateFlowLinkTokenResponse.parseOrThrow(_response.body, {
|
|
158
158
|
unrecognizedObjectKeys: "passthrough",
|
|
159
159
|
allowUnrecognizedUnionMembers: true,
|
|
160
160
|
allowUnrecognizedEnumValues: true,
|
|
@@ -175,7 +175,7 @@ class BankApi {
|
|
|
175
175
|
body: _response.error.rawBody,
|
|
176
176
|
});
|
|
177
177
|
case "timeout":
|
|
178
|
-
throw new errors.TheraApiTimeoutError();
|
|
178
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/account/update.");
|
|
179
179
|
case "unknown":
|
|
180
180
|
throw new errors.TheraApiError({
|
|
181
181
|
message: _response.error.errorMessage,
|
|
@@ -195,8 +195,9 @@ class BankApi {
|
|
|
195
195
|
* accountHolderName: "string"
|
|
196
196
|
* })
|
|
197
197
|
*/
|
|
198
|
-
generateBankSignup(
|
|
199
|
-
return __awaiter(this,
|
|
198
|
+
generateBankSignup() {
|
|
199
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
200
|
+
var _a;
|
|
200
201
|
const { redirectUri, accountHolderName } = request;
|
|
201
202
|
const _queryParams = {};
|
|
202
203
|
if (redirectUri != null) {
|
|
@@ -206,24 +207,18 @@ class BankApi {
|
|
|
206
207
|
_queryParams["accountHolderName"] = accountHolderName;
|
|
207
208
|
}
|
|
208
209
|
const _response = yield core.fetcher({
|
|
209
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/signup/link"),
|
|
210
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/signup/link"),
|
|
210
211
|
method: "POST",
|
|
211
|
-
headers: {
|
|
212
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
213
|
-
"X-Fern-Language": "JavaScript",
|
|
214
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
215
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
216
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
217
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
218
|
-
},
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
219
213
|
contentType: "application/json",
|
|
220
214
|
queryParameters: _queryParams,
|
|
215
|
+
requestType: "json",
|
|
221
216
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
222
217
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
223
218
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
224
219
|
});
|
|
225
220
|
if (_response.ok) {
|
|
226
|
-
return
|
|
221
|
+
return serializers.api.thera.bank.GetBankAccountSignupKey.parseOrThrow(_response.body, {
|
|
227
222
|
unrecognizedObjectKeys: "passthrough",
|
|
228
223
|
allowUnrecognizedUnionMembers: true,
|
|
229
224
|
allowUnrecognizedEnumValues: true,
|
|
@@ -244,7 +239,7 @@ class BankApi {
|
|
|
244
239
|
body: _response.error.rawBody,
|
|
245
240
|
});
|
|
246
241
|
case "timeout":
|
|
247
|
-
throw new errors.TheraApiTimeoutError();
|
|
242
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/account/signup/link.");
|
|
248
243
|
case "unknown":
|
|
249
244
|
throw new errors.TheraApiError({
|
|
250
245
|
message: _response.error.errorMessage,
|
|
@@ -262,26 +257,21 @@ class BankApi {
|
|
|
262
257
|
* await client.api.thera.bank.bankApi.completeBankSignup({
|
|
263
258
|
* publicKey: "string",
|
|
264
259
|
* companyId: "string",
|
|
265
|
-
* verificationStatus:
|
|
260
|
+
* verificationStatus: "pending_automatic_verification",
|
|
266
261
|
* multiplePaymentMethods: true,
|
|
267
262
|
* accountHolderName: "string"
|
|
268
263
|
* })
|
|
269
264
|
*/
|
|
270
265
|
completeBankSignup(request, requestOptions) {
|
|
271
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
var _a;
|
|
272
268
|
const _response = yield core.fetcher({
|
|
273
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/signup/complete"),
|
|
269
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/signup/complete"),
|
|
274
270
|
method: "POST",
|
|
275
|
-
headers: {
|
|
276
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
277
|
-
"X-Fern-Language": "JavaScript",
|
|
278
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
279
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
280
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
|
-
},
|
|
271
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
283
272
|
contentType: "application/json",
|
|
284
|
-
|
|
273
|
+
requestType: "json",
|
|
274
|
+
body: serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
|
285
275
|
unrecognizedObjectKeys: "strip",
|
|
286
276
|
}),
|
|
287
277
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -304,7 +294,7 @@ class BankApi {
|
|
|
304
294
|
body: _response.error.rawBody,
|
|
305
295
|
});
|
|
306
296
|
case "timeout":
|
|
307
|
-
throw new errors.TheraApiTimeoutError();
|
|
297
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/account/signup/complete.");
|
|
308
298
|
case "unknown":
|
|
309
299
|
throw new errors.TheraApiError({
|
|
310
300
|
message: _response.error.errorMessage,
|
|
@@ -326,19 +316,14 @@ class BankApi {
|
|
|
326
316
|
*/
|
|
327
317
|
reattachStripeMandate(request, requestOptions) {
|
|
328
318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
var _a;
|
|
329
320
|
const _response = yield core.fetcher({
|
|
330
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/stripe/attach"),
|
|
321
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/stripe/attach"),
|
|
331
322
|
method: "POST",
|
|
332
|
-
headers: {
|
|
333
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
334
|
-
"X-Fern-Language": "JavaScript",
|
|
335
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
336
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
337
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
338
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
339
|
-
},
|
|
323
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
340
324
|
contentType: "application/json",
|
|
341
|
-
|
|
325
|
+
requestType: "json",
|
|
326
|
+
body: serializers.api.thera.bank.ReattachStripeAccountMandateRequest.jsonOrThrow(request, {
|
|
342
327
|
unrecognizedObjectKeys: "strip",
|
|
343
328
|
}),
|
|
344
329
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -361,7 +346,7 @@ class BankApi {
|
|
|
361
346
|
body: _response.error.rawBody,
|
|
362
347
|
});
|
|
363
348
|
case "timeout":
|
|
364
|
-
throw new errors.TheraApiTimeoutError();
|
|
349
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/stripe/attach.");
|
|
365
350
|
case "unknown":
|
|
366
351
|
throw new errors.TheraApiError({
|
|
367
352
|
message: _response.error.errorMessage,
|
|
@@ -380,24 +365,19 @@ class BankApi {
|
|
|
380
365
|
*/
|
|
381
366
|
getPaymentMethods(companyId, requestOptions) {
|
|
382
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
var _a;
|
|
383
369
|
const _response = yield core.fetcher({
|
|
384
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/payment-methods`),
|
|
370
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payment-methods`),
|
|
385
371
|
method: "GET",
|
|
386
|
-
headers: {
|
|
387
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
388
|
-
"X-Fern-Language": "JavaScript",
|
|
389
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
390
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
391
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
392
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
393
|
-
},
|
|
372
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
394
373
|
contentType: "application/json",
|
|
374
|
+
requestType: "json",
|
|
395
375
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
396
376
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
397
377
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
398
378
|
});
|
|
399
379
|
if (_response.ok) {
|
|
400
|
-
return
|
|
380
|
+
return serializers.api.thera.bank.GetPaymentMethodsResponse.parseOrThrow(_response.body, {
|
|
401
381
|
unrecognizedObjectKeys: "passthrough",
|
|
402
382
|
allowUnrecognizedUnionMembers: true,
|
|
403
383
|
allowUnrecognizedEnumValues: true,
|
|
@@ -418,7 +398,7 @@ class BankApi {
|
|
|
418
398
|
body: _response.error.rawBody,
|
|
419
399
|
});
|
|
420
400
|
case "timeout":
|
|
421
|
-
throw new errors.TheraApiTimeoutError();
|
|
401
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/payment-methods.");
|
|
422
402
|
case "unknown":
|
|
423
403
|
throw new errors.TheraApiError({
|
|
424
404
|
message: _response.error.errorMessage,
|
|
@@ -438,18 +418,13 @@ class BankApi {
|
|
|
438
418
|
*/
|
|
439
419
|
deletePaymentMethod(companyId, paymentMethodId, requestOptions) {
|
|
440
420
|
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
var _a;
|
|
441
422
|
const _response = yield core.fetcher({
|
|
442
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/payment-methods/${encodeURIComponent(paymentMethodId)}`),
|
|
423
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payment-methods/${encodeURIComponent(paymentMethodId)}`),
|
|
443
424
|
method: "DELETE",
|
|
444
|
-
headers: {
|
|
445
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
446
|
-
"X-Fern-Language": "JavaScript",
|
|
447
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
448
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
449
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
450
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
451
|
-
},
|
|
425
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
452
426
|
contentType: "application/json",
|
|
427
|
+
requestType: "json",
|
|
453
428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
454
429
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
455
430
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -470,7 +445,7 @@ class BankApi {
|
|
|
470
445
|
body: _response.error.rawBody,
|
|
471
446
|
});
|
|
472
447
|
case "timeout":
|
|
473
|
-
throw new errors.TheraApiTimeoutError();
|
|
448
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling DELETE /companies/{companyId}/payment-methods/{paymentMethodId}.");
|
|
474
449
|
case "unknown":
|
|
475
450
|
throw new errors.TheraApiError({
|
|
476
451
|
message: _response.error.errorMessage,
|
|
@@ -490,18 +465,13 @@ class BankApi {
|
|
|
490
465
|
*/
|
|
491
466
|
chooseW2PaymentMethod(companyId, paymentMethodId, requestOptions) {
|
|
492
467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
+
var _a;
|
|
493
469
|
const _response = yield core.fetcher({
|
|
494
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/payment-methods/${encodeURIComponent(paymentMethodId)}/select-for-w2`),
|
|
470
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payment-methods/${encodeURIComponent(paymentMethodId)}/select-for-w2`),
|
|
495
471
|
method: "POST",
|
|
496
|
-
headers: {
|
|
497
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
498
|
-
"X-Fern-Language": "JavaScript",
|
|
499
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
500
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
501
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
502
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
503
|
-
},
|
|
472
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
504
473
|
contentType: "application/json",
|
|
474
|
+
requestType: "json",
|
|
505
475
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
506
476
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
507
477
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -522,7 +492,7 @@ class BankApi {
|
|
|
522
492
|
body: _response.error.rawBody,
|
|
523
493
|
});
|
|
524
494
|
case "timeout":
|
|
525
|
-
throw new errors.TheraApiTimeoutError();
|
|
495
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/payment-methods/{paymentMethodId}/select-for-w2.");
|
|
526
496
|
case "unknown":
|
|
527
497
|
throw new errors.TheraApiError({
|
|
528
498
|
message: _response.error.errorMessage,
|
|
@@ -545,25 +515,20 @@ class BankApi {
|
|
|
545
515
|
*/
|
|
546
516
|
verifyBankSignup(request, requestOptions) {
|
|
547
517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
+
var _a;
|
|
548
519
|
const { redirectUri } = request, _body = __rest(request, ["redirectUri"]);
|
|
549
520
|
const _queryParams = {};
|
|
550
521
|
if (redirectUri != null) {
|
|
551
522
|
_queryParams["redirectUri"] = redirectUri;
|
|
552
523
|
}
|
|
553
524
|
const _response = yield core.fetcher({
|
|
554
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/signup/verify"),
|
|
525
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/signup/verify"),
|
|
555
526
|
method: "POST",
|
|
556
|
-
headers: {
|
|
557
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
558
|
-
"X-Fern-Language": "JavaScript",
|
|
559
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
560
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
561
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
562
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
563
|
-
},
|
|
527
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
564
528
|
contentType: "application/json",
|
|
565
529
|
queryParameters: _queryParams,
|
|
566
|
-
|
|
530
|
+
requestType: "json",
|
|
531
|
+
body: serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(_body, {
|
|
567
532
|
unrecognizedObjectKeys: "strip",
|
|
568
533
|
}),
|
|
569
534
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -571,7 +536,7 @@ class BankApi {
|
|
|
571
536
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
572
537
|
});
|
|
573
538
|
if (_response.ok) {
|
|
574
|
-
return
|
|
539
|
+
return serializers.api.thera.bank.GetBankAccountVerificationToken.parseOrThrow(_response.body, {
|
|
575
540
|
unrecognizedObjectKeys: "passthrough",
|
|
576
541
|
allowUnrecognizedUnionMembers: true,
|
|
577
542
|
allowUnrecognizedEnumValues: true,
|
|
@@ -592,7 +557,7 @@ class BankApi {
|
|
|
592
557
|
body: _response.error.rawBody,
|
|
593
558
|
});
|
|
594
559
|
case "timeout":
|
|
595
|
-
throw new errors.TheraApiTimeoutError();
|
|
560
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/account/signup/verify.");
|
|
596
561
|
case "unknown":
|
|
597
562
|
throw new errors.TheraApiError({
|
|
598
563
|
message: _response.error.errorMessage,
|
|
@@ -619,19 +584,14 @@ class BankApi {
|
|
|
619
584
|
*/
|
|
620
585
|
setAutoPayForTeams(companyId, request, requestOptions) {
|
|
621
586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
587
|
+
var _a;
|
|
622
588
|
const _response = yield core.fetcher({
|
|
623
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `company/${encodeURIComponent(companyId)}/autopay`),
|
|
589
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/autopay`),
|
|
624
590
|
method: "POST",
|
|
625
|
-
headers: {
|
|
626
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
627
|
-
"X-Fern-Language": "JavaScript",
|
|
628
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
629
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
630
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
631
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
632
|
-
},
|
|
591
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
633
592
|
contentType: "application/json",
|
|
634
|
-
|
|
593
|
+
requestType: "json",
|
|
594
|
+
body: serializers.api.thera.bank.SetBulkAutoPayForTeamsRequest.jsonOrThrow(request, {
|
|
635
595
|
unrecognizedObjectKeys: "strip",
|
|
636
596
|
}),
|
|
637
597
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -654,7 +614,7 @@ class BankApi {
|
|
|
654
614
|
body: _response.error.rawBody,
|
|
655
615
|
});
|
|
656
616
|
case "timeout":
|
|
657
|
-
throw new errors.TheraApiTimeoutError();
|
|
617
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /company/{companyId}/autopay.");
|
|
658
618
|
case "unknown":
|
|
659
619
|
throw new errors.TheraApiError({
|
|
660
620
|
message: _response.error.errorMessage,
|
|
@@ -678,19 +638,14 @@ class BankApi {
|
|
|
678
638
|
*/
|
|
679
639
|
setAutoPay(companyId, teamId, request, requestOptions) {
|
|
680
640
|
return __awaiter(this, void 0, void 0, function* () {
|
|
641
|
+
var _a;
|
|
681
642
|
const _response = yield core.fetcher({
|
|
682
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `company/${encodeURIComponent(companyId)}/teams/${encodeURIComponent(teamId)}/autopay`),
|
|
643
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/teams/${encodeURIComponent(teamId)}/autopay`),
|
|
683
644
|
method: "POST",
|
|
684
|
-
headers: {
|
|
685
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
686
|
-
"X-Fern-Language": "JavaScript",
|
|
687
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
688
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
689
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
690
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
691
|
-
},
|
|
645
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
692
646
|
contentType: "application/json",
|
|
693
|
-
|
|
647
|
+
requestType: "json",
|
|
648
|
+
body: serializers.api.thera.bank.SetAutoPayRequest.jsonOrThrow(request, {
|
|
694
649
|
unrecognizedObjectKeys: "strip",
|
|
695
650
|
}),
|
|
696
651
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -713,7 +668,7 @@ class BankApi {
|
|
|
713
668
|
body: _response.error.rawBody,
|
|
714
669
|
});
|
|
715
670
|
case "timeout":
|
|
716
|
-
throw new errors.TheraApiTimeoutError();
|
|
671
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /company/{companyId}/teams/{teamId}/autopay.");
|
|
717
672
|
case "unknown":
|
|
718
673
|
throw new errors.TheraApiError({
|
|
719
674
|
message: _response.error.errorMessage,
|
|
@@ -729,35 +684,32 @@ class BankApi {
|
|
|
729
684
|
*
|
|
730
685
|
* @example
|
|
731
686
|
* await client.api.thera.bank.bankApi.getWithdrawalMethodCurrencies({
|
|
732
|
-
* accountType:
|
|
687
|
+
* accountType: "BANK_TRANSFER",
|
|
733
688
|
* country: "string"
|
|
734
689
|
* })
|
|
735
690
|
*/
|
|
736
691
|
getWithdrawalMethodCurrencies(request, requestOptions) {
|
|
737
692
|
return __awaiter(this, void 0, void 0, function* () {
|
|
693
|
+
var _a;
|
|
738
694
|
const { accountType, country } = request;
|
|
739
695
|
const _queryParams = {};
|
|
740
|
-
_queryParams["accountType"] = accountType
|
|
696
|
+
_queryParams["accountType"] = serializers.db.WithdrawalMethodAccountType.jsonOrThrow(accountType, {
|
|
697
|
+
unrecognizedObjectKeys: "strip",
|
|
698
|
+
});
|
|
741
699
|
_queryParams["country"] = country;
|
|
742
700
|
const _response = yield core.fetcher({
|
|
743
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "worker/supported-withdrawal-method-currencies"),
|
|
701
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/supported-withdrawal-method-currencies"),
|
|
744
702
|
method: "GET",
|
|
745
|
-
headers: {
|
|
746
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
747
|
-
"X-Fern-Language": "JavaScript",
|
|
748
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
749
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
750
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
751
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
752
|
-
},
|
|
703
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
753
704
|
contentType: "application/json",
|
|
754
705
|
queryParameters: _queryParams,
|
|
706
|
+
requestType: "json",
|
|
755
707
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
756
708
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
757
709
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
758
710
|
});
|
|
759
711
|
if (_response.ok) {
|
|
760
|
-
return
|
|
712
|
+
return serializers.api.thera.bank.GetWithdrawalMethodCurrenciesResponse.parseOrThrow(_response.body, {
|
|
761
713
|
unrecognizedObjectKeys: "passthrough",
|
|
762
714
|
allowUnrecognizedUnionMembers: true,
|
|
763
715
|
allowUnrecognizedEnumValues: true,
|
|
@@ -778,7 +730,7 @@ class BankApi {
|
|
|
778
730
|
body: _response.error.rawBody,
|
|
779
731
|
});
|
|
780
732
|
case "timeout":
|
|
781
|
-
throw new errors.TheraApiTimeoutError();
|
|
733
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /worker/supported-withdrawal-method-currencies.");
|
|
782
734
|
case "unknown":
|
|
783
735
|
throw new errors.TheraApiError({
|
|
784
736
|
message: _response.error.errorMessage,
|
|
@@ -796,24 +748,19 @@ class BankApi {
|
|
|
796
748
|
*/
|
|
797
749
|
getBankTransferCurrenciesByCountry(requestOptions) {
|
|
798
750
|
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
+
var _a;
|
|
799
752
|
const _response = yield core.fetcher({
|
|
800
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "worker/supported-bank-transfer-currencies"),
|
|
753
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/supported-bank-transfer-currencies"),
|
|
801
754
|
method: "GET",
|
|
802
|
-
headers: {
|
|
803
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
804
|
-
"X-Fern-Language": "JavaScript",
|
|
805
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
806
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
807
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
808
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
809
|
-
},
|
|
755
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
810
756
|
contentType: "application/json",
|
|
757
|
+
requestType: "json",
|
|
811
758
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
812
759
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
813
760
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
814
761
|
});
|
|
815
762
|
if (_response.ok) {
|
|
816
|
-
return
|
|
763
|
+
return serializers.api.thera.bank.GetBankTransferCurrenciesByCountryResponse.parseOrThrow(_response.body, {
|
|
817
764
|
unrecognizedObjectKeys: "passthrough",
|
|
818
765
|
allowUnrecognizedUnionMembers: true,
|
|
819
766
|
allowUnrecognizedEnumValues: true,
|
|
@@ -834,7 +781,7 @@ class BankApi {
|
|
|
834
781
|
body: _response.error.rawBody,
|
|
835
782
|
});
|
|
836
783
|
case "timeout":
|
|
837
|
-
throw new errors.TheraApiTimeoutError();
|
|
784
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /worker/supported-bank-transfer-currencies.");
|
|
838
785
|
case "unknown":
|
|
839
786
|
throw new errors.TheraApiError({
|
|
840
787
|
message: _response.error.errorMessage,
|
|
@@ -859,29 +806,24 @@ class BankApi {
|
|
|
859
806
|
*/
|
|
860
807
|
getWithdrawalLimitsByMethod(userId, paymentMethodId, request, requestOptions) {
|
|
861
808
|
return __awaiter(this, void 0, void 0, function* () {
|
|
809
|
+
var _a;
|
|
862
810
|
const { currency, companyId } = request;
|
|
863
811
|
const _queryParams = {};
|
|
864
812
|
_queryParams["currency"] = currency;
|
|
865
813
|
_queryParams["companyId"] = companyId;
|
|
866
814
|
const _response = yield core.fetcher({
|
|
867
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-limits`),
|
|
815
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-limits`),
|
|
868
816
|
method: "GET",
|
|
869
|
-
headers: {
|
|
870
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
871
|
-
"X-Fern-Language": "JavaScript",
|
|
872
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
873
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
874
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
875
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
876
|
-
},
|
|
817
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
877
818
|
contentType: "application/json",
|
|
878
819
|
queryParameters: _queryParams,
|
|
820
|
+
requestType: "json",
|
|
879
821
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
880
822
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
881
823
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
882
824
|
});
|
|
883
825
|
if (_response.ok) {
|
|
884
|
-
return
|
|
826
|
+
return serializers.api.thera.bank.GetWithdrawalLimitsByMethodResponse.parseOrThrow(_response.body, {
|
|
885
827
|
unrecognizedObjectKeys: "passthrough",
|
|
886
828
|
allowUnrecognizedUnionMembers: true,
|
|
887
829
|
allowUnrecognizedEnumValues: true,
|
|
@@ -902,7 +844,7 @@ class BankApi {
|
|
|
902
844
|
body: _response.error.rawBody,
|
|
903
845
|
});
|
|
904
846
|
case "timeout":
|
|
905
|
-
throw new errors.TheraApiTimeoutError();
|
|
847
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /workers/{userId}/withdrawal-methods/{paymentMethodId}/withdrawal-limits.");
|
|
906
848
|
case "unknown":
|
|
907
849
|
throw new errors.TheraApiError({
|
|
908
850
|
message: _response.error.errorMessage,
|
|
@@ -924,28 +866,23 @@ class BankApi {
|
|
|
924
866
|
*/
|
|
925
867
|
getWithdrawalMinimumByCurrency(request, requestOptions) {
|
|
926
868
|
return __awaiter(this, void 0, void 0, function* () {
|
|
869
|
+
var _a;
|
|
927
870
|
const { currency } = request;
|
|
928
871
|
const _queryParams = {};
|
|
929
872
|
_queryParams["currency"] = currency;
|
|
930
873
|
const _response = yield core.fetcher({
|
|
931
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "worker/withdrawal-minimum-by-currency"),
|
|
874
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/withdrawal-minimum-by-currency"),
|
|
932
875
|
method: "GET",
|
|
933
|
-
headers: {
|
|
934
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
935
|
-
"X-Fern-Language": "JavaScript",
|
|
936
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
937
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
938
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
939
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
940
|
-
},
|
|
876
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
941
877
|
contentType: "application/json",
|
|
942
878
|
queryParameters: _queryParams,
|
|
879
|
+
requestType: "json",
|
|
943
880
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
944
881
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
945
882
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
946
883
|
});
|
|
947
884
|
if (_response.ok) {
|
|
948
|
-
return
|
|
885
|
+
return serializers.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse.parseOrThrow(_response.body, {
|
|
949
886
|
unrecognizedObjectKeys: "passthrough",
|
|
950
887
|
allowUnrecognizedUnionMembers: true,
|
|
951
888
|
allowUnrecognizedEnumValues: true,
|
|
@@ -966,7 +903,7 @@ class BankApi {
|
|
|
966
903
|
body: _response.error.rawBody,
|
|
967
904
|
});
|
|
968
905
|
case "timeout":
|
|
969
|
-
throw new errors.TheraApiTimeoutError();
|
|
906
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /worker/withdrawal-minimum-by-currency.");
|
|
970
907
|
case "unknown":
|
|
971
908
|
throw new errors.TheraApiError({
|
|
972
909
|
message: _response.error.errorMessage,
|
|
@@ -991,29 +928,24 @@ class BankApi {
|
|
|
991
928
|
*/
|
|
992
929
|
getWithdrawalMinimumByMethod(userId, paymentMethodId, request, requestOptions) {
|
|
993
930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
931
|
+
var _a;
|
|
994
932
|
const { currency, companyId } = request;
|
|
995
933
|
const _queryParams = {};
|
|
996
934
|
_queryParams["currency"] = currency;
|
|
997
935
|
_queryParams["companyId"] = companyId;
|
|
998
936
|
const _response = yield core.fetcher({
|
|
999
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-minimum`),
|
|
937
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-minimum`),
|
|
1000
938
|
method: "GET",
|
|
1001
|
-
headers: {
|
|
1002
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1003
|
-
"X-Fern-Language": "JavaScript",
|
|
1004
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1005
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1006
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1007
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1008
|
-
},
|
|
939
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1009
940
|
contentType: "application/json",
|
|
1010
941
|
queryParameters: _queryParams,
|
|
942
|
+
requestType: "json",
|
|
1011
943
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1012
944
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1013
945
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1014
946
|
});
|
|
1015
947
|
if (_response.ok) {
|
|
1016
|
-
return
|
|
948
|
+
return serializers.api.thera.bank.GetWithdrawalMinimumByMethodResponse.parseOrThrow(_response.body, {
|
|
1017
949
|
unrecognizedObjectKeys: "passthrough",
|
|
1018
950
|
allowUnrecognizedUnionMembers: true,
|
|
1019
951
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1034,7 +966,7 @@ class BankApi {
|
|
|
1034
966
|
body: _response.error.rawBody,
|
|
1035
967
|
});
|
|
1036
968
|
case "timeout":
|
|
1037
|
-
throw new errors.TheraApiTimeoutError();
|
|
969
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /workers/{userId}/withdrawal-methods/{paymentMethodId}/withdrawal-minimum.");
|
|
1038
970
|
case "unknown":
|
|
1039
971
|
throw new errors.TheraApiError({
|
|
1040
972
|
message: _response.error.errorMessage,
|
|
@@ -1050,7 +982,7 @@ class BankApi {
|
|
|
1050
982
|
*
|
|
1051
983
|
* @example
|
|
1052
984
|
* await client.api.thera.bank.bankApi.getSupportedWithdrawalMethods({
|
|
1053
|
-
* accountType:
|
|
985
|
+
* accountType: "BANK_TRANSFER",
|
|
1054
986
|
* currency: "string",
|
|
1055
987
|
* recipientAddress: {
|
|
1056
988
|
* city: "string",
|
|
@@ -1073,19 +1005,14 @@ class BankApi {
|
|
|
1073
1005
|
*/
|
|
1074
1006
|
getSupportedWithdrawalMethods(request, requestOptions) {
|
|
1075
1007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
+
var _a;
|
|
1076
1009
|
const _response = yield core.fetcher({
|
|
1077
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "worker/supported-withdrawal-methods"),
|
|
1010
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/supported-withdrawal-methods"),
|
|
1078
1011
|
method: "POST",
|
|
1079
|
-
headers: {
|
|
1080
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1081
|
-
"X-Fern-Language": "JavaScript",
|
|
1082
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1083
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1084
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1085
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1086
|
-
},
|
|
1012
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1087
1013
|
contentType: "application/json",
|
|
1088
|
-
|
|
1014
|
+
requestType: "json",
|
|
1015
|
+
body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
1089
1016
|
unrecognizedObjectKeys: "strip",
|
|
1090
1017
|
}),
|
|
1091
1018
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1093,7 +1020,7 @@ class BankApi {
|
|
|
1093
1020
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1094
1021
|
});
|
|
1095
1022
|
if (_response.ok) {
|
|
1096
|
-
return
|
|
1023
|
+
return serializers.api.thera.bank.bankApi.getSupportedWithdrawalMethods.Response.parseOrThrow(_response.body, {
|
|
1097
1024
|
unrecognizedObjectKeys: "passthrough",
|
|
1098
1025
|
allowUnrecognizedUnionMembers: true,
|
|
1099
1026
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1114,7 +1041,7 @@ class BankApi {
|
|
|
1114
1041
|
body: _response.error.rawBody,
|
|
1115
1042
|
});
|
|
1116
1043
|
case "timeout":
|
|
1117
|
-
throw new errors.TheraApiTimeoutError();
|
|
1044
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /worker/supported-withdrawal-methods.");
|
|
1118
1045
|
case "unknown":
|
|
1119
1046
|
throw new errors.TheraApiError({
|
|
1120
1047
|
message: _response.error.errorMessage,
|
|
@@ -1131,7 +1058,7 @@ class BankApi {
|
|
|
1131
1058
|
*
|
|
1132
1059
|
* @example
|
|
1133
1060
|
* await client.api.thera.bank.bankApi.saveWithdrawalMethod("string", {
|
|
1134
|
-
* accountType:
|
|
1061
|
+
* accountType: "BANK_TRANSFER",
|
|
1135
1062
|
* currency: "string",
|
|
1136
1063
|
* recipientAddress: {
|
|
1137
1064
|
* city: "string",
|
|
@@ -1154,19 +1081,14 @@ class BankApi {
|
|
|
1154
1081
|
*/
|
|
1155
1082
|
saveWithdrawalMethod(userId, request, requestOptions) {
|
|
1156
1083
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1084
|
+
var _a;
|
|
1157
1085
|
const _response = yield core.fetcher({
|
|
1158
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `worker/${encodeURIComponent(userId)}/withdrawal-method`),
|
|
1086
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `worker/${encodeURIComponent(userId)}/withdrawal-method`),
|
|
1159
1087
|
method: "POST",
|
|
1160
|
-
headers: {
|
|
1161
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1162
|
-
"X-Fern-Language": "JavaScript",
|
|
1163
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1164
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1165
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1166
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1167
|
-
},
|
|
1088
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1168
1089
|
contentType: "application/json",
|
|
1169
|
-
|
|
1090
|
+
requestType: "json",
|
|
1091
|
+
body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
1170
1092
|
unrecognizedObjectKeys: "strip",
|
|
1171
1093
|
}),
|
|
1172
1094
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1174,7 +1096,7 @@ class BankApi {
|
|
|
1174
1096
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1175
1097
|
});
|
|
1176
1098
|
if (_response.ok) {
|
|
1177
|
-
return
|
|
1099
|
+
return serializers.api.thera.bank.SaveWithdrawalMethodResponse.parseOrThrow(_response.body, {
|
|
1178
1100
|
unrecognizedObjectKeys: "passthrough",
|
|
1179
1101
|
allowUnrecognizedUnionMembers: true,
|
|
1180
1102
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1195,7 +1117,7 @@ class BankApi {
|
|
|
1195
1117
|
body: _response.error.rawBody,
|
|
1196
1118
|
});
|
|
1197
1119
|
case "timeout":
|
|
1198
|
-
throw new errors.TheraApiTimeoutError();
|
|
1120
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /worker/{userId}/withdrawal-method.");
|
|
1199
1121
|
case "unknown":
|
|
1200
1122
|
throw new errors.TheraApiError({
|
|
1201
1123
|
message: _response.error.errorMessage,
|
|
@@ -1213,24 +1135,19 @@ class BankApi {
|
|
|
1213
1135
|
*/
|
|
1214
1136
|
deleteWithdrawalMethod(userId, withdrawalMethodId, requestOptions) {
|
|
1215
1137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1138
|
+
var _a;
|
|
1216
1139
|
const _response = yield core.fetcher({
|
|
1217
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1140
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1218
1141
|
method: "DELETE",
|
|
1219
|
-
headers: {
|
|
1220
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1221
|
-
"X-Fern-Language": "JavaScript",
|
|
1222
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1223
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1224
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1225
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1226
|
-
},
|
|
1142
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1227
1143
|
contentType: "application/json",
|
|
1144
|
+
requestType: "json",
|
|
1228
1145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1229
1146
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1230
1147
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1231
1148
|
});
|
|
1232
1149
|
if (_response.ok) {
|
|
1233
|
-
return
|
|
1150
|
+
return serializers.api.thera.bank.DeleteWithdrawalMethodResponse.parseOrThrow(_response.body, {
|
|
1234
1151
|
unrecognizedObjectKeys: "passthrough",
|
|
1235
1152
|
allowUnrecognizedUnionMembers: true,
|
|
1236
1153
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1251,7 +1168,7 @@ class BankApi {
|
|
|
1251
1168
|
body: _response.error.rawBody,
|
|
1252
1169
|
});
|
|
1253
1170
|
case "timeout":
|
|
1254
|
-
throw new errors.TheraApiTimeoutError();
|
|
1171
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling DELETE /worker/{userId}/withdrawal-method/{withdrawalMethodId}.");
|
|
1255
1172
|
case "unknown":
|
|
1256
1173
|
throw new errors.TheraApiError({
|
|
1257
1174
|
message: _response.error.errorMessage,
|
|
@@ -1272,19 +1189,14 @@ class BankApi {
|
|
|
1272
1189
|
*/
|
|
1273
1190
|
editWithdrawalMethod(userId, withdrawalMethodId, request, requestOptions) {
|
|
1274
1191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
+
var _a;
|
|
1275
1193
|
const _response = yield core.fetcher({
|
|
1276
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1194
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1277
1195
|
method: "PATCH",
|
|
1278
|
-
headers: {
|
|
1279
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1280
|
-
"X-Fern-Language": "JavaScript",
|
|
1281
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1282
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1283
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1284
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1285
|
-
},
|
|
1196
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1286
1197
|
contentType: "application/json",
|
|
1287
|
-
|
|
1198
|
+
requestType: "json",
|
|
1199
|
+
body: serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
|
1288
1200
|
unrecognizedObjectKeys: "strip",
|
|
1289
1201
|
}),
|
|
1290
1202
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1292,7 +1204,7 @@ class BankApi {
|
|
|
1292
1204
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1293
1205
|
});
|
|
1294
1206
|
if (_response.ok) {
|
|
1295
|
-
return
|
|
1207
|
+
return serializers.api.thera.bank.EditWithdrawalMethodResponse.parseOrThrow(_response.body, {
|
|
1296
1208
|
unrecognizedObjectKeys: "passthrough",
|
|
1297
1209
|
allowUnrecognizedUnionMembers: true,
|
|
1298
1210
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1313,7 +1225,7 @@ class BankApi {
|
|
|
1313
1225
|
body: _response.error.rawBody,
|
|
1314
1226
|
});
|
|
1315
1227
|
case "timeout":
|
|
1316
|
-
throw new errors.TheraApiTimeoutError();
|
|
1228
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PATCH /worker/{userId}/withdrawal-method/{withdrawalMethodId}.");
|
|
1317
1229
|
case "unknown":
|
|
1318
1230
|
throw new errors.TheraApiError({
|
|
1319
1231
|
message: _response.error.errorMessage,
|
|
@@ -1339,19 +1251,14 @@ class BankApi {
|
|
|
1339
1251
|
*/
|
|
1340
1252
|
getWorkerWithdrawalPreview(userId, companyId, request, requestOptions) {
|
|
1341
1253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
+
var _a;
|
|
1342
1255
|
const _response = yield core.fetcher({
|
|
1343
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/payout-preview`),
|
|
1256
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/payout-preview`),
|
|
1344
1257
|
method: "POST",
|
|
1345
|
-
headers: {
|
|
1346
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1347
|
-
"X-Fern-Language": "JavaScript",
|
|
1348
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1349
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1350
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1351
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1352
|
-
},
|
|
1258
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1353
1259
|
contentType: "application/json",
|
|
1354
|
-
|
|
1260
|
+
requestType: "json",
|
|
1261
|
+
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
1355
1262
|
unrecognizedObjectKeys: "strip",
|
|
1356
1263
|
}),
|
|
1357
1264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1359,7 +1266,7 @@ class BankApi {
|
|
|
1359
1266
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1360
1267
|
});
|
|
1361
1268
|
if (_response.ok) {
|
|
1362
|
-
return
|
|
1269
|
+
return serializers.api.thera.bank.WorkerWithdrawalPreviewResponse.parseOrThrow(_response.body, {
|
|
1363
1270
|
unrecognizedObjectKeys: "passthrough",
|
|
1364
1271
|
allowUnrecognizedUnionMembers: true,
|
|
1365
1272
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1380,7 +1287,7 @@ class BankApi {
|
|
|
1380
1287
|
body: _response.error.rawBody,
|
|
1381
1288
|
});
|
|
1382
1289
|
case "timeout":
|
|
1383
|
-
throw new errors.TheraApiTimeoutError();
|
|
1290
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/workers/{userId}/payout-preview.");
|
|
1384
1291
|
case "unknown":
|
|
1385
1292
|
throw new errors.TheraApiError({
|
|
1386
1293
|
message: _response.error.errorMessage,
|
|
@@ -1406,19 +1313,14 @@ class BankApi {
|
|
|
1406
1313
|
*/
|
|
1407
1314
|
initiateWorkerWithdrawal(userId, companyId, request, requestOptions) {
|
|
1408
1315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1316
|
+
var _a;
|
|
1409
1317
|
const _response = yield core.fetcher({
|
|
1410
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/payout`),
|
|
1318
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/payout`),
|
|
1411
1319
|
method: "POST",
|
|
1412
|
-
headers: {
|
|
1413
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1414
|
-
"X-Fern-Language": "JavaScript",
|
|
1415
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1416
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1417
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1418
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1419
|
-
},
|
|
1320
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1420
1321
|
contentType: "application/json",
|
|
1421
|
-
|
|
1322
|
+
requestType: "json",
|
|
1323
|
+
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
1422
1324
|
unrecognizedObjectKeys: "strip",
|
|
1423
1325
|
}),
|
|
1424
1326
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1426,7 +1328,7 @@ class BankApi {
|
|
|
1426
1328
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1427
1329
|
});
|
|
1428
1330
|
if (_response.ok) {
|
|
1429
|
-
return
|
|
1331
|
+
return serializers.api.thera.bank.InitiateWorkerWithdrawalResponse.parseOrThrow(_response.body, {
|
|
1430
1332
|
unrecognizedObjectKeys: "passthrough",
|
|
1431
1333
|
allowUnrecognizedUnionMembers: true,
|
|
1432
1334
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1447,7 +1349,7 @@ class BankApi {
|
|
|
1447
1349
|
body: _response.error.rawBody,
|
|
1448
1350
|
});
|
|
1449
1351
|
case "timeout":
|
|
1450
|
-
throw new errors.TheraApiTimeoutError();
|
|
1352
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/workers/{userId}/payout.");
|
|
1451
1353
|
case "unknown":
|
|
1452
1354
|
throw new errors.TheraApiError({
|
|
1453
1355
|
message: _response.error.errorMessage,
|
|
@@ -1465,24 +1367,19 @@ class BankApi {
|
|
|
1465
1367
|
*/
|
|
1466
1368
|
getWorkerBalance(userId, companyId, requestOptions) {
|
|
1467
1369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1370
|
+
var _a;
|
|
1468
1371
|
const _response = yield core.fetcher({
|
|
1469
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/balances`),
|
|
1372
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/balances`),
|
|
1470
1373
|
method: "GET",
|
|
1471
|
-
headers: {
|
|
1472
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1473
|
-
"X-Fern-Language": "JavaScript",
|
|
1474
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1475
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1476
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1477
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1478
|
-
},
|
|
1374
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1479
1375
|
contentType: "application/json",
|
|
1376
|
+
requestType: "json",
|
|
1480
1377
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1481
1378
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1482
1379
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1483
1380
|
});
|
|
1484
1381
|
if (_response.ok) {
|
|
1485
|
-
return
|
|
1382
|
+
return serializers.api.thera.bank.GetWorkerBalancesResponse.parseOrThrow(_response.body, {
|
|
1486
1383
|
unrecognizedObjectKeys: "passthrough",
|
|
1487
1384
|
allowUnrecognizedUnionMembers: true,
|
|
1488
1385
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1503,7 +1400,7 @@ class BankApi {
|
|
|
1503
1400
|
body: _response.error.rawBody,
|
|
1504
1401
|
});
|
|
1505
1402
|
case "timeout":
|
|
1506
|
-
throw new errors.TheraApiTimeoutError();
|
|
1403
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/balances.");
|
|
1507
1404
|
case "unknown":
|
|
1508
1405
|
throw new errors.TheraApiError({
|
|
1509
1406
|
message: _response.error.errorMessage,
|
|
@@ -1521,24 +1418,19 @@ class BankApi {
|
|
|
1521
1418
|
*/
|
|
1522
1419
|
getWorkerTransactions(userId, companyId, requestOptions) {
|
|
1523
1420
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1421
|
+
var _a;
|
|
1524
1422
|
const _response = yield core.fetcher({
|
|
1525
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/transactions`),
|
|
1423
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/transactions`),
|
|
1526
1424
|
method: "GET",
|
|
1527
|
-
headers: {
|
|
1528
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1529
|
-
"X-Fern-Language": "JavaScript",
|
|
1530
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1531
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1532
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1533
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1534
|
-
},
|
|
1425
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1535
1426
|
contentType: "application/json",
|
|
1427
|
+
requestType: "json",
|
|
1536
1428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1537
1429
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1538
1430
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1539
1431
|
});
|
|
1540
1432
|
if (_response.ok) {
|
|
1541
|
-
return
|
|
1433
|
+
return serializers.api.thera.bank.GetWorkerTransactionsResponse.parseOrThrow(_response.body, {
|
|
1542
1434
|
unrecognizedObjectKeys: "passthrough",
|
|
1543
1435
|
allowUnrecognizedUnionMembers: true,
|
|
1544
1436
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1559,7 +1451,7 @@ class BankApi {
|
|
|
1559
1451
|
body: _response.error.rawBody,
|
|
1560
1452
|
});
|
|
1561
1453
|
case "timeout":
|
|
1562
|
-
throw new errors.TheraApiTimeoutError();
|
|
1454
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/transactions.");
|
|
1563
1455
|
case "unknown":
|
|
1564
1456
|
throw new errors.TheraApiError({
|
|
1565
1457
|
message: _response.error.errorMessage,
|
|
@@ -1576,24 +1468,19 @@ class BankApi {
|
|
|
1576
1468
|
*/
|
|
1577
1469
|
getWorkerWithdrawalDeliveryEstimate(withdrawalId, requestOptions) {
|
|
1578
1470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
var _a;
|
|
1579
1472
|
const _response = yield core.fetcher({
|
|
1580
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `workers/withdrawals/delivery-estimate/${encodeURIComponent(withdrawalId)}`),
|
|
1473
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `workers/withdrawals/delivery-estimate/${encodeURIComponent(withdrawalId)}`),
|
|
1581
1474
|
method: "GET",
|
|
1582
|
-
headers: {
|
|
1583
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1584
|
-
"X-Fern-Language": "JavaScript",
|
|
1585
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1586
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1587
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1588
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1589
|
-
},
|
|
1475
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1590
1476
|
contentType: "application/json",
|
|
1477
|
+
requestType: "json",
|
|
1591
1478
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1592
1479
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1593
1480
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1594
1481
|
});
|
|
1595
1482
|
if (_response.ok) {
|
|
1596
|
-
return
|
|
1483
|
+
return serializers.api.thera.bank.GetWorkerWithdrawalDeliveryEstimate.parseOrThrow(_response.body, {
|
|
1597
1484
|
unrecognizedObjectKeys: "passthrough",
|
|
1598
1485
|
allowUnrecognizedUnionMembers: true,
|
|
1599
1486
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1614,7 +1501,7 @@ class BankApi {
|
|
|
1614
1501
|
body: _response.error.rawBody,
|
|
1615
1502
|
});
|
|
1616
1503
|
case "timeout":
|
|
1617
|
-
throw new errors.TheraApiTimeoutError();
|
|
1504
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /workers/withdrawals/delivery-estimate/{withdrawalId}.");
|
|
1618
1505
|
case "unknown":
|
|
1619
1506
|
throw new errors.TheraApiError({
|
|
1620
1507
|
message: _response.error.errorMessage,
|
|
@@ -1629,39 +1516,36 @@ class BankApi {
|
|
|
1629
1516
|
*
|
|
1630
1517
|
* @example
|
|
1631
1518
|
* await client.api.thera.bank.bankApi.getPayInHistory("string", {
|
|
1632
|
-
* status:
|
|
1519
|
+
* status: "PENDING",
|
|
1633
1520
|
* offPlatformOnly: true
|
|
1634
1521
|
* })
|
|
1635
1522
|
*/
|
|
1636
|
-
getPayInHistory(
|
|
1637
|
-
return __awaiter(this,
|
|
1523
|
+
getPayInHistory(companyId_1) {
|
|
1524
|
+
return __awaiter(this, arguments, void 0, function* (companyId, request = {}, requestOptions) {
|
|
1525
|
+
var _a;
|
|
1638
1526
|
const { status, offPlatformOnly } = request;
|
|
1639
1527
|
const _queryParams = {};
|
|
1640
1528
|
if (status != null) {
|
|
1641
|
-
_queryParams["status"] = status
|
|
1529
|
+
_queryParams["status"] = serializers.api.thera.bank.TransactionStatus.jsonOrThrow(status, {
|
|
1530
|
+
unrecognizedObjectKeys: "strip",
|
|
1531
|
+
});
|
|
1642
1532
|
}
|
|
1643
1533
|
if (offPlatformOnly != null) {
|
|
1644
1534
|
_queryParams["offPlatformOnly"] = offPlatformOnly.toString();
|
|
1645
1535
|
}
|
|
1646
1536
|
const _response = yield core.fetcher({
|
|
1647
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/pay-ins`),
|
|
1537
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins`),
|
|
1648
1538
|
method: "GET",
|
|
1649
|
-
headers: {
|
|
1650
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1651
|
-
"X-Fern-Language": "JavaScript",
|
|
1652
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1653
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1654
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1655
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1656
|
-
},
|
|
1539
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1657
1540
|
contentType: "application/json",
|
|
1658
1541
|
queryParameters: _queryParams,
|
|
1542
|
+
requestType: "json",
|
|
1659
1543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1660
1544
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1661
1545
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1662
1546
|
});
|
|
1663
1547
|
if (_response.ok) {
|
|
1664
|
-
return
|
|
1548
|
+
return serializers.api.thera.bank.GetPayInHistoryResponse.parseOrThrow(_response.body, {
|
|
1665
1549
|
unrecognizedObjectKeys: "passthrough",
|
|
1666
1550
|
allowUnrecognizedUnionMembers: true,
|
|
1667
1551
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1682,7 +1566,7 @@ class BankApi {
|
|
|
1682
1566
|
body: _response.error.rawBody,
|
|
1683
1567
|
});
|
|
1684
1568
|
case "timeout":
|
|
1685
|
-
throw new errors.TheraApiTimeoutError();
|
|
1569
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/pay-ins.");
|
|
1686
1570
|
case "unknown":
|
|
1687
1571
|
throw new errors.TheraApiError({
|
|
1688
1572
|
message: _response.error.errorMessage,
|
|
@@ -1700,24 +1584,19 @@ class BankApi {
|
|
|
1700
1584
|
*/
|
|
1701
1585
|
getPayInDetails(companyId, payInId, requestOptions) {
|
|
1702
1586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1587
|
+
var _a;
|
|
1703
1588
|
const _response = yield core.fetcher({
|
|
1704
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/pay-ins/${encodeURIComponent(payInId)}`),
|
|
1589
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins/${encodeURIComponent(payInId)}`),
|
|
1705
1590
|
method: "GET",
|
|
1706
|
-
headers: {
|
|
1707
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1708
|
-
"X-Fern-Language": "JavaScript",
|
|
1709
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1710
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1711
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1712
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1713
|
-
},
|
|
1591
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1714
1592
|
contentType: "application/json",
|
|
1593
|
+
requestType: "json",
|
|
1715
1594
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1716
1595
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1717
1596
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1718
1597
|
});
|
|
1719
1598
|
if (_response.ok) {
|
|
1720
|
-
return
|
|
1599
|
+
return serializers.api.thera.bank.GetPayInDetailsResponse.parseOrThrow(_response.body, {
|
|
1721
1600
|
unrecognizedObjectKeys: "passthrough",
|
|
1722
1601
|
allowUnrecognizedUnionMembers: true,
|
|
1723
1602
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1738,7 +1617,7 @@ class BankApi {
|
|
|
1738
1617
|
body: _response.error.rawBody,
|
|
1739
1618
|
});
|
|
1740
1619
|
case "timeout":
|
|
1741
|
-
throw new errors.TheraApiTimeoutError();
|
|
1620
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/pay-ins/{payInId}.");
|
|
1742
1621
|
case "unknown":
|
|
1743
1622
|
throw new errors.TheraApiError({
|
|
1744
1623
|
message: _response.error.errorMessage,
|
|
@@ -1760,24 +1639,19 @@ class BankApi {
|
|
|
1760
1639
|
*/
|
|
1761
1640
|
deleteOffPlatformPayment(companyId, payInId, requestOptions) {
|
|
1762
1641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1642
|
+
var _a;
|
|
1763
1643
|
const _response = yield core.fetcher({
|
|
1764
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/pay-ins/off-platform/${encodeURIComponent(payInId)}`),
|
|
1644
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins/off-platform/${encodeURIComponent(payInId)}`),
|
|
1765
1645
|
method: "DELETE",
|
|
1766
|
-
headers: {
|
|
1767
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1768
|
-
"X-Fern-Language": "JavaScript",
|
|
1769
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1770
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1771
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1772
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1773
|
-
},
|
|
1646
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1774
1647
|
contentType: "application/json",
|
|
1648
|
+
requestType: "json",
|
|
1775
1649
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1776
1650
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1777
1651
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1778
1652
|
});
|
|
1779
1653
|
if (_response.ok) {
|
|
1780
|
-
return
|
|
1654
|
+
return serializers.api.thera.bank.DeleteOffPlatformPaymentResponse.parseOrThrow(_response.body, {
|
|
1781
1655
|
unrecognizedObjectKeys: "passthrough",
|
|
1782
1656
|
allowUnrecognizedUnionMembers: true,
|
|
1783
1657
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1798,7 +1672,7 @@ class BankApi {
|
|
|
1798
1672
|
body: _response.error.rawBody,
|
|
1799
1673
|
});
|
|
1800
1674
|
case "timeout":
|
|
1801
|
-
throw new errors.TheraApiTimeoutError();
|
|
1675
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling DELETE /companies/{companyId}/pay-ins/off-platform/{payInId}.");
|
|
1802
1676
|
case "unknown":
|
|
1803
1677
|
throw new errors.TheraApiError({
|
|
1804
1678
|
message: _response.error.errorMessage,
|
|
@@ -1819,30 +1693,25 @@ class BankApi {
|
|
|
1819
1693
|
*/
|
|
1820
1694
|
getCurrencyConversion(request, requestOptions) {
|
|
1821
1695
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1696
|
+
var _a;
|
|
1822
1697
|
const { from: from_, to, amount } = request;
|
|
1823
1698
|
const _queryParams = {};
|
|
1824
1699
|
_queryParams["from"] = from_;
|
|
1825
1700
|
_queryParams["to"] = to;
|
|
1826
1701
|
_queryParams["amount"] = amount.toString();
|
|
1827
1702
|
const _response = yield core.fetcher({
|
|
1828
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "currency/convert"),
|
|
1703
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "currency/convert"),
|
|
1829
1704
|
method: "GET",
|
|
1830
|
-
headers: {
|
|
1831
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1832
|
-
"X-Fern-Language": "JavaScript",
|
|
1833
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1834
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1835
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1836
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1837
|
-
},
|
|
1705
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1838
1706
|
contentType: "application/json",
|
|
1839
1707
|
queryParameters: _queryParams,
|
|
1708
|
+
requestType: "json",
|
|
1840
1709
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1841
1710
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1842
1711
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1843
1712
|
});
|
|
1844
1713
|
if (_response.ok) {
|
|
1845
|
-
return
|
|
1714
|
+
return serializers.api.thera.bank.GetCurrencyConversionResponse.parseOrThrow(_response.body, {
|
|
1846
1715
|
unrecognizedObjectKeys: "passthrough",
|
|
1847
1716
|
allowUnrecognizedUnionMembers: true,
|
|
1848
1717
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1863,7 +1732,7 @@ class BankApi {
|
|
|
1863
1732
|
body: _response.error.rawBody,
|
|
1864
1733
|
});
|
|
1865
1734
|
case "timeout":
|
|
1866
|
-
throw new errors.TheraApiTimeoutError();
|
|
1735
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /currency/convert.");
|
|
1867
1736
|
case "unknown":
|
|
1868
1737
|
throw new errors.TheraApiError({
|
|
1869
1738
|
message: _response.error.errorMessage,
|
|
@@ -1884,19 +1753,14 @@ class BankApi {
|
|
|
1884
1753
|
*/
|
|
1885
1754
|
setAutoWithdrawals(userId, companyId, request, requestOptions) {
|
|
1886
1755
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1756
|
+
var _a;
|
|
1887
1757
|
const _response = yield core.fetcher({
|
|
1888
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/auto-withdrawals`),
|
|
1758
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/auto-withdrawals`),
|
|
1889
1759
|
method: "POST",
|
|
1890
|
-
headers: {
|
|
1891
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1892
|
-
"X-Fern-Language": "JavaScript",
|
|
1893
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1894
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1895
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1896
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1897
|
-
},
|
|
1760
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1898
1761
|
contentType: "application/json",
|
|
1899
|
-
|
|
1762
|
+
requestType: "json",
|
|
1763
|
+
body: serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
|
1900
1764
|
unrecognizedObjectKeys: "strip",
|
|
1901
1765
|
}),
|
|
1902
1766
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1904,7 +1768,7 @@ class BankApi {
|
|
|
1904
1768
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1905
1769
|
});
|
|
1906
1770
|
if (_response.ok) {
|
|
1907
|
-
return
|
|
1771
|
+
return serializers.api.thera.bank.SetAutoWithdrawalResponse.parseOrThrow(_response.body, {
|
|
1908
1772
|
unrecognizedObjectKeys: "passthrough",
|
|
1909
1773
|
allowUnrecognizedUnionMembers: true,
|
|
1910
1774
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1925,7 +1789,7 @@ class BankApi {
|
|
|
1925
1789
|
body: _response.error.rawBody,
|
|
1926
1790
|
});
|
|
1927
1791
|
case "timeout":
|
|
1928
|
-
throw new errors.TheraApiTimeoutError();
|
|
1792
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/workers/{userId}/auto-withdrawals.");
|
|
1929
1793
|
case "unknown":
|
|
1930
1794
|
throw new errors.TheraApiError({
|
|
1931
1795
|
message: _response.error.errorMessage,
|
|
@@ -1944,19 +1808,14 @@ class BankApi {
|
|
|
1944
1808
|
*/
|
|
1945
1809
|
createCheckPaymentMethodFromPlaid(request, requestOptions) {
|
|
1946
1810
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1811
|
+
var _a;
|
|
1947
1812
|
const _response = yield core.fetcher({
|
|
1948
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/check/payment-method"),
|
|
1813
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/check/payment-method"),
|
|
1949
1814
|
method: "POST",
|
|
1950
|
-
headers: {
|
|
1951
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
1952
|
-
"X-Fern-Language": "JavaScript",
|
|
1953
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1954
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
1955
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1956
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1957
|
-
},
|
|
1815
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1958
1816
|
contentType: "application/json",
|
|
1959
|
-
|
|
1817
|
+
requestType: "json",
|
|
1818
|
+
body: serializers.api.thera.bank.CreateCheckPaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
|
1960
1819
|
unrecognizedObjectKeys: "strip",
|
|
1961
1820
|
}),
|
|
1962
1821
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1979,7 +1838,7 @@ class BankApi {
|
|
|
1979
1838
|
body: _response.error.rawBody,
|
|
1980
1839
|
});
|
|
1981
1840
|
case "timeout":
|
|
1982
|
-
throw new errors.TheraApiTimeoutError();
|
|
1841
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/check/payment-method.");
|
|
1983
1842
|
case "unknown":
|
|
1984
1843
|
throw new errors.TheraApiError({
|
|
1985
1844
|
message: _response.error.errorMessage,
|
|
@@ -1999,19 +1858,14 @@ class BankApi {
|
|
|
1999
1858
|
*/
|
|
2000
1859
|
createStripePaymentMethodFromPlaid(request, requestOptions) {
|
|
2001
1860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1861
|
+
var _a;
|
|
2002
1862
|
const _response = yield core.fetcher({
|
|
2003
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/stripe/payment-method"),
|
|
1863
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/stripe/payment-method"),
|
|
2004
1864
|
method: "POST",
|
|
2005
|
-
headers: {
|
|
2006
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
2007
|
-
"X-Fern-Language": "JavaScript",
|
|
2008
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
2009
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
2010
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
2011
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
2012
|
-
},
|
|
1865
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2013
1866
|
contentType: "application/json",
|
|
2014
|
-
|
|
1867
|
+
requestType: "json",
|
|
1868
|
+
body: serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
|
2015
1869
|
unrecognizedObjectKeys: "strip",
|
|
2016
1870
|
}),
|
|
2017
1871
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2034,7 +1888,7 @@ class BankApi {
|
|
|
2034
1888
|
body: _response.error.rawBody,
|
|
2035
1889
|
});
|
|
2036
1890
|
case "timeout":
|
|
2037
|
-
throw new errors.TheraApiTimeoutError();
|
|
1891
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bank/stripe/payment-method.");
|
|
2038
1892
|
case "unknown":
|
|
2039
1893
|
throw new errors.TheraApiError({
|
|
2040
1894
|
message: _response.error.errorMessage,
|
|
@@ -2058,19 +1912,14 @@ class BankApi {
|
|
|
2058
1912
|
*/
|
|
2059
1913
|
setAutoApproveInvoiceForTeams(companyId, request, requestOptions) {
|
|
2060
1914
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1915
|
+
var _a;
|
|
2061
1916
|
const _response = yield core.fetcher({
|
|
2062
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `company/${encodeURIComponent(companyId)}/auto-approve-settings`),
|
|
1917
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/auto-approve-settings`),
|
|
2063
1918
|
method: "POST",
|
|
2064
|
-
headers: {
|
|
2065
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
2066
|
-
"X-Fern-Language": "JavaScript",
|
|
2067
|
-
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
2068
|
-
"X-Fern-SDK-Version": "0.0.1-prerelease2813-staging",
|
|
2069
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
2070
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
2071
|
-
},
|
|
1919
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2854-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2854-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2072
1920
|
contentType: "application/json",
|
|
2073
|
-
|
|
1921
|
+
requestType: "json",
|
|
1922
|
+
body: serializers.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest.jsonOrThrow(request, {
|
|
2074
1923
|
unrecognizedObjectKeys: "strip",
|
|
2075
1924
|
}),
|
|
2076
1925
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2093,7 +1942,7 @@ class BankApi {
|
|
|
2093
1942
|
body: _response.error.rawBody,
|
|
2094
1943
|
});
|
|
2095
1944
|
case "timeout":
|
|
2096
|
-
throw new errors.TheraApiTimeoutError();
|
|
1945
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /company/{companyId}/auto-approve-settings.");
|
|
2097
1946
|
case "unknown":
|
|
2098
1947
|
throw new errors.TheraApiError({
|
|
2099
1948
|
message: _response.error.errorMessage,
|