@thera-hr/api-sdk 0.0.3679 → 0.0.3790
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -20
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +195 -8
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +5 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
- package/api/resources/db/resources/contract/types/Contract.d.ts +1 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -20
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +195 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
- package/dist/api/resources/db/resources/contract/types/Contract.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.js +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +9 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +3 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +1 -4
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +44 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +3 -1
- package/dist/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
- package/dist/serialization/resources/db/resources/contract/types/Contract.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +33 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +33 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +33 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.js +2 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +4 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +9 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +33 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +3 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +43 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +31 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +31 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +42 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +42 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +1 -4
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +33 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +44 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +3 -1
- package/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
- package/serialization/resources/db/resources/contract/types/Contract.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +0 -13
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{types/VerifyMicrodepositRequest.js → client/requests/CreateStripePaymentMethodFromPlaidRequest.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js} +0 -0
@@ -59,7 +59,7 @@ class AipriseWebhookApi {
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
60
60
|
"X-Fern-Language": "JavaScript",
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
@@ -56,7 +56,7 @@ class File_ {
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
57
57
|
"X-Fern-Language": "JavaScript",
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
59
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
@@ -97,7 +97,7 @@ class File_ {
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
98
98
|
"X-Fern-Language": "JavaScript",
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
100
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
101
101
|
},
|
102
102
|
contentType: "application/json",
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
@@ -138,7 +138,7 @@ class File_ {
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
139
139
|
"X-Fern-Language": "JavaScript",
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
141
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
timeoutMs: 60000,
|
@@ -181,7 +181,7 @@ class File_ {
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
182
182
|
"X-Fern-Language": "JavaScript",
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
184
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
185
185
|
},
|
186
186
|
contentType: "application/json",
|
187
187
|
timeoutMs: 60000,
|
package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
@@ -27,7 +27,7 @@ export declare class BankApi {
|
|
27
27
|
/**
|
28
28
|
* Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
|
29
29
|
*/
|
30
|
-
sendMicrodeposit(): Promise<void>;
|
30
|
+
sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest): Promise<void>;
|
31
31
|
/**
|
32
32
|
* Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
|
33
33
|
*/
|
@@ -55,6 +55,6 @@ export declare class BankApi {
|
|
55
55
|
getWorkerTransactions(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
|
56
56
|
getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
|
57
57
|
setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
|
58
|
-
createStripePaymentMethodFromPlaid(): Promise<void>;
|
58
|
+
createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest): Promise<void>;
|
59
59
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
60
60
|
}
|
@@ -34,6 +34,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
34
34
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
35
|
});
|
36
36
|
};
|
37
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
38
|
+
var t = {};
|
39
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
40
|
+
t[p] = s[p];
|
41
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
42
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
43
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
44
|
+
t[p[i]] = s[p[i]];
|
45
|
+
}
|
46
|
+
return t;
|
47
|
+
};
|
37
48
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
49
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
50
|
};
|
@@ -65,7 +76,7 @@ class BankApi {
|
|
65
76
|
Authorization: yield this._getAuthorizationHeader(),
|
66
77
|
"X-Fern-Language": "JavaScript",
|
67
78
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
79
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
69
80
|
},
|
70
81
|
contentType: "application/json",
|
71
82
|
queryParameters: _queryParams,
|
@@ -112,7 +123,7 @@ class BankApi {
|
|
112
123
|
Authorization: yield this._getAuthorizationHeader(),
|
113
124
|
"X-Fern-Language": "JavaScript",
|
114
125
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
115
|
-
"X-Fern-SDK-Version": "0.0.
|
126
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
116
127
|
},
|
117
128
|
contentType: "application/json",
|
118
129
|
body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
@@ -149,7 +160,7 @@ class BankApi {
|
|
149
160
|
*/
|
150
161
|
verifyBankSignup(request = {}) {
|
151
162
|
return __awaiter(this, void 0, void 0, function* () {
|
152
|
-
const { redirectUri } = request;
|
163
|
+
const { redirectUri } = request, _body = __rest(request, ["redirectUri"]);
|
153
164
|
const _queryParams = new url_search_params_1.default();
|
154
165
|
if (redirectUri != null) {
|
155
166
|
_queryParams.append("redirectUri", redirectUri);
|
@@ -161,10 +172,13 @@ class BankApi {
|
|
161
172
|
Authorization: yield this._getAuthorizationHeader(),
|
162
173
|
"X-Fern-Language": "JavaScript",
|
163
174
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
164
|
-
"X-Fern-SDK-Version": "0.0.
|
175
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
165
176
|
},
|
166
177
|
contentType: "application/json",
|
167
178
|
queryParameters: _queryParams,
|
179
|
+
body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(_body, {
|
180
|
+
unrecognizedObjectKeys: "strip",
|
181
|
+
}),
|
168
182
|
timeoutMs: 60000,
|
169
183
|
});
|
170
184
|
if (_response.ok) {
|
@@ -199,7 +213,7 @@ class BankApi {
|
|
199
213
|
/**
|
200
214
|
* Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
|
201
215
|
*/
|
202
|
-
sendMicrodeposit() {
|
216
|
+
sendMicrodeposit(request = {}) {
|
203
217
|
return __awaiter(this, void 0, void 0, function* () {
|
204
218
|
const _response = yield core.fetcher({
|
205
219
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/microdeposit/request"),
|
@@ -208,9 +222,12 @@ class BankApi {
|
|
208
222
|
Authorization: yield this._getAuthorizationHeader(),
|
209
223
|
"X-Fern-Language": "JavaScript",
|
210
224
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
211
|
-
"X-Fern-SDK-Version": "0.0.
|
225
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
212
226
|
},
|
213
227
|
contentType: "application/json",
|
228
|
+
body: yield serializers.api.thera.bank.SendMicroDepositRequest.jsonOrThrow(request, {
|
229
|
+
unrecognizedObjectKeys: "strip",
|
230
|
+
}),
|
214
231
|
timeoutMs: 60000,
|
215
232
|
});
|
216
233
|
if (_response.ok) {
|
@@ -249,7 +266,7 @@ class BankApi {
|
|
249
266
|
Authorization: yield this._getAuthorizationHeader(),
|
250
267
|
"X-Fern-Language": "JavaScript",
|
251
268
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
252
|
-
"X-Fern-SDK-Version": "0.0.
|
269
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
253
270
|
},
|
254
271
|
contentType: "application/json",
|
255
272
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
@@ -296,7 +313,7 @@ class BankApi {
|
|
296
313
|
Authorization: yield this._getAuthorizationHeader(),
|
297
314
|
"X-Fern-Language": "JavaScript",
|
298
315
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
299
|
-
"X-Fern-SDK-Version": "0.0.
|
316
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
300
317
|
},
|
301
318
|
contentType: "application/json",
|
302
319
|
queryParameters: _queryParams,
|
@@ -346,7 +363,7 @@ class BankApi {
|
|
346
363
|
Authorization: yield this._getAuthorizationHeader(),
|
347
364
|
"X-Fern-Language": "JavaScript",
|
348
365
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
349
|
-
"X-Fern-SDK-Version": "0.0.
|
366
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
350
367
|
},
|
351
368
|
contentType: "application/json",
|
352
369
|
queryParameters: _queryParams,
|
@@ -393,7 +410,7 @@ class BankApi {
|
|
393
410
|
Authorization: yield this._getAuthorizationHeader(),
|
394
411
|
"X-Fern-Language": "JavaScript",
|
395
412
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
396
|
-
"X-Fern-SDK-Version": "0.0.
|
413
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
397
414
|
},
|
398
415
|
contentType: "application/json",
|
399
416
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -442,7 +459,7 @@ class BankApi {
|
|
442
459
|
Authorization: yield this._getAuthorizationHeader(),
|
443
460
|
"X-Fern-Language": "JavaScript",
|
444
461
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
445
|
-
"X-Fern-SDK-Version": "0.0.
|
462
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
446
463
|
},
|
447
464
|
contentType: "application/json",
|
448
465
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -488,7 +505,7 @@ class BankApi {
|
|
488
505
|
Authorization: yield this._getAuthorizationHeader(),
|
489
506
|
"X-Fern-Language": "JavaScript",
|
490
507
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
491
|
-
"X-Fern-SDK-Version": "0.0.
|
508
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
492
509
|
},
|
493
510
|
contentType: "application/json",
|
494
511
|
timeoutMs: 60000,
|
@@ -531,7 +548,7 @@ class BankApi {
|
|
531
548
|
Authorization: yield this._getAuthorizationHeader(),
|
532
549
|
"X-Fern-Language": "JavaScript",
|
533
550
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
534
|
-
"X-Fern-SDK-Version": "0.0.
|
551
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
535
552
|
},
|
536
553
|
contentType: "application/json",
|
537
554
|
body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
@@ -577,7 +594,7 @@ class BankApi {
|
|
577
594
|
Authorization: yield this._getAuthorizationHeader(),
|
578
595
|
"X-Fern-Language": "JavaScript",
|
579
596
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
580
|
-
"X-Fern-SDK-Version": "0.0.
|
597
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
581
598
|
},
|
582
599
|
contentType: "application/json",
|
583
600
|
body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
@@ -623,7 +640,7 @@ class BankApi {
|
|
623
640
|
Authorization: yield this._getAuthorizationHeader(),
|
624
641
|
"X-Fern-Language": "JavaScript",
|
625
642
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
626
|
-
"X-Fern-SDK-Version": "0.0.
|
643
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
627
644
|
},
|
628
645
|
contentType: "application/json",
|
629
646
|
timeoutMs: 60000,
|
@@ -666,7 +683,7 @@ class BankApi {
|
|
666
683
|
Authorization: yield this._getAuthorizationHeader(),
|
667
684
|
"X-Fern-Language": "JavaScript",
|
668
685
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
669
|
-
"X-Fern-SDK-Version": "0.0.
|
686
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
670
687
|
},
|
671
688
|
contentType: "application/json",
|
672
689
|
timeoutMs: 60000,
|
@@ -714,7 +731,7 @@ class BankApi {
|
|
714
731
|
Authorization: yield this._getAuthorizationHeader(),
|
715
732
|
"X-Fern-Language": "JavaScript",
|
716
733
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
717
|
-
"X-Fern-SDK-Version": "0.0.
|
734
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
718
735
|
},
|
719
736
|
contentType: "application/json",
|
720
737
|
queryParameters: _queryParams,
|
@@ -758,7 +775,7 @@ class BankApi {
|
|
758
775
|
Authorization: yield this._getAuthorizationHeader(),
|
759
776
|
"X-Fern-Language": "JavaScript",
|
760
777
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
761
|
-
"X-Fern-SDK-Version": "0.0.
|
778
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
762
779
|
},
|
763
780
|
contentType: "application/json",
|
764
781
|
body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
@@ -795,7 +812,7 @@ class BankApi {
|
|
795
812
|
}
|
796
813
|
});
|
797
814
|
}
|
798
|
-
createStripePaymentMethodFromPlaid() {
|
815
|
+
createStripePaymentMethodFromPlaid(request = {}) {
|
799
816
|
return __awaiter(this, void 0, void 0, function* () {
|
800
817
|
const _response = yield core.fetcher({
|
801
818
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/stripe/payment-method"),
|
@@ -804,9 +821,12 @@ class BankApi {
|
|
804
821
|
Authorization: yield this._getAuthorizationHeader(),
|
805
822
|
"X-Fern-Language": "JavaScript",
|
806
823
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
807
|
-
"X-Fern-SDK-Version": "0.0.
|
824
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
808
825
|
},
|
809
826
|
contentType: "application/json",
|
827
|
+
body: yield serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
828
|
+
unrecognizedObjectKeys: "strip",
|
829
|
+
}),
|
810
830
|
timeoutMs: 60000,
|
811
831
|
});
|
812
832
|
if (_response.ok) {
|
@@ -1,7 +1,10 @@
|
|
1
1
|
export { GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
|
2
2
|
export { VerifyAccountSignupRequest } from "./VerifyAccountSignupRequest";
|
3
|
+
export { SendMicroDepositRequest } from "./SendMicroDepositRequest";
|
4
|
+
export { VerifyMicrodepositRequest } from "./VerifyMicrodepositRequest";
|
3
5
|
export { GetWithdrawalMethodCurrenciesRequest } from "./GetWithdrawalMethodCurrenciesRequest";
|
4
6
|
export { GetWithdrawalMinimumByCurrencyRequest } from "./GetWithdrawalMinimumByCurrencyRequest";
|
5
7
|
export { EditWithdrawalMethodRequest } from "./EditWithdrawalMethodRequest";
|
6
8
|
export { GetCurrencyConversionRequest } from "./GetCurrencyConversionRequest";
|
7
9
|
export { SetAutoWithdrawalRequest } from "./SetAutoWithdrawalRequest";
|
10
|
+
export { CreateStripePaymentMethodFromPlaidRequest } from "./CreateStripePaymentMethodFromPlaidRequest";
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./VerifyMicrodepositRequest"), exports);
|
18
17
|
__exportStar(require("./CompleteAccountSignupRequest"), exports);
|
19
18
|
__exportStar(require("./GetSandboxPublicKey"), exports);
|
20
19
|
__exportStar(require("./GetBankAccountSignupKey"), exports);
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts
CHANGED
@@ -36,6 +36,10 @@ export declare class CompanyApi {
|
|
36
36
|
* < Add org admins, with ultimate admin permissions across the platform. These users must already be managers of the org.
|
37
37
|
*/
|
38
38
|
changeContractTeam(companyId: string, contractId: string, request: TheraApi.api.thera.company.ChangeContractTeamRequest): Promise<TheraApi.api.thera.company.ChangeContractTeamResponse>;
|
39
|
+
/**
|
40
|
+
* Get all of the teams and their contracts for a company
|
41
|
+
*/
|
42
|
+
getTeams(companyId: string): Promise<TheraApi.api.thera.company.GetTeamsResponse>;
|
39
43
|
/**
|
40
44
|
* Get all of the managers for a company
|
41
45
|
*/
|
@@ -44,5 +48,17 @@ export declare class CompanyApi {
|
|
44
48
|
* Create a team within a company. At least one Team Admin must be added.
|
45
49
|
*/
|
46
50
|
createTeam(companyId: string, request: TheraApi.api.thera.company.CreateTeamRequest): Promise<TheraApi.api.thera.company.CreateTeamResponse>;
|
51
|
+
/**
|
52
|
+
* Delete a team. All contracts must be removed from this team first
|
53
|
+
*/
|
54
|
+
deleteTeam(companyId: string, teamId: string): Promise<TheraApi.api.thera.company.DeleteTeamResponse>;
|
55
|
+
/**
|
56
|
+
* Change details related to a team. For now, you can just edit its name.
|
57
|
+
*/
|
58
|
+
editTeam(companyId: string, teamId: string, request: TheraApi.api.thera.company.EditTeamRequest): Promise<TheraApi.api.thera.company.EditTeamResponse>;
|
59
|
+
/**
|
60
|
+
* Gets all team and org permissions across all orgs for a given user
|
61
|
+
*/
|
62
|
+
getAllCompanyPermissionsForUser(userId: string): Promise<TheraApi.api.thera.company.GetAllCompanyPermissionsForUserResponse>;
|
47
63
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
48
64
|
}
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js
CHANGED
@@ -65,7 +65,7 @@ class CompanyApi {
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
66
66
|
"X-Fern-Language": "JavaScript",
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
68
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
69
69
|
},
|
70
70
|
contentType: "application/json",
|
71
71
|
queryParameters: _queryParams,
|
@@ -115,7 +115,7 @@ class CompanyApi {
|
|
115
115
|
Authorization: yield this._getAuthorizationHeader(),
|
116
116
|
"X-Fern-Language": "JavaScript",
|
117
117
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
118
|
-
"X-Fern-SDK-Version": "0.0.
|
118
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
119
119
|
},
|
120
120
|
contentType: "application/json",
|
121
121
|
body: yield serializers.api.thera.company.InviteManagerRequest.jsonOrThrow(request, {
|
@@ -164,7 +164,7 @@ class CompanyApi {
|
|
164
164
|
Authorization: yield this._getAuthorizationHeader(),
|
165
165
|
"X-Fern-Language": "JavaScript",
|
166
166
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
167
|
-
"X-Fern-SDK-Version": "0.0.
|
167
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
168
168
|
},
|
169
169
|
contentType: "application/json",
|
170
170
|
body: yield serializers.api.thera.company.EditManagerRolesRequest.jsonOrThrow(request, {
|
@@ -213,7 +213,7 @@ class CompanyApi {
|
|
213
213
|
Authorization: yield this._getAuthorizationHeader(),
|
214
214
|
"X-Fern-Language": "JavaScript",
|
215
215
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
216
|
-
"X-Fern-SDK-Version": "0.0.
|
216
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
217
217
|
},
|
218
218
|
contentType: "application/json",
|
219
219
|
body: yield serializers.api.thera.company.EditOrgAdminsRequest.jsonOrThrow(request, {
|
@@ -262,7 +262,7 @@ class CompanyApi {
|
|
262
262
|
Authorization: yield this._getAuthorizationHeader(),
|
263
263
|
"X-Fern-Language": "JavaScript",
|
264
264
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
265
|
-
"X-Fern-SDK-Version": "0.0.
|
265
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
266
266
|
},
|
267
267
|
contentType: "application/json",
|
268
268
|
timeoutMs: 60000,
|
@@ -308,7 +308,7 @@ class CompanyApi {
|
|
308
308
|
Authorization: yield this._getAuthorizationHeader(),
|
309
309
|
"X-Fern-Language": "JavaScript",
|
310
310
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
311
|
-
"X-Fern-SDK-Version": "0.0.
|
311
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
312
312
|
},
|
313
313
|
contentType: "application/json",
|
314
314
|
body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
|
@@ -345,6 +345,52 @@ class CompanyApi {
|
|
345
345
|
}
|
346
346
|
});
|
347
347
|
}
|
348
|
+
/**
|
349
|
+
* Get all of the teams and their contracts for a company
|
350
|
+
*/
|
351
|
+
getTeams(companyId) {
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
353
|
+
const _response = yield core.fetcher({
|
354
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams`),
|
355
|
+
method: "GET",
|
356
|
+
headers: {
|
357
|
+
Authorization: yield this._getAuthorizationHeader(),
|
358
|
+
"X-Fern-Language": "JavaScript",
|
359
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
360
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
361
|
+
},
|
362
|
+
contentType: "application/json",
|
363
|
+
timeoutMs: 60000,
|
364
|
+
});
|
365
|
+
if (_response.ok) {
|
366
|
+
return yield serializers.api.thera.company.GetTeamsResponse.parseOrThrow(_response.body, {
|
367
|
+
unrecognizedObjectKeys: "passthrough",
|
368
|
+
allowUnrecognizedUnionMembers: true,
|
369
|
+
allowUnrecognizedEnumValues: true,
|
370
|
+
breadcrumbsPrefix: ["response"],
|
371
|
+
});
|
372
|
+
}
|
373
|
+
if (_response.error.reason === "status-code") {
|
374
|
+
throw new errors.TheraApiError({
|
375
|
+
statusCode: _response.error.statusCode,
|
376
|
+
body: _response.error.body,
|
377
|
+
});
|
378
|
+
}
|
379
|
+
switch (_response.error.reason) {
|
380
|
+
case "non-json":
|
381
|
+
throw new errors.TheraApiError({
|
382
|
+
statusCode: _response.error.statusCode,
|
383
|
+
body: _response.error.rawBody,
|
384
|
+
});
|
385
|
+
case "timeout":
|
386
|
+
throw new errors.TheraApiTimeoutError();
|
387
|
+
case "unknown":
|
388
|
+
throw new errors.TheraApiError({
|
389
|
+
message: _response.error.errorMessage,
|
390
|
+
});
|
391
|
+
}
|
392
|
+
});
|
393
|
+
}
|
348
394
|
/**
|
349
395
|
* Get all of the managers for a company
|
350
396
|
*/
|
@@ -357,7 +403,7 @@ class CompanyApi {
|
|
357
403
|
Authorization: yield this._getAuthorizationHeader(),
|
358
404
|
"X-Fern-Language": "JavaScript",
|
359
405
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
360
|
-
"X-Fern-SDK-Version": "0.0.
|
406
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
361
407
|
},
|
362
408
|
contentType: "application/json",
|
363
409
|
timeoutMs: 60000,
|
@@ -403,7 +449,7 @@ class CompanyApi {
|
|
403
449
|
Authorization: yield this._getAuthorizationHeader(),
|
404
450
|
"X-Fern-Language": "JavaScript",
|
405
451
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
406
|
-
"X-Fern-SDK-Version": "0.0.
|
452
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
407
453
|
},
|
408
454
|
contentType: "application/json",
|
409
455
|
body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
|
@@ -440,6 +486,147 @@ class CompanyApi {
|
|
440
486
|
}
|
441
487
|
});
|
442
488
|
}
|
489
|
+
/**
|
490
|
+
* Delete a team. All contracts must be removed from this team first
|
491
|
+
*/
|
492
|
+
deleteTeam(companyId, teamId) {
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
494
|
+
const _response = yield core.fetcher({
|
495
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams/${teamId}`),
|
496
|
+
method: "DELETE",
|
497
|
+
headers: {
|
498
|
+
Authorization: yield this._getAuthorizationHeader(),
|
499
|
+
"X-Fern-Language": "JavaScript",
|
500
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
501
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
502
|
+
},
|
503
|
+
contentType: "application/json",
|
504
|
+
timeoutMs: 60000,
|
505
|
+
});
|
506
|
+
if (_response.ok) {
|
507
|
+
return yield serializers.api.thera.company.DeleteTeamResponse.parseOrThrow(_response.body, {
|
508
|
+
unrecognizedObjectKeys: "passthrough",
|
509
|
+
allowUnrecognizedUnionMembers: true,
|
510
|
+
allowUnrecognizedEnumValues: true,
|
511
|
+
breadcrumbsPrefix: ["response"],
|
512
|
+
});
|
513
|
+
}
|
514
|
+
if (_response.error.reason === "status-code") {
|
515
|
+
throw new errors.TheraApiError({
|
516
|
+
statusCode: _response.error.statusCode,
|
517
|
+
body: _response.error.body,
|
518
|
+
});
|
519
|
+
}
|
520
|
+
switch (_response.error.reason) {
|
521
|
+
case "non-json":
|
522
|
+
throw new errors.TheraApiError({
|
523
|
+
statusCode: _response.error.statusCode,
|
524
|
+
body: _response.error.rawBody,
|
525
|
+
});
|
526
|
+
case "timeout":
|
527
|
+
throw new errors.TheraApiTimeoutError();
|
528
|
+
case "unknown":
|
529
|
+
throw new errors.TheraApiError({
|
530
|
+
message: _response.error.errorMessage,
|
531
|
+
});
|
532
|
+
}
|
533
|
+
});
|
534
|
+
}
|
535
|
+
/**
|
536
|
+
* Change details related to a team. For now, you can just edit its name.
|
537
|
+
*/
|
538
|
+
editTeam(companyId, teamId, request) {
|
539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
540
|
+
const _response = yield core.fetcher({
|
541
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams/${teamId}`),
|
542
|
+
method: "PATCH",
|
543
|
+
headers: {
|
544
|
+
Authorization: yield this._getAuthorizationHeader(),
|
545
|
+
"X-Fern-Language": "JavaScript",
|
546
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
547
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
548
|
+
},
|
549
|
+
contentType: "application/json",
|
550
|
+
body: yield serializers.api.thera.company.EditTeamRequest.jsonOrThrow(request, {
|
551
|
+
unrecognizedObjectKeys: "strip",
|
552
|
+
}),
|
553
|
+
timeoutMs: 60000,
|
554
|
+
});
|
555
|
+
if (_response.ok) {
|
556
|
+
return yield serializers.api.thera.company.EditTeamResponse.parseOrThrow(_response.body, {
|
557
|
+
unrecognizedObjectKeys: "passthrough",
|
558
|
+
allowUnrecognizedUnionMembers: true,
|
559
|
+
allowUnrecognizedEnumValues: true,
|
560
|
+
breadcrumbsPrefix: ["response"],
|
561
|
+
});
|
562
|
+
}
|
563
|
+
if (_response.error.reason === "status-code") {
|
564
|
+
throw new errors.TheraApiError({
|
565
|
+
statusCode: _response.error.statusCode,
|
566
|
+
body: _response.error.body,
|
567
|
+
});
|
568
|
+
}
|
569
|
+
switch (_response.error.reason) {
|
570
|
+
case "non-json":
|
571
|
+
throw new errors.TheraApiError({
|
572
|
+
statusCode: _response.error.statusCode,
|
573
|
+
body: _response.error.rawBody,
|
574
|
+
});
|
575
|
+
case "timeout":
|
576
|
+
throw new errors.TheraApiTimeoutError();
|
577
|
+
case "unknown":
|
578
|
+
throw new errors.TheraApiError({
|
579
|
+
message: _response.error.errorMessage,
|
580
|
+
});
|
581
|
+
}
|
582
|
+
});
|
583
|
+
}
|
584
|
+
/**
|
585
|
+
* Gets all team and org permissions across all orgs for a given user
|
586
|
+
*/
|
587
|
+
getAllCompanyPermissionsForUser(userId) {
|
588
|
+
return __awaiter(this, void 0, void 0, function* () {
|
589
|
+
const _response = yield core.fetcher({
|
590
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `users/${userId}/company-permissions`),
|
591
|
+
method: "POST",
|
592
|
+
headers: {
|
593
|
+
Authorization: yield this._getAuthorizationHeader(),
|
594
|
+
"X-Fern-Language": "JavaScript",
|
595
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
596
|
+
"X-Fern-SDK-Version": "0.0.3790",
|
597
|
+
},
|
598
|
+
contentType: "application/json",
|
599
|
+
timeoutMs: 60000,
|
600
|
+
});
|
601
|
+
if (_response.ok) {
|
602
|
+
return yield serializers.api.thera.company.GetAllCompanyPermissionsForUserResponse.parseOrThrow(_response.body, {
|
603
|
+
unrecognizedObjectKeys: "passthrough",
|
604
|
+
allowUnrecognizedUnionMembers: true,
|
605
|
+
allowUnrecognizedEnumValues: true,
|
606
|
+
breadcrumbsPrefix: ["response"],
|
607
|
+
});
|
608
|
+
}
|
609
|
+
if (_response.error.reason === "status-code") {
|
610
|
+
throw new errors.TheraApiError({
|
611
|
+
statusCode: _response.error.statusCode,
|
612
|
+
body: _response.error.body,
|
613
|
+
});
|
614
|
+
}
|
615
|
+
switch (_response.error.reason) {
|
616
|
+
case "non-json":
|
617
|
+
throw new errors.TheraApiError({
|
618
|
+
statusCode: _response.error.statusCode,
|
619
|
+
body: _response.error.rawBody,
|
620
|
+
});
|
621
|
+
case "timeout":
|
622
|
+
throw new errors.TheraApiTimeoutError();
|
623
|
+
case "unknown":
|
624
|
+
throw new errors.TheraApiError({
|
625
|
+
message: _response.error.errorMessage,
|
626
|
+
});
|
627
|
+
}
|
628
|
+
});
|
629
|
+
}
|
443
630
|
_getAuthorizationHeader() {
|
444
631
|
return __awaiter(this, void 0, void 0, function* () {
|
445
632
|
const bearer = yield core.Supplier.get(this._options.token);
|