@thera-hr/api-sdk 0.0.1061 → 0.0.1284
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/index.d.ts +1 -0
- package/api/resources/api/resources/index.js +2 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +2 -1
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +12 -0
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
- package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
- package/api/resources/api/resources/services/resources/file/client/Client.js +44 -3
- package/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +6 -0
- package/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +5 -0
- package/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/api/resources/api/resources/services/resources/file/types/index.js +1 -0
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/client/Client.d.ts +6 -0
- package/api/resources/api/resources/thera/client/Client.js +10 -0
- package/api/resources/api/resources/thera/resources/address/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/address/index.js +17 -0
- package/api/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
- package/api/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js +5 -0
- package/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
- package/api/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/address/resources/index.js +31 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/company/client/Client.js +18 -0
- package/api/resources/api/resources/thera/resources/company/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/company/index.js +18 -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 +17 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +12 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +92 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
- package/api/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
- package/api/resources/api/resources/thera/resources/company/resources/index.js +33 -0
- package/api/resources/api/resources/thera/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/index.js +4 -1
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/payroll/client/Client.js +18 -0
- package/api/resources/api/resources/thera/resources/payroll/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/payroll/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/payroll/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/payroll/index.js +18 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +94 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
- package/api/resources/api/resources/zeal/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/index.js +17 -0
- package/api/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/resources/company/index.js +17 -0
- package/api/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
- package/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +8 -0
- package/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +5 -0
- package/api/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
- package/api/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
- package/api/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
- package/api/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
- package/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +7 -0
- package/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +5 -0
- package/api/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
- package/api/resources/api/resources/zeal/resources/index.d.ts +1 -0
- package/api/resources/api/resources/zeal/resources/index.js +27 -0
- package/api/resources/db/resources/employment/types/Employment.d.ts +1 -3
- package/api/resources/db/resources/employment/types/EorDetails.d.ts +7 -0
- package/api/resources/db/resources/employment/types/EorDetails.js +5 -0
- package/api/resources/db/resources/employment/types/EorPayslip.d.ts +9 -0
- package/api/resources/db/resources/employment/types/EorPayslip.js +5 -0
- package/api/resources/db/resources/employment/types/index.d.ts +2 -0
- package/api/resources/db/resources/employment/types/index.js +2 -0
- package/dist/api/resources/api/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/index.js +2 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +2 -1
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +12 -0
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +44 -3
- package/dist/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +5 -0
- package/dist/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/services/resources/file/types/index.js +1 -0
- 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 +6 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +10 -0
- package/dist/api/resources/api/resources/thera/resources/address/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/address/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/address/resources/index.js +31 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/company/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/index.js +18 -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 +17 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +12 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +92 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.js +33 -0
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +4 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +94 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/resources/company/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +5 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +7 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +5 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
- package/dist/api/resources/api/resources/zeal/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/zeal/resources/index.js +27 -0
- package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -3
- package/dist/api/resources/db/resources/employment/types/EorDetails.d.ts +7 -0
- package/dist/api/resources/db/resources/employment/types/EorDetails.js +5 -0
- package/dist/api/resources/db/resources/employment/types/EorPayslip.d.ts +9 -0
- package/dist/api/resources/db/resources/employment/types/EorPayslip.js +5 -0
- package/dist/api/resources/db/resources/employment/types/index.d.ts +2 -0
- package/dist/api/resources/db/resources/employment/types/index.js +2 -0
- package/dist/serialization/resources/api/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/index.js +2 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +1 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +1 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +1 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +31 -0
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +33 -0
- package/dist/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/services/resources/file/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.js +38 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +35 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +37 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.js +4 -1
- package/dist/serialization/resources/api/resources/thera/resources/payroll/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +13 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +34 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +13 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +34 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/zeal/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/zeal/resources/index.js +27 -0
- package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -3
- package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -3
- package/dist/serialization/resources/db/resources/employment/types/EorDetails.d.ts +12 -0
- package/dist/serialization/resources/db/resources/employment/types/EorDetails.js +33 -0
- package/dist/serialization/resources/db/resources/employment/types/EorPayslip.d.ts +15 -0
- package/dist/serialization/resources/db/resources/employment/types/EorPayslip.js +36 -0
- package/dist/serialization/resources/db/resources/employment/types/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/employment/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/index.js +2 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +1 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +1 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +1 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +31 -0
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
- package/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +12 -0
- package/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +33 -0
- package/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/services/resources/file/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/address/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/address/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +17 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.js +38 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/address/resources/index.js +31 -0
- package/serialization/resources/api/resources/thera/resources/company/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +31 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +35 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +34 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +37 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/index.js +33 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/index.js +4 -1
- package/serialization/resources/api/resources/thera/resources/payroll/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/payroll/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +33 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
- package/serialization/resources/api/resources/zeal/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/index.js +17 -0
- package/serialization/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/resources/company/index.js +17 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +13 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +34 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +13 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +34 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
- package/serialization/resources/api/resources/zeal/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/zeal/resources/index.js +27 -0
- package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -3
- package/serialization/resources/db/resources/employment/types/Employment.js +1 -3
- package/serialization/resources/db/resources/employment/types/EorDetails.d.ts +12 -0
- package/serialization/resources/db/resources/employment/types/EorDetails.js +33 -0
- package/serialization/resources/db/resources/employment/types/EorPayslip.d.ts +15 -0
- package/serialization/resources/db/resources/employment/types/EorPayslip.js +36 -0
- package/serialization/resources/db/resources/employment/types/index.d.ts +2 -0
- package/serialization/resources/db/resources/employment/types/index.js +2 -0
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
|
|
26
|
+
exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
|
|
27
27
|
exports.gusto = __importStar(require("./gusto"));
|
|
28
28
|
exports.request = __importStar(require("./request"));
|
|
29
29
|
exports.response = __importStar(require("./response"));
|
|
30
30
|
exports.services = __importStar(require("./services"));
|
|
31
31
|
exports.test = __importStar(require("./test"));
|
|
32
32
|
exports.thera = __importStar(require("./thera"));
|
|
33
|
+
exports.zeal = __importStar(require("./zeal"));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../../..";
|
|
4
5
|
export interface ReportingPeriod {
|
|
5
6
|
reportingPeriodId: string;
|
|
6
|
-
paySchedule:
|
|
7
|
+
paySchedule: TheraApi.api.request.zeal.check.ReportingPeriodPaySchedule;
|
|
7
8
|
start: string;
|
|
8
9
|
end: string;
|
|
9
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ReportingPeriodPaySchedule = "weekly" | "biweekly" | "semimonthly" | "monthly";
|
|
5
|
+
export declare const ReportingPeriodPaySchedule: {
|
|
6
|
+
readonly Weekly: "weekly";
|
|
7
|
+
readonly Biweekly: "biweekly";
|
|
8
|
+
readonly Semimonthly: "semimonthly";
|
|
9
|
+
readonly Monthly: "monthly";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.ReportingPeriodPaySchedule = void 0;
|
|
7
|
+
exports.ReportingPeriodPaySchedule = {
|
|
8
|
+
Weekly: "weekly",
|
|
9
|
+
Biweekly: "biweekly",
|
|
10
|
+
Semimonthly: "semimonthly",
|
|
11
|
+
Monthly: "monthly",
|
|
12
|
+
};
|
|
@@ -15,5 +15,6 @@ export declare class File_ {
|
|
|
15
15
|
attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
|
|
16
16
|
deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
|
|
17
17
|
loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
|
|
18
|
+
loadPayslipFromEorEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadPayslipForEorEmployeeResponse>;
|
|
18
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
19
20
|
}
|
|
@@ -47,7 +47,7 @@ class File_ {
|
|
|
47
47
|
Authorization: await this._getAuthorizationHeader(),
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "0.0.
|
|
50
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
51
51
|
},
|
|
52
52
|
contentType: "application/json",
|
|
53
53
|
body: await serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -86,7 +86,7 @@ class File_ {
|
|
|
86
86
|
Authorization: await this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
89
|
-
"X-Fern-SDK-Version": "0.0.
|
|
89
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
90
90
|
},
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
body: await serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -125,7 +125,7 @@ class File_ {
|
|
|
125
125
|
Authorization: await this._getAuthorizationHeader(),
|
|
126
126
|
"X-Fern-Language": "JavaScript",
|
|
127
127
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
128
|
-
"X-Fern-SDK-Version": "0.0.
|
|
128
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
129
129
|
},
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
timeoutMs: 60000,
|
|
@@ -158,6 +158,47 @@ class File_ {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
async loadPayslipFromEorEmployment(contractId, s3Key) {
|
|
162
|
+
const _response = await core.fetcher({
|
|
163
|
+
url: (0, url_join_1.default)(this.options.environment, `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
|
|
164
|
+
method: "GET",
|
|
165
|
+
headers: {
|
|
166
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
167
|
+
"X-Fern-Language": "JavaScript",
|
|
168
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
169
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
170
|
+
},
|
|
171
|
+
contentType: "application/json",
|
|
172
|
+
timeoutMs: 60000,
|
|
173
|
+
});
|
|
174
|
+
if (_response.ok) {
|
|
175
|
+
return await serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
|
|
176
|
+
unrecognizedObjectKeys: "passthrough",
|
|
177
|
+
allowUnrecognizedUnionMembers: true,
|
|
178
|
+
allowUnrecognizedEnumValues: true,
|
|
179
|
+
breadcrumbsPrefix: ["response"],
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
if (_response.error.reason === "status-code") {
|
|
183
|
+
throw new errors.TheraApiError({
|
|
184
|
+
statusCode: _response.error.statusCode,
|
|
185
|
+
body: _response.error.body,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
switch (_response.error.reason) {
|
|
189
|
+
case "non-json":
|
|
190
|
+
throw new errors.TheraApiError({
|
|
191
|
+
statusCode: _response.error.statusCode,
|
|
192
|
+
body: _response.error.rawBody,
|
|
193
|
+
});
|
|
194
|
+
case "timeout":
|
|
195
|
+
throw new errors.TheraApiTimeoutError();
|
|
196
|
+
case "unknown":
|
|
197
|
+
throw new errors.TheraApiError({
|
|
198
|
+
message: _response.error.errorMessage,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
161
202
|
async _getAuthorizationHeader() {
|
|
162
203
|
const bearer = await core.Supplier.get(this.options.token);
|
|
163
204
|
if (bearer != null) {
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./LoadGenericDocumentFromEmploymentResponse"), exports);
|
|
18
|
+
__exportStar(require("./LoadPayslipForEorEmployeeResponse"), exports);
|
|
@@ -47,7 +47,7 @@ class Invoices {
|
|
|
47
47
|
Authorization: await this._getAuthorizationHeader(),
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "0.0.
|
|
50
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
51
51
|
},
|
|
52
52
|
contentType: "application/json",
|
|
53
53
|
body: await serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../../../core";
|
|
5
5
|
import { Authentication } from "../resources/authentication/client/Client";
|
|
6
|
+
import { Company } from "../resources/company/client/Client";
|
|
7
|
+
import { Payroll } from "../resources/payroll/client/Client";
|
|
6
8
|
export declare namespace Thera {
|
|
7
9
|
interface Options {
|
|
8
10
|
environment: string;
|
|
@@ -14,4 +16,8 @@ export declare class Thera {
|
|
|
14
16
|
constructor(options: Thera.Options);
|
|
15
17
|
protected _authentication: Authentication | undefined;
|
|
16
18
|
get authentication(): Authentication;
|
|
19
|
+
protected _company: Company | undefined;
|
|
20
|
+
get company(): Company;
|
|
21
|
+
protected _payroll: Payroll | undefined;
|
|
22
|
+
get payroll(): Payroll;
|
|
17
23
|
}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Thera = void 0;
|
|
7
7
|
const Client_1 = require("../resources/authentication/client/Client");
|
|
8
|
+
const Client_2 = require("../resources/company/client/Client");
|
|
9
|
+
const Client_3 = require("../resources/payroll/client/Client");
|
|
8
10
|
class Thera {
|
|
9
11
|
options;
|
|
10
12
|
constructor(options) {
|
|
@@ -14,5 +16,13 @@ class Thera {
|
|
|
14
16
|
get authentication() {
|
|
15
17
|
return (this._authentication ??= new Client_1.Authentication(this.options));
|
|
16
18
|
}
|
|
19
|
+
_company;
|
|
20
|
+
get company() {
|
|
21
|
+
return (this._company ??= new Client_2.Company(this.options));
|
|
22
|
+
}
|
|
23
|
+
_payroll;
|
|
24
|
+
get payroll() {
|
|
25
|
+
return (this._payroll ??= new Client_3.Payroll(this.options));
|
|
26
|
+
}
|
|
17
27
|
}
|
|
18
28
|
exports.Thera = 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);
|
package/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Address";
|
|
@@ -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("./Address"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
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.address = void 0;
|
|
30
|
+
exports.address = __importStar(require("./address"));
|
|
31
|
+
__exportStar(require("./address/types"), exports);
|
|
@@ -47,7 +47,7 @@ class GustoAuthentication {
|
|
|
47
47
|
Authorization: await this._getAuthorizationHeader(),
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "0.0.
|
|
50
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
51
51
|
},
|
|
52
52
|
contentType: "application/json",
|
|
53
53
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../core";
|
|
5
|
+
import { CompanyW2PayrollApi } from "../resources/companyW2PayrollApi/client/Client";
|
|
6
|
+
export declare namespace Company {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class Company {
|
|
13
|
+
protected readonly options: Company.Options;
|
|
14
|
+
constructor(options: Company.Options);
|
|
15
|
+
protected _companyW2PayrollApi: CompanyW2PayrollApi | undefined;
|
|
16
|
+
get companyW2PayrollApi(): CompanyW2PayrollApi;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.Company = void 0;
|
|
7
|
+
const Client_1 = require("../resources/companyW2PayrollApi/client/Client");
|
|
8
|
+
class Company {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_companyW2PayrollApi;
|
|
14
|
+
get companyW2PayrollApi() {
|
|
15
|
+
return (this._companyW2PayrollApi ??= new Client_1.CompanyW2PayrollApi(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Company = Company;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type CompanyPayFrequency = "weekly" | "biweekly" | "semimonthly" | "monthly";
|
|
5
|
+
export declare const CompanyPayFrequency: {
|
|
6
|
+
readonly Weekly: "weekly";
|
|
7
|
+
readonly Biweekly: "biweekly";
|
|
8
|
+
readonly Semimonthly: "semimonthly";
|
|
9
|
+
readonly Monthly: "monthly";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.CompanyPayFrequency = void 0;
|
|
7
|
+
exports.CompanyPayFrequency = {
|
|
8
|
+
Weekly: "weekly",
|
|
9
|
+
Biweekly: "biweekly",
|
|
10
|
+
Semimonthly: "semimonthly",
|
|
11
|
+
Monthly: "monthly",
|
|
12
|
+
};
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CompanyPayFrequency";
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js
ADDED
|
@@ -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("./CompanyPayFrequency"), exports);
|
|
@@ -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 CompanyW2PayrollApi {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class CompanyW2PayrollApi {
|
|
13
|
+
protected readonly options: CompanyW2PayrollApi.Options;
|
|
14
|
+
constructor(options: CompanyW2PayrollApi.Options);
|
|
15
|
+
/**
|
|
16
|
+
* IN DEVELOPMENT
|
|
17
|
+
*/
|
|
18
|
+
onboardW2Payroll(request: TheraApi.api.thera.company.OnboardW2PayrollRequest): Promise<void>;
|
|
19
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.CompanyW2PayrollApi = 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 CompanyW2PayrollApi {
|
|
38
|
+
options;
|
|
39
|
+
constructor(options) {
|
|
40
|
+
this.options = options;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* IN DEVELOPMENT
|
|
44
|
+
*/
|
|
45
|
+
async onboardW2Payroll(request) {
|
|
46
|
+
const _response = await core.fetcher({
|
|
47
|
+
url: (0, url_join_1.default)(this.options.environment, "company/w2Payroll"),
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: {
|
|
50
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
51
|
+
"X-Fern-Language": "JavaScript",
|
|
52
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
53
|
+
"X-Fern-SDK-Version": "0.0.1284",
|
|
54
|
+
},
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
body: await serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
|
57
|
+
unrecognizedObjectKeys: "strip",
|
|
58
|
+
}),
|
|
59
|
+
timeoutMs: 60000,
|
|
60
|
+
});
|
|
61
|
+
if (_response.ok) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (_response.error.reason === "status-code") {
|
|
65
|
+
throw new errors.TheraApiError({
|
|
66
|
+
statusCode: _response.error.statusCode,
|
|
67
|
+
body: _response.error.body,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
switch (_response.error.reason) {
|
|
71
|
+
case "non-json":
|
|
72
|
+
throw new errors.TheraApiError({
|
|
73
|
+
statusCode: _response.error.statusCode,
|
|
74
|
+
body: _response.error.rawBody,
|
|
75
|
+
});
|
|
76
|
+
case "timeout":
|
|
77
|
+
throw new errors.TheraApiTimeoutError();
|
|
78
|
+
case "unknown":
|
|
79
|
+
throw new errors.TheraApiError({
|
|
80
|
+
message: _response.error.errorMessage,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
async _getAuthorizationHeader() {
|
|
85
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
86
|
+
if (bearer != null) {
|
|
87
|
+
return `Bearer ${bearer}`;
|
|
88
|
+
}
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.CompanyW2PayrollApi = CompanyW2PayrollApi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|