wcz-test 6.22.0 → 6.22.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/ApprovalStatus-BtAVFn5p.js +8 -0
- package/dist/{ApprovalStatus-C9HPyMiS.js.map → ApprovalStatus-BtAVFn5p.js.map} +1 -1
- package/dist/DialogsContext-DMZRefiY.js.map +1 -1
- package/dist/DialogsHooks-BEZgPVSk.js +277 -0
- package/dist/DialogsHooks-BEZgPVSk.js.map +1 -0
- package/dist/FileHooks-BJdvBvBr.js +465 -0
- package/dist/FileHooks-BJdvBvBr.js.map +1 -0
- package/dist/FileMeta-G1oT3mYK.js.map +1 -1
- package/dist/RouterListItemButton-CagMd8F_.js +35 -0
- package/dist/RouterListItemButton-CagMd8F_.js.map +1 -0
- package/dist/{UseHook-DB7btKDE.js → UseHook-CGSDGsbk.js} +4 -2
- package/dist/{UseHook-DB7btKDE.js.map → UseHook-CGSDGsbk.js.map} +1 -1
- package/dist/client.js +1 -1
- package/dist/compiler-runtime-BGHur82y.js +46 -0
- package/dist/compiler-runtime-BGHur82y.js.map +1 -0
- package/dist/components.js +1362 -305
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +937 -281
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +1717 -505
- package/dist/index.js.map +1 -1
- package/dist/models.js +27 -50
- package/dist/models.js.map +1 -1
- package/dist/queries.js +755 -206
- package/dist/queries.js.map +1 -1
- package/dist/{utils-CKW5pi6k.js → utils-CCjnelFb.js} +47 -18
- package/dist/{utils-CKW5pi6k.js.map → utils-CCjnelFb.js.map} +1 -1
- package/dist/utils.js +1 -1
- package/dist/vite.js +9 -3
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/ApprovalStatus-C9HPyMiS.js +0 -24
- package/dist/DialogsHooks-DBK6rBoU.js +0 -37
- package/dist/DialogsHooks-DBK6rBoU.js.map +0 -1
- package/dist/FileHooks-BM2Oyvh6.js +0 -194
- package/dist/FileHooks-BM2Oyvh6.js.map +0 -1
- package/dist/RouterListItemButton-Vj6OoqkV.js +0 -15
- package/dist/RouterListItemButton-Vj6OoqkV.js.map +0 -1
package/dist/queries.js
CHANGED
|
@@ -1,207 +1,576 @@
|
|
|
1
|
-
import { f, g, c, b, u, a, d, e, h } from "./FileHooks-
|
|
1
|
+
import { f, g, c, b, u, a, d, e, h } from "./FileHooks-BJdvBvBr.js";
|
|
2
|
+
import { c as compilerRuntimeExports } from "./compiler-runtime-BGHur82y.js";
|
|
2
3
|
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query";
|
|
3
|
-
import { h as httpClient, t as toKebabCase, c as clientEnv } from "./utils-
|
|
4
|
+
import { h as httpClient, t as toKebabCase, c as clientEnv } from "./utils-CCjnelFb.js";
|
|
4
5
|
import { createIsomorphicFn } from "@tanstack/react-start";
|
|
5
6
|
import z__default from "zod";
|
|
6
|
-
import { A as ApprovalStepResult, a as ApprovalStatus } from "./ApprovalStatus-
|
|
7
|
+
import { A as ApprovalStepResult, a as ApprovalStatus } from "./ApprovalStatus-BtAVFn5p.js";
|
|
7
8
|
const QUERY_KEY = "ps";
|
|
8
9
|
const DAY = 1e3 * 60 * 60 * 24;
|
|
9
10
|
const useGetPeopleSoftEmployeesSearch = (searchTerm, options) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
const $ = compilerRuntimeExports.c(7);
|
|
12
|
+
let t0;
|
|
13
|
+
let t1;
|
|
14
|
+
if ($[0] !== searchTerm) {
|
|
15
|
+
t0 = [QUERY_KEY, "employee", "search", searchTerm];
|
|
16
|
+
t1 = (t22) => {
|
|
17
|
+
const {
|
|
18
|
+
signal
|
|
19
|
+
} = t22;
|
|
20
|
+
return httpClient.request({
|
|
21
|
+
url: `/${QUERY_KEY}/v1/employee?search=${searchTerm}`,
|
|
22
|
+
method: "GET",
|
|
23
|
+
signal
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
$[0] = searchTerm;
|
|
27
|
+
$[1] = t0;
|
|
28
|
+
$[2] = t1;
|
|
29
|
+
} else {
|
|
30
|
+
t0 = $[1];
|
|
31
|
+
t1 = $[2];
|
|
32
|
+
}
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
35
|
+
t2 = {
|
|
36
|
+
...options,
|
|
37
|
+
queryKey: t0,
|
|
38
|
+
queryFn: t1,
|
|
39
|
+
staleTime: DAY,
|
|
40
|
+
gcTime: DAY,
|
|
41
|
+
refetchOnWindowFocus: false
|
|
42
|
+
};
|
|
43
|
+
$[3] = options;
|
|
44
|
+
$[4] = t0;
|
|
45
|
+
$[5] = t1;
|
|
46
|
+
$[6] = t2;
|
|
47
|
+
} else {
|
|
48
|
+
t2 = $[6];
|
|
49
|
+
}
|
|
50
|
+
return useQuery(t2);
|
|
22
51
|
};
|
|
23
52
|
const useGetPeopleSoftEmployees = (options) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
const $ = compilerRuntimeExports.c(3);
|
|
54
|
+
let t0;
|
|
55
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
|
+
t0 = [QUERY_KEY, "employee"];
|
|
57
|
+
$[0] = t0;
|
|
58
|
+
} else {
|
|
59
|
+
t0 = $[0];
|
|
60
|
+
}
|
|
61
|
+
let t1;
|
|
62
|
+
if ($[1] !== options) {
|
|
63
|
+
t1 = {
|
|
64
|
+
...options,
|
|
65
|
+
queryKey: t0,
|
|
66
|
+
queryFn: _temp$1,
|
|
67
|
+
staleTime: DAY,
|
|
68
|
+
gcTime: DAY,
|
|
69
|
+
refetchOnWindowFocus: false
|
|
70
|
+
};
|
|
71
|
+
$[1] = options;
|
|
72
|
+
$[2] = t1;
|
|
73
|
+
} else {
|
|
74
|
+
t1 = $[2];
|
|
75
|
+
}
|
|
76
|
+
return useQuery(t1);
|
|
36
77
|
};
|
|
37
78
|
const useGetPeopleSoftActiveEmployees = (options) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
79
|
+
const $ = compilerRuntimeExports.c(3);
|
|
80
|
+
let t0;
|
|
81
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
82
|
+
t0 = [QUERY_KEY, "employee", "active"];
|
|
83
|
+
$[0] = t0;
|
|
84
|
+
} else {
|
|
85
|
+
t0 = $[0];
|
|
86
|
+
}
|
|
87
|
+
let t1;
|
|
88
|
+
if ($[1] !== options) {
|
|
89
|
+
t1 = {
|
|
90
|
+
...options,
|
|
91
|
+
queryKey: t0,
|
|
92
|
+
queryFn: _temp2$1,
|
|
93
|
+
staleTime: DAY,
|
|
94
|
+
gcTime: DAY,
|
|
95
|
+
refetchOnWindowFocus: false
|
|
96
|
+
};
|
|
97
|
+
$[1] = options;
|
|
98
|
+
$[2] = t1;
|
|
99
|
+
} else {
|
|
100
|
+
t1 = $[2];
|
|
101
|
+
}
|
|
102
|
+
return useQuery(t1);
|
|
50
103
|
};
|
|
51
104
|
const useGetPeopleSoftEmployeeById = (employeeId, options) => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
105
|
+
const $ = compilerRuntimeExports.c(7);
|
|
106
|
+
let t0;
|
|
107
|
+
let t1;
|
|
108
|
+
if ($[0] !== employeeId) {
|
|
109
|
+
t0 = [QUERY_KEY, "employee", employeeId];
|
|
110
|
+
t1 = (t22) => {
|
|
111
|
+
const {
|
|
112
|
+
signal
|
|
113
|
+
} = t22;
|
|
114
|
+
return httpClient.request({
|
|
115
|
+
url: `/${QUERY_KEY}/v1/employee/${employeeId}`,
|
|
116
|
+
method: "GET",
|
|
117
|
+
signal
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
$[0] = employeeId;
|
|
121
|
+
$[1] = t0;
|
|
122
|
+
$[2] = t1;
|
|
123
|
+
} else {
|
|
124
|
+
t0 = $[1];
|
|
125
|
+
t1 = $[2];
|
|
126
|
+
}
|
|
127
|
+
let t2;
|
|
128
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
129
|
+
t2 = {
|
|
130
|
+
...options,
|
|
131
|
+
queryKey: t0,
|
|
132
|
+
queryFn: t1,
|
|
133
|
+
staleTime: DAY,
|
|
134
|
+
gcTime: DAY,
|
|
135
|
+
refetchOnWindowFocus: false
|
|
136
|
+
};
|
|
137
|
+
$[3] = options;
|
|
138
|
+
$[4] = t0;
|
|
139
|
+
$[5] = t1;
|
|
140
|
+
$[6] = t2;
|
|
141
|
+
} else {
|
|
142
|
+
t2 = $[6];
|
|
143
|
+
}
|
|
144
|
+
return useQuery(t2);
|
|
64
145
|
};
|
|
65
146
|
const useGetPeopleSoftPreviousEmployeeIds = (options) => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
147
|
+
const $ = compilerRuntimeExports.c(3);
|
|
148
|
+
let t0;
|
|
149
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
150
|
+
t0 = [QUERY_KEY, "employee", "previousIds"];
|
|
151
|
+
$[0] = t0;
|
|
152
|
+
} else {
|
|
153
|
+
t0 = $[0];
|
|
154
|
+
}
|
|
155
|
+
let t1;
|
|
156
|
+
if ($[1] !== options) {
|
|
157
|
+
t1 = {
|
|
158
|
+
...options,
|
|
159
|
+
queryKey: t0,
|
|
160
|
+
queryFn: _temp3$1,
|
|
161
|
+
staleTime: DAY,
|
|
162
|
+
gcTime: DAY,
|
|
163
|
+
refetchOnWindowFocus: false
|
|
164
|
+
};
|
|
165
|
+
$[1] = options;
|
|
166
|
+
$[2] = t1;
|
|
167
|
+
} else {
|
|
168
|
+
t1 = $[2];
|
|
169
|
+
}
|
|
170
|
+
return useQuery(t1);
|
|
78
171
|
};
|
|
79
172
|
const useGetPeopleSoftEmployeeSupervisor = (employeeId, options) => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
173
|
+
const $ = compilerRuntimeExports.c(7);
|
|
174
|
+
let t0;
|
|
175
|
+
let t1;
|
|
176
|
+
if ($[0] !== employeeId) {
|
|
177
|
+
t0 = [QUERY_KEY, "employee", employeeId, "supervisor"];
|
|
178
|
+
t1 = (t22) => {
|
|
179
|
+
const {
|
|
180
|
+
signal
|
|
181
|
+
} = t22;
|
|
182
|
+
return httpClient.request({
|
|
183
|
+
url: `/${QUERY_KEY}/v1/employee/${employeeId}/supervisor`,
|
|
184
|
+
method: "GET",
|
|
185
|
+
signal
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
$[0] = employeeId;
|
|
189
|
+
$[1] = t0;
|
|
190
|
+
$[2] = t1;
|
|
191
|
+
} else {
|
|
192
|
+
t0 = $[1];
|
|
193
|
+
t1 = $[2];
|
|
194
|
+
}
|
|
195
|
+
let t2;
|
|
196
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
197
|
+
t2 = {
|
|
198
|
+
...options,
|
|
199
|
+
queryKey: t0,
|
|
200
|
+
queryFn: t1,
|
|
201
|
+
staleTime: DAY,
|
|
202
|
+
gcTime: DAY,
|
|
203
|
+
refetchOnWindowFocus: false
|
|
204
|
+
};
|
|
205
|
+
$[3] = options;
|
|
206
|
+
$[4] = t0;
|
|
207
|
+
$[5] = t1;
|
|
208
|
+
$[6] = t2;
|
|
209
|
+
} else {
|
|
210
|
+
t2 = $[6];
|
|
211
|
+
}
|
|
212
|
+
return useQuery(t2);
|
|
92
213
|
};
|
|
93
214
|
const useGetPeopleSoftEmployeeSubordinates = (employeeId, options) => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
215
|
+
const $ = compilerRuntimeExports.c(7);
|
|
216
|
+
let t0;
|
|
217
|
+
let t1;
|
|
218
|
+
if ($[0] !== employeeId) {
|
|
219
|
+
t0 = [QUERY_KEY, "employee", employeeId, "subordinates"];
|
|
220
|
+
t1 = (t22) => {
|
|
221
|
+
const {
|
|
222
|
+
signal
|
|
223
|
+
} = t22;
|
|
224
|
+
return httpClient.request({
|
|
225
|
+
url: `/${QUERY_KEY}/v1/employee/${employeeId}/subordinates`,
|
|
226
|
+
method: "GET",
|
|
227
|
+
signal
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
$[0] = employeeId;
|
|
231
|
+
$[1] = t0;
|
|
232
|
+
$[2] = t1;
|
|
233
|
+
} else {
|
|
234
|
+
t0 = $[1];
|
|
235
|
+
t1 = $[2];
|
|
236
|
+
}
|
|
237
|
+
let t2;
|
|
238
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
239
|
+
t2 = {
|
|
240
|
+
...options,
|
|
241
|
+
queryKey: t0,
|
|
242
|
+
queryFn: t1,
|
|
243
|
+
staleTime: DAY,
|
|
244
|
+
gcTime: DAY,
|
|
245
|
+
refetchOnWindowFocus: false
|
|
246
|
+
};
|
|
247
|
+
$[3] = options;
|
|
248
|
+
$[4] = t0;
|
|
249
|
+
$[5] = t1;
|
|
250
|
+
$[6] = t2;
|
|
251
|
+
} else {
|
|
252
|
+
t2 = $[6];
|
|
253
|
+
}
|
|
254
|
+
return useQuery(t2);
|
|
106
255
|
};
|
|
107
256
|
const useGetPeopleSoftEmployeeManager = (employeeId, options) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
257
|
+
const $ = compilerRuntimeExports.c(7);
|
|
258
|
+
let t0;
|
|
259
|
+
let t1;
|
|
260
|
+
if ($[0] !== employeeId) {
|
|
261
|
+
t0 = [QUERY_KEY, "employee", employeeId, "manager"];
|
|
262
|
+
t1 = (t22) => {
|
|
263
|
+
const {
|
|
264
|
+
signal
|
|
265
|
+
} = t22;
|
|
266
|
+
return httpClient.request({
|
|
267
|
+
url: `/${QUERY_KEY}/v1/employee/${employeeId}/manager`,
|
|
268
|
+
method: "GET",
|
|
269
|
+
signal
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
$[0] = employeeId;
|
|
273
|
+
$[1] = t0;
|
|
274
|
+
$[2] = t1;
|
|
275
|
+
} else {
|
|
276
|
+
t0 = $[1];
|
|
277
|
+
t1 = $[2];
|
|
278
|
+
}
|
|
279
|
+
let t2;
|
|
280
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
281
|
+
t2 = {
|
|
282
|
+
...options,
|
|
283
|
+
queryKey: t0,
|
|
284
|
+
queryFn: t1,
|
|
285
|
+
staleTime: DAY,
|
|
286
|
+
gcTime: DAY,
|
|
287
|
+
refetchOnWindowFocus: false
|
|
288
|
+
};
|
|
289
|
+
$[3] = options;
|
|
290
|
+
$[4] = t0;
|
|
291
|
+
$[5] = t1;
|
|
292
|
+
$[6] = t2;
|
|
293
|
+
} else {
|
|
294
|
+
t2 = $[6];
|
|
295
|
+
}
|
|
296
|
+
return useQuery(t2);
|
|
120
297
|
};
|
|
121
298
|
const useGetPeopleSoftEmployeeGeneralManager = (employeeId, options) => {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
299
|
+
const $ = compilerRuntimeExports.c(7);
|
|
300
|
+
let t0;
|
|
301
|
+
let t1;
|
|
302
|
+
if ($[0] !== employeeId) {
|
|
303
|
+
t0 = [QUERY_KEY, "employee", employeeId, "generalManager"];
|
|
304
|
+
t1 = (t22) => {
|
|
305
|
+
const {
|
|
306
|
+
signal
|
|
307
|
+
} = t22;
|
|
308
|
+
return httpClient.request({
|
|
309
|
+
url: `/${QUERY_KEY}/v1/employee/${employeeId}/generalManager`,
|
|
310
|
+
method: "GET",
|
|
311
|
+
signal
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
$[0] = employeeId;
|
|
315
|
+
$[1] = t0;
|
|
316
|
+
$[2] = t1;
|
|
317
|
+
} else {
|
|
318
|
+
t0 = $[1];
|
|
319
|
+
t1 = $[2];
|
|
320
|
+
}
|
|
321
|
+
let t2;
|
|
322
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
323
|
+
t2 = {
|
|
324
|
+
...options,
|
|
325
|
+
queryKey: t0,
|
|
326
|
+
queryFn: t1,
|
|
327
|
+
staleTime: DAY,
|
|
328
|
+
gcTime: DAY,
|
|
329
|
+
refetchOnWindowFocus: false
|
|
330
|
+
};
|
|
331
|
+
$[3] = options;
|
|
332
|
+
$[4] = t0;
|
|
333
|
+
$[5] = t1;
|
|
334
|
+
$[6] = t2;
|
|
335
|
+
} else {
|
|
336
|
+
t2 = $[6];
|
|
337
|
+
}
|
|
338
|
+
return useQuery(t2);
|
|
134
339
|
};
|
|
135
340
|
const useGetPeopleSoftDepartments = (options) => {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
341
|
+
const $ = compilerRuntimeExports.c(3);
|
|
342
|
+
let t0;
|
|
343
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
344
|
+
t0 = [QUERY_KEY, "department"];
|
|
345
|
+
$[0] = t0;
|
|
346
|
+
} else {
|
|
347
|
+
t0 = $[0];
|
|
348
|
+
}
|
|
349
|
+
let t1;
|
|
350
|
+
if ($[1] !== options) {
|
|
351
|
+
t1 = {
|
|
352
|
+
...options,
|
|
353
|
+
queryKey: t0,
|
|
354
|
+
queryFn: _temp4$1,
|
|
355
|
+
staleTime: DAY,
|
|
356
|
+
gcTime: DAY,
|
|
357
|
+
refetchOnWindowFocus: false
|
|
358
|
+
};
|
|
359
|
+
$[1] = options;
|
|
360
|
+
$[2] = t1;
|
|
361
|
+
} else {
|
|
362
|
+
t1 = $[2];
|
|
363
|
+
}
|
|
364
|
+
return useQuery(t1);
|
|
148
365
|
};
|
|
149
366
|
const useGetPeopleSoftDepartmentById = (departmentId, options) => {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
367
|
+
const $ = compilerRuntimeExports.c(7);
|
|
368
|
+
let t0;
|
|
369
|
+
let t1;
|
|
370
|
+
if ($[0] !== departmentId) {
|
|
371
|
+
t0 = [QUERY_KEY, "department", departmentId];
|
|
372
|
+
t1 = (t22) => {
|
|
373
|
+
const {
|
|
374
|
+
signal
|
|
375
|
+
} = t22;
|
|
376
|
+
return httpClient.request({
|
|
377
|
+
url: `/${QUERY_KEY}/v1/department/${departmentId}`,
|
|
378
|
+
method: "GET",
|
|
379
|
+
signal
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
$[0] = departmentId;
|
|
383
|
+
$[1] = t0;
|
|
384
|
+
$[2] = t1;
|
|
385
|
+
} else {
|
|
386
|
+
t0 = $[1];
|
|
387
|
+
t1 = $[2];
|
|
388
|
+
}
|
|
389
|
+
let t2;
|
|
390
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
391
|
+
t2 = {
|
|
392
|
+
...options,
|
|
393
|
+
queryKey: t0,
|
|
394
|
+
queryFn: t1,
|
|
395
|
+
staleTime: DAY,
|
|
396
|
+
gcTime: DAY,
|
|
397
|
+
refetchOnWindowFocus: false
|
|
398
|
+
};
|
|
399
|
+
$[3] = options;
|
|
400
|
+
$[4] = t0;
|
|
401
|
+
$[5] = t1;
|
|
402
|
+
$[6] = t2;
|
|
403
|
+
} else {
|
|
404
|
+
t2 = $[6];
|
|
405
|
+
}
|
|
406
|
+
return useQuery(t2);
|
|
162
407
|
};
|
|
163
408
|
const useGetPeopleSoftDepartmentManager = (departmentId, options) => {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
409
|
+
const $ = compilerRuntimeExports.c(7);
|
|
410
|
+
let t0;
|
|
411
|
+
let t1;
|
|
412
|
+
if ($[0] !== departmentId) {
|
|
413
|
+
t0 = [QUERY_KEY, "department", departmentId, "manager"];
|
|
414
|
+
t1 = (t22) => {
|
|
415
|
+
const {
|
|
416
|
+
signal
|
|
417
|
+
} = t22;
|
|
418
|
+
return httpClient.request({
|
|
419
|
+
url: `/${QUERY_KEY}/v1/department/${departmentId}/manager`,
|
|
420
|
+
method: "GET",
|
|
421
|
+
signal
|
|
422
|
+
});
|
|
423
|
+
};
|
|
424
|
+
$[0] = departmentId;
|
|
425
|
+
$[1] = t0;
|
|
426
|
+
$[2] = t1;
|
|
427
|
+
} else {
|
|
428
|
+
t0 = $[1];
|
|
429
|
+
t1 = $[2];
|
|
430
|
+
}
|
|
431
|
+
let t2;
|
|
432
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
433
|
+
t2 = {
|
|
434
|
+
...options,
|
|
435
|
+
queryKey: t0,
|
|
436
|
+
queryFn: t1,
|
|
437
|
+
staleTime: DAY,
|
|
438
|
+
gcTime: DAY,
|
|
439
|
+
refetchOnWindowFocus: false
|
|
440
|
+
};
|
|
441
|
+
$[3] = options;
|
|
442
|
+
$[4] = t0;
|
|
443
|
+
$[5] = t1;
|
|
444
|
+
$[6] = t2;
|
|
445
|
+
} else {
|
|
446
|
+
t2 = $[6];
|
|
447
|
+
}
|
|
448
|
+
return useQuery(t2);
|
|
176
449
|
};
|
|
177
450
|
const useGetPeopleSoftDepartmentEmployees = (departmentId, options) => {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
451
|
+
const $ = compilerRuntimeExports.c(7);
|
|
452
|
+
let t0;
|
|
453
|
+
let t1;
|
|
454
|
+
if ($[0] !== departmentId) {
|
|
455
|
+
t0 = [QUERY_KEY, "department", departmentId, "employees"];
|
|
456
|
+
t1 = (t22) => {
|
|
457
|
+
const {
|
|
458
|
+
signal
|
|
459
|
+
} = t22;
|
|
460
|
+
return httpClient.request({
|
|
461
|
+
url: `/${QUERY_KEY}/v1/department/${departmentId}/employees`,
|
|
462
|
+
method: "GET",
|
|
463
|
+
signal
|
|
464
|
+
});
|
|
465
|
+
};
|
|
466
|
+
$[0] = departmentId;
|
|
467
|
+
$[1] = t0;
|
|
468
|
+
$[2] = t1;
|
|
469
|
+
} else {
|
|
470
|
+
t0 = $[1];
|
|
471
|
+
t1 = $[2];
|
|
472
|
+
}
|
|
473
|
+
let t2;
|
|
474
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
475
|
+
t2 = {
|
|
476
|
+
...options,
|
|
477
|
+
queryKey: t0,
|
|
478
|
+
queryFn: t1,
|
|
479
|
+
staleTime: DAY,
|
|
480
|
+
gcTime: DAY,
|
|
481
|
+
refetchOnWindowFocus: false
|
|
482
|
+
};
|
|
483
|
+
$[3] = options;
|
|
484
|
+
$[4] = t0;
|
|
485
|
+
$[5] = t1;
|
|
486
|
+
$[6] = t2;
|
|
487
|
+
} else {
|
|
488
|
+
t2 = $[6];
|
|
489
|
+
}
|
|
490
|
+
return useQuery(t2);
|
|
190
491
|
};
|
|
191
492
|
const useGetPeopleSoftCompanyGeneralManager = (companyCode, options) => {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
493
|
+
const $ = compilerRuntimeExports.c(7);
|
|
494
|
+
let t0;
|
|
495
|
+
let t1;
|
|
496
|
+
if ($[0] !== companyCode) {
|
|
497
|
+
t0 = [QUERY_KEY, "company", companyCode, "generalManager"];
|
|
498
|
+
t1 = (t22) => {
|
|
499
|
+
const {
|
|
500
|
+
signal
|
|
501
|
+
} = t22;
|
|
502
|
+
return httpClient.request({
|
|
503
|
+
url: `/${QUERY_KEY}/v1/company/${companyCode}/generalManager`,
|
|
504
|
+
method: "GET",
|
|
505
|
+
signal
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
$[0] = companyCode;
|
|
509
|
+
$[1] = t0;
|
|
510
|
+
$[2] = t1;
|
|
511
|
+
} else {
|
|
512
|
+
t0 = $[1];
|
|
513
|
+
t1 = $[2];
|
|
514
|
+
}
|
|
515
|
+
let t2;
|
|
516
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
517
|
+
t2 = {
|
|
518
|
+
...options,
|
|
519
|
+
queryKey: t0,
|
|
520
|
+
queryFn: t1,
|
|
521
|
+
staleTime: DAY,
|
|
522
|
+
gcTime: DAY,
|
|
523
|
+
refetchOnWindowFocus: false
|
|
524
|
+
};
|
|
525
|
+
$[3] = options;
|
|
526
|
+
$[4] = t0;
|
|
527
|
+
$[5] = t1;
|
|
528
|
+
$[6] = t2;
|
|
529
|
+
} else {
|
|
530
|
+
t2 = $[6];
|
|
531
|
+
}
|
|
532
|
+
return useQuery(t2);
|
|
204
533
|
};
|
|
534
|
+
function _temp$1(t0) {
|
|
535
|
+
const {
|
|
536
|
+
signal
|
|
537
|
+
} = t0;
|
|
538
|
+
return httpClient.request({
|
|
539
|
+
url: `/${QUERY_KEY}/v1/employee/all`,
|
|
540
|
+
method: "GET",
|
|
541
|
+
signal
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function _temp2$1(t0) {
|
|
545
|
+
const {
|
|
546
|
+
signal
|
|
547
|
+
} = t0;
|
|
548
|
+
return httpClient.request({
|
|
549
|
+
url: `/${QUERY_KEY}/v1/employee/active`,
|
|
550
|
+
method: "GET",
|
|
551
|
+
signal
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
function _temp3$1(t0) {
|
|
555
|
+
const {
|
|
556
|
+
signal
|
|
557
|
+
} = t0;
|
|
558
|
+
return httpClient.request({
|
|
559
|
+
url: `/${QUERY_KEY}/v1/employee/previousIds`,
|
|
560
|
+
method: "GET",
|
|
561
|
+
signal
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function _temp4$1(t0) {
|
|
565
|
+
const {
|
|
566
|
+
signal
|
|
567
|
+
} = t0;
|
|
568
|
+
return httpClient.request({
|
|
569
|
+
url: `/${QUERY_KEY}/v1/department/all`,
|
|
570
|
+
method: "GET",
|
|
571
|
+
signal
|
|
572
|
+
});
|
|
573
|
+
}
|
|
205
574
|
const ROUTE = "approval";
|
|
206
575
|
const APP_NAME = toKebabCase(clientEnv.VITE_APP_TITLE);
|
|
207
576
|
z__default.object({
|
|
@@ -276,56 +645,236 @@ const approveApproval = createIsomorphicFn().server(approveApprovalBase).client(
|
|
|
276
645
|
const resubmitApproval = createIsomorphicFn().server(resubmitApprovalBase).client(resubmitApprovalBase);
|
|
277
646
|
const withdrawApproval = createIsomorphicFn().server(withdrawApprovalBase).client(withdrawApprovalBase);
|
|
278
647
|
const cancelApproval = createIsomorphicFn().server(cancelApprovalBase).client(cancelApprovalBase);
|
|
279
|
-
const useGetApprovals = (params, options) =>
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
648
|
+
const useGetApprovals = (params, options) => {
|
|
649
|
+
const $ = compilerRuntimeExports.c(7);
|
|
650
|
+
let t0;
|
|
651
|
+
let t1;
|
|
652
|
+
if ($[0] !== params) {
|
|
653
|
+
t0 = [ROUTE, params];
|
|
654
|
+
t1 = (t22) => {
|
|
655
|
+
const {
|
|
656
|
+
signal
|
|
657
|
+
} = t22;
|
|
658
|
+
return getApprovals(params, signal);
|
|
659
|
+
};
|
|
660
|
+
$[0] = params;
|
|
661
|
+
$[1] = t0;
|
|
662
|
+
$[2] = t1;
|
|
663
|
+
} else {
|
|
664
|
+
t0 = $[1];
|
|
665
|
+
t1 = $[2];
|
|
666
|
+
}
|
|
667
|
+
let t2;
|
|
668
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
669
|
+
t2 = {
|
|
670
|
+
...options,
|
|
671
|
+
queryKey: t0,
|
|
672
|
+
queryFn: t1
|
|
673
|
+
};
|
|
674
|
+
$[3] = options;
|
|
675
|
+
$[4] = t0;
|
|
676
|
+
$[5] = t1;
|
|
677
|
+
$[6] = t2;
|
|
678
|
+
} else {
|
|
679
|
+
t2 = $[6];
|
|
680
|
+
}
|
|
681
|
+
return useQuery(t2);
|
|
682
|
+
};
|
|
683
|
+
const useGetApproval = (id, options) => {
|
|
684
|
+
const $ = compilerRuntimeExports.c(7);
|
|
685
|
+
let t0;
|
|
686
|
+
let t1;
|
|
687
|
+
if ($[0] !== id) {
|
|
688
|
+
t0 = [ROUTE, id];
|
|
689
|
+
t1 = (t22) => {
|
|
690
|
+
const {
|
|
691
|
+
signal
|
|
692
|
+
} = t22;
|
|
693
|
+
return getApproval(id, signal);
|
|
694
|
+
};
|
|
695
|
+
$[0] = id;
|
|
696
|
+
$[1] = t0;
|
|
697
|
+
$[2] = t1;
|
|
698
|
+
} else {
|
|
699
|
+
t0 = $[1];
|
|
700
|
+
t1 = $[2];
|
|
701
|
+
}
|
|
702
|
+
let t2;
|
|
703
|
+
if ($[3] !== options || $[4] !== t0 || $[5] !== t1) {
|
|
704
|
+
t2 = {
|
|
705
|
+
...options,
|
|
706
|
+
queryKey: t0,
|
|
707
|
+
queryFn: t1
|
|
708
|
+
};
|
|
709
|
+
$[3] = options;
|
|
710
|
+
$[4] = t0;
|
|
711
|
+
$[5] = t1;
|
|
712
|
+
$[6] = t2;
|
|
713
|
+
} else {
|
|
714
|
+
t2 = $[6];
|
|
715
|
+
}
|
|
716
|
+
return useQuery(t2);
|
|
717
|
+
};
|
|
289
718
|
const useCreateApproval = (options) => {
|
|
719
|
+
const $ = compilerRuntimeExports.c(5);
|
|
290
720
|
const queryClient = useQueryClient();
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
721
|
+
let t0;
|
|
722
|
+
if ($[0] !== queryClient) {
|
|
723
|
+
t0 = () => queryClient.invalidateQueries({
|
|
724
|
+
queryKey: [ROUTE],
|
|
725
|
+
exact: false
|
|
726
|
+
});
|
|
727
|
+
$[0] = queryClient;
|
|
728
|
+
$[1] = t0;
|
|
729
|
+
} else {
|
|
730
|
+
t0 = $[1];
|
|
731
|
+
}
|
|
732
|
+
let t1;
|
|
733
|
+
if ($[2] !== options || $[3] !== t0) {
|
|
734
|
+
t1 = {
|
|
735
|
+
...options,
|
|
736
|
+
mutationFn: _temp,
|
|
737
|
+
onSettled: t0
|
|
738
|
+
};
|
|
739
|
+
$[2] = options;
|
|
740
|
+
$[3] = t0;
|
|
741
|
+
$[4] = t1;
|
|
742
|
+
} else {
|
|
743
|
+
t1 = $[4];
|
|
744
|
+
}
|
|
745
|
+
return useMutation(t1);
|
|
296
746
|
};
|
|
297
747
|
const useApproveApproval = (options) => {
|
|
748
|
+
const $ = compilerRuntimeExports.c(5);
|
|
298
749
|
const queryClient = useQueryClient();
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
750
|
+
let t0;
|
|
751
|
+
if ($[0] !== queryClient) {
|
|
752
|
+
t0 = () => queryClient.invalidateQueries({
|
|
753
|
+
queryKey: [ROUTE],
|
|
754
|
+
exact: false
|
|
755
|
+
});
|
|
756
|
+
$[0] = queryClient;
|
|
757
|
+
$[1] = t0;
|
|
758
|
+
} else {
|
|
759
|
+
t0 = $[1];
|
|
760
|
+
}
|
|
761
|
+
let t1;
|
|
762
|
+
if ($[2] !== options || $[3] !== t0) {
|
|
763
|
+
t1 = {
|
|
764
|
+
...options,
|
|
765
|
+
mutationFn: _temp2,
|
|
766
|
+
onSettled: t0
|
|
767
|
+
};
|
|
768
|
+
$[2] = options;
|
|
769
|
+
$[3] = t0;
|
|
770
|
+
$[4] = t1;
|
|
771
|
+
} else {
|
|
772
|
+
t1 = $[4];
|
|
773
|
+
}
|
|
774
|
+
return useMutation(t1);
|
|
304
775
|
};
|
|
305
776
|
const useResubmitApproval = (options) => {
|
|
777
|
+
const $ = compilerRuntimeExports.c(5);
|
|
306
778
|
const queryClient = useQueryClient();
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
779
|
+
let t0;
|
|
780
|
+
if ($[0] !== queryClient) {
|
|
781
|
+
t0 = () => queryClient.invalidateQueries({
|
|
782
|
+
queryKey: [ROUTE],
|
|
783
|
+
exact: false
|
|
784
|
+
});
|
|
785
|
+
$[0] = queryClient;
|
|
786
|
+
$[1] = t0;
|
|
787
|
+
} else {
|
|
788
|
+
t0 = $[1];
|
|
789
|
+
}
|
|
790
|
+
let t1;
|
|
791
|
+
if ($[2] !== options || $[3] !== t0) {
|
|
792
|
+
t1 = {
|
|
793
|
+
...options,
|
|
794
|
+
mutationFn: _temp3,
|
|
795
|
+
onSettled: t0
|
|
796
|
+
};
|
|
797
|
+
$[2] = options;
|
|
798
|
+
$[3] = t0;
|
|
799
|
+
$[4] = t1;
|
|
800
|
+
} else {
|
|
801
|
+
t1 = $[4];
|
|
802
|
+
}
|
|
803
|
+
return useMutation(t1);
|
|
312
804
|
};
|
|
313
805
|
const useWithdrawApproval = (options) => {
|
|
806
|
+
const $ = compilerRuntimeExports.c(5);
|
|
314
807
|
const queryClient = useQueryClient();
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
808
|
+
let t0;
|
|
809
|
+
if ($[0] !== queryClient) {
|
|
810
|
+
t0 = () => queryClient.invalidateQueries({
|
|
811
|
+
queryKey: [ROUTE],
|
|
812
|
+
exact: false
|
|
813
|
+
});
|
|
814
|
+
$[0] = queryClient;
|
|
815
|
+
$[1] = t0;
|
|
816
|
+
} else {
|
|
817
|
+
t0 = $[1];
|
|
818
|
+
}
|
|
819
|
+
let t1;
|
|
820
|
+
if ($[2] !== options || $[3] !== t0) {
|
|
821
|
+
t1 = {
|
|
822
|
+
...options,
|
|
823
|
+
mutationFn: _temp4,
|
|
824
|
+
onSettled: t0
|
|
825
|
+
};
|
|
826
|
+
$[2] = options;
|
|
827
|
+
$[3] = t0;
|
|
828
|
+
$[4] = t1;
|
|
829
|
+
} else {
|
|
830
|
+
t1 = $[4];
|
|
831
|
+
}
|
|
832
|
+
return useMutation(t1);
|
|
320
833
|
};
|
|
321
834
|
const useCancelApproval = (options) => {
|
|
835
|
+
const $ = compilerRuntimeExports.c(5);
|
|
322
836
|
const queryClient = useQueryClient();
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
837
|
+
let t0;
|
|
838
|
+
if ($[0] !== queryClient) {
|
|
839
|
+
t0 = () => queryClient.invalidateQueries({
|
|
840
|
+
queryKey: [ROUTE],
|
|
841
|
+
exact: false
|
|
842
|
+
});
|
|
843
|
+
$[0] = queryClient;
|
|
844
|
+
$[1] = t0;
|
|
845
|
+
} else {
|
|
846
|
+
t0 = $[1];
|
|
847
|
+
}
|
|
848
|
+
let t1;
|
|
849
|
+
if ($[2] !== options || $[3] !== t0) {
|
|
850
|
+
t1 = {
|
|
851
|
+
...options,
|
|
852
|
+
mutationFn: _temp5,
|
|
853
|
+
onSettled: t0
|
|
854
|
+
};
|
|
855
|
+
$[2] = options;
|
|
856
|
+
$[3] = t0;
|
|
857
|
+
$[4] = t1;
|
|
858
|
+
} else {
|
|
859
|
+
t1 = $[4];
|
|
860
|
+
}
|
|
861
|
+
return useMutation(t1);
|
|
328
862
|
};
|
|
863
|
+
function _temp(data) {
|
|
864
|
+
return createApproval(data);
|
|
865
|
+
}
|
|
866
|
+
function _temp2(data) {
|
|
867
|
+
return approveApproval(data);
|
|
868
|
+
}
|
|
869
|
+
function _temp3(data) {
|
|
870
|
+
return resubmitApproval(data);
|
|
871
|
+
}
|
|
872
|
+
function _temp4(data) {
|
|
873
|
+
return withdrawApproval(data);
|
|
874
|
+
}
|
|
875
|
+
function _temp5(data) {
|
|
876
|
+
return cancelApproval(data);
|
|
877
|
+
}
|
|
329
878
|
export {
|
|
330
879
|
approveApproval,
|
|
331
880
|
cancelApproval,
|