@remoteoss/remote-flows 0.4.0-alpha.7 → 0.4.0-alpha.8
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/dist/chunk-2CIPNPU5.js +2 -0
- package/dist/chunk-2CIPNPU5.js.map +1 -0
- package/dist/chunk-6I6RMJXC.js +2 -0
- package/dist/chunk-6I6RMJXC.js.map +1 -0
- package/dist/{chunk-VH5XUW4V.js → chunk-CLBAB4TV.js} +2 -2
- package/dist/{chunk-I5THC7XD.js → chunk-CX7YH3EY.js} +2 -2
- package/dist/{chunk-RJGJMVJP.js → chunk-ENBY6GBG.js} +2 -2
- package/dist/{chunk-NPRFMPTB.js → chunk-FBJNIQRT.js} +2 -2
- package/dist/chunk-GFGXPHZP.js +2 -0
- package/dist/chunk-GFGXPHZP.js.map +1 -0
- package/dist/{chunk-X2LVNPXB.js → chunk-HBH2PSYQ.js} +2 -2
- package/dist/chunk-JI4NYTW4.js +2 -0
- package/dist/chunk-JI4NYTW4.js.map +1 -0
- package/dist/{chunk-DIR3VPZR.js → chunk-KFQTQ6MF.js} +2 -2
- package/dist/chunk-O562EWKG.js +2 -0
- package/dist/chunk-O562EWKG.js.map +1 -0
- package/dist/{chunk-VKGIGQWC.js → chunk-RS6OHJ7D.js} +2 -2
- package/dist/{chunk-CAKNEET3.js → chunk-U5ZTX2JG.js} +2 -2
- package/dist/chunk-U6GTSXBM.js +2 -0
- package/dist/chunk-U6GTSXBM.js.map +1 -0
- package/dist/{chunk-RBYMQQZC.js → chunk-UFKVREEJ.js} +2 -2
- package/dist/chunk-VYT6PSLL.js +2 -0
- package/dist/chunk-VYT6PSLL.js.map +1 -0
- package/dist/{chunk-VUCFEWCR.js → chunk-XQRRFXRN.js} +2 -2
- package/dist/{chunk-FK3IA6VY.js → chunk-XSS46DGP.js} +2 -2
- package/dist/{chunk-5JH7GALK.js → chunk-XTE3FJRR.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +1 -1
- package/dist/flows/ContractAmendment/hooks.d.ts +1 -1
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +1 -1
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +1 -1
- package/dist/flows/CostCalculator/hooks.d.ts +1 -1
- package/dist/flows/CostCalculator/index.d.ts +1 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +1 -1
- package/dist/flows/Onboarding/BasicInformationStep.d.ts +1 -1
- package/dist/flows/Onboarding/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/BenefitsStep.d.ts +1 -1
- package/dist/flows/Onboarding/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/ContractDetailsStep.d.ts +1 -1
- package/dist/flows/Onboarding/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/OnboardingBack.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +6 -1
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/OnboardingForm.d.ts +1 -1
- package/dist/flows/Onboarding/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/OnboardingInvite.d.ts +13 -7
- package/dist/flows/Onboarding/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/OnboardingSubmit.js +1 -1
- package/dist/flows/Onboarding/ReviewStep.d.ts +38 -0
- package/dist/flows/Onboarding/ReviewStep.js +2 -0
- package/dist/flows/Onboarding/ReviewStep.js.map +1 -0
- package/dist/flows/Onboarding/SelectCountryStep.d.ts +1 -1
- package/dist/flows/Onboarding/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +4 -8
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +24 -1
- package/dist/flows/Onboarding/context.js +1 -1
- package/dist/flows/Onboarding/hooks.d.ts +15 -1
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +5 -3
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +9 -2
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +1 -1
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +1 -1
- package/dist/flows/Termination/TimeOff.d.ts +1 -1
- package/dist/flows/Termination/context.d.ts +1 -1
- package/dist/flows/Termination/hooks.d.ts +1 -1
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +1 -1
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/types.d.ts +1 -1
- package/dist/flows/types.d.ts +1 -1
- package/dist/flows/useStepState.d.ts +7 -0
- package/dist/flows/useStepState.js +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{types.gen-CAOUvsW-.d.ts → types.gen-Ctv2nomK.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2URGWNSM.js +0 -2
- package/dist/chunk-2URGWNSM.js.map +0 -1
- package/dist/chunk-4LMZ7PNB.js +0 -2
- package/dist/chunk-4LMZ7PNB.js.map +0 -1
- package/dist/chunk-QH7YYTRC.js +0 -2
- package/dist/chunk-QH7YYTRC.js.map +0 -1
- package/dist/chunk-SNMWJPBW.js +0 -2
- package/dist/chunk-SNMWJPBW.js.map +0 -1
- package/dist/chunk-WS3C3WIJ.js +0 -2
- package/dist/chunk-WS3C3WIJ.js.map +0 -1
- package/dist/chunk-YM5PKRUW.js +0 -2
- package/dist/chunk-YM5PKRUW.js.map +0 -1
- /package/dist/{chunk-VH5XUW4V.js.map → chunk-CLBAB4TV.js.map} +0 -0
- /package/dist/{chunk-I5THC7XD.js.map → chunk-CX7YH3EY.js.map} +0 -0
- /package/dist/{chunk-RJGJMVJP.js.map → chunk-ENBY6GBG.js.map} +0 -0
- /package/dist/{chunk-NPRFMPTB.js.map → chunk-FBJNIQRT.js.map} +0 -0
- /package/dist/{chunk-X2LVNPXB.js.map → chunk-HBH2PSYQ.js.map} +0 -0
- /package/dist/{chunk-DIR3VPZR.js.map → chunk-KFQTQ6MF.js.map} +0 -0
- /package/dist/{chunk-VKGIGQWC.js.map → chunk-RS6OHJ7D.js.map} +0 -0
- /package/dist/{chunk-CAKNEET3.js.map → chunk-U5ZTX2JG.js.map} +0 -0
- /package/dist/{chunk-RBYMQQZC.js.map → chunk-UFKVREEJ.js.map} +0 -0
- /package/dist/{chunk-VUCFEWCR.js.map → chunk-XQRRFXRN.js.map} +0 -0
- /package/dist/{chunk-FK3IA6VY.js.map → chunk-XSS46DGP.js.map} +0 -0
- /package/dist/{chunk-5JH7GALK.js.map → chunk-XTE3FJRR.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as CostCalculatorEstimateParams } from '../../types.gen-
|
|
1
|
+
import { g as CostCalculatorEstimateParams } from '../../types.gen-Ctv2nomK.js';
|
|
2
2
|
import { $ as $TSFixMe } from '../../remoteFlows-iMN5oBtU.js';
|
|
3
3
|
import { AnyObjectSchema } from 'yup';
|
|
4
4
|
import { CostCalculatorEstimationSubmitValues, CostCalculatorEstimationOptions } from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { BasicInformationFormPayload } from './types.js';
|
|
3
|
-
import {
|
|
3
|
+
import { l as EmploymentCreationResponse } from '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
import '../types.js';
|
|
5
5
|
import '../CostCalculator/types.js';
|
|
6
6
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-CLBAB4TV.js";import"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as BasicInformationStep};
|
|
2
2
|
//# sourceMappingURL=BasicInformationStep.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { C as Components } from '../../remoteFlows-iMN5oBtU.js';
|
|
3
|
-
import { S as SuccessResponse } from '../../types.gen-
|
|
3
|
+
import { S as SuccessResponse } from '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
import { BenefitsFormPayload } from './types.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-hook-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-RS6OHJ7D.js";import"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as BenefitsStep};
|
|
2
2
|
//# sourceMappingURL=BenefitsStep.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { n as EmploymentResponse } from '../../types.gen-Ctv2nomK.js';
|
|
3
3
|
import { ContractDetailsFormPayload } from './types.js';
|
|
4
4
|
import '../types.js';
|
|
5
5
|
import '../CostCalculator/types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-CX7YH3EY.js";import"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractDetailsStep};
|
|
2
2
|
//# sourceMappingURL=ContractDetailsStep.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-FBJNIQRT.js";import"../../chunk-O562EWKG.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingBack};
|
|
2
2
|
//# sourceMappingURL=OnboardingBack.js.map
|
|
@@ -9,7 +9,9 @@ import { OnboardingInvite } from './OnboardingInvite.js';
|
|
|
9
9
|
import { ContractDetailsStep } from './ContractDetailsStep.js';
|
|
10
10
|
import { BenefitsStep } from './BenefitsStep.js';
|
|
11
11
|
import { SelectCountryStep } from './SelectCountryStep.js';
|
|
12
|
-
import '
|
|
12
|
+
import { ReviewStep } from './ReviewStep.js';
|
|
13
|
+
import '@tanstack/query-core';
|
|
14
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
13
15
|
import '../../mutations-v9H353tz.js';
|
|
14
16
|
import '@remoteoss/json-schema-form';
|
|
15
17
|
import '../useStepState.js';
|
|
@@ -39,6 +41,8 @@ type OnboardingRenderProps = {
|
|
|
39
41
|
* @see {@link BenefitsStep}
|
|
40
42
|
* @see {@link OnboardingCreateReserve}
|
|
41
43
|
* @see {@link InvitationSection}
|
|
44
|
+
* @see {@link SelectCountryStep}
|
|
45
|
+
* @see {@link ReviewStep}
|
|
42
46
|
*/
|
|
43
47
|
components: {
|
|
44
48
|
SubmitButton: typeof OnboardingSubmit;
|
|
@@ -48,6 +52,7 @@ type OnboardingRenderProps = {
|
|
|
48
52
|
ContractDetailsStep: typeof ContractDetailsStep;
|
|
49
53
|
BenefitsStep: typeof BenefitsStep;
|
|
50
54
|
SelectCountryStep: typeof SelectCountryStep;
|
|
55
|
+
ReviewStep: typeof ReviewStep;
|
|
51
56
|
};
|
|
52
57
|
};
|
|
53
58
|
type OnboardingFlowProps = OnboardingFlowParams & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-U6GTSXBM.js";import"../../chunk-GFGXPHZP.js";import"../../chunk-UFKVREEJ.js";import"../../chunk-6I6RMJXC.js";import"../../chunk-XTE3FJRR.js";import"../../chunk-2CIPNPU5.js";import"../../chunk-CVGR3FDH.js";import"../../chunk-VYT6PSLL.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-CLBAB4TV.js";import"../../chunk-RS6OHJ7D.js";import"../../chunk-CX7YH3EY.js";import"../../chunk-FBJNIQRT.js";import"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-G7BISHWK.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-JI4NYTW4.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=OnboardingFlow.js.map
|
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { Fields } from '@remoteoss/json-schema-form';
|
|
3
3
|
import { BasicInformationFormPayload, BenefitsFormPayload, ContractDetailsFormPayload } from './types.js';
|
|
4
4
|
import { C as Components } from '../../remoteFlows-iMN5oBtU.js';
|
|
5
|
-
import '../../types.gen-
|
|
5
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
6
6
|
import '../types.js';
|
|
7
7
|
import '../CostCalculator/types.js';
|
|
8
8
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingForm};
|
|
2
2
|
//# sourceMappingURL=OnboardingForm.js.map
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import { S as SuccessResponse } from '../../types.gen-
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { S as SuccessResponse } from '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
|
|
5
|
-
type OnboardingInviteProps =
|
|
6
|
-
onSuccess?: (data
|
|
5
|
+
type OnboardingInviteProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
+
onSuccess?: ({ data, employmentStatus, }: {
|
|
7
|
+
data: SuccessResponse;
|
|
8
|
+
employmentStatus: 'invited' | 'created_awaiting_reserve';
|
|
9
|
+
}) => void | Promise<void>;
|
|
7
10
|
onError?: (error: unknown) => void;
|
|
8
11
|
onSubmit?: () => void | Promise<void>;
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
render: (props: {
|
|
13
|
+
employmentStatus: 'invited' | 'created_awaiting_reserve';
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
};
|
|
16
|
+
declare function OnboardingInvite({ onSubmit, onSuccess, onError, render, ...props }: OnboardingInviteProps): react_jsx_runtime.JSX.Element;
|
|
11
17
|
|
|
12
|
-
export { OnboardingInvite };
|
|
18
|
+
export { OnboardingInvite, type OnboardingInviteProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-GFGXPHZP.js";import"../../chunk-VYT6PSLL.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-O562EWKG.js";import"../../chunk-G7BISHWK.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingInvite};
|
|
2
2
|
//# sourceMappingURL=OnboardingInvite.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-UFKVREEJ.js";import"../../chunk-O562EWKG.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingSubmit};
|
|
2
2
|
//# sourceMappingURL=OnboardingSubmit.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { CreditRiskState, CreditRiskStatus } from './types.js';
|
|
3
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
4
|
+
import '../types.js';
|
|
5
|
+
import '../CostCalculator/types.js';
|
|
6
|
+
import '@remoteoss/json-schema-form';
|
|
7
|
+
|
|
8
|
+
type ReviewStepProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Render prop function for customizing the review step credit risk flow UI
|
|
11
|
+
*
|
|
12
|
+
* @param props - Object containing credit risk information
|
|
13
|
+
* @param props.creditRiskState - Current state of the credit risk flow
|
|
14
|
+
* - 'deposit_required': Deposit payment is required but not yet paid
|
|
15
|
+
* - 'deposit_required_successful': Deposit payment has been successfully processed
|
|
16
|
+
* - 'invite': Regular invite flow is available (no deposit required)
|
|
17
|
+
* - 'invite_successful': Invitation has been successfully sent
|
|
18
|
+
* - null: No specific credit risk state applies
|
|
19
|
+
*
|
|
20
|
+
* @param props.creditRiskStatus - Credit risk status from the backend
|
|
21
|
+
* - 'not_started': Credit risk assessment has not been initiated
|
|
22
|
+
* - 'ready': Ready for credit risk assessment
|
|
23
|
+
* - 'in_progress': Credit risk assessment is in progress
|
|
24
|
+
* - 'referred': Company has been referred for manual review
|
|
25
|
+
* - 'fail': Credit risk assessment failed
|
|
26
|
+
* - 'deposit_required': Company requires a deposit payment
|
|
27
|
+
* - 'no_deposit_required': No deposit is required for this company
|
|
28
|
+
* - undefined: Credit risk status not yet determined
|
|
29
|
+
* @returns React.ReactNode to render for the review step
|
|
30
|
+
*/
|
|
31
|
+
render: (props: {
|
|
32
|
+
creditRiskState: CreditRiskState;
|
|
33
|
+
creditRiskStatus: CreditRiskStatus | undefined;
|
|
34
|
+
}) => React.ReactNode;
|
|
35
|
+
};
|
|
36
|
+
declare function ReviewStep({ render }: ReviewStepProps): react.ReactNode;
|
|
37
|
+
|
|
38
|
+
export { ReviewStep };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { SelectCountryFormPayload, SelectCountrySuccess } from './types.js';
|
|
3
|
-
import '../../types.gen-
|
|
3
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
import '../types.js';
|
|
5
5
|
import '../CostCalculator/types.js';
|
|
6
6
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XTE3FJRR.js";import"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as SelectCountryStep};
|
|
2
2
|
//# sourceMappingURL=SelectCountryStep.js.map
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
|
-
import {
|
|
3
|
+
import { i as Employment, q as Company, S as SuccessResponse, r as PostInviteEmploymentInvitationError, s as PostCreateRiskReserveError, l as EmploymentCreationResponse, m as PostCreateEmployment2Error, h as EmploymentCreateParams, n as EmploymentResponse, o as PatchUpdateEmployment2Error, t as EmploymentFullParams, p as PutUpdateBenefitOfferError, U as UnifiedEmploymentUpsertBenefitOffersRequest, M as MagicLinkResponse, u as UnprocessableEntityResponse, v as MagicLinkParams } from '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
import { OnboardingFlowParams } from './types.js';
|
|
5
5
|
import { JSONSchemaFormType, FlowOptions } from '../types.js';
|
|
6
6
|
import { FieldValues } from 'react-hook-form';
|
|
7
7
|
import '../CostCalculator/types.js';
|
|
8
8
|
|
|
9
|
-
declare const useEmployment: (employmentId: string | undefined) => _tanstack_react_query.UseQueryResult<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} & {
|
|
13
|
-
request: Request;
|
|
14
|
-
response: Response;
|
|
15
|
-
}, Error>;
|
|
9
|
+
declare const useEmployment: (employmentId: string | undefined) => _tanstack_react_query.UseQueryResult<(Employment & {
|
|
10
|
+
termination_date?: string | null;
|
|
11
|
+
}) | undefined, Error>;
|
|
16
12
|
declare const useCompany: (companyId: string) => _tanstack_react_query.UseQueryResult<Company | undefined, Error>;
|
|
17
13
|
declare const useBenefitOffers: (employmentId: string | undefined) => _tanstack_react_query.UseQueryResult<Record<string, {
|
|
18
14
|
value: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-VYT6PSLL.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-G7BISHWK.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-AYDF3IFZ.js";export{c as useBenefitOffers,g as useBenefitOffersSchema,b as useCompany,l as useCountriesSchemaField,h as useCreateEmployment,e as useCreateReserveInvoice,a as useEmployment,d as useEmploymentInvite,f as useJSONSchemaForm,k as useMagicLink,j as useUpdateBenefitsOffers,i as useUpdateEmployment};
|
|
2
2
|
//# sourceMappingURL=api.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
1
2
|
import { STEPS } from './utils.js';
|
|
2
|
-
import {
|
|
3
|
+
import { l as EmploymentCreationResponse, m as PostCreateEmployment2Error, n as EmploymentResponse, o as PatchUpdateEmployment2Error, S as SuccessResponse$1, p as PutUpdateBenefitOfferError, i as Employment } from '../../types.gen-Ctv2nomK.js';
|
|
3
4
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
4
5
|
import * as react from 'react';
|
|
5
6
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -13,6 +14,14 @@ import '../CostCalculator/types.js';
|
|
|
13
14
|
declare const OnboardingContext: react.Context<{
|
|
14
15
|
formId: string | undefined;
|
|
15
16
|
onboardingBag: ReturnType<typeof useOnboarding> | null;
|
|
17
|
+
creditScore: {
|
|
18
|
+
showReserveInvoice: boolean;
|
|
19
|
+
showInviteSuccessful: boolean;
|
|
20
|
+
};
|
|
21
|
+
setCreditScore: React.Dispatch<React.SetStateAction<{
|
|
22
|
+
showReserveInvoice: boolean;
|
|
23
|
+
showInviteSuccessful: boolean;
|
|
24
|
+
}>>;
|
|
16
25
|
}>;
|
|
17
26
|
declare const useOnboardingContext: () => {
|
|
18
27
|
readonly formId: string;
|
|
@@ -84,7 +93,21 @@ declare const useOnboardingContext: () => {
|
|
|
84
93
|
meta: {
|
|
85
94
|
fields: Record<string, any>;
|
|
86
95
|
};
|
|
96
|
+
refetchEmployment: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<(Employment & {
|
|
97
|
+
termination_date?: string | null;
|
|
98
|
+
}) | undefined, Error>>;
|
|
99
|
+
employment: (Employment & {
|
|
100
|
+
termination_date?: string | null;
|
|
101
|
+
}) | undefined;
|
|
102
|
+
};
|
|
103
|
+
readonly creditScore: {
|
|
104
|
+
showReserveInvoice: boolean;
|
|
105
|
+
showInviteSuccessful: boolean;
|
|
87
106
|
};
|
|
107
|
+
readonly setCreditScore: react.Dispatch<react.SetStateAction<{
|
|
108
|
+
showReserveInvoice: boolean;
|
|
109
|
+
showInviteSuccessful: boolean;
|
|
110
|
+
}>>;
|
|
88
111
|
};
|
|
89
112
|
|
|
90
113
|
export { OnboardingContext, useOnboardingContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-O562EWKG.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingContext,b as useOnboardingContext};
|
|
2
2
|
//# sourceMappingURL=context.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
2
|
+
import { l as EmploymentCreationResponse, m as PostCreateEmployment2Error, n as EmploymentResponse, o as PatchUpdateEmployment2Error, S as SuccessResponse$1, p as PutUpdateBenefitOfferError, i as Employment } from '../../types.gen-Ctv2nomK.js';
|
|
2
3
|
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-v9H353tz.js';
|
|
3
4
|
import * as react from 'react';
|
|
4
5
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
@@ -143,6 +144,19 @@ declare const useOnboarding: ({ employmentId, companyId, countryCode, type, opti
|
|
|
143
144
|
meta: {
|
|
144
145
|
fields: Record<string, any>;
|
|
145
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* Function to refetch the employment data
|
|
149
|
+
* @returns {void}
|
|
150
|
+
*/
|
|
151
|
+
refetchEmployment: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<(Employment & {
|
|
152
|
+
termination_date?: string | null;
|
|
153
|
+
}) | undefined, Error>>;
|
|
154
|
+
/**
|
|
155
|
+
* Employment data
|
|
156
|
+
*/
|
|
157
|
+
employment: (Employment & {
|
|
158
|
+
termination_date?: string | null;
|
|
159
|
+
}) | undefined;
|
|
146
160
|
};
|
|
147
161
|
|
|
148
162
|
export { useOnboarding };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-2CIPNPU5.js";import"../../chunk-CVGR3FDH.js";import"../../chunk-VYT6PSLL.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-G7BISHWK.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-JI4NYTW4.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-AYDF3IFZ.js";export{a as useOnboarding};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { OnboardingFlow, OnboardingRenderProps } from './OnboardingFlow.js';
|
|
2
|
-
export {
|
|
2
|
+
export { OnboardingInviteProps } from './OnboardingInvite.js';
|
|
3
|
+
export { BasicInformationFormPayload, BenefitsFormPayload, ContractDetailsFormPayload, CreditRiskState, CreditRiskStatus, Employment, SelectCountryFormPayload, SelectCountrySuccess } from './types.js';
|
|
3
4
|
import 'react/jsx-runtime';
|
|
4
5
|
import 'react';
|
|
5
6
|
import './hooks.js';
|
|
6
|
-
import '
|
|
7
|
+
import '@tanstack/query-core';
|
|
8
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
7
9
|
import '../../mutations-v9H353tz.js';
|
|
8
10
|
import '@remoteoss/json-schema-form';
|
|
9
11
|
import '../useStepState.js';
|
|
@@ -14,10 +16,10 @@ import '../CostCalculator/types.js';
|
|
|
14
16
|
import './BasicInformationStep.js';
|
|
15
17
|
import './OnboardingSubmit.js';
|
|
16
18
|
import './OnboardingBack.js';
|
|
17
|
-
import './OnboardingInvite.js';
|
|
18
19
|
import './ContractDetailsStep.js';
|
|
19
20
|
import './BenefitsStep.js';
|
|
20
21
|
import '../../remoteFlows-iMN5oBtU.js';
|
|
21
22
|
import 'yup';
|
|
22
23
|
import '../../types-CxSFjQw5.js';
|
|
23
24
|
import './SelectCountryStep.js';
|
|
25
|
+
import './ReviewStep.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-GULCZWSK.js";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-GULCZWSK.js";import{a}from"../../chunk-U6GTSXBM.js";import"../../chunk-GFGXPHZP.js";import"../../chunk-UFKVREEJ.js";import"../../chunk-6I6RMJXC.js";import"../../chunk-XTE3FJRR.js";import"../../chunk-2CIPNPU5.js";import"../../chunk-CVGR3FDH.js";import"../../chunk-VYT6PSLL.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-CLBAB4TV.js";import"../../chunk-RS6OHJ7D.js";import"../../chunk-CX7YH3EY.js";import"../../chunk-FBJNIQRT.js";import"../../chunk-U5ZTX2JG.js";import"../../chunk-O562EWKG.js";import"../../chunk-G7BISHWK.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-JI4NYTW4.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as EmploymentCreateParams } from '../../types.gen-
|
|
1
|
+
import { h as EmploymentCreateParams, i as Employment$1 } from '../../types.gen-Ctv2nomK.js';
|
|
2
2
|
import { FlowOptions } from '../types.js';
|
|
3
3
|
import '../CostCalculator/types.js';
|
|
4
4
|
import '@remoteoss/json-schema-form';
|
|
@@ -40,5 +40,12 @@ type BenefitsFormPayload = Record<string, {
|
|
|
40
40
|
}>;
|
|
41
41
|
type ContractDetailsFormPayload = Record<string, unknown>;
|
|
42
42
|
type CreditRiskStatus = 'not_started' | 'ready' | 'in_progress' | 'referred' | 'fail' | 'deposit_required' | 'no_deposit_required';
|
|
43
|
+
type Employment = Employment$1 & {
|
|
44
|
+
/**
|
|
45
|
+
* Most updated termination date for the offboarding. This date is subject to change through the offboarding process even after it is finalized.
|
|
46
|
+
*/
|
|
47
|
+
termination_date?: string | null;
|
|
48
|
+
};
|
|
49
|
+
type CreditRiskState = 'deposit_required' | 'deposit_required_successful' | 'invite' | 'invite_successful' | null;
|
|
43
50
|
|
|
44
|
-
export type { BasicInformationFormPayload, BenefitsFormPayload, ContractDetailsFormPayload, CreditRiskStatus, OnboardingFlowParams, SelectCountryFormPayload, SelectCountrySuccess };
|
|
51
|
+
export type { BasicInformationFormPayload, BenefitsFormPayload, ContractDetailsFormPayload, CreditRiskState, CreditRiskStatus, Employment, OnboardingFlowParams, SelectCountryFormPayload, SelectCountrySuccess };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { TerminationFormValues } from './types.js';
|
|
3
|
-
import { O as OffboardingResponse } from '../../types.gen-
|
|
3
|
+
import { O as OffboardingResponse } from '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
|
|
5
5
|
type AdditionalDetailsFormProps = {
|
|
6
6
|
requesterName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { TerminationFormValues } from './types.js';
|
|
3
|
-
import '../../types.gen-
|
|
3
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
|
|
5
5
|
type EmployeeComunicationProps = {
|
|
6
6
|
onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { TerminationFormValues } from './types.js';
|
|
3
|
-
import '../../types.gen-
|
|
3
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
|
|
5
5
|
type PaidTimeOffFormProps = {
|
|
6
6
|
onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { TerminationFormValues } from './types.js';
|
|
3
|
-
import '../../types.gen-
|
|
3
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
4
4
|
|
|
5
5
|
type TerminationDetailsFormProps = {
|
|
6
6
|
onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
|
|
@@ -10,7 +10,7 @@ import { TerminationDetailsForm } from './TerminationDetailsForm.js';
|
|
|
10
10
|
import { PaidTimeOffForm } from './PaidTimeOffForm.js';
|
|
11
11
|
import { AdditionalDetailsForm } from './AdditionalDetailsForm.js';
|
|
12
12
|
import './types.js';
|
|
13
|
-
import '../../types.gen-
|
|
13
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
14
14
|
import '../../mutations-v9H353tz.js';
|
|
15
15
|
import '@remoteoss/json-schema-form';
|
|
16
16
|
import '../useStepState.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XSS46DGP.js";import"../../chunk-47DB6L3S.js";import"../../chunk-WEIRXEXU.js";import"../../chunk-XQRRFXRN.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-WWANHPT7.js";import"../../chunk-2Y22JKVE.js";import"../../chunk-JODJFARP.js";import"../../chunk-W5DG5WWJ.js";import"../../chunk-VX2UC3HG.js";import"../../chunk-XSHHMBMT.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-ZJT4Y4TA.js";import"../../chunk-SQ73CU3B.js";import"../../chunk-N6RPXNGN.js";import"../../chunk-JGUJV45B.js";import"../../chunk-75YWGTNG.js";import"../../chunk-6W5KUXEP.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-G7BISHWK.js";import"../../chunk-3PH5E6CZ.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-JI4NYTW4.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as TerminationFlow};
|
|
2
2
|
//# sourceMappingURL=TerminationFlow.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { TerminationFormValues } from './types.js';
|
|
3
3
|
import { Fields } from '@remoteoss/json-schema-form';
|
|
4
|
-
import '../../types.gen-
|
|
4
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
5
5
|
|
|
6
6
|
type TerminationFormProps = {
|
|
7
7
|
onSubmit: (payload: TerminationFormValues) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EmploymentShowResponse, L as ListTimeoffResponse } from '../../types.gen-
|
|
1
|
+
import { E as EmploymentShowResponse, L as ListTimeoffResponse } from '../../types.gen-Ctv2nomK.js';
|
|
2
2
|
import react__default from 'react';
|
|
3
3
|
|
|
4
4
|
declare const TimeOff: ({ render, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OffboardingResponse,
|
|
1
|
+
import { O as OffboardingResponse, k as PostCreateOffboardingError } from '../../types.gen-Ctv2nomK.js';
|
|
2
2
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-v9H353tz.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OffboardingResponse,
|
|
1
|
+
import { O as OffboardingResponse, k as PostCreateOffboardingError } from '../../types.gen-Ctv2nomK.js';
|
|
2
2
|
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-v9H353tz.js';
|
|
3
3
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
4
4
|
import { Step } from '../useStepState.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XQRRFXRN.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-WWANHPT7.js";import"../../chunk-2Y22JKVE.js";import"../../chunk-JODJFARP.js";import"../../chunk-W5DG5WWJ.js";import"../../chunk-VX2UC3HG.js";import"../../chunk-XSHHMBMT.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-G7BISHWK.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-JI4NYTW4.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-AYDF3IFZ.js";export{a as useTermination};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -3,7 +3,7 @@ export { TerminationFormValues } from './types.js';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './hooks.js';
|
|
6
|
-
import '../../types.gen-
|
|
6
|
+
import '../../types.gen-Ctv2nomK.js';
|
|
7
7
|
import '../../mutations-v9H353tz.js';
|
|
8
8
|
import '@remoteoss/json-schema-form';
|
|
9
9
|
import '../useStepState.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-M22FKNEY.js";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-M22FKNEY.js";import{a}from"../../chunk-XSS46DGP.js";import"../../chunk-47DB6L3S.js";import"../../chunk-WEIRXEXU.js";import"../../chunk-XQRRFXRN.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-WWANHPT7.js";import"../../chunk-2Y22JKVE.js";import"../../chunk-JODJFARP.js";import"../../chunk-W5DG5WWJ.js";import"../../chunk-VX2UC3HG.js";import"../../chunk-XSHHMBMT.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-ZJT4Y4TA.js";import"../../chunk-SQ73CU3B.js";import"../../chunk-N6RPXNGN.js";import"../../chunk-JGUJV45B.js";import"../../chunk-75YWGTNG.js";import"../../chunk-6W5KUXEP.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-G7BISHWK.js";import"../../chunk-3PH5E6CZ.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-GMU3QGAR.js";import"../../chunk-JI4NYTW4.js";import"../../chunk-ENMJ56WK.js";import"../../chunk-NEFNFYRS.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-EMVYCKDC.js";import"../../chunk-ONZPO4GN.js";import"../../chunk-TPRGCMIZ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as TerminationFlow};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/flows/types.d.ts
CHANGED
|
@@ -50,6 +50,13 @@ declare const useStepState: <T extends string, Fields = FieldValues>(steps: Reco
|
|
|
50
50
|
* @returns {void}
|
|
51
51
|
*/
|
|
52
52
|
setFieldValues: react.Dispatch<react.SetStateAction<Fields>>;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the step values for the step state.
|
|
55
|
+
* This is used to update all values in the step state.
|
|
56
|
+
* @param values The values to set for the all steps.
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
setStepValues: (values: Record<T, Fields>) => void;
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { type Step, useStepState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-JI4NYTW4.js";import"../chunk-AYDF3IFZ.js";export{a as useStepState};
|
|
2
2
|
//# sourceMappingURL=useStepState.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -15,11 +15,12 @@ export { useContractAmendment } from './flows/ContractAmendment/hooks.js';
|
|
|
15
15
|
export { TerminationFlow, TerminationRenderProps } from './flows/Termination/TerminationFlow.js';
|
|
16
16
|
export { TerminationFormValues } from './flows/Termination/types.js';
|
|
17
17
|
export { OnboardingFlow, OnboardingRenderProps } from './flows/Onboarding/OnboardingFlow.js';
|
|
18
|
-
export {
|
|
18
|
+
export { OnboardingInviteProps } from './flows/Onboarding/OnboardingInvite.js';
|
|
19
|
+
export { BasicInformationFormPayload, BenefitsFormPayload, ContractDetailsFormPayload, CreditRiskState, CreditRiskStatus, Employment, SelectCountryFormPayload, SelectCountrySuccess } from './flows/Onboarding/types.js';
|
|
19
20
|
export { CostCalculatorEstimationFormValues, CostCalculatorEstimationOptions, CostCalculatorEstimationSubmitValues, JSFModify } from './flows/CostCalculator/types.js';
|
|
20
21
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
21
|
-
import { E as EmploymentShowResponse,
|
|
22
|
-
export {
|
|
22
|
+
import { E as EmploymentShowResponse, w as TimeoffStatus, L as ListTimeoffResponse } from './types.gen-Ctv2nomK.js';
|
|
23
|
+
export { q as Company, C as ContractAmendmentAutomatableResponse, x as CostCalculatorEmployment, c as CostCalculatorEstimateResponse, y as Currency, l as EmploymentCreationResponse, n as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-Ctv2nomK.js';
|
|
23
24
|
import { ContractAmendmentParams } from './flows/ContractAmendment/types.js';
|
|
24
25
|
import { ValidationError } from 'yup';
|
|
25
26
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -43,14 +44,15 @@ import './flows/Termination/TerminationDetailsForm.js';
|
|
|
43
44
|
import './flows/Termination/PaidTimeOffForm.js';
|
|
44
45
|
import './flows/Termination/AdditionalDetailsForm.js';
|
|
45
46
|
import './flows/Onboarding/hooks.js';
|
|
47
|
+
import '@tanstack/query-core';
|
|
46
48
|
import './flows/Onboarding/utils.js';
|
|
47
49
|
import './flows/Onboarding/BasicInformationStep.js';
|
|
48
50
|
import './flows/Onboarding/OnboardingSubmit.js';
|
|
49
51
|
import './flows/Onboarding/OnboardingBack.js';
|
|
50
|
-
import './flows/Onboarding/OnboardingInvite.js';
|
|
51
52
|
import './flows/Onboarding/ContractDetailsStep.js';
|
|
52
53
|
import './flows/Onboarding/BenefitsStep.js';
|
|
53
54
|
import './flows/Onboarding/SelectCountryStep.js';
|
|
55
|
+
import './flows/Onboarding/ReviewStep.js';
|
|
54
56
|
|
|
55
57
|
type UseEmployment = Pick<ContractAmendmentParams, 'employmentId'>;
|
|
56
58
|
/**
|