@thera-hr/api-sdk 0.0.1-prerelease3181-dev-3 → 0.0.1-prerelease3181-dev-4
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 +4 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/index.js +5 -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.d.ts +14 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +58 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +15 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +2 -0
- 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 +4 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +5 -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.d.ts +14 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +58 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +15 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +2 -0
- 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 +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +5 -1
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +5 -0
- 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 +1127 -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 +4 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +5 -1
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +4 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +5 -0
- 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
package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js
CHANGED
|
@@ -80,7 +80,7 @@ class TimeoffApi {
|
|
|
80
80
|
const _response = yield core.fetcher({
|
|
81
81
|
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)}/pto-deduction/calculate`),
|
|
82
82
|
method: "GET",
|
|
83
|
-
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-prerelease3181-dev-
|
|
83
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
queryParameters: _queryParams,
|
|
86
86
|
requestType: "json",
|
|
@@ -137,7 +137,7 @@ class TimeoffApi {
|
|
|
137
137
|
const _response = yield core.fetcher({
|
|
138
138
|
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)}/timeoff-policy/${encodeURIComponent(policyId)}/pto/associate-contractors`),
|
|
139
139
|
method: "POST",
|
|
140
|
-
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-prerelease3181-dev-
|
|
140
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
141
141
|
contentType: "application/json",
|
|
142
142
|
requestType: "json",
|
|
143
143
|
body: serializers.api.thera.timeoff.AssociateTimeOffPoliciesToContractorRequest.jsonOrThrow(request, {
|
|
@@ -199,7 +199,7 @@ class TimeoffApi {
|
|
|
199
199
|
const _response = yield core.fetcher({
|
|
200
200
|
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)}/timeoff-policy/${encodeURIComponent(policyId)}/pto/request`),
|
|
201
201
|
method: "POST",
|
|
202
|
-
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-prerelease3181-dev-
|
|
202
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
203
203
|
contentType: "application/json",
|
|
204
204
|
requestType: "json",
|
|
205
205
|
body: serializers.api.thera.timeoff.CreatePtoForContractorRequest.jsonOrThrow(request, {
|
|
@@ -257,7 +257,28 @@ class TimeoffApi {
|
|
|
257
257
|
* autoDeductEnabled: {
|
|
258
258
|
* ["EMPLOYEE"]: true
|
|
259
259
|
* },
|
|
260
|
-
* addPolicyFor: new Set(["EMPLOYEE"])
|
|
260
|
+
* addPolicyFor: new Set(["EMPLOYEE"]),
|
|
261
|
+
* holidays: [{
|
|
262
|
+
* id: "string",
|
|
263
|
+
* name: "string",
|
|
264
|
+
* type: "FEDERAL",
|
|
265
|
+
* enabled: true,
|
|
266
|
+
* dateRule: {
|
|
267
|
+
* "key": "value"
|
|
268
|
+
* },
|
|
269
|
+
* startDate: {
|
|
270
|
+
* "key": "value"
|
|
271
|
+
* },
|
|
272
|
+
* endDate: {
|
|
273
|
+
* "key": "value"
|
|
274
|
+
* },
|
|
275
|
+
* createdBy: {
|
|
276
|
+
* "key": "value"
|
|
277
|
+
* },
|
|
278
|
+
* createdAt: {
|
|
279
|
+
* "key": "value"
|
|
280
|
+
* }
|
|
281
|
+
* }]
|
|
261
282
|
* })
|
|
262
283
|
*/
|
|
263
284
|
addTimeOffPolicy(companyId, request, requestOptions) {
|
|
@@ -266,7 +287,7 @@ class TimeoffApi {
|
|
|
266
287
|
const _response = yield core.fetcher({
|
|
267
288
|
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)}/timeoff-policy`),
|
|
268
289
|
method: "POST",
|
|
269
|
-
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-prerelease3181-dev-
|
|
290
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
270
291
|
contentType: "application/json",
|
|
271
292
|
requestType: "json",
|
|
272
293
|
body: serializers.api.thera.timeoff.AddTimeOffPolicyRequest.jsonOrThrow(request, {
|
|
@@ -316,7 +337,7 @@ class TimeoffApi {
|
|
|
316
337
|
const _response = yield core.fetcher({
|
|
317
338
|
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)}/timeoff-policy/${encodeURIComponent(policyId)}`),
|
|
318
339
|
method: "GET",
|
|
319
|
-
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-prerelease3181-dev-
|
|
340
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
320
341
|
contentType: "application/json",
|
|
321
342
|
requestType: "json",
|
|
322
343
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -378,7 +399,28 @@ class TimeoffApi {
|
|
|
378
399
|
* autoDeductEnabled: {
|
|
379
400
|
* ["EMPLOYEE"]: true
|
|
380
401
|
* },
|
|
381
|
-
* addPolicyFor: new Set(["EMPLOYEE"])
|
|
402
|
+
* addPolicyFor: new Set(["EMPLOYEE"]),
|
|
403
|
+
* holidays: [{
|
|
404
|
+
* id: "string",
|
|
405
|
+
* name: "string",
|
|
406
|
+
* type: "FEDERAL",
|
|
407
|
+
* enabled: true,
|
|
408
|
+
* dateRule: {
|
|
409
|
+
* "key": "value"
|
|
410
|
+
* },
|
|
411
|
+
* startDate: {
|
|
412
|
+
* "key": "value"
|
|
413
|
+
* },
|
|
414
|
+
* endDate: {
|
|
415
|
+
* "key": "value"
|
|
416
|
+
* },
|
|
417
|
+
* createdBy: {
|
|
418
|
+
* "key": "value"
|
|
419
|
+
* },
|
|
420
|
+
* createdAt: {
|
|
421
|
+
* "key": "value"
|
|
422
|
+
* }
|
|
423
|
+
* }]
|
|
382
424
|
* })
|
|
383
425
|
*/
|
|
384
426
|
updateTimeOffPolicy(companyId, policyId, request, requestOptions) {
|
|
@@ -387,7 +429,7 @@ class TimeoffApi {
|
|
|
387
429
|
const _response = yield core.fetcher({
|
|
388
430
|
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)}/timeoff-policy/${encodeURIComponent(policyId)}`),
|
|
389
431
|
method: "PUT",
|
|
390
|
-
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-prerelease3181-dev-
|
|
432
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
391
433
|
contentType: "application/json",
|
|
392
434
|
requestType: "json",
|
|
393
435
|
body: serializers.api.thera.timeoff.UpdateTimeOffPolicyRequest.jsonOrThrow(request, {
|
|
@@ -437,7 +479,7 @@ class TimeoffApi {
|
|
|
437
479
|
const _response = yield core.fetcher({
|
|
438
480
|
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)}/timeoff-policy/${encodeURIComponent(policyId)}`),
|
|
439
481
|
method: "DELETE",
|
|
440
|
-
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-prerelease3181-dev-
|
|
482
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
441
483
|
contentType: "application/json",
|
|
442
484
|
requestType: "json",
|
|
443
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -495,7 +537,7 @@ class TimeoffApi {
|
|
|
495
537
|
const _response = yield core.fetcher({
|
|
496
538
|
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)}/time-off-history`),
|
|
497
539
|
method: "GET",
|
|
498
|
-
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-prerelease3181-dev-
|
|
540
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
499
541
|
contentType: "application/json",
|
|
500
542
|
queryParameters: _queryParams,
|
|
501
543
|
requestType: "json",
|
|
@@ -549,7 +591,7 @@ class TimeoffApi {
|
|
|
549
591
|
const _response = yield core.fetcher({
|
|
550
592
|
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)}/users/${encodeURIComponent(userId)}/time-off-history`),
|
|
551
593
|
method: "GET",
|
|
552
|
-
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-prerelease3181-dev-
|
|
594
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
553
595
|
contentType: "application/json",
|
|
554
596
|
requestType: "json",
|
|
555
597
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -610,7 +652,7 @@ class TimeoffApi {
|
|
|
610
652
|
const _response = yield core.fetcher({
|
|
611
653
|
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)}/timeoff-policies/${encodeURIComponent(policyId)}/contractors-details`),
|
|
612
654
|
method: "GET",
|
|
613
|
-
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-prerelease3181-dev-
|
|
655
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
614
656
|
contentType: "application/json",
|
|
615
657
|
queryParameters: _queryParams,
|
|
616
658
|
requestType: "json",
|
|
@@ -672,7 +714,7 @@ class TimeoffApi {
|
|
|
672
714
|
const _response = yield core.fetcher({
|
|
673
715
|
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)}/contractors/${encodeURIComponent(userId)}/timeoff-policies`),
|
|
674
716
|
method: "GET",
|
|
675
|
-
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-prerelease3181-dev-
|
|
717
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
676
718
|
contentType: "application/json",
|
|
677
719
|
queryParameters: _queryParams,
|
|
678
720
|
requestType: "json",
|
|
@@ -731,7 +773,7 @@ class TimeoffApi {
|
|
|
731
773
|
const _response = yield core.fetcher({
|
|
732
774
|
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)}/timeoff-policy/${encodeURIComponent(policyId)}/time-off/${encodeURIComponent(timeOffId)}/status-update`),
|
|
733
775
|
method: "POST",
|
|
734
|
-
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-prerelease3181-dev-
|
|
776
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
735
777
|
contentType: "application/json",
|
|
736
778
|
requestType: "json",
|
|
737
779
|
body: serializers.api.thera.timeoff.ModifyTimeOffStatusRequest.jsonOrThrow(request, {
|
|
@@ -791,7 +833,7 @@ class TimeoffApi {
|
|
|
791
833
|
const _response = yield core.fetcher({
|
|
792
834
|
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)}/time-off/bulk-status-update/${encodeURIComponent(status)}`),
|
|
793
835
|
method: "POST",
|
|
794
|
-
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-prerelease3181-dev-
|
|
836
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
795
837
|
contentType: "application/json",
|
|
796
838
|
requestType: "json",
|
|
797
839
|
body: serializers.api.thera.timeoff.timeoffApi.bulkModifyTimeOffStatuses.Request.jsonOrThrow(request, {
|
|
@@ -852,7 +894,7 @@ class TimeoffApi {
|
|
|
852
894
|
const _response = yield core.fetcher({
|
|
853
895
|
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)}/users/${encodeURIComponent(userId)}/time-off/${encodeURIComponent(timeOffId)}`),
|
|
854
896
|
method: "PUT",
|
|
855
|
-
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-prerelease3181-dev-
|
|
897
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
856
898
|
contentType: "application/json",
|
|
857
899
|
requestType: "json",
|
|
858
900
|
body: serializers.api.thera.timeoff.UpdatePtoRequest.jsonOrThrow(request, {
|
|
@@ -886,6 +928,66 @@ class TimeoffApi {
|
|
|
886
928
|
}
|
|
887
929
|
});
|
|
888
930
|
}
|
|
931
|
+
/**
|
|
932
|
+
* @param {string} companyId
|
|
933
|
+
* @param {string} userId
|
|
934
|
+
* @param {TheraApi.api.thera.timeoff.GetHolidayDatesByUserIdRequest} request
|
|
935
|
+
* @param {TimeoffApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
936
|
+
*
|
|
937
|
+
* @example
|
|
938
|
+
* await client.api.thera.timeoff.timeoffApi.getHolidayDatesByUserId("string", "string", {
|
|
939
|
+
* startYear: 1,
|
|
940
|
+
* endYear: 1
|
|
941
|
+
* })
|
|
942
|
+
*/
|
|
943
|
+
getHolidayDatesByUserId(companyId, userId, request, requestOptions) {
|
|
944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
945
|
+
var _a;
|
|
946
|
+
const { startYear, endYear } = request;
|
|
947
|
+
const _queryParams = {};
|
|
948
|
+
_queryParams["startYear"] = startYear.toString();
|
|
949
|
+
_queryParams["endYear"] = endYear.toString();
|
|
950
|
+
const _response = yield core.fetcher({
|
|
951
|
+
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)}/users/${encodeURIComponent(userId)}/holiday-dates`),
|
|
952
|
+
method: "GET",
|
|
953
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
954
|
+
contentType: "application/json",
|
|
955
|
+
queryParameters: _queryParams,
|
|
956
|
+
requestType: "json",
|
|
957
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
958
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
959
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
960
|
+
});
|
|
961
|
+
if (_response.ok) {
|
|
962
|
+
return serializers.api.thera.timeoff.GetHolidayDatesByUserIdResponse.parseOrThrow(_response.body, {
|
|
963
|
+
unrecognizedObjectKeys: "passthrough",
|
|
964
|
+
allowUnrecognizedUnionMembers: true,
|
|
965
|
+
allowUnrecognizedEnumValues: true,
|
|
966
|
+
skipValidation: true,
|
|
967
|
+
breadcrumbsPrefix: ["response"],
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
if (_response.error.reason === "status-code") {
|
|
971
|
+
throw new errors.TheraApiError({
|
|
972
|
+
statusCode: _response.error.statusCode,
|
|
973
|
+
body: _response.error.body,
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
switch (_response.error.reason) {
|
|
977
|
+
case "non-json":
|
|
978
|
+
throw new errors.TheraApiError({
|
|
979
|
+
statusCode: _response.error.statusCode,
|
|
980
|
+
body: _response.error.rawBody,
|
|
981
|
+
});
|
|
982
|
+
case "timeout":
|
|
983
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/users/{userId}/holiday-dates.");
|
|
984
|
+
case "unknown":
|
|
985
|
+
throw new errors.TheraApiError({
|
|
986
|
+
message: _response.error.errorMessage,
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
}
|
|
889
991
|
_getAuthorizationHeader() {
|
|
890
992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
891
993
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -2,3 +2,4 @@ export { type CalculatePtoDeductionRequest } from "./CalculatePtoDeductionReques
|
|
|
2
2
|
export { type GetAllContractorsTimeOffHistoryByCompanyRequest } from "./GetAllContractorsTimeOffHistoryByCompanyRequest";
|
|
3
3
|
export { type GetContractorsPoliciesDetailByPolicyRequest } from "./GetContractorsPoliciesDetailByPolicyRequest";
|
|
4
4
|
export { type GetContractorsPoliciesDetailByContractor } from "./GetContractorsPoliciesDetailByContractor";
|
|
5
|
+
export { type GetHolidayDatesByUserIdRequest } from "./GetHolidayDatesByUserIdRequest";
|
|
@@ -15,4 +15,5 @@ export interface AddTimeOffPolicyRequest {
|
|
|
15
15
|
/** Whether to automatically create deductions for PTO overages */
|
|
16
16
|
autoDeductEnabled: Record<TheraApi.model.thera.EmploymentType, boolean | undefined>;
|
|
17
17
|
addPolicyFor: Set<TheraApi.model.thera.EmploymentType>;
|
|
18
|
+
holidays?: TheraApi.db.Holiday[];
|
|
18
19
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../index";
|
|
5
|
+
export interface GetHolidayDatesByUserIdResponse {
|
|
6
|
+
userId: string;
|
|
7
|
+
startYear: number;
|
|
8
|
+
endYear: number;
|
|
9
|
+
holidays: TheraApi.db.HolidayDate[];
|
|
10
|
+
}
|
|
@@ -16,4 +16,5 @@ export interface UpdateTimeOffPolicyRequest {
|
|
|
16
16
|
/** Whether to automatically create deductions for PTO overages */
|
|
17
17
|
autoDeductEnabled: Record<TheraApi.model.thera.EmploymentType, boolean | undefined>;
|
|
18
18
|
addPolicyFor: Set<TheraApi.model.thera.EmploymentType>;
|
|
19
|
+
holidays?: TheraApi.db.Holiday[];
|
|
19
20
|
}
|
package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./GetContractorsTimeOffsByCompany";
|
|
|
13
13
|
export * from "./ModifyTimeOffStatusRequest";
|
|
14
14
|
export * from "./BulkModifyTimeOffStatusesRequest";
|
|
15
15
|
export * from "./AccrualLimitExceeded";
|
|
16
|
+
export * from "./GetHolidayDatesByUserIdResponse";
|
|
16
17
|
export * from "./AssociateTimeOffPoliciesToContractorRequest";
|
|
17
18
|
export * from "./AddTimeOffPolicyRequest";
|
|
18
19
|
export * from "./UpdateTimeOffPolicyRequest";
|
package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./GetContractorsTimeOffsByCompany"), exports);
|
|
|
29
29
|
__exportStar(require("./ModifyTimeOffStatusRequest"), exports);
|
|
30
30
|
__exportStar(require("./BulkModifyTimeOffStatusesRequest"), exports);
|
|
31
31
|
__exportStar(require("./AccrualLimitExceeded"), exports);
|
|
32
|
+
__exportStar(require("./GetHolidayDatesByUserIdResponse"), exports);
|
|
32
33
|
__exportStar(require("./AssociateTimeOffPoliciesToContractorRequest"), exports);
|
|
33
34
|
__exportStar(require("./AddTimeOffPolicyRequest"), exports);
|
|
34
35
|
__exportStar(require("./UpdateTimeOffPolicyRequest"), exports);
|
|
@@ -81,7 +81,7 @@ class TimetrackingApi {
|
|
|
81
81
|
const _response = yield core.fetcher({
|
|
82
82
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/entries`),
|
|
83
83
|
method: "POST",
|
|
84
|
-
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-prerelease3181-dev-
|
|
84
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.api.thera.timetracking.CreateTimeEntryRequest.jsonOrThrow(request, {
|
|
@@ -144,7 +144,7 @@ class TimetrackingApi {
|
|
|
144
144
|
const _response = yield core.fetcher({
|
|
145
145
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/start`),
|
|
146
146
|
method: "POST",
|
|
147
|
-
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-prerelease3181-dev-
|
|
147
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.api.thera.timetracking.StartTimeTrackingRequest.jsonOrThrow(request, {
|
|
@@ -205,7 +205,7 @@ class TimetrackingApi {
|
|
|
205
205
|
const _response = yield core.fetcher({
|
|
206
206
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/stop`),
|
|
207
207
|
method: "POST",
|
|
208
|
-
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-prerelease3181-dev-
|
|
208
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
requestType: "json",
|
|
211
211
|
body: serializers.api.thera.timetracking.StopTimeTrackingRequest.jsonOrThrow(request, {
|
|
@@ -269,7 +269,7 @@ class TimetrackingApi {
|
|
|
269
269
|
const _response = yield core.fetcher({
|
|
270
270
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
|
|
271
271
|
method: "PUT",
|
|
272
|
-
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-prerelease3181-dev-
|
|
272
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
273
273
|
contentType: "application/json",
|
|
274
274
|
requestType: "json",
|
|
275
275
|
body: serializers.api.thera.timetracking.UpdateTimeTrackingRequest.jsonOrThrow(request, {
|
|
@@ -326,7 +326,7 @@ class TimetrackingApi {
|
|
|
326
326
|
const _response = yield core.fetcher({
|
|
327
327
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
|
|
328
328
|
method: "DELETE",
|
|
329
|
-
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-prerelease3181-dev-
|
|
329
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
330
330
|
contentType: "application/json",
|
|
331
331
|
requestType: "json",
|
|
332
332
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -385,7 +385,7 @@ class TimetrackingApi {
|
|
|
385
385
|
const _response = yield core.fetcher({
|
|
386
386
|
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)}/users/${encodeURIComponent(userId)}/time-tracking`),
|
|
387
387
|
method: "GET",
|
|
388
|
-
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-prerelease3181-dev-
|
|
388
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
389
389
|
contentType: "application/json",
|
|
390
390
|
queryParameters: _queryParams,
|
|
391
391
|
requestType: "json",
|
|
@@ -439,7 +439,7 @@ class TimetrackingApi {
|
|
|
439
439
|
const _response = yield core.fetcher({
|
|
440
440
|
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)}/invoices/${encodeURIComponent(invoiceId)}/time-tracking`),
|
|
441
441
|
method: "GET",
|
|
442
|
-
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-prerelease3181-dev-
|
|
442
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
443
443
|
contentType: "application/json",
|
|
444
444
|
requestType: "json",
|
|
445
445
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -496,7 +496,7 @@ class TimetrackingApi {
|
|
|
496
496
|
const _response = yield core.fetcher({
|
|
497
497
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/bulk-update`),
|
|
498
498
|
method: "POST",
|
|
499
|
-
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-prerelease3181-dev-
|
|
499
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
500
500
|
contentType: "application/json",
|
|
501
501
|
requestType: "json",
|
|
502
502
|
body: serializers.api.thera.timetracking.BulkTimeEntryUpdateRequest.jsonOrThrow(request, {
|
|
@@ -560,7 +560,7 @@ class TimetrackingApi {
|
|
|
560
560
|
const _response = yield core.fetcher({
|
|
561
561
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/history`),
|
|
562
562
|
method: "GET",
|
|
563
|
-
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-prerelease3181-dev-
|
|
563
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
564
564
|
contentType: "application/json",
|
|
565
565
|
queryParameters: _queryParams,
|
|
566
566
|
requestType: "json",
|
|
@@ -99,7 +99,8 @@ export declare class TpApi {
|
|
|
99
99
|
* paymentMethodId: "string",
|
|
100
100
|
* secCode: "string",
|
|
101
101
|
* service: "string",
|
|
102
|
-
* revenueAmount: "string"
|
|
102
|
+
* revenueAmount: "string",
|
|
103
|
+
* cashDeposit: true
|
|
103
104
|
* })
|
|
104
105
|
*/
|
|
105
106
|
processTreasuryPrimePayment(companyId: string, request: TheraApi.api.thera.tp.ProcessFundsTransfer, requestOptions?: TpApi.RequestOptions): Promise<unknown>;
|
|
@@ -113,7 +113,7 @@ class TpApi {
|
|
|
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)), `companies/${encodeURIComponent(companyId)}/banking-details`),
|
|
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-prerelease3181-dev-
|
|
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "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.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -167,7 +167,7 @@ class TpApi {
|
|
|
167
167
|
const _response = yield core.fetcher({
|
|
168
168
|
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)), "naics-codes"),
|
|
169
169
|
method: "GET",
|
|
170
|
-
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-prerelease3181-dev-
|
|
170
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
171
171
|
contentType: "application/json",
|
|
172
172
|
requestType: "json",
|
|
173
173
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -219,7 +219,8 @@ class TpApi {
|
|
|
219
219
|
* paymentMethodId: "string",
|
|
220
220
|
* secCode: "string",
|
|
221
221
|
* service: "string",
|
|
222
|
-
* revenueAmount: "string"
|
|
222
|
+
* revenueAmount: "string",
|
|
223
|
+
* cashDeposit: true
|
|
223
224
|
* })
|
|
224
225
|
*/
|
|
225
226
|
processTreasuryPrimePayment(companyId, request, requestOptions) {
|
|
@@ -228,7 +229,7 @@ class TpApi {
|
|
|
228
229
|
const _response = yield core.fetcher({
|
|
229
230
|
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)}/process-funds`),
|
|
230
231
|
method: "POST",
|
|
231
|
-
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-prerelease3181-dev-
|
|
232
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
232
233
|
contentType: "application/json",
|
|
233
234
|
requestType: "json",
|
|
234
235
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -280,7 +281,7 @@ class TpApi {
|
|
|
280
281
|
const _response = yield core.fetcher({
|
|
281
282
|
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)}/create-counterparty`),
|
|
282
283
|
method: "POST",
|
|
283
|
-
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-prerelease3181-dev-
|
|
284
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
284
285
|
contentType: "application/json",
|
|
285
286
|
requestType: "json",
|
|
286
287
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -329,7 +330,7 @@ class TpApi {
|
|
|
329
330
|
const _response = yield core.fetcher({
|
|
330
331
|
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)}/fetch-accounts`),
|
|
331
332
|
method: "GET",
|
|
332
|
-
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-prerelease3181-dev-
|
|
333
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
333
334
|
contentType: "application/json",
|
|
334
335
|
requestType: "json",
|
|
335
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -384,7 +385,7 @@ class TpApi {
|
|
|
384
385
|
const _response = yield core.fetcher({
|
|
385
386
|
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)}/fetch-accounts/${encodeURIComponent(accountId)}`),
|
|
386
387
|
method: "GET",
|
|
387
|
-
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-prerelease3181-dev-
|
|
388
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
388
389
|
contentType: "application/json",
|
|
389
390
|
queryParameters: _queryParams,
|
|
390
391
|
requestType: "json",
|
|
@@ -435,7 +436,7 @@ class TpApi {
|
|
|
435
436
|
const _response = yield core.fetcher({
|
|
436
437
|
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)}/transfer-fbo-omnibus`),
|
|
437
438
|
method: "POST",
|
|
438
|
-
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-prerelease3181-dev-
|
|
439
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
439
440
|
contentType: "application/json",
|
|
440
441
|
requestType: "json",
|
|
441
442
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -485,7 +486,7 @@ class TpApi {
|
|
|
485
486
|
const _response = yield core.fetcher({
|
|
486
487
|
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)}/fetch-transactions/${encodeURIComponent(accountId)}`),
|
|
487
488
|
method: "GET",
|
|
488
|
-
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-prerelease3181-dev-
|
|
489
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
489
490
|
contentType: "application/json",
|
|
490
491
|
requestType: "json",
|
|
491
492
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -538,7 +539,7 @@ class TpApi {
|
|
|
538
539
|
const _response = yield core.fetcher({
|
|
539
540
|
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)}/tp-transaction/${encodeURIComponent(transactionId)}`),
|
|
540
541
|
method: "GET",
|
|
541
|
-
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-prerelease3181-dev-
|
|
542
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
542
543
|
contentType: "application/json",
|
|
543
544
|
requestType: "json",
|
|
544
545
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -602,7 +603,7 @@ class TpApi {
|
|
|
602
603
|
const _response = yield core.fetcher({
|
|
603
604
|
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)), "webhook/tp/external-transfer-funds"),
|
|
604
605
|
method: "POST",
|
|
605
|
-
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-prerelease3181-dev-
|
|
606
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
606
607
|
contentType: "application/json",
|
|
607
608
|
queryParameters: _queryParams,
|
|
608
609
|
requestType: "json",
|
|
@@ -680,7 +681,7 @@ class TpApi {
|
|
|
680
681
|
const _response = yield core.fetcher({
|
|
681
682
|
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)}/withdraw-funds`),
|
|
682
683
|
method: "POST",
|
|
683
|
-
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-prerelease3181-dev-
|
|
684
|
+
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-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
684
685
|
contentType: "application/json",
|
|
685
686
|
requestType: "json",
|
|
686
687
|
body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
|