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.
Files changed (73) hide show
  1. package/dist/{Approval-Cx-EUX2I.js → Approval-BTJTexDo.js} +1 -1
  2. package/dist/{Approval-Cx-EUX2I.js.map → Approval-BTJTexDo.js.map} +1 -1
  3. package/dist/{DialogsContext-DkePghS6.js → DialogsContext-DLqA8RJ_.js} +1 -1
  4. package/dist/{DialogsContext-DkePghS6.js.map → DialogsContext-DLqA8RJ_.js.map} +1 -1
  5. package/dist/{Email-CCL5C-C0.js → Email-C9qwj7GD.js} +1 -1
  6. package/dist/{Email-CCL5C-C0.js.map → Email-C9qwj7GD.js.map} +1 -1
  7. package/dist/{FileMeta-DCFvkQQC.js → FileMeta-DDqUju1Y.js} +1 -1
  8. package/dist/{FileMeta-DCFvkQQC.js.map → FileMeta-DDqUju1Y.js.map} +1 -1
  9. package/dist/{FileMeta-DrEMs4Gq.d.ts → FileMeta-ILLTOjaM.d.ts} +1 -1
  10. package/dist/{NotificationContext-FQRaNZRx.js → NotificationContext-CgwUOeW0.js} +1 -1
  11. package/dist/{NotificationContext-FQRaNZRx.js.map → NotificationContext-CgwUOeW0.js.map} +1 -1
  12. package/dist/{RouterListItemButton-p9U4Z0SW.js → RouterListItemButton-owZVvuC_.js} +1 -1
  13. package/dist/{RouterListItemButton-p9U4Z0SW.js.map → RouterListItemButton-owZVvuC_.js.map} +1 -1
  14. package/dist/{User-DVU1zqml.d.ts → User-CT_IDGuG.d.ts} +1 -1
  15. package/dist/{apiMiddleware-CwCEvg3r.js → apiMiddleware-CtY4rOFU.js} +2 -2
  16. package/dist/{apiMiddleware-CwCEvg3r.js.map → apiMiddleware-CtY4rOFU.js.map} +1 -1
  17. package/dist/components.d.ts +4 -5
  18. package/dist/components.js +3 -3
  19. package/dist/components.js.map +1 -1
  20. package/dist/data/client.d.ts +49 -51
  21. package/dist/data/client.js +3 -3
  22. package/dist/data/client.js.map +1 -1
  23. package/dist/data/server.d.ts +14 -18
  24. package/dist/data/server.js +4 -4
  25. package/dist/data/server.js.map +1 -1
  26. package/dist/data.js +1 -1
  27. package/dist/{env-Dgbk8SQN.js → env-ON-cyE3N.js} +1 -1
  28. package/dist/{env-Dgbk8SQN.js.map → env-ON-cyE3N.js.map} +1 -1
  29. package/dist/{file-Dv1BsCsM.js → file-BUdLb7H1.js} +5 -5
  30. package/dist/{file-Dv1BsCsM.js.map → file-BUdLb7H1.js.map} +1 -1
  31. package/dist/{file-DcIx8gtK.js → file-Dsht7yOP.js} +3 -3
  32. package/dist/{file-DcIx8gtK.js.map → file-Dsht7yOP.js.map} +1 -1
  33. package/dist/hooks.d.ts +48 -51
  34. package/dist/hooks.js +3 -3
  35. package/dist/hooks.js.map +1 -1
  36. package/dist/index.d.ts +4 -3
  37. package/dist/index.js +120 -97
  38. package/dist/index.js.map +1 -1
  39. package/dist/middleware.d.ts +9 -11
  40. package/dist/middleware.js +3 -3
  41. package/dist/middleware.js.map +1 -1
  42. package/dist/models.d.ts +2 -2
  43. package/dist/models.js +3 -3
  44. package/dist/models.js.map +1 -1
  45. package/dist/{msalClient-C2LlaBzj.d.ts → msalClient-CYiQAFnY.d.ts} +3 -4
  46. package/dist/{msalServer-B3AztUoH.js → msalServer-B9sVqpQ2.js} +2 -2
  47. package/dist/{msalServer-B3AztUoH.js.map → msalServer-B9sVqpQ2.js.map} +1 -1
  48. package/dist/{peoplesoft--FioEbzn.js → peoplesoft-BCjRje6b.js} +3 -3
  49. package/dist/{peoplesoft--FioEbzn.js.map → peoplesoft-BCjRje6b.js.map} +1 -1
  50. package/dist/{peoplesoft-BG_AV3zS.d.ts → peoplesoft-Cze2ngGd.d.ts} +58 -60
  51. package/dist/{queryClient-1OJ5Va3i.js → queryClient-D64McLhZ.js} +1 -1
  52. package/dist/{queryClient-1OJ5Va3i.js.map → queryClient-D64McLhZ.js.map} +1 -1
  53. package/dist/{useDialogs-imgl4bIl.js → useDialogs-BJVhBr8S.js} +2 -2
  54. package/dist/useDialogs-BJVhBr8S.js.map +1 -0
  55. package/dist/{utils-B7LPctqx.js → utils-BMUmv2ws.js} +3 -2
  56. package/dist/{utils-B7LPctqx.js.map → utils-BMUmv2ws.js.map} +1 -1
  57. package/dist/{utils-DgrP27XP.d.ts → utils-CvvyM8Xw.d.ts} +2 -2
  58. package/dist/utils.d.ts +2 -2
  59. package/dist/utils.js +2 -2
  60. package/dist/vite.js +1 -1
  61. package/dist/vite.js.map +1 -1
  62. package/package.json +5 -5
  63. package/skills/services/SKILL.md +2 -1
  64. package/skills/start/SKILL.md +12 -13
  65. package/dist/useDialogs-imgl4bIl.js.map +0 -1
  66. package/skills/start/steps/02-dependency-check.md +0 -11
  67. /package/skills/start/steps/{03-project-name-setup.md → 02-project-name-setup.md} +0 -0
  68. /package/skills/start/steps/{04-apm-setup.md → 03-apm-setup.md} +0 -0
  69. /package/skills/start/steps/{05-database-setup.md → 04-database-setup.md} +0 -0
  70. /package/skills/start/steps/{06-entra-setup.md → 05-entra-setup.md} +0 -0
  71. /package/skills/start/steps/{07-vault-setup.md → 06-vault-setup.md} +0 -0
  72. /package/skills/start/steps/{08-generate-favicon.md → 07-generate-favicon.md} +0 -0
  73. /package/skills/start/steps/{09-commit.md → 08-commit.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","names":["createMiddleware","jose","scopes","definedScopes","permissions","TokenPayload","User","serverEnv","getAccessToken","buildUser","requiredAuthenticationMiddleware","server","user","next","request","accessToken","headers","get","startsWith","Response","json","message","status","tokenPayload","verifyToken","substring","error","Error","context","publicAuthenticationMiddleware","authenticationMiddleware","options","optional","authorizationMiddleware","permissionKey","middleware","hasPermission","name","serverFnAccessTokenMiddleware","scopeKey","type","client","Authorization","token","Promise","payload","jwtVerify","getJWKS","issuer","ENTRA_TENANT_ID","audience","ENTRA_CLIENT_ID","jwksCache","ReturnType","createRemoteJWKSet","URL","createMiddleware","z","validationMiddleware","schema","ZodType","T","server","next","request","json","result","safeParse","success","fieldErrors","flattenError","error","firstFieldName","Object","keys","firstErrorMessage","name","charAt","toUpperCase","slice","message","replace","toLowerCase","Response","status","context","data"],"sources":["../src/middleware/authMiddleware.ts","../src/middleware/validationMiddleware.ts","../src/middleware/csrfMiddleware.ts"],"sourcesContent":["import { createMiddleware } from \"@tanstack/react-start\";\nimport * as jose from \"jose\";\nimport type { scopes as definedScopes, permissions } from \"virtual:wcz-layout\";\nimport type { TokenPayload } from \"~/models/TokenPayload\";\nimport type { User } from \"~/models/User\";\nimport { serverEnv } from \"~/env\";\nimport { getAccessToken } from \"~/lib/auth/msalClient\";\nimport { buildUser } from \"~/lib/utils\";\n\nconst requiredAuthenticationMiddleware = createMiddleware().server<{ user: User }>(\n async ({ next, request }) => {\n const accessToken = request.headers.get(\"Authorization\");\n\n if (!accessToken?.startsWith(\"Bearer\"))\n throw Response.json(\n { message: \"Unauthorized: Invalid Authorization header\" },\n { status: 401 },\n );\n\n let tokenPayload: TokenPayload;\n try {\n tokenPayload = await verifyToken(accessToken.substring(7));\n } catch (error) {\n throw Response.json(\n { message: error instanceof Error ? error.message : \"Unauthorized: Invalid access token\" },\n { status: 401 },\n );\n }\n\n const user = buildUser(tokenPayload);\n\n return next({ context: { user } });\n },\n);\n\nconst publicAuthenticationMiddleware = createMiddleware().server<{ user: User | null }>(\n async ({ next, request }) => {\n const accessToken = request.headers.get(\"Authorization\");\n\n if (!accessToken?.startsWith(\"Bearer\")) return next({ context: { user: null } });\n\n let tokenPayload: TokenPayload;\n try {\n tokenPayload = await verifyToken(accessToken.substring(7));\n } catch (error) {\n throw Response.json(\n { message: error instanceof Error ? error.message : \"Unauthorized: Invalid access token\" },\n { status: 401 },\n );\n }\n\n const user = buildUser(tokenPayload);\n\n return next({ context: { user } });\n },\n);\n\nexport function authenticationMiddleware(options?: {\n optional?: false;\n}): typeof requiredAuthenticationMiddleware;\n\nexport function authenticationMiddleware(options: {\n optional: true;\n}): typeof publicAuthenticationMiddleware;\n\nexport function authenticationMiddleware(options: {\n optional: boolean;\n}): typeof requiredAuthenticationMiddleware | typeof publicAuthenticationMiddleware;\n\nexport function authenticationMiddleware(options?: { optional?: boolean }) {\n return options?.optional ? publicAuthenticationMiddleware : requiredAuthenticationMiddleware;\n}\n\nexport const authorizationMiddleware = (permissionKey: keyof typeof permissions) =>\n createMiddleware()\n .middleware([authenticationMiddleware()])\n .server(async ({ next, context }) => {\n if (context.user.hasPermission(permissionKey)) return next();\n throw Response.json(\n {\n message: `Forbidden: User ${context.user.name} is not authorized to access this resource`,\n },\n { status: 403 },\n );\n });\n\nexport const serverFnAccessTokenMiddleware = (scopeKey: keyof typeof definedScopes) =>\n createMiddleware({ type: \"function\" }).client(async ({ next }) => {\n try {\n const accessToken = await getAccessToken(scopeKey);\n return next({\n headers: {\n Authorization: `Bearer ${accessToken}`,\n },\n });\n } catch {\n return next();\n }\n });\n\nasync function verifyToken(token: string): Promise<TokenPayload> {\n const { payload } = await jose.jwtVerify(token, getJWKS(), {\n issuer: `https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}/v2.0`,\n audience: serverEnv.ENTRA_CLIENT_ID,\n });\n return payload as unknown as TokenPayload;\n}\n\nlet jwksCache: ReturnType<typeof jose.createRemoteJWKSet> | null = null;\n\nfunction getJWKS() {\n jwksCache ??= jose.createRemoteJWKSet(\n new URL(`https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}/discovery/v2.0/keys`),\n );\n return jwksCache;\n}\n","import { createMiddleware } from \"@tanstack/react-start\";\nimport { z } from \"zod\";\n\nexport const validationMiddleware = <T>(schema: z.ZodType<T>) =>\n createMiddleware().server(async ({ next, request }) => {\n const json = await request.json();\n const result = schema.safeParse(json);\n if (!result.success) {\n const { fieldErrors } = z.flattenError(result.error);\n const firstFieldName = Object.keys(fieldErrors)[0];\n const firstErrorMessage = fieldErrors[firstFieldName as keyof typeof fieldErrors]?.[0];\n\n if (firstFieldName && firstErrorMessage) {\n const name = firstFieldName.charAt(0).toUpperCase() + firstFieldName.slice(1);\n const message = firstErrorMessage.replace(/^Invalid input:\\s*/i, \"\").toLowerCase();\n return Response.json({ message: `${name} - ${message}` }, { status: 400 });\n }\n\n return Response.json({ message: \"Validation failed\" }, { status: 400 });\n }\n return await next({ context: { data: result.data } });\n });\n","import { createCsrfMiddleware } from \"@tanstack/react-start\";\n\nexport const csrfMiddleware = createCsrfMiddleware({\n filter: (ctx) => ctx.handlerType === \"serverFn\",\n});\n"],"mappings":";;;;;;;AASA,MAAMU,mCAAmCV,kBAAkB,CAACW,OAC1D,OAAO,EAAEE,MAAMC,cAAc;CAC3B,MAAMC,cAAcD,QAAQE,QAAQC,IAAI,gBAAgB;CAExD,IAAI,CAACF,aAAaG,WAAW,SAAS,EACpC,MAAMC,SAASC,KACb,EAAEC,SAAS,8CAA8C,EACzD,EAAEC,QAAQ,KACZ,CAAC;CAEH,IAAIC;CACJ,IAAI;EACFA,eAAe,MAAMC,YAAYT,YAAYU,UAAU,EAAE,CAAC;UACnDC,OAAO;EACd,MAAMP,SAASC,KACb,EAAEC,SAASK,iBAAiBC,QAAQD,MAAML,UAAU,sCAAsC,EAC1F,EAAEC,QAAQ,KACZ,CAAC;;CAKH,OAAOT,KAAK,EAAEe,SAAS,EAAEhB,MAFZH,UAAUc,aAEEX,EAAK,EAAG,CAAC;EAErC;AAED,MAAMiB,iCAAiC7B,kBAAkB,CAACW,OACxD,OAAO,EAAEE,MAAMC,cAAc;CAC3B,MAAMC,cAAcD,QAAQE,QAAQC,IAAI,gBAAgB;CAExD,IAAI,CAACF,aAAaG,WAAW,SAAS,EAAE,OAAOL,KAAK,EAAEe,SAAS,EAAEhB,MAAM,MAAK,EAAG,CAAC;CAEhF,IAAIW;CACJ,IAAI;EACFA,eAAe,MAAMC,YAAYT,YAAYU,UAAU,EAAE,CAAC;UACnDC,OAAO;EACd,MAAMP,SAASC,KACb,EAAEC,SAASK,iBAAiBC,QAAQD,MAAML,UAAU,sCAAsC,EA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AOE,SAAS;EACnB,MAAM,EAAEC,gBAAgBZ,EAAEa,aAAaJ,OAAOK,MAAM;EACpD,MAAMC,iBAAiBC,OAAOC,KAAKL,YAAY,CAAC;EAChD,MAAMM,oBAAoBN,YAAYG,kBAA8C;EAEpF,IAAIA,kBAAkBG,mBAAmB;GACvC,MAAMC,OAAOJ,eAAeK,OAAO,EAAE,CAACC,aAAa,GAAGN,eAAeO,MAAM,EAAE;GAC7E,MAAMC,UAAUL,kBAAkBM,QAAQ,uBAAuB,GAAG,CAACC,aAAa;GAClF,OAAOC,SAASlB,KAAK,EAAEe,SAAS,GAAGJ,KAAI,KAAMI,WAAW,EAAE,EAAEI,QAAQ,KAAK,CAAC;;EAG5E,OAAOD,SAASlB,KAAK,EAAEe,SAAS,qBAAqB,EAAE,EAAEI,QAAQ,KAAK,CAAC;;CAEzE,OAAO,MAAMrB,KAAK,EAAEsB,SAAS,EAAEC,MAAMpB,OAAOoB,MAAK,EAAG,CAAC;EACrD;;;ACnBJ,MAAa,iBAAiB,qBAAqB,EACjD,SAAS,QAAQ,IAAI,gBAAgB,YACtC,CAAC"}
1
+ {"version":3,"file":"middleware.js","names":["createMiddleware","jose","scopes","definedScopes","permissions","TokenPayload","User","serverEnv","getAccessToken","buildUser","requiredAuthenticationMiddleware","server","user","next","request","accessToken","headers","get","startsWith","Response","json","message","status","tokenPayload","verifyToken","substring","error","Error","context","publicAuthenticationMiddleware","authenticationMiddleware","options","optional","authorizationMiddleware","permissionKey","middleware","hasPermission","name","serverFnAccessTokenMiddleware","scopeKey","type","client","Authorization","token","Promise","payload","jwtVerify","getJWKS","issuer","ENTRA_TENANT_ID","audience","ENTRA_CLIENT_ID","jwksCache","ReturnType","createRemoteJWKSet","URL","createMiddleware","z","validationMiddleware","schema","ZodType","T","server","next","request","json","result","safeParse","success","fieldErrors","flattenError","error","firstFieldName","Object","keys","firstErrorMessage","name","charAt","toUpperCase","slice","message","replace","toLowerCase","Response","status","context","data"],"sources":["../src/middleware/authMiddleware.ts","../src/middleware/validationMiddleware.ts","../src/middleware/csrfMiddleware.ts"],"sourcesContent":["import { createMiddleware } from \"@tanstack/react-start\";\nimport * as jose from \"jose\";\nimport type { scopes as definedScopes, permissions } from \"virtual:wcz-layout\";\nimport type { TokenPayload } from \"~/models/TokenPayload\";\nimport type { User } from \"~/models/User\";\nimport { serverEnv } from \"~/env\";\nimport { getAccessToken } from \"~/lib/auth/msalClient\";\nimport { buildUser } from \"~/lib/utils\";\n\nconst requiredAuthenticationMiddleware = createMiddleware().server<{ user: User }>(\n async ({ next, request }) => {\n const accessToken = request.headers.get(\"Authorization\");\n\n if (!accessToken?.startsWith(\"Bearer\"))\n throw Response.json(\n { message: \"Unauthorized: Invalid Authorization header\" },\n { status: 401 },\n );\n\n let tokenPayload: TokenPayload;\n try {\n tokenPayload = await verifyToken(accessToken.substring(7));\n } catch (error) {\n throw Response.json(\n { message: error instanceof Error ? error.message : \"Unauthorized: Invalid access token\" },\n { status: 401 },\n );\n }\n\n const user = buildUser(tokenPayload);\n\n return next({ context: { user } });\n },\n);\n\nconst publicAuthenticationMiddleware = createMiddleware().server<{ user: User | null }>(\n async ({ next, request }) => {\n const accessToken = request.headers.get(\"Authorization\");\n\n if (!accessToken?.startsWith(\"Bearer\")) return next({ context: { user: null } });\n\n let tokenPayload: TokenPayload;\n try {\n tokenPayload = await verifyToken(accessToken.substring(7));\n } catch (error) {\n throw Response.json(\n { message: error instanceof Error ? error.message : \"Unauthorized: Invalid access token\" },\n { status: 401 },\n );\n }\n\n const user = buildUser(tokenPayload);\n\n return next({ context: { user } });\n },\n);\n\nexport function authenticationMiddleware(options?: {\n optional?: false;\n}): typeof requiredAuthenticationMiddleware;\n\nexport function authenticationMiddleware(options: {\n optional: true;\n}): typeof publicAuthenticationMiddleware;\n\nexport function authenticationMiddleware(options: {\n optional: boolean;\n}): typeof requiredAuthenticationMiddleware | typeof publicAuthenticationMiddleware;\n\nexport function authenticationMiddleware(options?: { optional?: boolean }) {\n return options?.optional ? publicAuthenticationMiddleware : requiredAuthenticationMiddleware;\n}\n\nexport const authorizationMiddleware = (permissionKey: keyof typeof permissions) =>\n createMiddleware()\n .middleware([authenticationMiddleware()])\n .server(async ({ next, context }) => {\n if (context.user.hasPermission(permissionKey)) return next();\n throw Response.json(\n {\n message: `Forbidden: User ${context.user.name} is not authorized to access this resource`,\n },\n { status: 403 },\n );\n });\n\nexport const serverFnAccessTokenMiddleware = (scopeKey: keyof typeof definedScopes) =>\n createMiddleware({ type: \"function\" }).client(async ({ next }) => {\n try {\n const accessToken = await getAccessToken(scopeKey);\n return next({\n headers: {\n Authorization: `Bearer ${accessToken}`,\n },\n });\n } catch {\n return next();\n }\n });\n\nasync function verifyToken(token: string): Promise<TokenPayload> {\n const { payload } = await jose.jwtVerify(token, getJWKS(), {\n issuer: `https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}/v2.0`,\n audience: serverEnv.ENTRA_CLIENT_ID,\n });\n return payload as unknown as TokenPayload;\n}\n\nlet jwksCache: ReturnType<typeof jose.createRemoteJWKSet> | null = null;\n\nfunction getJWKS() {\n jwksCache ??= jose.createRemoteJWKSet(\n new URL(`https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}/discovery/v2.0/keys`),\n );\n return jwksCache;\n}\n","import { createMiddleware } from \"@tanstack/react-start\";\nimport { z } from \"zod\";\n\nexport const validationMiddleware = <T>(schema: z.ZodType<T>) =>\n createMiddleware().server(async ({ next, request }) => {\n const json = await request.json();\n const result = schema.safeParse(json);\n if (!result.success) {\n const { fieldErrors } = z.flattenError(result.error);\n const firstFieldName = Object.keys(fieldErrors)[0];\n const firstErrorMessage = fieldErrors[firstFieldName as keyof typeof fieldErrors]?.[0];\n\n if (firstFieldName && firstErrorMessage) {\n const name = firstFieldName.charAt(0).toUpperCase() + firstFieldName.slice(1);\n const message = firstErrorMessage.replace(/^Invalid input:\\s*/i, \"\").toLowerCase();\n return Response.json({ message: `${name} - ${message}` }, { status: 400 });\n }\n\n return Response.json({ message: \"Validation failed\" }, { status: 400 });\n }\n return await next({ context: { data: result.data } });\n });\n","import { createCsrfMiddleware } from \"@tanstack/react-start\";\n\nexport const csrfMiddleware = createCsrfMiddleware({\n filter: (ctx) => ctx.handlerType === \"serverFn\",\n});\n"],"mappings":";;;;;;;AASA,MAAMU,mCAAmCV,iBAAiB,EAAEW,OAC1D,OAAO,EAAEE,MAAMC,cAAc;CAC3B,MAAMC,cAAcD,QAAQE,QAAQC,IAAI,eAAe;CAEvD,IAAI,CAACF,aAAaG,WAAW,QAAQ,GACnC,MAAMC,SAASC,KACb,EAAEC,SAAS,6CAA6C,GACxD,EAAEC,QAAQ,IAAI,CAChB;CAEF,IAAIC;CACJ,IAAI;EACFA,eAAe,MAAMC,YAAYT,YAAYU,UAAU,CAAC,CAAC;CAC3D,SAASC,OAAO;EACd,MAAMP,SAASC,KACb,EAAEC,SAASK,iBAAiBC,QAAQD,MAAML,UAAU,qCAAqC,GACzF,EAAEC,QAAQ,IAAI,CAChB;CACF;CAIA,OAAOT,KAAK,EAAEe,SAAS,EAAEhB,MAFZH,UAAUc,YAEEX,EAAK,EAAE,CAAC;AACnC,CACF;AAEA,MAAMiB,iCAAiC7B,iBAAiB,EAAEW,OACxD,OAAO,EAAEE,MAAMC,cAAc;CAC3B,MAAMC,cAAcD,QAAQE,QAAQC,IAAI,eAAe;CAEvD,IAAI,CAACF,aAAaG,WAAW,QAAQ,GAAG,OAAOL,KAAK,EAAEe,SAAS,EAAEhB,MAAM,KAAK,EAAE,CAAC;CAE/E,IAAIW;CACJ,IAAI;EACFA,eAAe,MAAMC,YAAYT,YAAYU,UAAU,CAAC,CAAC;CAC3D,SAASC,OAAO;EACd,MAAMP,SAASC,KACb,EAAEC,SAASK,iBAAiBC,QAAQD,MAAML,UAAU,qCAAqC,GACzF,EAAEC,QAAQ,IAAI,CAChB;CACF;CAIA,OAAOT,KAAK,EAAEe,SAAS,EAAEhB,MAFZH,UAAUc,YAEEX,EAAK,EAAE,CAAC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;EACnD,MAAMC,iBAAiBC,OAAOC,KAAKL,WAAW,EAAE;EAChD,MAAMM,oBAAoBN,YAAYG,kBAA8C;EAEpF,IAAIA,kBAAkBG,mBAAmB;GACvC,MAAMC,OAAOJ,eAAeK,OAAO,CAAC,EAAEC,YAAY,IAAIN,eAAeO,MAAM,CAAC;GAC5E,MAAMC,UAAUL,kBAAkBM,QAAQ,uBAAuB,EAAE,EAAEC,YAAY;GACjF,OAAOC,SAASlB,KAAK,EAAEe,SAAS,GAAGJ,KAAI,KAAMI,UAAU,GAAG,EAAEI,QAAQ,IAAI,CAAC;EAC3E;EAEA,OAAOD,SAASlB,KAAK,EAAEe,SAAS,oBAAoB,GAAG,EAAEI,QAAQ,IAAI,CAAC;CACxE;CACA,OAAO,MAAMrB,KAAK,EAAEsB,SAAS,EAAEC,MAAMpB,OAAOoB,KAAK,EAAE,CAAC;AACtD,CAAC;;;ACnBH,MAAa,iBAAiB,qBAAqB,EACjD,SAAS,QAAQ,IAAI,gBAAgB,WACvC,CAAC"}
package/dist/models.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as FileMetaSchema, t as FileMeta } from "./FileMeta-DrEMs4Gq.js";
2
- import { t as User } from "./User-DVU1zqml.js";
1
+ import { n as FileMetaSchema, t as FileMeta } from "./FileMeta-ILLTOjaM.js";
2
+ import { t as User } from "./User-CT_IDGuG.js";
3
3
  import z$1, { z } from "zod";
4
4
 
5
5
  //#region src/models/email/Email.d.ts
package/dist/models.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as FileMetaSchema } from "./FileMeta-DCFvkQQC.js";
2
- import { n as EmailAttachmentSchema, t as EmailSchema } from "./Email-CCL5C-C0.js";
3
- import { a as ResubmitApprovalSchema, c as ApprovalFlowStepSchema, d as ApprovalFlowSchema, i as CreateApprovalSchema, n as ApproveApprovalSchema, o as WithdrawApprovalSchema, r as CancelApprovalSchema, t as ApprovalSchema, u as ApprovalEmployeeSchema } from "./Approval-Cx-EUX2I.js";
1
+ import { t as FileMetaSchema } from "./FileMeta-DDqUju1Y.js";
2
+ import { n as EmailAttachmentSchema, t as EmailSchema } from "./Email-C9qwj7GD.js";
3
+ import { a as ResubmitApprovalSchema, c as ApprovalFlowStepSchema, d as ApprovalFlowSchema, i as CreateApprovalSchema, n as ApproveApprovalSchema, o as WithdrawApprovalSchema, r as CancelApprovalSchema, t as ApprovalSchema, u as ApprovalEmployeeSchema } from "./Approval-BTJTexDo.js";
4
4
  import z$1 from "zod";
5
5
  //#region src/models/peoplesoft/EmployeeCategoryGroup.ts
6
6
  const EmployeeCategoryGroup = z$1.enum([
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","names":["z","EmployeeCategoryGroup","enum","z","EmployeeStatus","enum","z","EmployeeCategoryGroup","EmployeeStatus","EmployeeSchema","object","badgeId","string","trim","category","categoryGroup","companyCode","contactPhone","departmentId","departmentDescription","emailString","employeeId","extensionNumber","firstName","gender","hiredDate","date","lastName","managerId","middleName","name","nameTitleCase","nfcSn","plantId","position","previousEmployeeIds","nullable","reHiredDate","recordNumber","number","status","supervisorId","terminationDate","terminationFutureDate","type","upperDepartmentId","jobCode","jobDescription","terminationReason","supervisorRecordNumber","Employee","infer","z","EmployeeSchema","DepartmentSchema","object","departmentId","string","trim","description","managerId","managerRecordNumber","treeLevel","number","upperDepartmentId","companyCode","location","salLocation","plantId","manager","Department","infer"],"sources":["../src/models/peoplesoft/EmployeeCategoryGroup.ts","../src/models/peoplesoft/EmployeeStatus.ts","../src/models/peoplesoft/Employee.ts","../src/models/peoplesoft/Department.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const EmployeeCategoryGroup = z.enum([\"IDL\", \"FD\", \"FI\"]);\n","import z from \"zod\";\n\nexport const EmployeeStatus = z.enum([\"Active\", \"Terminated\", \"Leave of Absence\"]);\n","import z from \"zod\";\nimport { EmployeeCategoryGroup } from \"./EmployeeCategoryGroup\";\nimport { EmployeeStatus } from \"./EmployeeStatus\";\n\nexport const EmployeeSchema = z.object({\n badgeId: z.string().trim(),\n category: z.string().trim(),\n categoryGroup: EmployeeCategoryGroup,\n companyCode: z.string().trim(),\n contactPhone: z.string().trim(),\n departmentId: z.string().trim(),\n departmentDescription: z.string().trim(),\n emailString: z.string().trim(),\n employeeId: z.string().trim(),\n extensionNumber: z.string().trim(),\n firstName: z.string().trim(),\n gender: z.string().trim(),\n hiredDate: z.date(),\n lastName: z.string().trim(),\n managerId: z.string().trim(),\n middleName: z.string().trim(),\n name: z.string().trim(),\n nameTitleCase: z.string().trim(),\n nfcSn: z.string().trim(),\n plantId: z.string().trim(),\n position: z.string().trim(),\n previousEmployeeIds: z.string().trim().nullable(),\n reHiredDate: z.date().nullable(),\n recordNumber: z.number(),\n status: EmployeeStatus,\n supervisorId: z.string().trim(),\n terminationDate: z.date().nullable(),\n terminationFutureDate: z.date().nullable(),\n type: z.string().trim(),\n upperDepartmentId: z.string().trim(),\n jobCode: z.string().trim(),\n jobDescription: z.string().trim(),\n terminationReason: z.string().trim().nullable(),\n supervisorRecordNumber: z.number(),\n});\n\nexport type Employee = z.infer<typeof EmployeeSchema>;\n","import z from \"zod\";\nimport { EmployeeSchema } from \"./Employee\";\n\nexport const DepartmentSchema = z.object({\n departmentId: z.string().trim(),\n description: z.string().trim(),\n managerId: z.string().trim(),\n managerRecordNumber: z.string().trim(),\n treeLevel: z.number(),\n upperDepartmentId: z.string().trim(),\n companyCode: z.string().trim(),\n location: z.string().trim(),\n salLocation: z.string().trim(),\n plantId: z.string().trim(),\n manager: EmployeeSchema,\n});\n\nexport type Department = z.infer<typeof DepartmentSchema>;\n"],"mappings":";;;;;AAEA,MAAaC,wBAAwBD,IAAEE,KAAK;CAAC;CAAO;CAAM;CAAK,CAAC;;;ACAhE,MAAaE,iBAAiBD,IAAEE,KAAK;CAAC;CAAU;CAAc;CAAmB,CAAC;;;ACElF,MAAaI,iBAAiBH,IAAEI,OAAO;CACrCC,SAASL,IAAEM,QAAQ,CAACC,MAAM;CAC1BC,UAAUR,IAAEM,QAAQ,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AAQ,CAACC,MAAM;CACjCmC,mBAAmB1C,IAAEM,QAAQ,CAACC,MAAM,CAACuB,UAAU;CAC/Ca,wBAAwB3C,IAAEiC,QAAO;CAClC,CAAC;;;ACpCF,MAAae,mBAAmBF,IAAEG,OAAO;CACvCC,cAAcJ,IAAEK,QAAQ,CAACC,MAAM;CAC/BC,aAAaP,IAAEK,QAAQ,CAACC,MAAM;CAC9BE,WAAWR,IAAEK,QAAQ,CAACC,MAAM;CAC5BG,qBAAqBT,IAAEK,QAAQ,CAACC,MAAM;CACtCI,WAAWV,IAAEW,QAAQ;CACrBC,mBAAmBZ,IAAEK,QAAQ,CAACC,MAAM;CACpCO,aAAab,IAAEK,QAAQ,CAACC,MAAM;CAC9BQ,UAAUd,IAAEK,QAAQ,CAACC,MAAM;CAC3BS,aAAaf,IAAEK,QAAQ,CAACC,MAAM;CAC9BU,SAAShB,IAAEK,QAAQ,CAACC,MAAM;CAC1BW,SAAShB;CACV,CAAC"}
1
+ {"version":3,"file":"models.js","names":["z","EmployeeCategoryGroup","enum","z","EmployeeStatus","enum","z","EmployeeCategoryGroup","EmployeeStatus","EmployeeSchema","object","badgeId","string","trim","category","categoryGroup","companyCode","contactPhone","departmentId","departmentDescription","emailString","employeeId","extensionNumber","firstName","gender","hiredDate","date","lastName","managerId","middleName","name","nameTitleCase","nfcSn","plantId","position","previousEmployeeIds","nullable","reHiredDate","recordNumber","number","status","supervisorId","terminationDate","terminationFutureDate","type","upperDepartmentId","jobCode","jobDescription","terminationReason","supervisorRecordNumber","Employee","infer","z","EmployeeSchema","DepartmentSchema","object","departmentId","string","trim","description","managerId","managerRecordNumber","treeLevel","number","upperDepartmentId","companyCode","location","salLocation","plantId","manager","Department","infer"],"sources":["../src/models/peoplesoft/EmployeeCategoryGroup.ts","../src/models/peoplesoft/EmployeeStatus.ts","../src/models/peoplesoft/Employee.ts","../src/models/peoplesoft/Department.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const EmployeeCategoryGroup = z.enum([\"IDL\", \"FD\", \"FI\"]);\n","import z from \"zod\";\n\nexport const EmployeeStatus = z.enum([\"Active\", \"Terminated\", \"Leave of Absence\"]);\n","import z from \"zod\";\nimport { EmployeeCategoryGroup } from \"./EmployeeCategoryGroup\";\nimport { EmployeeStatus } from \"./EmployeeStatus\";\n\nexport const EmployeeSchema = z.object({\n badgeId: z.string().trim(),\n category: z.string().trim(),\n categoryGroup: EmployeeCategoryGroup,\n companyCode: z.string().trim(),\n contactPhone: z.string().trim(),\n departmentId: z.string().trim(),\n departmentDescription: z.string().trim(),\n emailString: z.string().trim(),\n employeeId: z.string().trim(),\n extensionNumber: z.string().trim(),\n firstName: z.string().trim(),\n gender: z.string().trim(),\n hiredDate: z.date(),\n lastName: z.string().trim(),\n managerId: z.string().trim(),\n middleName: z.string().trim(),\n name: z.string().trim(),\n nameTitleCase: z.string().trim(),\n nfcSn: z.string().trim(),\n plantId: z.string().trim(),\n position: z.string().trim(),\n previousEmployeeIds: z.string().trim().nullable(),\n reHiredDate: z.date().nullable(),\n recordNumber: z.number(),\n status: EmployeeStatus,\n supervisorId: z.string().trim(),\n terminationDate: z.date().nullable(),\n terminationFutureDate: z.date().nullable(),\n type: z.string().trim(),\n upperDepartmentId: z.string().trim(),\n jobCode: z.string().trim(),\n jobDescription: z.string().trim(),\n terminationReason: z.string().trim().nullable(),\n supervisorRecordNumber: z.number(),\n});\n\nexport type Employee = z.infer<typeof EmployeeSchema>;\n","import z from \"zod\";\nimport { EmployeeSchema } from \"./Employee\";\n\nexport const DepartmentSchema = z.object({\n departmentId: z.string().trim(),\n description: z.string().trim(),\n managerId: z.string().trim(),\n managerRecordNumber: z.string().trim(),\n treeLevel: z.number(),\n upperDepartmentId: z.string().trim(),\n companyCode: z.string().trim(),\n location: z.string().trim(),\n salLocation: z.string().trim(),\n plantId: z.string().trim(),\n manager: EmployeeSchema,\n});\n\nexport type Department = z.infer<typeof DepartmentSchema>;\n"],"mappings":";;;;;AAEA,MAAaC,wBAAwBD,IAA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AK,EAAEU,SAAS;CACnCO,uBAAuBrC,IAAEoB,KAAK,EAAEU,SAAS;CACzCQ,MAAMtC,IAAEM,OAAO,EAAEC,KAAK;CACtBgC,mBAAmBvC,IAAEM,OAAO,EAAEC,KAAK;CACnCiC,SAASxC,IAAEM,OAAO,EAAEC,KAAK;CACzBkC,gBAAgBzC,IAAEM,OAAO,EAAEC,KAAK;CAChCmC,mBAAmB1C,IAAEM,OAAO,EAAEC,KAAK,EAAEuB,SAAS;CAC9Ca,wBAAwB3C,IAAEiC,OAAO;AACnC,CAAC;;;ACpCD,MAAae,mBAAmBF,IAAEG,OAAO;CACvCC,cAAcJ,IAAEK,OAAO,EAAEC,KAAK;CAC9BC,aAAaP,IAAEK,OAAO,EAAEC,KAAK;CAC7BE,WAAWR,IAAEK,OAAO,EAAEC,KAAK;CAC3BG,qBAAqBT,IAAEK,OAAO,EAAEC,KAAK;CACrCI,WAAWV,IAAEW,OAAO;CACpBC,mBAAmBZ,IAAEK,OAAO,EAAEC,KAAK;CACnCO,aAAab,IAAEK,OAAO,EAAEC,KAAK;CAC7BQ,UAAUd,IAAEK,OAAO,EAAEC,KAAK;CAC1BS,aAAaf,IAAEK,OAAO,EAAEC,KAAK;CAC7BU,SAAShB,IAAEK,OAAO,EAAEC,KAAK;CACzBW,SAAShB;AACX,CAAC"}
@@ -1,11 +1,10 @@
1
- import { t as User } from "./User-DVU1zqml.js";
1
+ import { t as User } from "./User-CT_IDGuG.js";
2
2
  import { scopes } from "virtual:wcz-layout";
3
3
  import { NavigationClient, PublicClientApplication } from "@azure/msal-browser";
4
4
  import { useNavigate } from "@tanstack/react-router";
5
- import * as _$_tanstack_start_fn_stubs0 from "@tanstack/start-fn-stubs";
6
5
 
7
6
  //#region src/lib/auth/msalClient.d.ts
8
- declare const getUser: _$_tanstack_start_fn_stubs0.IsomorphicFn<[], null, Promise<User | null>>;
7
+ declare const getUser: import("@tanstack/start-fn-stubs").IsomorphicFn<[], null, Promise<User | null>>;
9
8
  /**
10
9
  * Token Acquisition: Get authenticated access token.
11
10
  * Use when: Making API calls from the browser to secured endpoints.
@@ -13,4 +12,4 @@ declare const getUser: _$_tanstack_start_fn_stubs0.IsomorphicFn<[], null, Promis
13
12
  declare const getAccessToken: (scopeKey: keyof typeof scopes) => Promise<string>;
14
13
  //#endregion
15
14
  export { getUser as n, getAccessToken as t };
16
- //# sourceMappingURL=msalClient-C2LlaBzj.d.ts.map
15
+ //# sourceMappingURL=msalClient-CYiQAFnY.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as serverEnv$1 } from "./env-Dgbk8SQN.js";
1
+ import { n as serverEnv$1 } from "./env-ON-cyE3N.js";
2
2
  import { scopes } from "virtual:wcz-layout";
3
3
  import { createServerOnlyFn } from "@tanstack/react-start";
4
4
  import { ConfidentialClientApplication } from "@azure/msal-node";
@@ -44,4 +44,4 @@ const getAppToken = createServerOnlyFn(async (scopeKey) => {
44
44
  //#endregion
45
45
  export { getTokenOnBehalfOf as n, getAppToken as t };
46
46
 
47
- //# sourceMappingURL=msalServer-B3AztUoH.js.map
47
+ //# sourceMappingURL=msalServer-B9sVqpQ2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"msalServer-B3AztUoH.js","names":["createServerOnlyFn","ConfidentialClientApplication","scopes","definedScopes","serverEnv","ccaInstance","getCCA","auth","clientId","ENTRA_CLIENT_ID","clientSecret","ENTRA_CLIENT_SECRET","authority","ENTRA_TENANT_ID","getTokenOnBehalfOf","userToken","scopeKey","Promise","cca","result","acquireTokenOnBehalfOf","oboAssertion","Error","accessToken","getAppToken","defaultScopes","map","scope","lastSlash","lastIndexOf","baseUri","substring","uniqueScopes","Set","acquireTokenByClientCredential"],"sources":["../src/lib/auth/msalServer.ts"],"sourcesContent":["import { createServerOnlyFn } from \"@tanstack/react-start\";\nimport { ConfidentialClientApplication } from \"@azure/msal-node\";\nimport { scopes as definedScopes } from \"virtual:wcz-layout\";\nimport { serverEnv } from \"~/env\";\n\n// Singleton instance for server\nlet ccaInstance: ConfidentialClientApplication | null = null;\nfunction getCCA(): ConfidentialClientApplication {\n ccaInstance ??= new ConfidentialClientApplication({\n auth: {\n clientId: serverEnv.ENTRA_CLIENT_ID,\n clientSecret: serverEnv.ENTRA_CLIENT_SECRET,\n authority: `https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}`,\n },\n });\n return ccaInstance;\n}\n\n/**\n * On-Behalf-Of flow: Exchange user token for a token to call downstream API\n * Use when: Server needs to call microservice on behalf of the logged-in user\n */\nexport const getTokenOnBehalfOf = createServerOnlyFn(\n async (userToken: string, scopeKey: keyof typeof definedScopes): Promise<string> => {\n const cca = getCCA();\n const scopes = [...definedScopes[scopeKey]];\n const result = await cca.acquireTokenOnBehalfOf({\n oboAssertion: userToken,\n scopes,\n });\n if (!result) throw new Error(\"Failed to acquire OBO token\");\n return result.accessToken;\n },\n);\n\n/**\n * Client Credentials flow: Get app-only token (no user context)\n * Use when: Background jobs, scheduled tasks, service-to-service calls\n */\nexport const getAppToken = createServerOnlyFn(\n async (scopeKey: keyof typeof definedScopes): Promise<string> => {\n const cca = getCCA();\n const scopes = definedScopes[scopeKey];\n const defaultScopes = scopes.map((scope) => {\n const lastSlash = scope.lastIndexOf(\"/\");\n const baseUri = scope.substring(0, lastSlash);\n return `${baseUri}/.default`;\n });\n const uniqueScopes = [...new Set(defaultScopes)];\n const result = await cca.acquireTokenByClientCredential({ scopes: uniqueScopes });\n if (!result) throw new Error(\"Failed to acquire app token\");\n return result.accessToken;\n },\n);\n"],"mappings":";;;;;AAMA,IAAIK,cAAoD;AACxD,SAASC,SAAwC;CAC/CD,gBAAgB,IAAIJ,8BAA8B,EAChDM,MAAM;EACJC,UAAUJ,YAAUK;EACpBC,cAAcN,YAAUO;EACxBC,WAAW,qCAAqCR,YAAUS;EAC5D,EACD,CAAC;CACF,OAAOR;;;;;;AAOT,MAAaS,qBAAqBd,mBAChC,OAAOe,WAAmBC,aAA0D;CAClF,MAAME,MAAMZ,QAAQ;CACpB,MAAMJ,WAAS,CAAC,GAAGC,OAAca,UAAU;CAC3C,MAAMG,SAAS,MAAMD,IAAIE,uBAAuB;EAC9CC,cAAcN;EACdb,QAAAA;EACD,CAAC;CACF,IAAI,CAACiB,QAAQ,MAAM,IAAIG,MAAM,8BAA8B;CAC3D,OAAOH,OAAOI;EAEjB;;;;;AAMD,MAAaC,cAAcxB,mBACzB,OAAOgB,aAA0D;CAC/D,MAAME,MAAMZ,QAAQ;CAEpB,MAAMmB,gBADStB,OAAca,UACAU,KAAKC,UAAU;EAC1C,MAAMC,YAAYD,MAAME,YAAY,IAAI;EAExC,OAAO,GADSF,MAAMI,UAAU,GAAGH,UAClB,CAAA;GACjB;CACF,MAAMI,eAAe,CAAC,GAAG,IAAIC,IAAIR,cAAc,CAAC;CAChD,MAAMN,SAAS,MAAMD,IAAIgB,+BAA+B,EAAEhC,QAAQ8B,cAAc,CAAC;CACjF,IAAI,CAACb,QAAQ,MAAM,IAAIG,MAAM,8BAA8B;CAC3D,OAAOH,OAAOI;EAEjB"}
1
+ {"version":3,"file":"msalServer-B9sVqpQ2.js","names":["createServerOnlyFn","ConfidentialClientApplication","scopes","definedScopes","serverEnv","ccaInstance","getCCA","auth","clientId","ENTRA_CLIENT_ID","clientSecret","ENTRA_CLIENT_SECRET","authority","ENTRA_TENANT_ID","getTokenOnBehalfOf","userToken","scopeKey","Promise","cca","result","acquireTokenOnBehalfOf","oboAssertion","Error","accessToken","getAppToken","defaultScopes","map","scope","lastSlash","lastIndexOf","baseUri","substring","uniqueScopes","Set","acquireTokenByClientCredential"],"sources":["../src/lib/auth/msalServer.ts"],"sourcesContent":["import { createServerOnlyFn } from \"@tanstack/react-start\";\nimport { ConfidentialClientApplication } from \"@azure/msal-node\";\nimport { scopes as definedScopes } from \"virtual:wcz-layout\";\nimport { serverEnv } from \"~/env\";\n\n// Singleton instance for server\nlet ccaInstance: ConfidentialClientApplication | null = null;\nfunction getCCA(): ConfidentialClientApplication {\n ccaInstance ??= new ConfidentialClientApplication({\n auth: {\n clientId: serverEnv.ENTRA_CLIENT_ID,\n clientSecret: serverEnv.ENTRA_CLIENT_SECRET,\n authority: `https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}`,\n },\n });\n return ccaInstance;\n}\n\n/**\n * On-Behalf-Of flow: Exchange user token for a token to call downstream API\n * Use when: Server needs to call microservice on behalf of the logged-in user\n */\nexport const getTokenOnBehalfOf = createServerOnlyFn(\n async (userToken: string, scopeKey: keyof typeof definedScopes): Promise<string> => {\n const cca = getCCA();\n const scopes = [...definedScopes[scopeKey]];\n const result = await cca.acquireTokenOnBehalfOf({\n oboAssertion: userToken,\n scopes,\n });\n if (!result) throw new Error(\"Failed to acquire OBO token\");\n return result.accessToken;\n },\n);\n\n/**\n * Client Credentials flow: Get app-only token (no user context)\n * Use when: Background jobs, scheduled tasks, service-to-service calls\n */\nexport const getAppToken = createServerOnlyFn(\n async (scopeKey: keyof typeof definedScopes): Promise<string> => {\n const cca = getCCA();\n const scopes = definedScopes[scopeKey];\n const defaultScopes = scopes.map((scope) => {\n const lastSlash = scope.lastIndexOf(\"/\");\n const baseUri = scope.substring(0, lastSlash);\n return `${baseUri}/.default`;\n });\n const uniqueScopes = [...new Set(defaultScopes)];\n const result = await cca.acquireTokenByClientCredential({ scopes: uniqueScopes });\n if (!result) throw new Error(\"Failed to acquire app token\");\n return result.accessToken;\n },\n);\n"],"mappings":";;;;;AAMA,IAAIK,cAAoD;AACxD,SAASC,SAAwC;CAC/CD,gBAAgB,IAAIJ,8BAA8B,EAChDM,MAAM;EACJC,UAAUJ,YAAUK;EACpBC,cAAcN,YAAUO;EACxBC,WAAW,qCAAqCR,YAAUS;CAC5D,EACF,CAAC;CACD,OAAOR;AACT;;;;;AAMA,MAAaS,qBAAqBd,mBAChC,OAAOe,WAAmBC,aAA0D;CAClF,MAAME,MAAMZ,OAAO;CACnB,MAAMJ,WAAS,CAAC,GAAGC,OAAca,SAAS;CAC1C,MAAMG,SAAS,MAAMD,IAAIE,uBAAuB;EAC9CC,cAAcN;EACdb,QAAAA;CACF,CAAC;CACD,IAAI,CAACiB,QAAQ,MAAM,IAAIG,MAAM,6BAA6B;CAC1D,OAAOH,OAAOI;AAChB,CACF;;;;;AAMA,MAAaC,cAAcxB,mBACzB,OAAOgB,aAA0D;CAC/D,MAAME,MAAMZ,OAAO;CAEnB,MAAMmB,gBADStB,OAAca,UACAU,KAAKC,UAAU;EAC1C,MAAMC,YAAYD,MAAME,YAAY,GAAG;EAEvC,OAAO,GADSF,MAAMI,UAAU,GAAGH,SACzBE,EAAO;CACnB,CAAC;CACD,MAAME,eAAe,CAAC,GAAG,IAAIC,IAAIR,aAAa,CAAC;CAC/C,MAAMN,SAAS,MAAMD,IAAIgB,+BAA+B,EAAEhC,QAAQ8B,aAAa,CAAC;CAChF,IAAI,CAACb,QAAQ,MAAM,IAAIG,MAAM,6BAA6B;CAC1D,OAAOH,OAAOI;AAChB,CACF"}
@@ -1,5 +1,5 @@
1
- import { t as apiMiddleware } from "./apiMiddleware-CwCEvg3r.js";
2
- import { a as ResubmitApprovalSchema, i as CreateApprovalSchema, l as ApprovalStepResult, n as ApproveApprovalSchema, o as WithdrawApprovalSchema, r as CancelApprovalSchema, s as ApprovalStatus } from "./Approval-Cx-EUX2I.js";
1
+ import { t as apiMiddleware } from "./apiMiddleware-CtY4rOFU.js";
2
+ import { a as ResubmitApprovalSchema, i as CreateApprovalSchema, l as ApprovalStepResult, n as ApproveApprovalSchema, o as WithdrawApprovalSchema, r as CancelApprovalSchema, s as ApprovalStatus } from "./Approval-BTJTexDo.js";
3
3
  import { z } from "zod";
4
4
  import { createServerFn } from "@tanstack/react-start";
5
5
  //#region src/data/server/approval.ts
@@ -237,4 +237,4 @@ const getCompanyGeneralManager = createServerFn({ method: "GET" }).inputValidato
237
237
  //#endregion
238
238
  export { createApproval as C, withdrawApproval as D, resubmitApproval as E, 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, 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 };
239
239
 
240
- //# sourceMappingURL=peoplesoft--FioEbzn.js.map
240
+ //# sourceMappingURL=peoplesoft-BCjRje6b.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"peoplesoft--FioEbzn.js","names":["createServerFn","z","apiMiddleware","ApproveApprovalSchema","CancelApprovalSchema","CreateApprovalSchema","ResubmitApprovalSchema","WithdrawApprovalSchema","Approval","ApprovalStatus","ApprovalStepResult","GetApprovalsSchema","object","appName","string","min","max","status","optional","approverEmployeeId","stepResult","GetApprovalSchema","id","uuid","getApprovals","method","inputValidator","middleware","baseURL","scopeKey","handler","data","context","queryParams","URLSearchParams","append","toString","approvals","api","request","Array","url","getApproval","approval","createApproval","approveApproval","resubmitApproval","withdrawApproval","cancelApproval","createServerFn","z","apiMiddleware","Department","Employee","SearchEmployeesSchema","object","searchTerm","string","min","EmployeeIdSchema","employeeId","DepartmentIdSchema","departmentId","CompanyCodeSchema","companyCode","searchEmployees","method","inputValidator","middleware","baseURL","scopeKey","handler","data","context","employees","api","request","Array","url","encodeURIComponent","getEmployees","getActiveEmployees","getEmployeeByEmployeeId","employee","getPreviousEmployeeIds","getEmployeeSupervisor","getEmployeeSubordinates","getEmployeeManager","getEmployeeGeneralManager","getDepartments","departments","getDepartmentById","department","getDepartmentManager","getDepartmentEmployees","getCompanyGeneralManager"],"sources":["../src/data/server/approval.ts","../src/data/server/peoplesoft.ts"],"sourcesContent":["import { createServerFn } from \"@tanstack/react-start\";\nimport { z } from \"zod\";\nimport { apiMiddleware } from \"~/middleware/apiMiddleware\";\nimport {\n ApproveApprovalSchema,\n CancelApprovalSchema,\n CreateApprovalSchema,\n ResubmitApprovalSchema,\n WithdrawApprovalSchema,\n} from \"~/models/approval/Approval\";\nimport type { Approval } from \"~/models/approval/Approval\";\nimport { ApprovalStatus } from \"~/models/approval/ApprovalStatus\";\nimport { ApprovalStepResult } from \"~/models/approval/ApprovalStepResult\";\n\nexport const GetApprovalsSchema = z.object({\n appName: z.string().min(1).max(255),\n status: ApprovalStatus.optional(),\n approverEmployeeId: z.string().min(1).max(20).optional(),\n stepResult: ApprovalStepResult.optional(),\n});\n\nexport const GetApprovalSchema = z.object({\n id: z.uuid(),\n});\n\nexport const getApprovals = createServerFn({ method: \"GET\" })\n .inputValidator(GetApprovalsSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const queryParams = new URLSearchParams();\n queryParams.append(\"applicationName\", data.appName);\n if (data.status) queryParams.append(\"status\", data.status.toString());\n if (data.approverEmployeeId) queryParams.append(\"approverEmployeeId\", data.approverEmployeeId);\n if (data.stepResult) queryParams.append(\"stepResult\", data.stepResult.toString());\n\n const { data: approvals } = await context.api.request<Array<Approval>>({\n url: `/Requests/Requests?${queryParams.toString()}`,\n method: \"GET\",\n });\n return approvals;\n });\n\nexport const getApproval = createServerFn({ method: \"GET\" })\n .inputValidator(GetApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests/${data.id}`,\n method: \"GET\",\n });\n return approval;\n });\n\nexport const createApproval = createServerFn({ method: \"POST\" })\n .inputValidator(CreateApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests`,\n method: \"POST\",\n data,\n });\n return approval;\n });\n\nexport const approveApproval = createServerFn({ method: \"POST\" })\n .inputValidator(ApproveApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests/${data.id}/single-approval`,\n method: \"POST\",\n data,\n });\n return approval;\n });\n\nexport const resubmitApproval = createServerFn({ method: \"POST\" })\n .inputValidator(ResubmitApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests/${data.id}/resubmit`,\n method: \"POST\",\n data,\n });\n return approval;\n });\n\nexport const withdrawApproval = createServerFn({ method: \"POST\" })\n .inputValidator(WithdrawApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n await context.api.request<void>({\n url: `/Requests/${data.id}/withdraw`,\n method: \"POST\",\n data,\n });\n });\n\nexport const cancelApproval = createServerFn({ method: \"POST\" })\n .inputValidator(CancelApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n await context.api.request<void>({\n url: `/Requests/${data.id}/cancel`,\n method: \"POST\",\n data,\n });\n });\n","import { createServerFn } from \"@tanstack/react-start\";\nimport { z } from \"zod\";\nimport { apiMiddleware } from \"~/middleware/apiMiddleware\";\nimport type { Department } from \"~/models/peoplesoft/Department\";\nimport type { Employee } from \"~/models/peoplesoft/Employee\";\n\nexport const SearchEmployeesSchema = z.object({\n searchTerm: z.string().min(1),\n});\n\nexport const EmployeeIdSchema = z.object({\n employeeId: z.string().min(1),\n});\n\nexport const DepartmentIdSchema = z.object({\n departmentId: z.string().min(1),\n});\n\nexport const CompanyCodeSchema = z.object({\n companyCode: z.string().min(1),\n});\n\nexport const searchEmployees = createServerFn({ method: \"GET\" })\n .inputValidator(SearchEmployeesSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee?search=${encodeURIComponent(data.searchTerm)}`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployees = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/all`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getActiveEmployees = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/active`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployeeByEmployeeId = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getPreviousEmployeeIds = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/previousIds`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployeeSupervisor = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/supervisor`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getEmployeeSubordinates = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/subordinates`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployeeManager = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/manager`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getEmployeeGeneralManager = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/generalManager`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getDepartments = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: departments } = await context.api.request<Array<Department>>({\n url: `/v1/department/all`,\n method: \"GET\",\n });\n return departments;\n });\n\nexport const getDepartmentById = createServerFn({ method: \"GET\" })\n .inputValidator(DepartmentIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: department } = await context.api.request<Department>({\n url: `/v1/department/${encodeURIComponent(data.departmentId)}`,\n method: \"GET\",\n });\n return department;\n });\n\nexport const getDepartmentManager = createServerFn({ method: \"GET\" })\n .inputValidator(DepartmentIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/department/${encodeURIComponent(data.departmentId)}/manager`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getDepartmentEmployees = createServerFn({ method: \"GET\" })\n .inputValidator(DepartmentIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/department/${encodeURIComponent(data.departmentId)}/employees`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getCompanyGeneralManager = createServerFn({ method: \"GET\" })\n .inputValidator(CompanyCodeSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/company/${encodeURIComponent(data.companyCode)}/generalManager`,\n method: \"GET\",\n });\n return employee;\n });\n"],"mappings":";;;;;AAcA,MAAaW,qBAAqBV,EAAEW,OAAO;CACzCC,SAASZ,EAAEa,QAAQ,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CACnCC,QAAQR,eAAeS,UAAU;CACjCC,oBAAoBlB,EAAEa,QAAQ,CAACC,IAAI,EAAE,CAACC,IAAI,GAAG,CAACE,UAAU;CACxDE,YAAYV,mBAAmBQ,UAAS;CACzC,CAAC;AAEF,MAAaG,oBAAoBpB,EAAEW,OAAO,EACxCU,IAAIrB,EAAEsB,MAAK,EACZ,CAAC;AAEF,MAAaC,eAAexB,eAAe,EAAEyB,QAAQ,OAAO,CAAC,CAC1DC,eAAef,mBAAmB,CAClCgB,WAAW,CAACzB,cAAc;CAAE0B,SAAS;CAAqBC,UAAU;CAAY,CAAC,CAAC,CAAC,CACnFC,QAAQ,OAAO,EAAEC,MAAMC,cAAc;CACpC,MAAMC,cAAc,IA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,aAAa,MAAMV,QAAQE,IAAIC,QAAkB;EAC7DE,KAAK,eAAeC,mBAAmBP,KAAKR,YAAY,CAAA;EACxDE,QAAQ;EACT,CAAC;CACF,OAAOiB;EACP"}
1
+ {"version":3,"file":"peoplesoft-BCjRje6b.js","names":["createServerFn","z","apiMiddleware","ApproveApprovalSchema","CancelApprovalSchema","CreateApprovalSchema","ResubmitApprovalSchema","WithdrawApprovalSchema","Approval","ApprovalStatus","ApprovalStepResult","GetApprovalsSchema","object","appName","string","min","max","status","optional","approverEmployeeId","stepResult","GetApprovalSchema","id","uuid","getApprovals","method","inputValidator","middleware","baseURL","scopeKey","handler","data","context","queryParams","URLSearchParams","append","toString","approvals","api","request","Array","url","getApproval","approval","createApproval","approveApproval","resubmitApproval","withdrawApproval","cancelApproval","createServerFn","z","apiMiddleware","Department","Employee","SearchEmployeesSchema","object","searchTerm","string","min","EmployeeIdSchema","employeeId","DepartmentIdSchema","departmentId","CompanyCodeSchema","companyCode","searchEmployees","method","inputValidator","middleware","baseURL","scopeKey","handler","data","context","employees","api","request","Array","url","encodeURIComponent","getEmployees","getActiveEmployees","getEmployeeByEmployeeId","employee","getPreviousEmployeeIds","getEmployeeSupervisor","getEmployeeSubordinates","getEmployeeManager","getEmployeeGeneralManager","getDepartments","departments","getDepartmentById","department","getDepartmentManager","getDepartmentEmployees","getCompanyGeneralManager"],"sources":["../src/data/server/approval.ts","../src/data/server/peoplesoft.ts"],"sourcesContent":["import { createServerFn } from \"@tanstack/react-start\";\nimport { z } from \"zod\";\nimport { apiMiddleware } from \"~/middleware/apiMiddleware\";\nimport {\n ApproveApprovalSchema,\n CancelApprovalSchema,\n CreateApprovalSchema,\n ResubmitApprovalSchema,\n WithdrawApprovalSchema,\n} from \"~/models/approval/Approval\";\nimport type { Approval } from \"~/models/approval/Approval\";\nimport { ApprovalStatus } from \"~/models/approval/ApprovalStatus\";\nimport { ApprovalStepResult } from \"~/models/approval/ApprovalStepResult\";\n\nexport const GetApprovalsSchema = z.object({\n appName: z.string().min(1).max(255),\n status: ApprovalStatus.optional(),\n approverEmployeeId: z.string().min(1).max(20).optional(),\n stepResult: ApprovalStepResult.optional(),\n});\n\nexport const GetApprovalSchema = z.object({\n id: z.uuid(),\n});\n\nexport const getApprovals = createServerFn({ method: \"GET\" })\n .inputValidator(GetApprovalsSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const queryParams = new URLSearchParams();\n queryParams.append(\"applicationName\", data.appName);\n if (data.status) queryParams.append(\"status\", data.status.toString());\n if (data.approverEmployeeId) queryParams.append(\"approverEmployeeId\", data.approverEmployeeId);\n if (data.stepResult) queryParams.append(\"stepResult\", data.stepResult.toString());\n\n const { data: approvals } = await context.api.request<Array<Approval>>({\n url: `/Requests/Requests?${queryParams.toString()}`,\n method: \"GET\",\n });\n return approvals;\n });\n\nexport const getApproval = createServerFn({ method: \"GET\" })\n .inputValidator(GetApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests/${data.id}`,\n method: \"GET\",\n });\n return approval;\n });\n\nexport const createApproval = createServerFn({ method: \"POST\" })\n .inputValidator(CreateApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests`,\n method: \"POST\",\n data,\n });\n return approval;\n });\n\nexport const approveApproval = createServerFn({ method: \"POST\" })\n .inputValidator(ApproveApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests/${data.id}/single-approval`,\n method: \"POST\",\n data,\n });\n return approval;\n });\n\nexport const resubmitApproval = createServerFn({ method: \"POST\" })\n .inputValidator(ResubmitApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n const { data: approval } = await context.api.request<Approval>({\n url: `/Requests/${data.id}/resubmit`,\n method: \"POST\",\n data,\n });\n return approval;\n });\n\nexport const withdrawApproval = createServerFn({ method: \"POST\" })\n .inputValidator(WithdrawApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n await context.api.request<void>({\n url: `/Requests/${data.id}/withdraw`,\n method: \"POST\",\n data,\n });\n });\n\nexport const cancelApproval = createServerFn({ method: \"POST\" })\n .inputValidator(CancelApprovalSchema)\n .middleware([apiMiddleware({ baseURL: \"APPROVAL_BASE_URL\", scopeKey: \"approval\" })])\n .handler(async ({ data, context }) => {\n await context.api.request<void>({\n url: `/Requests/${data.id}/cancel`,\n method: \"POST\",\n data,\n });\n });\n","import { createServerFn } from \"@tanstack/react-start\";\nimport { z } from \"zod\";\nimport { apiMiddleware } from \"~/middleware/apiMiddleware\";\nimport type { Department } from \"~/models/peoplesoft/Department\";\nimport type { Employee } from \"~/models/peoplesoft/Employee\";\n\nexport const SearchEmployeesSchema = z.object({\n searchTerm: z.string().min(1),\n});\n\nexport const EmployeeIdSchema = z.object({\n employeeId: z.string().min(1),\n});\n\nexport const DepartmentIdSchema = z.object({\n departmentId: z.string().min(1),\n});\n\nexport const CompanyCodeSchema = z.object({\n companyCode: z.string().min(1),\n});\n\nexport const searchEmployees = createServerFn({ method: \"GET\" })\n .inputValidator(SearchEmployeesSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee?search=${encodeURIComponent(data.searchTerm)}`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployees = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/all`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getActiveEmployees = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/active`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployeeByEmployeeId = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getPreviousEmployeeIds = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/previousIds`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployeeSupervisor = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/supervisor`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getEmployeeSubordinates = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/subordinates`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getEmployeeManager = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/manager`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getEmployeeGeneralManager = createServerFn({ method: \"GET\" })\n .inputValidator(EmployeeIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/employee/${encodeURIComponent(data.employeeId)}/generalManager`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getDepartments = createServerFn({ method: \"GET\" })\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ context }) => {\n const { data: departments } = await context.api.request<Array<Department>>({\n url: `/v1/department/all`,\n method: \"GET\",\n });\n return departments;\n });\n\nexport const getDepartmentById = createServerFn({ method: \"GET\" })\n .inputValidator(DepartmentIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: department } = await context.api.request<Department>({\n url: `/v1/department/${encodeURIComponent(data.departmentId)}`,\n method: \"GET\",\n });\n return department;\n });\n\nexport const getDepartmentManager = createServerFn({ method: \"GET\" })\n .inputValidator(DepartmentIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/department/${encodeURIComponent(data.departmentId)}/manager`,\n method: \"GET\",\n });\n return employee;\n });\n\nexport const getDepartmentEmployees = createServerFn({ method: \"GET\" })\n .inputValidator(DepartmentIdSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employees } = await context.api.request<Array<Employee>>({\n url: `/v1/department/${encodeURIComponent(data.departmentId)}/employees`,\n method: \"GET\",\n });\n return employees;\n });\n\nexport const getCompanyGeneralManager = createServerFn({ method: \"GET\" })\n .inputValidator(CompanyCodeSchema)\n .middleware([apiMiddleware({ baseURL: \"PS_BASE_URL\", scopeKey: \"ps\" })])\n .handler(async ({ data, context }) => {\n const { data: employee } = await context.api.request<Employee>({\n url: `/v1/company/${encodeURIComponent(data.companyCode)}/generalManager`,\n method: \"GET\",\n });\n return employee;\n });\n"],"mappings":";;;;;AAcA,MAAaW,qBAAqBV,EAAEW,OAAO;CACzCC,SAASZ,EAAEa,OAAO,EAAEC,IAAI,CAAC,EAAEC,IAAI,GAAG;CAClCC,QAAQR,eAAeS,SAAS;CAChCC,oBAAoBlB,EAAEa,OAAO,EAAEC,IAAI,CAAC,EAAEC,IAAI,EAAE,EAAEE,SAAS;CACvDE,YAAYV,mBAAmBQ,SAAS;AAC1C,CAAC;AAED,MAAaG,oBAAoBpB,EAAEW,OAAO,EACxCU,IAAIrB,EAAEsB,KAAK,EACb,CAAC;AAED,MAAaC,eAAexB,eAAe,EAAEyB,QAAQ,MAAM,CAAC,EACzDC,eAAef,kBAAkB,EACjCgB,WAAW,CAACzB,cAAc;CAAE0B,SAAS;CAAqBC,UAAU;AAAW,CAAC,CAAC,CAAC,EAClFC,QAAQ,OAAO,EAAEC,MAAMC,cAAc;CACpC,MAAMC,cAAc,IAAIC,gBAAgB;CACxCD,YAAYE,OAAO,mBAAmBJ,KAAKlB,OAAO;CAClD,IAAIkB,KAAKd,QAAQgB,YAAYE,OAAO,UAAUJ,KAAKd,OAAOmB,SAAS,CAAC;CACpE,IAAIL,KAAKZ,oBAAoBc,YAAYE,OAAO,sBAAsBJ,KAAKZ,kBAAkB;CAC7F,IAAIY,KAAKX,YA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,6 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _$axios from "axios";
3
- import * as _$_tanstack_start_client_core0 from "@tanstack/start-client-core";
4
2
 
5
3
  //#region src/data/server/file.d.ts
6
4
  declare const GetFileMetasSchema: z.ZodObject<{
@@ -35,8 +33,8 @@ declare const UploadFileMetaSchema: z.ZodObject<{
35
33
  subId: z.ZodUUID;
36
34
  file: z.ZodCustom<File, File>;
37
35
  }, z.core.$strip>;
38
- declare const getFileMetas: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
39
- api: _$axios.AxiosInstance;
36
+ declare const getFileMetas: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
37
+ api: import("axios").AxiosInstance;
40
38
  }>], z.ZodObject<{
41
39
  appName: z.ZodString;
42
40
  subId: z.ZodUUID;
@@ -53,26 +51,26 @@ declare const getFileMetas: _$_tanstack_start_client_core0.RequiredFetcher<reado
53
51
  createdBy: string;
54
52
  createdDate: Date;
55
53
  }[]>>;
56
- declare const getFileThumbnail: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
57
- api: _$axios.AxiosInstance;
54
+ declare const getFileThumbnail: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
55
+ api: import("axios").AxiosInstance;
58
56
  }>], z.ZodObject<{
59
57
  appName: z.ZodString;
60
58
  id: z.ZodUUID;
61
59
  }, z.core.$strip>, Promise<Response>>;
62
- declare const getFile: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
63
- api: _$axios.AxiosInstance;
60
+ declare const getFile: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
61
+ api: import("axios").AxiosInstance;
64
62
  }>], z.ZodObject<{
65
63
  appName: z.ZodString;
66
64
  id: z.ZodUUID;
67
65
  }, z.core.$strip>, Promise<Response>>;
68
- declare const downloadFile: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
69
- api: _$axios.AxiosInstance;
66
+ declare const downloadFile: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
67
+ api: import("axios").AxiosInstance;
70
68
  }>], z.ZodObject<{
71
69
  appName: z.ZodString;
72
70
  id: z.ZodUUID;
73
71
  }, z.core.$strip>, Promise<Response>>;
74
- declare const updateFileMeta: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
75
- api: _$axios.AxiosInstance;
72
+ declare const updateFileMeta: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
73
+ api: import("axios").AxiosInstance;
76
74
  }>], z.ZodObject<{
77
75
  id: z.ZodUUID;
78
76
  subId: z.ZodUUID;
@@ -86,19 +84,19 @@ declare const updateFileMeta: _$_tanstack_start_client_core0.RequiredFetcher<rea
86
84
  createdDate: z.ZodDate;
87
85
  fileName: z.ZodString;
88
86
  }, z.core.$strip>, Promise<void>>;
89
- declare const deleteFile: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
90
- api: _$axios.AxiosInstance;
87
+ declare const deleteFile: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
88
+ api: import("axios").AxiosInstance;
91
89
  }>], z.ZodObject<{
92
90
  appName: z.ZodString;
93
91
  id: z.ZodUUID;
94
92
  }, z.core.$strip>, Promise<void>>;
95
- declare const batchDeleteFiles: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
96
- api: _$axios.AxiosInstance;
93
+ declare const batchDeleteFiles: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
94
+ api: import("axios").AxiosInstance;
97
95
  }>], z.ZodObject<{
98
96
  appName: z.ZodString;
99
97
  subId: z.ZodUUID;
100
98
  }, z.core.$strip>, Promise<void>>;
101
- declare const uploadFile: _$_tanstack_start_client_core0.RequiredFetcher<undefined, z.ZodObject<{
99
+ declare const uploadFile: import("@tanstack/start-client-core").RequiredFetcher<undefined, z.ZodObject<{
102
100
  appName: z.ZodString;
103
101
  subId: z.ZodUUID;
104
102
  file: z.ZodCustom<File, File>;
@@ -130,8 +128,8 @@ declare const GetApprovalsSchema: z.ZodObject<{
130
128
  declare const GetApprovalSchema: z.ZodObject<{
131
129
  id: z.ZodUUID;
132
130
  }, z.core.$strip>;
133
- declare const getApprovals: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
134
- api: _$axios.AxiosInstance;
131
+ declare const getApprovals: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
132
+ api: import("axios").AxiosInstance;
135
133
  }>], z.ZodObject<{
136
134
  appName: z.ZodString;
137
135
  status: z.ZodOptional<z.ZodEnum<{
@@ -214,8 +212,8 @@ declare const getApprovals: _$_tanstack_start_client_core0.RequiredFetcher<reado
214
212
  };
215
213
  }[] | undefined;
216
214
  }[]>>;
217
- declare const getApproval: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
218
- api: _$axios.AxiosInstance;
215
+ declare const getApproval: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
216
+ api: import("axios").AxiosInstance;
219
217
  }>], z.ZodObject<{
220
218
  id: z.ZodUUID;
221
219
  }, z.core.$strip>, Promise<{
@@ -279,8 +277,8 @@ declare const getApproval: _$_tanstack_start_client_core0.RequiredFetcher<readon
279
277
  };
280
278
  }[] | undefined;
281
279
  }>>;
282
- declare const createApproval: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
283
- api: _$axios.AxiosInstance;
280
+ declare const createApproval: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
281
+ api: import("axios").AxiosInstance;
284
282
  }>], z.ZodObject<{
285
283
  number: z.ZodOptional<z.ZodString>;
286
284
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -384,8 +382,8 @@ declare const createApproval: _$_tanstack_start_client_core0.RequiredFetcher<rea
384
382
  };
385
383
  }[] | undefined;
386
384
  }>>;
387
- declare const approveApproval: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
388
- api: _$axios.AxiosInstance;
385
+ declare const approveApproval: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
386
+ api: import("axios").AxiosInstance;
389
387
  }>], z.ZodObject<{
390
388
  id: z.ZodUUID;
391
389
  result: z.ZodEnum<{
@@ -461,8 +459,8 @@ declare const approveApproval: _$_tanstack_start_client_core0.RequiredFetcher<re
461
459
  };
462
460
  }[] | undefined;
463
461
  }>>;
464
- declare const resubmitApproval: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
465
- api: _$axios.AxiosInstance;
462
+ declare const resubmitApproval: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
463
+ api: import("axios").AxiosInstance;
466
464
  }>], z.ZodObject<{
467
465
  id: z.ZodUUID;
468
466
  approvalFlows: z.ZodArray<z.ZodObject<{
@@ -543,15 +541,15 @@ declare const resubmitApproval: _$_tanstack_start_client_core0.RequiredFetcher<r
543
541
  };
544
542
  }[] | undefined;
545
543
  }>>;
546
- declare const withdrawApproval: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
547
- api: _$axios.AxiosInstance;
544
+ declare const withdrawApproval: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
545
+ api: import("axios").AxiosInstance;
548
546
  }>], z.ZodObject<{
549
547
  id: z.ZodUUID;
550
548
  comment: z.ZodString;
551
549
  emailBody: z.ZodString;
552
550
  }, z.core.$strip>, Promise<void>>;
553
- declare const cancelApproval: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
554
- api: _$axios.AxiosInstance;
551
+ declare const cancelApproval: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
552
+ api: import("axios").AxiosInstance;
555
553
  }>], z.ZodObject<{
556
554
  id: z.ZodUUID;
557
555
  comment: z.ZodString;
@@ -571,8 +569,8 @@ declare const DepartmentIdSchema: z.ZodObject<{
571
569
  declare const CompanyCodeSchema: z.ZodObject<{
572
570
  companyCode: z.ZodString;
573
571
  }, z.core.$strip>;
574
- declare const searchEmployees: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
575
- api: _$axios.AxiosInstance;
572
+ declare const searchEmployees: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
573
+ api: import("axios").AxiosInstance;
576
574
  }>], z.ZodObject<{
577
575
  searchTerm: z.ZodString;
578
576
  }, z.core.$strip>, Promise<{
@@ -611,8 +609,8 @@ declare const searchEmployees: _$_tanstack_start_client_core0.RequiredFetcher<re
611
609
  terminationReason: string | null;
612
610
  supervisorRecordNumber: number;
613
611
  }[]>>;
614
- declare const getEmployees: _$_tanstack_start_client_core0.OptionalFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
615
- api: _$axios.AxiosInstance;
612
+ declare const getEmployees: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
613
+ api: import("axios").AxiosInstance;
616
614
  }>], undefined, Promise<{
617
615
  badgeId: string;
618
616
  category: string;
@@ -649,8 +647,8 @@ declare const getEmployees: _$_tanstack_start_client_core0.OptionalFetcher<reado
649
647
  terminationReason: string | null;
650
648
  supervisorRecordNumber: number;
651
649
  }[]>>;
652
- declare const getActiveEmployees: _$_tanstack_start_client_core0.OptionalFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
653
- api: _$axios.AxiosInstance;
650
+ declare const getActiveEmployees: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
651
+ api: import("axios").AxiosInstance;
654
652
  }>], undefined, Promise<{
655
653
  badgeId: string;
656
654
  category: string;
@@ -687,8 +685,8 @@ declare const getActiveEmployees: _$_tanstack_start_client_core0.OptionalFetcher
687
685
  terminationReason: string | null;
688
686
  supervisorRecordNumber: number;
689
687
  }[]>>;
690
- declare const getEmployeeByEmployeeId: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
691
- api: _$axios.AxiosInstance;
688
+ declare const getEmployeeByEmployeeId: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
689
+ api: import("axios").AxiosInstance;
692
690
  }>], z.ZodObject<{
693
691
  employeeId: z.ZodString;
694
692
  }, z.core.$strip>, Promise<{
@@ -727,8 +725,8 @@ declare const getEmployeeByEmployeeId: _$_tanstack_start_client_core0.RequiredFe
727
725
  terminationReason: string | null;
728
726
  supervisorRecordNumber: number;
729
727
  }>>;
730
- declare const getPreviousEmployeeIds: _$_tanstack_start_client_core0.OptionalFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
731
- api: _$axios.AxiosInstance;
728
+ declare const getPreviousEmployeeIds: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
729
+ api: import("axios").AxiosInstance;
732
730
  }>], undefined, Promise<{
733
731
  badgeId: string;
734
732
  category: string;
@@ -765,8 +763,8 @@ declare const getPreviousEmployeeIds: _$_tanstack_start_client_core0.OptionalFet
765
763
  terminationReason: string | null;
766
764
  supervisorRecordNumber: number;
767
765
  }[]>>;
768
- declare const getEmployeeSupervisor: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
769
- api: _$axios.AxiosInstance;
766
+ declare const getEmployeeSupervisor: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
767
+ api: import("axios").AxiosInstance;
770
768
  }>], z.ZodObject<{
771
769
  employeeId: z.ZodString;
772
770
  }, z.core.$strip>, Promise<{
@@ -805,8 +803,8 @@ declare const getEmployeeSupervisor: _$_tanstack_start_client_core0.RequiredFetc
805
803
  terminationReason: string | null;
806
804
  supervisorRecordNumber: number;
807
805
  }>>;
808
- declare const getEmployeeSubordinates: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
809
- api: _$axios.AxiosInstance;
806
+ declare const getEmployeeSubordinates: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
807
+ api: import("axios").AxiosInstance;
810
808
  }>], z.ZodObject<{
811
809
  employeeId: z.ZodString;
812
810
  }, z.core.$strip>, Promise<{
@@ -845,8 +843,8 @@ declare const getEmployeeSubordinates: _$_tanstack_start_client_core0.RequiredFe
845
843
  terminationReason: string | null;
846
844
  supervisorRecordNumber: number;
847
845
  }[]>>;
848
- declare const getEmployeeManager: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
849
- api: _$axios.AxiosInstance;
846
+ declare const getEmployeeManager: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
847
+ api: import("axios").AxiosInstance;
850
848
  }>], z.ZodObject<{
851
849
  employeeId: z.ZodString;
852
850
  }, z.core.$strip>, Promise<{
@@ -885,8 +883,8 @@ declare const getEmployeeManager: _$_tanstack_start_client_core0.RequiredFetcher
885
883
  terminationReason: string | null;
886
884
  supervisorRecordNumber: number;
887
885
  }>>;
888
- declare const getEmployeeGeneralManager: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
889
- api: _$axios.AxiosInstance;
886
+ declare const getEmployeeGeneralManager: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
887
+ api: import("axios").AxiosInstance;
890
888
  }>], z.ZodObject<{
891
889
  employeeId: z.ZodString;
892
890
  }, z.core.$strip>, Promise<{
@@ -925,8 +923,8 @@ declare const getEmployeeGeneralManager: _$_tanstack_start_client_core0.Required
925
923
  terminationReason: string | null;
926
924
  supervisorRecordNumber: number;
927
925
  }>>;
928
- declare const getDepartments: _$_tanstack_start_client_core0.OptionalFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
929
- api: _$axios.AxiosInstance;
926
+ declare const getDepartments: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
927
+ api: import("axios").AxiosInstance;
930
928
  }>], undefined, Promise<{
931
929
  departmentId: string;
932
930
  description: string;
@@ -975,8 +973,8 @@ declare const getDepartments: _$_tanstack_start_client_core0.OptionalFetcher<rea
975
973
  supervisorRecordNumber: number;
976
974
  };
977
975
  }[]>>;
978
- declare const getDepartmentById: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
979
- api: _$axios.AxiosInstance;
976
+ declare const getDepartmentById: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
977
+ api: import("axios").AxiosInstance;
980
978
  }>], z.ZodObject<{
981
979
  departmentId: z.ZodString;
982
980
  }, z.core.$strip>, Promise<{
@@ -1027,8 +1025,8 @@ declare const getDepartmentById: _$_tanstack_start_client_core0.RequiredFetcher<
1027
1025
  supervisorRecordNumber: number;
1028
1026
  };
1029
1027
  }>>;
1030
- declare const getDepartmentManager: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
1031
- api: _$axios.AxiosInstance;
1028
+ declare const getDepartmentManager: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
1029
+ api: import("axios").AxiosInstance;
1032
1030
  }>], z.ZodObject<{
1033
1031
  departmentId: z.ZodString;
1034
1032
  }, z.core.$strip>, Promise<{
@@ -1067,8 +1065,8 @@ declare const getDepartmentManager: _$_tanstack_start_client_core0.RequiredFetch
1067
1065
  terminationReason: string | null;
1068
1066
  supervisorRecordNumber: number;
1069
1067
  }>>;
1070
- declare const getDepartmentEmployees: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
1071
- api: _$axios.AxiosInstance;
1068
+ declare const getDepartmentEmployees: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
1069
+ api: import("axios").AxiosInstance;
1072
1070
  }>], z.ZodObject<{
1073
1071
  departmentId: z.ZodString;
1074
1072
  }, z.core.$strip>, Promise<{
@@ -1107,8 +1105,8 @@ declare const getDepartmentEmployees: _$_tanstack_start_client_core0.RequiredFet
1107
1105
  terminationReason: string | null;
1108
1106
  supervisorRecordNumber: number;
1109
1107
  }[]>>;
1110
- declare const getCompanyGeneralManager: _$_tanstack_start_client_core0.RequiredFetcher<readonly [_$_tanstack_start_client_core0.RequestMiddlewareAfterServer<{}, undefined, {
1111
- api: _$axios.AxiosInstance;
1108
+ declare const getCompanyGeneralManager: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").RequestMiddlewareAfterServer<{}, undefined, {
1109
+ api: import("axios").AxiosInstance;
1112
1110
  }>], z.ZodObject<{
1113
1111
  companyCode: z.ZodString;
1114
1112
  }, z.core.$strip>, Promise<{
@@ -1149,4 +1147,4 @@ declare const getCompanyGeneralManager: _$_tanstack_start_client_core0.RequiredF
1149
1147
  }>>;
1150
1148
  //#endregion
1151
1149
  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 };
1152
- //# sourceMappingURL=peoplesoft-BG_AV3zS.d.ts.map
1150
+ //# sourceMappingURL=peoplesoft-Cze2ngGd.d.ts.map
@@ -4,4 +4,4 @@ const queryClient = new QueryClient();
4
4
  //#endregion
5
5
  export { queryClient as t };
6
6
 
7
- //# sourceMappingURL=queryClient-1OJ5Va3i.js.map
7
+ //# sourceMappingURL=queryClient-D64McLhZ.js.map