@thera-hr/api-sdk 0.0.1002 → 0.0.1061
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/client/Client.d.ts +3 -0
- package/api/resources/api/client/Client.js +5 -0
- package/api/resources/api/resources/gusto/resources/index.d.ts +2 -0
- package/{dist/api/resources/db/resources/test → api/resources/api/resources/gusto}/resources/index.js +3 -3
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +8 -0
- package/{dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js → api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +4 -4
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +11 -0
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +11 -0
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +11 -0
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +10 -0
- package/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
- package/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
- package/api/resources/api/resources/index.d.ts +3 -1
- package/api/resources/api/resources/index.js +4 -2
- package/api/resources/api/resources/services/index.d.ts +1 -1
- package/api/resources/api/resources/services/index.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
- package/api/resources/api/resources/services/resources/file/client/Client.js +43 -2
- package/api/resources/api/resources/services/resources/file/index.d.ts +1 -0
- package/api/resources/api/resources/services/resources/file/index.js +1 -0
- package/api/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +6 -0
- package/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/api/resources/api/resources/services/resources/file/types/index.js +17 -0
- package/api/resources/api/resources/services/resources/index.d.ts +1 -0
- package/api/resources/api/resources/services/resources/index.js +1 -0
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/client/Client.js +18 -0
- package/api/resources/api/resources/thera/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/client/index.js +2 -0
- package/api/resources/api/resources/thera/index.d.ts +2 -0
- package/api/resources/api/resources/thera/index.js +18 -0
- package/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/authentication/client/Client.js +18 -0
- package/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/authentication/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/authentication/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/authentication/index.js +18 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +91 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +18 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/{serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js → api/resources/api/resources/thera/resources/index.js} +2 -6
- package/api/resources/db/resources/employment/types/EmploymentDocuments.d.ts +2 -1
- package/{dist/api/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts → api/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts} +2 -2
- package/api/resources/db/resources/employment/types/index.d.ts +1 -0
- package/api/resources/db/resources/employment/types/index.js +1 -0
- package/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +9 -0
- package/api/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
- package/api/resources/db/resources/gustoAuth/types/index.js +17 -0
- package/api/resources/db/resources/index.d.ts +2 -1
- package/api/resources/db/resources/index.js +3 -2
- package/dist/api/resources/api/client/Client.d.ts +3 -0
- package/dist/api/resources/api/client/Client.js +5 -0
- package/dist/api/resources/api/resources/gusto/resources/index.d.ts +2 -0
- package/dist/{serialization/resources/db/resources/test → api/resources/api/resources/gusto}/resources/index.js +3 -3
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +8 -0
- package/{api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +4 -4
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +11 -0
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +11 -0
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +11 -0
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +10 -0
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
- package/dist/api/resources/api/resources/index.d.ts +3 -1
- package/dist/api/resources/api/resources/index.js +4 -2
- package/dist/api/resources/api/resources/services/index.d.ts +1 -1
- package/dist/api/resources/api/resources/services/index.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +43 -2
- package/dist/api/resources/api/resources/services/resources/file/index.d.ts +1 -0
- package/dist/api/resources/api/resources/services/resources/file/index.js +1 -0
- package/dist/api/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/services/resources/file/types/index.js +17 -0
- package/dist/api/resources/api/resources/services/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/services/resources/index.js +1 -0
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +18 -0
- package/dist/api/resources/api/resources/thera/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +91 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/{serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js → api/resources/api/resources/thera/resources/index.js} +2 -6
- package/dist/api/resources/db/resources/employment/types/EmploymentDocuments.d.ts +2 -1
- package/{api/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts → dist/api/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts} +2 -2
- package/dist/api/resources/db/resources/employment/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/employment/types/index.js +1 -0
- package/dist/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +9 -0
- package/dist/api/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/gustoAuth/types/index.js +17 -0
- package/dist/api/resources/db/resources/index.d.ts +2 -1
- package/dist/api/resources/db/resources/index.js +3 -2
- package/dist/serialization/resources/api/resources/gusto/resources/index.d.ts +2 -0
- package/{api/resources/db/resources/test → dist/serialization/resources/api/resources/gusto}/resources/index.js +3 -3
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +17 -0
- package/{serialization/resources/db/resources/test/resources/employment/types/FernWageType.d.ts → dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts} +3 -3
- package/{serialization/resources/db/resources/test/resources/employment/types/FernWageType.js → dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +2 -2
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +16 -0
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +37 -0
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +17 -0
- package/{serialization/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.js → dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js} +8 -3
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +16 -0
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +37 -0
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +16 -0
- package/dist/serialization/resources/{db/resources/test/resources/employment/types/FernFrequency.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js} +7 -8
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
- package/dist/serialization/resources/api/resources/index.d.ts +3 -1
- package/dist/serialization/resources/api/resources/index.js +4 -2
- package/dist/serialization/resources/api/resources/services/resources/file/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/services/resources/file/index.js +1 -0
- package/dist/serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +12 -0
- package/dist/serialization/resources/{db/resources/test/resources/employment/types/FernPerPaycheckFrequency.js → api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +3 -3
- package/dist/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/services/resources/file/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/services/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/services/resources/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +14 -0
- package/dist/serialization/resources/{db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.js → api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +6 -4
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.js +27 -0
- package/dist/serialization/resources/db/resources/employment/types/EmploymentDocuments.d.ts +1 -1
- package/dist/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +1 -1
- package/dist/serialization/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts +13 -0
- package/{serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.js → dist/serialization/resources/db/resources/employment/types/GenericEmploymentDocument.js} +4 -4
- package/dist/serialization/resources/db/resources/employment/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/employment/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/gustoAuth/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/gustoAuth/index.js +17 -0
- package/dist/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +15 -0
- package/dist/serialization/resources/db/resources/{test/resources/employment/types/FernDeduction.js → gustoAuth/types/GustoAuth.js} +7 -4
- package/dist/serialization/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/gustoAuth/types/index.js +17 -0
- package/dist/serialization/resources/db/resources/index.d.ts +2 -1
- package/dist/serialization/resources/db/resources/index.js +3 -2
- package/package.json +1 -1
- package/serialization/resources/api/resources/gusto/index.d.ts +1 -0
- package/serialization/resources/api/resources/gusto/index.js +17 -0
- package/serialization/resources/api/resources/gusto/resources/index.d.ts +2 -0
- package/serialization/resources/{db/resources/test → api/resources/gusto}/resources/index.js +3 -3
- package/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +1 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +17 -0
- package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernWageType.d.ts → serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts} +3 -3
- package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernWageType.js → serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +2 -2
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +16 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +37 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +17 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js +38 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +16 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +37 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +16 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +37 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
- package/serialization/resources/api/resources/index.d.ts +3 -1
- package/serialization/resources/api/resources/index.js +4 -2
- package/serialization/resources/api/resources/services/resources/file/index.d.ts +1 -0
- package/serialization/resources/api/resources/services/resources/file/index.js +1 -0
- package/serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +12 -0
- package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.js → serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +3 -4
- package/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/services/resources/file/types/index.js +17 -0
- package/serialization/resources/api/resources/services/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/services/resources/index.js +1 -0
- package/serialization/resources/api/resources/thera/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/authentication/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +14 -0
- package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernEarning.js → serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +6 -9
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/index.js +27 -0
- package/serialization/resources/db/resources/employment/types/EmploymentDocuments.d.ts +1 -1
- package/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +1 -1
- package/serialization/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts +13 -0
- package/serialization/resources/db/resources/{test/resources/employment/types/FernDeduction.js → employment/types/GenericEmploymentDocument.js} +5 -4
- package/serialization/resources/db/resources/employment/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/employment/types/index.js +1 -0
- package/serialization/resources/db/resources/gustoAuth/index.d.ts +1 -0
- package/serialization/resources/db/resources/gustoAuth/index.js +17 -0
- package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +15 -0
- package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.js +36 -0
- package/serialization/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/gustoAuth/types/index.js +17 -0
- package/serialization/resources/db/resources/index.d.ts +2 -1
- package/serialization/resources/db/resources/index.js +3 -2
- package/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -9
- package/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -11
- package/api/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -6
- package/api/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -10
- package/api/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -26
- package/api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -8
- package/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -8
- package/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -10
- package/api/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -7
- package/api/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -10
- package/api/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -11
- package/api/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -7
- package/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -8
- package/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js +0 -10
- package/api/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -6
- package/api/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -8
- package/api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -14
- package/api/resources/db/resources/test/resources/employment/types/FernWageType.d.ts +0 -9
- package/api/resources/db/resources/test/resources/employment/types/FernWageType.js +0 -11
- package/api/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
- package/api/resources/db/resources/test/resources/employment/types/index.js +0 -32
- package/api/resources/db/resources/test/resources/index.d.ts +0 -2
- package/dist/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -9
- package/dist/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -11
- package/dist/api/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -6
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -10
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -26
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -8
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js +0 -10
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -8
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -10
- package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -7
- package/dist/api/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -10
- package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -11
- package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestone.js +0 -5
- package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -7
- package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.js +0 -5
- package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -8
- package/dist/api/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -6
- package/dist/api/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.js +0 -5
- package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -8
- package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrence.js +0 -5
- package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -14
- package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js +0 -5
- package/dist/api/resources/db/resources/test/resources/employment/types/FernReimbursement.js +0 -5
- package/dist/api/resources/db/resources/test/resources/employment/types/FernWageType.d.ts +0 -9
- package/dist/api/resources/db/resources/test/resources/employment/types/FernWageType.js +0 -11
- package/dist/api/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
- package/dist/api/resources/db/resources/test/resources/employment/types/index.js +0 -32
- package/dist/api/resources/db/resources/test/resources/index.d.ts +0 -2
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -31
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -12
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -13
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -31
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.js +0 -52
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -10
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js +0 -31
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -31
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -12
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -13
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -16
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.js +0 -37
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -12
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.js +0 -33
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -10
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -12
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -13
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.js +0 -34
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -17
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js +0 -41
- package/dist/serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts +0 -13
- package/dist/serialization/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
- package/dist/serialization/resources/db/resources/test/resources/employment/types/index.js +0 -32
- package/dist/serialization/resources/db/resources/test/resources/index.d.ts +0 -2
- package/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -10
- package/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -31
- package/serialization/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -12
- package/serialization/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -13
- package/serialization/resources/db/resources/test/resources/employment/types/FernEarning.js +0 -38
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -31
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.js +0 -52
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -10
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js +0 -31
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -10
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -31
- package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -12
- package/serialization/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -13
- package/serialization/resources/db/resources/test/resources/employment/types/FernFrequency.js +0 -38
- package/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -16
- package/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.js +0 -37
- package/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -12
- package/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.js +0 -33
- package/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -10
- package/serialization/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -12
- package/serialization/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.js +0 -33
- package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -13
- package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.js +0 -34
- package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -17
- package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js +0 -41
- package/serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts +0 -13
- package/serialization/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
- package/serialization/resources/db/resources/test/resources/employment/types/index.js +0 -32
- package/serialization/resources/db/resources/test/resources/index.d.ts +0 -2
- /package/api/resources/{db/resources/test → api/resources/gusto}/index.d.ts +0 -0
- /package/api/resources/{db/resources/test → api/resources/gusto}/index.js +0 -0
- /package/api/resources/{db/resources/test/resources/employment → api/resources/gusto/resources/oauthToken}/index.d.ts +0 -0
- /package/api/resources/{db/resources/test/resources/employment → api/resources/gusto/resources/oauthToken}/index.js +0 -0
- /package/api/resources/{db/resources/test/resources/employment/types/FernDeduction.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js} +0 -0
- /package/api/resources/{db/resources/test/resources/employment/types/FernEarning.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js} +0 -0
- /package/api/resources/{db/resources/test/resources/employment/types/FernEmployment.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js} +0 -0
- /package/api/resources/{db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js} +0 -0
- /package/api/resources/{db/resources/test/resources/employment/types/FernFrequency.js → api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +0 -0
- /package/api/resources/{db/resources/test/resources/employment/types/FernMilestone.js → api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +0 -0
- /package/api/resources/db/resources/{test/resources/employment/types/FernMilestoneDetails.js → employment/types/GenericEmploymentDocument.js} +0 -0
- /package/{dist/api/resources/db/resources/test/resources/employment → api/resources/db/resources/gustoAuth}/index.d.ts +0 -0
- /package/{dist/api/resources/db/resources/test/resources/employment → api/resources/db/resources/gustoAuth}/index.js +0 -0
- /package/api/resources/db/resources/{test/resources/employment/types/FernPerPaycheckFrequency.js → gustoAuth/types/GustoAuth.js} +0 -0
- /package/dist/api/resources/{db/resources/test → api/resources/gusto}/index.d.ts +0 -0
- /package/dist/api/resources/{db/resources/test → api/resources/gusto}/index.js +0 -0
- /package/dist/{serialization/resources/db/resources/test/resources/employment → api/resources/api/resources/gusto/resources/oauthToken}/index.d.ts +0 -0
- /package/dist/{serialization/resources/db/resources/test/resources/employment → api/resources/api/resources/gusto/resources/oauthToken}/index.js +0 -0
- /package/{api/resources/db/resources/test/resources/employment/types/FernRecurrence.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js} +0 -0
- /package/{api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js} +0 -0
- /package/{api/resources/db/resources/test/resources/employment/types/FernReimbursement.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js} +0 -0
- /package/dist/api/resources/{db/resources/test/resources/employment/types/FernDeduction.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js} +0 -0
- /package/dist/api/resources/{db/resources/test/resources/employment/types/FernEarning.js → api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +0 -0
- /package/dist/api/resources/{db/resources/test/resources/employment/types/FernEmployment.js → api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +0 -0
- /package/dist/api/resources/db/resources/{test/resources/employment/types/FernEmploymentW2PayrollDetails.js → employment/types/GenericEmploymentDocument.js} +0 -0
- /package/{serialization/resources/db/resources/test/resources/employment → dist/api/resources/db/resources/gustoAuth}/index.d.ts +0 -0
- /package/{serialization/resources/db/resources/test/resources/employment → dist/api/resources/db/resources/gustoAuth}/index.js +0 -0
- /package/dist/api/resources/db/resources/{test/resources/employment/types/FernFrequency.js → gustoAuth/types/GustoAuth.js} +0 -0
- /package/dist/serialization/resources/{db/resources/test → api/resources/gusto}/index.d.ts +0 -0
- /package/dist/serialization/resources/{db/resources/test → api/resources/gusto}/index.js +0 -0
- /package/{serialization/resources/db/resources/test → dist/serialization/resources/api/resources/thera}/index.d.ts +0 -0
- /package/{serialization/resources/db/resources/test → dist/serialization/resources/api/resources/thera}/index.js +0 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { Services } from "../resources/services/client/Client";
|
|
6
6
|
import { Test } from "../resources/test/client/Client";
|
|
7
|
+
import { Thera } from "../resources/thera/client/Client";
|
|
7
8
|
export declare namespace Api {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment: string;
|
|
@@ -17,4 +18,6 @@ export declare class Api {
|
|
|
17
18
|
get services(): Services;
|
|
18
19
|
protected _test: Test | undefined;
|
|
19
20
|
get test(): Test;
|
|
21
|
+
protected _thera: Thera | undefined;
|
|
22
|
+
get thera(): Thera;
|
|
20
23
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Api = void 0;
|
|
7
7
|
const Client_1 = require("../resources/services/client/Client");
|
|
8
8
|
const Client_2 = require("../resources/test/client/Client");
|
|
9
|
+
const Client_3 = require("../resources/thera/client/Client");
|
|
9
10
|
class Api {
|
|
10
11
|
options;
|
|
11
12
|
constructor(options) {
|
|
@@ -19,5 +20,9 @@ class Api {
|
|
|
19
20
|
get test() {
|
|
20
21
|
return (this._test ??= new Client_2.Test(this.options));
|
|
21
22
|
}
|
|
23
|
+
_thera;
|
|
24
|
+
get thera() {
|
|
25
|
+
return (this._thera ??= new Client_3.Thera(this.options));
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
exports.Api = Api;
|
|
@@ -26,6 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
__exportStar(require("./
|
|
29
|
+
exports.oauthToken = void 0;
|
|
30
|
+
exports.oauthToken = __importStar(require("./oauthToken"));
|
|
31
|
+
__exportStar(require("./oauthToken/types"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type GrantType = "refresh_token" | "strict_access";
|
|
5
|
+
export declare const GrantType: {
|
|
6
|
+
readonly RefreshToken: "refresh_token";
|
|
7
|
+
readonly StrictAccess: "strict_access";
|
|
8
|
+
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
exports.GrantType = void 0;
|
|
7
|
+
exports.GrantType = {
|
|
8
|
+
RefreshToken: "refresh_token",
|
|
9
|
+
StrictAccess: "strict_access",
|
|
10
10
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
|
+
export interface GustoOAuthRefreshAccessTokenRequest {
|
|
6
|
+
refreshToken: string;
|
|
7
|
+
grantType: TheraApi.api.gusto.GrantType;
|
|
8
|
+
clientId: string;
|
|
9
|
+
clientSecret: string;
|
|
10
|
+
redirectUri: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface GustoOAuthRefreshTokenResponse {
|
|
5
|
+
accessToken: string;
|
|
6
|
+
tokenType: string;
|
|
7
|
+
createdAt: number;
|
|
8
|
+
expiresIn: number;
|
|
9
|
+
refreshToken: string;
|
|
10
|
+
scope: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../..";
|
|
5
|
+
export interface GustoOAuthStrictAccessTokenRequest {
|
|
6
|
+
accessToken: string;
|
|
7
|
+
grantType: TheraApi.api.gusto.GrantType;
|
|
8
|
+
clientId: string;
|
|
9
|
+
clientSecret: string;
|
|
10
|
+
redirectUri: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./GrantType"), exports);
|
|
18
|
+
__exportStar(require("./GustoOAuthStrictAccessTokenRequest"), exports);
|
|
19
|
+
__exportStar(require("./GustoOAuthRefreshAccessTokenRequest"), exports);
|
|
20
|
+
__exportStar(require("./GustoOAuthStrictTokenResponse"), exports);
|
|
21
|
+
__exportStar(require("./GustoOAuthRefreshTokenResponse"), exports);
|
|
@@ -23,8 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
|
|
27
|
+
exports.gusto = __importStar(require("./gusto"));
|
|
27
28
|
exports.request = __importStar(require("./request"));
|
|
28
29
|
exports.response = __importStar(require("./response"));
|
|
29
|
-
exports.test = __importStar(require("./test"));
|
|
30
30
|
exports.services = __importStar(require("./services"));
|
|
31
|
+
exports.test = __importStar(require("./test"));
|
|
32
|
+
exports.thera = __importStar(require("./thera"));
|
|
@@ -14,5 +14,5 @@ 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("./client"), exports);
|
|
18
17
|
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -14,5 +14,6 @@ export declare class File_ {
|
|
|
14
14
|
constructor(options: File_.Options);
|
|
15
15
|
attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
|
|
16
16
|
deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
|
|
17
|
+
loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
|
|
17
18
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
18
19
|
}
|
|
@@ -47,7 +47,7 @@ class File_ {
|
|
|
47
47
|
Authorization: await this._getAuthorizationHeader(),
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "0.0.
|
|
50
|
+
"X-Fern-SDK-Version": "0.0.1061",
|
|
51
51
|
},
|
|
52
52
|
contentType: "application/json",
|
|
53
53
|
body: await serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -86,7 +86,7 @@ class File_ {
|
|
|
86
86
|
Authorization: await this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
89
|
-
"X-Fern-SDK-Version": "0.0.
|
|
89
|
+
"X-Fern-SDK-Version": "0.0.1061",
|
|
90
90
|
},
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
body: await serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -117,6 +117,47 @@ class File_ {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
+
async loadGenericDocumentFromEmployment(contractId, s3Key) {
|
|
121
|
+
const _response = await core.fetcher({
|
|
122
|
+
url: (0, url_join_1.default)(this.options.environment, `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
|
|
123
|
+
method: "GET",
|
|
124
|
+
headers: {
|
|
125
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
126
|
+
"X-Fern-Language": "JavaScript",
|
|
127
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
128
|
+
"X-Fern-SDK-Version": "0.0.1061",
|
|
129
|
+
},
|
|
130
|
+
contentType: "application/json",
|
|
131
|
+
timeoutMs: 60000,
|
|
132
|
+
});
|
|
133
|
+
if (_response.ok) {
|
|
134
|
+
return await serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
|
|
135
|
+
unrecognizedObjectKeys: "passthrough",
|
|
136
|
+
allowUnrecognizedUnionMembers: true,
|
|
137
|
+
allowUnrecognizedEnumValues: true,
|
|
138
|
+
breadcrumbsPrefix: ["response"],
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
if (_response.error.reason === "status-code") {
|
|
142
|
+
throw new errors.TheraApiError({
|
|
143
|
+
statusCode: _response.error.statusCode,
|
|
144
|
+
body: _response.error.body,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
switch (_response.error.reason) {
|
|
148
|
+
case "non-json":
|
|
149
|
+
throw new errors.TheraApiError({
|
|
150
|
+
statusCode: _response.error.statusCode,
|
|
151
|
+
body: _response.error.rawBody,
|
|
152
|
+
});
|
|
153
|
+
case "timeout":
|
|
154
|
+
throw new errors.TheraApiTimeoutError();
|
|
155
|
+
case "unknown":
|
|
156
|
+
throw new errors.TheraApiError({
|
|
157
|
+
message: _response.error.errorMessage,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
120
161
|
async _getAuthorizationHeader() {
|
|
121
162
|
const bearer = await core.Supplier.get(this.options.token);
|
|
122
163
|
if (bearer != null) {
|
|
@@ -14,4 +14,5 @@ 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("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LoadGenericDocumentFromEmploymentResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./LoadGenericDocumentFromEmploymentResponse"), exports);
|
|
@@ -28,4 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.file = void 0;
|
|
30
30
|
exports.file = __importStar(require("./file"));
|
|
31
|
+
__exportStar(require("./file/types"), exports);
|
|
31
32
|
__exportStar(require("./file/client/requests"), exports);
|
|
@@ -47,7 +47,7 @@ class Invoices {
|
|
|
47
47
|
Authorization: await this._getAuthorizationHeader(),
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "0.0.
|
|
50
|
+
"X-Fern-SDK-Version": "0.0.1061",
|
|
51
51
|
},
|
|
52
52
|
contentType: "application/json",
|
|
53
53
|
body: await serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../core";
|
|
5
|
+
import { Authentication } from "../resources/authentication/client/Client";
|
|
6
|
+
export declare namespace Thera {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class Thera {
|
|
13
|
+
protected readonly options: Thera.Options;
|
|
14
|
+
constructor(options: Thera.Options);
|
|
15
|
+
protected _authentication: Authentication | undefined;
|
|
16
|
+
get authentication(): Authentication;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Thera = void 0;
|
|
7
|
+
const Client_1 = require("../resources/authentication/client/Client");
|
|
8
|
+
class Thera {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_authentication;
|
|
14
|
+
get authentication() {
|
|
15
|
+
return (this._authentication ??= new Client_1.Authentication(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Thera = Thera;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../core";
|
|
5
|
+
import { GustoAuthentication } from "../resources/gustoAuthentication/client/Client";
|
|
6
|
+
export declare namespace Authentication {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class Authentication {
|
|
13
|
+
protected readonly options: Authentication.Options;
|
|
14
|
+
constructor(options: Authentication.Options);
|
|
15
|
+
protected _gustoAuthentication: GustoAuthentication | undefined;
|
|
16
|
+
get gustoAuthentication(): GustoAuthentication;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Authentication = void 0;
|
|
7
|
+
const Client_1 = require("../resources/gustoAuthentication/client/Client");
|
|
8
|
+
class Authentication {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_gustoAuthentication;
|
|
14
|
+
get gustoAuthentication() {
|
|
15
|
+
return (this._gustoAuthentication ??= new Client_1.GustoAuthentication(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Authentication = Authentication;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../../../core";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
6
|
+
export declare namespace GustoAuthentication {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: string;
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class GustoAuthentication {
|
|
13
|
+
protected readonly options: GustoAuthentication.Options;
|
|
14
|
+
constructor(options: GustoAuthentication.Options);
|
|
15
|
+
gustoAccessToken(theraCompanyId: string): Promise<TheraApi.api.thera.authentication.GustoAccessTokenResponse>;
|
|
16
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.GustoAuthentication = void 0;
|
|
33
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
34
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
35
|
+
const serializers = __importStar(require("../../../../../../../../../../serialization"));
|
|
36
|
+
const errors = __importStar(require("../../../../../../../../../../errors"));
|
|
37
|
+
class GustoAuthentication {
|
|
38
|
+
options;
|
|
39
|
+
constructor(options) {
|
|
40
|
+
this.options = options;
|
|
41
|
+
}
|
|
42
|
+
async gustoAccessToken(theraCompanyId) {
|
|
43
|
+
const _response = await core.fetcher({
|
|
44
|
+
url: (0, url_join_1.default)(this.options.environment, `/gusto-access-token/${theraCompanyId}`),
|
|
45
|
+
method: "GET",
|
|
46
|
+
headers: {
|
|
47
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
48
|
+
"X-Fern-Language": "JavaScript",
|
|
49
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
50
|
+
"X-Fern-SDK-Version": "0.0.1061",
|
|
51
|
+
},
|
|
52
|
+
contentType: "application/json",
|
|
53
|
+
timeoutMs: 60000,
|
|
54
|
+
});
|
|
55
|
+
if (_response.ok) {
|
|
56
|
+
return await serializers.api.thera.authentication.GustoAccessTokenResponse.parseOrThrow(_response.body, {
|
|
57
|
+
unrecognizedObjectKeys: "passthrough",
|
|
58
|
+
allowUnrecognizedUnionMembers: true,
|
|
59
|
+
allowUnrecognizedEnumValues: true,
|
|
60
|
+
breadcrumbsPrefix: ["response"],
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (_response.error.reason === "status-code") {
|
|
64
|
+
throw new errors.TheraApiError({
|
|
65
|
+
statusCode: _response.error.statusCode,
|
|
66
|
+
body: _response.error.body,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
switch (_response.error.reason) {
|
|
70
|
+
case "non-json":
|
|
71
|
+
throw new errors.TheraApiError({
|
|
72
|
+
statusCode: _response.error.statusCode,
|
|
73
|
+
body: _response.error.rawBody,
|
|
74
|
+
});
|
|
75
|
+
case "timeout":
|
|
76
|
+
throw new errors.TheraApiTimeoutError();
|
|
77
|
+
case "unknown":
|
|
78
|
+
throw new errors.TheraApiError({
|
|
79
|
+
message: _response.error.errorMessage,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async _getAuthorizationHeader() {
|
|
84
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
85
|
+
if (bearer != null) {
|
|
86
|
+
return `Bearer ${bearer}`;
|
|
87
|
+
}
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.GustoAuthentication = GustoAuthentication;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GustoAccessTokenResponse";
|