UNPKG

wcz-layout

Version:

167 lines 6.93 kB
import { t as FileMeta } from "./FileMeta-Be9viU7D.mjs"; import { a as Approval, c as ApproveApprovalSchema, f as CreateApprovalSchema, g as WithdrawApprovalSchema, m as ResubmitApprovalSchema, r as Department, t as Employee, u as CancelApprovalSchema } from "./Employee-iepWeWhO.mjs"; import { z as z$1 } from "zod"; //#region src/data/server/file.d.ts declare const GetFileMetasSchema: z$1.ZodObject<{ appName: z$1.ZodString; subId: z$1.ZodUUID; }, z$1.core.$strip>; declare const FileSchema: z$1.ZodObject<{ appName: z$1.ZodString; id: z$1.ZodUUID; }, z$1.core.$strip>; declare const UpdateFileMetaSchema: z$1.ZodObject<{ id: z$1.ZodUUID; subId: z$1.ZodUUID; appName: z$1.ZodString; fileExtension: z$1.ZodString; fileSize: z$1.ZodNumber; mediaSubType: z$1.ZodString; mediaType: z$1.ZodString; mimeType: z$1.ZodString; createdBy: z$1.ZodString; createdDate: z$1.ZodDate; fileName: z$1.ZodString; }, z$1.core.$strip>; declare const DeleteFileSchema: z$1.ZodObject<{ appName: z$1.ZodString; id: z$1.ZodUUID; }, z$1.core.$strip>; declare const BatchDeleteFilesSchema: z$1.ZodObject<{ appName: z$1.ZodString; subId: z$1.ZodUUID; }, z$1.core.$strip>; interface UploadFileResult { id: string; appName: string; subId: string; fileName: string; } declare const UploadFileMetaSchema: z$1.ZodObject<{ appName: z$1.ZodString; subId: z$1.ZodUUID; file: z$1.ZodCustom<File, File>; }, z$1.core.$strip>; declare const getFileMetas: ({ data }: { data: z$1.input<typeof GetFileMetasSchema>; }) => Promise<Array<FileMeta>>; declare const getFileThumbnail: ({ data }: { data: z$1.input<typeof FileSchema>; }) => Promise<Response>; declare const getFile: ({ data }: { data: z$1.input<typeof FileSchema>; }) => Promise<Response>; declare const downloadFile: ({ data }: { data: z$1.input<typeof FileSchema>; }) => Promise<Response>; declare const updateFileMeta: ({ data }: { data: z$1.input<typeof UpdateFileMetaSchema>; }) => Promise<void>; declare const deleteFile: ({ data }: { data: z$1.input<typeof DeleteFileSchema>; }) => Promise<void>; declare const batchDeleteFiles: ({ data }: { data: z$1.input<typeof BatchDeleteFilesSchema>; }) => Promise<void>; declare const uploadFile: ({ data }: { data: z$1.input<typeof UploadFileMetaSchema>; }) => Promise<UploadFileResult>; //#endregion //#region src/data/server/approval.d.ts declare const GetApprovalsSchema: z$1.ZodObject<{ appName: z$1.ZodString; status: z$1.ZodOptional<z$1.ZodEnum<{ Approved: "Approved"; Cancelled: "Cancelled"; PartiallyApproved: "PartiallyApproved"; Rejected: "Rejected"; WaitingForApproval: "WaitingForApproval"; Withdrawn: "Withdrawn"; }>>; approverEmployeeId: z$1.ZodOptional<z$1.ZodString>; stepResult: z$1.ZodOptional<z$1.ZodEnum<{ Approved: "Approved"; Cancelled: "Cancelled"; FutureApproval: "FutureApproval"; NotAvailable: "NotAvailable"; Rejected: "Rejected"; Skipped: "Skipped"; WaitingForApproval: "WaitingForApproval"; Withdrawn: "Withdrawn"; }>>; }, z$1.core.$strip>; declare const GetApprovalSchema: z$1.ZodObject<{ id: z$1.ZodUUID; }, z$1.core.$strip>; declare const getApprovals: ({ data }: { data: z$1.input<typeof GetApprovalsSchema>; }) => Promise<Array<Approval>>; declare const getApproval: ({ data }: { data: z$1.input<typeof GetApprovalSchema>; }) => Promise<Approval>; declare const createApproval: ({ data }: { data: z$1.input<typeof CreateApprovalSchema>; }) => Promise<Approval>; declare const approveApproval: ({ data }: { data: z$1.input<typeof ApproveApprovalSchema>; }) => Promise<Approval>; declare const resubmitApproval: ({ data }: { data: z$1.input<typeof ResubmitApprovalSchema>; }) => Promise<Approval>; declare const withdrawApproval: ({ data }: { data: z$1.input<typeof WithdrawApprovalSchema>; }) => Promise<void>; declare const cancelApproval: ({ data }: { data: z$1.input<typeof CancelApprovalSchema>; }) => Promise<void>; //#endregion //#region src/data/server/peoplesoft.d.ts declare const SearchEmployeesSchema: z$1.ZodObject<{ searchTerm: z$1.ZodString; }, z$1.core.$strip>; declare const EmployeeIdSchema: z$1.ZodObject<{ employeeId: z$1.ZodString; }, z$1.core.$strip>; declare const DepartmentIdSchema: z$1.ZodObject<{ departmentId: z$1.ZodString; }, z$1.core.$strip>; declare const CompanyCodeSchema: z$1.ZodObject<{ companyCode: z$1.ZodString; }, z$1.core.$strip>; declare const searchEmployees: ({ data }: { data: z$1.input<typeof SearchEmployeesSchema>; }) => Promise<Array<Employee>>; declare const getEmployees: () => Promise<Array<Employee>>; declare const getActiveEmployees: () => Promise<Array<Employee>>; declare const getEmployeeByEmployeeId: ({ data }: { data: z$1.input<typeof EmployeeIdSchema>; }) => Promise<Employee>; declare const getPreviousEmployeeIds: () => Promise<Array<Employee>>; declare const getEmployeeSupervisor: ({ data }: { data: z$1.input<typeof EmployeeIdSchema>; }) => Promise<Employee>; declare const getEmployeeSubordinates: ({ data }: { data: z$1.input<typeof EmployeeIdSchema>; }) => Promise<Array<Employee>>; declare const getEmployeeManager: ({ data }: { data: z$1.input<typeof EmployeeIdSchema>; }) => Promise<Employee>; declare const getEmployeeGeneralManager: ({ data }: { data: z$1.input<typeof EmployeeIdSchema>; }) => Promise<Employee>; declare const getDepartments: () => Promise<Array<Department>>; declare const getDepartmentById: ({ data }: { data: z$1.input<typeof DepartmentIdSchema>; }) => Promise<Department>; declare const getDepartmentManager: ({ data }: { data: z$1.input<typeof DepartmentIdSchema>; }) => Promise<Employee>; declare const getDepartmentEmployees: ({ data }: { data: z$1.input<typeof DepartmentIdSchema>; }) => Promise<Array<Employee>>; declare const getCompanyGeneralManager: ({ data }: { data: z$1.input<typeof CompanyCodeSchema>; }) => Promise<Employee>; //#endregion export { UpdateFileMetaSchema as A, uploadFile as B, createApproval as C, withdrawApproval as D, resubmitApproval as E, downloadFile as F, getFile as I, getFileMetas as L, UploadFileResult as M, batchDeleteFiles as N, FileSchema as O, deleteFile as P, getFileThumbnail as R, cancelApproval as S, getApprovals as T, getPreviousEmployeeIds as _, getActiveEmployees as a, GetApprovalsSchema as b, getDepartmentEmployees as c, getEmployeeByEmployeeId as d, getEmployeeGeneralManager as f, getEmployees as g, getEmployeeSupervisor as h, SearchEmployeesSchema as i, UploadFileMetaSchema as j, GetFileMetasSchema as k, getDepartmentManager as l, getEmployeeSubordinates as m, DepartmentIdSchema as n, getCompanyGeneralManager as o, getEmployeeManager as p, EmployeeIdSchema as r, getDepartmentById as s, CompanyCodeSchema as t, getDepartments as u, searchEmployees as v, getApproval as w, approveApproval as x, GetApprovalSchema as y, updateFileMeta as z }; //# sourceMappingURL=peoplesoft-4pOmhLn5.d.mts.map