@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.
Files changed (195) hide show
  1. package/README.md +2 -0
  2. package/dist/chunk-2EKC7DK3.js +2 -0
  3. package/dist/chunk-2EKC7DK3.js.map +1 -0
  4. package/dist/chunk-36UPHOJS.js +2 -0
  5. package/dist/chunk-36UPHOJS.js.map +1 -0
  6. package/dist/chunk-37DREOGC.js +2 -0
  7. package/dist/chunk-37DREOGC.js.map +1 -0
  8. package/dist/chunk-55VACCVZ.js +2 -0
  9. package/dist/{chunk-5UXOVZY5.js.map → chunk-55VACCVZ.js.map} +1 -1
  10. package/dist/chunk-5DQBY2TR.js +2 -0
  11. package/dist/chunk-5DQBY2TR.js.map +1 -0
  12. package/dist/chunk-6HGUGIYJ.js +2 -0
  13. package/dist/chunk-6HGUGIYJ.js.map +1 -0
  14. package/dist/chunk-6LTJBLSD.js +2 -0
  15. package/dist/chunk-6LTJBLSD.js.map +1 -0
  16. package/dist/chunk-A7ZJQCNU.js +1 -0
  17. package/dist/chunk-AYFHWLQZ.js +2 -0
  18. package/dist/chunk-AYFHWLQZ.js.map +1 -0
  19. package/dist/chunk-CKGTR44U.js +2 -0
  20. package/dist/chunk-CKGTR44U.js.map +1 -0
  21. package/dist/chunk-CTG3DYJR.js +2 -0
  22. package/dist/chunk-CTG3DYJR.js.map +1 -0
  23. package/dist/chunk-DZYFSFZ7.js +2 -0
  24. package/dist/chunk-DZYFSFZ7.js.map +1 -0
  25. package/dist/chunk-EQBNHLR4.js +2 -0
  26. package/dist/chunk-EQBNHLR4.js.map +1 -0
  27. package/dist/chunk-F5QJZKDL.js +2 -0
  28. package/dist/{chunk-Q6GIPVSE.js.map → chunk-F5QJZKDL.js.map} +1 -1
  29. package/dist/chunk-FZ2HS6G7.js +2 -0
  30. package/dist/chunk-FZ2HS6G7.js.map +1 -0
  31. package/dist/chunk-FZ7FWFJX.js +1 -0
  32. package/dist/chunk-FZ7FWFJX.js.map +1 -0
  33. package/dist/chunk-GW7GG5ZW.js +2 -0
  34. package/dist/chunk-GW7GG5ZW.js.map +1 -0
  35. package/dist/chunk-HP7ZP256.js +2 -0
  36. package/dist/chunk-HP7ZP256.js.map +1 -0
  37. package/dist/chunk-IJPE22L7.js +2 -0
  38. package/dist/chunk-IJPE22L7.js.map +1 -0
  39. package/dist/chunk-IPZEZMLD.js +2 -0
  40. package/dist/chunk-IPZEZMLD.js.map +1 -0
  41. package/dist/chunk-JLUDKN4H.js +2 -0
  42. package/dist/chunk-JLUDKN4H.js.map +1 -0
  43. package/dist/chunk-JODJFARP.js +2 -0
  44. package/dist/chunk-JODJFARP.js.map +1 -0
  45. package/dist/chunk-JRQSZHUU.js +2 -0
  46. package/dist/chunk-JRQSZHUU.js.map +1 -0
  47. package/dist/chunk-KPSFJ6BN.js +2 -0
  48. package/dist/chunk-KPSFJ6BN.js.map +1 -0
  49. package/dist/chunk-LNF27NTC.js +2 -0
  50. package/dist/chunk-LNF27NTC.js.map +1 -0
  51. package/dist/chunk-N5AQSLAU.js +2 -0
  52. package/dist/chunk-N5AQSLAU.js.map +1 -0
  53. package/dist/{chunk-KQCZ2KSO.js → chunk-NBD4VOG3.js} +2 -2
  54. package/dist/{chunk-KQCZ2KSO.js.map → chunk-NBD4VOG3.js.map} +1 -1
  55. package/dist/chunk-RCX4JUI3.js +2 -0
  56. package/dist/chunk-RCX4JUI3.js.map +1 -0
  57. package/dist/chunk-S56EWAS4.js +2 -0
  58. package/dist/chunk-S56EWAS4.js.map +1 -0
  59. package/dist/chunk-SABMDOWE.js +2 -0
  60. package/dist/chunk-SABMDOWE.js.map +1 -0
  61. package/dist/chunk-SEUQNAF6.js +2 -0
  62. package/dist/chunk-SEUQNAF6.js.map +1 -0
  63. package/dist/chunk-VX2UC3HG.js +2 -0
  64. package/dist/chunk-VX2UC3HG.js.map +1 -0
  65. package/dist/chunk-W5DG5WWJ.js +2 -0
  66. package/dist/chunk-W5DG5WWJ.js.map +1 -0
  67. package/dist/chunk-XFD3ULUF.js +2 -0
  68. package/dist/chunk-XFD3ULUF.js.map +1 -0
  69. package/dist/chunk-XULIEA44.js +2 -0
  70. package/dist/{chunk-YNLDKIE4.js.map → chunk-XULIEA44.js.map} +1 -1
  71. package/dist/{chunk-VV7RML2Q.js → chunk-YAHWFLDH.js} +2 -2
  72. package/dist/chunk-YBACB5A6.js +2 -0
  73. package/dist/chunk-YBACB5A6.js.map +1 -0
  74. package/dist/flows/ContractAmendment/ContractAmendmentBack.d.ts +5 -0
  75. package/dist/flows/ContractAmendment/ContractAmendmentBack.js +2 -0
  76. package/dist/flows/ContractAmendment/ContractAmendmentBack.js.map +1 -0
  77. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +30 -0
  78. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +2 -0
  79. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js.map +1 -0
  80. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +24 -7
  81. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  82. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +26 -3
  83. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  84. package/dist/flows/ContractAmendment/ContractAmendmentSubmit.d.ts +1 -1
  85. package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
  86. package/dist/flows/ContractAmendment/context.d.ts +26 -24
  87. package/dist/flows/ContractAmendment/context.js +1 -1
  88. package/dist/flows/ContractAmendment/hooks.d.ts +94 -6
  89. package/dist/flows/ContractAmendment/hooks.js +1 -1
  90. package/dist/flows/ContractAmendment/index.d.ts +8 -5
  91. package/dist/flows/ContractAmendment/index.js +1 -1
  92. package/dist/flows/ContractAmendment/utils.d.ts +11 -0
  93. package/dist/flows/ContractAmendment/utils.js +2 -0
  94. package/dist/flows/ContractAmendment/utils.js.map +1 -0
  95. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +2 -2
  96. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  97. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
  98. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  99. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  100. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  101. package/dist/flows/CostCalculator/context.d.ts +1 -1
  102. package/dist/flows/CostCalculator/hooks.d.ts +1 -1
  103. package/dist/flows/CostCalculator/hooks.js +1 -1
  104. package/dist/flows/CostCalculator/index.d.ts +1 -1
  105. package/dist/flows/CostCalculator/index.js +1 -1
  106. package/dist/flows/CostCalculator/types.d.ts +1 -1
  107. package/dist/flows/CostCalculator/utils.d.ts +1 -1
  108. package/dist/flows/CostCalculator/utils.js +1 -1
  109. package/dist/flows/Termination/TerminationBack.d.ts +5 -0
  110. package/dist/flows/Termination/TerminationBack.js +2 -0
  111. package/dist/flows/Termination/TerminationBack.js.map +1 -0
  112. package/dist/flows/Termination/TerminationFlow.d.ts +46 -0
  113. package/dist/flows/Termination/TerminationFlow.js +2 -0
  114. package/dist/flows/Termination/TerminationFlow.js.map +1 -0
  115. package/dist/flows/Termination/TerminationForm.d.ts +13 -0
  116. package/dist/flows/Termination/TerminationForm.js +2 -0
  117. package/dist/flows/Termination/TerminationForm.js.map +1 -0
  118. package/dist/flows/Termination/TerminationSubmit.d.ts +5 -0
  119. package/dist/flows/Termination/TerminationSubmit.js +2 -0
  120. package/dist/flows/Termination/TerminationSubmit.js.map +1 -0
  121. package/dist/flows/Termination/TimeOff.d.ts +11 -0
  122. package/dist/flows/Termination/TimeOff.js +2 -0
  123. package/dist/flows/Termination/TimeOff.js.map +1 -0
  124. package/dist/flows/Termination/context.d.ts +52 -0
  125. package/dist/flows/Termination/context.js +2 -0
  126. package/dist/flows/Termination/context.js.map +1 -0
  127. package/dist/flows/Termination/hooks.d.ts +86 -0
  128. package/dist/flows/Termination/hooks.js +2 -0
  129. package/dist/flows/Termination/hooks.js.map +1 -0
  130. package/dist/flows/Termination/index.d.ts +14 -0
  131. package/dist/flows/Termination/index.js +2 -0
  132. package/dist/flows/Termination/index.js.map +1 -0
  133. package/dist/flows/Termination/json-schemas/additionalInformation.d.ts +25 -0
  134. package/dist/flows/Termination/json-schemas/additionalInformation.js +2 -0
  135. package/dist/flows/Termination/json-schemas/additionalInformation.js.map +1 -0
  136. package/dist/flows/Termination/json-schemas/defaultSchema.d.ts +15 -0
  137. package/dist/flows/Termination/json-schemas/defaultSchema.js +2 -0
  138. package/dist/flows/Termination/json-schemas/defaultSchema.js.map +1 -0
  139. package/dist/flows/Termination/json-schemas/employeeComunication.d.ts +133 -0
  140. package/dist/flows/Termination/json-schemas/employeeComunication.js +2 -0
  141. package/dist/flows/Termination/json-schemas/employeeComunication.js.map +1 -0
  142. package/dist/flows/Termination/json-schemas/jsonSchema.d.ts +339 -0
  143. package/dist/flows/Termination/json-schemas/jsonSchema.js +2 -0
  144. package/dist/flows/Termination/json-schemas/jsonSchema.js.map +1 -0
  145. package/dist/flows/Termination/json-schemas/paidTimeOff.d.ts +71 -0
  146. package/dist/flows/Termination/json-schemas/paidTimeOff.js +2 -0
  147. package/dist/flows/Termination/json-schemas/paidTimeOff.js.map +1 -0
  148. package/dist/flows/Termination/json-schemas/schema.d.ts +8 -0
  149. package/dist/flows/Termination/json-schemas/schema.js +2 -0
  150. package/dist/flows/Termination/json-schemas/schema.js.map +1 -0
  151. package/dist/flows/Termination/json-schemas/terminationDetails.d.ts +126 -0
  152. package/dist/flows/Termination/json-schemas/terminationDetails.js +2 -0
  153. package/dist/flows/Termination/json-schemas/terminationDetails.js.map +1 -0
  154. package/dist/flows/Termination/types.d.ts +23 -0
  155. package/dist/flows/Termination/types.js +1 -0
  156. package/dist/flows/Termination/types.js.map +1 -0
  157. package/dist/flows/Termination/utils.d.ts +8 -0
  158. package/dist/flows/Termination/utils.js +2 -0
  159. package/dist/flows/Termination/utils.js.map +1 -0
  160. package/dist/flows/useStepState.d.ts +49 -0
  161. package/dist/flows/useStepState.js +2 -0
  162. package/dist/flows/useStepState.js.map +1 -0
  163. package/dist/flows/utils.d.ts +20 -1
  164. package/dist/flows/utils.js +1 -1
  165. package/dist/index.css +1 -1
  166. package/dist/index.css.map +1 -1
  167. package/dist/index.d.ts +69 -8
  168. package/dist/index.js +1 -1
  169. package/dist/index.js.map +1 -1
  170. package/dist/mutations-v9H353tz.d.ts +10 -0
  171. package/dist/{types.gen-DCJSPsGk.d.ts → types.gen-BgLeTAqP.d.ts} +1 -1
  172. package/package.json +2 -1
  173. package/dist/chunk-4QHHDFB2.js +0 -2
  174. package/dist/chunk-4QHHDFB2.js.map +0 -1
  175. package/dist/chunk-5UXOVZY5.js +0 -2
  176. package/dist/chunk-ANPGCYMT.js +0 -2
  177. package/dist/chunk-ANPGCYMT.js.map +0 -1
  178. package/dist/chunk-GCF5EF2A.js +0 -2
  179. package/dist/chunk-GCF5EF2A.js.map +0 -1
  180. package/dist/chunk-GKEURJR4.js +0 -2
  181. package/dist/chunk-GKEURJR4.js.map +0 -1
  182. package/dist/chunk-KY7BGW6H.js +0 -2
  183. package/dist/chunk-KY7BGW6H.js.map +0 -1
  184. package/dist/chunk-MKJHD77O.js +0 -1
  185. package/dist/chunk-Q6GIPVSE.js +0 -2
  186. package/dist/chunk-UTCIIPYZ.js +0 -2
  187. package/dist/chunk-UTCIIPYZ.js.map +0 -1
  188. package/dist/chunk-VTAHQOKR.js +0 -2
  189. package/dist/chunk-VTAHQOKR.js.map +0 -1
  190. package/dist/chunk-YGP3O2VJ.js +0 -2
  191. package/dist/chunk-YGP3O2VJ.js.map +0 -1
  192. package/dist/chunk-YNLDKIE4.js +0 -2
  193. package/dist/hooks-BQWrl9Bj.d.ts +0 -50
  194. /package/dist/{chunk-MKJHD77O.js.map → chunk-A7ZJQCNU.js.map} +0 -0
  195. /package/dist/{chunk-VV7RML2Q.js.map → chunk-YAHWFLDH.js.map} +0 -0
@@ -0,0 +1,339 @@
1
+ declare const jsonSchema: {
2
+ data: {
3
+ version: number;
4
+ schema: {
5
+ additionalProperties: boolean;
6
+ allOf: ({
7
+ if: {
8
+ properties: {
9
+ personal_email: {
10
+ pattern: string;
11
+ };
12
+ customer_informed_employee?: undefined;
13
+ will_challenge_termination?: undefined;
14
+ agrees_to_pto_amount?: undefined;
15
+ };
16
+ required?: undefined;
17
+ };
18
+ then: {
19
+ properties: {
20
+ personal_email: {
21
+ 'x-jsf-presentation': {
22
+ statement: {
23
+ title: string;
24
+ inputType: string;
25
+ severity: string;
26
+ };
27
+ };
28
+ };
29
+ customer_informed_employee_date?: undefined;
30
+ customer_informed_employee_description?: undefined;
31
+ will_challenge_termination_description?: undefined;
32
+ agrees_to_pto_amount_notes?: undefined;
33
+ };
34
+ required?: undefined;
35
+ };
36
+ else?: undefined;
37
+ } | {
38
+ if: {
39
+ properties: {
40
+ customer_informed_employee: {
41
+ const: string;
42
+ };
43
+ personal_email?: undefined;
44
+ will_challenge_termination?: undefined;
45
+ agrees_to_pto_amount?: undefined;
46
+ };
47
+ required: string[];
48
+ };
49
+ then: {
50
+ properties: {
51
+ customer_informed_employee_date: {
52
+ type: string;
53
+ };
54
+ customer_informed_employee_description: {
55
+ type: string;
56
+ };
57
+ personal_email?: undefined;
58
+ will_challenge_termination_description?: undefined;
59
+ agrees_to_pto_amount_notes?: undefined;
60
+ };
61
+ required: string[];
62
+ };
63
+ else: {
64
+ properties: {
65
+ customer_informed_employee_date: boolean;
66
+ customer_informed_employee_description: boolean;
67
+ will_challenge_termination_description?: undefined;
68
+ agrees_to_pto_amount_notes?: undefined;
69
+ timesheet_file?: undefined;
70
+ };
71
+ };
72
+ } | {
73
+ if: {
74
+ properties: {
75
+ will_challenge_termination: {
76
+ const: string;
77
+ };
78
+ personal_email?: undefined;
79
+ customer_informed_employee?: undefined;
80
+ agrees_to_pto_amount?: undefined;
81
+ };
82
+ required: string[];
83
+ };
84
+ then: {
85
+ properties: {
86
+ will_challenge_termination_description: {
87
+ type: string;
88
+ };
89
+ personal_email?: undefined;
90
+ customer_informed_employee_date?: undefined;
91
+ customer_informed_employee_description?: undefined;
92
+ agrees_to_pto_amount_notes?: undefined;
93
+ };
94
+ required: string[];
95
+ };
96
+ else: {
97
+ properties: {
98
+ will_challenge_termination_description: boolean;
99
+ customer_informed_employee_date?: undefined;
100
+ customer_informed_employee_description?: undefined;
101
+ agrees_to_pto_amount_notes?: undefined;
102
+ timesheet_file?: undefined;
103
+ };
104
+ };
105
+ } | {
106
+ if: {
107
+ properties: {
108
+ agrees_to_pto_amount: {
109
+ const: string;
110
+ };
111
+ personal_email?: undefined;
112
+ customer_informed_employee?: undefined;
113
+ will_challenge_termination?: undefined;
114
+ };
115
+ required: string[];
116
+ };
117
+ then: {
118
+ properties: {
119
+ agrees_to_pto_amount_notes: {
120
+ type: string;
121
+ };
122
+ personal_email?: undefined;
123
+ customer_informed_employee_date?: undefined;
124
+ customer_informed_employee_description?: undefined;
125
+ will_challenge_termination_description?: undefined;
126
+ };
127
+ required: string[];
128
+ };
129
+ else: {
130
+ properties: {
131
+ agrees_to_pto_amount_notes: boolean;
132
+ timesheet_file: boolean;
133
+ customer_informed_employee_date?: undefined;
134
+ customer_informed_employee_description?: undefined;
135
+ will_challenge_termination_description?: undefined;
136
+ };
137
+ };
138
+ })[];
139
+ properties: {
140
+ confidential: {
141
+ description: string;
142
+ oneOf: {
143
+ const: string;
144
+ description: string;
145
+ title: string;
146
+ }[];
147
+ title: string;
148
+ type: string;
149
+ 'x-jsf-presentation': {
150
+ direction: string;
151
+ inputType: string;
152
+ statement: {
153
+ title: string;
154
+ inputType: string;
155
+ severity: string;
156
+ };
157
+ };
158
+ };
159
+ customer_informed_employee: {
160
+ description: string;
161
+ oneOf: {
162
+ const: string;
163
+ description: string;
164
+ title: string;
165
+ }[];
166
+ title: string;
167
+ type: string;
168
+ 'x-jsf-presentation': {
169
+ direction: string;
170
+ inputType: string;
171
+ };
172
+ };
173
+ customer_informed_employee_date: {
174
+ description: string;
175
+ format: string;
176
+ maxLength: number;
177
+ title: string;
178
+ type: string[];
179
+ 'x-jsf-presentation': {
180
+ inputType: string;
181
+ };
182
+ };
183
+ customer_informed_employee_description: {
184
+ description: string;
185
+ maxLength: number;
186
+ title: string;
187
+ type: string[];
188
+ 'x-jsf-presentation': {
189
+ inputType: string;
190
+ };
191
+ };
192
+ personal_email: {
193
+ description: string;
194
+ maxLength: number;
195
+ title: string;
196
+ format: string;
197
+ type: string;
198
+ 'x-jsf-presentation': {
199
+ inputType: string;
200
+ };
201
+ };
202
+ termination_reason: {
203
+ title: string;
204
+ description: string;
205
+ type: string;
206
+ oneOf: {
207
+ const: string;
208
+ title: string;
209
+ }[];
210
+ 'x-jsf-presentation': {
211
+ inputType: string;
212
+ };
213
+ };
214
+ reason_description: {
215
+ description: string;
216
+ maxLength: number;
217
+ title: string;
218
+ type: string;
219
+ 'x-jsf-presentation': {
220
+ inputType: string;
221
+ };
222
+ };
223
+ additional_comments: {
224
+ description: string;
225
+ maxLength: number;
226
+ title: string;
227
+ type: string;
228
+ 'x-jsf-presentation': {
229
+ inputType: string;
230
+ };
231
+ };
232
+ termination_reason_files: {
233
+ description: string;
234
+ title: string;
235
+ type: string;
236
+ 'x-jsf-presentation': {
237
+ inputType: string;
238
+ accept: string;
239
+ multiple: boolean;
240
+ };
241
+ };
242
+ risk_assessment_reasons: {
243
+ description: string;
244
+ title: string;
245
+ type: string;
246
+ items: {
247
+ anyOf: {
248
+ const: string;
249
+ title: string;
250
+ }[];
251
+ };
252
+ 'x-jsf-presentation': {
253
+ inputType: string;
254
+ direction: string;
255
+ };
256
+ };
257
+ will_challenge_termination: {
258
+ description: string;
259
+ oneOf: {
260
+ const: string;
261
+ description: string;
262
+ title: string;
263
+ }[];
264
+ title: string;
265
+ type: string;
266
+ 'x-jsf-presentation': {
267
+ direction: string;
268
+ inputType: string;
269
+ };
270
+ };
271
+ will_challenge_termination_description: {
272
+ description: string;
273
+ maxLength: number;
274
+ title: string;
275
+ type: string[];
276
+ 'x-jsf-presentation': {
277
+ inputType: string;
278
+ };
279
+ };
280
+ proposed_termination_date: {
281
+ description: string;
282
+ format: string;
283
+ maxLength: number;
284
+ title: string;
285
+ type: string;
286
+ 'x-jsf-presentation': {
287
+ inputType: string;
288
+ };
289
+ };
290
+ agrees_to_pto_amount: {
291
+ description: string;
292
+ oneOf: {
293
+ const: string;
294
+ description: string;
295
+ title: string;
296
+ }[];
297
+ title: string;
298
+ type: string;
299
+ 'x-jsf-presentation': {
300
+ direction: string;
301
+ inputType: string;
302
+ };
303
+ };
304
+ agrees_to_pto_amount_notes: {
305
+ description: string;
306
+ maxLength: number;
307
+ title: string;
308
+ type: string[];
309
+ 'x-jsf-presentation': {
310
+ inputType: string;
311
+ };
312
+ };
313
+ timesheet_file: {
314
+ description: string;
315
+ title: string;
316
+ type: string[];
317
+ 'x-jsf-presentation': {
318
+ inputType: string;
319
+ accept: string;
320
+ };
321
+ };
322
+ acknowledge_termination_procedure: {
323
+ description: string;
324
+ title: string;
325
+ type: string;
326
+ 'x-jsf-presentation': {
327
+ direction: string;
328
+ inputType: string;
329
+ };
330
+ };
331
+ };
332
+ required: string[];
333
+ type: string;
334
+ 'x-jsf-order': string[];
335
+ };
336
+ };
337
+ };
338
+
339
+ export { jsonSchema };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../../chunk-CTG3DYJR.js";import"../../../chunk-AYDF3IFZ.js";export{a as jsonSchema};
2
+ //# sourceMappingURL=jsonSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,71 @@
1
+ declare const paidTimeOffSchema: {
2
+ data: {
3
+ version: number;
4
+ schema: {
5
+ additionalProperties: boolean;
6
+ allOf: {
7
+ if: {
8
+ properties: {
9
+ agrees_to_pto_amount: {
10
+ const: string;
11
+ };
12
+ };
13
+ required: string[];
14
+ };
15
+ then: {
16
+ properties: {
17
+ agrees_to_pto_amount_notes: {
18
+ type: string;
19
+ };
20
+ };
21
+ required: string[];
22
+ };
23
+ else: {
24
+ properties: {
25
+ agrees_to_pto_amount_notes: boolean;
26
+ timesheet_file: boolean;
27
+ };
28
+ };
29
+ }[];
30
+ properties: {
31
+ agrees_to_pto_amount: {
32
+ description: string;
33
+ oneOf: {
34
+ const: string;
35
+ description: string;
36
+ title: string;
37
+ }[];
38
+ title: string;
39
+ type: string;
40
+ 'x-jsf-presentation': {
41
+ direction: string;
42
+ inputType: string;
43
+ };
44
+ };
45
+ agrees_to_pto_amount_notes: {
46
+ description: string;
47
+ maxLength: number;
48
+ title: string;
49
+ type: string[];
50
+ 'x-jsf-presentation': {
51
+ inputType: string;
52
+ };
53
+ };
54
+ timesheet_file: {
55
+ description: string;
56
+ title: string;
57
+ type: string[];
58
+ 'x-jsf-presentation': {
59
+ inputType: string;
60
+ accept: string;
61
+ };
62
+ };
63
+ };
64
+ required: string[];
65
+ type: string;
66
+ 'x-jsf-order': string[];
67
+ };
68
+ };
69
+ };
70
+
71
+ export { paidTimeOffSchema };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../../chunk-W5DG5WWJ.js";import"../../../chunk-AYDF3IFZ.js";export{a as paidTimeOffSchema};
2
+ //# sourceMappingURL=paidTimeOff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,8 @@
1
+ import { StepTerminationKeys } from '../utils.js';
2
+ import '../../useStepState.js';
3
+ import 'react';
4
+ import 'react-hook-form';
5
+
6
+ declare const schema: Record<StepTerminationKeys, Record<string, any>>;
7
+
8
+ export { schema };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../../chunk-SEUQNAF6.js";import"../../../chunk-VX2UC3HG.js";import"../../../chunk-IPZEZMLD.js";import"../../../chunk-JODJFARP.js";import"../../../chunk-W5DG5WWJ.js";import"../../../chunk-AYDF3IFZ.js";export{a as schema};
2
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,126 @@
1
+ declare const terminationDetailsSchema: {
2
+ data: {
3
+ version: number;
4
+ schema: {
5
+ additionalProperties: boolean;
6
+ allOf: {
7
+ if: {
8
+ properties: {
9
+ will_challenge_termination: {
10
+ const: string;
11
+ };
12
+ };
13
+ required: string[];
14
+ };
15
+ then: {
16
+ properties: {
17
+ will_challenge_termination_description: {
18
+ type: string;
19
+ };
20
+ };
21
+ required: string[];
22
+ };
23
+ else: {
24
+ properties: {
25
+ will_challenge_termination_description: boolean;
26
+ };
27
+ };
28
+ }[];
29
+ properties: {
30
+ termination_reason: {
31
+ title: string;
32
+ description: string;
33
+ type: string;
34
+ oneOf: {
35
+ const: string;
36
+ title: string;
37
+ }[];
38
+ 'x-jsf-presentation': {
39
+ inputType: string;
40
+ };
41
+ };
42
+ reason_description: {
43
+ description: string;
44
+ maxLength: number;
45
+ title: string;
46
+ type: string;
47
+ 'x-jsf-presentation': {
48
+ inputType: string;
49
+ };
50
+ };
51
+ additional_comments: {
52
+ description: string;
53
+ maxLength: number;
54
+ title: string;
55
+ type: string;
56
+ 'x-jsf-presentation': {
57
+ inputType: string;
58
+ };
59
+ };
60
+ termination_reason_files: {
61
+ description: string;
62
+ title: string;
63
+ type: string;
64
+ 'x-jsf-presentation': {
65
+ inputType: string;
66
+ accept: string;
67
+ multiple: boolean;
68
+ };
69
+ };
70
+ risk_assessment_reasons: {
71
+ description: string;
72
+ title: string;
73
+ type: string;
74
+ items: {
75
+ anyOf: {
76
+ const: string;
77
+ title: string;
78
+ }[];
79
+ };
80
+ 'x-jsf-presentation': {
81
+ inputType: string;
82
+ direction: string;
83
+ };
84
+ };
85
+ will_challenge_termination: {
86
+ description: string;
87
+ oneOf: {
88
+ const: string;
89
+ description: string;
90
+ title: string;
91
+ }[];
92
+ title: string;
93
+ type: string;
94
+ 'x-jsf-presentation': {
95
+ direction: string;
96
+ inputType: string;
97
+ };
98
+ };
99
+ will_challenge_termination_description: {
100
+ description: string;
101
+ maxLength: number;
102
+ title: string;
103
+ type: string[];
104
+ 'x-jsf-presentation': {
105
+ inputType: string;
106
+ };
107
+ };
108
+ proposed_termination_date: {
109
+ description: string;
110
+ format: string;
111
+ maxLength: number;
112
+ title: string;
113
+ type: string;
114
+ 'x-jsf-presentation': {
115
+ inputType: string;
116
+ };
117
+ };
118
+ };
119
+ required: string[];
120
+ type: string;
121
+ 'x-jsf-order': string[];
122
+ };
123
+ };
124
+ };
125
+
126
+ export { terminationDetailsSchema };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../../chunk-VX2UC3HG.js";import"../../../chunk-AYDF3IFZ.js";export{a as terminationDetailsSchema};
2
+ //# sourceMappingURL=terminationDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,23 @@
1
+ import { T as TerminationDetailsParams } from '../../types.gen-BgLeTAqP.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: string;
9
+ customer_informed_employee: string;
10
+ customer_informed_employee_date: string | null;
11
+ customer_informed_employee_description: string | null;
12
+ personal_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'] | undefined;
17
+ termination_reason_files: TerminationDetailsParams['termination_reason_files'];
18
+ timesheet_file: TerminationDetailsParams['timesheet_file'];
19
+ will_challenge_termination: string;
20
+ will_challenge_termination_description: string | null;
21
+ };
22
+
23
+ export type { TerminationFormValues };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,8 @@
1
+ import { Step } from '../useStepState.js';
2
+ import 'react';
3
+ import 'react-hook-form';
4
+
5
+ type StepTerminationKeys = 'employee_communication' | 'termination_details' | 'paid_time_off' | 'additional_information';
6
+ declare const STEPS: Record<StepTerminationKeys, Step>;
7
+
8
+ export { STEPS, type StepTerminationKeys };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-FZ2HS6G7.js";import"../../chunk-AYDF3IFZ.js";export{a as STEPS};
2
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,49 @@
1
+ import * as React from 'react';
2
+ import { FieldValues } from 'react-hook-form';
3
+
4
+ type Step = {
5
+ index: number;
6
+ name: string;
7
+ };
8
+ type StepState<T extends string, Fields = FieldValues> = {
9
+ currentStep: Step;
10
+ totalSteps: number;
11
+ values: {
12
+ [key in T]: Fields;
13
+ } | null;
14
+ };
15
+ declare const useStepState: <T extends string, Fields = FieldValues>(steps: Record<T, Step>) => {
16
+ /**
17
+ * Moves to the next step in the step state.
18
+ * It updates the current step and resets the field values for the next step.
19
+ * The field values for the current step are stored in the step state.
20
+ * @returns {void}
21
+ */
22
+ nextStep: () => void;
23
+ /**
24
+ * Moves to the previous step in the step state.
25
+ * It updates the current step and resets the field values for the previous step.
26
+ * The field values for the current step are stored in the step state.
27
+ * @returns {void}
28
+ */
29
+ previousStep: () => void;
30
+ /**
31
+ * The current step state containing the current step, total number of steps and
32
+ * the form values for each step.
33
+ * @returns {StepState<T>} The current step state.
34
+ */
35
+ stepState: StepState<T, Fields>;
36
+ /**
37
+ * The field values for the current step.
38
+ * @returns {FieldValues} The field values for the current step.
39
+ */
40
+ fieldValues: Fields;
41
+ /**
42
+ * Sets the field values for the current step.
43
+ * @param values The field values to set.
44
+ * @returns {void}
45
+ */
46
+ setFieldValues: React.Dispatch<React.SetStateAction<Fields>>;
47
+ };
48
+
49
+ export { type Step, useStepState };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-S56EWAS4.js";import"../chunk-AYDF3IFZ.js";export{a as useStepState};
2
+ //# sourceMappingURL=useStepState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}