wcz-layout 8.3.1 → 8.3.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/{Approval-Cx-EUX2I.js → Approval-BTJTexDo.js} +1 -1
- package/dist/{Approval-Cx-EUX2I.js.map → Approval-BTJTexDo.js.map} +1 -1
- package/dist/{DialogsContext-DkePghS6.js → DialogsContext-DLqA8RJ_.js} +1 -1
- package/dist/{DialogsContext-DkePghS6.js.map → DialogsContext-DLqA8RJ_.js.map} +1 -1
- package/dist/{Email-CCL5C-C0.js → Email-C9qwj7GD.js} +1 -1
- package/dist/{Email-CCL5C-C0.js.map → Email-C9qwj7GD.js.map} +1 -1
- package/dist/{FileMeta-DCFvkQQC.js → FileMeta-DDqUju1Y.js} +1 -1
- package/dist/{FileMeta-DCFvkQQC.js.map → FileMeta-DDqUju1Y.js.map} +1 -1
- package/dist/{FileMeta-DrEMs4Gq.d.ts → FileMeta-ILLTOjaM.d.ts} +1 -1
- package/dist/{NotificationContext-FQRaNZRx.js → NotificationContext-CgwUOeW0.js} +1 -1
- package/dist/{NotificationContext-FQRaNZRx.js.map → NotificationContext-CgwUOeW0.js.map} +1 -1
- package/dist/{RouterListItemButton-p9U4Z0SW.js → RouterListItemButton-owZVvuC_.js} +1 -1
- package/dist/{RouterListItemButton-p9U4Z0SW.js.map → RouterListItemButton-owZVvuC_.js.map} +1 -1
- package/dist/{User-DVU1zqml.d.ts → User-CT_IDGuG.d.ts} +1 -1
- package/dist/{apiMiddleware-CwCEvg3r.js → apiMiddleware-CtY4rOFU.js} +2 -2
- package/dist/{apiMiddleware-CwCEvg3r.js.map → apiMiddleware-CtY4rOFU.js.map} +1 -1
- package/dist/components.d.ts +4 -5
- package/dist/components.js +3 -3
- package/dist/components.js.map +1 -1
- package/dist/data/client.d.ts +49 -51
- package/dist/data/client.js +3 -3
- package/dist/data/client.js.map +1 -1
- package/dist/data/server.d.ts +14 -18
- package/dist/data/server.js +4 -4
- package/dist/data/server.js.map +1 -1
- package/dist/data.js +1 -1
- package/dist/{env-Dgbk8SQN.js → env-ON-cyE3N.js} +1 -1
- package/dist/{env-Dgbk8SQN.js.map → env-ON-cyE3N.js.map} +1 -1
- package/dist/{file-Dv1BsCsM.js → file-BUdLb7H1.js} +5 -5
- package/dist/{file-Dv1BsCsM.js.map → file-BUdLb7H1.js.map} +1 -1
- package/dist/{file-DcIx8gtK.js → file-Dsht7yOP.js} +3 -3
- package/dist/{file-DcIx8gtK.js.map → file-Dsht7yOP.js.map} +1 -1
- package/dist/hooks.d.ts +48 -51
- package/dist/hooks.js +3 -3
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +120 -97
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +9 -11
- package/dist/middleware.js +3 -3
- package/dist/middleware.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/models.js +3 -3
- package/dist/models.js.map +1 -1
- package/dist/{msalClient-C2LlaBzj.d.ts → msalClient-CYiQAFnY.d.ts} +3 -4
- package/dist/{msalServer-B3AztUoH.js → msalServer-B9sVqpQ2.js} +2 -2
- package/dist/{msalServer-B3AztUoH.js.map → msalServer-B9sVqpQ2.js.map} +1 -1
- package/dist/{peoplesoft--FioEbzn.js → peoplesoft-BCjRje6b.js} +3 -3
- package/dist/{peoplesoft--FioEbzn.js.map → peoplesoft-BCjRje6b.js.map} +1 -1
- package/dist/{peoplesoft-BG_AV3zS.d.ts → peoplesoft-Cze2ngGd.d.ts} +58 -60
- package/dist/{queryClient-1OJ5Va3i.js → queryClient-D64McLhZ.js} +1 -1
- package/dist/{queryClient-1OJ5Va3i.js.map → queryClient-D64McLhZ.js.map} +1 -1
- package/dist/{useDialogs-imgl4bIl.js → useDialogs-BJVhBr8S.js} +2 -2
- package/dist/useDialogs-BJVhBr8S.js.map +1 -0
- package/dist/{utils-B7LPctqx.js → utils-BMUmv2ws.js} +3 -2
- package/dist/{utils-B7LPctqx.js.map → utils-BMUmv2ws.js.map} +1 -1
- package/dist/{utils-DgrP27XP.d.ts → utils-CvvyM8Xw.d.ts} +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +2 -2
- package/dist/vite.js +1 -1
- package/dist/vite.js.map +1 -1
- package/package.json +5 -5
- package/skills/services/SKILL.md +2 -1
- package/skills/start/SKILL.md +12 -13
- package/dist/useDialogs-imgl4bIl.js.map +0 -1
- package/skills/start/steps/02-dependency-check.md +0 -11
- /package/skills/start/steps/{03-project-name-setup.md → 02-project-name-setup.md} +0 -0
- /package/skills/start/steps/{04-apm-setup.md → 03-apm-setup.md} +0 -0
- /package/skills/start/steps/{05-database-setup.md → 04-database-setup.md} +0 -0
- /package/skills/start/steps/{06-entra-setup.md → 05-entra-setup.md} +0 -0
- /package/skills/start/steps/{07-vault-setup.md → 06-vault-setup.md} +0 -0
- /package/skills/start/steps/{08-generate-favicon.md → 07-generate-favicon.md} +0 -0
- /package/skills/start/steps/{09-commit.md → 08-commit.md} +0 -0
package/dist/data/client.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { B as uploadFile, O as FileSchema, b as GetApprovalsSchema, i as SearchEmployeesSchema, j as UploadFileMetaSchema, k as GetFileMetasSchema, n as DepartmentIdSchema, r as EmployeeIdSchema, t as CompanyCodeSchema, y as GetApprovalSchema } from "../peoplesoft-
|
|
1
|
+
import { B as uploadFile, O as FileSchema, b as GetApprovalsSchema, i as SearchEmployeesSchema, j as UploadFileMetaSchema, k as GetFileMetasSchema, n as DepartmentIdSchema, r as EmployeeIdSchema, t as CompanyCodeSchema, y as GetApprovalSchema } from "../peoplesoft-Cze2ngGd.js";
|
|
2
2
|
import z$1, { z } from "zod";
|
|
3
|
-
import * as _$_tanstack_react_query0 from "@tanstack/react-query";
|
|
4
|
-
import * as _$_tanstack_query_core0 from "@tanstack/query-core";
|
|
5
3
|
|
|
6
4
|
//#region src/data/client/file.d.ts
|
|
7
|
-
declare const fileMetasQueryOptions: (params: z.input<typeof GetFileMetasSchema>) =>
|
|
5
|
+
declare const fileMetasQueryOptions: (params: z.input<typeof GetFileMetasSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
8
6
|
id: string;
|
|
9
7
|
subId: string;
|
|
10
8
|
appName: string;
|
|
@@ -29,7 +27,7 @@ declare const fileMetasQueryOptions: (params: z.input<typeof GetFileMetasSchema>
|
|
|
29
27
|
createdBy: string;
|
|
30
28
|
createdDate: Date;
|
|
31
29
|
}[], string[]>, "queryFn"> & {
|
|
32
|
-
queryFn?:
|
|
30
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
33
31
|
id: string;
|
|
34
32
|
subId: string;
|
|
35
33
|
appName: string;
|
|
@@ -60,34 +58,34 @@ declare const fileMetasQueryOptions: (params: z.input<typeof GetFileMetasSchema>
|
|
|
60
58
|
[dataTagErrorSymbol]: Error;
|
|
61
59
|
};
|
|
62
60
|
};
|
|
63
|
-
declare const fileThumbnailQueryOptions: (params: z.input<typeof FileSchema>) =>
|
|
64
|
-
queryFn?:
|
|
61
|
+
declare const fileThumbnailQueryOptions: (params: z.input<typeof FileSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<string, Error, string, string[]>, "queryFn"> & {
|
|
62
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<string, string[], never> | undefined;
|
|
65
63
|
} & {
|
|
66
64
|
queryKey: string[] & {
|
|
67
65
|
[dataTagSymbol]: string;
|
|
68
66
|
[dataTagErrorSymbol]: Error;
|
|
69
67
|
};
|
|
70
68
|
};
|
|
71
|
-
declare const fileQueryOptions: (params: z.input<typeof FileSchema>) =>
|
|
72
|
-
queryFn?:
|
|
69
|
+
declare const fileQueryOptions: (params: z.input<typeof FileSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<string, Error, string, string[]>, "queryFn"> & {
|
|
70
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<string, string[], never> | undefined;
|
|
73
71
|
} & {
|
|
74
72
|
queryKey: string[] & {
|
|
75
73
|
[dataTagSymbol]: string;
|
|
76
74
|
[dataTagErrorSymbol]: Error;
|
|
77
75
|
};
|
|
78
76
|
};
|
|
79
|
-
declare const downloadFileMutationOptions: () => Omit<
|
|
77
|
+
declare const downloadFileMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
80
78
|
appName: string;
|
|
81
79
|
id: string;
|
|
82
80
|
} & {
|
|
83
81
|
fileName: string;
|
|
84
82
|
fileExtension: string;
|
|
85
83
|
}, unknown>, "mutationKey">;
|
|
86
|
-
declare const openFileMutationOptions: () => Omit<
|
|
84
|
+
declare const openFileMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
87
85
|
appName: string;
|
|
88
86
|
id: string;
|
|
89
87
|
}, unknown>, "mutationKey">;
|
|
90
|
-
declare const updateFileMetaMutationOptions: () => Omit<
|
|
88
|
+
declare const updateFileMetaMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
91
89
|
id: string;
|
|
92
90
|
subId: string;
|
|
93
91
|
appName: string;
|
|
@@ -100,11 +98,11 @@ declare const updateFileMetaMutationOptions: () => Omit<_$_tanstack_react_query0
|
|
|
100
98
|
createdDate: Date;
|
|
101
99
|
fileName: string;
|
|
102
100
|
}, unknown>, "mutationKey">;
|
|
103
|
-
declare const deleteFileMutationOptions: () => Omit<
|
|
101
|
+
declare const deleteFileMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
104
102
|
appName: string;
|
|
105
103
|
id: string;
|
|
106
104
|
}, unknown>, "mutationKey">;
|
|
107
|
-
declare const batchDeleteFilesMutationOptions: () => Omit<
|
|
105
|
+
declare const batchDeleteFilesMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
108
106
|
appName: string;
|
|
109
107
|
subId: string;
|
|
110
108
|
}, unknown>, "mutationKey">;
|
|
@@ -120,7 +118,7 @@ declare const useUploadFile: ({
|
|
|
120
118
|
};
|
|
121
119
|
//#endregion
|
|
122
120
|
//#region src/data/client/approval.d.ts
|
|
123
|
-
declare const approvalsQueryOptions: (params: z.input<typeof GetApprovalsSchema>) =>
|
|
121
|
+
declare const approvalsQueryOptions: (params: z.input<typeof GetApprovalsSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
124
122
|
id: string;
|
|
125
123
|
applicationName: string;
|
|
126
124
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -246,7 +244,7 @@ declare const approvalsQueryOptions: (params: z.input<typeof GetApprovalsSchema>
|
|
|
246
244
|
approverEmployeeId?: string | undefined;
|
|
247
245
|
stepResult?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
|
|
248
246
|
})[]>, "queryFn"> & {
|
|
249
|
-
queryFn?:
|
|
247
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
250
248
|
id: string;
|
|
251
249
|
applicationName: string;
|
|
252
250
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -383,7 +381,7 @@ declare const approvalsQueryOptions: (params: z.input<typeof GetApprovalsSchema>
|
|
|
383
381
|
[dataTagErrorSymbol]: Error;
|
|
384
382
|
};
|
|
385
383
|
};
|
|
386
|
-
declare const approvalQueryOptions: (params: z.input<typeof GetApprovalSchema>) =>
|
|
384
|
+
declare const approvalQueryOptions: (params: z.input<typeof GetApprovalSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
387
385
|
id: string;
|
|
388
386
|
applicationName: string;
|
|
389
387
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -506,7 +504,7 @@ declare const approvalQueryOptions: (params: z.input<typeof GetApprovalSchema>)
|
|
|
506
504
|
}, (string | {
|
|
507
505
|
id: string;
|
|
508
506
|
})[]>, "queryFn"> & {
|
|
509
|
-
queryFn?:
|
|
507
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
510
508
|
id: string;
|
|
511
509
|
applicationName: string;
|
|
512
510
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -637,7 +635,7 @@ declare const approvalQueryOptions: (params: z.input<typeof GetApprovalSchema>)
|
|
|
637
635
|
[dataTagErrorSymbol]: Error;
|
|
638
636
|
};
|
|
639
637
|
};
|
|
640
|
-
declare const createApprovalMutationOptions: () => Omit<
|
|
638
|
+
declare const createApprovalMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<{
|
|
641
639
|
id: string;
|
|
642
640
|
applicationName: string;
|
|
643
641
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -726,7 +724,7 @@ declare const createApprovalMutationOptions: () => Omit<_$_tanstack_react_query0
|
|
|
726
724
|
email?: string | undefined;
|
|
727
725
|
})[] | undefined;
|
|
728
726
|
}, unknown>, "mutationKey">;
|
|
729
|
-
declare const approveApprovalMutationOptions: () => Omit<
|
|
727
|
+
declare const approveApprovalMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<{
|
|
730
728
|
id: string;
|
|
731
729
|
applicationName: string;
|
|
732
730
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -792,7 +790,7 @@ declare const approveApprovalMutationOptions: () => Omit<_$_tanstack_react_query
|
|
|
792
790
|
emailBody: string;
|
|
793
791
|
resultComment?: string | undefined;
|
|
794
792
|
}, unknown>, "mutationKey">;
|
|
795
|
-
declare const resubmitApprovalMutationOptions: () => Omit<
|
|
793
|
+
declare const resubmitApprovalMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<{
|
|
796
794
|
id: string;
|
|
797
795
|
applicationName: string;
|
|
798
796
|
status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
|
|
@@ -868,19 +866,19 @@ declare const resubmitApprovalMutationOptions: () => Omit<_$_tanstack_react_quer
|
|
|
868
866
|
batchSequence?: number | undefined;
|
|
869
867
|
}[];
|
|
870
868
|
}, unknown>, "mutationKey">;
|
|
871
|
-
declare const withdrawApprovalMutationOptions: () => Omit<
|
|
869
|
+
declare const withdrawApprovalMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
872
870
|
id: string;
|
|
873
871
|
comment: string;
|
|
874
872
|
emailBody: string;
|
|
875
873
|
}, unknown>, "mutationKey">;
|
|
876
|
-
declare const cancelApprovalMutationOptions: () => Omit<
|
|
874
|
+
declare const cancelApprovalMutationOptions: () => Omit<import("@tanstack/react-query").UseMutationOptions<void, Error, {
|
|
877
875
|
id: string;
|
|
878
876
|
comment: string;
|
|
879
877
|
emailBody: string;
|
|
880
878
|
}, unknown>, "mutationKey">;
|
|
881
879
|
//#endregion
|
|
882
880
|
//#region src/data/client/peoplesoft.d.ts
|
|
883
|
-
declare const employeesSearchQueryOptions: (params: z$1.infer<typeof SearchEmployeesSchema>) =>
|
|
881
|
+
declare const employeesSearchQueryOptions: (params: z$1.infer<typeof SearchEmployeesSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
884
882
|
badgeId: string;
|
|
885
883
|
category: string;
|
|
886
884
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -953,7 +951,7 @@ declare const employeesSearchQueryOptions: (params: z$1.infer<typeof SearchEmplo
|
|
|
953
951
|
}[], (string | {
|
|
954
952
|
searchTerm: string;
|
|
955
953
|
})[]>, "queryFn"> & {
|
|
956
|
-
queryFn?:
|
|
954
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
957
955
|
badgeId: string;
|
|
958
956
|
category: string;
|
|
959
957
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1034,7 +1032,7 @@ declare const employeesSearchQueryOptions: (params: z$1.infer<typeof SearchEmplo
|
|
|
1034
1032
|
[dataTagErrorSymbol]: Error;
|
|
1035
1033
|
};
|
|
1036
1034
|
};
|
|
1037
|
-
declare const employeesQueryOptions: () =>
|
|
1035
|
+
declare const employeesQueryOptions: () => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1038
1036
|
badgeId: string;
|
|
1039
1037
|
category: string;
|
|
1040
1038
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1105,7 +1103,7 @@ declare const employeesQueryOptions: () => _$_tanstack_query_core0.OmitKeyof<_$_
|
|
|
1105
1103
|
terminationReason: string | null;
|
|
1106
1104
|
supervisorRecordNumber: number;
|
|
1107
1105
|
}[], string[]>, "queryFn"> & {
|
|
1108
|
-
queryFn?:
|
|
1106
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
1109
1107
|
badgeId: string;
|
|
1110
1108
|
category: string;
|
|
1111
1109
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1182,7 +1180,7 @@ declare const employeesQueryOptions: () => _$_tanstack_query_core0.OmitKeyof<_$_
|
|
|
1182
1180
|
[dataTagErrorSymbol]: Error;
|
|
1183
1181
|
};
|
|
1184
1182
|
};
|
|
1185
|
-
declare const activeEmployeesQueryOptions: () =>
|
|
1183
|
+
declare const activeEmployeesQueryOptions: () => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1186
1184
|
badgeId: string;
|
|
1187
1185
|
category: string;
|
|
1188
1186
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1253,7 +1251,7 @@ declare const activeEmployeesQueryOptions: () => _$_tanstack_query_core0.OmitKey
|
|
|
1253
1251
|
terminationReason: string | null;
|
|
1254
1252
|
supervisorRecordNumber: number;
|
|
1255
1253
|
}[], string[]>, "queryFn"> & {
|
|
1256
|
-
queryFn?:
|
|
1254
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
1257
1255
|
badgeId: string;
|
|
1258
1256
|
category: string;
|
|
1259
1257
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1330,7 +1328,7 @@ declare const activeEmployeesQueryOptions: () => _$_tanstack_query_core0.OmitKey
|
|
|
1330
1328
|
[dataTagErrorSymbol]: Error;
|
|
1331
1329
|
};
|
|
1332
1330
|
};
|
|
1333
|
-
declare const employeeByIdQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) =>
|
|
1331
|
+
declare const employeeByIdQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1334
1332
|
badgeId: string;
|
|
1335
1333
|
category: string;
|
|
1336
1334
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1403,7 +1401,7 @@ declare const employeeByIdQueryOptions: (params: z$1.infer<typeof EmployeeIdSche
|
|
|
1403
1401
|
}, (string | {
|
|
1404
1402
|
employeeId: string;
|
|
1405
1403
|
})[]>, "queryFn"> & {
|
|
1406
|
-
queryFn?:
|
|
1404
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
1407
1405
|
badgeId: string;
|
|
1408
1406
|
category: string;
|
|
1409
1407
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1484,7 +1482,7 @@ declare const employeeByIdQueryOptions: (params: z$1.infer<typeof EmployeeIdSche
|
|
|
1484
1482
|
[dataTagErrorSymbol]: Error;
|
|
1485
1483
|
};
|
|
1486
1484
|
};
|
|
1487
|
-
declare const previousEmployeeIdsQueryOptions: () =>
|
|
1485
|
+
declare const previousEmployeeIdsQueryOptions: () => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1488
1486
|
badgeId: string;
|
|
1489
1487
|
category: string;
|
|
1490
1488
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1555,7 +1553,7 @@ declare const previousEmployeeIdsQueryOptions: () => _$_tanstack_query_core0.Omi
|
|
|
1555
1553
|
terminationReason: string | null;
|
|
1556
1554
|
supervisorRecordNumber: number;
|
|
1557
1555
|
}[], string[]>, "queryFn"> & {
|
|
1558
|
-
queryFn?:
|
|
1556
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
1559
1557
|
badgeId: string;
|
|
1560
1558
|
category: string;
|
|
1561
1559
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1632,7 +1630,7 @@ declare const previousEmployeeIdsQueryOptions: () => _$_tanstack_query_core0.Omi
|
|
|
1632
1630
|
[dataTagErrorSymbol]: Error;
|
|
1633
1631
|
};
|
|
1634
1632
|
};
|
|
1635
|
-
declare const employeeSupervisorQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) =>
|
|
1633
|
+
declare const employeeSupervisorQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1636
1634
|
badgeId: string;
|
|
1637
1635
|
category: string;
|
|
1638
1636
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1705,7 +1703,7 @@ declare const employeeSupervisorQueryOptions: (params: z$1.infer<typeof Employee
|
|
|
1705
1703
|
}, (string | {
|
|
1706
1704
|
employeeId: string;
|
|
1707
1705
|
})[]>, "queryFn"> & {
|
|
1708
|
-
queryFn?:
|
|
1706
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
1709
1707
|
badgeId: string;
|
|
1710
1708
|
category: string;
|
|
1711
1709
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1786,7 +1784,7 @@ declare const employeeSupervisorQueryOptions: (params: z$1.infer<typeof Employee
|
|
|
1786
1784
|
[dataTagErrorSymbol]: Error;
|
|
1787
1785
|
};
|
|
1788
1786
|
};
|
|
1789
|
-
declare const employeeSubordinatesQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) =>
|
|
1787
|
+
declare const employeeSubordinatesQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1790
1788
|
badgeId: string;
|
|
1791
1789
|
category: string;
|
|
1792
1790
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1859,7 +1857,7 @@ declare const employeeSubordinatesQueryOptions: (params: z$1.infer<typeof Employ
|
|
|
1859
1857
|
}[], (string | {
|
|
1860
1858
|
employeeId: string;
|
|
1861
1859
|
})[]>, "queryFn"> & {
|
|
1862
|
-
queryFn?:
|
|
1860
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
1863
1861
|
badgeId: string;
|
|
1864
1862
|
category: string;
|
|
1865
1863
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -1940,7 +1938,7 @@ declare const employeeSubordinatesQueryOptions: (params: z$1.infer<typeof Employ
|
|
|
1940
1938
|
[dataTagErrorSymbol]: Error;
|
|
1941
1939
|
};
|
|
1942
1940
|
};
|
|
1943
|
-
declare const employeeManagerQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) =>
|
|
1941
|
+
declare const employeeManagerQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1944
1942
|
badgeId: string;
|
|
1945
1943
|
category: string;
|
|
1946
1944
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2013,7 +2011,7 @@ declare const employeeManagerQueryOptions: (params: z$1.infer<typeof EmployeeIdS
|
|
|
2013
2011
|
}, (string | {
|
|
2014
2012
|
employeeId: string;
|
|
2015
2013
|
})[]>, "queryFn"> & {
|
|
2016
|
-
queryFn?:
|
|
2014
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
2017
2015
|
badgeId: string;
|
|
2018
2016
|
category: string;
|
|
2019
2017
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2094,7 +2092,7 @@ declare const employeeManagerQueryOptions: (params: z$1.infer<typeof EmployeeIdS
|
|
|
2094
2092
|
[dataTagErrorSymbol]: Error;
|
|
2095
2093
|
};
|
|
2096
2094
|
};
|
|
2097
|
-
declare const employeeGeneralManagerQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) =>
|
|
2095
|
+
declare const employeeGeneralManagerQueryOptions: (params: z$1.infer<typeof EmployeeIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
2098
2096
|
badgeId: string;
|
|
2099
2097
|
category: string;
|
|
2100
2098
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2167,7 +2165,7 @@ declare const employeeGeneralManagerQueryOptions: (params: z$1.infer<typeof Empl
|
|
|
2167
2165
|
}, (string | {
|
|
2168
2166
|
employeeId: string;
|
|
2169
2167
|
})[]>, "queryFn"> & {
|
|
2170
|
-
queryFn?:
|
|
2168
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
2171
2169
|
badgeId: string;
|
|
2172
2170
|
category: string;
|
|
2173
2171
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2248,7 +2246,7 @@ declare const employeeGeneralManagerQueryOptions: (params: z$1.infer<typeof Empl
|
|
|
2248
2246
|
[dataTagErrorSymbol]: Error;
|
|
2249
2247
|
};
|
|
2250
2248
|
};
|
|
2251
|
-
declare const departmentsQueryOptions: () =>
|
|
2249
|
+
declare const departmentsQueryOptions: () => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
2252
2250
|
departmentId: string;
|
|
2253
2251
|
description: string;
|
|
2254
2252
|
managerId: string;
|
|
@@ -2343,7 +2341,7 @@ declare const departmentsQueryOptions: () => _$_tanstack_query_core0.OmitKeyof<_
|
|
|
2343
2341
|
supervisorRecordNumber: number;
|
|
2344
2342
|
};
|
|
2345
2343
|
}[], string[]>, "queryFn"> & {
|
|
2346
|
-
queryFn?:
|
|
2344
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
2347
2345
|
departmentId: string;
|
|
2348
2346
|
description: string;
|
|
2349
2347
|
managerId: string;
|
|
@@ -2444,7 +2442,7 @@ declare const departmentsQueryOptions: () => _$_tanstack_query_core0.OmitKeyof<_
|
|
|
2444
2442
|
[dataTagErrorSymbol]: Error;
|
|
2445
2443
|
};
|
|
2446
2444
|
};
|
|
2447
|
-
declare const departmentByIdQueryOptions: (params: z$1.infer<typeof DepartmentIdSchema>) =>
|
|
2445
|
+
declare const departmentByIdQueryOptions: (params: z$1.infer<typeof DepartmentIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
2448
2446
|
departmentId: string;
|
|
2449
2447
|
description: string;
|
|
2450
2448
|
managerId: string;
|
|
@@ -2541,7 +2539,7 @@ declare const departmentByIdQueryOptions: (params: z$1.infer<typeof DepartmentId
|
|
|
2541
2539
|
}, (string | {
|
|
2542
2540
|
departmentId: string;
|
|
2543
2541
|
})[]>, "queryFn"> & {
|
|
2544
|
-
queryFn?:
|
|
2542
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
2545
2543
|
departmentId: string;
|
|
2546
2544
|
description: string;
|
|
2547
2545
|
managerId: string;
|
|
@@ -2646,7 +2644,7 @@ declare const departmentByIdQueryOptions: (params: z$1.infer<typeof DepartmentId
|
|
|
2646
2644
|
[dataTagErrorSymbol]: Error;
|
|
2647
2645
|
};
|
|
2648
2646
|
};
|
|
2649
|
-
declare const departmentManagerQueryOptions: (params: z$1.infer<typeof DepartmentIdSchema>) =>
|
|
2647
|
+
declare const departmentManagerQueryOptions: (params: z$1.infer<typeof DepartmentIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
2650
2648
|
badgeId: string;
|
|
2651
2649
|
category: string;
|
|
2652
2650
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2719,7 +2717,7 @@ declare const departmentManagerQueryOptions: (params: z$1.infer<typeof Departmen
|
|
|
2719
2717
|
}, (string | {
|
|
2720
2718
|
departmentId: string;
|
|
2721
2719
|
})[]>, "queryFn"> & {
|
|
2722
|
-
queryFn?:
|
|
2720
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
2723
2721
|
badgeId: string;
|
|
2724
2722
|
category: string;
|
|
2725
2723
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2800,7 +2798,7 @@ declare const departmentManagerQueryOptions: (params: z$1.infer<typeof Departmen
|
|
|
2800
2798
|
[dataTagErrorSymbol]: Error;
|
|
2801
2799
|
};
|
|
2802
2800
|
};
|
|
2803
|
-
declare const departmentEmployeesQueryOptions: (params: z$1.infer<typeof DepartmentIdSchema>) =>
|
|
2801
|
+
declare const departmentEmployeesQueryOptions: (params: z$1.infer<typeof DepartmentIdSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
2804
2802
|
badgeId: string;
|
|
2805
2803
|
category: string;
|
|
2806
2804
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2873,7 +2871,7 @@ declare const departmentEmployeesQueryOptions: (params: z$1.infer<typeof Departm
|
|
|
2873
2871
|
}[], (string | {
|
|
2874
2872
|
departmentId: string;
|
|
2875
2873
|
})[]>, "queryFn"> & {
|
|
2876
|
-
queryFn?:
|
|
2874
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
2877
2875
|
badgeId: string;
|
|
2878
2876
|
category: string;
|
|
2879
2877
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -2954,7 +2952,7 @@ declare const departmentEmployeesQueryOptions: (params: z$1.infer<typeof Departm
|
|
|
2954
2952
|
[dataTagErrorSymbol]: Error;
|
|
2955
2953
|
};
|
|
2956
2954
|
};
|
|
2957
|
-
declare const companyGeneralManagerQueryOptions: (params: z$1.infer<typeof CompanyCodeSchema>) =>
|
|
2955
|
+
declare const companyGeneralManagerQueryOptions: (params: z$1.infer<typeof CompanyCodeSchema>) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
2958
2956
|
badgeId: string;
|
|
2959
2957
|
category: string;
|
|
2960
2958
|
categoryGroup: "IDL" | "FD" | "FI";
|
|
@@ -3027,7 +3025,7 @@ declare const companyGeneralManagerQueryOptions: (params: z$1.infer<typeof Compa
|
|
|
3027
3025
|
}, (string | {
|
|
3028
3026
|
companyCode: string;
|
|
3029
3027
|
})[]>, "queryFn"> & {
|
|
3030
|
-
queryFn?:
|
|
3028
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<{
|
|
3031
3029
|
badgeId: string;
|
|
3032
3030
|
category: string;
|
|
3033
3031
|
categoryGroup: "IDL" | "FD" | "FI";
|
package/dist/data/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as queryClient } from "../queryClient-
|
|
2
|
-
import { a as fileQueryOptions, c as updateFileMetaMutationOptions, i as fileMetasQueryOptions, l as useUploadFile, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions, t as batchDeleteFilesMutationOptions } from "../file-
|
|
3
|
-
import { C as createApproval, D as withdrawApproval, E as resubmitApproval, S as cancelApproval, T as getApprovals, _ as getPreviousEmployeeIds, a as getActiveEmployees, c as getDepartmentEmployees, d as getEmployeeByEmployeeId, f as getEmployeeGeneralManager, g as getEmployees, h as getEmployeeSupervisor, l as getDepartmentManager, m as getEmployeeSubordinates, o as getCompanyGeneralManager, p as getEmployeeManager, s as getDepartmentById, u as getDepartments, v as searchEmployees, w as getApproval, x as approveApproval } from "../peoplesoft
|
|
1
|
+
import { t as queryClient } from "../queryClient-D64McLhZ.js";
|
|
2
|
+
import { a as fileQueryOptions, c as updateFileMetaMutationOptions, i as fileMetasQueryOptions, l as useUploadFile, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions, t as batchDeleteFilesMutationOptions } from "../file-Dsht7yOP.js";
|
|
3
|
+
import { C as createApproval, D as withdrawApproval, E as resubmitApproval, S as cancelApproval, T as getApprovals, _ as getPreviousEmployeeIds, a as getActiveEmployees, c as getDepartmentEmployees, d as getEmployeeByEmployeeId, f as getEmployeeGeneralManager, g as getEmployees, h as getEmployeeSupervisor, l as getDepartmentManager, m as getEmployeeSubordinates, o as getCompanyGeneralManager, p as getEmployeeManager, s as getDepartmentById, u as getDepartments, v as searchEmployees, w as getApproval, x as approveApproval } from "../peoplesoft-BCjRje6b.js";
|
|
4
4
|
import { mutationOptions, queryOptions } from "@tanstack/react-query";
|
|
5
5
|
//#region src/data/client/approval.ts
|
|
6
6
|
const QUERY_KEY$1 = "approval";
|
package/dist/data/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["mutationOptions","queryOptions","z","queryClient","ApproveApprovalSchema","CancelApprovalSchema","CreateApprovalSchema","ResubmitApprovalSchema","WithdrawApprovalSchema","GetApprovalSchema","GetApprovalsSchema","approveApproval","cancelApproval","createApproval","getApproval","getApprovals","resubmitApproval","withdrawApproval","QUERY_KEY","approvalsQueryOptions","params","input","queryKey","queryFn","data","approvalQueryOptions","createApprovalMutationOptions","mutationFn","onSettled","invalidateQueries","exact","approveApprovalMutationOptions","resubmitApprovalMutationOptions","withdrawApprovalMutationOptions","cancelApprovalMutationOptions","queryOptions","z","CompanyCodeSchema","DepartmentIdSchema","EmployeeIdSchema","getActiveEmployees","getCompanyGeneralManager","getDepartmentById","getDepartmentEmployees","getDepartmentManager","getDepartments","getEmployeeByEmployeeId","getEmployeeGeneralManager","getEmployeeManager","getEmployees","getEmployeeSubordinates","getEmployeeSupervisor","getPreviousEmployeeIds","searchEmployees","SearchEmployeesSchema","QUERY_KEY","DAY","baseOptions","staleTime","gcTime","refetchOnWindowFocus","employeesSearchQueryOptions","params","infer","queryKey","queryFn","data","employeesQueryOptions","activeEmployeesQueryOptions","employeeByIdQueryOptions","previousEmployeeIdsQueryOptions","employeeSupervisorQueryOptions","employeeSubordinatesQueryOptions","employeeManagerQueryOptions","employeeGeneralManagerQueryOptions","departmentsQueryOptions","departmentByIdQueryOptions","departmentManagerQueryOptions","departmentEmployeesQueryOptions","companyGeneralManagerQueryOptions"],"sources":["../../src/data/client/approval.ts","../../src/data/client/peoplesoft.ts"],"sourcesContent":["import { mutationOptions, queryOptions } from \"@tanstack/react-query\";\nimport type { z } from \"zod\";\nimport { queryClient } from \"~/lib/queryClient\";\nimport {\n ApproveApprovalSchema,\n CancelApprovalSchema,\n CreateApprovalSchema,\n ResubmitApprovalSchema,\n WithdrawApprovalSchema,\n} from \"~/models/approval/Approval\";\nimport type { GetApprovalSchema, GetApprovalsSchema } from \"~/data/server/approval\";\nimport {\n approveApproval,\n cancelApproval,\n createApproval,\n getApproval,\n getApprovals,\n resubmitApproval,\n withdrawApproval,\n} from \"~/data/server/approval\";\n\nconst QUERY_KEY = \"approval\";\n\nexport const approvalsQueryOptions = (params: z.input<typeof GetApprovalsSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, params],\n queryFn: () => getApprovals({ data: params }),\n });\n\nexport const approvalQueryOptions = (params: z.input<typeof GetApprovalSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, params],\n queryFn: () => getApproval({ data: params }),\n });\n\nexport const createApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof CreateApprovalSchema>) => createApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const approveApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof ApproveApprovalSchema>) => approveApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const resubmitApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof ResubmitApprovalSchema>) => resubmitApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const withdrawApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof WithdrawApprovalSchema>) => withdrawApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const cancelApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof CancelApprovalSchema>) => cancelApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n","import { queryOptions } from \"@tanstack/react-query\";\nimport z from \"zod\";\nimport {\n CompanyCodeSchema,\n DepartmentIdSchema,\n EmployeeIdSchema,\n getActiveEmployees,\n getCompanyGeneralManager,\n getDepartmentById,\n getDepartmentEmployees,\n getDepartmentManager,\n getDepartments,\n getEmployeeByEmployeeId,\n getEmployeeGeneralManager,\n getEmployeeManager,\n getEmployees,\n getEmployeeSubordinates,\n getEmployeeSupervisor,\n getPreviousEmployeeIds,\n searchEmployees,\n SearchEmployeesSchema,\n} from \"~/data/server/peoplesoft\";\n\nconst QUERY_KEY = \"ps\";\nconst DAY = 1000 * 60 * 60 * 24;\n\nconst baseOptions = {\n staleTime: DAY,\n gcTime: DAY,\n refetchOnWindowFocus: false,\n};\n\nexport const employeesSearchQueryOptions = (params: z.infer<typeof SearchEmployeesSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"search\", params],\n queryFn: () => searchEmployees({ data: params }),\n ...baseOptions,\n });\n\nexport const employeesQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\"],\n queryFn: () => getEmployees(),\n ...baseOptions,\n });\n\nexport const activeEmployeesQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"active\"],\n queryFn: () => getActiveEmployees(),\n ...baseOptions,\n });\n\nexport const employeeByIdQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", params],\n queryFn: () => getEmployeeByEmployeeId({ data: params }),\n ...baseOptions,\n });\n\nexport const previousEmployeeIdsQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"previousIds\"],\n queryFn: () => getPreviousEmployeeIds(),\n ...baseOptions,\n });\n\nexport const employeeSupervisorQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"supervisor\", params],\n queryFn: () => getEmployeeSupervisor({ data: params }),\n ...baseOptions,\n });\n\nexport const employeeSubordinatesQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"subordinates\", params],\n queryFn: () => getEmployeeSubordinates({ data: params }),\n ...baseOptions,\n });\n\nexport const employeeManagerQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"manager\", params],\n queryFn: () => getEmployeeManager({ data: params }),\n ...baseOptions,\n });\n\nexport const employeeGeneralManagerQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"generalManager\", params],\n queryFn: () => getEmployeeGeneralManager({ data: params }),\n ...baseOptions,\n });\n\nexport const departmentsQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\"],\n queryFn: () => getDepartments(),\n ...baseOptions,\n });\n\nexport const departmentByIdQueryOptions = (params: z.infer<typeof DepartmentIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\", params],\n queryFn: () => getDepartmentById({ data: params }),\n ...baseOptions,\n });\n\nexport const departmentManagerQueryOptions = (params: z.infer<typeof DepartmentIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\", \"manager\", params],\n queryFn: () => getDepartmentManager({ data: params }),\n ...baseOptions,\n });\n\nexport const departmentEmployeesQueryOptions = (params: z.infer<typeof DepartmentIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\", \"employees\", params],\n queryFn: () => getDepartmentEmployees({ data: params }),\n ...baseOptions,\n });\n\nexport const companyGeneralManagerQueryOptions = (params: z.infer<typeof CompanyCodeSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"company\", \"generalManager\", params],\n queryFn: () => getCompanyGeneralManager({ data: params }),\n ...baseOptions,\n });\n"],"mappings":";;;;;AAqBA,MAAMkB,cAAY;AAElB,MAAaC,yBAAyBC,WACpCnB,aAAa;CACXqB,UAAU,CAACJ,aAAWE,OAAO;CAC7BG,eAAeR,aAAa,EAAES,MAAMJ,QAAQ,CAAA;CAC7C,CAAC;AAEJ,MAAaK,wBAAwBL,WACnCnB,aAAa;CACXqB,UAAU,CAACJ,aAAWE,OAAO;CAC7BG,eAAeT,YAAY,EAAEU,MAAMJ,QAAQ,CAAA;CAC5C,CAAC;AAEJ,MAAaM,sCACX1B,gBAAgB;CACd2B,aAAaH,SAA+CX,eAAe,EAAEW,MAAM,CAAC;CACpFI,iBAAiBzB,YAAY0B,kBAAkB;EAAEP,UAAU,CAACJ,YAAU;EAAEY,OAAO;EAAO,CAAA;CACvF,CAAC;AAEJ,MAAaC,uCACX/B,gBAAgB;CACd2B,aAAaH,SAAgDb,gBAAgB,EAAEa,MAAM,CAAC;CACtFI,iBAAiBzB,YAAY0B,kBAAkB;EAAEP,UAAU,CAACJ,YAAU;EAAEY,OAAO;EAAO,CAAA;CACvF,CAAC;AAEJ,MAAaE,wCACXhC,gBAAgB;CACd2B,aAAaH,SAAiDR,iBAAiB,EAAEQ,MAAM,CAAC;CACxFI,iBAAiBzB,YAAY0B,kBAAkB;EAAEP,UAAU,CAACJ,YAAU;EAAEY,OAAO;EAAO,CAAA;CACvF,CAAC;AAEJ,MA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;CAC1DG,eAAexB,yBAAyB,EAAEyB,MAAMJ,QAAQ,CAAC;CACzD,GAAGL;CACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"client.js","names":["mutationOptions","queryOptions","z","queryClient","ApproveApprovalSchema","CancelApprovalSchema","CreateApprovalSchema","ResubmitApprovalSchema","WithdrawApprovalSchema","GetApprovalSchema","GetApprovalsSchema","approveApproval","cancelApproval","createApproval","getApproval","getApprovals","resubmitApproval","withdrawApproval","QUERY_KEY","approvalsQueryOptions","params","input","queryKey","queryFn","data","approvalQueryOptions","createApprovalMutationOptions","mutationFn","onSettled","invalidateQueries","exact","approveApprovalMutationOptions","resubmitApprovalMutationOptions","withdrawApprovalMutationOptions","cancelApprovalMutationOptions","queryOptions","z","CompanyCodeSchema","DepartmentIdSchema","EmployeeIdSchema","getActiveEmployees","getCompanyGeneralManager","getDepartmentById","getDepartmentEmployees","getDepartmentManager","getDepartments","getEmployeeByEmployeeId","getEmployeeGeneralManager","getEmployeeManager","getEmployees","getEmployeeSubordinates","getEmployeeSupervisor","getPreviousEmployeeIds","searchEmployees","SearchEmployeesSchema","QUERY_KEY","DAY","baseOptions","staleTime","gcTime","refetchOnWindowFocus","employeesSearchQueryOptions","params","infer","queryKey","queryFn","data","employeesQueryOptions","activeEmployeesQueryOptions","employeeByIdQueryOptions","previousEmployeeIdsQueryOptions","employeeSupervisorQueryOptions","employeeSubordinatesQueryOptions","employeeManagerQueryOptions","employeeGeneralManagerQueryOptions","departmentsQueryOptions","departmentByIdQueryOptions","departmentManagerQueryOptions","departmentEmployeesQueryOptions","companyGeneralManagerQueryOptions"],"sources":["../../src/data/client/approval.ts","../../src/data/client/peoplesoft.ts"],"sourcesContent":["import { mutationOptions, queryOptions } from \"@tanstack/react-query\";\nimport type { z } from \"zod\";\nimport { queryClient } from \"~/lib/queryClient\";\nimport {\n ApproveApprovalSchema,\n CancelApprovalSchema,\n CreateApprovalSchema,\n ResubmitApprovalSchema,\n WithdrawApprovalSchema,\n} from \"~/models/approval/Approval\";\nimport type { GetApprovalSchema, GetApprovalsSchema } from \"~/data/server/approval\";\nimport {\n approveApproval,\n cancelApproval,\n createApproval,\n getApproval,\n getApprovals,\n resubmitApproval,\n withdrawApproval,\n} from \"~/data/server/approval\";\n\nconst QUERY_KEY = \"approval\";\n\nexport const approvalsQueryOptions = (params: z.input<typeof GetApprovalsSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, params],\n queryFn: () => getApprovals({ data: params }),\n });\n\nexport const approvalQueryOptions = (params: z.input<typeof GetApprovalSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, params],\n queryFn: () => getApproval({ data: params }),\n });\n\nexport const createApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof CreateApprovalSchema>) => createApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const approveApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof ApproveApprovalSchema>) => approveApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const resubmitApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof ResubmitApprovalSchema>) => resubmitApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const withdrawApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof WithdrawApprovalSchema>) => withdrawApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n\nexport const cancelApprovalMutationOptions = () =>\n mutationOptions({\n mutationFn: (data: z.input<typeof CancelApprovalSchema>) => cancelApproval({ data }),\n onSettled: () => queryClient.invalidateQueries({ queryKey: [QUERY_KEY], exact: false }),\n });\n","import { queryOptions } from \"@tanstack/react-query\";\nimport z from \"zod\";\nimport {\n CompanyCodeSchema,\n DepartmentIdSchema,\n EmployeeIdSchema,\n getActiveEmployees,\n getCompanyGeneralManager,\n getDepartmentById,\n getDepartmentEmployees,\n getDepartmentManager,\n getDepartments,\n getEmployeeByEmployeeId,\n getEmployeeGeneralManager,\n getEmployeeManager,\n getEmployees,\n getEmployeeSubordinates,\n getEmployeeSupervisor,\n getPreviousEmployeeIds,\n searchEmployees,\n SearchEmployeesSchema,\n} from \"~/data/server/peoplesoft\";\n\nconst QUERY_KEY = \"ps\";\nconst DAY = 1000 * 60 * 60 * 24;\n\nconst baseOptions = {\n staleTime: DAY,\n gcTime: DAY,\n refetchOnWindowFocus: false,\n};\n\nexport const employeesSearchQueryOptions = (params: z.infer<typeof SearchEmployeesSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"search\", params],\n queryFn: () => searchEmployees({ data: params }),\n ...baseOptions,\n });\n\nexport const employeesQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\"],\n queryFn: () => getEmployees(),\n ...baseOptions,\n });\n\nexport const activeEmployeesQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"active\"],\n queryFn: () => getActiveEmployees(),\n ...baseOptions,\n });\n\nexport const employeeByIdQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", params],\n queryFn: () => getEmployeeByEmployeeId({ data: params }),\n ...baseOptions,\n });\n\nexport const previousEmployeeIdsQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"previousIds\"],\n queryFn: () => getPreviousEmployeeIds(),\n ...baseOptions,\n });\n\nexport const employeeSupervisorQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"supervisor\", params],\n queryFn: () => getEmployeeSupervisor({ data: params }),\n ...baseOptions,\n });\n\nexport const employeeSubordinatesQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"subordinates\", params],\n queryFn: () => getEmployeeSubordinates({ data: params }),\n ...baseOptions,\n });\n\nexport const employeeManagerQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"manager\", params],\n queryFn: () => getEmployeeManager({ data: params }),\n ...baseOptions,\n });\n\nexport const employeeGeneralManagerQueryOptions = (params: z.infer<typeof EmployeeIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"employee\", \"generalManager\", params],\n queryFn: () => getEmployeeGeneralManager({ data: params }),\n ...baseOptions,\n });\n\nexport const departmentsQueryOptions = () =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\"],\n queryFn: () => getDepartments(),\n ...baseOptions,\n });\n\nexport const departmentByIdQueryOptions = (params: z.infer<typeof DepartmentIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\", params],\n queryFn: () => getDepartmentById({ data: params }),\n ...baseOptions,\n });\n\nexport const departmentManagerQueryOptions = (params: z.infer<typeof DepartmentIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\", \"manager\", params],\n queryFn: () => getDepartmentManager({ data: params }),\n ...baseOptions,\n });\n\nexport const departmentEmployeesQueryOptions = (params: z.infer<typeof DepartmentIdSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"department\", \"employees\", params],\n queryFn: () => getDepartmentEmployees({ data: params }),\n ...baseOptions,\n });\n\nexport const companyGeneralManagerQueryOptions = (params: z.infer<typeof CompanyCodeSchema>) =>\n queryOptions({\n queryKey: [QUERY_KEY, \"company\", \"generalManager\", params],\n queryFn: () => getCompanyGeneralManager({ data: params }),\n ...baseOptions,\n });\n"],"mappings":";;;;;AAqBA,MAAMkB,cAAY;AAElB,MAAaC,yBAAyBC,WACpCnB,aAAa;CACXqB,UAAU,CAACJ,aAAWE,MAAM;CAC5BG,eAAeR,aAAa,EAAES,MAAMJ,OAAO,CAAC;AAC9C,CAAC;AAEH,MA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UAAU,CAACT,WAAW,YAAY;CAClCU,eAAepB,eAAe;CAC9B,GAAGY;AACL,CAAC;AAEH,MAAamB,8BAA8Bd,WACzC3B,aAAa;CACX6B,UAAU;EAACT;EAAW;EAAcO;CAAM;CAC1CG,eAAevB,kBAAkB,EAAEwB,MAAMJ,OAAO,CAAC;CACjD,GAAGL;AACL,CAAC;AAEH,MAAaoB,iCAAiCf,WAC5C3B,aAAa;CACX6B,UAAU;EAACT;EAAW;EAAc;EAAWO;CAAM;CACrDG,eAAerB,qBAAqB,EAAEsB,MAAMJ,OAAO,CAAC;CACpD,GAAGL;AACL,CAAC;AAEH,MAAaqB,mCAAmChB,WAC9C3B,aAAa;CACX6B,UAAU;EAACT;EAAW;EAAc;EAAaO;CAAM;CACvDG,eAAetB,uBAAuB,EAAEuB,MAAMJ,OAAO,CAAC;CACtD,GAAGL;AACL,CAAC;AAEH,MAAasB,qCAAqCjB,WAChD3B,aAAa;CACX6B,UAAU;EAACT;EAAW;EAAW;EAAkBO;CAAM;CACzDG,eAAexB,yBAAyB,EAAEyB,MAAMJ,OAAO,CAAC;CACxD,GAAGL;AACL,CAAC"}
|
package/dist/data/server.d.ts
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { A as UpdateFileMetaSchema, B as uploadFile, C as createApproval, D as withdrawApproval, E as resubmitApproval, F as downloadFile, I as getFile, L as getFileMetas, M as UploadFileResult, N as batchDeleteFiles, O as FileSchema, P as deleteFile, R as getFileThumbnail, S as cancelApproval, T as getApprovals, _ as getPreviousEmployeeIds, a as getActiveEmployees, b as GetApprovalsSchema, c as getDepartmentEmployees, d as getEmployeeByEmployeeId, f as getEmployeeGeneralManager, g as getEmployees, h as getEmployeeSupervisor, i as SearchEmployeesSchema, j as UploadFileMetaSchema, k as GetFileMetasSchema, l as getDepartmentManager, m as getEmployeeSubordinates, n as DepartmentIdSchema, o as getCompanyGeneralManager, p as getEmployeeManager, r as EmployeeIdSchema, s as getDepartmentById, t as CompanyCodeSchema, u as getDepartments, v as searchEmployees, w as getApproval, x as approveApproval, y as GetApprovalSchema, z as updateFileMeta } from "../peoplesoft-
|
|
2
|
-
import * as _$zod from "zod";
|
|
3
|
-
import * as _$axios from "axios";
|
|
4
|
-
import * as _$_tanstack_start_client_core0 from "@tanstack/start-client-core";
|
|
5
|
-
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
1
|
+
import { A as UpdateFileMetaSchema, B as uploadFile, C as createApproval, D as withdrawApproval, E as resubmitApproval, F as downloadFile, I as getFile, L as getFileMetas, M as UploadFileResult, N as batchDeleteFiles, O as FileSchema, P as deleteFile, R as getFileThumbnail, S as cancelApproval, T as getApprovals, _ as getPreviousEmployeeIds, a as getActiveEmployees, b as GetApprovalsSchema, c as getDepartmentEmployees, d as getEmployeeByEmployeeId, f as getEmployeeGeneralManager, g as getEmployees, h as getEmployeeSupervisor, i as SearchEmployeesSchema, j as UploadFileMetaSchema, k as GetFileMetasSchema, l as getDepartmentManager, m as getEmployeeSubordinates, n as DepartmentIdSchema, o as getCompanyGeneralManager, p as getEmployeeManager, r as EmployeeIdSchema, s as getDepartmentById, t as CompanyCodeSchema, u as getDepartments, v as searchEmployees, w as getApproval, x as approveApproval, y as GetApprovalSchema, z as updateFileMeta } from "../peoplesoft-Cze2ngGd.js";
|
|
6
2
|
|
|
7
3
|
//#region src/data/server/email.d.ts
|
|
8
|
-
declare const sendEmail:
|
|
9
|
-
api:
|
|
10
|
-
}>],
|
|
11
|
-
subject:
|
|
12
|
-
body:
|
|
13
|
-
to:
|
|
14
|
-
bcc:
|
|
15
|
-
cc:
|
|
16
|
-
attachments:
|
|
17
|
-
appName:
|
|
18
|
-
subId:
|
|
19
|
-
},
|
|
20
|
-
},
|
|
4
|
+
declare const sendEmail: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
|
|
5
|
+
api: import("axios").AxiosInstance;
|
|
6
|
+
}>], import("zod").ZodObject<{
|
|
7
|
+
subject: import("zod").ZodString;
|
|
8
|
+
body: import("zod").ZodString;
|
|
9
|
+
to: import("zod").ZodArray<import("zod").ZodEmail>;
|
|
10
|
+
bcc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEmail>>;
|
|
11
|
+
cc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEmail>>;
|
|
12
|
+
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
13
|
+
appName: import("zod").ZodString;
|
|
14
|
+
subId: import("zod").ZodUUID;
|
|
15
|
+
}, import("zod/v4/core").$strip>>>;
|
|
16
|
+
}, import("zod/v4/core").$strip>, Promise<void>>;
|
|
21
17
|
//#endregion
|
|
22
18
|
export { CompanyCodeSchema, DepartmentIdSchema, EmployeeIdSchema, FileSchema, GetApprovalSchema, GetApprovalsSchema, GetFileMetasSchema, SearchEmployeesSchema, UpdateFileMetaSchema, UploadFileMetaSchema, UploadFileResult, approveApproval, batchDeleteFiles, cancelApproval, createApproval, deleteFile, downloadFile, getActiveEmployees, getApproval, getApprovals, getCompanyGeneralManager, getDepartmentById, getDepartmentEmployees, getDepartmentManager, getDepartments, getEmployeeByEmployeeId, getEmployeeGeneralManager, getEmployeeManager, getEmployeeSubordinates, getEmployeeSupervisor, getEmployees, getFile, getFileMetas, getFileThumbnail, getPreviousEmployeeIds, resubmitApproval, searchEmployees, sendEmail, updateFileMeta, uploadFile, withdrawApproval };
|
|
23
19
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/data/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as apiMiddleware } from "../apiMiddleware-
|
|
2
|
-
import { a as batchDeleteFiles, c as getFile, d as updateFileMeta, f as uploadFile, i as UploadFileMetaSchema, l as getFileMetas, n as GetFileMetasSchema, o as deleteFile, r as UpdateFileMetaSchema, s as downloadFile, t as FileSchema, u as getFileThumbnail } from "../file-
|
|
3
|
-
import { t as EmailSchema } from "../Email-
|
|
4
|
-
import { C as createApproval, D as withdrawApproval, E as resubmitApproval, S as cancelApproval, T as getApprovals, _ as getPreviousEmployeeIds, a as getActiveEmployees, b as GetApprovalsSchema, c as getDepartmentEmployees, d as getEmployeeByEmployeeId, f as getEmployeeGeneralManager, g as getEmployees, h as getEmployeeSupervisor, i as SearchEmployeesSchema, l as getDepartmentManager, m as getEmployeeSubordinates, n as DepartmentIdSchema, o as getCompanyGeneralManager, p as getEmployeeManager, r as EmployeeIdSchema, s as getDepartmentById, t as CompanyCodeSchema, u as getDepartments, v as searchEmployees, w as getApproval, x as approveApproval, y as GetApprovalSchema } from "../peoplesoft
|
|
1
|
+
import { t as apiMiddleware } from "../apiMiddleware-CtY4rOFU.js";
|
|
2
|
+
import { a as batchDeleteFiles, c as getFile, d as updateFileMeta, f as uploadFile, i as UploadFileMetaSchema, l as getFileMetas, n as GetFileMetasSchema, o as deleteFile, r as UpdateFileMetaSchema, s as downloadFile, t as FileSchema, u as getFileThumbnail } from "../file-BUdLb7H1.js";
|
|
3
|
+
import { t as EmailSchema } from "../Email-C9qwj7GD.js";
|
|
4
|
+
import { C as createApproval, D as withdrawApproval, E as resubmitApproval, S as cancelApproval, T as getApprovals, _ as getPreviousEmployeeIds, a as getActiveEmployees, b as GetApprovalsSchema, c as getDepartmentEmployees, d as getEmployeeByEmployeeId, f as getEmployeeGeneralManager, g as getEmployees, h as getEmployeeSupervisor, i as SearchEmployeesSchema, l as getDepartmentManager, m as getEmployeeSubordinates, n as DepartmentIdSchema, o as getCompanyGeneralManager, p as getEmployeeManager, r as EmployeeIdSchema, s as getDepartmentById, t as CompanyCodeSchema, u as getDepartments, v as searchEmployees, w as getApproval, x as approveApproval, y as GetApprovalSchema } from "../peoplesoft-BCjRje6b.js";
|
|
5
5
|
import { createServerFn } from "@tanstack/react-start";
|
|
6
6
|
//#region src/data/server/email.ts
|
|
7
7
|
const sendEmail = createServerFn({ method: "POST" }).inputValidator(EmailSchema).middleware([apiMiddleware({
|
package/dist/data/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","names":["createServerFn","apiMiddleware","EmailSchema","sendEmail","method","inputValidator","middleware","baseURL","scopeKey","handler","data","context","api","post"],"sources":["../../src/data/server/email.ts"],"sourcesContent":["import { createServerFn } from \"@tanstack/react-start\";\nimport { apiMiddleware } from \"~/middleware/apiMiddleware\";\nimport { EmailSchema } from \"~/models/email/Email\";\n\nexport const sendEmail = createServerFn({ method: \"POST\" })\n .inputValidator(EmailSchema)\n .middleware([apiMiddleware({ baseURL: \"EMAIL_BASE_URL\", scopeKey: \"email\" })])\n .handler(async ({ data, context }) => {\n await context.api.post(\"/v1/email\", data);\n });\n"],"mappings":";;;;;;AAIA,MAAaG,YAAYH,eAAe,EAAEI,QAAQ,
|
|
1
|
+
{"version":3,"file":"server.js","names":["createServerFn","apiMiddleware","EmailSchema","sendEmail","method","inputValidator","middleware","baseURL","scopeKey","handler","data","context","api","post"],"sources":["../../src/data/server/email.ts"],"sourcesContent":["import { createServerFn } from \"@tanstack/react-start\";\nimport { apiMiddleware } from \"~/middleware/apiMiddleware\";\nimport { EmailSchema } from \"~/models/email/Email\";\n\nexport const sendEmail = createServerFn({ method: \"POST\" })\n .inputValidator(EmailSchema)\n .middleware([apiMiddleware({ baseURL: \"EMAIL_BASE_URL\", scopeKey: \"email\" })])\n .handler(async ({ data, context }) => {\n await context.api.post(\"/v1/email\", data);\n });\n"],"mappings":";;;;;;AAIA,MAAaG,YAAYH,eAAe,EAAEI,QAAQ,OAAO,CAAC,EACvDC,eAAeH,WAAW,EAC1BI,WAAW,CAACL,cAAc;CAAEM,SAAS;CAAkBC,UAAU;AAAQ,CAAC,CAAC,CAAC,EAC5EC,QAAQ,OAAO,EAAEC,MAAMC,cAAc;CACpC,MAAMA,QAAQC,IAAIC,KAAK,aAAaH,IAAI;AAC1C,CAAC"}
|
package/dist/data.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as queryClient } from "./queryClient-
|
|
1
|
+
import { t as queryClient } from "./queryClient-D64McLhZ.js";
|
|
2
2
|
export { queryClient };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-
|
|
1
|
+
{"version":3,"file":"env-ON-cyE3N.js","names":["createEnv","z","clientEnv","clientPrefix","client","VITE_ENTRA_CLIENT_ID","string","VITE_ENTRA_TENANT_ID","VITE_APP_TITLE","VITE_MUI_LICENSE_KEY","runtimeEnv","import","meta","env","emptyStringAsUndefined","serverEnv","server","ENTRA_CLIENT_ID","ENTRA_TENANT_ID","ENTRA_CLIENT_SECRET","FILE_BASE_URL","min","optional","APPROVAL_BASE_URL","PS_BASE_URL","EMAIL_BASE_URL","process"],"sources":["../src/env.ts"],"sourcesContent":["import { createEnv } from \"@t3-oss/env-core\";\nimport { z } from \"zod\";\n\nexport const clientEnv = createEnv({\n clientPrefix: \"VITE_\",\n client: {\n VITE_ENTRA_CLIENT_ID: z.string(),\n VITE_ENTRA_TENANT_ID: z.string(),\n VITE_APP_TITLE: z.string(),\n VITE_MUI_LICENSE_KEY: z.string(),\n },\n runtimeEnv: import.meta.env,\n emptyStringAsUndefined: true,\n});\n\nexport const serverEnv = createEnv({\n server: {\n ENTRA_CLIENT_ID: z.string(),\n ENTRA_TENANT_ID: z.string(),\n ENTRA_CLIENT_SECRET: z.string(),\n FILE_BASE_URL: z.string().min(1).optional(),\n APPROVAL_BASE_URL: z.string().min(1).optional(),\n PS_BASE_URL: z.string().min(1).optional(),\n EMAIL_BASE_URL: z.string().min(1).optional(),\n },\n runtimeEnv: process.env,\n emptyStringAsUndefined: true,\n});\n"],"mappings":";;;AAGA,MAAaE,YAAYF,UAAU;CACjCG,cAAc;CACdC,QAAQ;EACNC,sBAAsBJ,EAAEK,OAAO;EAC/BC,sBAAsBN,EAAEK,OAAO;EAC/BE,gBAAgBP,EAAEK,OAAO;EACzBG,sBAAsBR,EAAEK,OAAO;CACjC;CACAI,YAAYC,OAAOC,KAAKC;CACxBC,wBAAwB;AAC1B,CAAC;AAED,MAAaC,YAAYf,UAAU;CACjCgB,QAAQ;EACNC,iBAAiBhB,EAAEK,OAAO;EAC1BY,iBAAiBjB,EAAEK,OAAO;EAC1Ba,qBAAqBlB,EAAEK,OAAO;EAC9Bc,eAAenB,EAAEK,OAAO,EAAEe,IAAI,CAAC,EAAEC,SAAS;EAC1CC,mBAAmBtB,EAAEK,OAAO,EAAEe,IAAI,CAAC,EAAEC,SAAS;EAC9CE,aAAavB,EAAEK,OAAO,EAAEe,IAAI,CAAC,EAAEC,SAAS;EACxCG,gBAAgBxB,EAAEK,OAAO,EAAEe,IAAI,CAAC,EAAEC,SAAS;CAC7C;CACAZ,YAAYgB,QAAQb;CACpBC,wBAAwB;AAC1B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as serverEnv } from "./env-
|
|
2
|
-
import { t as getAppToken } from "./msalServer-
|
|
3
|
-
import { t as apiMiddleware } from "./apiMiddleware-
|
|
4
|
-
import { t as FileMetaSchema } from "./FileMeta-
|
|
1
|
+
import { n as serverEnv } from "./env-ON-cyE3N.js";
|
|
2
|
+
import { t as getAppToken } from "./msalServer-B9sVqpQ2.js";
|
|
3
|
+
import { t as apiMiddleware } from "./apiMiddleware-CtY4rOFU.js";
|
|
4
|
+
import { t as FileMetaSchema } from "./FileMeta-DDqUju1Y.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { createServerFn } from "@tanstack/react-start";
|
|
7
7
|
import { uuidv7 } from "uuidv7";
|
|
@@ -145,4 +145,4 @@ const uploadFile = createServerFn({ method: "POST" }).inputValidator(UploadFileM
|
|
|
145
145
|
//#endregion
|
|
146
146
|
export { batchDeleteFiles as a, getFile as c, updateFileMeta as d, uploadFile as f, UploadFileMetaSchema as i, getFileMetas as l, GetFileMetasSchema as n, deleteFile as o, UpdateFileMetaSchema as r, downloadFile as s, FileSchema as t, getFileThumbnail as u };
|
|
147
147
|
|
|
148
|
-
//# sourceMappingURL=file-
|
|
148
|
+
//# sourceMappingURL=file-BUdLb7H1.js.map
|