hh-contracts 0.0.114 → 0.0.116

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.
@@ -1,6 +1,6 @@
1
1
  import * as z from 'zod';
2
- export declare const TokenSchema: z.ZodString;
3
- export type TToken = z.infer<typeof TokenSchema>;
2
+ export declare const JwtTokenSchema: z.ZodString;
3
+ export type TJwtToken = z.infer<typeof JwtTokenSchema>;
4
4
  export declare const AuthEmailLoginSchema: z.ZodObject<{
5
5
  email: z.ZodEmail;
6
6
  password: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.models.d.ts","sourceRoot":"","sources":["../../auth/auth.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,WAAW,aAAoB,CAAC;AAC7C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjD,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"auth.models.d.ts","sourceRoot":"","sources":["../../auth/auth.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,cAAc,aAAoB,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -33,16 +33,16 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthEmailLoginSchema = exports.TokenSchema = void 0;
36
+ exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthEmailLoginSchema = exports.JwtTokenSchema = void 0;
37
37
  const z = __importStar(require("zod"));
38
- exports.TokenSchema = z.string().min(1);
38
+ exports.JwtTokenSchema = z.string().min(1);
39
39
  exports.AuthEmailLoginSchema = z.object({
40
40
  email: z.email().toLowerCase(),
41
41
  password: z.string().min(1),
42
42
  });
43
43
  exports.AuthLoginResponseSchema = z.object({
44
- accessToken: exports.TokenSchema,
44
+ accessToken: exports.JwtTokenSchema,
45
45
  });
46
46
  exports.AuthRefreshResponseSchema = z.object({
47
- accessToken: exports.TokenSchema,
47
+ accessToken: exports.JwtTokenSchema,
48
48
  });
@@ -17,7 +17,7 @@ export declare namespace FindManyUsersContract {
17
17
  blocked: "blocked";
18
18
  }>>>;
19
19
  roleIds: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
20
- hotelId: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
20
+ hotelIds: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
21
21
  }, z.core.$strip>;
22
22
  type TBaseFilter = z.input<typeof BaseFilterSchema>;
23
23
  const SORTING_KEYS: ("email" | "createdAt" | "status" | "fullName")[];
@@ -30,7 +30,7 @@ export declare namespace FindManyUsersContract {
30
30
  blocked: "blocked";
31
31
  }>>>;
32
32
  roleIds: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
33
- hotelId: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
33
+ hotelIds: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
34
34
  orderBy: z.ZodOptional<z.ZodEnum<{
35
35
  email: "email";
36
36
  createdAt: "createdAt";
@@ -42,7 +42,7 @@ const BaseQuerySchema = z
42
42
  .object({
43
43
  status: z.enum(user_models_1.USER_STATUS_VALUES).optional(),
44
44
  roleIds: common_1.UuidArrayQueryParamSchema.optional(),
45
- hotelId: common_1.UuidArrayQueryParamSchema.optional(),
45
+ hotelIds: common_1.UuidArrayQueryParamSchema.optional(),
46
46
  })
47
47
  .partial();
48
48
  const OrderBySchema = user_models_1.UserListItemSchema.omit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",