@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.
@@ -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.sendTrackingEventResponseDtoCodec = exports.sendTrackingEventRequestDtoCodec = exports.trackingEventDtoCodec = void 0;
38
- var t = __importStar(require("io-ts"));
3
+ exports.sendTrackingEventResponseDtoSchema = exports.sendTrackingEventRequestDtoSchema = exports.trackingEventDtoSchema = void 0;
4
+ var zod_1 = require("zod");
39
5
  var base_1 = require("./base");
40
- exports.trackingEventDtoCodec = t.type(__assign(__assign({}, base_1.baseModelDtoCodec.props), { name: t.string, details: t.record(t.string, t.union([t.string, t.number, t.boolean, t.null])) }), 'TrackingEventDTO');
41
- exports.sendTrackingEventRequestDtoCodec = t.type({
42
- data: exports.trackingEventDtoCodec,
43
- }, 'SendTrackingEventRequestDTO');
44
- exports.sendTrackingEventResponseDtoCodec = t.type({
45
- status: t.number,
46
- data: exports.trackingEventDtoCodec,
47
- }, 'SendTrackingEventResponseDTO');
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 * as t from 'io-ts';
2
- export declare const userProfileDtoCodec: t.TypeC<{
3
- name: t.StringC;
4
- permissions: t.ArrayC<t.StringC>;
5
- isAdmin: t.BooleanC;
6
- id: t.UnionC<[t.StringC, t.NullC]>;
7
- }>;
8
- export type UserProfileDTO = t.TypeOf<typeof userProfileDtoCodec>;
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 getUserProfileRequestDtoCodec: t.TypeC<{
11
- id: t.StringC;
12
- }>;
13
- export declare const getUserProfileResponseDtoCodec: t.TypeC<{
14
- status: t.NumberC;
15
- data: t.TypeC<{
16
- name: t.StringC;
17
- permissions: t.ArrayC<t.StringC>;
18
- isAdmin: t.BooleanC;
19
- id: t.UnionC<[t.StringC, t.NullC]>;
20
- }>;
21
- }>;
22
- export type GetUserProfileRequestDTO = t.TypeOf<typeof getUserProfileRequestDtoCodec>;
23
- export type GetUserProfileResponseDTO = t.TypeOf<typeof getUserProfileResponseDtoCodec>;
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 getAllUserProfilesRequestDtoCodec: t.TypeC<{}>;
26
- export declare const getAllUserProfilesResponseDtoCodec: t.TypeC<{
27
- data: t.ArrayC<t.TypeC<{
28
- name: t.StringC;
29
- permissions: t.ArrayC<t.StringC>;
30
- isAdmin: t.BooleanC;
31
- id: t.UnionC<[t.StringC, t.NullC]>;
32
- }>>;
33
- }>;
34
- export type GetAllUserProfilesRequestDTO = t.TypeOf<typeof getAllUserProfilesRequestDtoCodec>;
35
- export type GetAllUserProfilesResponseDTO = t.TypeOf<typeof getAllUserProfilesResponseDtoCodec>;
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 saveUserProfileRequestDtoCodec: t.TypeC<{
38
- data: t.TypeC<{
39
- name: t.StringC;
40
- permissions: t.ArrayC<t.StringC>;
41
- isAdmin: t.BooleanC;
42
- id: t.UnionC<[t.StringC, t.NullC]>;
43
- }>;
44
- }>;
45
- export declare const saveUserProfileResponseDtoCodec: t.TypeC<{
46
- status: t.NumberC;
47
- data: t.TypeC<{
48
- name: t.StringC;
49
- permissions: t.ArrayC<t.StringC>;
50
- isAdmin: t.BooleanC;
51
- id: t.UnionC<[t.StringC, t.NullC]>;
52
- }>;
53
- }>;
54
- export type SaveUserProfileRequestDTO = t.TypeOf<typeof saveUserProfileRequestDtoCodec>;
55
- export type SaveUserProfileResponseDTO = t.TypeOf<typeof saveUserProfileResponseDtoCodec>;
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 deleteUserProfileRequestDtoCodec: t.TypeC<{
58
- id: t.StringC;
59
- }>;
60
- export declare const deleteUserProfileResponseDtoCodec: t.TypeC<{
61
- status: t.NumberC;
62
- }>;
63
- export type DeleteUserProfileRequestDTO = t.TypeOf<typeof deleteUserProfileRequestDtoCodec>;
64
- export type DeleteUserProfileResponseDTO = t.TypeOf<typeof deleteUserProfileResponseDtoCodec>;
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.deleteUserProfileResponseDtoCodec = exports.deleteUserProfileRequestDtoCodec = exports.saveUserProfileResponseDtoCodec = exports.saveUserProfileRequestDtoCodec = exports.getAllUserProfilesResponseDtoCodec = exports.getAllUserProfilesRequestDtoCodec = exports.getUserProfileResponseDtoCodec = exports.getUserProfileRequestDtoCodec = exports.userProfileDtoCodec = void 0;
38
- var t = __importStar(require("io-ts"));
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.userProfileDtoCodec = t.type(__assign(__assign({}, base_1.baseModelDtoCodec.props), { name: t.string, permissions: t.array(t.string), isAdmin: t.boolean }), 'UserProfileDTO');
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.getUserProfileRequestDtoCodec = t.type({
43
- id: t.string,
44
- }, 'GetUserProfileRequestDTO');
45
- exports.getUserProfileResponseDtoCodec = t.type({
46
- status: t.number,
47
- data: exports.userProfileDtoCodec,
48
- }, 'GetUserProfileResponseDTO');
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.getAllUserProfilesRequestDtoCodec = t.type({}, 'GetAllUserProfilesRequestDTO');
51
- exports.getAllUserProfilesResponseDtoCodec = t.type({
52
- data: t.array(exports.userProfileDtoCodec),
53
- }, 'GetAllUserProfilesResponseDTO');
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.saveUserProfileRequestDtoCodec = t.type({
56
- data: exports.userProfileDtoCodec,
57
- }, 'SaveUserProfileRequestDTO');
58
- exports.saveUserProfileResponseDtoCodec = t.type({
59
- status: t.number,
60
- data: exports.userProfileDtoCodec,
61
- }, 'SaveUserProfileResponseDTO');
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.deleteUserProfileRequestDtoCodec = t.type({
64
- id: t.string,
65
- }, 'DeleteUserProfileRequestDTO');
66
- exports.deleteUserProfileResponseDtoCodec = t.type({
67
- status: t.number,
68
- }, 'DeleteUserProfileResponseDTO');
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 * as t from 'io-ts';
2
- export declare const userDtoCodec: t.IntersectionC<[t.TypeC<{
3
- username: t.StringC;
4
- permissions: t.ArrayC<t.StringC>;
5
- isAdmin: t.BooleanC;
6
- profile: t.UnionC<[t.TypeC<{
7
- name: t.StringC;
8
- permissions: t.ArrayC<t.StringC>;
9
- isAdmin: t.BooleanC;
10
- id: t.UnionC<[t.StringC, t.NullC]>;
11
- }>, t.NullC]>;
12
- id: t.UnionC<[t.StringC, t.NullC]>;
13
- }>, t.PartialC<{
14
- name: t.StringC;
15
- email: t.StringC;
16
- lastLogin: t.UnionC<[t.StringC, t.NullC]>;
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 getUserRequestDtoCodec: t.TypeC<{
21
- id: t.StringC;
22
- }>;
23
- export declare const getUserResponseDtoCodec: t.TypeC<{
24
- status: t.NumberC;
25
- data: t.IntersectionC<[t.TypeC<{
26
- username: t.StringC;
27
- permissions: t.ArrayC<t.StringC>;
28
- isAdmin: t.BooleanC;
29
- profile: t.UnionC<[t.TypeC<{
30
- name: t.StringC;
31
- permissions: t.ArrayC<t.StringC>;
32
- isAdmin: t.BooleanC;
33
- id: t.UnionC<[t.StringC, t.NullC]>;
34
- }>, t.NullC]>;
35
- id: t.UnionC<[t.StringC, t.NullC]>;
36
- }>, t.PartialC<{
37
- name: t.StringC;
38
- email: t.StringC;
39
- lastLogin: t.UnionC<[t.StringC, t.NullC]>;
40
- }>]>;
41
- }>;
42
- export type GetUserRequestDTO = t.TypeOf<typeof getUserRequestDtoCodec>;
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 getAllUsersRequestDtoCodec: t.TypeC<{}>;
46
- export declare const getAllUsersResponseDtoCodec: t.TypeC<{
47
- status: t.NumberC;
48
- data: t.ArrayC<t.IntersectionC<[t.TypeC<{
49
- username: t.StringC;
50
- permissions: t.ArrayC<t.StringC>;
51
- isAdmin: t.BooleanC;
52
- profile: t.UnionC<[t.TypeC<{
53
- name: t.StringC;
54
- permissions: t.ArrayC<t.StringC>;
55
- isAdmin: t.BooleanC;
56
- id: t.UnionC<[t.StringC, t.NullC]>;
57
- }>, t.NullC]>;
58
- id: t.UnionC<[t.StringC, t.NullC]>;
59
- }>, t.PartialC<{
60
- name: t.StringC;
61
- email: t.StringC;
62
- lastLogin: t.UnionC<[t.StringC, t.NullC]>;
63
- }>]>>;
64
- }>;
65
- export type GetAllUsersRequestDTO = t.TypeOf<typeof getAllUsersRequestDtoCodec>;
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 saveUserRequestDtoCodec: t.TypeC<{
69
- data: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
70
- username: t.StringC;
71
- permissions: t.ArrayC<t.StringC>;
72
- isAdmin: t.BooleanC;
73
- profile: t.UnionC<[t.TypeC<{
74
- name: t.StringC;
75
- permissions: t.ArrayC<t.StringC>;
76
- isAdmin: t.BooleanC;
77
- id: t.UnionC<[t.StringC, t.NullC]>;
78
- }>, t.NullC]>;
79
- id: t.UnionC<[t.StringC, t.NullC]>;
80
- }>, t.PartialC<{
81
- name: t.StringC;
82
- email: t.StringC;
83
- lastLogin: t.UnionC<[t.StringC, t.NullC]>;
84
- }>]>, t.PartialC<{
85
- password: t.StringC;
86
- }>]>;
87
- password: t.StringC;
88
- }>;
89
- export declare const saveUserResponseDtoCodec: t.TypeC<{
90
- status: t.NumberC;
91
- data: t.IntersectionC<[t.TypeC<{
92
- username: t.StringC;
93
- permissions: t.ArrayC<t.StringC>;
94
- isAdmin: t.BooleanC;
95
- profile: t.UnionC<[t.TypeC<{
96
- name: t.StringC;
97
- permissions: t.ArrayC<t.StringC>;
98
- isAdmin: t.BooleanC;
99
- id: t.UnionC<[t.StringC, t.NullC]>;
100
- }>, t.NullC]>;
101
- id: t.UnionC<[t.StringC, t.NullC]>;
102
- }>, t.PartialC<{
103
- name: t.StringC;
104
- email: t.StringC;
105
- lastLogin: t.UnionC<[t.StringC, t.NullC]>;
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 deleteUserRequestDtoCodec: t.TypeC<{
112
- id: t.StringC;
113
- }>;
114
- export declare const deleteUserResponseDtoCodec: t.TypeC<{
115
- status: t.NumberC;
116
- }>;
117
- export type DeleteUserRequestDTO = t.TypeOf<typeof deleteUserRequestDtoCodec>;
118
- export type DeleteUserResponseDTO = t.TypeOf<typeof deleteUserResponseDtoCodec>;
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>;