@esb-market-contracts/admin-backend 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schemas.d.ts +3 -3
- package/schemas.js +2 -2
package/package.json
CHANGED
package/schemas.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
|
-
/** Schema for the payload of an
|
|
6
|
-
export declare const
|
|
5
|
+
/** Schema for the payload of an access token. */
|
|
6
|
+
export declare const accessTokenPayloadSchema: z.ZodObject<{
|
|
7
7
|
employee: z.ZodObject<{
|
|
8
8
|
id: z.ZodInt;
|
|
9
9
|
email: z.ZodString;
|
|
@@ -18,6 +18,6 @@ export declare const authPayloadSchema: z.ZodObject<{
|
|
|
18
18
|
"employee.update": "employee.update";
|
|
19
19
|
}>>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
-
export type
|
|
21
|
+
export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
|
|
22
22
|
|
|
23
23
|
export {};
|
package/schemas.js
CHANGED
|
@@ -234,10 +234,10 @@ var authorizeRequestSchema = z5.object({
|
|
|
234
234
|
email: z5.email().min(8).max(128),
|
|
235
235
|
password: z5.string().min(8).max(128)
|
|
236
236
|
});
|
|
237
|
-
var
|
|
237
|
+
var accessTokenPayloadSchema = z5.object({
|
|
238
238
|
employee: employeeSchema.pick({ id: true, email: true, fullName: true }),
|
|
239
239
|
permissions: z5.array(z5.enum(PBACPermissionItems))
|
|
240
240
|
});
|
|
241
241
|
export {
|
|
242
|
-
|
|
242
|
+
accessTokenPayloadSchema
|
|
243
243
|
};
|