wcz-test 6.5.0 → 6.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-O7U2PUIW.js +16 -0
- package/dist/chunk-O7U2PUIW.js.map +1 -0
- package/dist/{chunk-NHG74N3M.js → chunk-SIBFDHFS.js} +11 -9
- package/dist/chunk-SIBFDHFS.js.map +1 -0
- package/dist/client-utils.d.ts +1 -3
- package/dist/components.js +1 -1
- package/dist/hooks.d.ts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/queries.d.ts +573 -12
- package/dist/queries.js +92 -52
- package/dist/queries.js.map +1 -1
- package/dist/server-utils.js +4 -11
- package/dist/server-utils.js.map +1 -1
- package/dist/{utils-ChipkRJ9.d.ts → utils-DLRiZ02r.d.ts} +0 -2
- package/dist/utils.d.ts +37 -1
- package/dist/utils.js +83 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-NHG74N3M.js.map +0 -1
package/dist/queries.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import z__default from 'zod';
|
|
|
4
4
|
import { DetailedError } from 'tus-js-client';
|
|
5
5
|
import { F as FileMeta } from './FileMeta-CC014fnB.js';
|
|
6
6
|
import { E as Employee, D as Department, A as Approval, C as CreateApproval, a as ApproveApproval, R as ResubmitApproval, W as WithdrawApproval, b as CancelApproval } from './Approval-CWQn-kah.js';
|
|
7
|
+
import * as _tanstack_start_client_core from '@tanstack/start-client-core';
|
|
7
8
|
|
|
8
9
|
type OptionalId$1 = string | undefined | null;
|
|
9
10
|
type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<FileMeta>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
@@ -31,7 +32,7 @@ declare const useGetFileMetas: (params: GetFileMetasParams, options?: BaseFileMe
|
|
|
31
32
|
}[], Error>;
|
|
32
33
|
declare const GetFileThumbnailParamsSchema: z__default.ZodObject<{
|
|
33
34
|
appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
|
|
34
|
-
meta: z__default.ZodObject<{
|
|
35
|
+
meta: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodObject<{
|
|
35
36
|
id: z__default.ZodUUID;
|
|
36
37
|
subId: z__default.ZodUUID;
|
|
37
38
|
appName: z__default.ZodString;
|
|
@@ -43,13 +44,13 @@ declare const GetFileThumbnailParamsSchema: z__default.ZodObject<{
|
|
|
43
44
|
mimeType: z__default.ZodString;
|
|
44
45
|
createdBy: z__default.ZodString;
|
|
45
46
|
createdDate: z__default.ZodDate;
|
|
46
|
-
}, z__default.core.$strip
|
|
47
|
+
}, z__default.core.$strip>>>;
|
|
47
48
|
}, z__default.core.$strip>;
|
|
48
49
|
type GetFileThumbnailParams = z__default.infer<typeof GetFileThumbnailParamsSchema>;
|
|
49
50
|
declare const useGetFileThumbnail: (params: GetFileThumbnailParams, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
50
51
|
declare const GetFileParamsSchema: z__default.ZodObject<{
|
|
51
52
|
appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
|
|
52
|
-
meta: z__default.ZodObject<{
|
|
53
|
+
meta: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodObject<{
|
|
53
54
|
id: z__default.ZodUUID;
|
|
54
55
|
subId: z__default.ZodUUID;
|
|
55
56
|
appName: z__default.ZodString;
|
|
@@ -61,7 +62,7 @@ declare const GetFileParamsSchema: z__default.ZodObject<{
|
|
|
61
62
|
mimeType: z__default.ZodString;
|
|
62
63
|
createdBy: z__default.ZodString;
|
|
63
64
|
createdDate: z__default.ZodDate;
|
|
64
|
-
}, z__default.core.$strip
|
|
65
|
+
}, z__default.core.$strip>>>;
|
|
65
66
|
}, z__default.core.$strip>;
|
|
66
67
|
type GetFileParams = z__default.infer<typeof GetFileParamsSchema>;
|
|
67
68
|
declare const useGetFile: (params: GetFileParams, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
@@ -686,13 +687,6 @@ declare const useGetPeopleSoftCompanyGeneralManager: (companyCode: OptionalId, o
|
|
|
686
687
|
supervisorRecordNumber: number;
|
|
687
688
|
}, Error>;
|
|
688
689
|
|
|
689
|
-
type UseGetApprovalsOptions = Omit<DefinedInitialDataOptions<Array<Approval>>, "queryKey" | "queryFn" | "initialData">;
|
|
690
|
-
type UseGetApprovalOptions = Omit<DefinedInitialDataOptions<Approval>, "queryKey" | "queryFn" | "initialData">;
|
|
691
|
-
type UseCreateApprovalOptions = Omit<UseMutationOptions<Approval, Error, CreateApproval>, "mutationFn" | "onSettled">;
|
|
692
|
-
type UseApproveApprovalOptions = Omit<UseMutationOptions<Approval, Error, ApproveApproval>, "mutationFn" | "onSettled">;
|
|
693
|
-
type UseResubmitApprovalOptions = Omit<UseMutationOptions<Approval, Error, ResubmitApproval>, "mutationFn" | "onSettled">;
|
|
694
|
-
type UseWithdrawApprovalOptions = Omit<UseMutationOptions<void, Error, WithdrawApproval>, "mutationFn" | "onSettled">;
|
|
695
|
-
type UseCancelApprovalOptions = Omit<UseMutationOptions<void, Error, CancelApproval>, "mutationFn" | "onSettled">;
|
|
696
690
|
declare const GetApprovalsParamsSchema: z__default.ZodObject<{
|
|
697
691
|
appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
|
|
698
692
|
status: z__default.ZodOptional<z__default.ZodEnum<{
|
|
@@ -716,6 +710,573 @@ declare const GetApprovalsParamsSchema: z__default.ZodObject<{
|
|
|
716
710
|
}>>;
|
|
717
711
|
}, z__default.core.$strip>;
|
|
718
712
|
type GetApprovalsParams = z__default.infer<typeof GetApprovalsParamsSchema>;
|
|
713
|
+
declare const getApprovals: _tanstack_start_client_core.IsomorphicFn<[params?: {
|
|
714
|
+
appName?: string | undefined;
|
|
715
|
+
status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
|
|
716
|
+
approverEmployeeId?: string | undefined;
|
|
717
|
+
stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
718
|
+
} | undefined, signal?: AbortSignal | undefined], Promise<{
|
|
719
|
+
id: string;
|
|
720
|
+
applicationName: string;
|
|
721
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
722
|
+
emailBody: string;
|
|
723
|
+
created: Date;
|
|
724
|
+
createdBy: {
|
|
725
|
+
employeeId: string;
|
|
726
|
+
name: string;
|
|
727
|
+
email: string;
|
|
728
|
+
};
|
|
729
|
+
updated: Date;
|
|
730
|
+
updatedBy: {
|
|
731
|
+
employeeId: string;
|
|
732
|
+
name: string;
|
|
733
|
+
email: string;
|
|
734
|
+
};
|
|
735
|
+
approvalFlows: {
|
|
736
|
+
id: string;
|
|
737
|
+
approvalStage: number;
|
|
738
|
+
approvalSequence: number;
|
|
739
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
740
|
+
steps: {
|
|
741
|
+
id: string;
|
|
742
|
+
order: number;
|
|
743
|
+
approver: {
|
|
744
|
+
employeeId: string;
|
|
745
|
+
name: string;
|
|
746
|
+
email: string;
|
|
747
|
+
};
|
|
748
|
+
approverRole?: string | undefined;
|
|
749
|
+
actualApprover?: {
|
|
750
|
+
employeeId: string;
|
|
751
|
+
name: string;
|
|
752
|
+
email: string;
|
|
753
|
+
} | undefined;
|
|
754
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
755
|
+
resultDate?: Date | undefined;
|
|
756
|
+
resultComment?: string | undefined;
|
|
757
|
+
}[];
|
|
758
|
+
batchSequence?: number | undefined;
|
|
759
|
+
isActive?: boolean | undefined;
|
|
760
|
+
}[];
|
|
761
|
+
currentApprovers: {
|
|
762
|
+
employeeId: string;
|
|
763
|
+
name: string;
|
|
764
|
+
email: string;
|
|
765
|
+
}[];
|
|
766
|
+
number?: string | undefined;
|
|
767
|
+
type?: "Single" | "Batch" | undefined;
|
|
768
|
+
}[]>, Promise<{
|
|
769
|
+
id: string;
|
|
770
|
+
applicationName: string;
|
|
771
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
772
|
+
emailBody: string;
|
|
773
|
+
created: Date;
|
|
774
|
+
createdBy: {
|
|
775
|
+
employeeId: string;
|
|
776
|
+
name: string;
|
|
777
|
+
email: string;
|
|
778
|
+
};
|
|
779
|
+
updated: Date;
|
|
780
|
+
updatedBy: {
|
|
781
|
+
employeeId: string;
|
|
782
|
+
name: string;
|
|
783
|
+
email: string;
|
|
784
|
+
};
|
|
785
|
+
approvalFlows: {
|
|
786
|
+
id: string;
|
|
787
|
+
approvalStage: number;
|
|
788
|
+
approvalSequence: number;
|
|
789
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
790
|
+
steps: {
|
|
791
|
+
id: string;
|
|
792
|
+
order: number;
|
|
793
|
+
approver: {
|
|
794
|
+
employeeId: string;
|
|
795
|
+
name: string;
|
|
796
|
+
email: string;
|
|
797
|
+
};
|
|
798
|
+
approverRole?: string | undefined;
|
|
799
|
+
actualApprover?: {
|
|
800
|
+
employeeId: string;
|
|
801
|
+
name: string;
|
|
802
|
+
email: string;
|
|
803
|
+
} | undefined;
|
|
804
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
805
|
+
resultDate?: Date | undefined;
|
|
806
|
+
resultComment?: string | undefined;
|
|
807
|
+
}[];
|
|
808
|
+
batchSequence?: number | undefined;
|
|
809
|
+
isActive?: boolean | undefined;
|
|
810
|
+
}[];
|
|
811
|
+
currentApprovers: {
|
|
812
|
+
employeeId: string;
|
|
813
|
+
name: string;
|
|
814
|
+
email: string;
|
|
815
|
+
}[];
|
|
816
|
+
number?: string | undefined;
|
|
817
|
+
type?: "Single" | "Batch" | undefined;
|
|
818
|
+
}[]>>;
|
|
819
|
+
declare const getApproval: _tanstack_start_client_core.IsomorphicFn<[id: string, signal?: AbortSignal | undefined], Promise<{
|
|
820
|
+
id: string;
|
|
821
|
+
applicationName: string;
|
|
822
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
823
|
+
emailBody: string;
|
|
824
|
+
created: Date;
|
|
825
|
+
createdBy: {
|
|
826
|
+
employeeId: string;
|
|
827
|
+
name: string;
|
|
828
|
+
email: string;
|
|
829
|
+
};
|
|
830
|
+
updated: Date;
|
|
831
|
+
updatedBy: {
|
|
832
|
+
employeeId: string;
|
|
833
|
+
name: string;
|
|
834
|
+
email: string;
|
|
835
|
+
};
|
|
836
|
+
approvalFlows: {
|
|
837
|
+
id: string;
|
|
838
|
+
approvalStage: number;
|
|
839
|
+
approvalSequence: number;
|
|
840
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
841
|
+
steps: {
|
|
842
|
+
id: string;
|
|
843
|
+
order: number;
|
|
844
|
+
approver: {
|
|
845
|
+
employeeId: string;
|
|
846
|
+
name: string;
|
|
847
|
+
email: string;
|
|
848
|
+
};
|
|
849
|
+
approverRole?: string | undefined;
|
|
850
|
+
actualApprover?: {
|
|
851
|
+
employeeId: string;
|
|
852
|
+
name: string;
|
|
853
|
+
email: string;
|
|
854
|
+
} | undefined;
|
|
855
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
856
|
+
resultDate?: Date | undefined;
|
|
857
|
+
resultComment?: string | undefined;
|
|
858
|
+
}[];
|
|
859
|
+
batchSequence?: number | undefined;
|
|
860
|
+
isActive?: boolean | undefined;
|
|
861
|
+
}[];
|
|
862
|
+
currentApprovers: {
|
|
863
|
+
employeeId: string;
|
|
864
|
+
name: string;
|
|
865
|
+
email: string;
|
|
866
|
+
}[];
|
|
867
|
+
number?: string | undefined;
|
|
868
|
+
type?: "Single" | "Batch" | undefined;
|
|
869
|
+
}>, Promise<{
|
|
870
|
+
id: string;
|
|
871
|
+
applicationName: string;
|
|
872
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
873
|
+
emailBody: string;
|
|
874
|
+
created: Date;
|
|
875
|
+
createdBy: {
|
|
876
|
+
employeeId: string;
|
|
877
|
+
name: string;
|
|
878
|
+
email: string;
|
|
879
|
+
};
|
|
880
|
+
updated: Date;
|
|
881
|
+
updatedBy: {
|
|
882
|
+
employeeId: string;
|
|
883
|
+
name: string;
|
|
884
|
+
email: string;
|
|
885
|
+
};
|
|
886
|
+
approvalFlows: {
|
|
887
|
+
id: string;
|
|
888
|
+
approvalStage: number;
|
|
889
|
+
approvalSequence: number;
|
|
890
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
891
|
+
steps: {
|
|
892
|
+
id: string;
|
|
893
|
+
order: number;
|
|
894
|
+
approver: {
|
|
895
|
+
employeeId: string;
|
|
896
|
+
name: string;
|
|
897
|
+
email: string;
|
|
898
|
+
};
|
|
899
|
+
approverRole?: string | undefined;
|
|
900
|
+
actualApprover?: {
|
|
901
|
+
employeeId: string;
|
|
902
|
+
name: string;
|
|
903
|
+
email: string;
|
|
904
|
+
} | undefined;
|
|
905
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
906
|
+
resultDate?: Date | undefined;
|
|
907
|
+
resultComment?: string | undefined;
|
|
908
|
+
}[];
|
|
909
|
+
batchSequence?: number | undefined;
|
|
910
|
+
isActive?: boolean | undefined;
|
|
911
|
+
}[];
|
|
912
|
+
currentApprovers: {
|
|
913
|
+
employeeId: string;
|
|
914
|
+
name: string;
|
|
915
|
+
email: string;
|
|
916
|
+
}[];
|
|
917
|
+
number?: string | undefined;
|
|
918
|
+
type?: "Single" | "Batch" | undefined;
|
|
919
|
+
}>>;
|
|
920
|
+
declare const createApproval: _tanstack_start_client_core.IsomorphicFn<[data: {
|
|
921
|
+
id: string;
|
|
922
|
+
applicationName: string;
|
|
923
|
+
emailBody: string;
|
|
924
|
+
approvalFlows: {
|
|
925
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
926
|
+
approvalStage: number;
|
|
927
|
+
steps: {
|
|
928
|
+
approver: {
|
|
929
|
+
employeeId: string;
|
|
930
|
+
name: string;
|
|
931
|
+
email: string;
|
|
932
|
+
};
|
|
933
|
+
approverRole?: string | undefined;
|
|
934
|
+
}[];
|
|
935
|
+
batchSequence?: number | undefined;
|
|
936
|
+
}[];
|
|
937
|
+
number?: string | undefined;
|
|
938
|
+
type?: "Single" | "Batch" | undefined;
|
|
939
|
+
}], Promise<{
|
|
940
|
+
id: string;
|
|
941
|
+
applicationName: string;
|
|
942
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
943
|
+
emailBody: string;
|
|
944
|
+
created: Date;
|
|
945
|
+
createdBy: {
|
|
946
|
+
employeeId: string;
|
|
947
|
+
name: string;
|
|
948
|
+
email: string;
|
|
949
|
+
};
|
|
950
|
+
updated: Date;
|
|
951
|
+
updatedBy: {
|
|
952
|
+
employeeId: string;
|
|
953
|
+
name: string;
|
|
954
|
+
email: string;
|
|
955
|
+
};
|
|
956
|
+
approvalFlows: {
|
|
957
|
+
id: string;
|
|
958
|
+
approvalStage: number;
|
|
959
|
+
approvalSequence: number;
|
|
960
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
961
|
+
steps: {
|
|
962
|
+
id: string;
|
|
963
|
+
order: number;
|
|
964
|
+
approver: {
|
|
965
|
+
employeeId: string;
|
|
966
|
+
name: string;
|
|
967
|
+
email: string;
|
|
968
|
+
};
|
|
969
|
+
approverRole?: string | undefined;
|
|
970
|
+
actualApprover?: {
|
|
971
|
+
employeeId: string;
|
|
972
|
+
name: string;
|
|
973
|
+
email: string;
|
|
974
|
+
} | undefined;
|
|
975
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
976
|
+
resultDate?: Date | undefined;
|
|
977
|
+
resultComment?: string | undefined;
|
|
978
|
+
}[];
|
|
979
|
+
batchSequence?: number | undefined;
|
|
980
|
+
isActive?: boolean | undefined;
|
|
981
|
+
}[];
|
|
982
|
+
currentApprovers: {
|
|
983
|
+
employeeId: string;
|
|
984
|
+
name: string;
|
|
985
|
+
email: string;
|
|
986
|
+
}[];
|
|
987
|
+
number?: string | undefined;
|
|
988
|
+
type?: "Single" | "Batch" | undefined;
|
|
989
|
+
}>, Promise<{
|
|
990
|
+
id: string;
|
|
991
|
+
applicationName: string;
|
|
992
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
993
|
+
emailBody: string;
|
|
994
|
+
created: Date;
|
|
995
|
+
createdBy: {
|
|
996
|
+
employeeId: string;
|
|
997
|
+
name: string;
|
|
998
|
+
email: string;
|
|
999
|
+
};
|
|
1000
|
+
updated: Date;
|
|
1001
|
+
updatedBy: {
|
|
1002
|
+
employeeId: string;
|
|
1003
|
+
name: string;
|
|
1004
|
+
email: string;
|
|
1005
|
+
};
|
|
1006
|
+
approvalFlows: {
|
|
1007
|
+
id: string;
|
|
1008
|
+
approvalStage: number;
|
|
1009
|
+
approvalSequence: number;
|
|
1010
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
1011
|
+
steps: {
|
|
1012
|
+
id: string;
|
|
1013
|
+
order: number;
|
|
1014
|
+
approver: {
|
|
1015
|
+
employeeId: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
email: string;
|
|
1018
|
+
};
|
|
1019
|
+
approverRole?: string | undefined;
|
|
1020
|
+
actualApprover?: {
|
|
1021
|
+
employeeId: string;
|
|
1022
|
+
name: string;
|
|
1023
|
+
email: string;
|
|
1024
|
+
} | undefined;
|
|
1025
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
1026
|
+
resultDate?: Date | undefined;
|
|
1027
|
+
resultComment?: string | undefined;
|
|
1028
|
+
}[];
|
|
1029
|
+
batchSequence?: number | undefined;
|
|
1030
|
+
isActive?: boolean | undefined;
|
|
1031
|
+
}[];
|
|
1032
|
+
currentApprovers: {
|
|
1033
|
+
employeeId: string;
|
|
1034
|
+
name: string;
|
|
1035
|
+
email: string;
|
|
1036
|
+
}[];
|
|
1037
|
+
number?: string | undefined;
|
|
1038
|
+
type?: "Single" | "Batch" | undefined;
|
|
1039
|
+
}>>;
|
|
1040
|
+
declare const approveApproval: _tanstack_start_client_core.IsomorphicFn<[data: {
|
|
1041
|
+
id: string;
|
|
1042
|
+
result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
|
|
1043
|
+
emailBody: string;
|
|
1044
|
+
resultComment?: string | undefined;
|
|
1045
|
+
}], Promise<{
|
|
1046
|
+
id: string;
|
|
1047
|
+
applicationName: string;
|
|
1048
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
1049
|
+
emailBody: string;
|
|
1050
|
+
created: Date;
|
|
1051
|
+
createdBy: {
|
|
1052
|
+
employeeId: string;
|
|
1053
|
+
name: string;
|
|
1054
|
+
email: string;
|
|
1055
|
+
};
|
|
1056
|
+
updated: Date;
|
|
1057
|
+
updatedBy: {
|
|
1058
|
+
employeeId: string;
|
|
1059
|
+
name: string;
|
|
1060
|
+
email: string;
|
|
1061
|
+
};
|
|
1062
|
+
approvalFlows: {
|
|
1063
|
+
id: string;
|
|
1064
|
+
approvalStage: number;
|
|
1065
|
+
approvalSequence: number;
|
|
1066
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
1067
|
+
steps: {
|
|
1068
|
+
id: string;
|
|
1069
|
+
order: number;
|
|
1070
|
+
approver: {
|
|
1071
|
+
employeeId: string;
|
|
1072
|
+
name: string;
|
|
1073
|
+
email: string;
|
|
1074
|
+
};
|
|
1075
|
+
approverRole?: string | undefined;
|
|
1076
|
+
actualApprover?: {
|
|
1077
|
+
employeeId: string;
|
|
1078
|
+
name: string;
|
|
1079
|
+
email: string;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
1082
|
+
resultDate?: Date | undefined;
|
|
1083
|
+
resultComment?: string | undefined;
|
|
1084
|
+
}[];
|
|
1085
|
+
batchSequence?: number | undefined;
|
|
1086
|
+
isActive?: boolean | undefined;
|
|
1087
|
+
}[];
|
|
1088
|
+
currentApprovers: {
|
|
1089
|
+
employeeId: string;
|
|
1090
|
+
name: string;
|
|
1091
|
+
email: string;
|
|
1092
|
+
}[];
|
|
1093
|
+
number?: string | undefined;
|
|
1094
|
+
type?: "Single" | "Batch" | undefined;
|
|
1095
|
+
}>, Promise<{
|
|
1096
|
+
id: string;
|
|
1097
|
+
applicationName: string;
|
|
1098
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
1099
|
+
emailBody: string;
|
|
1100
|
+
created: Date;
|
|
1101
|
+
createdBy: {
|
|
1102
|
+
employeeId: string;
|
|
1103
|
+
name: string;
|
|
1104
|
+
email: string;
|
|
1105
|
+
};
|
|
1106
|
+
updated: Date;
|
|
1107
|
+
updatedBy: {
|
|
1108
|
+
employeeId: string;
|
|
1109
|
+
name: string;
|
|
1110
|
+
email: string;
|
|
1111
|
+
};
|
|
1112
|
+
approvalFlows: {
|
|
1113
|
+
id: string;
|
|
1114
|
+
approvalStage: number;
|
|
1115
|
+
approvalSequence: number;
|
|
1116
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
1117
|
+
steps: {
|
|
1118
|
+
id: string;
|
|
1119
|
+
order: number;
|
|
1120
|
+
approver: {
|
|
1121
|
+
employeeId: string;
|
|
1122
|
+
name: string;
|
|
1123
|
+
email: string;
|
|
1124
|
+
};
|
|
1125
|
+
approverRole?: string | undefined;
|
|
1126
|
+
actualApprover?: {
|
|
1127
|
+
employeeId: string;
|
|
1128
|
+
name: string;
|
|
1129
|
+
email: string;
|
|
1130
|
+
} | undefined;
|
|
1131
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
1132
|
+
resultDate?: Date | undefined;
|
|
1133
|
+
resultComment?: string | undefined;
|
|
1134
|
+
}[];
|
|
1135
|
+
batchSequence?: number | undefined;
|
|
1136
|
+
isActive?: boolean | undefined;
|
|
1137
|
+
}[];
|
|
1138
|
+
currentApprovers: {
|
|
1139
|
+
employeeId: string;
|
|
1140
|
+
name: string;
|
|
1141
|
+
email: string;
|
|
1142
|
+
}[];
|
|
1143
|
+
number?: string | undefined;
|
|
1144
|
+
type?: "Single" | "Batch" | undefined;
|
|
1145
|
+
}>>;
|
|
1146
|
+
declare const resubmitApproval: _tanstack_start_client_core.IsomorphicFn<[data: {
|
|
1147
|
+
id: string;
|
|
1148
|
+
approvalFlows: {
|
|
1149
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
1150
|
+
approvalStage: number;
|
|
1151
|
+
steps: {
|
|
1152
|
+
approver: {
|
|
1153
|
+
employeeId: string;
|
|
1154
|
+
name: string;
|
|
1155
|
+
email: string;
|
|
1156
|
+
};
|
|
1157
|
+
approverRole?: string | undefined;
|
|
1158
|
+
}[];
|
|
1159
|
+
batchSequence?: number | undefined;
|
|
1160
|
+
}[];
|
|
1161
|
+
}], Promise<{
|
|
1162
|
+
id: string;
|
|
1163
|
+
applicationName: string;
|
|
1164
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
1165
|
+
emailBody: string;
|
|
1166
|
+
created: Date;
|
|
1167
|
+
createdBy: {
|
|
1168
|
+
employeeId: string;
|
|
1169
|
+
name: string;
|
|
1170
|
+
email: string;
|
|
1171
|
+
};
|
|
1172
|
+
updated: Date;
|
|
1173
|
+
updatedBy: {
|
|
1174
|
+
employeeId: string;
|
|
1175
|
+
name: string;
|
|
1176
|
+
email: string;
|
|
1177
|
+
};
|
|
1178
|
+
approvalFlows: {
|
|
1179
|
+
id: string;
|
|
1180
|
+
approvalStage: number;
|
|
1181
|
+
approvalSequence: number;
|
|
1182
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
1183
|
+
steps: {
|
|
1184
|
+
id: string;
|
|
1185
|
+
order: number;
|
|
1186
|
+
approver: {
|
|
1187
|
+
employeeId: string;
|
|
1188
|
+
name: string;
|
|
1189
|
+
email: string;
|
|
1190
|
+
};
|
|
1191
|
+
approverRole?: string | undefined;
|
|
1192
|
+
actualApprover?: {
|
|
1193
|
+
employeeId: string;
|
|
1194
|
+
name: string;
|
|
1195
|
+
email: string;
|
|
1196
|
+
} | undefined;
|
|
1197
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
1198
|
+
resultDate?: Date | undefined;
|
|
1199
|
+
resultComment?: string | undefined;
|
|
1200
|
+
}[];
|
|
1201
|
+
batchSequence?: number | undefined;
|
|
1202
|
+
isActive?: boolean | undefined;
|
|
1203
|
+
}[];
|
|
1204
|
+
currentApprovers: {
|
|
1205
|
+
employeeId: string;
|
|
1206
|
+
name: string;
|
|
1207
|
+
email: string;
|
|
1208
|
+
}[];
|
|
1209
|
+
number?: string | undefined;
|
|
1210
|
+
type?: "Single" | "Batch" | undefined;
|
|
1211
|
+
}>, Promise<{
|
|
1212
|
+
id: string;
|
|
1213
|
+
applicationName: string;
|
|
1214
|
+
status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
|
|
1215
|
+
emailBody: string;
|
|
1216
|
+
created: Date;
|
|
1217
|
+
createdBy: {
|
|
1218
|
+
employeeId: string;
|
|
1219
|
+
name: string;
|
|
1220
|
+
email: string;
|
|
1221
|
+
};
|
|
1222
|
+
updated: Date;
|
|
1223
|
+
updatedBy: {
|
|
1224
|
+
employeeId: string;
|
|
1225
|
+
name: string;
|
|
1226
|
+
email: string;
|
|
1227
|
+
};
|
|
1228
|
+
approvalFlows: {
|
|
1229
|
+
id: string;
|
|
1230
|
+
approvalStage: number;
|
|
1231
|
+
approvalSequence: number;
|
|
1232
|
+
stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
|
|
1233
|
+
steps: {
|
|
1234
|
+
id: string;
|
|
1235
|
+
order: number;
|
|
1236
|
+
approver: {
|
|
1237
|
+
employeeId: string;
|
|
1238
|
+
name: string;
|
|
1239
|
+
email: string;
|
|
1240
|
+
};
|
|
1241
|
+
approverRole?: string | undefined;
|
|
1242
|
+
actualApprover?: {
|
|
1243
|
+
employeeId: string;
|
|
1244
|
+
name: string;
|
|
1245
|
+
email: string;
|
|
1246
|
+
} | undefined;
|
|
1247
|
+
result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
|
|
1248
|
+
resultDate?: Date | undefined;
|
|
1249
|
+
resultComment?: string | undefined;
|
|
1250
|
+
}[];
|
|
1251
|
+
batchSequence?: number | undefined;
|
|
1252
|
+
isActive?: boolean | undefined;
|
|
1253
|
+
}[];
|
|
1254
|
+
currentApprovers: {
|
|
1255
|
+
employeeId: string;
|
|
1256
|
+
name: string;
|
|
1257
|
+
email: string;
|
|
1258
|
+
}[];
|
|
1259
|
+
number?: string | undefined;
|
|
1260
|
+
type?: "Single" | "Batch" | undefined;
|
|
1261
|
+
}>>;
|
|
1262
|
+
declare const withdrawApproval: _tanstack_start_client_core.IsomorphicFn<[data: {
|
|
1263
|
+
id: string;
|
|
1264
|
+
comment: string;
|
|
1265
|
+
emailBody: string;
|
|
1266
|
+
}], Promise<void>, Promise<void>>;
|
|
1267
|
+
declare const cancelApproval: _tanstack_start_client_core.IsomorphicFn<[data: {
|
|
1268
|
+
id: string;
|
|
1269
|
+
comment: string;
|
|
1270
|
+
emailBody: string;
|
|
1271
|
+
}], Promise<void>, Promise<void>>;
|
|
1272
|
+
|
|
1273
|
+
type UseGetApprovalsOptions = Omit<DefinedInitialDataOptions<Array<Approval>>, "queryKey" | "queryFn" | "initialData">;
|
|
1274
|
+
type UseGetApprovalOptions = Omit<DefinedInitialDataOptions<Approval>, "queryKey" | "queryFn" | "initialData">;
|
|
1275
|
+
type UseCreateApprovalOptions = Omit<UseMutationOptions<Approval, Error, CreateApproval>, "mutationFn" | "onSettled">;
|
|
1276
|
+
type UseApproveApprovalOptions = Omit<UseMutationOptions<Approval, Error, ApproveApproval>, "mutationFn" | "onSettled">;
|
|
1277
|
+
type UseResubmitApprovalOptions = Omit<UseMutationOptions<Approval, Error, ResubmitApproval>, "mutationFn" | "onSettled">;
|
|
1278
|
+
type UseWithdrawApprovalOptions = Omit<UseMutationOptions<void, Error, WithdrawApproval>, "mutationFn" | "onSettled">;
|
|
1279
|
+
type UseCancelApprovalOptions = Omit<UseMutationOptions<void, Error, CancelApproval>, "mutationFn" | "onSettled">;
|
|
719
1280
|
declare const useGetApprovals: (params?: GetApprovalsParams, options?: UseGetApprovalsOptions) => _tanstack_react_query.UseQueryResult<{
|
|
720
1281
|
id: string;
|
|
721
1282
|
applicationName: string;
|
|
@@ -1021,4 +1582,4 @@ declare const useCancelApproval: (options?: UseCancelApprovalOptions) => _tansta
|
|
|
1021
1582
|
emailBody: string;
|
|
1022
1583
|
}, unknown>;
|
|
1023
1584
|
|
|
1024
|
-
export { type
|
|
1585
|
+
export { type GetFileMetasParams, GetFileMetasParamsSchema, type GetFileParams, GetFileParamsSchema, type GetFileThumbnailParams, GetFileThumbnailParamsSchema, approveApproval, cancelApproval, createApproval, getApproval, getApprovals, resubmitApproval, useApproveApproval, useCancelApproval, useCreateApproval, useDeleteFile, useDeleteFiles, useDownloadFile, useGetApproval, useGetApprovals, useGetFile, useGetFileMetas, useGetFileThumbnail, useGetPeopleSoftActiveEmployees, useGetPeopleSoftCompanyGeneralManager, useGetPeopleSoftDepartmentById, useGetPeopleSoftDepartmentEmployees, useGetPeopleSoftDepartmentManager, useGetPeopleSoftDepartments, useGetPeopleSoftEmployeeById, useGetPeopleSoftEmployeeGeneralManager, useGetPeopleSoftEmployeeManager, useGetPeopleSoftEmployeeSubordinates, useGetPeopleSoftEmployeeSupervisor, useGetPeopleSoftEmployees, useGetPeopleSoftEmployeesSearch, useGetPeopleSoftPreviousEmployeeIds, useOpenFile, useResubmitApproval, useUpdateFileMeta, useUploadFile, useWithdrawApproval, withdrawApproval };
|