@thera-hr/api-sdk 0.0.1061 → 0.0.1246
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.js +3 -3
- 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.js +3 -3
- 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/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/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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./OnboardW2PayrollRequest"), exports);
|
|
18
|
+
__exportStar(require("./OnboardW2PayrollUpdateCompany"), exports);
|
|
19
|
+
__exportStar(require("./OnboardW2PayrollSettings"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.companyW2PayrollApi = exports.companyApi = void 0;
|
|
30
|
+
exports.companyApi = __importStar(require("./companyApi"));
|
|
31
|
+
__exportStar(require("./companyApi/types"), exports);
|
|
32
|
+
exports.companyW2PayrollApi = __importStar(require("./companyW2PayrollApi"));
|
|
33
|
+
__exportStar(require("./companyW2PayrollApi/types"), exports);
|
|
@@ -23,5 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.authentication = void 0;
|
|
26
|
+
exports.payroll = exports.company = exports.authentication = exports.address = void 0;
|
|
27
|
+
exports.address = __importStar(require("./address"));
|
|
27
28
|
exports.authentication = __importStar(require("./authentication"));
|
|
29
|
+
exports.company = __importStar(require("./company"));
|
|
30
|
+
exports.payroll = __importStar(require("./payroll"));
|
|
@@ -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 { OncycleApi } from "../resources/oncycleApi/client/Client";
|
|
6
|
+
export declare namespace Payroll {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class Payroll {
|
|
13
|
+
protected readonly options: Payroll.Options;
|
|
14
|
+
constructor(options: Payroll.Options);
|
|
15
|
+
protected _oncycleApi: OncycleApi | undefined;
|
|
16
|
+
get oncycleApi(): OncycleApi;
|
|
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.Payroll = void 0;
|
|
7
|
+
const Client_1 = require("../resources/oncycleApi/client/Client");
|
|
8
|
+
class Payroll {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_oncycleApi;
|
|
14
|
+
get oncycleApi() {
|
|
15
|
+
return (this._oncycleApi ??= new Client_1.OncycleApi(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Payroll = Payroll;
|
|
@@ -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,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.oncycleApi = void 0;
|
|
30
|
+
exports.oncycleApi = __importStar(require("./oncycleApi"));
|
|
31
|
+
__exportStar(require("./oncycleApi/types"), exports);
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts
ADDED
|
@@ -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 OncycleApi {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class OncycleApi {
|
|
13
|
+
protected readonly options: OncycleApi.Options;
|
|
14
|
+
constructor(options: OncycleApi.Options);
|
|
15
|
+
/**
|
|
16
|
+
* IN DEVELOPMENT
|
|
17
|
+
*/
|
|
18
|
+
approveOncycleChecks(companyId: string): Promise<TheraApi.api.thera.payroll.ApproveOnCycleChecksResponse>;
|
|
19
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
|
+
}
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js
ADDED
|
@@ -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.OncycleApi = void 0;
|
|
33
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
34
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
35
|
+
const serializers = __importStar(require("../../../../../../../../../../serialization"));
|
|
36
|
+
const errors = __importStar(require("../../../../../../../../../../errors"));
|
|
37
|
+
class OncycleApi {
|
|
38
|
+
options;
|
|
39
|
+
constructor(options) {
|
|
40
|
+
this.options = options;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* IN DEVELOPMENT
|
|
44
|
+
*/
|
|
45
|
+
async approveOncycleChecks(companyId) {
|
|
46
|
+
const _response = await core.fetcher({
|
|
47
|
+
url: (0, url_join_1.default)(this.options.environment, `companies/${companyId}/w2-payroll/on-cycle-checks/approve`),
|
|
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.1246",
|
|
54
|
+
},
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
timeoutMs: 60000,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return await serializers.api.thera.payroll.ApproveOnCycleChecksResponse.parseOrThrow(_response.body, {
|
|
60
|
+
unrecognizedObjectKeys: "passthrough",
|
|
61
|
+
allowUnrecognizedUnionMembers: true,
|
|
62
|
+
allowUnrecognizedEnumValues: true,
|
|
63
|
+
breadcrumbsPrefix: ["response"],
|
|
64
|
+
});
|
|
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.OncycleApi = OncycleApi;
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts
ADDED
|
@@ -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("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ApproveOnCycleChecksResponse";
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/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("./ApproveOnCycleChecksResponse"), exports);
|
|
@@ -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 "./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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ZealCreateCompanyResponse";
|
|
@@ -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("./ZealCreateCompanyResponse"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.model = exports.create = void 0;
|
|
30
|
+
exports.create = __importStar(require("./create"));
|
|
31
|
+
__exportStar(require("./create/types"), exports);
|
|
32
|
+
exports.model = __importStar(require("./model"));
|
|
33
|
+
__exportStar(require("./model/types"), 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 @@
|
|
|
1
|
+
export * from "./Company";
|
|
@@ -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("./Company"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as company from "./company";
|
|
@@ -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.company = void 0;
|
|
27
|
+
exports.company = __importStar(require("./company"));
|
|
@@ -6,8 +6,6 @@ export interface Employment {
|
|
|
6
6
|
companyId: string;
|
|
7
7
|
employeeUserId: string;
|
|
8
8
|
id: string;
|
|
9
|
-
zealEmployeeId: string;
|
|
10
|
-
zealCompanyId: string;
|
|
11
9
|
jobTitle: string;
|
|
12
10
|
employmentStatus: TheraApi.db.EmploymentStatus;
|
|
13
11
|
startDate: string;
|
|
@@ -21,8 +19,8 @@ export interface Employment {
|
|
|
21
19
|
type: TheraApi.db.EmploymentType;
|
|
22
20
|
contractDocumentType: TheraApi.db.ContractDocumentType;
|
|
23
21
|
contractDocumentId: string;
|
|
24
|
-
contractDocumentsRequired: boolean;
|
|
25
22
|
w2Payroll: TheraApi.db.EmploymentW2PayrollDetails;
|
|
23
|
+
eor: TheraApi.db.EorDetails;
|
|
26
24
|
companySigningAuthorityUserId: string;
|
|
27
25
|
documents: TheraApi.db.EmploymentDocuments;
|
|
28
26
|
}
|