wcz-layout 8.0.1 → 8.0.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.
@@ -33,7 +33,11 @@ const authorizationMiddleware = (permissionKey) => createMiddleware().middleware
33
33
  throw Response.json({ message: `Forbidden: User ${context.user.name} is not authorized to access this resource` }, { status: 403 });
34
34
  });
35
35
  const serverFnAccessTokenMiddleware = (scopeKey) => createMiddleware({ type: "function" }).client(async ({ next }) => {
36
- return next({ headers: { Authorization: `Bearer ${await getAccessToken(scopeKey)}` } });
36
+ try {
37
+ return next({ headers: { Authorization: `Bearer ${await getAccessToken(scopeKey)}` } });
38
+ } catch {
39
+ return next();
40
+ }
37
41
  });
38
42
  async function verifyToken(token) {
39
43
  const { payload } = await jose.jwtVerify(token, getJWKS(), {
@@ -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"],"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 const accessToken = await getAccessToken(scopeKey);\n return next({\n headers: {\n Authorization: `Bearer ${accessToken}`,\n },\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"],"mappings":";;;;;AASA,MAAMU,mCAAmCV,kBAAkB,CAACW,OAC1D,OAAO,EAAEE,MAAMC,cAAc;CAC3B,MAAMC,cAAcD,QAAQE,QAAQC,IAAI,gBAAgB;AAExD,KAAI,CAACF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AAQ,KAAK,CAAC;;AAEzE,QAAO,MAAMrB,KAAK,EAAEsB,SAAS,EAAEC,MAAMpB,OAAOoB,MAAK,EAAG,CAAC;EACrD"}
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"],"sourcesContent":["import { createMiddleware } from \"@tanstack/react-start\";\r\nimport * as jose from \"jose\";\r\nimport type { scopes as definedScopes, permissions } from \"virtual:wcz-layout\";\r\nimport type { TokenPayload } from \"~/models/TokenPayload\";\r\nimport type { User } from \"~/models/User\";\r\nimport { serverEnv } from \"~/env\";\r\nimport { getAccessToken } from \"~/lib/auth/msalClient\";\r\nimport { buildUser } from \"~/lib/utils\";\r\n\r\nconst requiredAuthenticationMiddleware = createMiddleware().server<{ user: User }>(\r\n async ({ next, request }) => {\r\n const accessToken = request.headers.get(\"Authorization\");\r\n\r\n if (!accessToken?.startsWith(\"Bearer\"))\r\n throw Response.json(\r\n { message: \"Unauthorized: Invalid Authorization header\" },\r\n { status: 401 },\r\n );\r\n\r\n let tokenPayload: TokenPayload;\r\n try {\r\n tokenPayload = await verifyToken(accessToken.substring(7));\r\n } catch (error) {\r\n throw Response.json(\r\n { message: error instanceof Error ? error.message : \"Unauthorized: Invalid access token\" },\r\n { status: 401 },\r\n );\r\n }\r\n\r\n const user = buildUser(tokenPayload);\r\n\r\n return next({ context: { user } });\r\n },\r\n);\r\n\r\nconst publicAuthenticationMiddleware = createMiddleware().server<{ user: User | null }>(\r\n async ({ next, request }) => {\r\n const accessToken = request.headers.get(\"Authorization\");\r\n\r\n if (!accessToken?.startsWith(\"Bearer\")) return next({ context: { user: null } });\r\n\r\n let tokenPayload: TokenPayload;\r\n try {\r\n tokenPayload = await verifyToken(accessToken.substring(7));\r\n } catch (error) {\r\n throw Response.json(\r\n { message: error instanceof Error ? error.message : \"Unauthorized: Invalid access token\" },\r\n { status: 401 },\r\n );\r\n }\r\n\r\n const user = buildUser(tokenPayload);\r\n\r\n return next({ context: { user } });\r\n },\r\n);\r\n\r\nexport function authenticationMiddleware(options?: {\r\n optional?: false;\r\n}): typeof requiredAuthenticationMiddleware;\r\n\r\nexport function authenticationMiddleware(options: {\r\n optional: true;\r\n}): typeof publicAuthenticationMiddleware;\r\n\r\nexport function authenticationMiddleware(options: {\r\n optional: boolean;\r\n}): typeof requiredAuthenticationMiddleware | typeof publicAuthenticationMiddleware;\r\n\r\nexport function authenticationMiddleware(options?: { optional?: boolean }) {\r\n return options?.optional ? publicAuthenticationMiddleware : requiredAuthenticationMiddleware;\r\n}\r\n\r\nexport const authorizationMiddleware = (permissionKey: keyof typeof permissions) =>\r\n createMiddleware()\r\n .middleware([authenticationMiddleware()])\r\n .server(async ({ next, context }) => {\r\n if (context.user.hasPermission(permissionKey)) return next();\r\n throw Response.json(\r\n {\r\n message: `Forbidden: User ${context.user.name} is not authorized to access this resource`,\r\n },\r\n { status: 403 },\r\n );\r\n });\r\n\r\nexport const serverFnAccessTokenMiddleware = (scopeKey: keyof typeof definedScopes) =>\r\n createMiddleware({ type: \"function\" }).client(async ({ next }) => {\r\n try {\r\n const accessToken = await getAccessToken(scopeKey);\r\n return next({\r\n headers: {\r\n Authorization: `Bearer ${accessToken}`,\r\n },\r\n });\r\n } catch {\r\n return next();\r\n }\r\n });\r\n\r\nasync function verifyToken(token: string): Promise<TokenPayload> {\r\n const { payload } = await jose.jwtVerify(token, getJWKS(), {\r\n issuer: `https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}/v2.0`,\r\n audience: serverEnv.ENTRA_CLIENT_ID,\r\n });\r\n return payload as unknown as TokenPayload;\r\n}\r\n\r\nlet jwksCache: ReturnType<typeof jose.createRemoteJWKSet> | null = null;\r\n\r\nfunction getJWKS() {\r\n jwksCache ??= jose.createRemoteJWKSet(\r\n new URL(`https://login.microsoftonline.com/${serverEnv.ENTRA_TENANT_ID}/discovery/v2.0/keys`),\r\n );\r\n return jwksCache;\r\n}\r\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"],"mappings":";;;;;AASA,MAAMU,mCAAmCV,kBAAkB,CAACW,OAC1D,OAAO,EAAEE,MAAMC,cAAc;CAC3B,MAAMC,cAAcD,QAAQE,QAAQC,IAAI,gBAAgB;AAExD,KAAI,CAACF,aAAaG,WAAW,SAAS,CACpC,OAAMC,SAASC,KACb,EAAEC,SAAS,8CAA8C,EACzD,EAAEC,QAAQ,KACZ,CAAC;CAEH,IAAIC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MpB,OAAOoB,MAAK,EAAG,CAAC;EACrD"}
package/dist/models.d.ts CHANGED
@@ -154,10 +154,10 @@ declare const ApprovalSchema: z$1.ZodObject<{
154
154
  status: z$1.ZodEnum<{
155
155
  WaitingForApproval: "WaitingForApproval";
156
156
  Approved: "Approved";
157
+ PartiallyApproved: "PartiallyApproved";
157
158
  Rejected: "Rejected";
158
159
  Withdrawn: "Withdrawn";
159
160
  Cancelled: "Cancelled";
160
- PartiallyApproved: "PartiallyApproved";
161
161
  }>;
162
162
  emailBody: z$1.ZodString;
163
163
  created: z$1.ZodDate;
@@ -199,7 +199,7 @@ declare const ApprovalSchema: z$1.ZodObject<{
199
199
  name: string;
200
200
  email: string;
201
201
  } | undefined;
202
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
202
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
203
203
  resultDate?: Date | undefined;
204
204
  resultComment?: string | undefined;
205
205
  }[];
@@ -224,7 +224,7 @@ declare const ApprovalSchema: z$1.ZodObject<{
224
224
  name: string;
225
225
  email: string;
226
226
  } | undefined;
227
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
227
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
228
228
  resultDate?: Date | undefined;
229
229
  resultComment?: string | undefined;
230
230
  }[];
@@ -273,14 +273,14 @@ type CreateApproval = z$1.infer<typeof CreateApprovalSchema>;
273
273
  declare const ApproveApprovalSchema: z$1.ZodObject<{
274
274
  id: z$1.ZodUUID;
275
275
  result: z$1.ZodEnum<{
276
- NotAvailable: "NotAvailable";
277
- FutureApproval: "FutureApproval";
278
276
  WaitingForApproval: "WaitingForApproval";
279
277
  Approved: "Approved";
280
278
  Rejected: "Rejected";
281
- Skipped: "Skipped";
282
279
  Withdrawn: "Withdrawn";
283
280
  Cancelled: "Cancelled";
281
+ NotAvailable: "NotAvailable";
282
+ FutureApproval: "FutureApproval";
283
+ Skipped: "Skipped";
284
284
  }>;
285
285
  resultComment: z$1.ZodOptional<z$1.ZodString>;
286
286
  emailBody: z$1.ZodString;
@@ -353,7 +353,7 @@ declare const ApprovalFlowSchema: z.ZodObject<{
353
353
  name: string;
354
354
  email: string;
355
355
  } | undefined;
356
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
356
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
357
357
  resultDate?: Date | undefined;
358
358
  resultComment?: string | undefined;
359
359
  }, {
@@ -370,7 +370,7 @@ declare const ApprovalFlowSchema: z.ZodObject<{
370
370
  name: string;
371
371
  email: string;
372
372
  } | undefined;
373
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
373
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
374
374
  resultDate?: Date | undefined;
375
375
  resultComment?: string | undefined;
376
376
  }>>;
@@ -394,14 +394,14 @@ declare const ApprovalFlowStepSchema: z.ZodObject<{
394
394
  email: z.ZodEmail;
395
395
  }, z.core.$strip>>;
396
396
  result: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
397
- NotAvailable: "NotAvailable";
398
- FutureApproval: "FutureApproval";
399
397
  WaitingForApproval: "WaitingForApproval";
400
398
  Approved: "Approved";
401
399
  Rejected: "Rejected";
402
- Skipped: "Skipped";
403
400
  Withdrawn: "Withdrawn";
404
401
  Cancelled: "Cancelled";
402
+ NotAvailable: "NotAvailable";
403
+ FutureApproval: "FutureApproval";
404
+ Skipped: "Skipped";
405
405
  }>>>;
406
406
  resultDate: z.ZodOptional<z.ZodDate>;
407
407
  resultComment: z.ZodOptional<z.ZodString>;
@@ -418,22 +418,22 @@ declare const ApprovalRequestType: z$1.ZodEnum<{
418
418
  declare const ApprovalStatus: z$1.ZodEnum<{
419
419
  WaitingForApproval: "WaitingForApproval";
420
420
  Approved: "Approved";
421
+ PartiallyApproved: "PartiallyApproved";
421
422
  Rejected: "Rejected";
422
423
  Withdrawn: "Withdrawn";
423
424
  Cancelled: "Cancelled";
424
- PartiallyApproved: "PartiallyApproved";
425
425
  }>;
426
426
  //#endregion
427
427
  //#region src/models/approval/ApprovalStepResult.d.ts
428
428
  declare const ApprovalStepResult: z$1.ZodEnum<{
429
- NotAvailable: "NotAvailable";
430
- FutureApproval: "FutureApproval";
431
429
  WaitingForApproval: "WaitingForApproval";
432
430
  Approved: "Approved";
433
431
  Rejected: "Rejected";
434
- Skipped: "Skipped";
435
432
  Withdrawn: "Withdrawn";
436
433
  Cancelled: "Cancelled";
434
+ NotAvailable: "NotAvailable";
435
+ FutureApproval: "FutureApproval";
436
+ Skipped: "Skipped";
437
437
  }>;
438
438
  //#endregion
439
439
  //#region src/models/approval/StepApprovalOrder.d.ts
package/dist/query.d.ts CHANGED
@@ -14,21 +14,21 @@ declare const GetApprovalsParamsSchema: z$1.ZodObject<{
14
14
  status: z$1.ZodOptional<z$1.ZodEnum<{
15
15
  WaitingForApproval: "WaitingForApproval";
16
16
  Approved: "Approved";
17
+ PartiallyApproved: "PartiallyApproved";
17
18
  Rejected: "Rejected";
18
19
  Withdrawn: "Withdrawn";
19
20
  Cancelled: "Cancelled";
20
- PartiallyApproved: "PartiallyApproved";
21
21
  }>>;
22
22
  approverEmployeeId: z$1.ZodOptional<z$1.ZodString>;
23
23
  stepResult: z$1.ZodOptional<z$1.ZodEnum<{
24
- NotAvailable: "NotAvailable";
25
- FutureApproval: "FutureApproval";
26
24
  WaitingForApproval: "WaitingForApproval";
27
25
  Approved: "Approved";
28
26
  Rejected: "Rejected";
29
- Skipped: "Skipped";
30
27
  Withdrawn: "Withdrawn";
31
28
  Cancelled: "Cancelled";
29
+ NotAvailable: "NotAvailable";
30
+ FutureApproval: "FutureApproval";
31
+ Skipped: "Skipped";
32
32
  }>>;
33
33
  }, z$1.core.$strip>;
34
34
  type GetApprovalsParams = z$1.infer<typeof GetApprovalsParamsSchema>;
@@ -2264,7 +2264,7 @@ declare const query: {
2264
2264
  approvals: (params?: GetApprovalsParams) => _$_tanstack_query_core0.OmitKeyof<_$_tanstack_react_query0.UseQueryOptions<{
2265
2265
  id: string;
2266
2266
  applicationName: string;
2267
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2267
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2268
2268
  emailBody: string;
2269
2269
  created: Date;
2270
2270
  createdBy: {
@@ -2297,7 +2297,7 @@ declare const query: {
2297
2297
  name: string;
2298
2298
  email: string;
2299
2299
  } | undefined;
2300
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2300
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2301
2301
  resultDate?: Date | undefined;
2302
2302
  resultComment?: string | undefined;
2303
2303
  }[];
@@ -2314,7 +2314,7 @@ declare const query: {
2314
2314
  }[], Error, {
2315
2315
  id: string;
2316
2316
  applicationName: string;
2317
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2317
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2318
2318
  emailBody: string;
2319
2319
  created: Date;
2320
2320
  createdBy: {
@@ -2347,7 +2347,7 @@ declare const query: {
2347
2347
  name: string;
2348
2348
  email: string;
2349
2349
  } | undefined;
2350
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2350
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2351
2351
  resultDate?: Date | undefined;
2352
2352
  resultComment?: string | undefined;
2353
2353
  }[];
@@ -2363,14 +2363,14 @@ declare const query: {
2363
2363
  type?: "Single" | "Batch" | undefined;
2364
2364
  }[], (string | {
2365
2365
  appName?: string | undefined;
2366
- status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
2366
+ status?: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled" | undefined;
2367
2367
  approverEmployeeId?: string | undefined;
2368
- stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2368
+ stepResult?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2369
2369
  } | undefined)[]>, "queryFn"> & {
2370
2370
  queryFn?: _$_tanstack_query_core0.QueryFunction<{
2371
2371
  id: string;
2372
2372
  applicationName: string;
2373
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2373
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2374
2374
  emailBody: string;
2375
2375
  created: Date;
2376
2376
  createdBy: {
@@ -2403,7 +2403,7 @@ declare const query: {
2403
2403
  name: string;
2404
2404
  email: string;
2405
2405
  } | undefined;
2406
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2406
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2407
2407
  resultDate?: Date | undefined;
2408
2408
  resultComment?: string | undefined;
2409
2409
  }[];
@@ -2419,21 +2419,21 @@ declare const query: {
2419
2419
  type?: "Single" | "Batch" | undefined;
2420
2420
  }[], (string | {
2421
2421
  appName?: string | undefined;
2422
- status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
2422
+ status?: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled" | undefined;
2423
2423
  approverEmployeeId?: string | undefined;
2424
- stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2424
+ stepResult?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2425
2425
  } | undefined)[], never> | undefined;
2426
2426
  } & {
2427
2427
  queryKey: (string | {
2428
2428
  appName?: string | undefined;
2429
- status?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved" | undefined;
2429
+ status?: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled" | undefined;
2430
2430
  approverEmployeeId?: string | undefined;
2431
- stepResult?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2431
+ stepResult?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2432
2432
  } | undefined)[] & {
2433
2433
  [dataTagSymbol]: {
2434
2434
  id: string;
2435
2435
  applicationName: string;
2436
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2436
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2437
2437
  emailBody: string;
2438
2438
  created: Date;
2439
2439
  createdBy: {
@@ -2466,7 +2466,7 @@ declare const query: {
2466
2466
  name: string;
2467
2467
  email: string;
2468
2468
  } | undefined;
2469
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2469
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2470
2470
  resultDate?: Date | undefined;
2471
2471
  resultComment?: string | undefined;
2472
2472
  }[];
@@ -2487,7 +2487,7 @@ declare const query: {
2487
2487
  approval: (id: string) => _$_tanstack_query_core0.OmitKeyof<_$_tanstack_react_query0.UseQueryOptions<{
2488
2488
  id: string;
2489
2489
  applicationName: string;
2490
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2490
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2491
2491
  emailBody: string;
2492
2492
  created: Date;
2493
2493
  createdBy: {
@@ -2520,7 +2520,7 @@ declare const query: {
2520
2520
  name: string;
2521
2521
  email: string;
2522
2522
  } | undefined;
2523
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2523
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2524
2524
  resultDate?: Date | undefined;
2525
2525
  resultComment?: string | undefined;
2526
2526
  }[];
@@ -2537,7 +2537,7 @@ declare const query: {
2537
2537
  }, Error, {
2538
2538
  id: string;
2539
2539
  applicationName: string;
2540
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2540
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2541
2541
  emailBody: string;
2542
2542
  created: Date;
2543
2543
  createdBy: {
@@ -2570,7 +2570,7 @@ declare const query: {
2570
2570
  name: string;
2571
2571
  email: string;
2572
2572
  } | undefined;
2573
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2573
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2574
2574
  resultDate?: Date | undefined;
2575
2575
  resultComment?: string | undefined;
2576
2576
  }[];
@@ -2588,7 +2588,7 @@ declare const query: {
2588
2588
  queryFn?: _$_tanstack_query_core0.QueryFunction<{
2589
2589
  id: string;
2590
2590
  applicationName: string;
2591
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2591
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2592
2592
  emailBody: string;
2593
2593
  created: Date;
2594
2594
  createdBy: {
@@ -2621,7 +2621,7 @@ declare const query: {
2621
2621
  name: string;
2622
2622
  email: string;
2623
2623
  } | undefined;
2624
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2624
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2625
2625
  resultDate?: Date | undefined;
2626
2626
  resultComment?: string | undefined;
2627
2627
  }[];
@@ -2641,7 +2641,7 @@ declare const query: {
2641
2641
  [dataTagSymbol]: {
2642
2642
  id: string;
2643
2643
  applicationName: string;
2644
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2644
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2645
2645
  emailBody: string;
2646
2646
  created: Date;
2647
2647
  createdBy: {
@@ -2674,7 +2674,7 @@ declare const query: {
2674
2674
  name: string;
2675
2675
  email: string;
2676
2676
  } | undefined;
2677
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2677
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2678
2678
  resultDate?: Date | undefined;
2679
2679
  resultComment?: string | undefined;
2680
2680
  }[];
@@ -2695,7 +2695,7 @@ declare const query: {
2695
2695
  create: () => Omit<_$_tanstack_react_query0.UseMutationOptions<{
2696
2696
  id: string;
2697
2697
  applicationName: string;
2698
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2698
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2699
2699
  emailBody: string;
2700
2700
  created: Date;
2701
2701
  createdBy: {
@@ -2728,7 +2728,7 @@ declare const query: {
2728
2728
  name: string;
2729
2729
  email: string;
2730
2730
  } | undefined;
2731
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2731
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2732
2732
  resultDate?: Date | undefined;
2733
2733
  resultComment?: string | undefined;
2734
2734
  }[];
@@ -2765,7 +2765,7 @@ declare const query: {
2765
2765
  approve: () => Omit<_$_tanstack_react_query0.UseMutationOptions<{
2766
2766
  id: string;
2767
2767
  applicationName: string;
2768
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2768
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2769
2769
  emailBody: string;
2770
2770
  created: Date;
2771
2771
  createdBy: {
@@ -2798,7 +2798,7 @@ declare const query: {
2798
2798
  name: string;
2799
2799
  email: string;
2800
2800
  } | undefined;
2801
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2801
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2802
2802
  resultDate?: Date | undefined;
2803
2803
  resultComment?: string | undefined;
2804
2804
  }[];
@@ -2814,14 +2814,14 @@ declare const query: {
2814
2814
  type?: "Single" | "Batch" | undefined;
2815
2815
  }, Error, {
2816
2816
  id: string;
2817
- result: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled";
2817
+ result: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped";
2818
2818
  emailBody: string;
2819
2819
  resultComment?: string | undefined;
2820
2820
  }, unknown>, "mutationKey">;
2821
2821
  resubmit: () => Omit<_$_tanstack_react_query0.UseMutationOptions<{
2822
2822
  id: string;
2823
2823
  applicationName: string;
2824
- status: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "PartiallyApproved";
2824
+ status: "WaitingForApproval" | "Approved" | "PartiallyApproved" | "Rejected" | "Withdrawn" | "Cancelled";
2825
2825
  emailBody: string;
2826
2826
  created: Date;
2827
2827
  createdBy: {
@@ -2854,7 +2854,7 @@ declare const query: {
2854
2854
  name: string;
2855
2855
  email: string;
2856
2856
  } | undefined;
2857
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
2857
+ result?: "WaitingForApproval" | "Approved" | "Rejected" | "Withdrawn" | "Cancelled" | "NotAvailable" | "FutureApproval" | "Skipped" | undefined;
2858
2858
  resultDate?: Date | undefined;
2859
2859
  resultComment?: string | undefined;
2860
2860
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wcz-layout",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "tanstack-intent"