@addev-be/ui 0.21.8 → 1.0.0
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/dist/components/data/DataGrid/hooks/useDataGridSettings.d.ts +8 -12
- package/dist/components/data/DataGrid/types.d.ts +16 -16
- package/dist/components/data/DataGrid/types.js +8 -31
- package/dist/services/requests/auth.d.ts +9 -11
- package/dist/services/requests/generic.d.ts +150 -15
- package/dist/services/requests/generic.js +7 -7
- package/dist/services/requests/tracking.d.ts +4 -8
- package/dist/services/requests/userProfiles.d.ts +5 -5
- package/dist/services/requests/users.d.ts +11 -16
- package/dist/services/types/auth.d.ts +80 -82
- package/dist/services/types/auth.js +41 -64
- package/dist/services/types/base.d.ts +5 -5
- package/dist/services/types/base.js +4 -27
- package/dist/services/types/generic.d.ts +39 -40
- package/dist/services/types/generic.js +38 -65
- package/dist/services/types/tracking.d.ts +24 -24
- package/dist/services/types/tracking.js +13 -44
- package/dist/services/types/userProfiles.d.ts +60 -60
- package/dist/services/types/userProfiles.js +31 -61
- package/dist/services/types/users.d.ts +108 -114
- package/dist/services/types/users.js +39 -75
- package/package.json +4 -5
- package/src/components/data/DataGrid/types.ts +15 -20
- package/src/services/requests/generic.ts +20 -20
- package/src/services/types/auth.ts +73 -106
- package/src/services/types/base.ts +4 -4
- package/src/services/types/generic.ts +58 -72
- package/src/services/types/tracking.ts +21 -31
- package/src/services/types/userProfiles.ts +54 -82
- package/src/services/types/users.ts +57 -89
|
@@ -1,47 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
38
|
-
var
|
|
3
|
+
exports.sendTrackingEventResponseDtoSchema = exports.sendTrackingEventRequestDtoSchema = exports.trackingEventDtoSchema = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
39
5
|
var base_1 = require("./base");
|
|
40
|
-
exports.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
exports.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
6
|
+
exports.trackingEventDtoSchema = base_1.baseModelDtoSchema.extend({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
details: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null()])),
|
|
9
|
+
});
|
|
10
|
+
exports.sendTrackingEventRequestDtoSchema = zod_1.z.object({
|
|
11
|
+
data: exports.trackingEventDtoSchema,
|
|
12
|
+
});
|
|
13
|
+
exports.sendTrackingEventResponseDtoSchema = zod_1.z.object({
|
|
14
|
+
status: zod_1.z.number(),
|
|
15
|
+
data: exports.trackingEventDtoSchema,
|
|
16
|
+
});
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}>;
|
|
8
|
-
export type UserProfileDTO =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const userProfileDtoSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNullable<z.ZodString>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
6
|
+
isAdmin: z.ZodBoolean;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type UserProfileDTO = z.infer<typeof userProfileDtoSchema>;
|
|
9
9
|
/*****/
|
|
10
|
-
export declare const
|
|
11
|
-
id:
|
|
12
|
-
}>;
|
|
13
|
-
export declare const
|
|
14
|
-
status:
|
|
15
|
-
data:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}>;
|
|
21
|
-
}>;
|
|
22
|
-
export type GetUserProfileRequestDTO =
|
|
23
|
-
export type GetUserProfileResponseDTO =
|
|
10
|
+
export declare const getUserProfileRequestDtoSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const getUserProfileResponseDtoSchema: z.ZodObject<{
|
|
14
|
+
status: z.ZodNumber;
|
|
15
|
+
data: z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
19
|
+
isAdmin: z.ZodBoolean;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type GetUserProfileRequestDTO = z.infer<typeof getUserProfileRequestDtoSchema>;
|
|
23
|
+
export type GetUserProfileResponseDTO = z.infer<typeof getUserProfileResponseDtoSchema>;
|
|
24
24
|
/*****/
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
27
|
-
data:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}>>;
|
|
33
|
-
}>;
|
|
34
|
-
export type GetAllUserProfilesRequestDTO =
|
|
35
|
-
export type GetAllUserProfilesResponseDTO =
|
|
25
|
+
export declare const getAllUserProfilesRequestDtoSchema: z.ZodObject<{}, z.core.$strip>;
|
|
26
|
+
export declare const getAllUserProfilesResponseDtoSchema: z.ZodObject<{
|
|
27
|
+
data: z.ZodArray<z.ZodObject<{
|
|
28
|
+
id: z.ZodNullable<z.ZodString>;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
31
|
+
isAdmin: z.ZodBoolean;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type GetAllUserProfilesRequestDTO = z.infer<typeof getAllUserProfilesRequestDtoSchema>;
|
|
35
|
+
export type GetAllUserProfilesResponseDTO = z.infer<typeof getAllUserProfilesResponseDtoSchema>;
|
|
36
36
|
/*****/
|
|
37
|
-
export declare const
|
|
38
|
-
data:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}>;
|
|
44
|
-
}>;
|
|
45
|
-
export declare const
|
|
46
|
-
status:
|
|
47
|
-
data:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}>;
|
|
53
|
-
}>;
|
|
54
|
-
export type SaveUserProfileRequestDTO =
|
|
55
|
-
export type SaveUserProfileResponseDTO =
|
|
37
|
+
export declare const saveUserProfileRequestDtoSchema: z.ZodObject<{
|
|
38
|
+
data: z.ZodObject<{
|
|
39
|
+
id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
42
|
+
isAdmin: z.ZodBoolean;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const saveUserProfileResponseDtoSchema: z.ZodObject<{
|
|
46
|
+
status: z.ZodNumber;
|
|
47
|
+
data: z.ZodObject<{
|
|
48
|
+
id: z.ZodNullable<z.ZodString>;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
51
|
+
isAdmin: z.ZodBoolean;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type SaveUserProfileRequestDTO = z.infer<typeof saveUserProfileRequestDtoSchema>;
|
|
55
|
+
export type SaveUserProfileResponseDTO = z.infer<typeof saveUserProfileResponseDtoSchema>;
|
|
56
56
|
/*****/
|
|
57
|
-
export declare const
|
|
58
|
-
id:
|
|
59
|
-
}>;
|
|
60
|
-
export declare const
|
|
61
|
-
status:
|
|
62
|
-
}>;
|
|
63
|
-
export type DeleteUserProfileRequestDTO =
|
|
64
|
-
export type DeleteUserProfileResponseDTO =
|
|
57
|
+
export declare const deleteUserProfileRequestDtoSchema: z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const deleteUserProfileResponseDtoSchema: z.ZodObject<{
|
|
61
|
+
status: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type DeleteUserProfileRequestDTO = z.infer<typeof deleteUserProfileRequestDtoSchema>;
|
|
64
|
+
export type DeleteUserProfileResponseDTO = z.infer<typeof deleteUserProfileResponseDtoSchema>;
|
|
@@ -1,68 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
38
|
-
var
|
|
3
|
+
exports.deleteUserProfileResponseDtoSchema = exports.deleteUserProfileRequestDtoSchema = exports.saveUserProfileResponseDtoSchema = exports.saveUserProfileRequestDtoSchema = exports.getAllUserProfilesResponseDtoSchema = exports.getAllUserProfilesRequestDtoSchema = exports.getUserProfileResponseDtoSchema = exports.getUserProfileRequestDtoSchema = exports.userProfileDtoSchema = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
39
5
|
var base_1 = require("./base");
|
|
40
|
-
exports.
|
|
6
|
+
exports.userProfileDtoSchema = base_1.baseModelDtoSchema.extend({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
permissions: zod_1.z.array(zod_1.z.string()),
|
|
9
|
+
isAdmin: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
41
11
|
/*****/
|
|
42
|
-
exports.
|
|
43
|
-
id:
|
|
44
|
-
}
|
|
45
|
-
exports.
|
|
46
|
-
status:
|
|
47
|
-
data: exports.
|
|
48
|
-
}
|
|
12
|
+
exports.getUserProfileRequestDtoSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
exports.getUserProfileResponseDtoSchema = zod_1.z.object({
|
|
16
|
+
status: zod_1.z.number(),
|
|
17
|
+
data: exports.userProfileDtoSchema,
|
|
18
|
+
});
|
|
49
19
|
/*****/
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
data:
|
|
53
|
-
}
|
|
20
|
+
exports.getAllUserProfilesRequestDtoSchema = zod_1.z.object({});
|
|
21
|
+
exports.getAllUserProfilesResponseDtoSchema = zod_1.z.object({
|
|
22
|
+
data: zod_1.z.array(exports.userProfileDtoSchema),
|
|
23
|
+
});
|
|
54
24
|
/*****/
|
|
55
|
-
exports.
|
|
56
|
-
data: exports.
|
|
57
|
-
}
|
|
58
|
-
exports.
|
|
59
|
-
status:
|
|
60
|
-
data: exports.
|
|
61
|
-
}
|
|
25
|
+
exports.saveUserProfileRequestDtoSchema = zod_1.z.object({
|
|
26
|
+
data: exports.userProfileDtoSchema,
|
|
27
|
+
});
|
|
28
|
+
exports.saveUserProfileResponseDtoSchema = zod_1.z.object({
|
|
29
|
+
status: zod_1.z.number(),
|
|
30
|
+
data: exports.userProfileDtoSchema,
|
|
31
|
+
});
|
|
62
32
|
/*****/
|
|
63
|
-
exports.
|
|
64
|
-
id:
|
|
65
|
-
}
|
|
66
|
-
exports.
|
|
67
|
-
status:
|
|
68
|
-
}
|
|
33
|
+
exports.deleteUserProfileRequestDtoSchema = zod_1.z.object({
|
|
34
|
+
id: zod_1.z.string(),
|
|
35
|
+
});
|
|
36
|
+
exports.deleteUserProfileResponseDtoSchema = zod_1.z.object({
|
|
37
|
+
status: zod_1.z.number(),
|
|
38
|
+
});
|
|
@@ -1,118 +1,112 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export type UserDTO = t.TypeOf<typeof userDtoCodec>;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const userDtoSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNullable<z.ZodString>;
|
|
4
|
+
username: z.ZodString;
|
|
5
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
6
|
+
isAdmin: z.ZodBoolean;
|
|
7
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
11
|
+
isAdmin: z.ZodBoolean;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
email: z.ZodOptional<z.ZodString>;
|
|
15
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type UserDTO = z.infer<typeof userDtoSchema>;
|
|
19
18
|
/*****/
|
|
20
|
-
export declare const
|
|
21
|
-
id:
|
|
22
|
-
}>;
|
|
23
|
-
export declare const
|
|
24
|
-
status:
|
|
25
|
-
data:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
export type
|
|
43
|
-
export type GetUserResponseDTO = t.TypeOf<typeof getUserResponseDtoCodec>;
|
|
19
|
+
export declare const getUserRequestDtoSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const getUserResponseDtoSchema: z.ZodObject<{
|
|
23
|
+
status: z.ZodNumber;
|
|
24
|
+
data: z.ZodObject<{
|
|
25
|
+
id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
username: z.ZodString;
|
|
27
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
28
|
+
isAdmin: z.ZodBoolean;
|
|
29
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
id: z.ZodNullable<z.ZodString>;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
33
|
+
isAdmin: z.ZodBoolean;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
email: z.ZodOptional<z.ZodString>;
|
|
37
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type GetUserRequestDTO = z.infer<typeof getUserRequestDtoSchema>;
|
|
41
|
+
export type GetUserResponseDTO = z.infer<typeof getUserResponseDtoSchema>;
|
|
44
42
|
/*****/
|
|
45
|
-
export declare const
|
|
46
|
-
export declare const
|
|
47
|
-
status:
|
|
48
|
-
data:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
export type
|
|
66
|
-
export type GetAllUsersResponseDTO = t.TypeOf<typeof getAllUsersResponseDtoCodec>;
|
|
43
|
+
export declare const getAllUsersRequestDtoSchema: z.ZodObject<{}, z.core.$strip>;
|
|
44
|
+
export declare const getAllUsersResponseDtoSchema: z.ZodObject<{
|
|
45
|
+
status: z.ZodNumber;
|
|
46
|
+
data: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
username: z.ZodString;
|
|
49
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
50
|
+
isAdmin: z.ZodBoolean;
|
|
51
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
id: z.ZodNullable<z.ZodString>;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
55
|
+
isAdmin: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
email: z.ZodOptional<z.ZodString>;
|
|
59
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type GetAllUsersRequestDTO = z.infer<typeof getAllUsersRequestDtoSchema>;
|
|
63
|
+
export type GetAllUsersResponseDTO = z.infer<typeof getAllUsersResponseDtoSchema>;
|
|
67
64
|
/*****/
|
|
68
|
-
export declare const
|
|
69
|
-
data:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
name:
|
|
97
|
-
permissions:
|
|
98
|
-
isAdmin:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}>;
|
|
108
|
-
export type SaveUserRequestDTO = t.TypeOf<typeof saveUserRequestDtoCodec>;
|
|
109
|
-
export type SaveUserResponseDTO = t.TypeOf<typeof saveUserResponseDtoCodec>;
|
|
65
|
+
export declare const saveUserRequestDtoSchema: z.ZodObject<{
|
|
66
|
+
data: z.ZodObject<{
|
|
67
|
+
id: z.ZodNullable<z.ZodString>;
|
|
68
|
+
username: z.ZodString;
|
|
69
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
70
|
+
isAdmin: z.ZodBoolean;
|
|
71
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
72
|
+
id: z.ZodNullable<z.ZodString>;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
75
|
+
isAdmin: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
name: z.ZodOptional<z.ZodString>;
|
|
78
|
+
email: z.ZodOptional<z.ZodString>;
|
|
79
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
password: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
password: z.ZodString;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export declare const saveUserResponseDtoSchema: z.ZodObject<{
|
|
85
|
+
status: z.ZodNumber;
|
|
86
|
+
data: z.ZodObject<{
|
|
87
|
+
id: z.ZodNullable<z.ZodString>;
|
|
88
|
+
username: z.ZodString;
|
|
89
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
90
|
+
isAdmin: z.ZodBoolean;
|
|
91
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
92
|
+
id: z.ZodNullable<z.ZodString>;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
95
|
+
isAdmin: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
email: z.ZodOptional<z.ZodString>;
|
|
99
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type SaveUserRequestDTO = z.infer<typeof saveUserRequestDtoSchema>;
|
|
103
|
+
export type SaveUserResponseDTO = z.infer<typeof saveUserResponseDtoSchema>;
|
|
110
104
|
/*****/
|
|
111
|
-
export declare const
|
|
112
|
-
id:
|
|
113
|
-
}>;
|
|
114
|
-
export declare const
|
|
115
|
-
status:
|
|
116
|
-
}>;
|
|
117
|
-
export type DeleteUserRequestDTO =
|
|
118
|
-
export type DeleteUserResponseDTO =
|
|
105
|
+
export declare const deleteUserRequestDtoSchema: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export declare const deleteUserResponseDtoSchema: z.ZodObject<{
|
|
109
|
+
status: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type DeleteUserRequestDTO = z.infer<typeof deleteUserRequestDtoSchema>;
|
|
112
|
+
export type DeleteUserResponseDTO = z.infer<typeof deleteUserResponseDtoSchema>;
|