hh-contracts 0.0.100 → 0.0.101

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.
@@ -42,7 +42,7 @@ const BaseQuerySchema = permission_models_1.PermissionListItemSchema.pick({
42
42
  subject: true,
43
43
  action: true,
44
44
  }).partial();
45
- const OrderBySchema = permission_models_1.PermissionListItemSchema.keyof();
45
+ const OrderBySchema = permission_models_1.PermissionListItemSchema.omit({ conditions: true }).keyof();
46
46
  const FindManyPermissionsContractRequestSchema = BaseQuerySchema.extend({
47
47
  ...common_1.CommonQueryParamsSchema.shape,
48
48
  orderBy: OrderBySchema.optional(),
@@ -40,9 +40,11 @@ const role_models_1 = require("../role.models");
40
40
  const roles_api_1 = require("../roles.api");
41
41
  const BaseQuerySchema = role_models_1.RoleListItemSchema.pick({
42
42
  type: true,
43
- isActive: true,
44
43
  })
45
- .extend({ permissionIds: z.array(z.uuid()).optional() })
44
+ .extend({
45
+ isActive: z.coerce.boolean().optional(),
46
+ permissionIds: z.array(z.uuid()).optional(),
47
+ })
46
48
  .partial();
47
49
  const OrderBySchema = role_models_1.RoleListItemSchema.omit({
48
50
  id: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ const BaseQuerySchema = PermissionListItemSchema.pick({
8
8
  action: true,
9
9
  }).partial();
10
10
 
11
- const OrderBySchema = PermissionListItemSchema.keyof();
11
+ const OrderBySchema = PermissionListItemSchema.omit({ conditions: true }).keyof();
12
12
 
13
13
  const FindManyPermissionsContractRequestSchema = BaseQuerySchema.extend({
14
14
  ...CommonQueryParamsSchema.shape,
@@ -5,9 +5,11 @@ import { ROLES_API, ROLES_CONTROLLER } from '../roles.api';
5
5
 
6
6
  const BaseQuerySchema = RoleListItemSchema.pick({
7
7
  type: true,
8
- isActive: true,
9
8
  })
10
- .extend({ permissionIds: z.array(z.uuid()).optional() })
9
+ .extend({
10
+ isActive: z.coerce.boolean().optional(),
11
+ permissionIds: z.array(z.uuid()).optional(),
12
+ })
11
13
  .partial();
12
14
 
13
15
  const OrderBySchema = RoleListItemSchema.omit({