@thera-hr/api-sdk 0.0.1449 → 0.0.1503
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +1 -1
- package/api/resources/api/client/Client.d.ts +1 -1
- package/api/resources/api/resources/services/client/Client.d.ts +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/test/client/Client.d.ts +1 -1
- package/api/resources/api/resources/test/resources/invoices/client/Client.d.ts +1 -1
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/client/Client.js +7 -2
- package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/company/client/Client.js +7 -2
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +99 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +6 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/index.js +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/index.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +94 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +5 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.js +32 -0
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/index.js +2 -1
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/api/resources/db/resources/employment/types/index.d.ts +0 -12
- package/api/resources/db/resources/employment/types/index.js +0 -12
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/model/index.d.ts +1 -0
- package/api/resources/model/index.js +17 -0
- package/api/resources/model/resources/index.d.ts +1 -0
- package/api/resources/model/resources/index.js +27 -0
- package/api/resources/model/resources/thera/index.d.ts +1 -0
- package/api/resources/model/resources/thera/index.js +17 -0
- package/api/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/api/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/api/resources/{db → model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +2 -2
- package/{dist/api/resources/db → api/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.d.ts +3 -0
- package/api/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +9 -0
- package/api/resources/model/resources/thera/resources/employment/types/ContractType.js +11 -0
- package/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
- package/api/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.d.ts +3 -2
- package/api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +21 -0
- package/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
- package/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.js +5 -0
- package/api/resources/model/resources/thera/resources/employment/types/WageType.d.ts +13 -0
- package/{dist/api/resources/db → api/resources/model/resources/thera}/resources/employment/types/WageType.js +4 -0
- package/{dist/api/resources/db → api/resources/model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.d.ts +2 -2
- package/api/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
- package/api/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/api/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/api/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/api/resources/model/resources/thera/resources/index.js +31 -0
- package/dist/Client.d.ts +1 -1
- package/dist/api/resources/api/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/services/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/test/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/client/Client.js +7 -2
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.js +7 -2
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +99 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +6 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +94 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.js +32 -0
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/dist/api/resources/db/resources/employment/types/index.d.ts +0 -12
- package/dist/api/resources/db/resources/employment/types/index.js +0 -12
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/model/index.d.ts +1 -0
- package/dist/api/resources/model/index.js +17 -0
- package/dist/api/resources/model/resources/index.d.ts +1 -0
- package/dist/api/resources/model/resources/index.js +27 -0
- package/dist/api/resources/model/resources/thera/index.d.ts +1 -0
- package/dist/api/resources/model/resources/thera/index.js +17 -0
- package/dist/api/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/dist/api/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +2 -2
- package/dist/api/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js +5 -0
- package/{api/resources/db → dist/api/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.d.ts +3 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +9 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/ContractType.js +11 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.js +5 -0
- package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.d.ts +3 -2
- package/dist/api/resources/model/resources/thera/resources/employment/types/PayCycle.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +21 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/WageType.d.ts +13 -0
- package/{api/resources/db → dist/api/resources/model/resources/thera}/resources/employment/types/WageType.js +4 -0
- package/{api/resources/db → dist/api/resources/model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.d.ts +2 -2
- package/dist/api/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/dist/api/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/dist/api/resources/model/resources/thera/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +36 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +25 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +46 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +36 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +6 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +6 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +11 -0
- package/dist/serialization/resources/{db/resources/employment/types/WageType.js → api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js} +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +38 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/dist/serialization/resources/db/resources/employment/types/Employment.js +5 -4
- package/dist/serialization/resources/db/resources/employment/types/index.d.ts +0 -12
- package/dist/serialization/resources/db/resources/employment/types/index.js +0 -12
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/model/index.d.ts +1 -0
- package/dist/serialization/resources/model/index.js +17 -0
- package/dist/serialization/resources/model/resources/index.d.ts +1 -0
- package/dist/serialization/resources/model/resources/index.js +27 -0
- package/dist/serialization/resources/model/resources/thera/index.d.ts +1 -0
- package/dist/serialization/resources/model/resources/thera/index.js +17 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.js +2 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/ContractDocumentType.d.ts +10 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +10 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/ContractType.js +31 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +4 -4
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/DayOfWeek.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/EmploymentType.d.ts +10 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/EmploymentType.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.d.ts +11 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.js +1 -1
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.d.ts +6 -6
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.js +3 -3
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycle.d.ts +16 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.js +3 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +24 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/PayCycleEnd.js +5 -5
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +5 -5
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.js +2 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/WageType.d.ts +10 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/WageType.js +2 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.js +2 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/dist/serialization/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/dist/serialization/resources/model/resources/thera/resources/index.js +31 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +36 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +33 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +25 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +46 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +36 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +33 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +34 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +6 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +6 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js +31 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +38 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js +31 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/serialization/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/serialization/resources/db/resources/employment/types/Employment.js +5 -4
- package/serialization/resources/db/resources/employment/types/index.d.ts +0 -12
- package/serialization/resources/db/resources/employment/types/index.js +0 -12
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/model/index.d.ts +1 -0
- package/serialization/resources/model/index.js +17 -0
- package/serialization/resources/model/resources/index.d.ts +1 -0
- package/serialization/resources/model/resources/index.js +27 -0
- package/serialization/resources/model/resources/thera/index.d.ts +1 -0
- package/serialization/resources/model/resources/thera/index.js +17 -0
- package/serialization/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/serialization/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.js +2 -2
- package/serialization/resources/model/resources/thera/resources/employment/types/ContractDocumentType.d.ts +10 -0
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +10 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/ContractType.js +31 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +4 -4
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/DayOfWeek.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/EmploymentType.d.ts +10 -0
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/EmploymentType.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.d.ts +11 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.js +1 -1
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.d.ts +6 -6
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.js +3 -3
- package/serialization/resources/model/resources/thera/resources/employment/types/PayCycle.d.ts +16 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.js +3 -2
- package/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +24 -0
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/PayCycleEnd.js +5 -5
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +5 -5
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.js +2 -2
- package/serialization/resources/model/resources/thera/resources/employment/types/WageType.d.ts +10 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/WageType.js +31 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.js +2 -2
- package/serialization/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/serialization/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/serialization/resources/model/resources/thera/resources/index.js +31 -0
- package/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +0 -18
- package/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -21
- package/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +0 -14
- package/api/resources/db/resources/employment/types/WageType.d.ts +0 -9
- package/dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +0 -18
- package/dist/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -21
- package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +0 -14
- package/dist/api/resources/db/resources/employment/types/WageType.d.ts +0 -9
- package/dist/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +0 -12
- package/dist/serialization/resources/db/resources/employment/types/ContractDocumentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/employment/types/EmploymentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -11
- package/dist/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +0 -11
- package/dist/serialization/resources/db/resources/employment/types/PayCycle.d.ts +0 -15
- package/dist/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -24
- package/dist/serialization/resources/db/resources/employment/types/WageType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +0 -12
- package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +0 -12
- package/serialization/resources/db/resources/employment/types/ContractDocumentType.d.ts +0 -10
- package/serialization/resources/db/resources/employment/types/EmploymentType.d.ts +0 -10
- package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -11
- package/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +0 -11
- package/serialization/resources/db/resources/employment/types/PayCycle.d.ts +0 -15
- package/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -24
- package/serialization/resources/db/resources/employment/types/WageType.d.ts +0 -10
- package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +0 -12
- /package/api/resources/{db/resources/employment/types/BiWeeklyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js} +0 -0
- /package/api/resources/{db/resources/employment/types/FifteenthAndEndOfMonth.js → api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js} +0 -0
- /package/api/resources/{db/resources/employment/types/LastDayOfMonth.js → api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js} +0 -0
- /package/api/resources/{db/resources/employment/types/MonthlyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js} +0 -0
- /package/api/resources/{db/resources/employment/types/PayCycle.js → api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js} +0 -0
- /package/api/resources/{db/resources/employment/types/PayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js} +0 -0
- /package/api/resources/{db/resources/employment/types/SemiMonthlyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js} +0 -0
- /package/api/resources/{db/resources/employment/types/WeeklyPayCycleEnd.js → api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.js → api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js → api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/LastDayOfMonth.js → api/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js} +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/ContractDocumentType.js +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.js +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.d.ts +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.js +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -0
- /package/{dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.d.ts +0 -0
- /package/{dist/api/resources/db/resources/employment/types/PayCycle.js → api/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/PayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/PayCycle.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js} +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/ContractDocumentType.js +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.js +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.d.ts +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.js +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.d.ts +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../../../core";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
6
|
+
export declare namespace DisbursementWebhookApi {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class DisbursementWebhookApi {
|
|
13
|
+
protected readonly options: DisbursementWebhookApi.Options;
|
|
14
|
+
constructor(options: DisbursementWebhookApi.Options);
|
|
15
|
+
/**
|
|
16
|
+
* IN DEVELOPMENT
|
|
17
|
+
*/
|
|
18
|
+
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest): Promise<void>;
|
|
19
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.DisbursementWebhookApi = void 0;
|
|
33
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
34
|
+
const serializers = __importStar(require("../../../../../../../../../../serialization"));
|
|
35
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
36
|
+
const errors = __importStar(require("../../../../../../../../../../errors"));
|
|
37
|
+
class DisbursementWebhookApi {
|
|
38
|
+
options;
|
|
39
|
+
constructor(options) {
|
|
40
|
+
this.options = options;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* IN DEVELOPMENT
|
|
44
|
+
*/
|
|
45
|
+
async invoiceWebhook(request) {
|
|
46
|
+
const { theraWebhookSignatureHeader, body: _body } = request;
|
|
47
|
+
const _response = await core.fetcher({
|
|
48
|
+
url: (0, url_join_1.default)(this.options.environment, "webhook/disbursement/invoice"),
|
|
49
|
+
method: "POST",
|
|
50
|
+
headers: {
|
|
51
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
52
|
+
"X-Fern-Language": "JavaScript",
|
|
53
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.1503",
|
|
55
|
+
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
|
56
|
+
},
|
|
57
|
+
contentType: "application/json",
|
|
58
|
+
body: await serializers.api.thera.disbursement.InvoiceWebhookEvent.jsonOrThrow(_body, {
|
|
59
|
+
unrecognizedObjectKeys: "strip",
|
|
60
|
+
}),
|
|
61
|
+
timeoutMs: 60000,
|
|
62
|
+
});
|
|
63
|
+
if (_response.ok) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (_response.error.reason === "status-code") {
|
|
67
|
+
throw new errors.TheraApiError({
|
|
68
|
+
statusCode: _response.error.statusCode,
|
|
69
|
+
body: _response.error.body,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
switch (_response.error.reason) {
|
|
73
|
+
case "non-json":
|
|
74
|
+
throw new errors.TheraApiError({
|
|
75
|
+
statusCode: _response.error.statusCode,
|
|
76
|
+
body: _response.error.rawBody,
|
|
77
|
+
});
|
|
78
|
+
case "timeout":
|
|
79
|
+
throw new errors.TheraApiTimeoutError();
|
|
80
|
+
case "unknown":
|
|
81
|
+
throw new errors.TheraApiError({
|
|
82
|
+
message: _response.error.errorMessage,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async _getAuthorizationHeader() {
|
|
87
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
88
|
+
if (bearer != null) {
|
|
89
|
+
return `Bearer ${bearer}`;
|
|
90
|
+
}
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.DisbursementWebhookApi = DisbursementWebhookApi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../..";
|
|
5
|
+
export interface InvoiceWebhookRequest {
|
|
6
|
+
theraWebhookSignatureHeader: string;
|
|
7
|
+
body: TheraApi.api.thera.disbursement.InvoiceWebhookEvent;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InvoiceWebhookRequest } from "./InvoiceWebhookRequest";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
5
|
+
export declare type InvoiceWebhookEvent = TheraApi.api.thera.disbursement.InvoiceWebhookEvent.CreateScheduledInvoices;
|
|
6
|
+
export declare namespace InvoiceWebhookEvent {
|
|
7
|
+
interface CreateScheduledInvoices extends TheraApi.api.thera.disbursement.CreateScheduledInvoiceEvent {
|
|
8
|
+
type: "createScheduledInvoices";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./InvoiceWebhookEvent"), exports);
|
|
18
|
+
__exportStar(require("./CreateScheduledInvoiceEvent"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.disbursementWebhookApi = void 0;
|
|
30
|
+
exports.disbursementWebhookApi = __importStar(require("./disbursementWebhookApi"));
|
|
31
|
+
__exportStar(require("./disbursementWebhookApi/types"), exports);
|
|
32
|
+
__exportStar(require("./disbursementWebhookApi/client/requests"), exports);
|
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.payroll = exports.company = exports.bank = exports.address = void 0;
|
|
26
|
+
exports.payroll = exports.disbursement = exports.company = exports.bank = exports.address = void 0;
|
|
27
27
|
exports.address = __importStar(require("./address"));
|
|
28
28
|
exports.bank = __importStar(require("./bank"));
|
|
29
29
|
exports.company = __importStar(require("./company"));
|
|
30
|
+
exports.disbursement = __importStar(require("./disbursement"));
|
|
30
31
|
exports.payroll = __importStar(require("./payroll"));
|
|
@@ -6,7 +6,7 @@ import { OncycleApi } from "../resources/oncycleApi/client/Client";
|
|
|
6
6
|
export declare namespace Payroll {
|
|
7
7
|
interface Options {
|
|
8
8
|
environment: string;
|
|
9
|
-
token
|
|
9
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export declare class Payroll {
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as TheraApi from "../../../../../../../../..";
|
|
|
6
6
|
export declare namespace OncycleApi {
|
|
7
7
|
interface Options {
|
|
8
8
|
environment: string;
|
|
9
|
-
token
|
|
9
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export declare class OncycleApi {
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js
CHANGED
|
@@ -50,7 +50,7 @@ class OncycleApi {
|
|
|
50
50
|
Authorization: await this._getAuthorizationHeader(),
|
|
51
51
|
"X-Fern-Language": "JavaScript",
|
|
52
52
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
53
|
-
"X-Fern-SDK-Version": "0.0.
|
|
53
|
+
"X-Fern-SDK-Version": "0.0.1503",
|
|
54
54
|
},
|
|
55
55
|
contentType: "application/json",
|
|
56
56
|
timeoutMs: 60000,
|
|
@@ -9,19 +9,20 @@ export interface Employment {
|
|
|
9
9
|
jobTitle: string;
|
|
10
10
|
employmentStatus: TheraApi.db.EmploymentStatus;
|
|
11
11
|
startDate: string;
|
|
12
|
-
wageType: TheraApi.
|
|
12
|
+
wageType: TheraApi.model.thera.WageType;
|
|
13
13
|
rate: number;
|
|
14
14
|
contractCurrency: string;
|
|
15
15
|
milestoneDetails: TheraApi.db.MilestoneDetails;
|
|
16
16
|
contractFileId: string;
|
|
17
17
|
lastPayDate: string;
|
|
18
18
|
scopeOfWork: string;
|
|
19
|
-
type: TheraApi.
|
|
20
|
-
contractDocumentType: TheraApi.
|
|
19
|
+
type: TheraApi.model.thera.EmploymentType;
|
|
20
|
+
contractDocumentType: TheraApi.model.thera.ContractDocumentType;
|
|
21
21
|
contractDocumentId: string;
|
|
22
22
|
w2Payroll: TheraApi.db.EmploymentW2PayrollDetails;
|
|
23
23
|
eor: TheraApi.db.EorDetails;
|
|
24
24
|
companySigningAuthorityUserId: string;
|
|
25
25
|
documents: TheraApi.db.EmploymentDocuments;
|
|
26
|
-
payCycle: TheraApi.
|
|
26
|
+
payCycle: TheraApi.model.thera.PayCycle;
|
|
27
|
+
contractType: TheraApi.model.thera.ContractType;
|
|
27
28
|
}
|
|
@@ -9,9 +9,6 @@ export * from "./Reimbursement";
|
|
|
9
9
|
export * from "./MilestoneStatus";
|
|
10
10
|
export * from "./Milestone";
|
|
11
11
|
export * from "./MilestoneDetails";
|
|
12
|
-
export * from "./ContractDocumentType";
|
|
13
|
-
export * from "./EmploymentType";
|
|
14
|
-
export * from "./WageType";
|
|
15
12
|
export * from "./EmploymentStatus";
|
|
16
13
|
export * from "./Employment";
|
|
17
14
|
export * from "./EorDetails";
|
|
@@ -21,12 +18,3 @@ export * from "./GenericEmploymentDocument";
|
|
|
21
18
|
export * from "./ModifyRecurrencesRequest";
|
|
22
19
|
export * from "./RecurrenceModifications";
|
|
23
20
|
export * from "./ModifyRecurrencesResponse";
|
|
24
|
-
export * from "./PayCycle";
|
|
25
|
-
export * from "./PayCycleEnd";
|
|
26
|
-
export * from "./WeeklyPayCycleEnd";
|
|
27
|
-
export * from "./BiWeeklyPayCycleEnd";
|
|
28
|
-
export * from "./MonthlyPayCycleEnd";
|
|
29
|
-
export * from "./SemiMonthlyPayCycleEnd";
|
|
30
|
-
export * from "./FifteenthAndEndOfMonth";
|
|
31
|
-
export * from "./LastDayOfMonth";
|
|
32
|
-
export * from "./DayOfWeek";
|
|
@@ -25,9 +25,6 @@ __exportStar(require("./Reimbursement"), exports);
|
|
|
25
25
|
__exportStar(require("./MilestoneStatus"), exports);
|
|
26
26
|
__exportStar(require("./Milestone"), exports);
|
|
27
27
|
__exportStar(require("./MilestoneDetails"), exports);
|
|
28
|
-
__exportStar(require("./ContractDocumentType"), exports);
|
|
29
|
-
__exportStar(require("./EmploymentType"), exports);
|
|
30
|
-
__exportStar(require("./WageType"), exports);
|
|
31
28
|
__exportStar(require("./EmploymentStatus"), exports);
|
|
32
29
|
__exportStar(require("./Employment"), exports);
|
|
33
30
|
__exportStar(require("./EorDetails"), exports);
|
|
@@ -37,12 +34,3 @@ __exportStar(require("./GenericEmploymentDocument"), exports);
|
|
|
37
34
|
__exportStar(require("./ModifyRecurrencesRequest"), exports);
|
|
38
35
|
__exportStar(require("./RecurrenceModifications"), exports);
|
|
39
36
|
__exportStar(require("./ModifyRecurrencesResponse"), exports);
|
|
40
|
-
__exportStar(require("./PayCycle"), exports);
|
|
41
|
-
__exportStar(require("./PayCycleEnd"), exports);
|
|
42
|
-
__exportStar(require("./WeeklyPayCycleEnd"), exports);
|
|
43
|
-
__exportStar(require("./BiWeeklyPayCycleEnd"), exports);
|
|
44
|
-
__exportStar(require("./MonthlyPayCycleEnd"), exports);
|
|
45
|
-
__exportStar(require("./SemiMonthlyPayCycleEnd"), exports);
|
|
46
|
-
__exportStar(require("./FifteenthAndEndOfMonth"), exports);
|
|
47
|
-
__exportStar(require("./LastDayOfMonth"), exports);
|
|
48
|
-
__exportStar(require("./DayOfWeek"), exports);
|
package/api/resources/index.d.ts
CHANGED
package/api/resources/index.js
CHANGED
|
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.db = exports.api = void 0;
|
|
26
|
+
exports.model = exports.db = exports.api = void 0;
|
|
27
27
|
exports.api = __importStar(require("./api"));
|
|
28
28
|
exports.db = __importStar(require("./db"));
|
|
29
|
+
exports.model = __importStar(require("./model"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as thera from "./thera";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.thera = void 0;
|
|
27
|
+
exports.thera = __importStar(require("./thera"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as TheraApi from "
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
5
|
export interface BiWeeklyPayCycleEnd {
|
|
6
|
-
dayOfWeek: TheraApi.
|
|
6
|
+
dayOfWeek: TheraApi.model.thera.DayOfWeek;
|
|
7
7
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* This is null if it's a W2 employee
|
|
6
|
+
*/
|
|
4
7
|
export declare type ContractDocumentType = "NO_CONTRACT" | "USER_PROVIDED" | "CONTRACT_WIZARD";
|
|
5
8
|
export declare const ContractDocumentType: {
|
|
6
9
|
readonly NoContract: "NO_CONTRACT";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ContractType = "FIXED_RATE" | "FLEXIBLE_RATE" | "MILESTONE";
|
|
5
|
+
export declare const ContractType: {
|
|
6
|
+
readonly FixedRate: "FIXED_RATE";
|
|
7
|
+
readonly FlexibleRate: "FLEXIBLE_RATE";
|
|
8
|
+
readonly Milestone: "MILESTONE";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ContractType = void 0;
|
|
7
|
+
exports.ContractType = {
|
|
8
|
+
FixedRate: "FIXED_RATE",
|
|
9
|
+
FlexibleRate: "FLEXIBLE_RATE",
|
|
10
|
+
Milestone: "MILESTONE",
|
|
11
|
+
};
|
package/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
|
+
export declare type MonthlyPayCycleEnd = TheraApi.model.thera.MonthlyPayCycleEnd.DayOfMonth | TheraApi.model.thera.MonthlyPayCycleEnd.LastDayOfMonth | TheraApi.model.thera.MonthlyPayCycleEnd.LastDayOfWeekOfMonth;
|
|
6
|
+
export declare namespace MonthlyPayCycleEnd {
|
|
7
|
+
interface DayOfMonth {
|
|
8
|
+
type: "dayOfMonth";
|
|
9
|
+
value: number;
|
|
10
|
+
}
|
|
11
|
+
interface LastDayOfMonth extends TheraApi.model.thera.LastDayOfMonth {
|
|
12
|
+
type: "lastDayOfMonth";
|
|
13
|
+
}
|
|
14
|
+
interface LastDayOfWeekOfMonth {
|
|
15
|
+
type: "lastDayOfWeekOfMonth";
|
|
16
|
+
value: TheraApi.model.thera.DayOfWeek;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as TheraApi from "
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
5
|
export interface PayCycle {
|
|
6
6
|
/** This field is currently not used. Adheres to Timezone DB version tzdata2022g. */
|
|
7
7
|
timezone: string;
|
|
8
8
|
cycleStartDate: string;
|
|
9
|
-
cycleEnd: TheraApi.
|
|
9
|
+
cycleEnd: TheraApi.model.thera.PayCycleEnd;
|
|
10
10
|
paymentDueDays: number;
|
|
11
|
+
firstPayDate: string;
|
|
11
12
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
|
+
export declare type PayCycleEnd = TheraApi.model.thera.PayCycleEnd.Weekly | TheraApi.model.thera.PayCycleEnd.Biweekly | TheraApi.model.thera.PayCycleEnd.Monthly | TheraApi.model.thera.PayCycleEnd.Semimonthly;
|
|
6
|
+
export declare namespace PayCycleEnd {
|
|
7
|
+
interface Weekly extends TheraApi.model.thera.WeeklyPayCycleEnd {
|
|
8
|
+
type: "weekly";
|
|
9
|
+
}
|
|
10
|
+
interface Biweekly extends TheraApi.model.thera.BiWeeklyPayCycleEnd {
|
|
11
|
+
type: "biweekly";
|
|
12
|
+
}
|
|
13
|
+
interface Monthly {
|
|
14
|
+
type: "monthly";
|
|
15
|
+
value: TheraApi.model.thera.MonthlyPayCycleEnd;
|
|
16
|
+
}
|
|
17
|
+
interface Semimonthly {
|
|
18
|
+
type: "semimonthly";
|
|
19
|
+
value: TheraApi.model.thera.SemiMonthlyPayCycleEnd;
|
|
20
|
+
}
|
|
21
|
+
}
|
package/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
|
+
export declare type SemiMonthlyPayCycleEnd = TheraApi.model.thera.SemiMonthlyPayCycleEnd.FifteenthAndEndOfMonth
|
|
6
|
+
/**
|
|
7
|
+
* Between 1 and 14, the 2nd pay cycle of the ends on that day + 15 */
|
|
8
|
+
| TheraApi.model.thera.SemiMonthlyPayCycleEnd.DayOfMonth;
|
|
9
|
+
export declare namespace SemiMonthlyPayCycleEnd {
|
|
10
|
+
interface FifteenthAndEndOfMonth extends TheraApi.model.thera.FifteenthAndEndOfMonth {
|
|
11
|
+
type: "fifteenthAndEndOfMonth";
|
|
12
|
+
}
|
|
13
|
+
interface DayOfMonth {
|
|
14
|
+
type: "dayOfMonth";
|
|
15
|
+
value: number;
|
|
16
|
+
}
|
|
17
|
+
}
|