@remoteoss/remote-flows 0.1.1 → 0.2.0
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/README.md +2 -0
- package/dist/chunk-2EKC7DK3.js +2 -0
- package/dist/chunk-2EKC7DK3.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-55VACCVZ.js +2 -0
- package/dist/{chunk-5UXOVZY5.js.map → chunk-55VACCVZ.js.map} +1 -1
- package/dist/chunk-5DQBY2TR.js +2 -0
- package/dist/chunk-5DQBY2TR.js.map +1 -0
- package/dist/chunk-6HGUGIYJ.js +2 -0
- package/dist/chunk-6HGUGIYJ.js.map +1 -0
- package/dist/chunk-6LTJBLSD.js +2 -0
- package/dist/chunk-6LTJBLSD.js.map +1 -0
- package/dist/chunk-A7ZJQCNU.js +1 -0
- package/dist/chunk-AYFHWLQZ.js +2 -0
- package/dist/chunk-AYFHWLQZ.js.map +1 -0
- package/dist/chunk-CKGTR44U.js +2 -0
- package/dist/chunk-CKGTR44U.js.map +1 -0
- package/dist/chunk-CTG3DYJR.js +2 -0
- package/dist/chunk-CTG3DYJR.js.map +1 -0
- package/dist/chunk-DZYFSFZ7.js +2 -0
- package/dist/chunk-DZYFSFZ7.js.map +1 -0
- package/dist/chunk-EQBNHLR4.js +2 -0
- package/dist/chunk-EQBNHLR4.js.map +1 -0
- package/dist/chunk-F5QJZKDL.js +2 -0
- package/dist/{chunk-Q6GIPVSE.js.map → chunk-F5QJZKDL.js.map} +1 -1
- package/dist/chunk-FZ2HS6G7.js +2 -0
- package/dist/chunk-FZ2HS6G7.js.map +1 -0
- package/dist/chunk-FZ7FWFJX.js +1 -0
- package/dist/chunk-FZ7FWFJX.js.map +1 -0
- package/dist/chunk-GW7GG5ZW.js +2 -0
- package/dist/chunk-GW7GG5ZW.js.map +1 -0
- package/dist/chunk-HP7ZP256.js +2 -0
- package/dist/chunk-HP7ZP256.js.map +1 -0
- package/dist/chunk-IJPE22L7.js +2 -0
- package/dist/chunk-IJPE22L7.js.map +1 -0
- package/dist/chunk-IPZEZMLD.js +2 -0
- package/dist/chunk-IPZEZMLD.js.map +1 -0
- package/dist/chunk-JLUDKN4H.js +2 -0
- package/dist/chunk-JLUDKN4H.js.map +1 -0
- package/dist/chunk-JODJFARP.js +2 -0
- package/dist/chunk-JODJFARP.js.map +1 -0
- package/dist/chunk-JRQSZHUU.js +2 -0
- package/dist/chunk-JRQSZHUU.js.map +1 -0
- package/dist/chunk-KPSFJ6BN.js +2 -0
- package/dist/chunk-KPSFJ6BN.js.map +1 -0
- package/dist/chunk-LNF27NTC.js +2 -0
- package/dist/chunk-LNF27NTC.js.map +1 -0
- package/dist/chunk-N5AQSLAU.js +2 -0
- package/dist/chunk-N5AQSLAU.js.map +1 -0
- package/dist/{chunk-KQCZ2KSO.js → chunk-NBD4VOG3.js} +2 -2
- package/dist/{chunk-KQCZ2KSO.js.map → chunk-NBD4VOG3.js.map} +1 -1
- package/dist/chunk-RCX4JUI3.js +2 -0
- package/dist/chunk-RCX4JUI3.js.map +1 -0
- package/dist/chunk-S56EWAS4.js +2 -0
- package/dist/chunk-S56EWAS4.js.map +1 -0
- package/dist/chunk-SABMDOWE.js +2 -0
- package/dist/chunk-SABMDOWE.js.map +1 -0
- package/dist/chunk-SEUQNAF6.js +2 -0
- package/dist/chunk-SEUQNAF6.js.map +1 -0
- package/dist/chunk-VX2UC3HG.js +2 -0
- package/dist/chunk-VX2UC3HG.js.map +1 -0
- package/dist/chunk-W5DG5WWJ.js +2 -0
- package/dist/chunk-W5DG5WWJ.js.map +1 -0
- package/dist/chunk-XFD3ULUF.js +2 -0
- package/dist/chunk-XFD3ULUF.js.map +1 -0
- package/dist/chunk-XULIEA44.js +2 -0
- package/dist/{chunk-YNLDKIE4.js.map → chunk-XULIEA44.js.map} +1 -1
- package/dist/{chunk-VV7RML2Q.js → chunk-YAHWFLDH.js} +2 -2
- package/dist/chunk-YBACB5A6.js +2 -0
- package/dist/chunk-YBACB5A6.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/TerminationBack.d.ts +5 -0
- package/dist/flows/Termination/TerminationBack.js +2 -0
- package/dist/flows/Termination/TerminationBack.js.map +1 -0
- package/dist/flows/Termination/TerminationFlow.d.ts +46 -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/TimeOff.d.ts +11 -0
- package/dist/flows/Termination/TimeOff.js +2 -0
- package/dist/flows/Termination/TimeOff.js.map +1 -0
- package/dist/flows/Termination/context.d.ts +52 -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 +86 -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 +14 -0
- package/dist/flows/Termination/index.js +2 -0
- package/dist/flows/Termination/index.js.map +1 -0
- package/dist/flows/Termination/json-schemas/additionalInformation.d.ts +25 -0
- package/dist/flows/Termination/json-schemas/additionalInformation.js +2 -0
- package/dist/flows/Termination/json-schemas/additionalInformation.js.map +1 -0
- package/dist/flows/Termination/json-schemas/defaultSchema.d.ts +15 -0
- package/dist/flows/Termination/json-schemas/defaultSchema.js +2 -0
- package/dist/flows/Termination/json-schemas/defaultSchema.js.map +1 -0
- package/dist/flows/Termination/json-schemas/employeeComunication.d.ts +133 -0
- package/dist/flows/Termination/json-schemas/employeeComunication.js +2 -0
- package/dist/flows/Termination/json-schemas/employeeComunication.js.map +1 -0
- package/dist/flows/Termination/json-schemas/jsonSchema.d.ts +339 -0
- package/dist/flows/Termination/json-schemas/jsonSchema.js +2 -0
- package/dist/flows/Termination/json-schemas/jsonSchema.js.map +1 -0
- package/dist/flows/Termination/json-schemas/paidTimeOff.d.ts +71 -0
- package/dist/flows/Termination/json-schemas/paidTimeOff.js +2 -0
- package/dist/flows/Termination/json-schemas/paidTimeOff.js.map +1 -0
- package/dist/flows/Termination/json-schemas/schema.d.ts +8 -0
- package/dist/flows/Termination/json-schemas/schema.js +2 -0
- package/dist/flows/Termination/json-schemas/schema.js.map +1 -0
- package/dist/flows/Termination/json-schemas/terminationDetails.d.ts +126 -0
- package/dist/flows/Termination/json-schemas/terminationDetails.js +2 -0
- package/dist/flows/Termination/json-schemas/terminationDetails.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/Termination/utils.d.ts +8 -0
- package/dist/flows/Termination/utils.js +2 -0
- package/dist/flows/Termination/utils.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 +69 -8
- 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-BgLeTAqP.d.ts} +1 -1
- package/package.json +2 -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-MKJHD77O.js.map → chunk-A7ZJQCNU.js.map} +0 -0
- /package/dist/{chunk-VV7RML2Q.js.map → chunk-YAHWFLDH.js.map} +0 -0
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ The `RemoteFlows` component serves as a provider for authentication and theming.
|
|
|
38
38
|
| `isTestingMode` | `boolean` | No | When `true`, connects to sandbox environment instead of production |
|
|
39
39
|
| `theme` | `ThemeOptions` | No | Custom theme configuration |
|
|
40
40
|
| `components` | `Components` | No | Custom field components for form rendering |
|
|
41
|
+
| `proxy` | `{ url: string, headers?: Record<string, string> }` | No | Configuration for API request proxy with optional headers |
|
|
41
42
|
|
|
42
43
|
### Custom Field Components
|
|
43
44
|
|
|
@@ -95,6 +96,7 @@ Supported field types:
|
|
|
95
96
|
Visit the different different docs for each flow
|
|
96
97
|
|
|
97
98
|
- [Cost Calculator Flow](./src/flows/CostCalculator/README.md)
|
|
99
|
+
- [Termination Flow](./src/flows/Termination/README.md)
|
|
98
100
|
|
|
99
101
|
## Authentication
|
|
100
102
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-5DQBY2TR.js";import{a as c}from"./chunk-GW7GG5ZW.js";import{a as e}from"./chunk-37DREOGC.js";import{a as m}from"./chunk-IJPE22L7.js";import{a as r}from"./chunk-6LTJBLSD.js";import{a as o}from"./chunk-6HGUGIYJ.js";import{a as n}from"./chunk-AYDF3IFZ.js";import f,{useId as s}from"react";function k({employmentId:d,countryCode:p,options:C,render:i}){let t=c({employmentId:d,countryCode:p,options:C}),A=s();return f.createElement(o.Provider,{value:{formId:A,contractAmendmentBag:t}},i({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}}))}n(k,"ContractAmendmentFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2EKC7DK3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/ContractAmendment/ContractAmendmentFlow.tsx"],"sourcesContent":["import React, { useId } from 'react';\nimport { ContractAmendmentContext } from './context';\nimport { ContractAmendmentBack } from './ContractAmendmentBack';\nimport { ContractAmendmentConfirmationForm } from './ContractAmendmentConfirmationForm';\nimport { ContractAmendmentForm } from './ContractAmendmentForm';\nimport { ContractAmendmentSubmit } from './ContractAmendmentSubmit';\nimport { useContractAmendment } from './hooks';\nimport { ContractAmendmentParams } from './types';\n\ntype TUseContractAmendment = ReturnType<typeof useContractAmendment>;\n\nexport type RenderProps = {\n /**\n * The contract amendment bag returned by the useContractAmendment hook.\n * This bag contains all the methods and properties needed to handle the contract amendment flow.\n * @see {@link useContractAmendment}\n */\n contractAmendmentBag: TUseContractAmendment;\n /**\n * The components used in the contract amendment flow.\n * This includes the form, submit button, and confirmation form.\n * @see {@link ContractAmendmentForm}\n * @see {@link ContractAmendmentSubmit}\n * @see {@link ContractAmendmentConfirmationForm}\n */\n components: {\n Form: typeof ContractAmendmentForm;\n SubmitButton: typeof ContractAmendmentSubmit;\n ConfirmationForm: typeof ContractAmendmentConfirmationForm;\n BackButton: typeof ContractAmendmentBack;\n };\n};\n\ntype ContractAmendmentFlowProps = ContractAmendmentParams & {\n render: ({\n contractAmendmentBag,\n components,\n }: RenderProps) => React.ReactNode;\n};\n\nexport function ContractAmendmentFlow({\n employmentId,\n countryCode,\n options,\n render,\n}: ContractAmendmentFlowProps) {\n const contractAmendmentBag = useContractAmendment({\n employmentId,\n countryCode,\n options,\n });\n const formId = useId();\n\n return (\n <ContractAmendmentContext.Provider\n value={{\n formId: formId,\n contractAmendmentBag,\n }}\n >\n {render({\n contractAmendmentBag,\n components: {\n Form: ContractAmendmentForm,\n SubmitButton: ContractAmendmentSubmit,\n ConfirmationForm: ContractAmendmentConfirmationForm,\n BackButton: ContractAmendmentBack,\n },\n })}\n </ContractAmendmentContext.Provider>\n );\n}\n"],"mappings":"mRAAA,OAAOA,GAAS,SAAAC,MAAa,QAwCtB,SAASC,EAAsB,CACpC,aAAAC,EACA,YAAAC,EACA,QAAAC,EACA,OAAAC,CACF,EAA+B,CAC7B,IAAMC,EAAuBC,EAAqB,CAChD,aAAAL,EACA,YAAAC,EACA,QAAAC,CACF,CAAC,EACKI,EAASC,EAAM,EAErB,OACEC,EAAA,cAACC,EAAyB,SAAzB,CACC,MAAO,CACL,OAAQH,EACR,qBAAAF,CACF,GAECD,EAAO,CACN,qBAAAC,EACA,WAAY,CACV,KAAMM,EACN,aAAcC,EACd,iBAAkBC,EAClB,WAAYC,CACd,CACF,CAAC,CACH,CAEJ,CA/BgBC,EAAAf,EAAA","names":["React","useId","ContractAmendmentFlow","employmentId","countryCode","options","render","contractAmendmentBag","useContractAmendment","formId","useId","React","ContractAmendmentContext","ContractAmendmentForm","ContractAmendmentSubmit","ContractAmendmentConfirmationForm","ContractAmendmentBack","__name"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-AYDF3IFZ.js";import{object as c}from"yup";function d(n){let t=n.reduce((e,r)=>(e[r.name]=r.schema,e),{});return c(t)}o(d,"buildValidationSchema");function u(n,t){return Object.entries(n).reduce((e,[r,a])=>(e[r]=t.includes(r)?a==="yes":a,e),{})}o(u,"parseFormRadioValues");export{d as a,u as b};
|
|
2
|
+
//# sourceMappingURL=chunk-36UPHOJS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/utils.ts"],"sourcesContent":["import { AnyObjectSchema, object } from 'yup';\nimport { Field } from './types';\n\n/**\n * Build the validation schema for the form.\n * @returns\n */\nexport function buildValidationSchema(fields: Field[]) {\n const fieldsSchema = fields.reduce<Record<string, AnyObjectSchema>>(\n (fieldsSchemaAcc, field) => {\n fieldsSchemaAcc[field.name] = field.schema as AnyObjectSchema;\n return fieldsSchemaAcc;\n },\n {},\n );\n return object(fieldsSchema) as AnyObjectSchema;\n}\n\ntype ParsedRadioValues = Record<string, unknown>;\n\n/**\n * Parses the form values to convert radio button values from 'yes'/'no' to boolean.\n *\n * @param values - The form values as a record of key-value pairs.\n * @param fieldKeys - An array of field keys that represent radio button fields.\n * @returns A new object with the parsed values, where radio button fields are converted to boolean.\n *\n * @example\n * const values = {\n * ack: 'yes',\n * confidential: 'no',\n * username: 'john_doe',\n * };\n * const fieldKeys = ['ack', 'confidential'];\n * const parsedValues = parseFormRadioValues(values, fieldKeys);\n * // Output: { ack: true, confidential: false, username: 'john_doe' }\n */\nexport function parseFormRadioValues(\n values: Record<string, unknown>,\n fieldKeys: string[],\n) {\n return Object.entries(values).reduce<ParsedRadioValues>(\n (acc, [key, value]) => {\n acc[key] = fieldKeys.includes(key) ? value === 'yes' : value;\n return acc;\n },\n {},\n );\n}\n"],"mappings":"wCAAA,OAA0B,UAAAA,MAAc,MAOjC,SAASC,EAAsBC,EAAiB,CACrD,IAAMC,EAAeD,EAAO,OAC1B,CAACE,EAAiBC,KAChBD,EAAgBC,EAAM,IAAI,EAAIA,EAAM,OAC7BD,GAET,CAAC,CACH,EACA,OAAOE,EAAOH,CAAY,CAC5B,CATgBI,EAAAN,EAAA,yBA8BT,SAASO,EACdC,EACAC,EACA,CACA,OAAO,OAAO,QAAQD,CAAM,EAAE,OAC5B,CAACE,EAAK,CAACC,EAAKC,CAAK,KACfF,EAAIC,CAAG,EAAIF,EAAU,SAASE,CAAG,EAAIC,IAAU,MAAQA,EAChDF,GAET,CAAC,CACH,CACF,CAXgBJ,EAAAC,EAAA","names":["object","buildValidationSchema","fields","fieldsSchema","fieldsSchemaAcc","field","object","__name","parseFormRadioValues","values","fieldKeys","acc","key","value"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as n}from"./chunk-FI76EKUS.js";import{b as o}from"./chunk-6HGUGIYJ.js";import{a as t}from"./chunk-AYDF3IFZ.js";import i from"react";function C({children:r,...e}){let{contractAmendment:{back:m}}=o();return i.createElement(n,{...e,onClick:()=>{m()}},r)}t(C,"ContractAmendmentBack");export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-37DREOGC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/ContractAmendment/ContractAmendmentBack.tsx"],"sourcesContent":["import { Button } from '@/src/components/ui/button';\nimport React, { ButtonHTMLAttributes, PropsWithChildren } from 'react';\nimport { useContractAmendmentContext } from './context';\n\nexport function ContractAmendmentBack({\n children,\n ...props\n}: PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>) {\n const {\n contractAmendment: { back },\n } = useContractAmendmentContext();\n\n return (\n <Button\n {...props}\n onClick={() => {\n back();\n }}\n >\n {children}\n </Button>\n );\n}\n"],"mappings":"wHACA,OAAOA,MAAwD,QAGxD,SAASC,EAAsB,CACpC,SAAAC,EACA,GAAGC,CACL,EAA+D,CAC7D,GAAM,CACJ,kBAAmB,CAAE,KAAAC,CAAK,CAC5B,EAAIC,EAA4B,EAEhC,OACEC,EAAA,cAACC,EAAA,CACE,GAAGJ,EACJ,QAAS,IAAM,CACbC,EAAK,CACP,GAECF,CACH,CAEJ,CAlBgBM,EAAAP,EAAA","names":["React","ContractAmendmentBack","children","props","back","useContractAmendmentContext","React","Button","__name"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-AYDF3IFZ.js";import{formDataBodySerializer as i}from"@hey-api/client-fetch";import{createClient as o,createConfig as n}from"@hey-api/client-fetch";var r=o(n({baseUrl:"https://gateway.remote.com/"}));var c=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var h=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var d=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimation");var m=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var u=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractAmendment");var E=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var y=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment");var w=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var C=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postAutomatableContractAmendment");var O=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var T=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");export{r as a,c as b,h as c,d,m as e,u as f,E as g,y as h,w as i,C as j,O as k,T as l};
|
|
2
|
+
//# sourceMappingURL=chunk-55VACCVZ.js.map
|