@thera-hr/api-sdk 0.0.3790 → 0.0.3795
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 +20 -40
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -3
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
- package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → api/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +0 -16
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -195
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
- 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 +0 -7
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
- 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 +1 -3
- 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 +0 -1
- 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 +20 -40
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
- package/{api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +0 -16
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -195
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
- 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 +0 -7
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
- 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 +1 -3
- 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 +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -4
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -9
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +13 -0
- package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.js +1 -2
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +1 -3
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +4 -1
- 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 +0 -7
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
- 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 +1 -3
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +1 -3
- package/dist/serialization/resources/db/resources/contract/types/Contract.d.ts +0 -1
- package/dist/serialization/resources/db/resources/contract/types/Contract.js +0 -1
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -4
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -9
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +0 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +13 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.js +1 -2
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +1 -3
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +4 -1
- 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 +0 -7
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
- 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 +1 -3
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +1 -3
- package/serialization/resources/db/resources/contract/types/Contract.d.ts +0 -1
- package/serialization/resources/db/resources/contract/types/Contract.js +0 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -8
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -5
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -33
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -33
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +0 -33
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +0 -14
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -33
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -43
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -11
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -31
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -11
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -31
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -42
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -42
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -33
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -14
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -44
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -33
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -33
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +0 -33
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +0 -14
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -33
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -43
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -11
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -31
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -11
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -31
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -42
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -42
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -33
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -14
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -44
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/VerifyMicrodepositRequest.js +0 -0
- /package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/VerifyMicrodepositRequest.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.3795",
|
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.3795",
|
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.3795",
|
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.3795",
|
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.3795",
|
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(
|
30
|
+
sendMicrodeposit(): 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(
|
58
|
+
createStripePaymentMethodFromPlaid(): Promise<void>;
|
59
59
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
60
60
|
}
|
@@ -34,17 +34,6 @@ 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
|
-
};
|
48
37
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
49
38
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
50
39
|
};
|
@@ -76,7 +65,7 @@ class BankApi {
|
|
76
65
|
Authorization: yield this._getAuthorizationHeader(),
|
77
66
|
"X-Fern-Language": "JavaScript",
|
78
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
79
|
-
"X-Fern-SDK-Version": "0.0.
|
68
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
80
69
|
},
|
81
70
|
contentType: "application/json",
|
82
71
|
queryParameters: _queryParams,
|
@@ -123,7 +112,7 @@ class BankApi {
|
|
123
112
|
Authorization: yield this._getAuthorizationHeader(),
|
124
113
|
"X-Fern-Language": "JavaScript",
|
125
114
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
126
|
-
"X-Fern-SDK-Version": "0.0.
|
115
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
127
116
|
},
|
128
117
|
contentType: "application/json",
|
129
118
|
body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
@@ -160,7 +149,7 @@ class BankApi {
|
|
160
149
|
*/
|
161
150
|
verifyBankSignup(request = {}) {
|
162
151
|
return __awaiter(this, void 0, void 0, function* () {
|
163
|
-
const { redirectUri } = request
|
152
|
+
const { redirectUri } = request;
|
164
153
|
const _queryParams = new url_search_params_1.default();
|
165
154
|
if (redirectUri != null) {
|
166
155
|
_queryParams.append("redirectUri", redirectUri);
|
@@ -172,13 +161,10 @@ class BankApi {
|
|
172
161
|
Authorization: yield this._getAuthorizationHeader(),
|
173
162
|
"X-Fern-Language": "JavaScript",
|
174
163
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
175
|
-
"X-Fern-SDK-Version": "0.0.
|
164
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
176
165
|
},
|
177
166
|
contentType: "application/json",
|
178
167
|
queryParameters: _queryParams,
|
179
|
-
body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(_body, {
|
180
|
-
unrecognizedObjectKeys: "strip",
|
181
|
-
}),
|
182
168
|
timeoutMs: 60000,
|
183
169
|
});
|
184
170
|
if (_response.ok) {
|
@@ -213,7 +199,7 @@ class BankApi {
|
|
213
199
|
/**
|
214
200
|
* Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
|
215
201
|
*/
|
216
|
-
sendMicrodeposit(
|
202
|
+
sendMicrodeposit() {
|
217
203
|
return __awaiter(this, void 0, void 0, function* () {
|
218
204
|
const _response = yield core.fetcher({
|
219
205
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/microdeposit/request"),
|
@@ -222,12 +208,9 @@ class BankApi {
|
|
222
208
|
Authorization: yield this._getAuthorizationHeader(),
|
223
209
|
"X-Fern-Language": "JavaScript",
|
224
210
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
225
|
-
"X-Fern-SDK-Version": "0.0.
|
211
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
226
212
|
},
|
227
213
|
contentType: "application/json",
|
228
|
-
body: yield serializers.api.thera.bank.SendMicroDepositRequest.jsonOrThrow(request, {
|
229
|
-
unrecognizedObjectKeys: "strip",
|
230
|
-
}),
|
231
214
|
timeoutMs: 60000,
|
232
215
|
});
|
233
216
|
if (_response.ok) {
|
@@ -266,7 +249,7 @@ class BankApi {
|
|
266
249
|
Authorization: yield this._getAuthorizationHeader(),
|
267
250
|
"X-Fern-Language": "JavaScript",
|
268
251
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
269
|
-
"X-Fern-SDK-Version": "0.0.
|
252
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
270
253
|
},
|
271
254
|
contentType: "application/json",
|
272
255
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
@@ -313,7 +296,7 @@ class BankApi {
|
|
313
296
|
Authorization: yield this._getAuthorizationHeader(),
|
314
297
|
"X-Fern-Language": "JavaScript",
|
315
298
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
316
|
-
"X-Fern-SDK-Version": "0.0.
|
299
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
317
300
|
},
|
318
301
|
contentType: "application/json",
|
319
302
|
queryParameters: _queryParams,
|
@@ -363,7 +346,7 @@ class BankApi {
|
|
363
346
|
Authorization: yield this._getAuthorizationHeader(),
|
364
347
|
"X-Fern-Language": "JavaScript",
|
365
348
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
366
|
-
"X-Fern-SDK-Version": "0.0.
|
349
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
367
350
|
},
|
368
351
|
contentType: "application/json",
|
369
352
|
queryParameters: _queryParams,
|
@@ -410,7 +393,7 @@ class BankApi {
|
|
410
393
|
Authorization: yield this._getAuthorizationHeader(),
|
411
394
|
"X-Fern-Language": "JavaScript",
|
412
395
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
413
|
-
"X-Fern-SDK-Version": "0.0.
|
396
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
414
397
|
},
|
415
398
|
contentType: "application/json",
|
416
399
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -459,7 +442,7 @@ class BankApi {
|
|
459
442
|
Authorization: yield this._getAuthorizationHeader(),
|
460
443
|
"X-Fern-Language": "JavaScript",
|
461
444
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
462
|
-
"X-Fern-SDK-Version": "0.0.
|
445
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
463
446
|
},
|
464
447
|
contentType: "application/json",
|
465
448
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -505,7 +488,7 @@ class BankApi {
|
|
505
488
|
Authorization: yield this._getAuthorizationHeader(),
|
506
489
|
"X-Fern-Language": "JavaScript",
|
507
490
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
508
|
-
"X-Fern-SDK-Version": "0.0.
|
491
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
509
492
|
},
|
510
493
|
contentType: "application/json",
|
511
494
|
timeoutMs: 60000,
|
@@ -548,7 +531,7 @@ class BankApi {
|
|
548
531
|
Authorization: yield this._getAuthorizationHeader(),
|
549
532
|
"X-Fern-Language": "JavaScript",
|
550
533
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
551
|
-
"X-Fern-SDK-Version": "0.0.
|
534
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
552
535
|
},
|
553
536
|
contentType: "application/json",
|
554
537
|
body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
@@ -594,7 +577,7 @@ class BankApi {
|
|
594
577
|
Authorization: yield this._getAuthorizationHeader(),
|
595
578
|
"X-Fern-Language": "JavaScript",
|
596
579
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
597
|
-
"X-Fern-SDK-Version": "0.0.
|
580
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
598
581
|
},
|
599
582
|
contentType: "application/json",
|
600
583
|
body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
@@ -640,7 +623,7 @@ class BankApi {
|
|
640
623
|
Authorization: yield this._getAuthorizationHeader(),
|
641
624
|
"X-Fern-Language": "JavaScript",
|
642
625
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
643
|
-
"X-Fern-SDK-Version": "0.0.
|
626
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
644
627
|
},
|
645
628
|
contentType: "application/json",
|
646
629
|
timeoutMs: 60000,
|
@@ -683,7 +666,7 @@ class BankApi {
|
|
683
666
|
Authorization: yield this._getAuthorizationHeader(),
|
684
667
|
"X-Fern-Language": "JavaScript",
|
685
668
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
686
|
-
"X-Fern-SDK-Version": "0.0.
|
669
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
687
670
|
},
|
688
671
|
contentType: "application/json",
|
689
672
|
timeoutMs: 60000,
|
@@ -731,7 +714,7 @@ class BankApi {
|
|
731
714
|
Authorization: yield this._getAuthorizationHeader(),
|
732
715
|
"X-Fern-Language": "JavaScript",
|
733
716
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
734
|
-
"X-Fern-SDK-Version": "0.0.
|
717
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
735
718
|
},
|
736
719
|
contentType: "application/json",
|
737
720
|
queryParameters: _queryParams,
|
@@ -775,7 +758,7 @@ class BankApi {
|
|
775
758
|
Authorization: yield this._getAuthorizationHeader(),
|
776
759
|
"X-Fern-Language": "JavaScript",
|
777
760
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
778
|
-
"X-Fern-SDK-Version": "0.0.
|
761
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
779
762
|
},
|
780
763
|
contentType: "application/json",
|
781
764
|
body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
@@ -812,7 +795,7 @@ class BankApi {
|
|
812
795
|
}
|
813
796
|
});
|
814
797
|
}
|
815
|
-
createStripePaymentMethodFromPlaid(
|
798
|
+
createStripePaymentMethodFromPlaid() {
|
816
799
|
return __awaiter(this, void 0, void 0, function* () {
|
817
800
|
const _response = yield core.fetcher({
|
818
801
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/stripe/payment-method"),
|
@@ -821,12 +804,9 @@ class BankApi {
|
|
821
804
|
Authorization: yield this._getAuthorizationHeader(),
|
822
805
|
"X-Fern-Language": "JavaScript",
|
823
806
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
824
|
-
"X-Fern-SDK-Version": "0.0.
|
807
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
825
808
|
},
|
826
809
|
contentType: "application/json",
|
827
|
-
body: yield serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
828
|
-
unrecognizedObjectKeys: "strip",
|
829
|
-
}),
|
830
810
|
timeoutMs: 60000,
|
831
811
|
});
|
832
812
|
if (_response.ok) {
|
@@ -1,10 +1,7 @@
|
|
1
1
|
export { GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
|
2
2
|
export { VerifyAccountSignupRequest } from "./VerifyAccountSignupRequest";
|
3
|
-
export { SendMicroDepositRequest } from "./SendMicroDepositRequest";
|
4
|
-
export { VerifyMicrodepositRequest } from "./VerifyMicrodepositRequest";
|
5
3
|
export { GetWithdrawalMethodCurrenciesRequest } from "./GetWithdrawalMethodCurrenciesRequest";
|
6
4
|
export { GetWithdrawalMinimumByCurrencyRequest } from "./GetWithdrawalMinimumByCurrencyRequest";
|
7
5
|
export { EditWithdrawalMethodRequest } from "./EditWithdrawalMethodRequest";
|
8
6
|
export { GetCurrencyConversionRequest } from "./GetCurrencyConversionRequest";
|
9
7
|
export { SetAutoWithdrawalRequest } from "./SetAutoWithdrawalRequest";
|
10
|
-
export { CreateStripePaymentMethodFromPlaidRequest } from "./CreateStripePaymentMethodFromPlaidRequest";
|
@@ -14,6 +14,7 @@ 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);
|
17
18
|
__exportStar(require("./CompleteAccountSignupRequest"), exports);
|
18
19
|
__exportStar(require("./GetSandboxPublicKey"), exports);
|
19
20
|
__exportStar(require("./GetBankAccountSignupKey"), exports);
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts
CHANGED
@@ -36,10 +36,6 @@ 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>;
|
43
39
|
/**
|
44
40
|
* Get all of the managers for a company
|
45
41
|
*/
|
@@ -48,17 +44,5 @@ export declare class CompanyApi {
|
|
48
44
|
* Create a team within a company. At least one Team Admin must be added.
|
49
45
|
*/
|
50
46
|
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>;
|
63
47
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
64
48
|
}
|
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.3795",
|
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.3795",
|
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.3795",
|
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.3795",
|
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.3795",
|
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.3795",
|
312
312
|
},
|
313
313
|
contentType: "application/json",
|
314
314
|
body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
|
@@ -345,52 +345,6 @@ 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
|
-
}
|
394
348
|
/**
|
395
349
|
* Get all of the managers for a company
|
396
350
|
*/
|
@@ -403,7 +357,7 @@ class CompanyApi {
|
|
403
357
|
Authorization: yield this._getAuthorizationHeader(),
|
404
358
|
"X-Fern-Language": "JavaScript",
|
405
359
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
406
|
-
"X-Fern-SDK-Version": "0.0.
|
360
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
407
361
|
},
|
408
362
|
contentType: "application/json",
|
409
363
|
timeoutMs: 60000,
|
@@ -449,7 +403,7 @@ class CompanyApi {
|
|
449
403
|
Authorization: yield this._getAuthorizationHeader(),
|
450
404
|
"X-Fern-Language": "JavaScript",
|
451
405
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
452
|
-
"X-Fern-SDK-Version": "0.0.
|
406
|
+
"X-Fern-SDK-Version": "0.0.3795",
|
453
407
|
},
|
454
408
|
contentType: "application/json",
|
455
409
|
body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
|
@@ -486,147 +440,6 @@ class CompanyApi {
|
|
486
440
|
}
|
487
441
|
});
|
488
442
|
}
|
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
|
-
}
|
630
443
|
_getAuthorizationHeader() {
|
631
444
|
return __awaiter(this, void 0, void 0, function* () {
|
632
445
|
const bearer = yield core.Supplier.get(this._options.token);
|
@@ -4,4 +4,3 @@ export { EditManagerRolesRequest } from "./EditManagerRolesRequest";
|
|
4
4
|
export { EditOrgAdminsRequest } from "./EditOrgAdminsRequest";
|
5
5
|
export { ChangeContractTeamRequest } from "./ChangeContractTeamRequest";
|
6
6
|
export { CreateTeamRequest } from "./CreateTeamRequest";
|
7
|
-
export { EditTeamRequest } from "./EditTeamRequest";
|
@@ -22,5 +22,4 @@ export interface CompanyApiResponse {
|
|
22
22
|
isZealBankAccountVerified: boolean;
|
23
23
|
settings: TheraApi.api.thera.company.CompanySettings;
|
24
24
|
bankAccount?: TheraApi.api.thera.company.BankAccountResponseMetadata;
|
25
|
-
teamsById: Record<string, TheraApi.api.thera.company.Team>;
|
26
25
|
}
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts
CHANGED
@@ -4,5 +4,6 @@
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
5
5
|
export interface Manager {
|
6
6
|
user: TheraApi.db.User;
|
7
|
-
|
7
|
+
teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
|
8
|
+
orgAdmin?: TheraApi.api.thera.company.OrgRoleAndDetails;
|
8
9
|
}
|