hh-contracts 0.0.116 → 0.0.117
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.
- package/build/auth/auth.api.d.ts +6 -0
- package/build/auth/auth.api.d.ts.map +1 -1
- package/build/auth/auth.api.js +3 -0
- package/build/auth/auth.models.d.ts +67 -0
- package/build/auth/auth.models.d.ts.map +1 -1
- package/build/auth/auth.models.js +23 -1
- package/build/auth/contracts/ability.contract.d.ts +33 -0
- package/build/auth/contracts/ability.contract.d.ts.map +1 -0
- package/build/auth/contracts/ability.contract.js +13 -0
- package/build/auth/contracts/index.d.ts +4 -1
- package/build/auth/contracts/index.d.ts.map +1 -1
- package/build/auth/contracts/index.js +4 -1
- package/build/auth/contracts/password-change.contract.d.ts +12 -0
- package/build/auth/contracts/password-change.contract.d.ts.map +1 -0
- package/build/auth/contracts/password-change.contract.js +48 -0
- package/build/auth/contracts/password-reset.contract.d.ts +13 -0
- package/build/auth/contracts/password-reset.contract.d.ts.map +1 -0
- package/build/auth/contracts/password-reset.contract.js +48 -0
- package/build/common/constants/app-ability.constant.d.ts +2 -1
- package/build/common/constants/app-ability.constant.d.ts.map +1 -1
- package/build/common/constants/app-ability.constant.js +2 -1
- package/build/permissions/contracts/create-permission.contract.d.ts +4 -2
- package/build/permissions/contracts/create-permission.contract.d.ts.map +1 -1
- package/build/permissions/contracts/find-all-permission.contract.d.ts +2 -1
- package/build/permissions/contracts/find-all-permission.contract.d.ts.map +1 -1
- package/build/permissions/contracts/find-many-permission.contract.d.ts +6 -3
- package/build/permissions/contracts/find-many-permission.contract.d.ts.map +1 -1
- package/build/permissions/contracts/find-permission.contract.d.ts +2 -1
- package/build/permissions/contracts/find-permission.contract.d.ts.map +1 -1
- package/build/permissions/contracts/update-permission.contract.d.ts +4 -2
- package/build/permissions/contracts/update-permission.contract.d.ts.map +1 -1
- package/build/permissions/permission.models.d.ts +10 -5
- package/build/permissions/permission.models.d.ts.map +1 -1
- package/package.json +1 -1
package/build/auth/auth.api.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const AUTH_CONTROLLER: {
|
|
|
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";
|
|
8
11
|
};
|
|
9
12
|
};
|
|
10
13
|
export declare const AUTH_API: import("../common/utils").TApi<{
|
|
@@ -14,6 +17,9 @@ export declare const AUTH_API: import("../common/utils").TApi<{
|
|
|
14
17
|
readonly refresh: "refresh";
|
|
15
18
|
readonly logout: "logout";
|
|
16
19
|
readonly me: "me";
|
|
20
|
+
readonly ability: "ability";
|
|
21
|
+
readonly password: "password";
|
|
22
|
+
readonly userPassword: "users/:userId/password";
|
|
17
23
|
};
|
|
18
24
|
}>;
|
|
19
25
|
//# 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
|
|
1
|
+
{"version":3,"file":"auth.api.d.ts","sourceRoot":"","sources":["../../auth/auth.api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;CAWI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;EAA6B,CAAC"}
|
package/build/auth/auth.api.js
CHANGED
|
@@ -14,4 +14,71 @@ export declare const AuthRefreshResponseSchema: z.ZodObject<{
|
|
|
14
14
|
accessToken: z.ZodString;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export type TAuthRefreshResponse = z.infer<typeof AuthRefreshResponseSchema>;
|
|
17
|
+
export declare const AuthPasswordChangeSchema: z.ZodObject<{
|
|
18
|
+
currentPassword: z.ZodString;
|
|
19
|
+
newPassword: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type TAuthPasswordChange = z.infer<typeof AuthPasswordChangeSchema>;
|
|
22
|
+
export declare const AuthPasswordResetSchema: z.ZodObject<{
|
|
23
|
+
newPassword: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type TAuthPasswordReset = z.infer<typeof AuthPasswordResetSchema>;
|
|
26
|
+
export declare const AuthAbilityConditionSchema: z.ZodObject<{
|
|
27
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
28
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type TAuthAbilityCondition = z.infer<typeof AuthAbilityConditionSchema>;
|
|
31
|
+
export declare const AuthAbilityRuleSchema: z.ZodObject<{
|
|
32
|
+
action: z.ZodEnum<{
|
|
33
|
+
manage: "manage";
|
|
34
|
+
create: "create";
|
|
35
|
+
read: "read";
|
|
36
|
+
update: "update";
|
|
37
|
+
delete: "delete";
|
|
38
|
+
hotelClientMessaging: "hotelClientMessaging";
|
|
39
|
+
}>;
|
|
40
|
+
subject: z.ZodEnum<{
|
|
41
|
+
userPassword: "userPassword";
|
|
42
|
+
user: "user";
|
|
43
|
+
role: "role";
|
|
44
|
+
permission: "permission";
|
|
45
|
+
hotel: "hotel";
|
|
46
|
+
room: "room";
|
|
47
|
+
roomCategory: "roomCategory";
|
|
48
|
+
hotelClient: "hotelClient";
|
|
49
|
+
all: "all";
|
|
50
|
+
}>;
|
|
51
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
53
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const AuthAbilityResponseSchema: z.ZodObject<{
|
|
57
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
58
|
+
action: z.ZodEnum<{
|
|
59
|
+
manage: "manage";
|
|
60
|
+
create: "create";
|
|
61
|
+
read: "read";
|
|
62
|
+
update: "update";
|
|
63
|
+
delete: "delete";
|
|
64
|
+
hotelClientMessaging: "hotelClientMessaging";
|
|
65
|
+
}>;
|
|
66
|
+
subject: z.ZodEnum<{
|
|
67
|
+
userPassword: "userPassword";
|
|
68
|
+
user: "user";
|
|
69
|
+
role: "role";
|
|
70
|
+
permission: "permission";
|
|
71
|
+
hotel: "hotel";
|
|
72
|
+
room: "room";
|
|
73
|
+
roomCategory: "roomCategory";
|
|
74
|
+
hotelClient: "hotelClient";
|
|
75
|
+
all: "all";
|
|
76
|
+
}>;
|
|
77
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
79
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type TAuthAbilityResponse = z.infer<typeof AuthAbilityResponseSchema>;
|
|
17
84
|
//# 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;
|
|
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;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,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,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -33,8 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthEmailLoginSchema = exports.JwtTokenSchema = void 0;
|
|
36
|
+
exports.AuthAbilityResponseSchema = exports.AuthAbilityRuleSchema = exports.AuthAbilityConditionSchema = exports.AuthPasswordResetSchema = exports.AuthPasswordChangeSchema = exports.AuthRefreshResponseSchema = exports.AuthLoginResponseSchema = exports.AuthEmailLoginSchema = exports.JwtTokenSchema = void 0;
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
const common_1 = require("../common");
|
|
38
39
|
exports.JwtTokenSchema = z.string().min(1);
|
|
39
40
|
exports.AuthEmailLoginSchema = z.object({
|
|
40
41
|
email: z.email().toLowerCase(),
|
|
@@ -46,3 +47,24 @@ exports.AuthLoginResponseSchema = z.object({
|
|
|
46
47
|
exports.AuthRefreshResponseSchema = z.object({
|
|
47
48
|
accessToken: exports.JwtTokenSchema,
|
|
48
49
|
});
|
|
50
|
+
exports.AuthPasswordChangeSchema = z.object({
|
|
51
|
+
currentPassword: z.string().min(1),
|
|
52
|
+
newPassword: z.string().min(8),
|
|
53
|
+
});
|
|
54
|
+
exports.AuthPasswordResetSchema = z.object({
|
|
55
|
+
newPassword: z.string().min(8),
|
|
56
|
+
});
|
|
57
|
+
exports.AuthAbilityConditionSchema = z
|
|
58
|
+
.object({
|
|
59
|
+
hotelId: common_1.UuidSchema.optional(),
|
|
60
|
+
userId: common_1.UuidSchema.optional(),
|
|
61
|
+
})
|
|
62
|
+
.partial();
|
|
63
|
+
exports.AuthAbilityRuleSchema = z.object({
|
|
64
|
+
action: z.enum(common_1.AppAbility.ACTION_VALUES),
|
|
65
|
+
subject: z.enum(common_1.AppAbility.SUBJECT_VALUES),
|
|
66
|
+
conditions: exports.AuthAbilityConditionSchema.optional(),
|
|
67
|
+
});
|
|
68
|
+
exports.AuthAbilityResponseSchema = z.object({
|
|
69
|
+
rules: z.array(exports.AuthAbilityRuleSchema),
|
|
70
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare namespace AuthAbilityContract {
|
|
2
|
+
const getUrl: (params?: {} | undefined) => string;
|
|
3
|
+
const endpoint: "ability";
|
|
4
|
+
const httpMethod: "GET";
|
|
5
|
+
const ResponseSchema: import("zod").ZodObject<{
|
|
6
|
+
rules: import("zod").ZodArray<import("zod").ZodObject<{
|
|
7
|
+
action: import("zod").ZodEnum<{
|
|
8
|
+
manage: "manage";
|
|
9
|
+
create: "create";
|
|
10
|
+
read: "read";
|
|
11
|
+
update: "update";
|
|
12
|
+
delete: "delete";
|
|
13
|
+
hotelClientMessaging: "hotelClientMessaging";
|
|
14
|
+
}>;
|
|
15
|
+
subject: import("zod").ZodEnum<{
|
|
16
|
+
userPassword: "userPassword";
|
|
17
|
+
user: "user";
|
|
18
|
+
role: "role";
|
|
19
|
+
permission: "permission";
|
|
20
|
+
hotel: "hotel";
|
|
21
|
+
room: "room";
|
|
22
|
+
roomCategory: "roomCategory";
|
|
23
|
+
hotelClient: "hotelClient";
|
|
24
|
+
all: "all";
|
|
25
|
+
}>;
|
|
26
|
+
conditions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
27
|
+
hotelId: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodUUID>>;
|
|
28
|
+
userId: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodUUID>>;
|
|
29
|
+
}, import("zod/v4/core").$strip>>;
|
|
30
|
+
}, import("zod/v4/core").$strip>>;
|
|
31
|
+
}, import("zod/v4/core").$strip>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ability.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ability.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/ability.contract.ts"],"names":[],"mappings":"AAIA,yBAAiB,mBAAmB,CAAC;IAC5B,MAAM,MAAM,qCAAmB,CAAC;IAChC,MAAM,QAAQ,WAAoC,CAAC;IACnD,MAAM,UAAU,OAAmB,CAAC;IACpC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;oCAA4B,CAAC;CACzD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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,5 +1,8 @@
|
|
|
1
1
|
export * from './email-login.contract';
|
|
2
|
+
export * from './refresh.contract';
|
|
2
3
|
export * from './logout.contract';
|
|
3
4
|
export * from './me.contract';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './password-change.contract';
|
|
6
|
+
export * from './password-reset.contract';
|
|
7
|
+
export * from './ability.contract';
|
|
5
8
|
//# 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,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,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,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
|
|
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./email-login.contract"), exports);
|
|
18
|
+
__exportStar(require("./refresh.contract"), exports);
|
|
18
19
|
__exportStar(require("./logout.contract"), exports);
|
|
19
20
|
__exportStar(require("./me.contract"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./password-change.contract"), exports);
|
|
22
|
+
__exportStar(require("./password-reset.contract"), exports);
|
|
23
|
+
__exportStar(require("./ability.contract"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthPasswordChangeContract {
|
|
3
|
+
const getUrl: (params?: {} | undefined) => string;
|
|
4
|
+
const endpoint: "password";
|
|
5
|
+
const httpMethod: "POST";
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
currentPassword: z.ZodString;
|
|
8
|
+
newPassword: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const ResponseSchema: z.ZodVoid;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=password-change.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;IACrC,MAAM,aAAa;;;qBAA2B,CAAC;IAC/C,MAAM,cAAc,WAAW,CAAC;CACxC"}
|
|
@@ -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.AuthPasswordChangeContract = 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 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 = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthPasswordResetContract {
|
|
3
|
+
const getUrl: (params: {
|
|
4
|
+
userId: string | number;
|
|
5
|
+
}) => string;
|
|
6
|
+
const endpoint: "users/:userId/password";
|
|
7
|
+
const httpMethod: "POST";
|
|
8
|
+
const RequestSchema: z.ZodObject<{
|
|
9
|
+
newPassword: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const ResponseSchema: z.ZodVoid;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=password-reset.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;IACrC,MAAM,aAAa;;qBAA0B,CAAC;IAC9C,MAAM,cAAc,WAAW,CAAC;CACxC"}
|
|
@@ -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.AuthPasswordResetContract = 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 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 = {}));
|
|
@@ -10,7 +10,8 @@ export declare namespace AppAbility {
|
|
|
10
10
|
type TAction = (typeof ACTIONS)[keyof typeof ACTIONS];
|
|
11
11
|
const ACTION_VALUES: [TAction];
|
|
12
12
|
const SUBJECTS: {
|
|
13
|
-
readonly
|
|
13
|
+
readonly userPassword: "userPassword";
|
|
14
|
+
readonly hotelClient: "hotelClient";
|
|
14
15
|
readonly all: "all";
|
|
15
16
|
readonly user: "user";
|
|
16
17
|
readonly role: "role";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-ability.constant.d.ts","sourceRoot":"","sources":["../../../common/constants/app-ability.constant.ts"],"names":[],"mappings":"AAEA,yBAAiB,UAAU,CAAC;IACnB,MAAM,OAAO;;;;;;;KAOV,CAAC;IACX,KAAY,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACtD,MAAM,aAAa,EAA6B,CAAC,OAAO,CAAC,CAAC;IAE1D,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"app-ability.constant.d.ts","sourceRoot":"","sources":["../../../common/constants/app-ability.constant.ts"],"names":[],"mappings":"AAEA,yBAAiB,UAAU,CAAC;IACnB,MAAM,OAAO;;;;;;;KAOV,CAAC;IACX,KAAY,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACtD,MAAM,aAAa,EAA6B,CAAC,OAAO,CAAC,CAAC;IAE1D,MAAM,QAAQ;;;;;;;;;;KAKX,CAAC;IACX,KAAY,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;IACzD,MAAM,cAAc,EAA8B,CAAC,QAAQ,CAAC,CAAC;CACrE"}
|
|
@@ -15,7 +15,8 @@ var AppAbility;
|
|
|
15
15
|
AppAbility.ACTION_VALUES = Object.values(AppAbility.ACTIONS);
|
|
16
16
|
AppAbility.SUBJECTS = {
|
|
17
17
|
...entity_constant_1.ENTITIES,
|
|
18
|
-
|
|
18
|
+
userPassword: 'userPassword',
|
|
19
|
+
hotelClient: 'hotelClient',
|
|
19
20
|
all: 'all',
|
|
20
21
|
};
|
|
21
22
|
AppAbility.SUBJECT_VALUES = Object.values(AppAbility.SUBJECTS);
|
|
@@ -13,13 +13,14 @@ export declare namespace CreatePermissionContract {
|
|
|
13
13
|
hotelClientMessaging: "hotelClientMessaging";
|
|
14
14
|
}>;
|
|
15
15
|
subject: z.ZodEnum<{
|
|
16
|
+
userPassword: "userPassword";
|
|
16
17
|
user: "user";
|
|
17
18
|
role: "role";
|
|
18
19
|
permission: "permission";
|
|
19
20
|
hotel: "hotel";
|
|
20
21
|
room: "room";
|
|
21
22
|
roomCategory: "roomCategory";
|
|
22
|
-
|
|
23
|
+
hotelClient: "hotelClient";
|
|
23
24
|
all: "all";
|
|
24
25
|
}>;
|
|
25
26
|
conditions: z.ZodObject<{
|
|
@@ -45,13 +46,14 @@ export declare namespace CreatePermissionContract {
|
|
|
45
46
|
hotelClientMessaging: "hotelClientMessaging";
|
|
46
47
|
}>;
|
|
47
48
|
subject: z.ZodEnum<{
|
|
49
|
+
userPassword: "userPassword";
|
|
48
50
|
user: "user";
|
|
49
51
|
role: "role";
|
|
50
52
|
permission: "permission";
|
|
51
53
|
hotel: "hotel";
|
|
52
54
|
room: "room";
|
|
53
55
|
roomCategory: "roomCategory";
|
|
54
|
-
|
|
56
|
+
hotelClient: "hotelClient";
|
|
55
57
|
all: "all";
|
|
56
58
|
}>;
|
|
57
59
|
conditions: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/create-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAOzB,yBAAiB,wBAAwB,CAAC;IACjC,MAAM,MAAM,qCAAyB,CAAC;IACtC,MAAM,QAAQ,IAA0C,CAAC;IACzD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"create-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/create-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAOzB,yBAAiB,wBAAwB,CAAC;IACjC,MAAM,MAAM,qCAAyB,CAAC;IACtC,MAAM,QAAQ,IAA0C,CAAC;IACzD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAwC,CAAC;IACnE,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAyB,CAAC;IACrD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -13,13 +13,14 @@ export declare namespace FindAllPermissionsContract {
|
|
|
13
13
|
hotelClientMessaging: "hotelClientMessaging";
|
|
14
14
|
}>;
|
|
15
15
|
subject: z.ZodEnum<{
|
|
16
|
+
userPassword: "userPassword";
|
|
16
17
|
user: "user";
|
|
17
18
|
role: "role";
|
|
18
19
|
permission: "permission";
|
|
19
20
|
hotel: "hotel";
|
|
20
21
|
room: "room";
|
|
21
22
|
roomCategory: "roomCategory";
|
|
22
|
-
|
|
23
|
+
hotelClient: "hotelClient";
|
|
23
24
|
all: "all";
|
|
24
25
|
}>;
|
|
25
26
|
conditions: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-all-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/find-all-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,0BAA0B,CAAC;IACnC,MAAM,MAAM,qCAA0B,CAAC;IACvC,MAAM,QAAQ,OAA2C,CAAC;IAC1D,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"find-all-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/find-all-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,0BAA0B,CAAC;IACnC,MAAM,MAAM,qCAA0B,CAAC;IACvC,MAAM,QAAQ,OAA2C,CAAC;IAC1D,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAoC,CAAC;IAChE,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -21,13 +21,14 @@ export declare namespace FindManyPermissionsContract {
|
|
|
21
21
|
hotelClientMessaging: "hotelClientMessaging";
|
|
22
22
|
}>>;
|
|
23
23
|
subject: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
userPassword: "userPassword";
|
|
24
25
|
user: "user";
|
|
25
26
|
role: "role";
|
|
26
27
|
permission: "permission";
|
|
27
28
|
hotel: "hotel";
|
|
28
29
|
room: "room";
|
|
29
30
|
roomCategory: "roomCategory";
|
|
30
|
-
|
|
31
|
+
hotelClient: "hotelClient";
|
|
31
32
|
all: "all";
|
|
32
33
|
}>>;
|
|
33
34
|
}, z.core.$strip>;
|
|
@@ -44,13 +45,14 @@ export declare namespace FindManyPermissionsContract {
|
|
|
44
45
|
hotelClientMessaging: "hotelClientMessaging";
|
|
45
46
|
}>>;
|
|
46
47
|
subject: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
userPassword: "userPassword";
|
|
47
49
|
user: "user";
|
|
48
50
|
role: "role";
|
|
49
51
|
permission: "permission";
|
|
50
52
|
hotel: "hotel";
|
|
51
53
|
room: "room";
|
|
52
54
|
roomCategory: "roomCategory";
|
|
53
|
-
|
|
55
|
+
hotelClient: "hotelClient";
|
|
54
56
|
all: "all";
|
|
55
57
|
}>>;
|
|
56
58
|
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -81,13 +83,14 @@ export declare namespace FindManyPermissionsContract {
|
|
|
81
83
|
hotelClientMessaging: "hotelClientMessaging";
|
|
82
84
|
}>;
|
|
83
85
|
subject: z.ZodEnum<{
|
|
86
|
+
userPassword: "userPassword";
|
|
84
87
|
user: "user";
|
|
85
88
|
role: "role";
|
|
86
89
|
permission: "permission";
|
|
87
90
|
hotel: "hotel";
|
|
88
91
|
room: "room";
|
|
89
92
|
roomCategory: "roomCategory";
|
|
90
|
-
|
|
93
|
+
hotelClient: "hotelClient";
|
|
91
94
|
all: "all";
|
|
92
95
|
}>;
|
|
93
96
|
conditions: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-many-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/find-many-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,QAAA,MAAM,aAAa;;;;;;;EAA8D,CAAC;AAalF,yBAAiB,2BAA2B,CAAC;IACpC,MAAM,MAAM,qCAA2B,CAAC;IACxC,MAAM,QAAQ,IAA4C,CAAC;IAC3D,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"find-many-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/find-many-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,QAAA,MAAM,aAAa;;;;;;;EAA8D,CAAC;AAalF,yBAAiB,2BAA2B,CAAC;IACpC,MAAM,MAAM,qCAA2B,CAAC;IACxC,MAAM,QAAQ,IAA4C,CAAC;IAC3D,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;qBAAkB,CAAC;IAChD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAEpD,MAAM,YAAY,sEAAwB,CAAC;IAClD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA2C,CAAC;IACtE,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA4C,CAAC;IACxE,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -15,13 +15,14 @@ export declare namespace FindPermissionContract {
|
|
|
15
15
|
hotelClientMessaging: "hotelClientMessaging";
|
|
16
16
|
}>;
|
|
17
17
|
subject: z.ZodEnum<{
|
|
18
|
+
userPassword: "userPassword";
|
|
18
19
|
user: "user";
|
|
19
20
|
role: "role";
|
|
20
21
|
permission: "permission";
|
|
21
22
|
hotel: "hotel";
|
|
22
23
|
room: "room";
|
|
23
24
|
roomCategory: "roomCategory";
|
|
24
|
-
|
|
25
|
+
hotelClient: "hotelClient";
|
|
25
26
|
all: "all";
|
|
26
27
|
}>;
|
|
27
28
|
conditions: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/find-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM;;gBAAuB,CAAC;IACpC,MAAM,QAAQ,OAAwC,CAAC;IACvD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"find-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/find-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM;;gBAAuB,CAAC;IACpC,MAAM,QAAQ,OAAwC,CAAC;IACvD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAyB,CAAC;IACrD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -15,13 +15,14 @@ export declare namespace UpdatePermissionContract {
|
|
|
15
15
|
hotelClientMessaging: "hotelClientMessaging";
|
|
16
16
|
}>;
|
|
17
17
|
subject: z.ZodEnum<{
|
|
18
|
+
userPassword: "userPassword";
|
|
18
19
|
user: "user";
|
|
19
20
|
role: "role";
|
|
20
21
|
permission: "permission";
|
|
21
22
|
hotel: "hotel";
|
|
22
23
|
room: "room";
|
|
23
24
|
roomCategory: "roomCategory";
|
|
24
|
-
|
|
25
|
+
hotelClient: "hotelClient";
|
|
25
26
|
all: "all";
|
|
26
27
|
}>;
|
|
27
28
|
conditions: z.ZodObject<{
|
|
@@ -47,13 +48,14 @@ export declare namespace UpdatePermissionContract {
|
|
|
47
48
|
hotelClientMessaging: "hotelClientMessaging";
|
|
48
49
|
}>;
|
|
49
50
|
subject: z.ZodEnum<{
|
|
51
|
+
userPassword: "userPassword";
|
|
50
52
|
user: "user";
|
|
51
53
|
role: "role";
|
|
52
54
|
permission: "permission";
|
|
53
55
|
hotel: "hotel";
|
|
54
56
|
room: "room";
|
|
55
57
|
roomCategory: "roomCategory";
|
|
56
|
-
|
|
58
|
+
hotelClient: "hotelClient";
|
|
57
59
|
all: "all";
|
|
58
60
|
}>;
|
|
59
61
|
conditions: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/update-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,yBAAiB,wBAAwB,CAAC;IACjC,MAAM,MAAM;;gBAAyB,CAAC;IACtC,MAAM,QAAQ,OAA0C,CAAC;IACzD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"update-permission.contract.d.ts","sourceRoot":"","sources":["../../../permissions/contracts/update-permission.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,yBAAiB,wBAAwB,CAAC;IACjC,MAAM,MAAM;;gBAAyB,CAAC;IACtC,MAAM,QAAQ,OAA0C,CAAC;IACzD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAyC,CAAC;IACpE,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAyB,CAAC;IACrD,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -9,13 +9,14 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
9
9
|
hotelClientMessaging: "hotelClientMessaging";
|
|
10
10
|
}>;
|
|
11
11
|
subject: z.ZodEnum<{
|
|
12
|
+
userPassword: "userPassword";
|
|
12
13
|
user: "user";
|
|
13
14
|
role: "role";
|
|
14
15
|
permission: "permission";
|
|
15
16
|
hotel: "hotel";
|
|
16
17
|
room: "room";
|
|
17
18
|
roomCategory: "roomCategory";
|
|
18
|
-
|
|
19
|
+
hotelClient: "hotelClient";
|
|
19
20
|
all: "all";
|
|
20
21
|
}>;
|
|
21
22
|
conditions: z.ZodObject<{
|
|
@@ -34,13 +35,14 @@ export declare const PermissionPersistedSchema: z.ZodObject<{
|
|
|
34
35
|
hotelClientMessaging: "hotelClientMessaging";
|
|
35
36
|
}>;
|
|
36
37
|
subject: z.ZodEnum<{
|
|
38
|
+
userPassword: "userPassword";
|
|
37
39
|
user: "user";
|
|
38
40
|
role: "role";
|
|
39
41
|
permission: "permission";
|
|
40
42
|
hotel: "hotel";
|
|
41
43
|
room: "room";
|
|
42
44
|
roomCategory: "roomCategory";
|
|
43
|
-
|
|
45
|
+
hotelClient: "hotelClient";
|
|
44
46
|
all: "all";
|
|
45
47
|
}>;
|
|
46
48
|
conditions: z.ZodObject<{
|
|
@@ -67,13 +69,14 @@ export declare const PermissionWriteSchema: z.ZodObject<{
|
|
|
67
69
|
hotelClientMessaging: "hotelClientMessaging";
|
|
68
70
|
}>;
|
|
69
71
|
subject: z.ZodEnum<{
|
|
72
|
+
userPassword: "userPassword";
|
|
70
73
|
user: "user";
|
|
71
74
|
role: "role";
|
|
72
75
|
permission: "permission";
|
|
73
76
|
hotel: "hotel";
|
|
74
77
|
room: "room";
|
|
75
78
|
roomCategory: "roomCategory";
|
|
76
|
-
|
|
79
|
+
hotelClient: "hotelClient";
|
|
77
80
|
all: "all";
|
|
78
81
|
}>;
|
|
79
82
|
conditions: z.ZodObject<{
|
|
@@ -99,13 +102,14 @@ export declare const PermissionDetailSchema: z.ZodObject<{
|
|
|
99
102
|
hotelClientMessaging: "hotelClientMessaging";
|
|
100
103
|
}>;
|
|
101
104
|
subject: z.ZodEnum<{
|
|
105
|
+
userPassword: "userPassword";
|
|
102
106
|
user: "user";
|
|
103
107
|
role: "role";
|
|
104
108
|
permission: "permission";
|
|
105
109
|
hotel: "hotel";
|
|
106
110
|
room: "room";
|
|
107
111
|
roomCategory: "roomCategory";
|
|
108
|
-
|
|
112
|
+
hotelClient: "hotelClient";
|
|
109
113
|
all: "all";
|
|
110
114
|
}>;
|
|
111
115
|
conditions: z.ZodObject<{
|
|
@@ -134,13 +138,14 @@ export declare const PermissionListItemSchema: z.ZodObject<{
|
|
|
134
138
|
hotelClientMessaging: "hotelClientMessaging";
|
|
135
139
|
}>;
|
|
136
140
|
subject: z.ZodEnum<{
|
|
141
|
+
userPassword: "userPassword";
|
|
137
142
|
user: "user";
|
|
138
143
|
role: "role";
|
|
139
144
|
permission: "permission";
|
|
140
145
|
hotel: "hotel";
|
|
141
146
|
room: "room";
|
|
142
147
|
roomCategory: "roomCategory";
|
|
143
|
-
|
|
148
|
+
hotelClient: "hotelClient";
|
|
144
149
|
all: "all";
|
|
145
150
|
}>;
|
|
146
151
|
conditions: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.models.d.ts","sourceRoot":"","sources":["../../permissions/permission.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"permission.models.d.ts","sourceRoot":"","sources":["../../permissions/permission.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGpC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEnF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEnC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|