hh-contracts 0.0.120 → 0.0.122

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 (42) hide show
  1. package/build/auth/auth.api.d.ts +16 -12
  2. package/build/auth/auth.api.d.ts.map +1 -1
  3. package/build/auth/auth.api.js +8 -6
  4. package/build/auth/auth.models.d.ts +11 -6
  5. package/build/auth/auth.models.d.ts.map +1 -1
  6. package/build/auth/auth.models.js +7 -4
  7. package/build/auth/contracts/index.d.ts +8 -6
  8. package/build/auth/contracts/index.d.ts.map +1 -1
  9. package/build/auth/contracts/index.js +8 -6
  10. package/build/auth/contracts/{email-login.contract.d.ts → login-email.contract.d.ts} +2 -2
  11. package/build/auth/contracts/{email-login.contract.d.ts.map → login-email.contract.d.ts.map} +1 -1
  12. package/build/auth/contracts/login-email.contract.js +14 -0
  13. package/build/auth/contracts/{ability.contract.d.ts → me-ability.contract.d.ts} +3 -3
  14. package/build/auth/contracts/me-ability.contract.d.ts.map +1 -0
  15. package/build/auth/contracts/me-ability.contract.js +13 -0
  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/{password-change.contract.d.ts → me-password-change.contract.d.ts} +3 -3
  20. package/build/auth/contracts/me-password-change.contract.d.ts.map +1 -0
  21. package/build/auth/contracts/{password-reset.contract.js → me-password-change.contract.js} +9 -9
  22. package/build/auth/contracts/me-password-reset.contract.d.ts +14 -0
  23. package/build/auth/contracts/me-password-reset.contract.d.ts.map +1 -0
  24. package/build/auth/contracts/{password-change.contract.js → me-password-reset.contract.js} +9 -9
  25. package/build/auth/contracts/{sessions-revoke-all.contract.d.ts → me-sessions-revoke-all.contract.d.ts} +3 -3
  26. package/build/auth/contracts/me-sessions-revoke-all.contract.d.ts.map +1 -0
  27. package/build/auth/contracts/{sessions-revoke-all.contract.js → me-sessions-revoke-all.contract.js} +8 -8
  28. package/build/auth/contracts/{sessions.contract.d.ts → me-sessions.contract.d.ts} +3 -3
  29. package/build/auth/contracts/me-sessions.contract.d.ts.map +1 -0
  30. package/build/auth/contracts/me-sessions.contract.js +13 -0
  31. package/build/auth/contracts/{password-reset.contract.d.ts → user-password-reset.contract.d.ts} +3 -3
  32. package/build/auth/contracts/user-password-reset.contract.d.ts.map +1 -0
  33. package/build/auth/contracts/user-password-reset.contract.js +48 -0
  34. package/package.json +1 -1
  35. package/build/auth/contracts/ability.contract.d.ts.map +0 -1
  36. package/build/auth/contracts/ability.contract.js +0 -13
  37. package/build/auth/contracts/email-login.contract.js +0 -14
  38. package/build/auth/contracts/password-change.contract.d.ts.map +0 -1
  39. package/build/auth/contracts/password-reset.contract.d.ts.map +0 -1
  40. package/build/auth/contracts/sessions-revoke-all.contract.d.ts.map +0 -1
  41. package/build/auth/contracts/sessions.contract.d.ts.map +0 -1
  42. package/build/auth/contracts/sessions.contract.js +0 -13
@@ -1,32 +1,36 @@
1
1
  export declare const AUTH_CONTROLLER: {
2
2
  readonly prefix: "auth";
3
3
  readonly endpoints: {
4
- readonly emailLogin: "login/email";
4
+ readonly loginEmail: "login/email";
5
5
  readonly refresh: "refresh";
6
6
  readonly logout: "logout";
7
7
  readonly me: "me";
8
- readonly ability: "ability";
9
- readonly password: "password";
10
- readonly userPassword: "users/:userId/password";
11
- readonly sessions: "sessions";
12
- readonly sessionsRevokeAll: "sessions/revoke-all";
8
+ readonly meAbility: "me/ability";
9
+ readonly meHotels: "me/hotels";
10
+ readonly mePasswordChange: "me/password/change";
11
+ readonly mePasswordReset: "me/password/reset";
12
+ readonly meSessions: "me/sessions";
13
+ readonly meSessionsRevokeAll: "me/sessions/revoke-all";
13
14
  readonly sessionRevoke: "sessions/:sessionId/revoke";
15
+ readonly userPasswordReset: "users/:userId/password/reset";
14
16
  readonly userSessionsRevokeAll: "users/:userId/sessions/revoke-all";
15
17
  };
16
18
  };
17
19
  export declare const AUTH_API: import("../common/utils").TApi<{
18
20
  readonly prefix: "auth";
19
21
  readonly endpoints: {
20
- readonly emailLogin: "login/email";
22
+ readonly loginEmail: "login/email";
21
23
  readonly refresh: "refresh";
22
24
  readonly logout: "logout";
23
25
  readonly me: "me";
24
- readonly ability: "ability";
25
- readonly password: "password";
26
- readonly userPassword: "users/:userId/password";
27
- readonly sessions: "sessions";
28
- readonly sessionsRevokeAll: "sessions/revoke-all";
26
+ readonly meAbility: "me/ability";
27
+ readonly meHotels: "me/hotels";
28
+ readonly mePasswordChange: "me/password/change";
29
+ readonly mePasswordReset: "me/password/reset";
30
+ readonly meSessions: "me/sessions";
31
+ readonly meSessionsRevokeAll: "me/sessions/revoke-all";
29
32
  readonly sessionRevoke: "sessions/:sessionId/revoke";
33
+ readonly userPasswordReset: "users/:userId/password/reset";
30
34
  readonly userSessionsRevokeAll: "users/:userId/sessions/revoke-all";
31
35
  };
32
36
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.api.d.ts","sourceRoot":"","sources":["../../auth/auth.api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAeI,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;;;;;;;;;;;;;;;;;CAiBI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;EAA6B,CAAC"}
@@ -5,16 +5,18 @@ const utils_1 = require("../common/utils");
5
5
  exports.AUTH_CONTROLLER = {
6
6
  prefix: 'auth',
7
7
  endpoints: {
8
- emailLogin: 'login/email',
8
+ loginEmail: 'login/email',
9
9
  refresh: 'refresh',
10
10
  logout: 'logout',
11
11
  me: 'me',
12
- ability: 'ability',
13
- password: 'password',
14
- userPassword: 'users/:userId/password',
15
- sessions: 'sessions',
16
- sessionsRevokeAll: 'sessions/revoke-all',
12
+ meAbility: 'me/ability',
13
+ meHotels: 'me/hotels',
14
+ mePasswordChange: 'me/password/change',
15
+ mePasswordReset: 'me/password/reset',
16
+ meSessions: 'me/sessions',
17
+ meSessionsRevokeAll: 'me/sessions/revoke-all',
17
18
  sessionRevoke: 'sessions/:sessionId/revoke',
19
+ userPasswordReset: 'users/:userId/password/reset',
18
20
  userSessionsRevokeAll: 'users/:userId/sessions/revoke-all',
19
21
  },
20
22
  };
@@ -1,26 +1,31 @@
1
1
  import * as z from 'zod';
2
2
  export declare const JwtTokenSchema: z.ZodString;
3
3
  export type TJwtToken = z.infer<typeof JwtTokenSchema>;
4
- export declare const AuthEmailLoginSchema: z.ZodObject<{
4
+ export declare const AuthLoginEmailSchema: z.ZodObject<{
5
5
  email: z.ZodEmail;
6
6
  password: z.ZodString;
7
7
  }, z.core.$strip>;
8
- export type TAuthEmailLogin = z.infer<typeof AuthEmailLoginSchema>;
8
+ export type TAuthLoginEmail = z.infer<typeof AuthLoginEmailSchema>;
9
9
  export declare const AuthLoginResponseSchema: z.ZodObject<{
10
10
  accessToken: z.ZodString;
11
11
  }, z.core.$strip>;
12
12
  export declare const AuthRefreshResponseSchema: z.ZodObject<{
13
13
  accessToken: z.ZodString;
14
14
  }, z.core.$strip>;
15
- export declare const AuthPasswordChangeSchema: z.ZodObject<{
15
+ export declare const AuthMePasswordChangeSchema: z.ZodObject<{
16
16
  currentPassword: z.ZodString;
17
17
  newPassword: z.ZodString;
18
18
  }, z.core.$strip>;
19
- export type TAuthPasswordChange = z.infer<typeof AuthPasswordChangeSchema>;
20
- export declare const AuthPasswordResetSchema: z.ZodObject<{
19
+ export type TAuthMePasswordChange = z.infer<typeof AuthMePasswordChangeSchema>;
20
+ export declare const AuthUserPasswordResetSchema: z.ZodObject<{
21
21
  newPassword: z.ZodString;
22
22
  }, z.core.$strip>;
23
- export type TAuthPasswordReset = z.infer<typeof AuthPasswordResetSchema>;
23
+ export type TAuthUserPasswordReset = z.infer<typeof AuthUserPasswordResetSchema>;
24
+ export declare const AuthMePasswordResetSchema: z.ZodObject<{
25
+ newPassword: z.ZodString;
26
+ resetHash: z.ZodString;
27
+ }, z.core.$strip>;
28
+ export type TAuthMePasswordReset = z.infer<typeof AuthMePasswordResetSchema>;
24
29
  export declare const AuthAbilityConditionSchema: z.ZodObject<{
25
30
  hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
26
31
  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,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,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;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"}
@@ -33,11 +33,11 @@ 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.AuthPasswordResetSchema = exports.AuthPasswordChangeSchema = exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthEmailLoginSchema = exports.JwtTokenSchema = void 0;
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;
37
37
  const z = __importStar(require("zod"));
38
38
  const common_1 = require("../common");
39
39
  exports.JwtTokenSchema = z.string().min(1);
40
- exports.AuthEmailLoginSchema = z.object({
40
+ exports.AuthLoginEmailSchema = z.object({
41
41
  email: z.email().toLowerCase(),
42
42
  password: z.string().min(1),
43
43
  });
@@ -47,13 +47,16 @@ exports.AuthLoginResponseSchema = z.object({
47
47
  exports.AuthRefreshResponseSchema = z.object({
48
48
  accessToken: exports.JwtTokenSchema,
49
49
  });
50
- exports.AuthPasswordChangeSchema = z.object({
50
+ exports.AuthMePasswordChangeSchema = z.object({
51
51
  currentPassword: z.string().min(1),
52
52
  newPassword: z.string().min(8),
53
53
  });
54
- exports.AuthPasswordResetSchema = z.object({
54
+ exports.AuthUserPasswordResetSchema = z.object({
55
55
  newPassword: z.string().min(8),
56
56
  });
57
+ exports.AuthMePasswordResetSchema = exports.AuthUserPasswordResetSchema.extend({
58
+ resetHash: z.string().min(1),
59
+ });
57
60
  exports.AuthAbilityConditionSchema = z
58
61
  .object({
59
62
  hotelId: common_1.UuidSchema.optional(),
@@ -1,12 +1,14 @@
1
- export * from './email-login.contract';
1
+ export * from './login-email.contract';
2
2
  export * from './refresh.contract';
3
3
  export * from './logout.contract';
4
4
  export * from './me.contract';
5
- export * from './password-change.contract';
6
- export * from './password-reset.contract';
7
- export * from './ability.contract';
5
+ export * from './me-password-change.contract';
6
+ export * from './me-password-reset.contract';
7
+ export * from './user-password-reset.contract';
8
+ export * from './me-ability.contract';
8
9
  export * from './user-sessions-revoke-all.contract';
9
10
  export * from './session-revoke.contract';
10
- export * from './sessions-revoke-all.contract';
11
- export * from './sessions.contract';
11
+ export * from './me-sessions-revoke-all.contract';
12
+ export * from './me-sessions.contract';
13
+ export * from './me-hotels.contract';
12
14
  //# 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,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,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,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;AACvC,cAAc,sBAAsB,CAAC"}
@@ -14,14 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./email-login.contract"), exports);
17
+ __exportStar(require("./login-email.contract"), exports);
18
18
  __exportStar(require("./refresh.contract"), exports);
19
19
  __exportStar(require("./logout.contract"), exports);
20
20
  __exportStar(require("./me.contract"), exports);
21
- __exportStar(require("./password-change.contract"), exports);
22
- __exportStar(require("./password-reset.contract"), exports);
23
- __exportStar(require("./ability.contract"), exports);
21
+ __exportStar(require("./me-password-change.contract"), exports);
22
+ __exportStar(require("./me-password-reset.contract"), exports);
23
+ __exportStar(require("./user-password-reset.contract"), exports);
24
+ __exportStar(require("./me-ability.contract"), exports);
24
25
  __exportStar(require("./user-sessions-revoke-all.contract"), exports);
25
26
  __exportStar(require("./session-revoke.contract"), exports);
26
- __exportStar(require("./sessions-revoke-all.contract"), exports);
27
- __exportStar(require("./sessions.contract"), exports);
27
+ __exportStar(require("./me-sessions-revoke-all.contract"), exports);
28
+ __exportStar(require("./me-sessions.contract"), exports);
29
+ __exportStar(require("./me-hotels.contract"), exports);
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthEmailLoginContract {
2
+ export declare namespace AuthLoginEmailContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
4
  const endpoint: "login/email";
5
5
  const httpMethod: "POST";
@@ -13,4 +13,4 @@ export declare namespace AuthEmailLoginContract {
13
13
  }, z.core.$strip>;
14
14
  type TResponse = z.infer<typeof ResponseSchema>;
15
15
  }
16
- //# sourceMappingURL=email-login.contract.d.ts.map
16
+ //# sourceMappingURL=login-email.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"email-login.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/email-login.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM,qCAAsB,CAAC;IACnC,MAAM,QAAQ,eAAuC,CAAC;IACtD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAAuB,CAAC;IAClD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;qBAA0B,CAAC;IACtD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
1
+ {"version":3,"file":"login-email.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/login-email.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM,qCAAsB,CAAC;IACnC,MAAM,QAAQ,eAAuC,CAAC;IACtD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAAuB,CAAC;IAClD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;qBAA0B,CAAC;IACtD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthLoginEmailContract = void 0;
4
+ const auth_models_1 = require("../auth.models");
5
+ const auth_api_1 = require("../auth.api");
6
+ const common_1 = require("../../common");
7
+ var AuthLoginEmailContract;
8
+ (function (AuthLoginEmailContract) {
9
+ AuthLoginEmailContract.getUrl = auth_api_1.AUTH_API.loginEmail;
10
+ AuthLoginEmailContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.loginEmail;
11
+ AuthLoginEmailContract.httpMethod = common_1.HTTP_METHODS.post;
12
+ AuthLoginEmailContract.RequestSchema = auth_models_1.AuthLoginEmailSchema;
13
+ AuthLoginEmailContract.ResponseSchema = auth_models_1.AuthLoginResponseSchema;
14
+ })(AuthLoginEmailContract || (exports.AuthLoginEmailContract = AuthLoginEmailContract = {}));
@@ -1,7 +1,7 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthAbilityContract {
2
+ export declare namespace AuthMeAbilityContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
- const endpoint: "ability";
4
+ const endpoint: "me/ability";
5
5
  const httpMethod: "GET";
6
6
  const ResponseSchema: z.ZodObject<{
7
7
  rules: z.ZodArray<z.ZodObject<{
@@ -34,4 +34,4 @@ export declare namespace AuthAbilityContract {
34
34
  }, z.core.$strip>;
35
35
  type TResponse = z.infer<typeof ResponseSchema>;
36
36
  }
37
- //# sourceMappingURL=ability.contract.d.ts.map
37
+ //# sourceMappingURL=me-ability.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me-ability.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/me-ability.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,MAAM,qCAAqB,CAAC;IAClC,MAAM,QAAQ,cAAsC,CAAC;IACrD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA4B,CAAC;IACxD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthMeAbilityContract = void 0;
4
+ const common_1 = require("../../common");
5
+ const auth_api_1 = require("../auth.api");
6
+ const auth_models_1 = require("../auth.models");
7
+ var AuthMeAbilityContract;
8
+ (function (AuthMeAbilityContract) {
9
+ AuthMeAbilityContract.getUrl = auth_api_1.AUTH_API.meAbility;
10
+ AuthMeAbilityContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.meAbility;
11
+ AuthMeAbilityContract.httpMethod = common_1.HTTP_METHODS.get;
12
+ AuthMeAbilityContract.ResponseSchema = auth_models_1.AuthAbilityResponseSchema;
13
+ })(AuthMeAbilityContract || (exports.AuthMeAbilityContract = AuthMeAbilityContract = {}));
@@ -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.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,7 +1,7 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthPasswordChangeContract {
2
+ export declare namespace AuthMePasswordChangeContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
- const endpoint: "password";
4
+ const endpoint: "me/password/change";
5
5
  const httpMethod: "POST";
6
6
  const RequestSchema: z.ZodObject<{
7
7
  currentPassword: z.ZodString;
@@ -11,4 +11,4 @@ export declare namespace AuthPasswordChangeContract {
11
11
  const ResponseSchema: z.ZodVoid;
12
12
  type TResponse = z.infer<typeof ResponseSchema>;
13
13
  }
14
- //# sourceMappingURL=password-change.contract.d.ts.map
14
+ //# sourceMappingURL=me-password-change.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me-password-change.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/me-password-change.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,4BAA4B,CAAC;IACrC,MAAM,MAAM,qCAA4B,CAAC;IACzC,MAAM,QAAQ,sBAA6C,CAAC;IAC5D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAA6B,CAAC;IACxD,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.AuthPasswordResetContract = void 0;
36
+ exports.AuthMePasswordChangeContract = 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 AuthPasswordResetContract;
42
- (function (AuthPasswordResetContract) {
43
- AuthPasswordResetContract.getUrl = auth_api_1.AUTH_API.userPassword;
44
- AuthPasswordResetContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.userPassword;
45
- AuthPasswordResetContract.httpMethod = common_1.HTTP_METHODS.post;
46
- AuthPasswordResetContract.RequestSchema = auth_models_1.AuthPasswordResetSchema;
47
- AuthPasswordResetContract.ResponseSchema = z.void();
48
- })(AuthPasswordResetContract || (exports.AuthPasswordResetContract = AuthPasswordResetContract = {}));
41
+ var AuthMePasswordChangeContract;
42
+ (function (AuthMePasswordChangeContract) {
43
+ AuthMePasswordChangeContract.getUrl = auth_api_1.AUTH_API.mePasswordChange;
44
+ AuthMePasswordChangeContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.mePasswordChange;
45
+ AuthMePasswordChangeContract.httpMethod = common_1.HTTP_METHODS.post;
46
+ AuthMePasswordChangeContract.RequestSchema = auth_models_1.AuthMePasswordChangeSchema;
47
+ AuthMePasswordChangeContract.ResponseSchema = z.void();
48
+ })(AuthMePasswordChangeContract || (exports.AuthMePasswordChangeContract = AuthMePasswordChangeContract = {}));
@@ -0,0 +1,14 @@
1
+ import * as z from 'zod';
2
+ export declare namespace AuthMePasswordResetContract {
3
+ const getUrl: (params?: {} | undefined) => string;
4
+ const endpoint: "me/password/reset";
5
+ const httpMethod: "POST";
6
+ const RequestSchema: z.ZodObject<{
7
+ newPassword: z.ZodString;
8
+ resetHash: z.ZodString;
9
+ }, z.core.$strip>;
10
+ type TRequest = z.infer<typeof RequestSchema>;
11
+ const ResponseSchema: z.ZodVoid;
12
+ type TResponse = z.infer<typeof ResponseSchema>;
13
+ }
14
+ //# sourceMappingURL=me-password-reset.contract.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -33,16 +33,16 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AuthPasswordChangeContract = void 0;
36
+ exports.AuthMePasswordResetContract = 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 AuthPasswordChangeContract;
42
- (function (AuthPasswordChangeContract) {
43
- AuthPasswordChangeContract.getUrl = auth_api_1.AUTH_API.password;
44
- AuthPasswordChangeContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.password;
45
- AuthPasswordChangeContract.httpMethod = common_1.HTTP_METHODS.post;
46
- AuthPasswordChangeContract.RequestSchema = auth_models_1.AuthPasswordChangeSchema;
47
- AuthPasswordChangeContract.ResponseSchema = z.void();
48
- })(AuthPasswordChangeContract || (exports.AuthPasswordChangeContract = AuthPasswordChangeContract = {}));
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 = {}));
@@ -1,9 +1,9 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthSessionsRevokeAllContract {
2
+ export declare namespace AuthMeSessionsRevokeAllContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
- const endpoint: "sessions/revoke-all";
4
+ const endpoint: "me/sessions/revoke-all";
5
5
  const httpMethod: "POST";
6
6
  const ResponseSchema: z.ZodVoid;
7
7
  type TResponse = z.infer<typeof ResponseSchema>;
8
8
  }
9
- //# sourceMappingURL=sessions-revoke-all.contract.d.ts.map
9
+ //# sourceMappingURL=me-sessions-revoke-all.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me-sessions-revoke-all.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/me-sessions-revoke-all.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,yBAAiB,+BAA+B,CAAC;IACxC,MAAM,MAAM,qCAA+B,CAAC;IAC5C,MAAM,QAAQ,0BAAgD,CAAC;IAC/D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -33,14 +33,14 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AuthSessionsRevokeAllContract = void 0;
36
+ exports.AuthMeSessionsRevokeAllContract = 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
- var AuthSessionsRevokeAllContract;
41
- (function (AuthSessionsRevokeAllContract) {
42
- AuthSessionsRevokeAllContract.getUrl = auth_api_1.AUTH_API.sessionsRevokeAll;
43
- AuthSessionsRevokeAllContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.sessionsRevokeAll;
44
- AuthSessionsRevokeAllContract.httpMethod = common_1.HTTP_METHODS.post;
45
- AuthSessionsRevokeAllContract.ResponseSchema = z.void();
46
- })(AuthSessionsRevokeAllContract || (exports.AuthSessionsRevokeAllContract = AuthSessionsRevokeAllContract = {}));
40
+ var AuthMeSessionsRevokeAllContract;
41
+ (function (AuthMeSessionsRevokeAllContract) {
42
+ AuthMeSessionsRevokeAllContract.getUrl = auth_api_1.AUTH_API.meSessionsRevokeAll;
43
+ AuthMeSessionsRevokeAllContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.meSessionsRevokeAll;
44
+ AuthMeSessionsRevokeAllContract.httpMethod = common_1.HTTP_METHODS.post;
45
+ AuthMeSessionsRevokeAllContract.ResponseSchema = z.void();
46
+ })(AuthMeSessionsRevokeAllContract || (exports.AuthMeSessionsRevokeAllContract = AuthMeSessionsRevokeAllContract = {}));
@@ -1,7 +1,7 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthSessionsContract {
2
+ export declare namespace AuthMeSessionsContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
- const endpoint: "sessions";
4
+ const endpoint: "me/sessions";
5
5
  const httpMethod: "GET";
6
6
  const ResponseSchema: z.ZodObject<{
7
7
  sessions: z.ZodArray<z.ZodObject<{
@@ -20,4 +20,4 @@ export declare namespace AuthSessionsContract {
20
20
  }, z.core.$strip>;
21
21
  type TResponse = z.infer<typeof ResponseSchema>;
22
22
  }
23
- //# sourceMappingURL=sessions.contract.d.ts.map
23
+ //# sourceMappingURL=me-sessions.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me-sessions.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/me-sessions.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM,qCAAsB,CAAC;IACnC,MAAM,QAAQ,eAAuC,CAAC;IACtD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc;;;;;;;;;;;;;;qBAA6B,CAAC;IACzD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthMeSessionsContract = void 0;
4
+ const common_1 = require("../../common");
5
+ const auth_api_1 = require("../auth.api");
6
+ const auth_models_1 = require("../auth.models");
7
+ var AuthMeSessionsContract;
8
+ (function (AuthMeSessionsContract) {
9
+ AuthMeSessionsContract.getUrl = auth_api_1.AUTH_API.meSessions;
10
+ AuthMeSessionsContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.meSessions;
11
+ AuthMeSessionsContract.httpMethod = common_1.HTTP_METHODS.get;
12
+ AuthMeSessionsContract.ResponseSchema = auth_models_1.AuthSessionsResponseSchema;
13
+ })(AuthMeSessionsContract || (exports.AuthMeSessionsContract = AuthMeSessionsContract = {}));
@@ -1,9 +1,9 @@
1
1
  import * as z from 'zod';
2
- export declare namespace AuthPasswordResetContract {
2
+ export declare namespace AuthUserPasswordResetContract {
3
3
  const getUrl: (params: {
4
4
  userId: string | number;
5
5
  }) => string;
6
- const endpoint: "users/:userId/password";
6
+ const endpoint: "users/:userId/password/reset";
7
7
  const httpMethod: "POST";
8
8
  const RequestSchema: z.ZodObject<{
9
9
  newPassword: z.ZodString;
@@ -12,4 +12,4 @@ export declare namespace AuthPasswordResetContract {
12
12
  const ResponseSchema: z.ZodVoid;
13
13
  type TResponse = z.infer<typeof ResponseSchema>;
14
14
  }
15
- //# sourceMappingURL=password-reset.contract.d.ts.map
15
+ //# sourceMappingURL=user-password-reset.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-password-reset.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/user-password-reset.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,6BAA6B,CAAC;IACtC,MAAM,MAAM;;gBAA6B,CAAC;IAC1C,MAAM,QAAQ,gCAA8C,CAAC;IAC7D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;qBAA8B,CAAC;IACzD,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,48 @@
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.AuthUserPasswordResetContract = void 0;
37
+ const z = __importStar(require("zod"));
38
+ const common_1 = require("../../common");
39
+ const auth_api_1 = require("../auth.api");
40
+ const auth_models_1 = require("../auth.models");
41
+ var AuthUserPasswordResetContract;
42
+ (function (AuthUserPasswordResetContract) {
43
+ AuthUserPasswordResetContract.getUrl = auth_api_1.AUTH_API.userPasswordReset;
44
+ AuthUserPasswordResetContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.userPasswordReset;
45
+ AuthUserPasswordResetContract.httpMethod = common_1.HTTP_METHODS.post;
46
+ AuthUserPasswordResetContract.RequestSchema = auth_models_1.AuthUserPasswordResetSchema;
47
+ AuthUserPasswordResetContract.ResponseSchema = z.void();
48
+ })(AuthUserPasswordResetContract || (exports.AuthUserPasswordResetContract = AuthUserPasswordResetContract = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ability.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/ability.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,mBAAmB,CAAC;IAC5B,MAAM,MAAM,qCAAmB,CAAC;IAChC,MAAM,QAAQ,WAAoC,CAAC;IACnD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA4B,CAAC;IACxD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthAbilityContract = void 0;
4
- const common_1 = require("../../common");
5
- const auth_api_1 = require("../auth.api");
6
- const auth_models_1 = require("../auth.models");
7
- var AuthAbilityContract;
8
- (function (AuthAbilityContract) {
9
- AuthAbilityContract.getUrl = auth_api_1.AUTH_API.ability;
10
- AuthAbilityContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.ability;
11
- AuthAbilityContract.httpMethod = common_1.HTTP_METHODS.get;
12
- AuthAbilityContract.ResponseSchema = auth_models_1.AuthAbilityResponseSchema;
13
- })(AuthAbilityContract || (exports.AuthAbilityContract = AuthAbilityContract = {}));
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthEmailLoginContract = void 0;
4
- const auth_models_1 = require("../auth.models");
5
- const auth_api_1 = require("../auth.api");
6
- const common_1 = require("../../common");
7
- var AuthEmailLoginContract;
8
- (function (AuthEmailLoginContract) {
9
- AuthEmailLoginContract.getUrl = auth_api_1.AUTH_API.emailLogin;
10
- AuthEmailLoginContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.emailLogin;
11
- AuthEmailLoginContract.httpMethod = common_1.HTTP_METHODS.post;
12
- AuthEmailLoginContract.RequestSchema = auth_models_1.AuthEmailLoginSchema;
13
- AuthEmailLoginContract.ResponseSchema = auth_models_1.AuthLoginResponseSchema;
14
- })(AuthEmailLoginContract || (exports.AuthEmailLoginContract = AuthEmailLoginContract = {}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-change.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/password-change.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,0BAA0B,CAAC;IACnC,MAAM,MAAM,qCAAoB,CAAC;IACjC,MAAM,QAAQ,YAAqC,CAAC;IACpD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAA2B,CAAC;IACtD,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-reset.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/password-reset.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,yBAAyB,CAAC;IAClC,MAAM,MAAM;;gBAAwB,CAAC;IACrC,MAAM,QAAQ,0BAAyC,CAAC;IACxD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;qBAA0B,CAAC;IACrD,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions-revoke-all.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/sessions-revoke-all.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,yBAAiB,6BAA6B,CAAC;IACtC,MAAM,MAAM,qCAA6B,CAAC;IAC1C,MAAM,QAAQ,uBAA8C,CAAC;IAC7D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/sessions.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,oBAAoB,CAAC;IAC7B,MAAM,MAAM,qCAAoB,CAAC;IACjC,MAAM,QAAQ,YAAqC,CAAC;IACpD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc;;;;;;;;;;;;;;qBAA6B,CAAC;IACzD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthSessionsContract = void 0;
4
- const common_1 = require("../../common");
5
- const auth_api_1 = require("../auth.api");
6
- const auth_models_1 = require("../auth.models");
7
- var AuthSessionsContract;
8
- (function (AuthSessionsContract) {
9
- AuthSessionsContract.getUrl = auth_api_1.AUTH_API.sessions;
10
- AuthSessionsContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.sessions;
11
- AuthSessionsContract.httpMethod = common_1.HTTP_METHODS.get;
12
- AuthSessionsContract.ResponseSchema = auth_models_1.AuthSessionsResponseSchema;
13
- })(AuthSessionsContract || (exports.AuthSessionsContract = AuthSessionsContract = {}));