@thera-hr/api-sdk 0.0.1331 → 0.0.1424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/index.d.ts +0 -1
- package/api/resources/api/resources/index.js +1 -2
- package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/client/Client.d.ts +0 -3
- package/api/resources/api/resources/thera/client/Client.js +6 -11
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +1 -5
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +5 -49
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/index.js +1 -2
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +7 -0
- package/api/resources/db/resources/employment/types/DayOfWeek.d.ts +13 -0
- package/api/resources/db/resources/employment/types/DayOfWeek.js +15 -0
- package/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
- package/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +5 -0
- package/api/resources/db/resources/employment/types/LastDayOfMonth.d.ts +5 -0
- package/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
- package/api/resources/db/resources/employment/types/PayCycle.d.ts +11 -0
- package/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +21 -0
- package/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +14 -0
- package/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +7 -0
- package/api/resources/db/resources/employment/types/index.d.ts +9 -0
- package/api/resources/db/resources/employment/types/index.js +9 -0
- package/api/resources/db/resources/index.d.ts +0 -2
- package/api/resources/db/resources/index.js +1 -3
- package/dist/api/resources/api/resources/index.d.ts +0 -1
- package/dist/api/resources/api/resources/index.js +1 -2
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- 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 +0 -3
- package/dist/api/resources/api/resources/thera/client/Client.js +6 -11
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +1 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +5 -49
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +7 -0
- package/dist/api/resources/db/resources/employment/types/DayOfWeek.d.ts +13 -0
- package/dist/api/resources/db/resources/employment/types/DayOfWeek.js +15 -0
- package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
- package/dist/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +5 -0
- package/dist/api/resources/db/resources/employment/types/LastDayOfMonth.d.ts +5 -0
- package/dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
- package/dist/api/resources/db/resources/employment/types/PayCycle.d.ts +11 -0
- package/dist/api/resources/db/resources/employment/types/PayCycle.js +5 -0
- package/dist/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +21 -0
- package/dist/api/resources/db/resources/employment/types/PayCycleEnd.js +5 -0
- package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +14 -0
- package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js +5 -0
- package/dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +7 -0
- package/dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
- package/dist/api/resources/db/resources/employment/types/index.d.ts +9 -0
- package/dist/api/resources/db/resources/employment/types/index.js +9 -0
- package/dist/api/resources/db/resources/index.d.ts +0 -2
- package/dist/api/resources/db/resources/index.js +1 -3
- package/dist/serialization/resources/api/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/index.js +1 -2
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
- package/dist/serialization/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/BiWeeklyPayCycleEnd.js} +3 -6
- package/dist/serialization/resources/db/resources/employment/types/DayOfWeek.d.ts +10 -0
- package/dist/serialization/resources/db/resources/employment/types/DayOfWeek.js +31 -0
- package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
- package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -0
- package/dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
- package/{serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js → dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js} +3 -3
- package/dist/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +11 -0
- package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GrantType.js → db/resources/employment/types/LastDayOfMonth.js} +3 -3
- package/dist/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +21 -0
- package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → db/resources/employment/types/MonthlyPayCycleEnd.js} +15 -9
- package/dist/serialization/resources/db/resources/employment/types/PayCycle.d.ts +15 -0
- package/dist/serialization/resources/db/resources/employment/types/PayCycle.js +36 -0
- package/dist/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +24 -0
- package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/PayCycleEnd.js} +16 -8
- package/dist/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
- package/{serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → dist/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +12 -6
- package/dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
- package/{serialization/resources/db/resources/gustoAuth/types/GustoAuth.js → dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js} +3 -6
- package/dist/serialization/resources/db/resources/employment/types/index.d.ts +9 -0
- package/dist/serialization/resources/db/resources/employment/types/index.js +9 -0
- package/dist/serialization/resources/db/resources/index.d.ts +0 -2
- package/dist/serialization/resources/db/resources/index.js +1 -3
- package/package.json +1 -1
- package/serialization/resources/api/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/index.js +1 -2
- package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
- package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.js +33 -0
- package/serialization/resources/db/resources/employment/types/DayOfWeek.d.ts +10 -0
- package/serialization/resources/db/resources/employment/types/DayOfWeek.js +31 -0
- package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
- package/serialization/resources/db/resources/employment/types/Employment.js +1 -0
- package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
- package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js +31 -0
- package/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +11 -0
- package/serialization/resources/db/resources/employment/types/LastDayOfMonth.js +31 -0
- package/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +21 -0
- package/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.js +44 -0
- package/serialization/resources/db/resources/employment/types/PayCycle.d.ts +15 -0
- package/serialization/resources/db/resources/employment/types/PayCycle.js +36 -0
- package/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +24 -0
- package/serialization/resources/db/resources/employment/types/PayCycleEnd.js +45 -0
- package/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
- package/{dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +12 -6
- package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
- package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +33 -0
- package/serialization/resources/db/resources/employment/types/index.d.ts +9 -0
- package/serialization/resources/db/resources/employment/types/index.js +9 -0
- package/serialization/resources/db/resources/index.d.ts +0 -2
- package/serialization/resources/db/resources/index.js +1 -3
- package/api/resources/api/resources/gusto/index.d.ts +0 -1
- package/api/resources/api/resources/gusto/index.js +0 -17
- package/api/resources/api/resources/gusto/resources/index.d.ts +0 -2
- package/api/resources/api/resources/gusto/resources/index.js +0 -31
- package/api/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
- package/api/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -8
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js +0 -10
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -11
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -11
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -11
- package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -10
- package/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
- package/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
- package/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +0 -17
- package/api/resources/api/resources/thera/resources/authentication/client/Client.js +0 -18
- package/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/authentication/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/authentication/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/authentication/index.js +0 -18
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +0 -17
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +0 -91
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -18
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
- package/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
- package/api/resources/db/resources/gustoAuth/index.d.ts +0 -1
- package/api/resources/db/resources/gustoAuth/index.js +0 -17
- package/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -9
- package/api/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
- package/api/resources/db/resources/gustoAuth/types/index.js +0 -17
- package/dist/api/resources/api/resources/gusto/index.d.ts +0 -1
- package/dist/api/resources/api/resources/gusto/index.js +0 -17
- package/dist/api/resources/api/resources/gusto/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/gusto/resources/index.js +0 -31
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -8
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js +0 -10
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -11
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -11
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -11
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -10
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
- package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
- package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +0 -17
- package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/authentication/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/authentication/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/authentication/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +0 -17
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +0 -91
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
- package/dist/api/resources/db/resources/gustoAuth/index.d.ts +0 -1
- package/dist/api/resources/db/resources/gustoAuth/index.js +0 -17
- package/dist/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -9
- package/dist/api/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
- package/dist/api/resources/db/resources/gustoAuth/types/index.js +0 -17
- package/dist/serialization/resources/api/resources/gusto/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/gusto/index.js +0 -17
- package/dist/serialization/resources/api/resources/gusto/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/gusto/resources/index.js +0 -31
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -10
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -16
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +0 -37
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -17
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -16
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -16
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +0 -37
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
- package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
- package/dist/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/authentication/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -14
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
- package/dist/serialization/resources/db/resources/gustoAuth/index.d.ts +0 -1
- package/dist/serialization/resources/db/resources/gustoAuth/index.js +0 -17
- package/dist/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -15
- package/dist/serialization/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
- package/dist/serialization/resources/db/resources/gustoAuth/types/index.js +0 -17
- package/serialization/resources/api/resources/gusto/index.d.ts +0 -1
- package/serialization/resources/api/resources/gusto/index.js +0 -17
- package/serialization/resources/api/resources/gusto/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/gusto/resources/index.js +0 -31
- package/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
- package/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -10
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -16
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +0 -37
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -17
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js +0 -38
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -16
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +0 -37
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -16
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +0 -37
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
- package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
- package/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/authentication/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -14
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
- package/serialization/resources/db/resources/gustoAuth/index.d.ts +0 -1
- package/serialization/resources/db/resources/gustoAuth/index.js +0 -17
- package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -15
- package/serialization/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
- package/serialization/resources/db/resources/gustoAuth/types/index.js +0 -17
- /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js → db/resources/employment/types/BiWeeklyPayCycleEnd.js} +0 -0
- /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → db/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
- /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/LastDayOfMonth.js} +0 -0
- /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js → db/resources/employment/types/MonthlyPayCycleEnd.js} +0 -0
- /package/api/resources/{api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → db/resources/employment/types/PayCycle.js} +0 -0
- /package/api/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/PayCycleEnd.js} +0 -0
- /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js → api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +0 -0
- /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js} +0 -0
- /package/dist/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/BiWeeklyPayCycleEnd.js} +0 -0
- /package/dist/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js → db/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
- /package/dist/api/resources/{api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → db/resources/employment/types/LastDayOfMonth.js} +0 -0
- /package/dist/api/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/MonthlyPayCycleEnd.js} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PayCycleEnd = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.PayCycleEnd = core.serialization
|
|
32
|
+
.union("type", {
|
|
33
|
+
weekly: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.WeeklyPayCycleEnd),
|
|
34
|
+
biweekly: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.BiWeeklyPayCycleEnd),
|
|
35
|
+
monthly: core.serialization.object({
|
|
36
|
+
value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.MonthlyPayCycleEnd),
|
|
37
|
+
}),
|
|
38
|
+
semimonthly: core.serialization.object({
|
|
39
|
+
value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.SemiMonthlyPayCycleEnd),
|
|
40
|
+
}),
|
|
41
|
+
})
|
|
42
|
+
.transform({
|
|
43
|
+
transform: (value) => value,
|
|
44
|
+
untransform: (value) => value,
|
|
45
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const SemiMonthlyPayCycleEnd: core.serialization.Schema<serializers.db.SemiMonthlyPayCycleEnd.Raw, TheraApi.db.SemiMonthlyPayCycleEnd>;
|
|
8
|
+
export declare namespace SemiMonthlyPayCycleEnd {
|
|
9
|
+
type Raw = SemiMonthlyPayCycleEnd.FifteenthAndEndOfMonth | SemiMonthlyPayCycleEnd.DayOfMonth;
|
|
10
|
+
interface FifteenthAndEndOfMonth extends serializers.db.FifteenthAndEndOfMonth.Raw {
|
|
11
|
+
type: "fifteenthAndEndOfMonth";
|
|
12
|
+
}
|
|
13
|
+
interface DayOfMonth {
|
|
14
|
+
type: "dayOfMonth";
|
|
15
|
+
value: number;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -26,10 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
exports.SemiMonthlyPayCycleEnd = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.SemiMonthlyPayCycleEnd = core.serialization
|
|
32
|
+
.union("type", {
|
|
33
|
+
fifteenthAndEndOfMonth: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.FifteenthAndEndOfMonth),
|
|
34
|
+
dayOfMonth: core.serialization.object({
|
|
35
|
+
value: core.serialization.number(),
|
|
36
|
+
}),
|
|
37
|
+
})
|
|
38
|
+
.transform({
|
|
39
|
+
transform: (value) => value,
|
|
40
|
+
untransform: (value) => value,
|
|
35
41
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const WeeklyPayCycleEnd: core.serialization.ObjectSchema<serializers.db.WeeklyPayCycleEnd.Raw, TheraApi.db.WeeklyPayCycleEnd>;
|
|
8
|
+
export declare namespace WeeklyPayCycleEnd {
|
|
9
|
+
interface Raw {
|
|
10
|
+
dayOfWeek: serializers.db.DayOfWeek.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.WeeklyPayCycleEnd = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.WeeklyPayCycleEnd = core.serialization.object({
|
|
32
|
+
dayOfWeek: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.DayOfWeek),
|
|
33
|
+
});
|
|
@@ -21,3 +21,12 @@ export * from "./GenericEmploymentDocument";
|
|
|
21
21
|
export * from "./ModifyRecurrencesRequest";
|
|
22
22
|
export * from "./RecurrenceModifications";
|
|
23
23
|
export * from "./ModifyRecurrencesResponse";
|
|
24
|
+
export * from "./PayCycle";
|
|
25
|
+
export * from "./PayCycleEnd";
|
|
26
|
+
export * from "./WeeklyPayCycleEnd";
|
|
27
|
+
export * from "./BiWeeklyPayCycleEnd";
|
|
28
|
+
export * from "./MonthlyPayCycleEnd";
|
|
29
|
+
export * from "./SemiMonthlyPayCycleEnd";
|
|
30
|
+
export * from "./FifteenthAndEndOfMonth";
|
|
31
|
+
export * from "./LastDayOfMonth";
|
|
32
|
+
export * from "./DayOfWeek";
|
|
@@ -37,3 +37,12 @@ __exportStar(require("./GenericEmploymentDocument"), exports);
|
|
|
37
37
|
__exportStar(require("./ModifyRecurrencesRequest"), exports);
|
|
38
38
|
__exportStar(require("./RecurrenceModifications"), exports);
|
|
39
39
|
__exportStar(require("./ModifyRecurrencesResponse"), exports);
|
|
40
|
+
__exportStar(require("./PayCycle"), exports);
|
|
41
|
+
__exportStar(require("./PayCycleEnd"), exports);
|
|
42
|
+
__exportStar(require("./WeeklyPayCycleEnd"), exports);
|
|
43
|
+
__exportStar(require("./BiWeeklyPayCycleEnd"), exports);
|
|
44
|
+
__exportStar(require("./MonthlyPayCycleEnd"), exports);
|
|
45
|
+
__exportStar(require("./SemiMonthlyPayCycleEnd"), exports);
|
|
46
|
+
__exportStar(require("./FifteenthAndEndOfMonth"), exports);
|
|
47
|
+
__exportStar(require("./LastDayOfMonth"), exports);
|
|
48
|
+
__exportStar(require("./DayOfWeek"), exports);
|
|
@@ -2,8 +2,6 @@ export * as document from "./document";
|
|
|
2
2
|
export * from "./document/types";
|
|
3
3
|
export * as employment from "./employment";
|
|
4
4
|
export * from "./employment/types";
|
|
5
|
-
export * as gustoAuth from "./gustoAuth";
|
|
6
|
-
export * from "./gustoAuth/types";
|
|
7
5
|
export * as payment from "./payment";
|
|
8
6
|
export * as user from "./user";
|
|
9
7
|
export * from "./user/types";
|
|
@@ -26,13 +26,11 @@ 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.user = exports.payment = exports.
|
|
29
|
+
exports.user = exports.payment = exports.employment = exports.document = void 0;
|
|
30
30
|
exports.document = __importStar(require("./document"));
|
|
31
31
|
__exportStar(require("./document/types"), exports);
|
|
32
32
|
exports.employment = __importStar(require("./employment"));
|
|
33
33
|
__exportStar(require("./employment/types"), exports);
|
|
34
|
-
exports.gustoAuth = __importStar(require("./gustoAuth"));
|
|
35
|
-
__exportStar(require("./gustoAuth/types"), exports);
|
|
36
34
|
exports.payment = __importStar(require("./payment"));
|
|
37
35
|
exports.user = __importStar(require("./user"));
|
|
38
36
|
__exportStar(require("./user/types"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./resources";
|
|
@@ -1,17 +0,0 @@
|
|
|
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);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.oauthToken = void 0;
|
|
30
|
-
exports.oauthToken = __importStar(require("./oauthToken"));
|
|
31
|
-
__exportStar(require("./oauthToken/types"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./types";
|
|
@@ -1,17 +0,0 @@
|
|
|
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);
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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.GrantType = void 0;
|
|
7
|
-
exports.GrantType = {
|
|
8
|
-
RefreshToken: "refresh_token",
|
|
9
|
-
StrictAccess: "strict_access",
|
|
10
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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);
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
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);
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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.1331",
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
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);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./GustoAccessTokenResponse";
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./GustoAccessTokenResponse"), exports);
|