hh-contracts 0.0.121 → 0.0.123

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.
Files changed (41) hide show
  1. package/build/auth/auth.api.d.ts +6 -2
  2. package/build/auth/auth.api.d.ts.map +1 -1
  3. package/build/auth/auth.api.js +3 -1
  4. package/build/auth/auth.models.d.ts +13 -3
  5. package/build/auth/auth.models.d.ts.map +1 -1
  6. package/build/auth/auth.models.js +19 -4
  7. package/build/auth/constant/auth-identifier-types.constant.d.ts +7 -0
  8. package/build/auth/constant/auth-identifier-types.constant.d.ts.map +1 -0
  9. package/build/auth/constant/auth-identifier-types.constant.js +8 -0
  10. package/build/auth/constant/index.d.ts +2 -0
  11. package/build/auth/constant/index.d.ts.map +1 -0
  12. package/build/auth/constant/index.js +17 -0
  13. package/build/auth/contracts/index.d.ts +3 -1
  14. package/build/auth/contracts/index.d.ts.map +1 -1
  15. package/build/auth/contracts/index.js +3 -1
  16. package/build/auth/contracts/me-hotels.contract.d.ts +35 -0
  17. package/build/auth/contracts/me-hotels.contract.d.ts.map +1 -0
  18. package/build/auth/contracts/me-hotels.contract.js +55 -0
  19. package/build/auth/contracts/{me-password-reset.contract.d.ts → password-reset-confirm.contract.d.ts} +4 -4
  20. package/build/auth/contracts/password-reset-confirm.contract.d.ts.map +1 -0
  21. package/build/auth/contracts/{me-password-reset.contract.js → password-reset-confirm.contract.js} +9 -9
  22. package/build/auth/contracts/password-reset-request.contract.d.ts +22 -0
  23. package/build/auth/contracts/password-reset-request.contract.d.ts.map +1 -0
  24. package/build/auth/contracts/password-reset-request.contract.js +51 -0
  25. package/build/common/models/common-query-params.schema.d.ts +1 -1
  26. package/build/common/models/email.schema.d.ts +3 -0
  27. package/build/common/models/email.schema.d.ts.map +1 -0
  28. package/build/common/models/email.schema.js +38 -0
  29. package/build/common/models/index.d.ts +2 -1
  30. package/build/common/models/index.d.ts.map +1 -1
  31. package/build/common/models/index.js +2 -1
  32. package/build/common/models/search.schema.d.ts +1 -1
  33. package/build/common/models/search.schema.d.ts.map +1 -1
  34. package/build/common/models/search.schema.js +7 -1
  35. package/build/hotels/contracts/find-many-hotels.contract.d.ts +1 -1
  36. package/build/hotels/integrations/contracts/find-all-hotel-integrations.contract.d.ts +1 -1
  37. package/build/permissions/contracts/find-many-permission.contract.d.ts +1 -1
  38. package/build/roles/contracts/find-many-roles.contract.d.ts +1 -1
  39. package/build/users/contracts/find-many-users.contract.d.ts +1 -1
  40. package/package.json +1 -1
  41. package/build/auth/contracts/me-password-reset.contract.d.ts.map +0 -1
@@ -6,13 +6,15 @@ export declare const AUTH_CONTROLLER: {
6
6
  readonly logout: "logout";
7
7
  readonly me: "me";
8
8
  readonly meAbility: "me/ability";
9
+ readonly meHotels: "me/hotels";
9
10
  readonly mePasswordChange: "me/password/change";
10
- readonly mePasswordReset: "me/password/reset";
11
11
  readonly meSessions: "me/sessions";
12
12
  readonly meSessionsRevokeAll: "me/sessions/revoke-all";
13
13
  readonly sessionRevoke: "sessions/:sessionId/revoke";
14
14
  readonly userPasswordReset: "users/:userId/password/reset";
15
15
  readonly userSessionsRevokeAll: "users/:userId/sessions/revoke-all";
16
+ readonly passwordResetRequest: "password/reset/request";
17
+ readonly passwordResetConfirm: "password/reset/confirm";
16
18
  };
17
19
  };
18
20
  export declare const AUTH_API: import("../common/utils").TApi<{
@@ -23,13 +25,15 @@ export declare const AUTH_API: import("../common/utils").TApi<{
23
25
  readonly logout: "logout";
24
26
  readonly me: "me";
25
27
  readonly meAbility: "me/ability";
28
+ readonly meHotels: "me/hotels";
26
29
  readonly mePasswordChange: "me/password/change";
27
- readonly mePasswordReset: "me/password/reset";
28
30
  readonly meSessions: "me/sessions";
29
31
  readonly meSessionsRevokeAll: "me/sessions/revoke-all";
30
32
  readonly sessionRevoke: "sessions/:sessionId/revoke";
31
33
  readonly userPasswordReset: "users/:userId/password/reset";
32
34
  readonly userSessionsRevokeAll: "users/:userId/sessions/revoke-all";
35
+ readonly passwordResetRequest: "password/reset/request";
36
+ readonly passwordResetConfirm: "password/reset/confirm";
33
37
  };
34
38
  }>;
35
39
  //# sourceMappingURL=auth.api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.api.d.ts","sourceRoot":"","sources":["../../auth/auth.api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgBI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;EAA6B,CAAC"}
1
+ {"version":3,"file":"auth.api.d.ts","sourceRoot":"","sources":["../../auth/auth.api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAkBI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;EAA6B,CAAC"}
@@ -10,13 +10,15 @@ exports.AUTH_CONTROLLER = {
10
10
  logout: 'logout',
11
11
  me: 'me',
12
12
  meAbility: 'me/ability',
13
+ meHotels: 'me/hotels',
13
14
  mePasswordChange: 'me/password/change',
14
- mePasswordReset: 'me/password/reset',
15
15
  meSessions: 'me/sessions',
16
16
  meSessionsRevokeAll: 'me/sessions/revoke-all',
17
17
  sessionRevoke: 'sessions/:sessionId/revoke',
18
18
  userPasswordReset: 'users/:userId/password/reset',
19
19
  userSessionsRevokeAll: 'users/:userId/sessions/revoke-all',
20
+ passwordResetRequest: 'password/reset/request',
21
+ passwordResetConfirm: 'password/reset/confirm',
20
22
  },
21
23
  };
22
24
  exports.AUTH_API = (0, utils_1.createApi)(exports.AUTH_CONTROLLER);
@@ -21,11 +21,21 @@ export declare const AuthUserPasswordResetSchema: z.ZodObject<{
21
21
  newPassword: z.ZodString;
22
22
  }, z.core.$strip>;
23
23
  export type TAuthUserPasswordReset = z.infer<typeof AuthUserPasswordResetSchema>;
24
- export declare const AuthMePasswordResetSchema: z.ZodObject<{
24
+ export declare const AuthPasswordResetConfirmSchema: z.ZodObject<{
25
25
  newPassword: z.ZodString;
26
- resetHash: z.ZodString;
26
+ token: z.ZodString;
27
27
  }, z.core.$strip>;
28
- export type TAuthMePasswordReset = z.infer<typeof AuthMePasswordResetSchema>;
28
+ export type TAuthPasswordResetConfirm = z.infer<typeof AuthPasswordResetConfirmSchema>;
29
+ export declare const AuthIdentifierSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
30
+ type: z.ZodLiteral<"email">;
31
+ value: z.ZodEmail;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ type: z.ZodLiteral<"phone">;
34
+ value: z.ZodString;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ type: z.ZodLiteral<"login">;
37
+ value: z.ZodString;
38
+ }, z.core.$strip>], "type">;
29
39
  export declare const AuthAbilityConditionSchema: z.ZodObject<{
30
40
  hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
31
41
  userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
@@ -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;AAGzB,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;AAEH,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,eAAO,MAAM,yBAAyB;;;iBAEpC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,0BAA0B;;;iBAK3B,CAAC;AACb,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAY5B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAErC,CAAC"}
1
+ {"version":3,"file":"auth.models.d.ts","sourceRoot":"","sources":["../../auth/auth.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,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;AAEH,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,eAAO,MAAM,8BAA8B;;;iBAEzC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEvF,eAAO,MAAM,oBAAoB;;;;;;;;;2BAa/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAK3B,CAAC;AACb,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAY5B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAErC,CAAC"}
@@ -33,12 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AuthSessionsResponseSchema = exports.AuthSessionSchema = exports.AuthAbilityResponseSchema = exports.AuthAbilityRuleSchema = exports.AuthAbilityConditionSchema = exports.AuthMePasswordResetSchema = exports.AuthUserPasswordResetSchema = exports.AuthMePasswordChangeSchema = exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthLoginEmailSchema = exports.JwtTokenSchema = void 0;
36
+ exports.AuthSessionsResponseSchema = exports.AuthSessionSchema = exports.AuthAbilityResponseSchema = exports.AuthAbilityRuleSchema = exports.AuthAbilityConditionSchema = exports.AuthIdentifierSchema = exports.AuthPasswordResetConfirmSchema = exports.AuthUserPasswordResetSchema = exports.AuthMePasswordChangeSchema = exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthLoginEmailSchema = exports.JwtTokenSchema = void 0;
37
37
  const z = __importStar(require("zod"));
38
38
  const common_1 = require("../common");
39
+ const constant_1 = require("./constant");
39
40
  exports.JwtTokenSchema = z.string().min(1);
40
41
  exports.AuthLoginEmailSchema = z.object({
41
- email: z.email().toLowerCase(),
42
+ email: common_1.EmailSchema,
42
43
  password: z.string().min(1),
43
44
  });
44
45
  exports.AuthLoginResponseSchema = z.object({
@@ -54,9 +55,23 @@ exports.AuthMePasswordChangeSchema = z.object({
54
55
  exports.AuthUserPasswordResetSchema = z.object({
55
56
  newPassword: z.string().min(8),
56
57
  });
57
- exports.AuthMePasswordResetSchema = exports.AuthUserPasswordResetSchema.extend({
58
- resetHash: z.string().min(1),
58
+ exports.AuthPasswordResetConfirmSchema = exports.AuthUserPasswordResetSchema.extend({
59
+ token: z.string().min(1),
59
60
  });
61
+ exports.AuthIdentifierSchema = z.discriminatedUnion('type', [
62
+ z.object({
63
+ type: z.literal(constant_1.AUTH_IDENTIFIER_TYPES.email),
64
+ value: common_1.EmailSchema,
65
+ }),
66
+ z.object({
67
+ type: z.literal(constant_1.AUTH_IDENTIFIER_TYPES.phone),
68
+ value: z.string().min(6), // позже нормализуем к E.164
69
+ }),
70
+ z.object({
71
+ type: z.literal(constant_1.AUTH_IDENTIFIER_TYPES.login),
72
+ value: z.string().min(3),
73
+ }),
74
+ ]);
60
75
  exports.AuthAbilityConditionSchema = z
61
76
  .object({
62
77
  hotelId: common_1.UuidSchema.optional(),
@@ -0,0 +1,7 @@
1
+ export declare const AUTH_IDENTIFIER_TYPES: {
2
+ readonly email: "email";
3
+ readonly phone: "phone";
4
+ readonly login: "login";
5
+ };
6
+ export type TAuthIdentifierType = (typeof AUTH_IDENTIFIER_TYPES)[keyof typeof AUTH_IDENTIFIER_TYPES];
7
+ //# sourceMappingURL=auth-identifier-types.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-identifier-types.constant.d.ts","sourceRoot":"","sources":["../../../auth/constant/auth-identifier-types.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTH_IDENTIFIER_TYPES = void 0;
4
+ exports.AUTH_IDENTIFIER_TYPES = {
5
+ email: 'email',
6
+ phone: 'phone',
7
+ login: 'login',
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from './auth-identifier-types.constant';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../auth/constant/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth-identifier-types.constant"), exports);
@@ -3,11 +3,13 @@ export * from './refresh.contract';
3
3
  export * from './logout.contract';
4
4
  export * from './me.contract';
5
5
  export * from './me-password-change.contract';
6
- export * from './me-password-reset.contract';
6
+ export * from './password-reset-confirm.contract';
7
7
  export * from './user-password-reset.contract';
8
+ export * from './password-reset-request.contract';
8
9
  export * from './me-ability.contract';
9
10
  export * from './user-sessions-revoke-all.contract';
10
11
  export * from './session-revoke.contract';
11
12
  export * from './me-sessions-revoke-all.contract';
12
13
  export * from './me-sessions.contract';
14
+ export * from './me-hotels.contract';
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../auth/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../auth/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
@@ -19,10 +19,12 @@ __exportStar(require("./refresh.contract"), exports);
19
19
  __exportStar(require("./logout.contract"), exports);
20
20
  __exportStar(require("./me.contract"), exports);
21
21
  __exportStar(require("./me-password-change.contract"), exports);
22
- __exportStar(require("./me-password-reset.contract"), exports);
22
+ __exportStar(require("./password-reset-confirm.contract"), exports);
23
23
  __exportStar(require("./user-password-reset.contract"), exports);
24
+ __exportStar(require("./password-reset-request.contract"), exports);
24
25
  __exportStar(require("./me-ability.contract"), exports);
25
26
  __exportStar(require("./user-sessions-revoke-all.contract"), exports);
26
27
  __exportStar(require("./session-revoke.contract"), exports);
27
28
  __exportStar(require("./me-sessions-revoke-all.contract"), exports);
28
29
  __exportStar(require("./me-sessions.contract"), exports);
30
+ __exportStar(require("./me-hotels.contract"), exports);
@@ -0,0 +1,35 @@
1
+ import * as z from 'zod';
2
+ export declare namespace AuthMeHotelsContract {
3
+ const getUrl: (params?: {} | undefined) => string;
4
+ const endpoint: "me/hotels";
5
+ const httpMethod: "GET";
6
+ const RequestSchema: z.ZodObject<{
7
+ status: z.ZodOptional<z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
8
+ active: "active";
9
+ disabled: "disabled";
10
+ pending: "pending";
11
+ maintenance: "maintenance";
12
+ archived: "archived";
13
+ }>>>>;
14
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ type TRequest = z.infer<typeof RequestSchema>;
17
+ const ResponseSchema: z.ZodObject<{
18
+ hotels: z.ZodArray<z.ZodObject<{
19
+ createdAt: z.ZodDate;
20
+ updatedAt: z.ZodDate;
21
+ id: z.ZodUUID;
22
+ slug: z.ZodString;
23
+ status: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
24
+ active: "active";
25
+ disabled: "disabled";
26
+ pending: "pending";
27
+ maintenance: "maintenance";
28
+ archived: "archived";
29
+ }>>>;
30
+ name: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
33
+ type TResponse = z.infer<typeof ResponseSchema>;
34
+ }
35
+ //# sourceMappingURL=me-hotels.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me-hotels.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/me-hotels.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AASzB,yBAAiB,oBAAoB,CAAC;IAC7B,MAAM,MAAM,qCAAoB,CAAC;IACjC,MAAM,QAAQ,aAAqC,CAAC;IACpD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,aAAa;;;;;;;;;qBAExB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;qBAEzB,CAAC;IACH,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.AuthMeHotelsContract = void 0;
37
+ const z = __importStar(require("zod"));
38
+ const common_1 = require("../../common");
39
+ const auth_api_1 = require("../auth.api");
40
+ const hotels_1 = require("../../hotels");
41
+ const BaseQuerySchema = hotels_1.HotelListItemSchema.pick({
42
+ status: true,
43
+ }).partial();
44
+ var AuthMeHotelsContract;
45
+ (function (AuthMeHotelsContract) {
46
+ AuthMeHotelsContract.getUrl = auth_api_1.AUTH_API.meHotels;
47
+ AuthMeHotelsContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.meHotels;
48
+ AuthMeHotelsContract.httpMethod = common_1.HTTP_METHODS.get;
49
+ AuthMeHotelsContract.RequestSchema = BaseQuerySchema.extend({
50
+ ...common_1.SearchSchema.shape,
51
+ });
52
+ AuthMeHotelsContract.ResponseSchema = z.object({
53
+ hotels: z.array(hotels_1.HotelListItemSchema),
54
+ });
55
+ })(AuthMeHotelsContract || (exports.AuthMeHotelsContract = AuthMeHotelsContract = {}));
@@ -1,14 +1,14 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthMePasswordResetContract {
2
+ export declare namespace AuthPasswordResetConfirmContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
- const endpoint: "me/password/reset";
4
+ const endpoint: "password/reset/confirm";
5
5
  const httpMethod: "POST";
6
6
  const RequestSchema: z.ZodObject<{
7
7
  newPassword: z.ZodString;
8
- resetHash: z.ZodString;
8
+ token: z.ZodString;
9
9
  }, z.core.$strip>;
10
10
  type TRequest = z.infer<typeof RequestSchema>;
11
11
  const ResponseSchema: z.ZodVoid;
12
12
  type TResponse = z.infer<typeof ResponseSchema>;
13
13
  }
14
- //# sourceMappingURL=me-password-reset.contract.d.ts.map
14
+ //# sourceMappingURL=password-reset-confirm.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-confirm.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/password-reset-confirm.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,gCAAgC,CAAC;IACzC,MAAM,MAAM,qCAAgC,CAAC;IAC7C,MAAM,QAAQ,0BAAiD,CAAC;IAChE,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAAiC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -33,16 +33,16 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AuthMePasswordResetContract = void 0;
36
+ exports.AuthPasswordResetConfirmContract = void 0;
37
37
  const z = __importStar(require("zod"));
38
38
  const common_1 = require("../../common");
39
39
  const auth_api_1 = require("../auth.api");
40
40
  const auth_models_1 = require("../auth.models");
41
- var AuthMePasswordResetContract;
42
- (function (AuthMePasswordResetContract) {
43
- AuthMePasswordResetContract.getUrl = auth_api_1.AUTH_API.mePasswordReset;
44
- AuthMePasswordResetContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.mePasswordReset;
45
- AuthMePasswordResetContract.httpMethod = common_1.HTTP_METHODS.post;
46
- AuthMePasswordResetContract.RequestSchema = auth_models_1.AuthMePasswordResetSchema;
47
- AuthMePasswordResetContract.ResponseSchema = z.void();
48
- })(AuthMePasswordResetContract || (exports.AuthMePasswordResetContract = AuthMePasswordResetContract = {}));
41
+ var AuthPasswordResetConfirmContract;
42
+ (function (AuthPasswordResetConfirmContract) {
43
+ AuthPasswordResetConfirmContract.getUrl = auth_api_1.AUTH_API.passwordResetConfirm;
44
+ AuthPasswordResetConfirmContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.passwordResetConfirm;
45
+ AuthPasswordResetConfirmContract.httpMethod = common_1.HTTP_METHODS.post;
46
+ AuthPasswordResetConfirmContract.RequestSchema = auth_models_1.AuthPasswordResetConfirmSchema;
47
+ AuthPasswordResetConfirmContract.ResponseSchema = z.void();
48
+ })(AuthPasswordResetConfirmContract || (exports.AuthPasswordResetConfirmContract = AuthPasswordResetConfirmContract = {}));
@@ -0,0 +1,22 @@
1
+ import * as z from 'zod';
2
+ export declare namespace AuthPasswordResetRequestContract {
3
+ const getUrl: (params?: {} | undefined) => string;
4
+ const endpoint: "password/reset/request";
5
+ const httpMethod: "POST";
6
+ const RequestSchema: z.ZodObject<{
7
+ identifier: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ type: z.ZodLiteral<"email">;
9
+ value: z.ZodEmail;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ type: z.ZodLiteral<"phone">;
12
+ value: z.ZodString;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodLiteral<"login">;
15
+ value: z.ZodString;
16
+ }, z.core.$strip>], "type">;
17
+ }, z.core.$strip>;
18
+ type TRequest = z.infer<typeof RequestSchema>;
19
+ const ResponseSchema: z.ZodVoid;
20
+ type TResponse = z.infer<typeof ResponseSchema>;
21
+ }
22
+ //# sourceMappingURL=password-reset-request.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-request.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/password-reset-request.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AASzB,yBAAiB,gCAAgC,CAAC;IACzC,MAAM,MAAM,qCAAgC,CAAC;IAC7C,MAAM,QAAQ,0BAAiD,CAAC;IAChE,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;;;;;;;;;qBAAiC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.AuthPasswordResetRequestContract = void 0;
37
+ const z = __importStar(require("zod"));
38
+ const auth_models_1 = require("../auth.models");
39
+ const auth_api_1 = require("../auth.api");
40
+ const common_1 = require("../../common");
41
+ const AuthPasswordResetRequestSchema = z.object({
42
+ identifier: auth_models_1.AuthIdentifierSchema,
43
+ });
44
+ var AuthPasswordResetRequestContract;
45
+ (function (AuthPasswordResetRequestContract) {
46
+ AuthPasswordResetRequestContract.getUrl = auth_api_1.AUTH_API.passwordResetRequest;
47
+ AuthPasswordResetRequestContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.passwordResetRequest;
48
+ AuthPasswordResetRequestContract.httpMethod = common_1.HTTP_METHODS.post;
49
+ AuthPasswordResetRequestContract.RequestSchema = AuthPasswordResetRequestSchema;
50
+ AuthPasswordResetRequestContract.ResponseSchema = z.void();
51
+ })(AuthPasswordResetRequestContract || (exports.AuthPasswordResetRequestContract = AuthPasswordResetRequestContract = {}));
@@ -7,7 +7,7 @@ export declare const CommonQueryParamsSchema: z.ZodObject<{
7
7
  }>>;
8
8
  page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
9
9
  pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
10
- searchText: z.ZodOptional<z.ZodString>;
10
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
11
11
  }, z.core.$strip>;
12
12
  export type TCommonQueryParams = z.infer<typeof CommonQueryParamsSchema>;
13
13
  //# sourceMappingURL=common-query-params.schema.d.ts.map
@@ -0,0 +1,3 @@
1
+ import * as z from 'zod';
2
+ export declare const EmailSchema: z.ZodEmail;
3
+ //# sourceMappingURL=email.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.schema.d.ts","sourceRoot":"","sources":["../../../common/models/email.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,WAAW,YAA0B,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.EmailSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.EmailSchema = z.email().toLowerCase();
@@ -1,5 +1,7 @@
1
1
  export * from './boolean-query-param.schema';
2
2
  export * from './common-query-params.schema';
3
+ export * from './domain-name.schema';
4
+ export * from './email.schema';
3
5
  export * from './icon-key.schema';
4
6
  export * from './info.schema';
5
7
  export * from './navigation-item.schemas';
@@ -12,5 +14,4 @@ export * from './timezone.schema';
12
14
  export * from './language-keys.schema';
13
15
  export * from './translations.schemas';
14
16
  export * from './uuid.schemas';
15
- export * from './domain-name.schema';
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../common/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./boolean-query-param.schema"), exports);
18
18
  __exportStar(require("./common-query-params.schema"), exports);
19
+ __exportStar(require("./domain-name.schema"), exports);
20
+ __exportStar(require("./email.schema"), exports);
19
21
  __exportStar(require("./icon-key.schema"), exports);
20
22
  __exportStar(require("./info.schema"), exports);
21
23
  __exportStar(require("./navigation-item.schemas"), exports);
@@ -28,4 +30,3 @@ __exportStar(require("./timezone.schema"), exports);
28
30
  __exportStar(require("./language-keys.schema"), exports);
29
31
  __exportStar(require("./translations.schemas"), exports);
30
32
  __exportStar(require("./uuid.schemas"), exports);
31
- __exportStar(require("./domain-name.schema"), exports);
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
2
  export declare const SearchSchema: z.ZodObject<{
3
- searchText: z.ZodOptional<z.ZodString>;
3
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
4
4
  }, z.core.$strip>;
5
5
  //# sourceMappingURL=search.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.schema.d.ts","sourceRoot":"","sources":["../../../common/models/search.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,YAAY;;iBAEvB,CAAC"}
1
+ {"version":3,"file":"search.schema.d.ts","sourceRoot":"","sources":["../../../common/models/search.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAQzB,eAAO,MAAM,YAAY;;iBAEvB,CAAC"}
@@ -35,6 +35,12 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.SearchSchema = void 0;
37
37
  const z = __importStar(require("zod"));
38
+ const normalizeSearch = (value) => {
39
+ if (typeof value !== 'string')
40
+ return value;
41
+ const trimmed = value.trim();
42
+ return trimmed.length ? trimmed : undefined;
43
+ };
38
44
  exports.SearchSchema = z.object({
39
- searchText: z.string().min(1).optional(),
45
+ searchText: z.preprocess(normalizeSearch, z.string().min(1).optional()),
40
46
  });
@@ -43,7 +43,7 @@ export declare namespace FindManyHotelsContract {
43
43
  }>>;
44
44
  page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
45
45
  pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
46
- searchText: z.ZodOptional<z.ZodString>;
46
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
47
47
  }, z.core.$strip>;
48
48
  type TRequest = z.infer<typeof RequestSchema>;
49
49
  const ResponseSchema: z.ZodObject<{
@@ -6,7 +6,7 @@ export declare namespace FindAllHotelIntegrationsContract {
6
6
  const endpoint: "findAll";
7
7
  const httpMethod: "GET";
8
8
  const RequestSchema: z.ZodObject<{
9
- searchText: z.ZodOptional<z.ZodString>;
9
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
10
10
  }, z.core.$strip>;
11
11
  type TRequest = z.infer<typeof RequestSchema>;
12
12
  const ResponseSchema: z.ZodArray<z.ZodObject<{
@@ -73,7 +73,7 @@ export declare namespace FindManyPermissionsContract {
73
73
  }>>;
74
74
  page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
75
75
  pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
76
- searchText: z.ZodOptional<z.ZodString>;
76
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
77
77
  }, z.core.$strip>;
78
78
  type TRequest = z.infer<typeof RequestSchema>;
79
79
  const ResponseSchema: z.ZodObject<{
@@ -47,7 +47,7 @@ export declare namespace FindManyRolesContract {
47
47
  }>>;
48
48
  page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
49
49
  pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
50
- searchText: z.ZodOptional<z.ZodString>;
50
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
51
51
  }, z.core.$strip>;
52
52
  type TRequest = z.infer<typeof RequestSchema>;
53
53
  const ResponseSchema: z.ZodObject<{
@@ -43,7 +43,7 @@ export declare namespace FindManyUsersContract {
43
43
  }>>;
44
44
  page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
45
45
  pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
46
- searchText: z.ZodOptional<z.ZodString>;
46
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
47
47
  }, z.core.$strip>;
48
48
  type TRequest = z.infer<typeof RequestSchema>;
49
49
  const ResponseSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.121",
3
+ "version": "0.0.123",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"me-password-reset.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/me-password-reset.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,2BAA2B,CAAC;IACpC,MAAM,MAAM,qCAA2B,CAAC;IACxC,MAAM,QAAQ,qBAA4C,CAAC;IAC3D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAA4B,CAAC;IACvD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}