hh-contracts 0.0.68 → 0.0.69

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.
@@ -9,7 +9,7 @@ const BaseQuerySchema = role_models_1.RoleListItemSchema.pick({
9
9
  type: true,
10
10
  isActive: true,
11
11
  })
12
- .extend({ roleIds: zod_1.z.array(zod_1.z.string().uuid()).optional() })
12
+ .extend({ permissionIds: zod_1.z.array(zod_1.z.string().uuid()).optional() })
13
13
  .partial();
14
14
  const OrderBySchema = role_models_1.RoleListItemSchema.omit({
15
15
  id: true,
@@ -13,7 +13,7 @@ exports.RolePersistedSchema = zod_1.z
13
13
  })
14
14
  .merge(common_1.TimestampSchema);
15
15
  exports.RoleWithPermissionsSchema = exports.RolePersistedSchema.extend({
16
- permissionIds: zod_1.z.array(zod_1.z.string().uuid()),
16
+ permissionIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
17
17
  });
18
18
  exports.RoleWithTranslationsSchema = exports.RoleWithPermissionsSchema.extend({
19
19
  translations: common_1.TranslationsSchema.pick({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@ const BaseQuerySchema = RoleListItemSchema.pick({
7
7
  type: true,
8
8
  isActive: true,
9
9
  })
10
- .extend({ roleIds: z.array(z.string().uuid()).optional() })
10
+ .extend({ permissionIds: z.array(z.string().uuid()).optional() })
11
11
  .partial();
12
12
 
13
13
  const OrderBySchema = RoleListItemSchema.omit({
@@ -13,7 +13,7 @@ export const RolePersistedSchema = z
13
13
  export type TRolePersisted = z.infer<typeof RolePersistedSchema>;
14
14
 
15
15
  export const RoleWithPermissionsSchema = RolePersistedSchema.extend({
16
- permissionIds: z.array(z.string().uuid()),
16
+ permissionIds: z.array(z.string().uuid()).optional(),
17
17
  });
18
18
  export type TRoleWithPermissions = z.infer<typeof RoleWithPermissionsSchema>;
19
19