expo-backend-types 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/account/dto/account.dto.d.ts +11 -201
- package/dist/src/account/dto/account.dto.js +4 -21
- package/dist/src/account/dto/create-account.dto.d.ts +9 -301
- package/dist/src/account/dto/create-account.dto.js +3 -4
- package/dist/src/account/dto/get-global-filter.dto.d.ts +24 -20
- package/dist/src/account/dto/get-global-filter.dto.js +10 -6
- package/dist/src/account/dto/get-me.dto.d.ts +214 -188
- package/dist/src/account/dto/get-me.dto.js +27 -4
- package/dist/src/account/dto/update-global-filter.dto.d.ts +136 -169
- package/dist/src/account/dto/update-global-filter.dto.js +7 -15
- package/dist/src/auth/dto/login.dto.d.ts +34 -414
- package/dist/src/auth/dto/login.dto.js +5 -4
- package/dist/src/auth/dto/refresh.dto.d.ts +30 -0
- package/dist/src/auth/dto/refresh.dto.js +17 -0
- package/dist/src/comment/dto/comment.dto.d.ts +21 -15
- package/dist/src/comment/dto/comment.dto.js +11 -6
- package/dist/src/comment/dto/create-comment.dto.d.ts +106 -0
- package/dist/src/comment/dto/create-comment.dto.js +18 -0
- package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +177 -0
- package/dist/src/comment/dto/get-by-profile-comment.dto.js +21 -0
- package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +71 -0
- package/dist/src/comment/dto/toggle-solve-comment.dto.js +10 -0
- package/dist/src/comment/exports.d.ts +3 -0
- package/dist/src/comment/exports.js +3 -0
- package/dist/src/event/dto/event.dto.d.ts +10 -16
- package/dist/src/event/dto/event.dto.js +6 -10
- package/dist/src/event-folder/dto/event-folder.dto.d.ts +6 -0
- package/dist/src/event-folder/dto/event-folder.dto.js +2 -0
- package/dist/src/event-folder/exports.d.ts +1 -0
- package/dist/src/event-folder/exports.js +18 -0
- package/dist/src/exports.d.ts +5 -3
- package/dist/src/exports.js +5 -3
- package/dist/src/i18n/es.d.ts +210 -0
- package/dist/src/i18n/es.js +212 -0
- package/dist/src/i18n/es.js.map +1 -0
- package/dist/src/i18n/translate.d.ts +9 -2
- package/dist/src/i18n/translate.js +3 -3
- package/dist/src/i18n/translate.js.map +1 -1
- package/dist/src/profile/dto/profile.dto.d.ts +68 -0
- package/dist/src/profile/dto/profile.dto.js +59 -0
- package/dist/src/profile/exports.d.ts +1 -0
- package/dist/src/profile/exports.js +18 -0
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.d.ts +4 -0
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +10 -0
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -0
- package/dist/src/shared/dto-modification/without-dates.d.ts +4 -0
- package/dist/src/shared/dto-modification/without-dates.js +6 -0
- package/dist/src/shared/dto-modification/without-dates.js.map +1 -0
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +8 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js +28 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -0
- package/dist/src/tag/dto/create-tag.dto.d.ts +5 -16
- package/dist/src/tag/dto/create-tag.dto.js +3 -3
- package/dist/src/tag/dto/delete-tag.dto.d.ts +7 -7
- package/dist/src/tag/dto/delete-tag.dto.js +2 -2
- package/dist/src/tag/dto/find-all-tag.dto.d.ts +34 -35
- package/dist/src/tag/dto/find-all-tag.dto.js +2 -2
- package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +35 -36
- package/dist/src/tag/dto/find-by-group-tag.dto.js +5 -5
- package/dist/src/tag/dto/find-one-tag.dto.d.ts +23 -24
- package/dist/src/tag/dto/find-one-tag.dto.js +2 -2
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +260 -0
- package/dist/src/tag/dto/massive-allocation.dto.js +24 -0
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +260 -0
- package/dist/src/tag/dto/massive-deallocation.dto.js +24 -0
- package/dist/src/tag/dto/tag.dto.d.ts +7 -7
- package/dist/src/tag/dto/tag.dto.js +3 -3
- package/dist/src/tag/dto/update-tag.dto.d.ts +31 -22
- package/dist/src/tag/dto/update-tag.dto.js +5 -7
- package/dist/src/tag/exports.d.ts +2 -1
- package/dist/src/tag/exports.js +2 -1
- package/dist/src/tag-group/dto/create-tag-group.dto.d.ts +78 -0
- package/dist/src/tag-group/dto/create-tag-group.dto.js +18 -0
- package/dist/src/tag-group/dto/delete-tag-group.dto.d.ts +47 -0
- package/dist/src/tag-group/dto/delete-tag-group.dto.js +10 -0
- package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +207 -0
- package/dist/src/tag-group/dto/find-all-tag-group.dto.js +19 -0
- package/dist/src/{tag/dto/find-all-grouped-tag.dto.d.ts → tag-group/dto/find-all-with-tags.dto.d.ts} +24 -28
- package/dist/src/{tag/dto/find-all-grouped-tag.dto.js → tag-group/dto/find-all-with-tags.dto.js} +8 -8
- package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +135 -0
- package/dist/src/tag-group/dto/find-one-tag-group.dto.js +17 -0
- package/dist/src/tag-group/dto/tag-group.dto.d.ts +9 -9
- package/dist/src/tag-group/dto/tag-group.dto.js +5 -3
- package/dist/src/tag-group/dto/update-tag-group.dto.d.ts +78 -0
- package/dist/src/tag-group/dto/update-tag-group.dto.js +18 -0
- package/dist/src/tag-group/exports.d.ts +6 -0
- package/dist/src/tag-group/exports.js +6 -0
- package/dist/types/prisma-schema/edge.js +4 -4
- package/dist/types/prisma-schema/index-browser.js +1 -1
- package/dist/types/prisma-schema/index.d.ts +53 -53
- package/dist/types/prisma-schema/index.js +4 -4
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +1 -1
- package/dist/types/prisma-schema/wasm.js +1 -1
- package/dist/types/schema.d.ts +787 -184
- package/package.json +10 -6
- package/dist/src/i18n/es.json +0 -125
@@ -1,6 +1,17 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
export declare const
|
3
|
-
|
2
|
+
export declare const getGlobalFilterResponseSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
3
|
+
id: z.ZodString;
|
4
|
+
username: z.ZodString;
|
5
|
+
password: z.ZodString;
|
6
|
+
role: z.ZodNativeEnum<{
|
7
|
+
USER: "USER";
|
8
|
+
ADMIN: "ADMIN";
|
9
|
+
}>;
|
10
|
+
isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
|
11
|
+
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
12
|
+
created_at: z.ZodDate;
|
13
|
+
updated_at: z.ZodDate;
|
14
|
+
}, "isGlobalFilterActive">, {
|
4
15
|
globalFilter: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
5
16
|
id: z.ZodString;
|
6
17
|
name: z.ZodString;
|
@@ -49,7 +60,8 @@ export declare const getGlobalFilterResponse: z.ZodObject<{
|
|
49
60
|
isExclusive: boolean;
|
50
61
|
};
|
51
62
|
}>, "many">;
|
52
|
-
}
|
63
|
+
}>, "strip", z.ZodTypeAny, {
|
64
|
+
isGlobalFilterActive: boolean;
|
53
65
|
globalFilter: {
|
54
66
|
id: string;
|
55
67
|
name: string;
|
@@ -60,7 +72,6 @@ export declare const getGlobalFilterResponse: z.ZodObject<{
|
|
60
72
|
isExclusive: boolean;
|
61
73
|
};
|
62
74
|
}[];
|
63
|
-
active: boolean;
|
64
75
|
}, {
|
65
76
|
globalFilter: {
|
66
77
|
id: string;
|
@@ -72,31 +83,24 @@ export declare const getGlobalFilterResponse: z.ZodObject<{
|
|
72
83
|
isExclusive: boolean;
|
73
84
|
};
|
74
85
|
}[];
|
75
|
-
|
86
|
+
isGlobalFilterActive?: boolean | undefined;
|
76
87
|
}>;
|
77
88
|
declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
78
|
-
|
79
|
-
globalFilter: z.ZodArray<z.ZodObject<
|
89
|
+
isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
|
90
|
+
globalFilter: z.ZodArray<z.ZodObject<{
|
80
91
|
id: z.ZodString;
|
81
92
|
name: z.ZodString;
|
82
|
-
groupId: z.ZodString;
|
83
93
|
type: z.ZodNativeEnum<{
|
84
94
|
PROFILE: "PROFILE";
|
85
95
|
EVENT: "EVENT";
|
86
96
|
PARTICIPANT: "PARTICIPANT";
|
87
97
|
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
88
98
|
}>;
|
89
|
-
|
90
|
-
updated_at: z.ZodDate;
|
91
|
-
}, "id" | "name" | "type">, {
|
92
|
-
group: z.ZodObject<Pick<{
|
99
|
+
group: z.ZodObject<{
|
93
100
|
id: z.ZodString;
|
94
|
-
name: z.ZodString;
|
95
101
|
color: z.ZodString;
|
96
102
|
isExclusive: z.ZodBoolean;
|
97
|
-
|
98
|
-
updated_at: z.ZodDate;
|
99
|
-
}, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
|
103
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
100
104
|
id: string;
|
101
105
|
color: string;
|
102
106
|
isExclusive: boolean;
|
@@ -105,7 +109,7 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
|
|
105
109
|
color: string;
|
106
110
|
isExclusive: boolean;
|
107
111
|
}>;
|
108
|
-
}
|
112
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
109
113
|
id: string;
|
110
114
|
name: string;
|
111
115
|
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
@@ -124,7 +128,8 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
|
|
124
128
|
isExclusive: boolean;
|
125
129
|
};
|
126
130
|
}>, "many">;
|
127
|
-
},
|
131
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
132
|
+
isGlobalFilterActive: boolean;
|
128
133
|
globalFilter: {
|
129
134
|
id: string;
|
130
135
|
name: string;
|
@@ -135,7 +140,6 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
|
|
135
140
|
isExclusive: boolean;
|
136
141
|
};
|
137
142
|
}[];
|
138
|
-
active: boolean;
|
139
143
|
}, {
|
140
144
|
globalFilter: {
|
141
145
|
id: string;
|
@@ -147,7 +151,7 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
|
|
147
151
|
isExclusive: boolean;
|
148
152
|
};
|
149
153
|
}[];
|
150
|
-
|
154
|
+
isGlobalFilterActive?: boolean | undefined;
|
151
155
|
}>>;
|
152
156
|
export declare class GetGlobalFilterResponseDto extends GetGlobalFilterResponseDto_base {
|
153
157
|
}
|
@@ -3,13 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.GetGlobalFilterResponseDto = exports.
|
6
|
+
exports.GetGlobalFilterResponseDto = exports.getGlobalFilterResponseSchema = void 0;
|
7
|
+
const account_dto_1 = require("./account.dto");
|
8
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
7
9
|
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
8
10
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
9
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
10
11
|
const zod_1 = __importDefault(require("zod"));
|
11
|
-
exports.
|
12
|
-
|
12
|
+
exports.getGlobalFilterResponseSchema = account_dto_1.accountSchema
|
13
|
+
.pick({
|
14
|
+
isGlobalFilterActive: true,
|
15
|
+
})
|
16
|
+
.merge(zod_1.default.object({
|
13
17
|
globalFilter: zod_1.default.array(tag_dto_1.tagSchema
|
14
18
|
.pick({
|
15
19
|
id: true,
|
@@ -23,8 +27,8 @@ exports.getGlobalFilterResponse = zod_1.default.object({
|
|
23
27
|
isExclusive: true,
|
24
28
|
}),
|
25
29
|
}))),
|
26
|
-
});
|
27
|
-
class GetGlobalFilterResponseDto extends (0,
|
30
|
+
}));
|
31
|
+
class GetGlobalFilterResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getGlobalFilterResponseSchema) {
|
28
32
|
}
|
29
33
|
exports.GetGlobalFilterResponseDto = GetGlobalFilterResponseDto;
|
30
34
|
//# sourceMappingURL=get-global-filter.dto.js.map
|
@@ -1,230 +1,250 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const getMeResponseSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
3
|
+
id: z.ZodString;
|
4
|
+
username: z.ZodString;
|
5
|
+
password: z.ZodString;
|
6
|
+
role: z.ZodNativeEnum<{
|
6
7
|
USER: "USER";
|
7
8
|
ADMIN: "ADMIN";
|
8
9
|
}>;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
isExclusive: boolean;
|
36
|
-
}, {
|
37
|
-
id: string;
|
38
|
-
color: string;
|
39
|
-
isExclusive: boolean;
|
40
|
-
}>;
|
41
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
10
|
+
isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
|
11
|
+
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
12
|
+
created_at: z.ZodDate;
|
13
|
+
updated_at: z.ZodDate;
|
14
|
+
}, "password">, {
|
15
|
+
globalFilter: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
16
|
+
id: z.ZodString;
|
17
|
+
name: z.ZodString;
|
18
|
+
groupId: z.ZodString;
|
19
|
+
type: z.ZodNativeEnum<{
|
20
|
+
PROFILE: "PROFILE";
|
21
|
+
EVENT: "EVENT";
|
22
|
+
PARTICIPANT: "PARTICIPANT";
|
23
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
24
|
+
}>;
|
25
|
+
created_at: z.ZodDate;
|
26
|
+
updated_at: z.ZodDate;
|
27
|
+
}, "id" | "name" | "type">, {
|
28
|
+
group: z.ZodObject<Pick<{
|
29
|
+
id: z.ZodString;
|
30
|
+
name: z.ZodString;
|
31
|
+
color: z.ZodString;
|
32
|
+
isExclusive: z.ZodBoolean;
|
33
|
+
created_at: z.ZodDate;
|
34
|
+
updated_at: z.ZodDate;
|
35
|
+
}, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
|
42
36
|
id: string;
|
43
|
-
|
44
|
-
|
45
|
-
id: string;
|
46
|
-
color: string;
|
47
|
-
isExclusive: boolean;
|
48
|
-
};
|
37
|
+
color: string;
|
38
|
+
isExclusive: boolean;
|
49
39
|
}, {
|
50
40
|
id: string;
|
51
|
-
|
52
|
-
|
53
|
-
id: string;
|
54
|
-
color: string;
|
55
|
-
isExclusive: boolean;
|
56
|
-
};
|
41
|
+
color: string;
|
42
|
+
isExclusive: boolean;
|
57
43
|
}>;
|
58
|
-
|
59
|
-
|
60
|
-
|
44
|
+
}>, "strip", z.ZodTypeAny, {
|
45
|
+
id: string;
|
46
|
+
name: string;
|
47
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
48
|
+
group: {
|
61
49
|
id: string;
|
62
|
-
|
63
|
-
|
64
|
-
id: string;
|
65
|
-
color: string;
|
66
|
-
isExclusive: boolean;
|
67
|
-
};
|
50
|
+
color: string;
|
51
|
+
isExclusive: boolean;
|
68
52
|
};
|
69
|
-
active: boolean;
|
70
53
|
}, {
|
71
|
-
|
54
|
+
id: string;
|
55
|
+
name: string;
|
56
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
57
|
+
group: {
|
72
58
|
id: string;
|
73
|
-
|
74
|
-
|
75
|
-
id: string;
|
76
|
-
color: string;
|
77
|
-
isExclusive: boolean;
|
78
|
-
};
|
59
|
+
color: string;
|
60
|
+
isExclusive: boolean;
|
79
61
|
};
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
62
|
+
}>, "many">;
|
63
|
+
tags: z.ZodArray<z.ZodObject<{
|
64
|
+
id: z.ZodString;
|
65
|
+
name: z.ZodString;
|
66
|
+
groupId: z.ZodString;
|
67
|
+
type: z.ZodNativeEnum<{
|
68
|
+
PROFILE: "PROFILE";
|
69
|
+
EVENT: "EVENT";
|
70
|
+
PARTICIPANT: "PARTICIPANT";
|
71
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
72
|
+
}>;
|
73
|
+
created_at: z.ZodDate;
|
74
|
+
updated_at: z.ZodDate;
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
76
|
+
id: string;
|
77
|
+
name: string;
|
78
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
79
|
+
created_at: Date;
|
80
|
+
updated_at: Date;
|
81
|
+
groupId: string;
|
82
|
+
}, {
|
83
|
+
id: string;
|
84
|
+
name: string;
|
85
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
86
|
+
created_at: Date;
|
87
|
+
updated_at: Date;
|
88
|
+
groupId: string;
|
89
|
+
}>, "many">;
|
90
|
+
}>, "strip", z.ZodTypeAny, {
|
85
91
|
id: string;
|
86
92
|
username: string;
|
87
93
|
role: "USER" | "ADMIN";
|
88
|
-
|
89
|
-
|
94
|
+
isGlobalFilterActive: boolean;
|
95
|
+
fcmToken: string[];
|
96
|
+
created_at: Date;
|
97
|
+
updated_at: Date;
|
90
98
|
globalFilter: {
|
91
|
-
|
99
|
+
id: string;
|
100
|
+
name: string;
|
101
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
102
|
+
group: {
|
92
103
|
id: string;
|
93
|
-
|
94
|
-
|
95
|
-
id: string;
|
96
|
-
color: string;
|
97
|
-
isExclusive: boolean;
|
98
|
-
};
|
104
|
+
color: string;
|
105
|
+
isExclusive: boolean;
|
99
106
|
};
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
107
|
+
}[];
|
108
|
+
tags: {
|
109
|
+
id: string;
|
110
|
+
name: string;
|
111
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
112
|
+
created_at: Date;
|
113
|
+
updated_at: Date;
|
114
|
+
groupId: string;
|
115
|
+
}[];
|
104
116
|
}, {
|
105
117
|
id: string;
|
106
118
|
username: string;
|
107
119
|
role: "USER" | "ADMIN";
|
108
|
-
created_at:
|
109
|
-
updated_at:
|
120
|
+
created_at: Date;
|
121
|
+
updated_at: Date;
|
110
122
|
globalFilter: {
|
111
|
-
|
123
|
+
id: string;
|
124
|
+
name: string;
|
125
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
126
|
+
group: {
|
112
127
|
id: string;
|
113
|
-
|
114
|
-
|
115
|
-
id: string;
|
116
|
-
color: string;
|
117
|
-
isExclusive: boolean;
|
118
|
-
};
|
128
|
+
color: string;
|
129
|
+
isExclusive: boolean;
|
119
130
|
};
|
120
|
-
|
121
|
-
|
131
|
+
}[];
|
132
|
+
tags: {
|
133
|
+
id: string;
|
134
|
+
name: string;
|
135
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
136
|
+
created_at: Date;
|
137
|
+
updated_at: Date;
|
138
|
+
groupId: string;
|
139
|
+
}[];
|
122
140
|
isGlobalFilterActive?: boolean | undefined;
|
123
141
|
fcmToken?: string[] | undefined;
|
124
142
|
}>;
|
125
|
-
declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
126
|
-
id:
|
127
|
-
username:
|
128
|
-
|
129
|
-
role: import("zod").ZodNativeEnum<{
|
143
|
+
declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
144
|
+
id: z.ZodString;
|
145
|
+
username: z.ZodString;
|
146
|
+
role: z.ZodNativeEnum<{
|
130
147
|
USER: "USER";
|
131
148
|
ADMIN: "ADMIN";
|
132
149
|
}>;
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
name: import("zod").ZodString;
|
152
|
-
color: import("zod").ZodString;
|
153
|
-
isExclusive: import("zod").ZodBoolean;
|
154
|
-
created_at: import("zod").ZodDate;
|
155
|
-
updated_at: import("zod").ZodDate;
|
156
|
-
}, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
|
157
|
-
id: string;
|
158
|
-
color: string;
|
159
|
-
isExclusive: boolean;
|
160
|
-
}, {
|
161
|
-
id: string;
|
162
|
-
color: string;
|
163
|
-
isExclusive: boolean;
|
164
|
-
}>;
|
165
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
150
|
+
isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
|
151
|
+
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
152
|
+
created_at: z.ZodString;
|
153
|
+
updated_at: z.ZodString;
|
154
|
+
globalFilter: z.ZodArray<z.ZodObject<{
|
155
|
+
id: z.ZodString;
|
156
|
+
name: z.ZodString;
|
157
|
+
type: z.ZodNativeEnum<{
|
158
|
+
PROFILE: "PROFILE";
|
159
|
+
EVENT: "EVENT";
|
160
|
+
PARTICIPANT: "PARTICIPANT";
|
161
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
162
|
+
}>;
|
163
|
+
group: z.ZodObject<{
|
164
|
+
id: z.ZodString;
|
165
|
+
color: z.ZodString;
|
166
|
+
isExclusive: z.ZodBoolean;
|
167
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
166
168
|
id: string;
|
167
|
-
|
168
|
-
|
169
|
-
id: string;
|
170
|
-
color: string;
|
171
|
-
isExclusive: boolean;
|
172
|
-
};
|
169
|
+
color: string;
|
170
|
+
isExclusive: boolean;
|
173
171
|
}, {
|
174
172
|
id: string;
|
175
|
-
|
176
|
-
|
177
|
-
id: string;
|
178
|
-
color: string;
|
179
|
-
isExclusive: boolean;
|
180
|
-
};
|
173
|
+
color: string;
|
174
|
+
isExclusive: boolean;
|
181
175
|
}>;
|
182
|
-
|
183
|
-
|
184
|
-
|
176
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
177
|
+
id: string;
|
178
|
+
name: string;
|
179
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
180
|
+
group: {
|
185
181
|
id: string;
|
186
|
-
|
187
|
-
|
188
|
-
id: string;
|
189
|
-
color: string;
|
190
|
-
isExclusive: boolean;
|
191
|
-
};
|
182
|
+
color: string;
|
183
|
+
isExclusive: boolean;
|
192
184
|
};
|
193
|
-
active: boolean;
|
194
185
|
}, {
|
195
|
-
|
186
|
+
id: string;
|
187
|
+
name: string;
|
188
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
189
|
+
group: {
|
196
190
|
id: string;
|
197
|
-
|
198
|
-
|
199
|
-
id: string;
|
200
|
-
color: string;
|
201
|
-
isExclusive: boolean;
|
202
|
-
};
|
191
|
+
color: string;
|
192
|
+
isExclusive: boolean;
|
203
193
|
};
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
194
|
+
}>, "many">;
|
195
|
+
tags: z.ZodArray<z.ZodObject<{
|
196
|
+
id: z.ZodString;
|
197
|
+
name: z.ZodString;
|
198
|
+
groupId: z.ZodString;
|
199
|
+
type: z.ZodNativeEnum<{
|
200
|
+
PROFILE: "PROFILE";
|
201
|
+
EVENT: "EVENT";
|
202
|
+
PARTICIPANT: "PARTICIPANT";
|
203
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
204
|
+
}>;
|
205
|
+
created_at: z.ZodString;
|
206
|
+
updated_at: z.ZodString;
|
207
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
208
|
+
id: string;
|
209
|
+
name: string;
|
210
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
211
|
+
created_at: string;
|
212
|
+
updated_at: string;
|
213
|
+
groupId: string;
|
214
|
+
}, {
|
215
|
+
id: string;
|
216
|
+
name: string;
|
217
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
218
|
+
created_at: string;
|
219
|
+
updated_at: string;
|
220
|
+
groupId: string;
|
221
|
+
}>, "many">;
|
222
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
209
223
|
id: string;
|
210
224
|
username: string;
|
211
225
|
role: "USER" | "ADMIN";
|
226
|
+
isGlobalFilterActive: boolean;
|
227
|
+
fcmToken: string[];
|
212
228
|
created_at: string;
|
213
229
|
updated_at: string;
|
214
230
|
globalFilter: {
|
215
|
-
|
231
|
+
id: string;
|
232
|
+
name: string;
|
233
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
234
|
+
group: {
|
216
235
|
id: string;
|
217
|
-
|
218
|
-
|
219
|
-
id: string;
|
220
|
-
color: string;
|
221
|
-
isExclusive: boolean;
|
222
|
-
};
|
236
|
+
color: string;
|
237
|
+
isExclusive: boolean;
|
223
238
|
};
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
239
|
+
}[];
|
240
|
+
tags: {
|
241
|
+
id: string;
|
242
|
+
name: string;
|
243
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
244
|
+
created_at: string;
|
245
|
+
updated_at: string;
|
246
|
+
groupId: string;
|
247
|
+
}[];
|
228
248
|
}, {
|
229
249
|
id: string;
|
230
250
|
username: string;
|
@@ -232,17 +252,23 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
232
252
|
created_at: string;
|
233
253
|
updated_at: string;
|
234
254
|
globalFilter: {
|
235
|
-
|
255
|
+
id: string;
|
256
|
+
name: string;
|
257
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
258
|
+
group: {
|
236
259
|
id: string;
|
237
|
-
|
238
|
-
|
239
|
-
id: string;
|
240
|
-
color: string;
|
241
|
-
isExclusive: boolean;
|
242
|
-
};
|
260
|
+
color: string;
|
261
|
+
isExclusive: boolean;
|
243
262
|
};
|
244
|
-
|
245
|
-
|
263
|
+
}[];
|
264
|
+
tags: {
|
265
|
+
id: string;
|
266
|
+
name: string;
|
267
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
268
|
+
created_at: string;
|
269
|
+
updated_at: string;
|
270
|
+
groupId: string;
|
271
|
+
}[];
|
246
272
|
isGlobalFilterActive?: boolean | undefined;
|
247
273
|
fcmToken?: string[] | undefined;
|
248
274
|
}>>;
|
@@ -1,12 +1,35 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
6
|
exports.GetMeResponseDto = exports.getMeResponseSchema = void 0;
|
7
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
9
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
10
|
+
const zod_1 = __importDefault(require("zod"));
|
4
11
|
const account_dto_1 = require("./account.dto");
|
5
|
-
|
6
|
-
|
12
|
+
exports.getMeResponseSchema = account_dto_1.accountSchema
|
13
|
+
.omit({
|
7
14
|
password: true,
|
8
|
-
})
|
9
|
-
|
15
|
+
})
|
16
|
+
.merge(zod_1.default.object({
|
17
|
+
globalFilter: zod_1.default.array(tag_dto_1.tagSchema
|
18
|
+
.pick({
|
19
|
+
id: true,
|
20
|
+
name: true,
|
21
|
+
type: true,
|
22
|
+
})
|
23
|
+
.merge(zod_1.default.object({
|
24
|
+
group: tag_group_dto_1.tagGroupSchema.pick({
|
25
|
+
id: true,
|
26
|
+
color: true,
|
27
|
+
isExclusive: true,
|
28
|
+
}),
|
29
|
+
}))),
|
30
|
+
tags: zod_1.default.array(tag_dto_1.tagSchema),
|
31
|
+
}));
|
32
|
+
class GetMeResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getMeResponseSchema) {
|
10
33
|
}
|
11
34
|
exports.GetMeResponseDto = GetMeResponseDto;
|
12
35
|
//# sourceMappingURL=get-me.dto.js.map
|