hh-contracts 0.0.129 → 0.0.131

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 (28) hide show
  1. package/build/auth/auth.api.d.ts +2 -0
  2. package/build/auth/auth.api.d.ts.map +1 -1
  3. package/build/auth/auth.api.js +1 -0
  4. package/build/auth/auth.models.d.ts +4 -0
  5. package/build/auth/auth.models.d.ts.map +1 -1
  6. package/build/auth/auth.models.js +4 -1
  7. package/build/auth/contracts/hotel-client-login.contract.d.ts +1 -1
  8. package/build/auth/contracts/hotel-client-login.contract.d.ts.map +1 -1
  9. package/build/auth/contracts/hotel-client-login.contract.js +9 -9
  10. package/build/auth/contracts/hotel-client-refresh.contract.d.ts +1 -1
  11. package/build/auth/contracts/hotel-client-refresh.contract.d.ts.map +1 -1
  12. package/build/auth/contracts/hotel-client-refresh.contract.js +9 -9
  13. package/build/auth/contracts/hotel-client-secret-set.contract.d.ts +15 -0
  14. package/build/auth/contracts/hotel-client-secret-set.contract.d.ts.map +1 -0
  15. package/build/auth/contracts/hotel-client-secret-set.contract.js +48 -0
  16. package/build/auth/contracts/hotel-client-session-revoke.contract.d.ts +1 -1
  17. package/build/auth/contracts/hotel-client-session-revoke.contract.d.ts.map +1 -1
  18. package/build/auth/contracts/hotel-client-session-revoke.contract.js +8 -8
  19. package/build/auth/index.d.ts +1 -0
  20. package/build/auth/index.d.ts.map +1 -1
  21. package/build/auth/index.js +1 -0
  22. package/build/hotel-clients/contracts/find-many-hotel-client-assignments.contract.d.ts +10 -10
  23. package/build/hotel-clients/contracts/find-many-hotel-client-assignments.contract.js +1 -1
  24. package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.d.ts +9 -9
  25. package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.js +1 -1
  26. package/build/hotel-clients/contracts/find-many-hotel-clients.contract.d.ts +10 -10
  27. package/build/hotel-clients/contracts/find-many-hotel-clients.contract.js +1 -1
  28. package/package.json +1 -1
@@ -18,6 +18,7 @@ export declare const AUTH_CONTROLLER: {
18
18
  readonly hotelClientLogin: "hotel-clients/login";
19
19
  readonly hotelClientRefresh: "hotel-clients/refresh";
20
20
  readonly hotelClientSessionRevoke: "hotel-clients/sessions/:sessionId/revoke";
21
+ readonly hotelClientSecretSet: "hotel-clients/:clientId/secret/set";
21
22
  };
22
23
  };
23
24
  export declare const AUTH_API: import("../common/utils").TApi<{
@@ -40,6 +41,7 @@ export declare const AUTH_API: import("../common/utils").TApi<{
40
41
  readonly hotelClientLogin: "hotel-clients/login";
41
42
  readonly hotelClientRefresh: "hotel-clients/refresh";
42
43
  readonly hotelClientSessionRevoke: "hotel-clients/sessions/:sessionId/revoke";
44
+ readonly hotelClientSecretSet: "hotel-clients/:clientId/secret/set";
43
45
  };
44
46
  }>;
45
47
  //# 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;;;;;;;;;;;;;;;;;;;;;CAsBI,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;;;;;;;;;;;;;;;;;;;;;;CAuBI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAC"}
@@ -22,6 +22,7 @@ exports.AUTH_CONTROLLER = {
22
22
  hotelClientLogin: 'hotel-clients/login',
23
23
  hotelClientRefresh: 'hotel-clients/refresh',
24
24
  hotelClientSessionRevoke: 'hotel-clients/sessions/:sessionId/revoke',
25
+ hotelClientSecretSet: 'hotel-clients/:clientId/secret/set',
25
26
  },
26
27
  };
27
28
  exports.AUTH_API = (0, utils_1.createApi)(exports.AUTH_CONTROLLER);
@@ -150,4 +150,8 @@ export declare const HotelClientSessionSchema: z.ZodObject<{
150
150
  createdAt: z.ZodDate;
151
151
  }, z.core.$strip>;
152
152
  export type THotelClientSession = z.infer<typeof HotelClientSessionSchema>;
153
+ export declare const SecretSchema: z.ZodObject<{
154
+ secret: z.ZodString;
155
+ }, z.core.$strip>;
156
+ export type TSecret = z.infer<typeof SecretSchema>;
153
157
  //# sourceMappingURL=auth.models.d.ts.map
@@ -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;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,iBAAiB;;iBAE5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;iBAE1B,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;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAA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AAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,YAAY;;iBAEvB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.HotelClientSessionSchema = exports.HotelClientLoginSchema = exports.AuthSessionsResponseSchema = exports.AuthSessionSchema = exports.AuthAbilityResponseSchema = exports.AuthAbilityRuleSchema = exports.AuthAbilityConditionSchema = exports.AuthIdentifierSchema = exports.AuthPasswordResetConfirmSchema = exports.AuthUserPasswordResetSchema = exports.AuthMePasswordChangeSchema = exports.TokenPairSchema = exports.RefreshTokenSchema = exports.AccessTokenSchema = exports.AuthLoginEmailSchema = exports.JwtTokenSchema = void 0;
36
+ exports.SecretSchema = exports.HotelClientSessionSchema = exports.HotelClientLoginSchema = exports.AuthSessionsResponseSchema = exports.AuthSessionSchema = exports.AuthAbilityResponseSchema = exports.AuthAbilityRuleSchema = exports.AuthAbilityConditionSchema = exports.AuthIdentifierSchema = exports.AuthPasswordResetConfirmSchema = exports.AuthUserPasswordResetSchema = exports.AuthMePasswordChangeSchema = exports.TokenPairSchema = exports.RefreshTokenSchema = exports.AccessTokenSchema = exports.AuthLoginEmailSchema = exports.JwtTokenSchema = void 0;
37
37
  const z = __importStar(require("zod"));
38
38
  const common_1 = require("../common");
39
39
  const constant_1 = require("./constant");
@@ -117,3 +117,6 @@ exports.HotelClientSessionSchema = z.object({
117
117
  lastUsedAt: z.date().nullable(),
118
118
  createdAt: z.date(),
119
119
  });
120
+ exports.SecretSchema = z.object({
121
+ secret: z.string().min(8),
122
+ });
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- export declare namespace HotelClientLoginContract {
2
+ export declare namespace AuthHotelClientLoginContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
4
  const endpoint: "hotel-clients/login";
5
5
  const httpMethod: "POST";
@@ -1 +1 @@
1
- {"version":3,"file":"hotel-client-login.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-login.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,wBAAwB,CAAC;IACjC,MAAM,MAAM,qCAA4B,CAAC;IACzC,MAAM,QAAQ,uBAA6C,CAAC;IAC5D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAAyB,CAAC;IACpD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
1
+ {"version":3,"file":"hotel-client-login.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-login.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,4BAA4B,CAAC;IACrC,MAAM,MAAM,qCAA4B,CAAC;IACzC,MAAM,QAAQ,uBAA6C,CAAC;IAC5D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;qBAAyB,CAAC;IACpD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HotelClientLoginContract = void 0;
3
+ exports.AuthHotelClientLoginContract = void 0;
4
4
  const common_1 = require("../../common");
5
5
  const auth_api_1 = require("../auth.api");
6
6
  const auth_models_1 = require("../auth.models");
7
- var HotelClientLoginContract;
8
- (function (HotelClientLoginContract) {
9
- HotelClientLoginContract.getUrl = auth_api_1.AUTH_API.hotelClientLogin;
10
- HotelClientLoginContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientLogin;
11
- HotelClientLoginContract.httpMethod = common_1.HTTP_METHODS.post;
12
- HotelClientLoginContract.RequestSchema = auth_models_1.HotelClientLoginSchema;
13
- HotelClientLoginContract.ResponseSchema = auth_models_1.TokenPairSchema;
14
- })(HotelClientLoginContract || (exports.HotelClientLoginContract = HotelClientLoginContract = {}));
7
+ var AuthHotelClientLoginContract;
8
+ (function (AuthHotelClientLoginContract) {
9
+ AuthHotelClientLoginContract.getUrl = auth_api_1.AUTH_API.hotelClientLogin;
10
+ AuthHotelClientLoginContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientLogin;
11
+ AuthHotelClientLoginContract.httpMethod = common_1.HTTP_METHODS.post;
12
+ AuthHotelClientLoginContract.RequestSchema = auth_models_1.HotelClientLoginSchema;
13
+ AuthHotelClientLoginContract.ResponseSchema = auth_models_1.TokenPairSchema;
14
+ })(AuthHotelClientLoginContract || (exports.AuthHotelClientLoginContract = AuthHotelClientLoginContract = {}));
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare namespace HotelClientRefreshContract {
2
+ export declare namespace AuthHotelClientRefreshContract {
3
3
  const getUrl: (params?: {} | undefined) => string;
4
4
  const endpoint: "hotel-clients/refresh";
5
5
  const httpMethod: "POST";
@@ -1 +1 @@
1
- {"version":3,"file":"hotel-client-refresh.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-refresh.contract.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,yBAAiB,0BAA0B,CAAC;IACnC,MAAM,MAAM,qCAA8B,CAAC;IAC3C,MAAM,QAAQ,yBAA+C,CAAC;IAC9D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;qBAAqB,CAAC;IAChD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
1
+ {"version":3,"file":"hotel-client-refresh.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-refresh.contract.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,yBAAiB,8BAA8B,CAAC;IACvC,MAAM,MAAM,qCAA8B,CAAC;IAC3C,MAAM,QAAQ,yBAA+C,CAAC;IAC9D,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;qBAAqB,CAAC;IAChD,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HotelClientRefreshContract = void 0;
3
+ exports.AuthHotelClientRefreshContract = void 0;
4
4
  const common_1 = require("../../common");
5
5
  const auth_api_1 = require("../auth.api");
6
6
  const auth_models_1 = require("../auth.models");
7
- var HotelClientRefreshContract;
8
- (function (HotelClientRefreshContract) {
9
- HotelClientRefreshContract.getUrl = auth_api_1.AUTH_API.hotelClientRefresh;
10
- HotelClientRefreshContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientRefresh;
11
- HotelClientRefreshContract.httpMethod = common_1.HTTP_METHODS.post;
12
- HotelClientRefreshContract.RequestSchema = auth_models_1.RefreshTokenSchema;
13
- HotelClientRefreshContract.ResponseSchema = auth_models_1.TokenPairSchema;
14
- })(HotelClientRefreshContract || (exports.HotelClientRefreshContract = HotelClientRefreshContract = {}));
7
+ var AuthHotelClientRefreshContract;
8
+ (function (AuthHotelClientRefreshContract) {
9
+ AuthHotelClientRefreshContract.getUrl = auth_api_1.AUTH_API.hotelClientRefresh;
10
+ AuthHotelClientRefreshContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientRefresh;
11
+ AuthHotelClientRefreshContract.httpMethod = common_1.HTTP_METHODS.post;
12
+ AuthHotelClientRefreshContract.RequestSchema = auth_models_1.RefreshTokenSchema;
13
+ AuthHotelClientRefreshContract.ResponseSchema = auth_models_1.TokenPairSchema;
14
+ })(AuthHotelClientRefreshContract || (exports.AuthHotelClientRefreshContract = AuthHotelClientRefreshContract = {}));
@@ -0,0 +1,15 @@
1
+ import * as z from 'zod';
2
+ export declare namespace AuthHotelClientSecretSetContract {
3
+ const getUrl: (params: {
4
+ clientId: string | number;
5
+ }) => string;
6
+ const endpoint: "hotel-clients/:clientId/secret/set";
7
+ const httpMethod: "POST";
8
+ const RequestSchema: z.ZodObject<{
9
+ secret: z.ZodString;
10
+ }, z.core.$strip>;
11
+ type TRequest = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodVoid;
13
+ type TResponse = z.infer<typeof ResponseSchema>;
14
+ }
15
+ //# sourceMappingURL=hotel-client-secret-set.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hotel-client-secret-set.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-secret-set.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,gCAAgC,CAAC;IACzC,MAAM,MAAM;;gBAAgC,CAAC;IAC7C,MAAM,QAAQ,sCAAiD,CAAC;IAChE,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;qBAAe,CAAC;IAC1C,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.AuthHotelClientSecretSetContract = 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 AuthHotelClientSecretSetContract;
42
+ (function (AuthHotelClientSecretSetContract) {
43
+ AuthHotelClientSecretSetContract.getUrl = auth_api_1.AUTH_API.hotelClientSecretSet;
44
+ AuthHotelClientSecretSetContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientSecretSet;
45
+ AuthHotelClientSecretSetContract.httpMethod = common_1.HTTP_METHODS.post;
46
+ AuthHotelClientSecretSetContract.RequestSchema = auth_models_1.SecretSchema;
47
+ AuthHotelClientSecretSetContract.ResponseSchema = z.void();
48
+ })(AuthHotelClientSecretSetContract || (exports.AuthHotelClientSecretSetContract = AuthHotelClientSecretSetContract = {}));
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare namespace HotelClientSessionRevokeContract {
2
+ export declare namespace AuthHotelClientSessionRevokeContract {
3
3
  const getUrl: (params: {
4
4
  sessionId: string | number;
5
5
  }) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"hotel-client-session-revoke.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-session-revoke.contract.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,yBAAiB,gCAAgC,CAAC;IACzC,MAAM,MAAM;;gBAAoC,CAAC;IACjD,MAAM,QAAQ,4CAAqD,CAAC;IACpE,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
1
+ {"version":3,"file":"hotel-client-session-revoke.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/hotel-client-session-revoke.contract.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,yBAAiB,oCAAoC,CAAC;IAC7C,MAAM,MAAM;;gBAAoC,CAAC;IACjD,MAAM,QAAQ,4CAAqD,CAAC;IACpE,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
@@ -3,14 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.HotelClientSessionRevokeContract = void 0;
6
+ exports.AuthHotelClientSessionRevokeContract = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  const common_1 = require("../../common");
9
9
  const auth_api_1 = require("../auth.api");
10
- var HotelClientSessionRevokeContract;
11
- (function (HotelClientSessionRevokeContract) {
12
- HotelClientSessionRevokeContract.getUrl = auth_api_1.AUTH_API.hotelClientSessionRevoke;
13
- HotelClientSessionRevokeContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientSessionRevoke;
14
- HotelClientSessionRevokeContract.httpMethod = common_1.HTTP_METHODS.post;
15
- HotelClientSessionRevokeContract.ResponseSchema = zod_1.default.void();
16
- })(HotelClientSessionRevokeContract || (exports.HotelClientSessionRevokeContract = HotelClientSessionRevokeContract = {}));
10
+ var AuthHotelClientSessionRevokeContract;
11
+ (function (AuthHotelClientSessionRevokeContract) {
12
+ AuthHotelClientSessionRevokeContract.getUrl = auth_api_1.AUTH_API.hotelClientSessionRevoke;
13
+ AuthHotelClientSessionRevokeContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.hotelClientSessionRevoke;
14
+ AuthHotelClientSessionRevokeContract.httpMethod = common_1.HTTP_METHODS.post;
15
+ AuthHotelClientSessionRevokeContract.ResponseSchema = zod_1.default.void();
16
+ })(AuthHotelClientSessionRevokeContract || (exports.AuthHotelClientSessionRevokeContract = AuthHotelClientSessionRevokeContract = {}));
@@ -1,4 +1,5 @@
1
1
  export * from './auth.api';
2
2
  export * from './auth.models';
3
3
  export * from './contracts';
4
+ export * from './constant';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth.api"), exports);
18
18
  __exportStar(require("./auth.models"), exports);
19
19
  __exportStar(require("./contracts"), exports);
20
+ __exportStar(require("./constant"), exports);
@@ -23,25 +23,25 @@ export declare namespace FindManyHotelClientAssignmentsContract {
23
23
  const SORTING_KEYS: ("createdAt" | "updatedAt" | "hotelId" | "clientId" | "provider" | "hotelExternalId")[];
24
24
  type TSortingKey = z.infer<typeof OrderBySchema>;
25
25
  const RequestSchema: z.ZodObject<{
26
- orderDir: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
26
+ orderDir: z.ZodOptional<z.ZodEnum<{
27
27
  asc: "asc";
28
28
  desc: "desc";
29
- }>>>;
30
- page: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
31
- pageSize: z.ZodOptional<z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>>;
32
- searchText: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
33
- orderBy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
29
+ }>>;
30
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
31
+ pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
32
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
33
+ orderBy: z.ZodOptional<z.ZodEnum<{
34
34
  createdAt: "createdAt";
35
35
  updatedAt: "updatedAt";
36
36
  hotelId: "hotelId";
37
37
  clientId: "clientId";
38
38
  provider: "provider";
39
39
  hotelExternalId: "hotelExternalId";
40
- }>>>;
41
- hotelIds: z.ZodOptional<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>>>>>;
42
- provider: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodEnum<{
40
+ }>>;
41
+ 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>>>>;
42
+ provider: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
43
43
  opera: "opera";
44
- }>>>>;
44
+ }>>>;
45
45
  }, z.core.$strip>;
46
46
  type TRequest = z.infer<typeof RequestSchema>;
47
47
  const ResponseSchema: z.ZodObject<{
@@ -48,7 +48,7 @@ const OrderBySchema = hotel_client_models_1.HotelClientAssignmentSchema.omit({ i
48
48
  const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
49
49
  ...BaseQuerySchema.shape,
50
50
  orderBy: OrderBySchema.optional(),
51
- }).partial();
51
+ });
52
52
  const _ResponseSchema = z
53
53
  .object({ assignments: z.array(hotel_client_models_1.HotelClientAssignmentListItemSchema) })
54
54
  .extend(common_1.PaginationResponseSchema.shape);
@@ -23,24 +23,24 @@ export declare namespace FindManyHotelClientCredentialsContract {
23
23
  const SORTING_KEYS: ("type" | "createdAt" | "updatedAt" | "lastUsedAt" | "keyVersion")[];
24
24
  type TSortingKey = z.infer<typeof OrderBySchema>;
25
25
  const RequestSchema: z.ZodObject<{
26
- orderDir: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
26
+ orderDir: z.ZodOptional<z.ZodEnum<{
27
27
  asc: "asc";
28
28
  desc: "desc";
29
- }>>>;
30
- page: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
31
- pageSize: z.ZodOptional<z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>>;
32
- searchText: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
33
- orderBy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
29
+ }>>;
30
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
31
+ pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
32
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
33
+ orderBy: z.ZodOptional<z.ZodEnum<{
34
34
  type: "type";
35
35
  createdAt: "createdAt";
36
36
  updatedAt: "updatedAt";
37
37
  lastUsedAt: "lastUsedAt";
38
38
  keyVersion: "keyVersion";
39
- }>>>;
40
- type: z.ZodOptional<z.ZodEnum<{
39
+ }>>;
40
+ type: z.ZodEnum<{
41
41
  db: "db";
42
42
  api: "api";
43
- }>>;
43
+ }>;
44
44
  }, z.core.$strip>;
45
45
  type TRequest = z.infer<typeof RequestSchema>;
46
46
  const ResponseSchema: z.ZodObject<{
@@ -45,7 +45,7 @@ const OrderBySchema = hotel_client_models_1.HotelClientCredentialSchema.omit({ i
45
45
  const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
46
46
  ...BaseQuerySchema.shape,
47
47
  orderBy: OrderBySchema.optional(),
48
- }).partial();
48
+ });
49
49
  const _ResponseSchema = z
50
50
  .object({ credentials: z.array(hotel_client_models_1.HotelClientCredentialSchema) })
51
51
  .extend(common_1.PaginationResponseSchema.shape);
@@ -21,25 +21,25 @@ export declare namespace FindManyHotelClientsContract {
21
21
  const SORTING_KEYS: ("name" | "createdAt" | "updatedAt" | "status" | "lastSeenAt")[];
22
22
  type TSortingKey = z.infer<typeof OrderBySchema>;
23
23
  const RequestSchema: z.ZodObject<{
24
- orderDir: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
24
+ orderDir: z.ZodOptional<z.ZodEnum<{
25
25
  asc: "asc";
26
26
  desc: "desc";
27
- }>>>;
28
- page: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
29
- pageSize: z.ZodOptional<z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>>;
30
- searchText: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
31
- orderBy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
27
+ }>>;
28
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
29
+ pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
30
+ searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
31
+ orderBy: z.ZodOptional<z.ZodEnum<{
32
32
  name: "name";
33
33
  createdAt: "createdAt";
34
34
  updatedAt: "updatedAt";
35
35
  status: "status";
36
36
  lastSeenAt: "lastSeenAt";
37
- }>>>;
38
- status: z.ZodOptional<z.ZodOptional<z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
37
+ }>>;
38
+ status: z.ZodOptional<z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
39
39
  active: "active";
40
40
  disabled: "disabled";
41
- }>>>>>;
42
- 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>>>>;
41
+ }>>>>;
42
+ hotelIds: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>;
43
43
  }, z.core.$strip>;
44
44
  type TRequest = z.infer<typeof RequestSchema>;
45
45
  const ResponseSchema: z.ZodObject<{
@@ -47,7 +47,7 @@ const OrderBySchema = hotel_client_models_1.HotelClientListItemSchema.omit({ id:
47
47
  const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
48
48
  ...BaseQuerySchema.shape,
49
49
  orderBy: OrderBySchema.optional(),
50
- }).partial();
50
+ });
51
51
  const _ResponseSchema = z
52
52
  .object({ hotelClients: z.array(hotel_client_models_1.HotelClientListItemSchema) })
53
53
  .extend(common_1.PaginationResponseSchema.shape);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.129",
3
+ "version": "0.0.131",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",