@remoteoss/remote-flows 0.1.1 → 0.1.2
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-2DWTIFOU.js +2 -0
- package/dist/chunk-2DWTIFOU.js.map +1 -0
- package/dist/chunk-36UPHOJS.js +2 -0
- package/dist/chunk-36UPHOJS.js.map +1 -0
- package/dist/chunk-37DREOGC.js +2 -0
- package/dist/chunk-37DREOGC.js.map +1 -0
- package/dist/chunk-5DQBY2TR.js +2 -0
- package/dist/chunk-5DQBY2TR.js.map +1 -0
- package/dist/{chunk-VV7RML2Q.js → chunk-5O2L2L25.js} +2 -2
- package/dist/chunk-5PXYSIYN.js +2 -0
- package/dist/chunk-5PXYSIYN.js.map +1 -0
- package/dist/chunk-5YDR5BIG.js +2 -0
- package/dist/chunk-5YDR5BIG.js.map +1 -0
- package/dist/chunk-6DMCAUPE.js +2 -0
- package/dist/chunk-6DMCAUPE.js.map +1 -0
- package/dist/chunk-6HGUGIYJ.js +2 -0
- package/dist/chunk-6HGUGIYJ.js.map +1 -0
- package/dist/chunk-A7ZJQCNU.js +1 -0
- package/dist/chunk-CKGTR44U.js +2 -0
- package/dist/chunk-CKGTR44U.js.map +1 -0
- package/dist/chunk-DZYFSFZ7.js +2 -0
- package/dist/chunk-DZYFSFZ7.js.map +1 -0
- package/dist/chunk-FZ7FWFJX.js +1 -0
- package/dist/chunk-FZ7FWFJX.js.map +1 -0
- package/dist/chunk-G2GI6FEO.js +2 -0
- package/dist/{chunk-5UXOVZY5.js.map → chunk-G2GI6FEO.js.map} +1 -1
- package/dist/chunk-HELGRHUB.js +2 -0
- package/dist/chunk-HELGRHUB.js.map +1 -0
- package/dist/chunk-JRQSZHUU.js +2 -0
- package/dist/chunk-JRQSZHUU.js.map +1 -0
- package/dist/chunk-JWMY3OVH.js +2 -0
- package/dist/chunk-JWMY3OVH.js.map +1 -0
- package/dist/chunk-LUCFM5TE.js +2 -0
- package/dist/chunk-LUCFM5TE.js.map +1 -0
- package/dist/chunk-QWZVBZED.js +2 -0
- package/dist/{chunk-Q6GIPVSE.js.map → chunk-QWZVBZED.js.map} +1 -1
- package/dist/chunk-RL2KU7BM.js +2 -0
- package/dist/chunk-RL2KU7BM.js.map +1 -0
- package/dist/chunk-ROPNMSSM.js +2 -0
- package/dist/{chunk-YNLDKIE4.js.map → chunk-ROPNMSSM.js.map} +1 -1
- package/dist/chunk-TIXDBKBM.js +2 -0
- package/dist/chunk-TIXDBKBM.js.map +1 -0
- package/dist/chunk-TPKAREI4.js +2 -0
- package/dist/chunk-TPKAREI4.js.map +1 -0
- package/dist/{chunk-KQCZ2KSO.js → chunk-WTGUGPHV.js} +2 -2
- package/dist/{chunk-KQCZ2KSO.js.map → chunk-WTGUGPHV.js.map} +1 -1
- package/dist/chunk-XFE56PM4.js +2 -0
- package/dist/chunk-XFE56PM4.js.map +1 -0
- package/dist/chunk-Y5UG6SJJ.js +2 -0
- package/dist/chunk-Y5UG6SJJ.js.map +1 -0
- package/dist/chunk-ZCG5JUUR.js +2 -0
- package/dist/chunk-ZCG5JUUR.js.map +1 -0
- package/dist/flows/ContractAmendment/ContractAmendmentBack.d.ts +5 -0
- package/dist/flows/ContractAmendment/ContractAmendmentBack.js +2 -0
- package/dist/flows/ContractAmendment/ContractAmendmentBack.js.map +1 -0
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +30 -0
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +2 -0
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js.map +1 -0
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +24 -7
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +26 -3
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +26 -24
- package/dist/flows/ContractAmendment/context.js +1 -1
- package/dist/flows/ContractAmendment/hooks.d.ts +94 -6
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +8 -5
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +11 -0
- package/dist/flows/ContractAmendment/utils.js +2 -0
- package/dist/flows/ContractAmendment/utils.js.map +1 -0
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +2 -2
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.js +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/hooks.js +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/CostCalculator/utils.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +20 -0
- package/dist/flows/Termination/TerminationFlow.js +2 -0
- package/dist/flows/Termination/TerminationFlow.js.map +1 -0
- package/dist/flows/Termination/TerminationForm.d.ts +13 -0
- package/dist/flows/Termination/TerminationForm.js +2 -0
- package/dist/flows/Termination/TerminationForm.js.map +1 -0
- package/dist/flows/Termination/TerminationSubmit.d.ts +5 -0
- package/dist/flows/Termination/TerminationSubmit.js +2 -0
- package/dist/flows/Termination/TerminationSubmit.js.map +1 -0
- package/dist/flows/Termination/context.d.ts +43 -0
- package/dist/flows/Termination/context.js +2 -0
- package/dist/flows/Termination/context.js.map +1 -0
- package/dist/flows/Termination/hooks.d.ts +40 -0
- package/dist/flows/Termination/hooks.js +2 -0
- package/dist/flows/Termination/hooks.js.map +1 -0
- package/dist/flows/Termination/index.d.ts +10 -0
- package/dist/flows/Termination/index.js +2 -0
- package/dist/flows/Termination/index.js.map +1 -0
- package/dist/flows/Termination/jsonSchema.d.ts +297 -0
- package/dist/flows/Termination/jsonSchema.js +2 -0
- package/dist/flows/Termination/jsonSchema.js.map +1 -0
- package/dist/flows/Termination/types.d.ts +23 -0
- package/dist/flows/Termination/types.js +1 -0
- package/dist/flows/Termination/types.js.map +1 -0
- package/dist/flows/useStepState.d.ts +49 -0
- package/dist/flows/useStepState.js +2 -0
- package/dist/flows/useStepState.js.map +1 -0
- package/dist/flows/utils.d.ts +20 -1
- package/dist/flows/utils.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +40 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mutations-v9H353tz.d.ts +10 -0
- package/dist/{types.gen-DCJSPsGk.d.ts → types.gen-BhkGMC9-.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-4QHHDFB2.js +0 -2
- package/dist/chunk-4QHHDFB2.js.map +0 -1
- package/dist/chunk-5UXOVZY5.js +0 -2
- package/dist/chunk-ANPGCYMT.js +0 -2
- package/dist/chunk-ANPGCYMT.js.map +0 -1
- package/dist/chunk-GCF5EF2A.js +0 -2
- package/dist/chunk-GCF5EF2A.js.map +0 -1
- package/dist/chunk-GKEURJR4.js +0 -2
- package/dist/chunk-GKEURJR4.js.map +0 -1
- package/dist/chunk-KY7BGW6H.js +0 -2
- package/dist/chunk-KY7BGW6H.js.map +0 -1
- package/dist/chunk-MKJHD77O.js +0 -1
- package/dist/chunk-Q6GIPVSE.js +0 -2
- package/dist/chunk-UTCIIPYZ.js +0 -2
- package/dist/chunk-UTCIIPYZ.js.map +0 -1
- package/dist/chunk-VTAHQOKR.js +0 -2
- package/dist/chunk-VTAHQOKR.js.map +0 -1
- package/dist/chunk-YGP3O2VJ.js +0 -2
- package/dist/chunk-YGP3O2VJ.js.map +0 -1
- package/dist/chunk-YNLDKIE4.js +0 -2
- package/dist/hooks-BQWrl9Bj.d.ts +0 -50
- /package/dist/{chunk-VV7RML2Q.js.map → chunk-5O2L2L25.js.map} +0 -0
- /package/dist/{chunk-MKJHD77O.js.map → chunk-A7ZJQCNU.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-QWZVBZED.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-WTGUGPHV.js";import"../../chunk-UPRUP24B.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorFlow};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorFlow.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-BhkGMC9-.js';
|
|
2
2
|
import { EstimationError } from './hooks.js';
|
|
3
3
|
import { CostCalculatorEstimationFormValues } from './types.js';
|
|
4
4
|
import React__default from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ROPNMSSM.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-LUCFM5TE.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-TIXDBKBM.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorForm};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorForm.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { c as CostCalculatorEstimateResponse } from '../../../types.gen-BhkGMC9-.js';
|
|
3
3
|
|
|
4
4
|
interface CostCalculatorResultProps {
|
|
5
5
|
employmentData: CostCalculatorEstimateResponse['data'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-5O2L2L25.js";import"../../../chunk-J2RINDSC.js";import"../../../chunk-4F7PYKUZ.js";import"../../../chunk-AD7ZWPEI.js";import"../../../chunk-YVC4OEFJ.js";import"../../../chunk-FCRDQVTB.js";import"../../../chunk-XEQTLVMV.js";import"../../../chunk-DOA6BAUQ.js";import"../../../chunk-FI76EKUS.js";import"../../../chunk-SJ56GVNV.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResults};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResults.js.map
|
|
@@ -2,7 +2,7 @@ import { Result } from '../types.js';
|
|
|
2
2
|
import { useCostCalculator, EstimationError } from './hooks.js';
|
|
3
3
|
import { CostCalculatorEstimationFormValues } from './types.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-BhkGMC9-.js';
|
|
6
6
|
import { $TSFixMe } from '@remoteoss/json-schema-form';
|
|
7
7
|
import * as yup from 'yup';
|
|
8
8
|
import { UseFormReturn } from 'react-hook-form';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { ValidationError } from 'yup';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
|
-
import {
|
|
4
|
+
import { c as CostCalculatorEstimateResponse, d as PostCreateEstimationError, e as CostCalculatorEstimatePdfResponse, f as PostCreateEstimationPdfError, g as CostCalculatorEstimateParams } from '../../types.gen-BhkGMC9-.js';
|
|
5
5
|
import { CostCalculatorEstimationOptions, JSFModify, CostCalculatorEstimationFormValues } from './types.js';
|
|
6
6
|
import { Result } from '../types.js';
|
|
7
7
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a,d as b,e as c}from"../../chunk-
|
|
1
|
+
import{c as a,d as b,e as c}from"../../chunk-WTGUGPHV.js";import"../../chunk-UPRUP24B.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{b as defaultEstimationOptions,c as useCostCalculator,a as useCostCalculatorEstimationPdf};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -8,7 +8,7 @@ export { disclaimerData } from './disclaimerUtils.js';
|
|
|
8
8
|
export { CostCalculatorResults } from './Results/CostCalculatorResults.js';
|
|
9
9
|
export { buildPayload as buildCostCalculatorEstimationPayload } from './utils.js';
|
|
10
10
|
import './types.js';
|
|
11
|
-
import '../../types.gen-
|
|
11
|
+
import '../../types.gen-BhkGMC9-.js';
|
|
12
12
|
import '@remoteoss/json-schema-form';
|
|
13
13
|
import 'react';
|
|
14
14
|
import 'yup';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-FGBEOUQK.js";import{a as j}from"../../chunk-
|
|
1
|
+
import"../../chunk-FGBEOUQK.js";import{a as j}from"../../chunk-5O2L2L25.js";import"../../chunk-J2RINDSC.js";import"../../chunk-4F7PYKUZ.js";import"../../chunk-AD7ZWPEI.js";import"../../chunk-YVC4OEFJ.js";import"../../chunk-FCRDQVTB.js";import"../../chunk-XEQTLVMV.js";import"../../chunk-DOA6BAUQ.js";import{a as e}from"../../chunk-ROPNMSSM.js";import{a as g}from"../../chunk-OCNLZSS7.js";import{a as f}from"../../chunk-NZFES56Y.js";import{a as i}from"../../chunk-IJWDAD54.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-QWZVBZED.js";import"../../chunk-OLJ2S6A6.js";import{b as a,c as b,e as c}from"../../chunk-WTGUGPHV.js";import"../../chunk-UPRUP24B.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-LUCFM5TE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-TIXDBKBM.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{i as CostCalculatorDisclaimer,d as CostCalculatorFlow,e as CostCalculatorForm,g as CostCalculatorResetButton,j as CostCalculatorResults,f as CostCalculatorSubmitButton,a as buildCostCalculatorEstimationPayload,h as disclaimerData,c as useCostCalculator,b as useCostCalculatorEstimationPdf};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as CostCalculatorEstimateParams } from '../../types.gen-BhkGMC9-.js';
|
|
2
2
|
import { $TSFixMe } from '@remoteoss/json-schema-form';
|
|
3
3
|
import { AnyObjectSchema } from 'yup';
|
|
4
4
|
import { CostCalculatorEstimationFormValues, CostCalculatorEstimationOptions } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-WTGUGPHV.js";import"../../chunk-UPRUP24B.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{b as buildPayload,a as buildValidationSchema};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { useTermination } from './hooks.js';
|
|
3
|
+
import { JSFModify } from '../CostCalculator/types.js';
|
|
4
|
+
import '../../types.gen-BhkGMC9-.js';
|
|
5
|
+
import '../../mutations-v9H353tz.js';
|
|
6
|
+
import '@remoteoss/json-schema-form';
|
|
7
|
+
import './types.js';
|
|
8
|
+
|
|
9
|
+
type TerminationFlowProps = {
|
|
10
|
+
employmentId: string;
|
|
11
|
+
render: ({ terminationBag, }: {
|
|
12
|
+
terminationBag: ReturnType<typeof useTermination>;
|
|
13
|
+
}) => React__default.ReactNode;
|
|
14
|
+
options?: {
|
|
15
|
+
jsfModify?: JSFModify;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare const TerminationFlow: ({ employmentId, render, options, }: TerminationFlowProps) => React__default.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { TerminationFlow };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-HELGRHUB.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-XFE56PM4.js";import"../../chunk-RL2KU7BM.js";import"../../chunk-36UPHOJS.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{a as TerminationFlow};
|
|
2
|
+
//# sourceMappingURL=TerminationFlow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { TerminationFormValues } from './types.js';
|
|
3
|
+
import { h as PostCreateOffboardingError, O as OffboardingResponse } from '../../types.gen-BhkGMC9-.js';
|
|
4
|
+
|
|
5
|
+
type TerminationFormProps = {
|
|
6
|
+
username: string;
|
|
7
|
+
onSubmit?: (values: TerminationFormValues) => Promise<void>;
|
|
8
|
+
onError?: (error: PostCreateOffboardingError) => void;
|
|
9
|
+
onSuccess?: (data: OffboardingResponse) => void;
|
|
10
|
+
};
|
|
11
|
+
declare function TerminationForm({ username, onSubmit, onError, onSuccess, }: TerminationFormProps): React__default.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { TerminationForm };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-Y5UG6SJJ.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-LUCFM5TE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-TIXDBKBM.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as TerminationForm};
|
|
2
|
+
//# sourceMappingURL=TerminationForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { O as OffboardingResponse, h as PostCreateOffboardingError } from '../../types.gen-BhkGMC9-.js';
|
|
2
|
+
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-v9H353tz.js';
|
|
5
|
+
import { useTermination } from './hooks.js';
|
|
6
|
+
import { TerminationFormValues } from './types.js';
|
|
7
|
+
import '../CostCalculator/types.js';
|
|
8
|
+
|
|
9
|
+
declare const TerminationContext: React.Context<{
|
|
10
|
+
formId: string | undefined;
|
|
11
|
+
terminationBag: ReturnType<typeof useTermination> | null;
|
|
12
|
+
}>;
|
|
13
|
+
declare const useTerminationContext: () => {
|
|
14
|
+
readonly formId: string;
|
|
15
|
+
readonly terminationBag: {
|
|
16
|
+
stepState: {
|
|
17
|
+
current: number;
|
|
18
|
+
total: number;
|
|
19
|
+
isLastStep: boolean;
|
|
20
|
+
};
|
|
21
|
+
fields: _remoteoss_json_schema_form.Fields;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
isSubmitting: boolean;
|
|
24
|
+
initialValues: {};
|
|
25
|
+
handleValidation: (values: TerminationFormValues) => {
|
|
26
|
+
yupError: _remoteoss_json_schema_form.$TSFixMe;
|
|
27
|
+
formErrors: _remoteoss_json_schema_form.$TSFixMe;
|
|
28
|
+
} | null;
|
|
29
|
+
checkFieldUpdates: (values: Partial<TerminationFormValues>) => void;
|
|
30
|
+
onSubmit: (values: TerminationFormValues) => Promise<(ErrorResponse<Error> | SuccessResponse<({
|
|
31
|
+
data: OffboardingResponse;
|
|
32
|
+
error: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
data: undefined;
|
|
35
|
+
error: PostCreateOffboardingError;
|
|
36
|
+
}) & {
|
|
37
|
+
request: Request;
|
|
38
|
+
response: Response;
|
|
39
|
+
}>) | undefined>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { TerminationContext, useTerminationContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { O as OffboardingResponse, h as PostCreateOffboardingError } from '../../types.gen-BhkGMC9-.js';
|
|
2
|
+
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-v9H353tz.js';
|
|
3
|
+
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
4
|
+
import { JSFModify } from '../CostCalculator/types.js';
|
|
5
|
+
import { TerminationFormValues } from './types.js';
|
|
6
|
+
|
|
7
|
+
type TerminationHookProps = {
|
|
8
|
+
employmentId: string;
|
|
9
|
+
options?: {
|
|
10
|
+
jsfModify?: JSFModify;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const useTermination: ({ employmentId, options, }: TerminationHookProps) => {
|
|
14
|
+
stepState: {
|
|
15
|
+
current: number;
|
|
16
|
+
total: number;
|
|
17
|
+
isLastStep: boolean;
|
|
18
|
+
};
|
|
19
|
+
fields: _remoteoss_json_schema_form.Fields;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
isSubmitting: boolean;
|
|
22
|
+
initialValues: {};
|
|
23
|
+
handleValidation: (values: TerminationFormValues) => {
|
|
24
|
+
yupError: _remoteoss_json_schema_form.$TSFixMe;
|
|
25
|
+
formErrors: _remoteoss_json_schema_form.$TSFixMe;
|
|
26
|
+
} | null;
|
|
27
|
+
checkFieldUpdates: (values: Partial<TerminationFormValues>) => void;
|
|
28
|
+
onSubmit: (values: TerminationFormValues) => Promise<(ErrorResponse<Error> | SuccessResponse<({
|
|
29
|
+
data: OffboardingResponse;
|
|
30
|
+
error: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
data: undefined;
|
|
33
|
+
error: PostCreateOffboardingError;
|
|
34
|
+
}) & {
|
|
35
|
+
request: Request;
|
|
36
|
+
response: Response;
|
|
37
|
+
}>) | undefined>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { useTermination };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-XFE56PM4.js";import"../../chunk-RL2KU7BM.js";import"../../chunk-36UPHOJS.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{a as useTermination};
|
|
2
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { TerminationFlow } from './TerminationFlow.js';
|
|
2
|
+
export { TerminationForm } from './TerminationForm.js';
|
|
3
|
+
export { TerminationSubmit } from './TerminationSubmit.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './hooks.js';
|
|
6
|
+
import '../../types.gen-BhkGMC9-.js';
|
|
7
|
+
import '../../mutations-v9H353tz.js';
|
|
8
|
+
import '@remoteoss/json-schema-form';
|
|
9
|
+
import '../CostCalculator/types.js';
|
|
10
|
+
import './types.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../../chunk-FZ7FWFJX.js";import{a}from"../../chunk-HELGRHUB.js";import{a as b}from"../../chunk-Y5UG6SJJ.js";import{a as c}from"../../chunk-CKGTR44U.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-XFE56PM4.js";import"../../chunk-RL2KU7BM.js";import"../../chunk-36UPHOJS.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-G2GI6FEO.js";import"../../chunk-6DMCAUPE.js";import"../../chunk-LUCFM5TE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-TIXDBKBM.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as TerminationFlow,b as TerminationForm,c as TerminationSubmit};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
declare const jsonSchema: {
|
|
2
|
+
data: {
|
|
3
|
+
version: number;
|
|
4
|
+
schema: {
|
|
5
|
+
additionalProperties: boolean;
|
|
6
|
+
allOf: ({
|
|
7
|
+
if: {
|
|
8
|
+
properties: {
|
|
9
|
+
customer_informed_employee: {
|
|
10
|
+
const: string;
|
|
11
|
+
};
|
|
12
|
+
will_challenge_termination?: undefined;
|
|
13
|
+
agrees_to_pto_amount?: undefined;
|
|
14
|
+
};
|
|
15
|
+
required: string[];
|
|
16
|
+
};
|
|
17
|
+
then: {
|
|
18
|
+
properties: {
|
|
19
|
+
customer_informed_employee_date: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
customer_informed_employee_description: {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
will_challenge_termination_description?: undefined;
|
|
26
|
+
agrees_to_pto_amount_notes?: undefined;
|
|
27
|
+
};
|
|
28
|
+
required: string[];
|
|
29
|
+
};
|
|
30
|
+
else: {
|
|
31
|
+
properties: {
|
|
32
|
+
customer_informed_employee_date: boolean;
|
|
33
|
+
customer_informed_employee_description: boolean;
|
|
34
|
+
will_challenge_termination_description?: undefined;
|
|
35
|
+
agrees_to_pto_amount_notes?: undefined;
|
|
36
|
+
timesheet_file?: undefined;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
40
|
+
if: {
|
|
41
|
+
properties: {
|
|
42
|
+
will_challenge_termination: {
|
|
43
|
+
const: string;
|
|
44
|
+
};
|
|
45
|
+
customer_informed_employee?: undefined;
|
|
46
|
+
agrees_to_pto_amount?: undefined;
|
|
47
|
+
};
|
|
48
|
+
required: string[];
|
|
49
|
+
};
|
|
50
|
+
then: {
|
|
51
|
+
properties: {
|
|
52
|
+
will_challenge_termination_description: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
customer_informed_employee_date?: undefined;
|
|
56
|
+
customer_informed_employee_description?: undefined;
|
|
57
|
+
agrees_to_pto_amount_notes?: undefined;
|
|
58
|
+
};
|
|
59
|
+
required: string[];
|
|
60
|
+
};
|
|
61
|
+
else: {
|
|
62
|
+
properties: {
|
|
63
|
+
will_challenge_termination_description: boolean;
|
|
64
|
+
customer_informed_employee_date?: undefined;
|
|
65
|
+
customer_informed_employee_description?: undefined;
|
|
66
|
+
agrees_to_pto_amount_notes?: undefined;
|
|
67
|
+
timesheet_file?: undefined;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
if: {
|
|
72
|
+
properties: {
|
|
73
|
+
agrees_to_pto_amount: {
|
|
74
|
+
const: string;
|
|
75
|
+
};
|
|
76
|
+
customer_informed_employee?: undefined;
|
|
77
|
+
will_challenge_termination?: undefined;
|
|
78
|
+
};
|
|
79
|
+
required: string[];
|
|
80
|
+
};
|
|
81
|
+
then: {
|
|
82
|
+
properties: {
|
|
83
|
+
agrees_to_pto_amount_notes: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
customer_informed_employee_date?: undefined;
|
|
87
|
+
customer_informed_employee_description?: undefined;
|
|
88
|
+
will_challenge_termination_description?: undefined;
|
|
89
|
+
};
|
|
90
|
+
required: string[];
|
|
91
|
+
};
|
|
92
|
+
else: {
|
|
93
|
+
properties: {
|
|
94
|
+
agrees_to_pto_amount_notes: boolean;
|
|
95
|
+
timesheet_file: boolean;
|
|
96
|
+
customer_informed_employee_date?: undefined;
|
|
97
|
+
customer_informed_employee_description?: undefined;
|
|
98
|
+
will_challenge_termination_description?: undefined;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
})[];
|
|
102
|
+
properties: {
|
|
103
|
+
confidential: {
|
|
104
|
+
description: string;
|
|
105
|
+
oneOf: {
|
|
106
|
+
const: string;
|
|
107
|
+
description: string;
|
|
108
|
+
title: string;
|
|
109
|
+
}[];
|
|
110
|
+
title: string;
|
|
111
|
+
type: string;
|
|
112
|
+
'x-jsf-presentation': {
|
|
113
|
+
direction: string;
|
|
114
|
+
inputType: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
customer_informed_employee: {
|
|
118
|
+
description: string;
|
|
119
|
+
oneOf: {
|
|
120
|
+
const: string;
|
|
121
|
+
description: string;
|
|
122
|
+
title: string;
|
|
123
|
+
}[];
|
|
124
|
+
title: string;
|
|
125
|
+
type: string;
|
|
126
|
+
'x-jsf-presentation': {
|
|
127
|
+
direction: string;
|
|
128
|
+
inputType: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
customer_informed_employee_date: {
|
|
132
|
+
description: string;
|
|
133
|
+
format: string;
|
|
134
|
+
maxLength: number;
|
|
135
|
+
title: string;
|
|
136
|
+
type: string[];
|
|
137
|
+
'x-jsf-presentation': {
|
|
138
|
+
inputType: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
customer_informed_employee_description: {
|
|
142
|
+
description: string;
|
|
143
|
+
maxLength: number;
|
|
144
|
+
title: string;
|
|
145
|
+
type: string[];
|
|
146
|
+
'x-jsf-presentation': {
|
|
147
|
+
inputType: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
personal_email: {
|
|
151
|
+
description: string;
|
|
152
|
+
maxLength: number;
|
|
153
|
+
title: string;
|
|
154
|
+
format: string;
|
|
155
|
+
type: string;
|
|
156
|
+
'x-jsf-presentation': {
|
|
157
|
+
inputType: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
termination_reason: {
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
type: string;
|
|
164
|
+
oneOf: {
|
|
165
|
+
const: string;
|
|
166
|
+
title: string;
|
|
167
|
+
}[];
|
|
168
|
+
'x-jsf-presentation': {
|
|
169
|
+
inputType: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
reason_description: {
|
|
173
|
+
description: string;
|
|
174
|
+
maxLength: number;
|
|
175
|
+
title: string;
|
|
176
|
+
type: string;
|
|
177
|
+
'x-jsf-presentation': {
|
|
178
|
+
inputType: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
additional_comments: {
|
|
182
|
+
description: string;
|
|
183
|
+
maxLength: number;
|
|
184
|
+
title: string;
|
|
185
|
+
type: string;
|
|
186
|
+
'x-jsf-presentation': {
|
|
187
|
+
inputType: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
termination_reason_files: {
|
|
191
|
+
description: string;
|
|
192
|
+
title: string;
|
|
193
|
+
type: string;
|
|
194
|
+
'x-jsf-presentation': {
|
|
195
|
+
inputType: string;
|
|
196
|
+
accept: string;
|
|
197
|
+
multiple: boolean;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
risk_assessment_reasons: {
|
|
201
|
+
description: string;
|
|
202
|
+
title: string;
|
|
203
|
+
type: string;
|
|
204
|
+
items: {
|
|
205
|
+
anyOf: {
|
|
206
|
+
const: string;
|
|
207
|
+
title: string;
|
|
208
|
+
}[];
|
|
209
|
+
};
|
|
210
|
+
'x-jsf-presentation': {
|
|
211
|
+
inputType: string;
|
|
212
|
+
direction: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
will_challenge_termination: {
|
|
216
|
+
description: string;
|
|
217
|
+
oneOf: {
|
|
218
|
+
const: string;
|
|
219
|
+
description: string;
|
|
220
|
+
title: string;
|
|
221
|
+
}[];
|
|
222
|
+
title: string;
|
|
223
|
+
type: string;
|
|
224
|
+
'x-jsf-presentation': {
|
|
225
|
+
direction: string;
|
|
226
|
+
inputType: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
will_challenge_termination_description: {
|
|
230
|
+
description: string;
|
|
231
|
+
maxLength: number;
|
|
232
|
+
title: string;
|
|
233
|
+
type: string[];
|
|
234
|
+
'x-jsf-presentation': {
|
|
235
|
+
inputType: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
proposed_termination_date: {
|
|
239
|
+
description: string;
|
|
240
|
+
format: string;
|
|
241
|
+
maxLength: number;
|
|
242
|
+
title: string;
|
|
243
|
+
type: string;
|
|
244
|
+
'x-jsf-presentation': {
|
|
245
|
+
inputType: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
agrees_to_pto_amount: {
|
|
249
|
+
description: string;
|
|
250
|
+
oneOf: {
|
|
251
|
+
const: string;
|
|
252
|
+
description: string;
|
|
253
|
+
title: string;
|
|
254
|
+
}[];
|
|
255
|
+
title: string;
|
|
256
|
+
type: string;
|
|
257
|
+
'x-jsf-presentation': {
|
|
258
|
+
direction: string;
|
|
259
|
+
inputType: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
agrees_to_pto_amount_notes: {
|
|
263
|
+
description: string;
|
|
264
|
+
maxLength: number;
|
|
265
|
+
title: string;
|
|
266
|
+
type: string[];
|
|
267
|
+
'x-jsf-presentation': {
|
|
268
|
+
inputType: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
timesheet_file: {
|
|
272
|
+
description: string;
|
|
273
|
+
title: string;
|
|
274
|
+
type: string[];
|
|
275
|
+
'x-jsf-presentation': {
|
|
276
|
+
inputType: string;
|
|
277
|
+
accept: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
acknowledge_termination_procedure: {
|
|
281
|
+
description: string;
|
|
282
|
+
title: string;
|
|
283
|
+
type: string;
|
|
284
|
+
'x-jsf-presentation': {
|
|
285
|
+
direction: string;
|
|
286
|
+
inputType: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
required: string[];
|
|
291
|
+
type: string;
|
|
292
|
+
'x-jsf-order': string[];
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export { jsonSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { T as TerminationDetailsParams } from '../../types.gen-BhkGMC9-.js';
|
|
2
|
+
|
|
3
|
+
type TerminationFormValues = {
|
|
4
|
+
acknowledge_termination_procedure: boolean;
|
|
5
|
+
additional_comments: string;
|
|
6
|
+
agrees_to_pto_amount: string;
|
|
7
|
+
agrees_to_pto_amount_notes: string | null;
|
|
8
|
+
confidential: boolean;
|
|
9
|
+
customer_informed_employee: string;
|
|
10
|
+
customer_informed_employee_date: string | null;
|
|
11
|
+
customer_informed_employee_description: string | null;
|
|
12
|
+
employer_confirmed_email: string;
|
|
13
|
+
proposed_termination_date: string;
|
|
14
|
+
reason_description: string;
|
|
15
|
+
risk_assessment_reasons: TerminationDetailsParams['risk_assessment_reasons'];
|
|
16
|
+
termination_reason: TerminationDetailsParams['termination_reason'];
|
|
17
|
+
termination_reason_files: TerminationDetailsParams['termination_reason_files'];
|
|
18
|
+
timesheet_file: TerminationDetailsParams['timesheet_file'];
|
|
19
|
+
will_challenge_termination: boolean;
|
|
20
|
+
will_challenge_termination_description: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type { TerminationFormValues };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|