hh-contracts 0.0.116 → 0.0.118
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 +14 -0
- package/build/auth/auth.api.d.ts.map +1 -1
- package/build/auth/auth.api.js +7 -0
- package/build/auth/auth.models.d.ts +96 -2
- package/build/auth/auth.models.d.ts.map +1 -1
- package/build/auth/auth.models.js +39 -1
- package/build/auth/contracts/ability.contract.d.ts +35 -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 +8 -1
- package/build/auth/contracts/index.d.ts.map +1 -1
- package/build/auth/contracts/index.js +8 -1
- package/build/auth/contracts/password-change.contract.d.ts +14 -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 +15 -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/auth/contracts/session-revoke.contract.d.ts +11 -0
- package/build/auth/contracts/session-revoke.contract.d.ts.map +1 -0
- package/build/auth/contracts/session-revoke.contract.js +46 -0
- package/build/auth/contracts/sessions-revoke-all.contract.d.ts +9 -0
- package/build/auth/contracts/sessions-revoke-all.contract.d.ts.map +1 -0
- package/build/auth/contracts/sessions-revoke-all.contract.js +46 -0
- package/build/auth/contracts/sessions.contract.d.ts +23 -0
- package/build/auth/contracts/sessions.contract.d.ts.map +1 -0
- package/build/auth/contracts/sessions.contract.js +13 -0
- package/build/auth/contracts/user-sessions-revoke-all.contract.d.ts +11 -0
- package/build/auth/contracts/user-sessions-revoke-all.contract.d.ts.map +1 -0
- package/build/auth/contracts/user-sessions-revoke-all.contract.js +46 -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/common/constants/app-errors.constant.d.ts +25 -0
- package/build/common/constants/app-errors.constant.d.ts.map +1 -1
- package/build/common/constants/app-errors.constant.js +25 -0
- 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,13 @@ 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";
|
|
11
|
+
readonly sessions: "sessions";
|
|
12
|
+
readonly sessionsRevokeAll: "sessions/revoke-all";
|
|
13
|
+
readonly sessionRevoke: "sessions/:sessionId/revoke";
|
|
14
|
+
readonly userSessionsRevokeAll: "users/:userId/sessions/revoke-all";
|
|
8
15
|
};
|
|
9
16
|
};
|
|
10
17
|
export declare const AUTH_API: import("../common/utils").TApi<{
|
|
@@ -14,6 +21,13 @@ export declare const AUTH_API: import("../common/utils").TApi<{
|
|
|
14
21
|
readonly refresh: "refresh";
|
|
15
22
|
readonly logout: "logout";
|
|
16
23
|
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";
|
|
29
|
+
readonly sessionRevoke: "sessions/:sessionId/revoke";
|
|
30
|
+
readonly userSessionsRevokeAll: "users/:userId/sessions/revoke-all";
|
|
17
31
|
};
|
|
18
32
|
}>;
|
|
19
33
|
//# 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;;;;;;;;;;;;;;;CAeI,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;EAA6B,CAAC"}
|
package/build/auth/auth.api.js
CHANGED
|
@@ -9,6 +9,13 @@ exports.AUTH_CONTROLLER = {
|
|
|
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',
|
|
17
|
+
sessionRevoke: 'sessions/:sessionId/revoke',
|
|
18
|
+
userSessionsRevokeAll: 'users/:userId/sessions/revoke-all',
|
|
12
19
|
},
|
|
13
20
|
};
|
|
14
21
|
exports.AUTH_API = (0, utils_1.createApi)(exports.AUTH_CONTROLLER);
|
|
@@ -9,9 +9,103 @@ export type TAuthEmailLogin = z.infer<typeof AuthEmailLoginSchema>;
|
|
|
9
9
|
export declare const AuthLoginResponseSchema: z.ZodObject<{
|
|
10
10
|
accessToken: z.ZodString;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export type TAuthLoginResponse = z.infer<typeof AuthLoginResponseSchema>;
|
|
13
12
|
export declare const AuthRefreshResponseSchema: z.ZodObject<{
|
|
14
13
|
accessToken: z.ZodString;
|
|
15
14
|
}, z.core.$strip>;
|
|
16
|
-
export
|
|
15
|
+
export declare const AuthPasswordChangeSchema: z.ZodObject<{
|
|
16
|
+
currentPassword: z.ZodString;
|
|
17
|
+
newPassword: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type TAuthPasswordChange = z.infer<typeof AuthPasswordChangeSchema>;
|
|
20
|
+
export declare const AuthPasswordResetSchema: z.ZodObject<{
|
|
21
|
+
newPassword: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type TAuthPasswordReset = z.infer<typeof AuthPasswordResetSchema>;
|
|
24
|
+
export declare const AuthAbilityConditionSchema: z.ZodObject<{
|
|
25
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
26
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type TAuthAbilityCondition = z.infer<typeof AuthAbilityConditionSchema>;
|
|
29
|
+
export declare const AuthAbilityRuleSchema: z.ZodObject<{
|
|
30
|
+
action: z.ZodEnum<{
|
|
31
|
+
manage: "manage";
|
|
32
|
+
create: "create";
|
|
33
|
+
read: "read";
|
|
34
|
+
update: "update";
|
|
35
|
+
delete: "delete";
|
|
36
|
+
hotelClientMessaging: "hotelClientMessaging";
|
|
37
|
+
}>;
|
|
38
|
+
subject: z.ZodEnum<{
|
|
39
|
+
userPassword: "userPassword";
|
|
40
|
+
user: "user";
|
|
41
|
+
role: "role";
|
|
42
|
+
permission: "permission";
|
|
43
|
+
hotel: "hotel";
|
|
44
|
+
room: "room";
|
|
45
|
+
roomCategory: "roomCategory";
|
|
46
|
+
hotelClient: "hotelClient";
|
|
47
|
+
all: "all";
|
|
48
|
+
}>;
|
|
49
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
51
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type TAuthAbilityRule = z.infer<typeof AuthAbilityRuleSchema>;
|
|
55
|
+
export declare const AuthAbilityResponseSchema: z.ZodObject<{
|
|
56
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
57
|
+
action: z.ZodEnum<{
|
|
58
|
+
manage: "manage";
|
|
59
|
+
create: "create";
|
|
60
|
+
read: "read";
|
|
61
|
+
update: "update";
|
|
62
|
+
delete: "delete";
|
|
63
|
+
hotelClientMessaging: "hotelClientMessaging";
|
|
64
|
+
}>;
|
|
65
|
+
subject: z.ZodEnum<{
|
|
66
|
+
userPassword: "userPassword";
|
|
67
|
+
user: "user";
|
|
68
|
+
role: "role";
|
|
69
|
+
permission: "permission";
|
|
70
|
+
hotel: "hotel";
|
|
71
|
+
room: "room";
|
|
72
|
+
roomCategory: "roomCategory";
|
|
73
|
+
hotelClient: "hotelClient";
|
|
74
|
+
all: "all";
|
|
75
|
+
}>;
|
|
76
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
78
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const AuthSessionSchema: z.ZodObject<{
|
|
83
|
+
id: z.ZodUUID;
|
|
84
|
+
createdAt: z.ZodDate;
|
|
85
|
+
lastUsedAt: z.ZodNullable<z.ZodDate>;
|
|
86
|
+
expiresAt: z.ZodDate;
|
|
87
|
+
revokedAt: z.ZodNullable<z.ZodDate>;
|
|
88
|
+
deviceName: z.ZodNullable<z.ZodString>;
|
|
89
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
90
|
+
lastUserAgent: z.ZodNullable<z.ZodString>;
|
|
91
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
92
|
+
lastIp: z.ZodNullable<z.ZodString>;
|
|
93
|
+
isCurrent: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type TAuthSession = z.infer<typeof AuthSessionSchema>;
|
|
96
|
+
export declare const AuthSessionsResponseSchema: z.ZodObject<{
|
|
97
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
98
|
+
id: z.ZodUUID;
|
|
99
|
+
createdAt: z.ZodDate;
|
|
100
|
+
lastUsedAt: z.ZodNullable<z.ZodDate>;
|
|
101
|
+
expiresAt: z.ZodDate;
|
|
102
|
+
revokedAt: z.ZodNullable<z.ZodDate>;
|
|
103
|
+
deviceName: z.ZodNullable<z.ZodString>;
|
|
104
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
105
|
+
lastUserAgent: z.ZodNullable<z.ZodString>;
|
|
106
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
107
|
+
lastIp: z.ZodNullable<z.ZodString>;
|
|
108
|
+
isCurrent: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
17
111
|
//# 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;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"}
|
|
@@ -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.AuthSessionsResponseSchema = exports.AuthSessionSchema = 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,40 @@ 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
|
+
});
|
|
71
|
+
exports.AuthSessionSchema = z.object({
|
|
72
|
+
id: common_1.UuidSchema,
|
|
73
|
+
createdAt: z.date(),
|
|
74
|
+
lastUsedAt: z.date().nullable(),
|
|
75
|
+
expiresAt: z.date(),
|
|
76
|
+
revokedAt: z.date().nullable(),
|
|
77
|
+
deviceName: z.string().nullable(),
|
|
78
|
+
userAgent: z.string().nullable(),
|
|
79
|
+
lastUserAgent: z.string().nullable(),
|
|
80
|
+
ip: z.string().nullable(),
|
|
81
|
+
lastIp: z.string().nullable(),
|
|
82
|
+
isCurrent: z.boolean().optional(),
|
|
83
|
+
});
|
|
84
|
+
exports.AuthSessionsResponseSchema = z.object({
|
|
85
|
+
sessions: z.array(exports.AuthSessionSchema),
|
|
86
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthAbilityContract {
|
|
3
|
+
const getUrl: (params?: {} | undefined) => string;
|
|
4
|
+
const endpoint: "ability";
|
|
5
|
+
const httpMethod: "GET";
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
8
|
+
action: z.ZodEnum<{
|
|
9
|
+
manage: "manage";
|
|
10
|
+
create: "create";
|
|
11
|
+
read: "read";
|
|
12
|
+
update: "update";
|
|
13
|
+
delete: "delete";
|
|
14
|
+
hotelClientMessaging: "hotelClientMessaging";
|
|
15
|
+
}>;
|
|
16
|
+
subject: z.ZodEnum<{
|
|
17
|
+
userPassword: "userPassword";
|
|
18
|
+
user: "user";
|
|
19
|
+
role: "role";
|
|
20
|
+
permission: "permission";
|
|
21
|
+
hotel: "hotel";
|
|
22
|
+
room: "room";
|
|
23
|
+
roomCategory: "roomCategory";
|
|
24
|
+
hotelClient: "hotelClient";
|
|
25
|
+
all: "all";
|
|
26
|
+
}>;
|
|
27
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
hotelId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
29
|
+
userId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
34
|
+
}
|
|
35
|
+
//# 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":"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"}
|
|
@@ -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,12 @@
|
|
|
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';
|
|
8
|
+
export * from './user-sessions-revoke-all.contract';
|
|
9
|
+
export * from './session-revoke.contract';
|
|
10
|
+
export * from './sessions-revoke-all.contract';
|
|
11
|
+
export * from './sessions.contract';
|
|
5
12
|
//# 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;AACnC,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|
|
@@ -15,6 +15,13 @@ 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);
|
|
24
|
+
__exportStar(require("./user-sessions-revoke-all.contract"), exports);
|
|
25
|
+
__exportStar(require("./session-revoke.contract"), exports);
|
|
26
|
+
__exportStar(require("./sessions-revoke-all.contract"), exports);
|
|
27
|
+
__exportStar(require("./sessions.contract"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
type TRequest = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodVoid;
|
|
12
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
14
|
+
//# 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;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"}
|
|
@@ -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,15 @@
|
|
|
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
|
+
type TRequest = z.infer<typeof RequestSchema>;
|
|
12
|
+
const ResponseSchema: z.ZodVoid;
|
|
13
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
14
|
+
}
|
|
15
|
+
//# 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;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"}
|
|
@@ -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 = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthSessionRevokeContract {
|
|
3
|
+
const getUrl: (params: {
|
|
4
|
+
sessionId: string | number;
|
|
5
|
+
}) => string;
|
|
6
|
+
const endpoint: "sessions/:sessionId/revoke";
|
|
7
|
+
const httpMethod: "POST";
|
|
8
|
+
const ResponseSchema: z.ZodVoid;
|
|
9
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=session-revoke.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-revoke.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/session-revoke.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,yBAAiB,yBAAyB,CAAC;IAClC,MAAM,MAAM;;gBAAyB,CAAC;IACtC,MAAM,QAAQ,8BAA0C,CAAC;IACzD,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.AuthSessionRevokeContract = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const common_1 = require("../../common");
|
|
39
|
+
const auth_api_1 = require("../auth.api");
|
|
40
|
+
var AuthSessionRevokeContract;
|
|
41
|
+
(function (AuthSessionRevokeContract) {
|
|
42
|
+
AuthSessionRevokeContract.getUrl = auth_api_1.AUTH_API.sessionRevoke;
|
|
43
|
+
AuthSessionRevokeContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.sessionRevoke;
|
|
44
|
+
AuthSessionRevokeContract.httpMethod = common_1.HTTP_METHODS.post;
|
|
45
|
+
AuthSessionRevokeContract.ResponseSchema = z.void();
|
|
46
|
+
})(AuthSessionRevokeContract || (exports.AuthSessionRevokeContract = AuthSessionRevokeContract = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthSessionsRevokeAllContract {
|
|
3
|
+
const getUrl: (params?: {} | undefined) => string;
|
|
4
|
+
const endpoint: "sessions/revoke-all";
|
|
5
|
+
const httpMethod: "POST";
|
|
6
|
+
const ResponseSchema: z.ZodVoid;
|
|
7
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sessions-revoke-all.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.AuthSessionsRevokeAllContract = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const common_1 = require("../../common");
|
|
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 = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthSessionsContract {
|
|
3
|
+
const getUrl: (params?: {} | undefined) => string;
|
|
4
|
+
const endpoint: "sessions";
|
|
5
|
+
const httpMethod: "GET";
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodUUID;
|
|
9
|
+
createdAt: z.ZodDate;
|
|
10
|
+
lastUsedAt: z.ZodNullable<z.ZodDate>;
|
|
11
|
+
expiresAt: z.ZodDate;
|
|
12
|
+
revokedAt: z.ZodNullable<z.ZodDate>;
|
|
13
|
+
deviceName: z.ZodNullable<z.ZodString>;
|
|
14
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
15
|
+
lastUserAgent: z.ZodNullable<z.ZodString>;
|
|
16
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
17
|
+
lastIp: z.ZodNullable<z.ZodString>;
|
|
18
|
+
isCurrent: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sessions.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare namespace AuthUserSessionsRevokeAllContract {
|
|
3
|
+
const getUrl: (params: {
|
|
4
|
+
userId: string | number;
|
|
5
|
+
}) => string;
|
|
6
|
+
const endpoint: "users/:userId/sessions/revoke-all";
|
|
7
|
+
const httpMethod: "POST";
|
|
8
|
+
const ResponseSchema: z.ZodVoid;
|
|
9
|
+
type TResponse = z.infer<typeof ResponseSchema>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=user-sessions-revoke-all.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-sessions-revoke-all.contract.d.ts","sourceRoot":"","sources":["../../../auth/contracts/user-sessions-revoke-all.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,yBAAiB,iCAAiC,CAAC;IAC1C,MAAM,MAAM;;gBAAiC,CAAC;IAC9C,MAAM,QAAQ,qCAAkD,CAAC;IACjE,MAAM,UAAU,QAAoB,CAAC;IAErC,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.AuthUserSessionsRevokeAllContract = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const common_1 = require("../../common");
|
|
39
|
+
const auth_api_1 = require("../auth.api");
|
|
40
|
+
var AuthUserSessionsRevokeAllContract;
|
|
41
|
+
(function (AuthUserSessionsRevokeAllContract) {
|
|
42
|
+
AuthUserSessionsRevokeAllContract.getUrl = auth_api_1.AUTH_API.userSessionsRevokeAll;
|
|
43
|
+
AuthUserSessionsRevokeAllContract.endpoint = auth_api_1.AUTH_CONTROLLER.endpoints.userSessionsRevokeAll;
|
|
44
|
+
AuthUserSessionsRevokeAllContract.httpMethod = common_1.HTTP_METHODS.post;
|
|
45
|
+
AuthUserSessionsRevokeAllContract.ResponseSchema = z.void();
|
|
46
|
+
})(AuthUserSessionsRevokeAllContract || (exports.AuthUserSessionsRevokeAllContract = AuthUserSessionsRevokeAllContract = {}));
|
|
@@ -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);
|
|
@@ -37,6 +37,31 @@ export declare const APP_ERRORS: {
|
|
|
37
37
|
readonly code: "AUTH-01";
|
|
38
38
|
readonly messageKey: "errors.auth.wrongCredentials";
|
|
39
39
|
};
|
|
40
|
+
readonly passwordChangeForbidden: {
|
|
41
|
+
readonly statusCode: 403;
|
|
42
|
+
readonly code: "AUTH-02";
|
|
43
|
+
readonly messageKey: "errors.auth.passwordChangeForbidden";
|
|
44
|
+
};
|
|
45
|
+
readonly passwordResetForbidden: {
|
|
46
|
+
readonly statusCode: 403;
|
|
47
|
+
readonly code: "AUTH-03";
|
|
48
|
+
readonly messageKey: "errors.auth.passwordResetForbidden";
|
|
49
|
+
};
|
|
50
|
+
readonly sessionNotFound: {
|
|
51
|
+
readonly statusCode: 404;
|
|
52
|
+
readonly code: "AUTH-04";
|
|
53
|
+
readonly messageKey: "errors.auth.sessionNotFound";
|
|
54
|
+
};
|
|
55
|
+
readonly sessionRevoked: {
|
|
56
|
+
readonly statusCode: 401;
|
|
57
|
+
readonly code: "AUTH-05";
|
|
58
|
+
readonly messageKey: "errors.auth.sessionRevoked";
|
|
59
|
+
};
|
|
60
|
+
readonly refreshReuse: {
|
|
61
|
+
readonly statusCode: 401;
|
|
62
|
+
readonly code: "AUTH-06";
|
|
63
|
+
readonly messageKey: "errors.auth.refreshReuse";
|
|
64
|
+
};
|
|
40
65
|
};
|
|
41
66
|
readonly translation: {
|
|
42
67
|
readonly alreadyExists: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-errors.constant.d.ts","sourceRoot":"","sources":["../../../common/constants/app-errors.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"app-errors.constant.d.ts","sourceRoot":"","sources":["../../../common/constants/app-errors.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiOb,CAAC;AAEX,UAAU,MAAM;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KAC5D,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChD,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,CAAC,CAAC,CAAC,CAAC,GACJ,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACrB,KAAK;CACV,CAAC,MAAM,CAAC,CAAC,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,UAAU,CAAC,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAC9C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC/F;AACD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC,CAAC;AAE/E,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC"}
|
|
@@ -51,6 +51,31 @@ exports.APP_ERRORS = {
|
|
|
51
51
|
code: 'AUTH-01',
|
|
52
52
|
messageKey: 'errors.auth.wrongCredentials',
|
|
53
53
|
},
|
|
54
|
+
passwordChangeForbidden: {
|
|
55
|
+
statusCode: 403, // HttpStatus.FORBIDDEN,
|
|
56
|
+
code: 'AUTH-02',
|
|
57
|
+
messageKey: 'errors.auth.passwordChangeForbidden',
|
|
58
|
+
},
|
|
59
|
+
passwordResetForbidden: {
|
|
60
|
+
statusCode: 403, // HttpStatus.FORBIDDEN,
|
|
61
|
+
code: 'AUTH-03',
|
|
62
|
+
messageKey: 'errors.auth.passwordResetForbidden',
|
|
63
|
+
},
|
|
64
|
+
sessionNotFound: {
|
|
65
|
+
statusCode: 404, // HttpStatus.NOT_FOUND,
|
|
66
|
+
code: 'AUTH-04',
|
|
67
|
+
messageKey: 'errors.auth.sessionNotFound',
|
|
68
|
+
},
|
|
69
|
+
sessionRevoked: {
|
|
70
|
+
statusCode: 401, // HttpStatus.UNAUTHORIZED,
|
|
71
|
+
code: 'AUTH-05',
|
|
72
|
+
messageKey: 'errors.auth.sessionRevoked',
|
|
73
|
+
},
|
|
74
|
+
refreshReuse: {
|
|
75
|
+
statusCode: 401, // HttpStatus.UNAUTHORIZED,
|
|
76
|
+
code: 'AUTH-06',
|
|
77
|
+
messageKey: 'errors.auth.refreshReuse',
|
|
78
|
+
},
|
|
54
79
|
},
|
|
55
80
|
translation: {
|
|
56
81
|
alreadyExists: {
|
|
@@ -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"}
|