@thera-hr/api-sdk 0.0.1452 → 0.0.1520
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/Client.d.ts +4 -4
- package/Client.js +4 -5
- package/api/resources/api/client/Client.d.ts +4 -4
- package/api/resources/api/client/Client.js +8 -9
- package/api/resources/api/resources/services/client/Client.d.ts +4 -4
- package/api/resources/api/resources/services/client/Client.js +4 -5
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +4 -4
- package/api/resources/api/resources/services/resources/file/client/Client.js +167 -149
- package/api/resources/api/resources/test/client/Client.d.ts +4 -4
- package/api/resources/api/resources/test/client/Client.js +4 -5
- package/api/resources/api/resources/test/resources/invoices/client/Client.d.ts +4 -4
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +60 -48
- package/api/resources/api/resources/thera/client/Client.d.ts +7 -4
- package/api/resources/api/resources/thera/client/Client.js +14 -10
- package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/bank/client/Client.js +4 -5
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +168 -150
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +7 -4
- package/api/resources/api/resources/thera/resources/company/client/Client.js +10 -6
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +116 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +55 -43
- package/api/resources/api/resources/thera/resources/company/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/index.js +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.js +17 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/index.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +106 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +5 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.js +32 -0
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/index.js +2 -1
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/payroll/client/Client.js +4 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +57 -45
- package/api/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/api/resources/db/resources/employment/types/index.d.ts +0 -12
- package/api/resources/db/resources/employment/types/index.js +0 -12
- package/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +3 -1
- package/api/resources/db/resources/user/types/ComplianceDocumentType.js +2 -0
- package/api/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
- package/{dist/api/resources/db/resources/user/types/FernUser.d.ts → api/resources/db/resources/user/types/User.d.ts} +1 -1
- package/api/resources/db/resources/user/types/index.d.ts +1 -2
- package/api/resources/db/resources/user/types/index.js +1 -2
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/model/index.d.ts +1 -0
- package/api/resources/model/index.js +17 -0
- package/api/resources/model/resources/index.d.ts +1 -0
- package/api/resources/model/resources/index.js +27 -0
- package/api/resources/model/resources/thera/index.d.ts +1 -0
- package/api/resources/model/resources/thera/index.js +17 -0
- package/api/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/api/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/api/resources/{db → model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +2 -2
- package/{dist/api/resources/db → api/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.d.ts +3 -0
- package/api/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +9 -0
- package/api/resources/model/resources/thera/resources/employment/types/ContractType.js +11 -0
- package/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
- package/api/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.d.ts +3 -2
- package/api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +21 -0
- package/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
- package/api/resources/model/resources/thera/resources/employment/types/WageType.d.ts +13 -0
- package/{dist/api/resources/db → api/resources/model/resources/thera}/resources/employment/types/WageType.js +4 -0
- package/{dist/api/resources/db → api/resources/model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.d.ts +2 -2
- package/api/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/api/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/api/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/api/resources/model/resources/thera/resources/index.js +31 -0
- package/core/fetcher/Fetcher.d.ts +5 -4
- package/core/fetcher/Fetcher.js +82 -66
- package/core/fetcher/Supplier.js +11 -2
- package/core/fetcher/index.d.ts +3 -2
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/schemas/builders/date/date.js +1 -4
- package/core/schemas/builders/lazy/index.d.ts +2 -1
- package/core/schemas/builders/lazy/lazy.js +21 -13
- package/core/schemas/builders/lazy/lazyObject.js +11 -11
- package/core/schemas/builders/list/list.js +51 -41
- package/core/schemas/builders/object/index.d.ts +3 -2
- package/core/schemas/builders/object/object.js +148 -140
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +17 -17
- package/core/schemas/builders/object-like/index.d.ts +1 -1
- package/core/schemas/builders/record/index.d.ts +1 -1
- package/core/schemas/builders/record/record.js +80 -75
- package/core/schemas/builders/schema-utils/JsonError.js +0 -1
- package/core/schemas/builders/schema-utils/ParseError.js +0 -1
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
- package/core/schemas/builders/schema-utils/index.d.ts +2 -1
- package/core/schemas/builders/set/set.js +18 -11
- package/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +34 -26
- package/core/schemas/builders/union/index.d.ts +3 -2
- package/core/schemas/builders/union/union.js +93 -75
- package/core/schemas/index.d.ts +1 -1
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -4
- package/core/schemas/utils/maybeSkipValidation.js +14 -9
- package/dist/Client.d.ts +4 -4
- package/dist/Client.js +4 -5
- package/dist/api/resources/api/client/Client.d.ts +4 -4
- package/dist/api/resources/api/client/Client.js +8 -9
- package/dist/api/resources/api/resources/services/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/services/client/Client.js +4 -5
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +167 -149
- package/dist/api/resources/api/resources/test/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/test/client/Client.js +4 -5
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +60 -48
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +7 -4
- package/dist/api/resources/api/resources/thera/client/Client.js +14 -10
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.js +4 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +168 -150
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +7 -4
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.js +10 -6
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +116 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +55 -43
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +106 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.js +32 -0
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +4 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +57 -45
- package/dist/api/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/dist/api/resources/db/resources/employment/types/index.d.ts +0 -12
- package/dist/api/resources/db/resources/employment/types/index.js +0 -12
- package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +3 -1
- package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.js +2 -0
- package/dist/api/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
- package/{api/resources/db/resources/user/types/FernUser.d.ts → dist/api/resources/db/resources/user/types/User.d.ts} +1 -1
- package/dist/api/resources/db/resources/user/types/User.js +5 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +1 -2
- package/dist/api/resources/db/resources/user/types/index.js +1 -2
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/model/index.d.ts +1 -0
- package/dist/api/resources/model/index.js +17 -0
- package/dist/api/resources/model/resources/index.d.ts +1 -0
- package/dist/api/resources/model/resources/index.js +27 -0
- package/dist/api/resources/model/resources/thera/index.d.ts +1 -0
- package/dist/api/resources/model/resources/thera/index.js +17 -0
- package/dist/api/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/dist/api/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +2 -2
- package/dist/api/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js +5 -0
- package/{api/resources/db → dist/api/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.d.ts +3 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +9 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/ContractType.js +11 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.js +5 -0
- package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.d.ts +3 -2
- package/dist/api/resources/model/resources/thera/resources/employment/types/PayCycle.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +21 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/WageType.d.ts +13 -0
- package/{api/resources/db → dist/api/resources/model/resources/thera}/resources/employment/types/WageType.js +4 -0
- package/{api/resources/db → dist/api/resources/model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.d.ts +2 -2
- package/dist/api/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/dist/api/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/dist/api/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/dist/api/resources/model/resources/thera/resources/index.js +31 -0
- package/dist/core/fetcher/Fetcher.d.ts +5 -4
- package/dist/core/fetcher/Fetcher.js +82 -66
- package/dist/core/fetcher/Supplier.js +11 -2
- package/dist/core/fetcher/index.d.ts +3 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/schemas/builders/date/date.js +1 -4
- package/dist/core/schemas/builders/lazy/index.d.ts +2 -1
- package/dist/core/schemas/builders/lazy/lazy.js +21 -13
- package/dist/core/schemas/builders/lazy/lazyObject.js +11 -11
- package/dist/core/schemas/builders/list/list.js +51 -41
- package/dist/core/schemas/builders/object/index.d.ts +3 -2
- package/dist/core/schemas/builders/object/object.js +148 -140
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +17 -17
- package/dist/core/schemas/builders/object-like/index.d.ts +1 -1
- package/dist/core/schemas/builders/record/index.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +80 -75
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -1
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -1
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
- package/dist/core/schemas/builders/schema-utils/index.d.ts +2 -1
- package/dist/core/schemas/builders/set/set.js +18 -11
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +34 -26
- package/dist/core/schemas/builders/union/index.d.ts +3 -2
- package/dist/core/schemas/builders/union/union.js +93 -75
- package/dist/core/schemas/index.d.ts +1 -1
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -4
- package/dist/core/schemas/utils/maybeSkipValidation.js +14 -9
- package/dist/errors/TheraApiError.js +14 -3
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.js +11 -2
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementRequest.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentRequest.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/AdditionalFields.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Deduction.js +13 -4
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployeeContribution.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployerContribution.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Disbursement.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +14 -5
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/Shift.js +12 -3
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeduction.js +10 -1
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeductionDetails.js +11 -2
- package/dist/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/ZealEmployee.js +10 -1
- package/dist/serialization/resources/api/resources/test/resources/invoices/types/DemoFernInvoice.js +11 -2
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +45 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +25 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +55 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +15 -0
- package/dist/serialization/resources/{db/resources/employment/types/BiWeeklyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js} +7 -4
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +11 -2
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +11 -0
- package/dist/serialization/resources/{db/resources/employment/types/WageType.js → api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js} +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +13 -0
- package/dist/serialization/resources/{db/resources/employment/types/PayCycleEnd.js → api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js} +13 -11
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/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 +2 -1
- package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +10 -1
- package/dist/serialization/resources/db/resources/document/types/FernDocument.js +11 -2
- package/dist/serialization/resources/db/resources/document/types/FernRecipient.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/Earning.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/dist/serialization/resources/db/resources/employment/types/Employment.js +19 -9
- package/dist/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/EmploymentW2PayrollDetails.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/EorDetails.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/Frequency.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/Milestone.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/MilestoneDetails.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/ModifyRecurrencesRequest.js +10 -1
- package/dist/serialization/resources/db/resources/employment/types/Recurrence.js +11 -2
- package/dist/serialization/resources/db/resources/employment/types/RecurrenceDetails.js +11 -2
- package/dist/serialization/resources/db/resources/employment/types/RecurrenceModifications.js +11 -2
- package/dist/serialization/resources/db/resources/employment/types/index.d.ts +0 -12
- package/dist/serialization/resources/db/resources/employment/types/index.js +0 -12
- package/dist/serialization/resources/db/resources/payment/resources/invoice/types/FernInvoice.js +11 -2
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocument.js +10 -1
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +10 -1
- package/dist/serialization/resources/db/resources/user/types/ComplianceInformation.js +10 -1
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +13 -3
- package/dist/serialization/resources/db/resources/user/types/{FernUser.d.ts → User.d.ts} +2 -2
- package/dist/serialization/resources/db/resources/user/types/{FernUser.js → User.js} +12 -3
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -2
- package/dist/serialization/resources/db/resources/user/types/index.js +1 -2
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/model/index.d.ts +1 -0
- package/dist/serialization/resources/model/index.js +17 -0
- package/dist/serialization/resources/model/resources/index.d.ts +1 -0
- package/dist/serialization/resources/model/resources/index.js +27 -0
- package/dist/serialization/resources/model/resources/thera/index.d.ts +1 -0
- package/dist/serialization/resources/model/resources/thera/index.js +17 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/BiWeeklyPayCycleEnd.js +11 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/ContractDocumentType.d.ts +10 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +10 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/ContractType.js +31 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +4 -4
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/DayOfWeek.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/EmploymentType.d.ts +10 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/EmploymentType.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.js +1 -1
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.d.ts +11 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.js +1 -1
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.d.ts +6 -6
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.js +12 -3
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycle.d.ts +16 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.js +12 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +24 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js +54 -0
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +5 -5
- package/dist/serialization/resources/{db → model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.js +11 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/WageType.d.ts +10 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/WageType.js +2 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
- package/{serialization/resources/db → dist/serialization/resources/model/resources/thera}/resources/employment/types/WeeklyPayCycleEnd.js +11 -2
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/dist/serialization/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/dist/serialization/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/dist/serialization/resources/model/resources/thera/resources/index.js +31 -0
- package/errors/TheraApiError.js +14 -3
- package/package.json +3 -3
- package/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.js +11 -2
- package/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementRequest.js +10 -1
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.js +10 -1
- package/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentRequest.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/AdditionalFields.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Deduction.js +13 -4
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployeeContribution.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployerContribution.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Disbursement.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +14 -5
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/Shift.js +12 -3
- package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeduction.js +10 -1
- package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeductionDetails.js +11 -2
- package/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/ZealEmployee.js +10 -1
- package/serialization/resources/api/resources/test/resources/invoices/types/DemoFernInvoice.js +11 -2
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +45 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js +33 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +25 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +55 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +15 -0
- package/{dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js → serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js} +7 -4
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +42 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +43 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +11 -2
- package/serialization/resources/api/resources/thera/resources/disbursement/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js +31 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +47 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/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 +2 -1
- package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +10 -1
- package/serialization/resources/db/resources/document/types/FernDocument.js +11 -2
- package/serialization/resources/db/resources/document/types/FernRecipient.js +10 -1
- package/serialization/resources/db/resources/employment/types/Earning.js +10 -1
- package/serialization/resources/db/resources/employment/types/Employment.d.ts +5 -4
- package/serialization/resources/db/resources/employment/types/Employment.js +19 -9
- package/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +10 -1
- package/serialization/resources/db/resources/employment/types/EmploymentW2PayrollDetails.js +10 -1
- package/serialization/resources/db/resources/employment/types/EorDetails.js +10 -1
- package/serialization/resources/db/resources/employment/types/Frequency.js +10 -1
- package/serialization/resources/db/resources/employment/types/Milestone.js +10 -1
- package/serialization/resources/db/resources/employment/types/MilestoneDetails.js +10 -1
- package/serialization/resources/db/resources/employment/types/ModifyRecurrencesRequest.js +10 -1
- package/serialization/resources/db/resources/employment/types/Recurrence.js +11 -2
- package/serialization/resources/db/resources/employment/types/RecurrenceDetails.js +11 -2
- package/serialization/resources/db/resources/employment/types/RecurrenceModifications.js +11 -2
- package/serialization/resources/db/resources/employment/types/index.d.ts +0 -12
- package/serialization/resources/db/resources/employment/types/index.js +0 -12
- package/serialization/resources/db/resources/payment/resources/invoice/types/FernInvoice.js +11 -2
- package/serialization/resources/db/resources/user/types/ComplianceDocument.js +10 -1
- package/serialization/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +10 -1
- package/serialization/resources/db/resources/user/types/ComplianceInformation.js +10 -1
- package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
- package/serialization/resources/db/resources/user/types/EmployeeInformation.js +13 -3
- package/serialization/resources/db/resources/user/types/{FernUser.d.ts → User.d.ts} +2 -2
- package/serialization/resources/db/resources/user/types/{FernUser.js → User.js} +12 -3
- package/serialization/resources/db/resources/user/types/index.d.ts +1 -2
- package/serialization/resources/db/resources/user/types/index.js +1 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/model/index.d.ts +1 -0
- package/serialization/resources/model/index.js +17 -0
- package/serialization/resources/model/resources/index.d.ts +1 -0
- package/serialization/resources/model/resources/index.js +27 -0
- package/serialization/resources/model/resources/thera/index.d.ts +1 -0
- package/serialization/resources/model/resources/thera/index.js +17 -0
- package/serialization/resources/model/resources/thera/resources/employment/index.d.ts +1 -0
- package/serialization/resources/model/resources/thera/resources/employment/index.js +17 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
- package/serialization/resources/{db/resources/user/types/EmployeeInformationAddress.js → model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js} +13 -9
- package/serialization/resources/model/resources/thera/resources/employment/types/ContractDocumentType.d.ts +10 -0
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/ContractDocumentType.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/ContractType.d.ts +10 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/ContractType.js +31 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +4 -4
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/DayOfWeek.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/EmploymentType.d.ts +10 -0
- package/{dist/serialization/resources/db → serialization/resources/model/resources/thera}/resources/employment/types/EmploymentType.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.js +1 -1
- package/serialization/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.d.ts +11 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.js +1 -1
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.d.ts +6 -6
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/MonthlyPayCycleEnd.js +12 -3
- package/serialization/resources/model/resources/thera/resources/employment/types/PayCycle.d.ts +16 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/PayCycle.js +12 -2
- package/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.d.ts +24 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js +54 -0
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +5 -5
- package/serialization/resources/{db → model/resources/thera}/resources/employment/types/SemiMonthlyPayCycleEnd.js +11 -2
- package/serialization/resources/model/resources/thera/resources/employment/types/WageType.d.ts +10 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/WageType.js +31 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
- package/{dist/serialization/resources/db/resources/user/types/EmployeeInformationAddress.js → serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js} +13 -9
- package/serialization/resources/model/resources/thera/resources/employment/types/index.d.ts +13 -0
- package/serialization/resources/model/resources/thera/resources/employment/types/index.js +29 -0
- package/serialization/resources/model/resources/thera/resources/index.d.ts +2 -0
- package/serialization/resources/model/resources/thera/resources/index.js +31 -0
- package/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +0 -18
- package/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -21
- package/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +0 -14
- package/api/resources/db/resources/employment/types/WageType.d.ts +0 -9
- package/api/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -11
- package/dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +0 -18
- package/dist/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -21
- package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +0 -14
- package/dist/api/resources/db/resources/employment/types/WageType.d.ts +0 -9
- package/dist/api/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -11
- package/dist/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +0 -12
- package/dist/serialization/resources/db/resources/employment/types/ContractDocumentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/employment/types/EmploymentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -11
- package/dist/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +0 -11
- package/dist/serialization/resources/db/resources/employment/types/PayCycle.d.ts +0 -15
- package/dist/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -24
- package/dist/serialization/resources/db/resources/employment/types/WageType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +0 -12
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -17
- package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +0 -12
- package/serialization/resources/db/resources/employment/types/ContractDocumentType.d.ts +0 -10
- package/serialization/resources/db/resources/employment/types/EmploymentType.d.ts +0 -10
- package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -11
- package/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +0 -11
- package/serialization/resources/db/resources/employment/types/PayCycle.d.ts +0 -15
- package/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +0 -24
- package/serialization/resources/db/resources/employment/types/PayCycleEnd.js +0 -45
- package/serialization/resources/db/resources/employment/types/WageType.d.ts +0 -10
- package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +0 -12
- package/serialization/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -17
- /package/api/resources/{db/resources/employment/types/BiWeeklyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js} +0 -0
- /package/api/resources/{db/resources/employment/types/FifteenthAndEndOfMonth.js → api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js} +0 -0
- /package/api/resources/{db/resources/employment/types/LastDayOfMonth.js → api/resources/thera/resources/company/resources/companyApi/types/CreateEmployeeInformation.js} +0 -0
- /package/api/resources/{db/resources/employment/types/MonthlyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js} +0 -0
- /package/api/resources/{db/resources/employment/types/PayCycle.js → api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js} +0 -0
- /package/api/resources/{db/resources/employment/types/PayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js} +0 -0
- /package/api/resources/{db/resources/employment/types/SemiMonthlyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js} +0 -0
- /package/api/resources/{db/resources/employment/types/WeeklyPayCycleEnd.js → api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js} +0 -0
- /package/api/resources/{db/resources/user/types/EmployeeInformationAddress.js → api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/requests/InvoiceWebhookRequest.js} +0 -0
- /package/api/resources/{db/resources/user/types/FernUser.js → api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/CreateScheduledInvoiceEvent.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.js → api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js → api/resources/db/resources/user/types/User.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/LastDayOfMonth.js → api/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js} +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/ContractDocumentType.js +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.js +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.d.ts +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.js +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -0
- /package/{dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
- /package/api/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.d.ts +0 -0
- /package/{dist/api/resources/db/resources/employment/types/PayCycle.js → api/resources/model/resources/thera/resources/employment/types/LastDayOfMonth.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/PayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/PayCycle.js} +0 -0
- /package/{dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js → api/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js} +0 -0
- /package/{dist/api/resources/db/resources/user/types/EmployeeInformationAddress.js → api/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.js} +0 -0
- /package/{dist/api/resources/db/resources/user/types/FernUser.js → api/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js} +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/ContractDocumentType.js +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.d.ts +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/DayOfWeek.js +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.d.ts +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/EmploymentType.js +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/FifteenthAndEndOfMonth.d.ts +0 -0
- /package/dist/api/resources/{db → model/resources/thera}/resources/employment/types/LastDayOfMonth.d.ts +0 -0
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.record = void 0;
|
|
4
13
|
const Schema_1 = require("../../Schema");
|
|
@@ -9,93 +18,89 @@ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
|
9
18
|
const schema_utils_1 = require("../schema-utils");
|
|
10
19
|
function record(keySchema, valueSchema) {
|
|
11
20
|
const baseSchema = {
|
|
12
|
-
parse:
|
|
21
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
13
22
|
return validateAndTransformRecord({
|
|
14
23
|
value: raw,
|
|
15
|
-
isKeyNumeric: (
|
|
16
|
-
transformKey: (key) =>
|
|
17
|
-
|
|
18
|
-
breadcrumbsPrefix: [...(opts
|
|
19
|
-
}
|
|
20
|
-
transformValue: (value, key) =>
|
|
21
|
-
|
|
22
|
-
breadcrumbsPrefix: [...(opts
|
|
23
|
-
}
|
|
24
|
-
breadcrumbsPrefix: opts
|
|
24
|
+
isKeyNumeric: (yield keySchema.getType()) === Schema_1.SchemaType.NUMBER,
|
|
25
|
+
transformKey: (key) => {
|
|
26
|
+
var _a;
|
|
27
|
+
return keySchema.parse(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
|
|
28
|
+
},
|
|
29
|
+
transformValue: (value, key) => {
|
|
30
|
+
var _a;
|
|
31
|
+
return valueSchema.parse(value, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key}`] }));
|
|
32
|
+
},
|
|
33
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
25
34
|
});
|
|
26
|
-
},
|
|
27
|
-
json:
|
|
35
|
+
}),
|
|
36
|
+
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
28
37
|
return validateAndTransformRecord({
|
|
29
38
|
value: parsed,
|
|
30
|
-
isKeyNumeric: (
|
|
31
|
-
transformKey: (key) =>
|
|
32
|
-
|
|
33
|
-
breadcrumbsPrefix: [...(opts
|
|
34
|
-
}
|
|
35
|
-
transformValue: (value, key) =>
|
|
36
|
-
|
|
37
|
-
breadcrumbsPrefix: [...(opts
|
|
38
|
-
}
|
|
39
|
-
breadcrumbsPrefix: opts
|
|
39
|
+
isKeyNumeric: (yield keySchema.getType()) === Schema_1.SchemaType.NUMBER,
|
|
40
|
+
transformKey: (key) => {
|
|
41
|
+
var _a;
|
|
42
|
+
return keySchema.json(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
|
|
43
|
+
},
|
|
44
|
+
transformValue: (value, key) => {
|
|
45
|
+
var _a;
|
|
46
|
+
return valueSchema.json(value, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key}`] }));
|
|
47
|
+
},
|
|
48
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
40
49
|
});
|
|
41
|
-
},
|
|
50
|
+
}),
|
|
42
51
|
getType: () => Schema_1.SchemaType.RECORD,
|
|
43
52
|
};
|
|
44
|
-
return {
|
|
45
|
-
...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),
|
|
46
|
-
...(0, schema_utils_1.getSchemaUtils)(baseSchema),
|
|
47
|
-
};
|
|
53
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
48
54
|
}
|
|
49
55
|
exports.record = record;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return (0, entries_1.entries)(value).reduce(async (accPromise, [stringKey, value]) => {
|
|
63
|
-
// skip nullish keys
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return accPromise;
|
|
56
|
+
function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [], }) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
59
|
+
return {
|
|
60
|
+
ok: false,
|
|
61
|
+
errors: [
|
|
62
|
+
{
|
|
63
|
+
path: breadcrumbsPrefix,
|
|
64
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
};
|
|
66
68
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
return (0, entries_1.entries)(value).reduce((accPromise, [stringKey, value]) => __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
// skip nullish keys
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return accPromise;
|
|
73
|
+
}
|
|
74
|
+
const acc = yield accPromise;
|
|
75
|
+
let key = stringKey;
|
|
76
|
+
if (isKeyNumeric) {
|
|
77
|
+
const numberKey = stringKey.length > 0 ? Number(stringKey) : NaN;
|
|
78
|
+
if (!isNaN(numberKey)) {
|
|
79
|
+
key = numberKey;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const transformedKey = yield transformKey(key);
|
|
83
|
+
const transformedValue = yield transformValue(value, key);
|
|
84
|
+
if (acc.ok && transformedKey.ok && transformedValue.ok) {
|
|
85
|
+
return {
|
|
86
|
+
ok: true,
|
|
87
|
+
value: Object.assign(Object.assign({}, acc.value), { [transformedKey.value]: transformedValue.value }),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const errors = [];
|
|
91
|
+
if (!acc.ok) {
|
|
92
|
+
errors.push(...acc.errors);
|
|
93
|
+
}
|
|
94
|
+
if (!transformedKey.ok) {
|
|
95
|
+
errors.push(...transformedKey.errors);
|
|
96
|
+
}
|
|
97
|
+
if (!transformedValue.ok) {
|
|
98
|
+
errors.push(...transformedValue.errors);
|
|
73
99
|
}
|
|
74
|
-
}
|
|
75
|
-
const transformedKey = await transformKey(key);
|
|
76
|
-
const transformedValue = await transformValue(value, key);
|
|
77
|
-
if (acc.ok && transformedKey.ok && transformedValue.ok) {
|
|
78
100
|
return {
|
|
79
|
-
ok:
|
|
80
|
-
|
|
81
|
-
...acc.value,
|
|
82
|
-
[transformedKey.value]: transformedValue.value,
|
|
83
|
-
},
|
|
101
|
+
ok: false,
|
|
102
|
+
errors,
|
|
84
103
|
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (!acc.ok) {
|
|
88
|
-
errors.push(...acc.errors);
|
|
89
|
-
}
|
|
90
|
-
if (!transformedKey.ok) {
|
|
91
|
-
errors.push(...transformedKey.errors);
|
|
92
|
-
}
|
|
93
|
-
if (!transformedValue.ok) {
|
|
94
|
-
errors.push(...transformedValue.errors);
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
ok: false,
|
|
98
|
-
errors,
|
|
99
|
-
};
|
|
100
|
-
}, Promise.resolve({ ok: true, value: {} }));
|
|
104
|
+
}), Promise.resolve({ ok: true, value: {} }));
|
|
105
|
+
});
|
|
101
106
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.JsonError = void 0;
|
|
4
4
|
const stringifyValidationErrors_1 = require("./stringifyValidationErrors");
|
|
5
5
|
class JsonError extends Error {
|
|
6
|
-
errors;
|
|
7
6
|
constructor(errors) {
|
|
8
7
|
super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));
|
|
9
8
|
this.errors = errors;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ParseError = void 0;
|
|
4
4
|
const stringifyValidationErrors_1 = require("./stringifyValidationErrors");
|
|
5
5
|
class ParseError extends Error {
|
|
6
|
-
errors;
|
|
7
6
|
constructor(errors) {
|
|
8
7
|
super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));
|
|
9
8
|
this.errors = errors;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.transform = exports.optional = exports.getSchemaUtils = void 0;
|
|
4
13
|
const Schema_1 = require("../../Schema");
|
|
@@ -8,20 +17,20 @@ function getSchemaUtils(schema) {
|
|
|
8
17
|
return {
|
|
9
18
|
optional: () => optional(schema),
|
|
10
19
|
transform: (transformer) => transform(schema, transformer),
|
|
11
|
-
parseOrThrow:
|
|
12
|
-
const parsed =
|
|
20
|
+
parseOrThrow: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const parsed = yield schema.parse(raw, opts);
|
|
13
22
|
if (parsed.ok) {
|
|
14
23
|
return parsed.value;
|
|
15
24
|
}
|
|
16
25
|
throw new ParseError_1.ParseError(parsed.errors);
|
|
17
|
-
},
|
|
18
|
-
jsonOrThrow:
|
|
19
|
-
const raw =
|
|
26
|
+
}),
|
|
27
|
+
jsonOrThrow: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const raw = yield schema.json(parsed, opts);
|
|
20
29
|
if (raw.ok) {
|
|
21
30
|
return raw.value;
|
|
22
31
|
}
|
|
23
32
|
throw new JsonError_1.JsonError(raw.errors);
|
|
24
|
-
},
|
|
33
|
+
}),
|
|
25
34
|
};
|
|
26
35
|
}
|
|
27
36
|
exports.getSchemaUtils = getSchemaUtils;
|
|
@@ -50,16 +59,13 @@ function optional(schema) {
|
|
|
50
59
|
},
|
|
51
60
|
getType: () => Schema_1.SchemaType.OPTIONAL,
|
|
52
61
|
};
|
|
53
|
-
return {
|
|
54
|
-
...baseSchema,
|
|
55
|
-
...getSchemaUtils(baseSchema),
|
|
56
|
-
};
|
|
62
|
+
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
57
63
|
}
|
|
58
64
|
exports.optional = optional;
|
|
59
65
|
function transform(schema, transformer) {
|
|
60
66
|
const baseSchema = {
|
|
61
|
-
parse:
|
|
62
|
-
const parsed =
|
|
67
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const parsed = yield schema.parse(raw, opts);
|
|
63
69
|
if (!parsed.ok) {
|
|
64
70
|
return parsed;
|
|
65
71
|
}
|
|
@@ -67,16 +73,13 @@ function transform(schema, transformer) {
|
|
|
67
73
|
ok: true,
|
|
68
74
|
value: transformer.transform(parsed.value),
|
|
69
75
|
};
|
|
70
|
-
},
|
|
71
|
-
json:
|
|
72
|
-
const parsed =
|
|
76
|
+
}),
|
|
77
|
+
json: (transformed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const parsed = yield transformer.untransform(transformed);
|
|
73
79
|
return schema.json(parsed, opts);
|
|
74
|
-
},
|
|
80
|
+
}),
|
|
75
81
|
getType: () => schema.getType(),
|
|
76
82
|
};
|
|
77
|
-
return {
|
|
78
|
-
...baseSchema,
|
|
79
|
-
...getSchemaUtils(baseSchema),
|
|
80
|
-
};
|
|
83
|
+
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
81
84
|
}
|
|
82
85
|
exports.transform = transform;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { getSchemaUtils, optional, transform
|
|
1
|
+
export { getSchemaUtils, optional, transform } from "./getSchemaUtils";
|
|
2
|
+
export type { SchemaUtils } from "./getSchemaUtils";
|
|
2
3
|
export { JsonError } from "./JsonError";
|
|
3
4
|
export { ParseError } from "./ParseError";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.set = void 0;
|
|
4
13
|
const Schema_1 = require("../../Schema");
|
|
@@ -9,8 +18,8 @@ const schema_utils_1 = require("../schema-utils");
|
|
|
9
18
|
function set(schema) {
|
|
10
19
|
const listSchema = (0, list_1.list)(schema);
|
|
11
20
|
const baseSchema = {
|
|
12
|
-
parse:
|
|
13
|
-
const parsedList =
|
|
21
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const parsedList = yield listSchema.parse(raw, opts);
|
|
14
23
|
if (parsedList.ok) {
|
|
15
24
|
return {
|
|
16
25
|
ok: true,
|
|
@@ -20,27 +29,25 @@ function set(schema) {
|
|
|
20
29
|
else {
|
|
21
30
|
return parsedList;
|
|
22
31
|
}
|
|
23
|
-
},
|
|
24
|
-
json:
|
|
32
|
+
}),
|
|
33
|
+
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
var _a;
|
|
25
35
|
if (!(parsed instanceof Set)) {
|
|
26
36
|
return {
|
|
27
37
|
ok: false,
|
|
28
38
|
errors: [
|
|
29
39
|
{
|
|
30
|
-
path: opts
|
|
40
|
+
path: (_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : [],
|
|
31
41
|
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "Set"),
|
|
32
42
|
},
|
|
33
43
|
],
|
|
34
44
|
};
|
|
35
45
|
}
|
|
36
|
-
const jsonList =
|
|
46
|
+
const jsonList = yield listSchema.json([...parsed], opts);
|
|
37
47
|
return jsonList;
|
|
38
|
-
},
|
|
48
|
+
}),
|
|
39
49
|
getType: () => Schema_1.SchemaType.SET,
|
|
40
50
|
};
|
|
41
|
-
return {
|
|
42
|
-
...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),
|
|
43
|
-
...(0, schema_utils_1.getSchemaUtils)(baseSchema),
|
|
44
|
-
};
|
|
51
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
45
52
|
}
|
|
46
53
|
exports.set = set;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { inferParsedUnidiscriminatedUnionSchema, inferRawUnidiscriminatedUnionSchema, UndiscriminatedUnionSchema, } from "./types";
|
|
2
2
|
export { undiscriminatedUnion } from "./undiscriminatedUnion";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.undiscriminatedUnion = void 0;
|
|
4
13
|
const Schema_1 = require("../../Schema");
|
|
@@ -6,38 +15,37 @@ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
|
6
15
|
const schema_utils_1 = require("../schema-utils");
|
|
7
16
|
function undiscriminatedUnion(schemas) {
|
|
8
17
|
const baseSchema = {
|
|
9
|
-
parse:
|
|
18
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
10
19
|
return validateAndTransformUndiscriminatedUnion((schema) => schema.parse(raw, opts), schemas);
|
|
11
|
-
},
|
|
12
|
-
json:
|
|
20
|
+
}),
|
|
21
|
+
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
13
22
|
return validateAndTransformUndiscriminatedUnion((schema) => schema.json(parsed, opts), schemas);
|
|
14
|
-
},
|
|
23
|
+
}),
|
|
15
24
|
getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,
|
|
16
25
|
};
|
|
17
|
-
return {
|
|
18
|
-
...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),
|
|
19
|
-
...(0, schema_utils_1.getSchemaUtils)(baseSchema),
|
|
20
|
-
};
|
|
26
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
21
27
|
}
|
|
22
28
|
exports.undiscriminatedUnion = undiscriminatedUnion;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
errors
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
function validateAndTransformUndiscriminatedUnion(transform, schemas) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const errors = [];
|
|
32
|
+
for (const [index, schema] of schemas.entries()) {
|
|
33
|
+
const transformed = yield transform(schema);
|
|
34
|
+
if (transformed.ok) {
|
|
35
|
+
return transformed;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
for (const error of errors) {
|
|
39
|
+
errors.push({
|
|
40
|
+
path: error.path,
|
|
41
|
+
message: `[Variant ${index}] ${error.message}`,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
46
|
+
return {
|
|
47
|
+
ok: false,
|
|
48
|
+
errors,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
43
51
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { discriminant
|
|
2
|
-
export
|
|
1
|
+
export { discriminant } from "./discriminant";
|
|
2
|
+
export type { Discriminant } from "./discriminant";
|
|
3
|
+
export type { inferParsedDiscriminant, inferParsedUnion, inferRawDiscriminant, inferRawUnion, UnionSubtypes, } from "./types";
|
|
3
4
|
export { union } from "./union";
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.union = void 0;
|
|
4
24
|
const Schema_1 = require("../../Schema");
|
|
@@ -16,108 +36,106 @@ function union(discriminant, union) {
|
|
|
16
36
|
: discriminant.parsedDiscriminant;
|
|
17
37
|
const discriminantValueSchema = (0, enum_1.enum_)((0, keys_1.keys)(union));
|
|
18
38
|
const baseSchema = {
|
|
19
|
-
parse:
|
|
39
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
20
40
|
return transformAndValidateUnion({
|
|
21
41
|
value: raw,
|
|
22
42
|
discriminant: rawDiscriminant,
|
|
23
43
|
transformedDiscriminant: parsedDiscriminant,
|
|
24
|
-
transformDiscriminantValue: (discriminantValue) =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
44
|
+
transformDiscriminantValue: (discriminantValue) => {
|
|
45
|
+
var _a;
|
|
46
|
+
return discriminantValueSchema.parse(discriminantValue, {
|
|
47
|
+
allowUnrecognizedEnumValues: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
48
|
+
breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), rawDiscriminant],
|
|
49
|
+
});
|
|
50
|
+
},
|
|
28
51
|
getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue],
|
|
29
|
-
allowUnrecognizedUnionMembers: opts
|
|
52
|
+
allowUnrecognizedUnionMembers: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
30
53
|
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),
|
|
31
|
-
breadcrumbsPrefix: opts
|
|
54
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
32
55
|
});
|
|
33
|
-
},
|
|
34
|
-
json:
|
|
56
|
+
}),
|
|
57
|
+
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
35
58
|
return transformAndValidateUnion({
|
|
36
59
|
value: parsed,
|
|
37
60
|
discriminant: parsedDiscriminant,
|
|
38
61
|
transformedDiscriminant: rawDiscriminant,
|
|
39
|
-
transformDiscriminantValue: (discriminantValue) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
transformDiscriminantValue: (discriminantValue) => {
|
|
63
|
+
var _a;
|
|
64
|
+
return discriminantValueSchema.json(discriminantValue, {
|
|
65
|
+
allowUnrecognizedEnumValues: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
66
|
+
breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), parsedDiscriminant],
|
|
67
|
+
});
|
|
68
|
+
},
|
|
43
69
|
getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue],
|
|
44
|
-
allowUnrecognizedUnionMembers: opts
|
|
70
|
+
allowUnrecognizedUnionMembers: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
45
71
|
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),
|
|
46
|
-
breadcrumbsPrefix: opts
|
|
72
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
47
73
|
});
|
|
48
|
-
},
|
|
74
|
+
}),
|
|
49
75
|
getType: () => Schema_1.SchemaType.UNION,
|
|
50
76
|
};
|
|
51
|
-
return {
|
|
52
|
-
...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),
|
|
53
|
-
...(0, schema_utils_1.getSchemaUtils)(baseSchema),
|
|
54
|
-
...(0, object_like_1.getObjectLikeUtils)(baseSchema),
|
|
55
|
-
};
|
|
77
|
+
return Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema));
|
|
56
78
|
}
|
|
57
79
|
exports.union = union;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ok: false,
|
|
62
|
-
errors: [
|
|
63
|
-
{
|
|
64
|
-
path: breadcrumbsPrefix,
|
|
65
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
const { [discriminant]: discriminantValue, ...additionalProperties } = value;
|
|
71
|
-
if (discriminantValue == null) {
|
|
72
|
-
return {
|
|
73
|
-
ok: false,
|
|
74
|
-
errors: [
|
|
75
|
-
{
|
|
76
|
-
path: breadcrumbsPrefix,
|
|
77
|
-
message: `Missing discriminant ("${discriminant}")`,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
const transformedDiscriminantValue = await transformDiscriminantValue(discriminantValue);
|
|
83
|
-
if (!transformedDiscriminantValue.ok) {
|
|
84
|
-
return {
|
|
85
|
-
ok: false,
|
|
86
|
-
errors: transformedDiscriminantValue.errors,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
|
|
90
|
-
if (additionalPropertiesSchema == null) {
|
|
91
|
-
if (allowUnrecognizedUnionMembers) {
|
|
80
|
+
function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
92
83
|
return {
|
|
93
|
-
ok:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
84
|
+
ok: false,
|
|
85
|
+
errors: [
|
|
86
|
+
{
|
|
87
|
+
path: breadcrumbsPrefix,
|
|
88
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
89
|
+
},
|
|
90
|
+
],
|
|
98
91
|
};
|
|
99
92
|
}
|
|
100
|
-
|
|
93
|
+
const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
|
|
94
|
+
if (discriminantValue == null) {
|
|
101
95
|
return {
|
|
102
96
|
ok: false,
|
|
103
97
|
errors: [
|
|
104
98
|
{
|
|
105
|
-
path:
|
|
106
|
-
message:
|
|
99
|
+
path: breadcrumbsPrefix,
|
|
100
|
+
message: `Missing discriminant ("${discriminant}")`,
|
|
107
101
|
},
|
|
108
102
|
],
|
|
109
103
|
};
|
|
110
104
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
value
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
105
|
+
const transformedDiscriminantValue = yield transformDiscriminantValue(discriminantValue);
|
|
106
|
+
if (!transformedDiscriminantValue.ok) {
|
|
107
|
+
return {
|
|
108
|
+
ok: false,
|
|
109
|
+
errors: transformedDiscriminantValue.errors,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
|
|
113
|
+
if (additionalPropertiesSchema == null) {
|
|
114
|
+
if (allowUnrecognizedUnionMembers) {
|
|
115
|
+
return {
|
|
116
|
+
ok: true,
|
|
117
|
+
value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return {
|
|
122
|
+
ok: false,
|
|
123
|
+
errors: [
|
|
124
|
+
{
|
|
125
|
+
path: [...breadcrumbsPrefix, discriminant],
|
|
126
|
+
message: "Unexpected discriminant value",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const transformedAdditionalProperties = yield transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
|
|
133
|
+
if (!transformedAdditionalProperties.ok) {
|
|
134
|
+
return transformedAdditionalProperties;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
ok: true,
|
|
138
|
+
value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
|
|
139
|
+
};
|
|
140
|
+
});
|
|
123
141
|
}
|
package/core/schemas/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./builders";
|
|
2
|
-
export {
|
|
2
|
+
export type { inferParsed, inferRaw, Schema, SchemaOptions } from "./Schema";
|