@thera-hr/api-sdk 0.0.1-prerelease3182-dev-3 → 0.0.1-prerelease3182-production
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/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +7 -7
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +44 -44
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +26 -24
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +21 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +97 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/payroll/client/Client.js +11 -6
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.d.ts +158 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +662 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +32 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +14 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +10 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/index.js +4 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.d.ts +57 -2
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +118 -16
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.d.ts +14 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +2 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +13 -12
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +5 -0
- package/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +5 -0
- package/api/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +8 -0
- package/api/resources/db/resources/company/types/CompanyHolidaysResponse.js +5 -0
- package/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +5 -0
- package/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +5 -0
- package/api/resources/db/resources/company/types/Holiday.d.ts +15 -0
- package/api/resources/db/resources/company/types/Holiday.js +5 -0
- package/api/resources/db/resources/company/types/HolidayDate.d.ts +9 -0
- package/api/resources/db/resources/company/types/HolidayDate.js +5 -0
- package/api/resources/db/resources/company/types/HolidaySettings.d.ts +8 -0
- package/api/resources/db/resources/company/types/HolidaySettings.js +5 -0
- package/api/resources/db/resources/company/types/HolidayType.d.ts +8 -0
- package/api/resources/db/resources/company/types/HolidayType.js +10 -0
- package/api/resources/db/resources/company/types/TimeOffPolicy.d.ts +1 -0
- package/api/resources/db/resources/company/types/TimeOffType.d.ts +2 -1
- package/api/resources/db/resources/company/types/TimeOffType.js +1 -0
- package/api/resources/db/resources/company/types/UserHolidaysResponse.d.ts +11 -0
- package/api/resources/db/resources/company/types/UserHolidaysResponse.js +5 -0
- package/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
- package/api/resources/db/resources/company/types/index.d.ts +8 -0
- package/api/resources/db/resources/company/types/index.js +8 -0
- package/api/resources/db/resources/expense/index.d.ts +1 -0
- package/api/resources/db/resources/expense/index.js +17 -0
- package/api/resources/db/resources/expense/types/Expense.d.ts +24 -0
- package/api/resources/db/resources/expense/types/Expense.js +5 -0
- package/api/resources/db/resources/expense/types/ExpenseStatus.d.ts +13 -0
- package/api/resources/db/resources/expense/types/ExpenseStatus.js +15 -0
- package/api/resources/db/resources/expense/types/ExpenseType.d.ts +7 -0
- package/api/resources/db/resources/expense/types/ExpenseType.js +9 -0
- package/api/resources/db/resources/expense/types/index.d.ts +3 -0
- package/api/resources/db/resources/expense/types/index.js +19 -0
- package/api/resources/db/resources/index.d.ts +2 -0
- package/api/resources/db/resources/index.js +3 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +7 -7
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +44 -44
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +26 -24
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +21 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +97 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +11 -6
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.d.ts +158 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +662 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +32 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +14 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +10 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +4 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.d.ts +57 -2
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +118 -16
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.d.ts +14 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +2 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +13 -12
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +5 -0
- package/dist/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +5 -0
- package/dist/api/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +8 -0
- package/dist/api/resources/db/resources/company/types/CompanyHolidaysResponse.js +5 -0
- package/dist/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +5 -0
- package/dist/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +5 -0
- package/dist/api/resources/db/resources/company/types/Holiday.d.ts +15 -0
- package/dist/api/resources/db/resources/company/types/Holiday.js +5 -0
- package/dist/api/resources/db/resources/company/types/HolidayDate.d.ts +9 -0
- package/dist/api/resources/db/resources/company/types/HolidayDate.js +5 -0
- package/dist/api/resources/db/resources/company/types/HolidaySettings.d.ts +8 -0
- package/dist/api/resources/db/resources/company/types/HolidaySettings.js +5 -0
- package/dist/api/resources/db/resources/company/types/HolidayType.d.ts +8 -0
- package/dist/api/resources/db/resources/company/types/HolidayType.js +10 -0
- package/dist/api/resources/db/resources/company/types/TimeOffPolicy.d.ts +1 -0
- package/dist/api/resources/db/resources/company/types/TimeOffType.d.ts +2 -1
- package/dist/api/resources/db/resources/company/types/TimeOffType.js +1 -0
- package/dist/api/resources/db/resources/company/types/UserHolidaysResponse.d.ts +11 -0
- package/dist/api/resources/db/resources/company/types/UserHolidaysResponse.js +5 -0
- package/dist/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/index.d.ts +8 -0
- package/dist/api/resources/db/resources/company/types/index.js +8 -0
- package/dist/api/resources/db/resources/expense/index.d.ts +1 -0
- package/dist/api/resources/db/resources/expense/index.js +17 -0
- package/dist/api/resources/db/resources/expense/types/Expense.d.ts +24 -0
- package/dist/api/resources/db/resources/expense/types/Expense.js +5 -0
- package/dist/api/resources/db/resources/expense/types/ExpenseStatus.d.ts +13 -0
- package/dist/api/resources/db/resources/expense/types/ExpenseStatus.js +15 -0
- package/dist/api/resources/db/resources/expense/types/ExpenseType.d.ts +7 -0
- package/dist/api/resources/db/resources/expense/types/ExpenseType.js +9 -0
- package/dist/api/resources/db/resources/expense/types/index.d.ts +3 -0
- package/dist/api/resources/db/resources/expense/types/index.js +19 -0
- package/dist/api/resources/db/resources/index.d.ts +2 -0
- package/dist/api/resources/db/resources/index.js +3 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.js +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +5 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +44 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +21 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +52 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +9 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +50 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +41 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +4 -1
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +47 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
- package/dist/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +41 -0
- package/dist/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +14 -0
- package/dist/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.js +45 -0
- package/dist/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +11 -0
- package/dist/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +41 -0
- package/dist/serialization/resources/db/resources/company/types/Holiday.d.ts +21 -0
- package/dist/serialization/resources/db/resources/company/types/Holiday.js +52 -0
- package/dist/serialization/resources/db/resources/company/types/HolidayDate.d.ts +15 -0
- package/dist/serialization/resources/db/resources/company/types/HolidayDate.js +46 -0
- package/dist/serialization/resources/db/resources/company/types/HolidaySettings.d.ts +14 -0
- package/dist/serialization/resources/db/resources/company/types/HolidaySettings.js +45 -0
- package/dist/serialization/resources/db/resources/company/types/HolidayType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/company/types/HolidayType.js +41 -0
- package/dist/serialization/resources/db/resources/company/types/TimeOffPolicy.d.ts +2 -0
- package/dist/serialization/resources/db/resources/company/types/TimeOffPolicy.js +2 -0
- package/dist/serialization/resources/db/resources/company/types/TimeOffType.d.ts +1 -1
- package/dist/serialization/resources/db/resources/company/types/TimeOffType.js +1 -1
- package/dist/serialization/resources/db/resources/company/types/UserHolidaysResponse.d.ts +17 -0
- package/dist/serialization/resources/db/resources/company/types/UserHolidaysResponse.js +48 -0
- package/dist/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
- package/dist/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +8 -0
- package/dist/serialization/resources/db/resources/company/types/index.js +8 -0
- package/dist/serialization/resources/db/resources/expense/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/expense/index.js +17 -0
- package/dist/serialization/resources/db/resources/expense/types/Expense.d.ts +28 -0
- package/dist/serialization/resources/db/resources/expense/types/Expense.js +59 -0
- package/dist/serialization/resources/db/resources/expense/types/ExpenseStatus.d.ts +10 -0
- package/dist/serialization/resources/db/resources/expense/types/ExpenseStatus.js +41 -0
- package/dist/serialization/resources/db/resources/expense/types/ExpenseType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/expense/types/ExpenseType.js +41 -0
- package/dist/serialization/resources/db/resources/expense/types/index.d.ts +3 -0
- package/dist/serialization/resources/db/resources/expense/types/index.js +19 -0
- package/dist/serialization/resources/db/resources/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1048 -113
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.js +2 -1
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +1 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.js +42 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.js +42 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +5 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +44 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.js +42 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.js +42 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +21 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +52 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +9 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +19 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +50 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +41 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +4 -1
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.js +2 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +47 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.js +2 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +1 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
- package/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +11 -0
- package/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +41 -0
- package/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +14 -0
- package/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.js +45 -0
- package/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +11 -0
- package/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +41 -0
- package/serialization/resources/db/resources/company/types/Holiday.d.ts +21 -0
- package/serialization/resources/db/resources/company/types/Holiday.js +52 -0
- package/serialization/resources/db/resources/company/types/HolidayDate.d.ts +15 -0
- package/serialization/resources/db/resources/company/types/HolidayDate.js +46 -0
- package/serialization/resources/db/resources/company/types/HolidaySettings.d.ts +14 -0
- package/serialization/resources/db/resources/company/types/HolidaySettings.js +45 -0
- package/serialization/resources/db/resources/company/types/HolidayType.d.ts +10 -0
- package/serialization/resources/db/resources/company/types/HolidayType.js +41 -0
- package/serialization/resources/db/resources/company/types/TimeOffPolicy.d.ts +2 -0
- package/serialization/resources/db/resources/company/types/TimeOffPolicy.js +2 -0
- package/serialization/resources/db/resources/company/types/TimeOffType.d.ts +1 -1
- package/serialization/resources/db/resources/company/types/TimeOffType.js +1 -1
- package/serialization/resources/db/resources/company/types/UserHolidaysResponse.d.ts +17 -0
- package/serialization/resources/db/resources/company/types/UserHolidaysResponse.js +48 -0
- package/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
- package/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
- package/serialization/resources/db/resources/company/types/index.d.ts +8 -0
- package/serialization/resources/db/resources/company/types/index.js +8 -0
- package/serialization/resources/db/resources/expense/index.d.ts +1 -0
- package/serialization/resources/db/resources/expense/index.js +17 -0
- package/serialization/resources/db/resources/expense/types/Expense.d.ts +28 -0
- package/serialization/resources/db/resources/expense/types/Expense.js +59 -0
- package/serialization/resources/db/resources/expense/types/ExpenseStatus.d.ts +10 -0
- package/serialization/resources/db/resources/expense/types/ExpenseStatus.js +41 -0
- package/serialization/resources/db/resources/expense/types/ExpenseType.d.ts +10 -0
- package/serialization/resources/db/resources/expense/types/ExpenseType.js +41 -0
- package/serialization/resources/db/resources/expense/types/index.d.ts +3 -0
- package/serialization/resources/db/resources/expense/types/index.js +19 -0
- package/serialization/resources/db/resources/index.d.ts +2 -0
- package/serialization/resources/db/resources/index.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -3,12 +3,12 @@ export * from "./GetIndustryCodesResponse";
|
|
|
3
3
|
export * from "./IndustryCodes";
|
|
4
4
|
export * from "./SubmitCompanyBeneficiariesResponse";
|
|
5
5
|
export * from "./ProcessFundsTransfer";
|
|
6
|
+
export * from "./WithdrawalTheraCash";
|
|
7
|
+
export * from "./WithdrawalAch";
|
|
8
|
+
export * from "./WithdrawalWire";
|
|
9
|
+
export * from "./WithdrawalWireAddress";
|
|
6
10
|
export * from "./CreateCounterPartyForBankingRequest";
|
|
7
11
|
export * from "./TransferFundsToOmnibusAccount";
|
|
8
12
|
export * from "./TpTransactionHistory";
|
|
9
13
|
export * from "./ExternalTransferFund";
|
|
10
14
|
export * from "./FboType";
|
|
11
|
-
export * from "./WithdrawalTheraCash";
|
|
12
|
-
export * from "./WithdrawalAch";
|
|
13
|
-
export * from "./WithdrawalWire";
|
|
14
|
-
export * from "./WithdrawalWireAddress";
|
|
@@ -19,12 +19,12 @@ __exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
|
19
19
|
__exportStar(require("./IndustryCodes"), exports);
|
|
20
20
|
__exportStar(require("./SubmitCompanyBeneficiariesResponse"), exports);
|
|
21
21
|
__exportStar(require("./ProcessFundsTransfer"), exports);
|
|
22
|
+
__exportStar(require("./WithdrawalTheraCash"), exports);
|
|
23
|
+
__exportStar(require("./WithdrawalAch"), exports);
|
|
24
|
+
__exportStar(require("./WithdrawalWire"), exports);
|
|
25
|
+
__exportStar(require("./WithdrawalWireAddress"), exports);
|
|
22
26
|
__exportStar(require("./CreateCounterPartyForBankingRequest"), exports);
|
|
23
27
|
__exportStar(require("./TransferFundsToOmnibusAccount"), exports);
|
|
24
28
|
__exportStar(require("./TpTransactionHistory"), exports);
|
|
25
29
|
__exportStar(require("./ExternalTransferFund"), exports);
|
|
26
30
|
__exportStar(require("./FboType"), exports);
|
|
27
|
-
__exportStar(require("./WithdrawalTheraCash"), exports);
|
|
28
|
-
__exportStar(require("./WithdrawalAch"), exports);
|
|
29
|
-
__exportStar(require("./WithdrawalWire"), exports);
|
|
30
|
-
__exportStar(require("./WithdrawalWireAddress"), exports);
|
|
@@ -78,7 +78,7 @@ class UserApi {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
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)}/user/${encodeURIComponent(userId)}`),
|
|
80
80
|
method: "POST",
|
|
81
|
-
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-prerelease3182-
|
|
81
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.api.thera.user.SetUserComplianceSettingsRequest.jsonOrThrow(request, {
|
|
@@ -139,7 +139,7 @@ class UserApi {
|
|
|
139
139
|
const _response = yield core.fetcher({
|
|
140
140
|
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)}/user`),
|
|
141
141
|
method: "GET",
|
|
142
|
-
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-prerelease3182-
|
|
142
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
queryParameters: _queryParams,
|
|
145
145
|
requestType: "json",
|
|
@@ -197,7 +197,7 @@ class UserApi {
|
|
|
197
197
|
const _response = yield core.fetcher({
|
|
198
198
|
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)), "user"),
|
|
199
199
|
method: "GET",
|
|
200
|
-
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-prerelease3182-
|
|
200
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
201
201
|
contentType: "application/json",
|
|
202
202
|
queryParameters: _queryParams,
|
|
203
203
|
requestType: "json",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../index";
|
|
5
|
+
export interface Holiday {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: TheraApi.db.HolidayType;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
dateRule?: string;
|
|
11
|
+
startDate?: string;
|
|
12
|
+
endDate?: string;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdAt?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HolidayType = void 0;
|
|
7
|
+
exports.HolidayType = {
|
|
8
|
+
Federal: "FEDERAL",
|
|
9
|
+
Custom: "CUSTOM",
|
|
10
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type TimeOffType = "UNPAID" | "PAID";
|
|
4
|
+
export type TimeOffType = "UNPAID" | "PAID" | "US_HOLIDAY";
|
|
5
5
|
export declare const TimeOffType: {
|
|
6
6
|
readonly Unpaid: "UNPAID";
|
|
7
7
|
readonly Paid: "PAID";
|
|
8
|
+
readonly UsHoliday: "US_HOLIDAY";
|
|
8
9
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../index";
|
|
5
|
+
export interface UserHolidaysResponse {
|
|
6
|
+
userId: string;
|
|
7
|
+
startYear: number;
|
|
8
|
+
endYear: number;
|
|
9
|
+
hasAccess: boolean;
|
|
10
|
+
holidays: TheraApi.db.HolidayDate[];
|
|
11
|
+
}
|
|
@@ -19,7 +19,6 @@ export interface W2Payroll {
|
|
|
19
19
|
/** Check Pay Schedule IDs by Thera User ID */
|
|
20
20
|
checkPayScheduleIdByUserId: Record<string, Set<string>>;
|
|
21
21
|
lastSubscriptionPayDate: string;
|
|
22
|
-
autopilotOn: boolean;
|
|
23
22
|
activePaymentMethodId?: string;
|
|
24
23
|
/**
|
|
25
24
|
* This has been added to be able to know when a company transitions into a blocking state. We need to know the
|
|
@@ -45,3 +45,11 @@ export * from "./CompanyBankingDetails";
|
|
|
45
45
|
export * from "./CompanyLegalStructure";
|
|
46
46
|
export * from "./IncorporationDetails";
|
|
47
47
|
export * from "./IncorporationDocument";
|
|
48
|
+
export * from "./HolidaySettings";
|
|
49
|
+
export * from "./Holiday";
|
|
50
|
+
export * from "./HolidayType";
|
|
51
|
+
export * from "./CompanyHolidaysResponse";
|
|
52
|
+
export * from "./HolidayDate";
|
|
53
|
+
export * from "./UserHolidaysResponse";
|
|
54
|
+
export * from "./AssociateUsersToHolidayPolicyResponse";
|
|
55
|
+
export * from "./DeleteCustomHolidayResponse";
|
|
@@ -61,3 +61,11 @@ __exportStar(require("./CompanyBankingDetails"), exports);
|
|
|
61
61
|
__exportStar(require("./CompanyLegalStructure"), exports);
|
|
62
62
|
__exportStar(require("./IncorporationDetails"), exports);
|
|
63
63
|
__exportStar(require("./IncorporationDocument"), exports);
|
|
64
|
+
__exportStar(require("./HolidaySettings"), exports);
|
|
65
|
+
__exportStar(require("./Holiday"), exports);
|
|
66
|
+
__exportStar(require("./HolidayType"), exports);
|
|
67
|
+
__exportStar(require("./CompanyHolidaysResponse"), exports);
|
|
68
|
+
__exportStar(require("./HolidayDate"), exports);
|
|
69
|
+
__exportStar(require("./UserHolidaysResponse"), exports);
|
|
70
|
+
__exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
|
|
71
|
+
__exportStar(require("./DeleteCustomHolidayResponse"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../index";
|
|
5
|
+
export interface Expense {
|
|
6
|
+
id: string;
|
|
7
|
+
contractId: string;
|
|
8
|
+
incurredDateTime: string;
|
|
9
|
+
/** The type of expense used internally to differentiate between different expense types */
|
|
10
|
+
type: TheraApi.db.ExpenseType;
|
|
11
|
+
/** The type we exposed to user to define */
|
|
12
|
+
categoryType: string;
|
|
13
|
+
description: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
createdDateTime: string;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
status: TheraApi.db.ExpenseStatus;
|
|
18
|
+
paidDateTime?: string;
|
|
19
|
+
checkPayrollId?: string;
|
|
20
|
+
approvedByUserName?: string;
|
|
21
|
+
approvalDateTime?: string;
|
|
22
|
+
/** S3 key of the attachment */
|
|
23
|
+
attachmentId?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ExpenseStatus = "REVIEW" | "APPROVED" | "DENIED" | "PENDING" | "PROCESSING" | "PAID" | "PAYMENT_FAILED";
|
|
5
|
+
export declare const ExpenseStatus: {
|
|
6
|
+
readonly Review: "REVIEW";
|
|
7
|
+
readonly Approved: "APPROVED";
|
|
8
|
+
readonly Denied: "DENIED";
|
|
9
|
+
readonly Pending: "PENDING";
|
|
10
|
+
readonly Processing: "PROCESSING";
|
|
11
|
+
readonly Paid: "PAID";
|
|
12
|
+
readonly PaymentFailed: "PAYMENT_FAILED";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ExpenseStatus = void 0;
|
|
7
|
+
exports.ExpenseStatus = {
|
|
8
|
+
Review: "REVIEW",
|
|
9
|
+
Approved: "APPROVED",
|
|
10
|
+
Denied: "DENIED",
|
|
11
|
+
Pending: "PENDING",
|
|
12
|
+
Processing: "PROCESSING",
|
|
13
|
+
Paid: "PAID",
|
|
14
|
+
PaymentFailed: "PAYMENT_FAILED",
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ExpenseType"), exports);
|
|
18
|
+
__exportStar(require("./ExpenseStatus"), exports);
|
|
19
|
+
__exportStar(require("./Expense"), exports);
|
|
@@ -6,6 +6,8 @@ export * as document from "./document";
|
|
|
6
6
|
export * from "./document/types";
|
|
7
7
|
export * as employment from "./employment";
|
|
8
8
|
export * from "./employment/types";
|
|
9
|
+
export * as expense from "./expense";
|
|
10
|
+
export * from "./expense/types";
|
|
9
11
|
export * as generic from "./generic";
|
|
10
12
|
export * from "./generic/types";
|
|
11
13
|
export * as invoice from "./invoice";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.user = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.employment = exports.document = exports.contract = exports.company = void 0;
|
|
39
|
+
exports.user = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
|
|
40
40
|
exports.company = __importStar(require("./company"));
|
|
41
41
|
__exportStar(require("./company/types"), exports);
|
|
42
42
|
exports.contract = __importStar(require("./contract"));
|
|
@@ -45,6 +45,8 @@ exports.document = __importStar(require("./document"));
|
|
|
45
45
|
__exportStar(require("./document/types"), exports);
|
|
46
46
|
exports.employment = __importStar(require("./employment"));
|
|
47
47
|
__exportStar(require("./employment/types"), exports);
|
|
48
|
+
exports.expense = __importStar(require("./expense"));
|
|
49
|
+
__exportStar(require("./expense/types"), exports);
|
|
48
50
|
exports.generic = __importStar(require("./generic"));
|
|
49
51
|
__exportStar(require("./generic/types"), exports);
|
|
50
52
|
exports.invoice = __importStar(require("./invoice"));
|
package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js
CHANGED
|
@@ -108,7 +108,7 @@ class AipriseWebhookApi {
|
|
|
108
108
|
const _response = yield core.fetcher({
|
|
109
109
|
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)), "/aiprise/webhook/verification/callback"),
|
|
110
110
|
method: "POST",
|
|
111
|
-
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-prerelease3182-
|
|
111
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
requestType: "json",
|
|
114
114
|
body: serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
|
@@ -87,7 +87,7 @@ class Dev {
|
|
|
87
87
|
const _response = yield core.fetcher({
|
|
88
88
|
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)), "/dev/eor"),
|
|
89
89
|
method: "POST",
|
|
90
|
-
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-prerelease3182-
|
|
90
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
requestType: "json",
|
|
93
93
|
body: serializers.api.dev.AddEorEmployeeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -113,7 +113,7 @@ class ExternalApi {
|
|
|
113
113
|
const _response = yield core.fetcher({
|
|
114
114
|
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)), "/external/v2/contractor"),
|
|
115
115
|
method: "POST",
|
|
116
|
-
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-prerelease3182-
|
|
116
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
body: serializers.api.external.ExternalCreateContractorRequestV2.jsonOrThrow(request, {
|
|
@@ -74,7 +74,7 @@ class File_ {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
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)), `/contracts/${encodeURIComponent(contractId)}/generic-document`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
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-prerelease3182-
|
|
77
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -125,7 +125,7 @@ class File_ {
|
|
|
125
125
|
const _response = yield core.fetcher({
|
|
126
126
|
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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}`),
|
|
127
127
|
method: "DELETE",
|
|
128
|
-
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-prerelease3182-
|
|
128
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
requestType: "json",
|
|
131
131
|
body: serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -173,7 +173,7 @@ class File_ {
|
|
|
173
173
|
const _response = yield core.fetcher({
|
|
174
174
|
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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}/file-url`),
|
|
175
175
|
method: "GET",
|
|
176
|
-
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-prerelease3182-
|
|
176
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
requestType: "json",
|
|
179
179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -224,7 +224,7 @@ class File_ {
|
|
|
224
224
|
const _response = yield core.fetcher({
|
|
225
225
|
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)), `/contracts/eor/${encodeURIComponent(contractId)}/payslips/${encodeURIComponent(s3Key)}/fileUrl`),
|
|
226
226
|
method: "GET",
|
|
227
|
-
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-prerelease3182-
|
|
227
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
228
|
contentType: "application/json",
|
|
229
229
|
requestType: "json",
|
|
230
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -275,7 +275,7 @@ class File_ {
|
|
|
275
275
|
const _response = yield core.fetcher({
|
|
276
276
|
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)}/contracts/eor/pay-in/${encodeURIComponent(s3Key)}/file-url`),
|
|
277
277
|
method: "GET",
|
|
278
|
-
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-prerelease3182-
|
|
278
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
requestType: "json",
|
|
281
281
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class AccountingApi {
|
|
|
77
77
|
const _response = yield core.fetcher({
|
|
78
78
|
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)}/accounting/settings`),
|
|
79
79
|
method: "PUT",
|
|
80
|
-
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-prerelease3182-
|
|
80
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
body: serializers.api.thera.accounting.ModifyAccountingIntegrationSetting.jsonOrThrow(request, {
|
|
@@ -124,7 +124,7 @@ class AccountingApi {
|
|
|
124
124
|
const _response = yield core.fetcher({
|
|
125
125
|
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)}/accounting/info`),
|
|
126
126
|
method: "GET",
|
|
127
|
-
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-prerelease3182-
|
|
127
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
requestType: "json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -174,7 +174,7 @@ class AccountingApi {
|
|
|
174
174
|
const _response = yield core.fetcher({
|
|
175
175
|
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)}/accounting/account-mapping`),
|
|
176
176
|
method: "GET",
|
|
177
|
-
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-prerelease3182-
|
|
177
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
178
178
|
contentType: "application/json",
|
|
179
179
|
requestType: "json",
|
|
180
180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -227,7 +227,7 @@ class AccountingApi {
|
|
|
227
227
|
const _response = yield core.fetcher({
|
|
228
228
|
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)}/accounting/authorize`),
|
|
229
229
|
method: "POST",
|
|
230
|
-
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-prerelease3182-
|
|
230
|
+
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-prerelease3182-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3182-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
231
231
|
contentType: "application/json",
|
|
232
232
|
requestType: "json",
|
|
233
233
|
body: serializers.api.thera.accounting.CompleteAccountingIntegrationAuth.jsonOrThrow(request, {
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
|
@@ -350,20 +350,20 @@ export declare class BankApi {
|
|
|
350
350
|
/**
|
|
351
351
|
* @param {string} userId
|
|
352
352
|
* @param {string} companyId
|
|
353
|
-
* @param {TheraApi.api.thera.bank.
|
|
353
|
+
* @param {TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest} request
|
|
354
354
|
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
355
355
|
*
|
|
356
356
|
* @example
|
|
357
357
|
* await client.api.thera.bank.bankApi.workerWithdraw("string", "string", {
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
* creditAmount: 1000000,
|
|
361
|
-
* creditCurrency: "string",
|
|
358
|
+
* amount: 1000000,
|
|
359
|
+
* currency: "string",
|
|
362
360
|
* withdrawalMethodId: "string",
|
|
363
|
-
*
|
|
361
|
+
* debugSettings: {
|
|
362
|
+
* forceContractorsFxPassthrough: true
|
|
363
|
+
* }
|
|
364
364
|
* })
|
|
365
365
|
*/
|
|
366
|
-
workerWithdraw(userId: string, companyId: string, request: TheraApi.api.thera.bank.
|
|
366
|
+
workerWithdraw(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.WorkerWithdrawalResponse>;
|
|
367
367
|
/**
|
|
368
368
|
* @param {string} userId
|
|
369
369
|
* @param {string} companyId
|