wcz-layout 10.1.7 → 10.1.9

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 (63) hide show
  1. package/dist/{AggregatedCell-CqGptV6i.mjs → AggregatedCell-oGcwbetF.mjs} +3 -3
  2. package/dist/{AggregatedCell-CqGptV6i.mjs.map → AggregatedCell-oGcwbetF.mjs.map} +1 -1
  3. package/dist/Approval-DoD-GRRH.mjs.map +1 -1
  4. package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -1
  5. package/dist/Email-BzQQkbe9.mjs.map +1 -1
  6. package/dist/{Employee-N9fRSnIl.d.mts → Employee-agVPiGrJ.d.mts} +9 -9
  7. package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
  8. package/dist/{RouterListItemButton-ke6iPKkL.mjs → RouterListItemButton-ULMlaQh6.mjs} +9 -9
  9. package/dist/RouterListItemButton-ULMlaQh6.mjs.map +1 -0
  10. package/dist/approval-L09uPzTU.mjs.map +1 -1
  11. package/dist/auth.mjs.map +1 -1
  12. package/dist/components.mjs +73 -62
  13. package/dist/components.mjs.map +1 -1
  14. package/dist/createApi-BhNkG4jz.mjs.map +1 -1
  15. package/dist/data/client.d.mts +241 -241
  16. package/dist/data/client.mjs.map +1 -1
  17. package/dist/data/server.d.mts +1 -1
  18. package/dist/data/server.mjs.map +1 -1
  19. package/dist/file-Chlljz3o.mjs.map +1 -1
  20. package/dist/file-Dl8JCcqy.mjs.map +1 -1
  21. package/dist/hooks.mjs +27 -27
  22. package/dist/hooks.mjs.map +1 -1
  23. package/dist/index.mjs +11 -11
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/middleware.mjs.map +1 -1
  26. package/dist/models.d.mts +1 -1
  27. package/dist/models.mjs +4 -4
  28. package/dist/models.mjs.map +1 -1
  29. package/dist/{peoplesoft-BIdTNshE.d.mts → peoplesoft-D6q3cYsH.d.mts} +2 -2
  30. package/dist/providers-BvuZWkpD.mjs.map +1 -1
  31. package/dist/tokens-XuFhVbh5.mjs.map +1 -1
  32. package/dist/utils-CaeVFWF-.mjs.map +1 -1
  33. package/dist/vite.mjs.map +1 -1
  34. package/package.json +8 -8
  35. package/skills/client-db/SKILL.md +136 -136
  36. package/skills/db-schema/SKILL.md +98 -98
  37. package/skills/dialogs/SKILL.md +74 -74
  38. package/skills/forms/SKILL.md +122 -122
  39. package/skills/general/SKILL.md +127 -127
  40. package/skills/general/references/exports.md +114 -114
  41. package/skills/migrations/SKILL.md +57 -57
  42. package/skills/migrations/versions/migrate-v10-to-v11.md +2 -0
  43. package/skills/migrations/versions/migrate-v9-to-v10.md +582 -582
  44. package/skills/routing/SKILL.md +87 -87
  45. package/skills/server-functions/SKILL.md +95 -95
  46. package/skills/services/SKILL.md +34 -34
  47. package/skills/services/docs/approval.md +258 -258
  48. package/skills/services/docs/email.md +32 -32
  49. package/skills/services/docs/file.md +108 -108
  50. package/skills/services/docs/peoplesoft.md +114 -114
  51. package/skills/start/SKILL.md +52 -52
  52. package/skills/start/steps/01-git-setup.md +10 -10
  53. package/skills/start/steps/02-project-name-setup.md +19 -19
  54. package/skills/start/steps/03-apm-setup.md +97 -97
  55. package/skills/start/steps/04-wicop-setup.md +105 -105
  56. package/skills/start/steps/05-database-setup.md +52 -52
  57. package/skills/start/steps/06-entra-setup.md +96 -96
  58. package/skills/start/steps/07-vault-setup.md +115 -115
  59. package/skills/start/steps/08-generate-favicon.md +8 -8
  60. package/skills/start/steps/09-gitlab-ci.md +25 -25
  61. package/skills/start/steps/10-commit.md +15 -15
  62. package/skills/table/SKILL.md +2 -1
  63. package/dist/RouterListItemButton-ke6iPKkL.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"createApi-BhNkG4jz.mjs","names":["createServerOnlyFn","axios","AxiosError","AxiosInstance","https","serverEnv","scopes","definedScopes","getAccessToken","getAppToken","getSessionUser","ApiOptions","baseURL","scopeKey","httpsAgent","Agent","rejectUnauthorized","createApi","Promise","resolvedBaseURL","process","env","Error","accessToken","api","create","headers","Authorization","interceptors","response","use","undefined","error","data","message"],"sources":["../src/lib/createApi.ts"],"sourcesContent":["import { createServerOnlyFn } from \"@tanstack/react-start\";\r\nimport axios, { AxiosError, type AxiosInstance } from \"axios\";\r\nimport https from \"node:https\";\r\nimport type { serverEnv } from \"virtual:wcz-layout\";\r\nimport { scopes as definedScopes } from \"virtual:wcz-layout\";\r\nimport { getAccessToken, getAppToken } from \"~/lib/auth/tokens\";\r\nimport { getSessionUser } from \"~/lib/auth/user\";\r\n\r\nexport interface ApiOptions {\r\n baseURL: keyof typeof serverEnv & `${string}BASE_URL${string}`;\r\n scopeKey: keyof typeof definedScopes;\r\n}\r\n\r\nconst httpsAgent = new https.Agent({\r\n rejectUnauthorized: false,\r\n});\r\n\r\nexport const createApi = createServerOnlyFn(\r\n async ({ baseURL, scopeKey }: ApiOptions): Promise<AxiosInstance> => {\r\n const resolvedBaseURL = process.env[baseURL];\r\n if (!resolvedBaseURL) throw new Error(`\"${baseURL}\" env variable is not set.`);\r\n\r\n const accessToken = (await getSessionUser())\r\n ? await getAccessToken(scopeKey)\r\n : await getAppToken(scopeKey);\r\n\r\n const api = axios.create({\r\n baseURL: resolvedBaseURL,\r\n httpsAgent,\r\n headers: { Authorization: `Bearer ${accessToken}` },\r\n });\r\n\r\n api.interceptors.response.use(undefined, (error: unknown) => {\r\n if (error instanceof AxiosError)\r\n throw new Error(error.response?.data?.message ?? error.message);\r\n throw error;\r\n });\r\n\r\n return api;\r\n },\r\n);\r\n"],"mappings":";;;;;;;AAaA,MAAMc,aAAa,IAAIV,MAAMW,MAAM,EACjCC,oBAAoB,MACtB,CAAC;AAED,MAAaC,YAAYjB,mBACvB,OAAO,EAAEY,SAASC,eAAmD;CACnE,MAAMM,kBAAkBC,QAAQC,IAAIT;CACpC,IAAI,CAACO,iBAAiB,MAAM,IAAIG,MAAM,IAAIV,QAAO,2BAA4B;CAE7E,MAAMW,cAAe,MAAMb,eAAe,IACtC,MAAMF,eAAeK,QAAQ,IAC7B,MAAMJ,YAAYI,QAAQ;CAE9B,MAAMW,MAAMvB,MAAMwB,OAAO;EACvBb,SAASO;EACTL;EACAY,SAAS,EAAEC,eAAe,UAAUJ,cAAc;CACpD,CAAC;CAEDC,IAAII,aAAaC,SAASC,IAAIC,KAAAA,IAAYC,UAAmB;EAC3D,IAAIA,iBAAiB9B,YACnB,MAAM,IAAIoB,MAAMU,MAAMH,UAAUI,MAAMC,WAAWF,MAAME,OAAO;EAChE,MAAMF;CACR,CAAC;CAED,OAAOR;AACT,CACF"}
1
+ {"version":3,"file":"createApi-BhNkG4jz.mjs","names":["createServerOnlyFn","axios","AxiosError","AxiosInstance","https","serverEnv","scopes","definedScopes","getAccessToken","getAppToken","getSessionUser","ApiOptions","baseURL","scopeKey","httpsAgent","Agent","rejectUnauthorized","createApi","Promise","resolvedBaseURL","process","env","Error","accessToken","api","create","headers","Authorization","interceptors","response","use","undefined","error","data","message"],"sources":["../src/lib/createApi.ts"],"sourcesContent":["import { createServerOnlyFn } from \"@tanstack/react-start\";\nimport axios, { AxiosError, type AxiosInstance } from \"axios\";\nimport https from \"node:https\";\nimport type { serverEnv } from \"virtual:wcz-layout\";\nimport { scopes as definedScopes } from \"virtual:wcz-layout\";\nimport { getAccessToken, getAppToken } from \"~/lib/auth/tokens\";\nimport { getSessionUser } from \"~/lib/auth/user\";\n\nexport interface ApiOptions {\n baseURL: keyof typeof serverEnv & `${string}BASE_URL${string}`;\n scopeKey: keyof typeof definedScopes;\n}\n\nconst httpsAgent = new https.Agent({\n rejectUnauthorized: false,\n});\n\nexport const createApi = createServerOnlyFn(\n async ({ baseURL, scopeKey }: ApiOptions): Promise<AxiosInstance> => {\n const resolvedBaseURL = process.env[baseURL];\n if (!resolvedBaseURL) throw new Error(`\"${baseURL}\" env variable is not set.`);\n\n const accessToken = (await getSessionUser())\n ? await getAccessToken(scopeKey)\n : await getAppToken(scopeKey);\n\n const api = axios.create({\n baseURL: resolvedBaseURL,\n httpsAgent,\n headers: { Authorization: `Bearer ${accessToken}` },\n });\n\n api.interceptors.response.use(undefined, (error: unknown) => {\n if (error instanceof AxiosError)\n throw new Error(error.response?.data?.message ?? error.message);\n throw error;\n });\n\n return api;\n },\n);\n"],"mappings":";;;;;;;AAaA,MAAMc,aAAa,IAAIV,MAAMW,MAAM,EACjCC,oBAAoB,MACtB,CAAC;AAED,MAAaC,YAAYjB,mBACvB,OAAO,EAAEY,SAASC,eAAmD;CACnE,MAAMM,kBAAkBC,QAAQC,IAAIT;CACpC,IAAI,CAACO,iBAAiB,MAAM,IAAIG,MAAM,IAAIV,QAAO,2BAA4B;CAE7E,MAAMW,cAAe,MAAMb,eAAe,IACtC,MAAMF,eAAeK,QAAQ,IAC7B,MAAMJ,YAAYI,QAAQ;CAE9B,MAAMW,MAAMvB,MAAMwB,OAAO;EACvBb,SAASO;EACTL;EACAY,SAAS,EAAEC,eAAe,UAAUJ,cAAc;CACpD,CAAC;CAEDC,IAAII,aAAaC,SAASC,IAAIC,KAAAA,IAAYC,UAAmB;EAC3D,IAAIA,iBAAiB9B,YACnB,MAAM,IAAIoB,MAAMU,MAAMH,UAAUI,MAAMC,WAAWF,MAAME,OAAO;EAChE,MAAMF;CACR,CAAC;CAED,OAAOR;AACT,CACF"}