expo-backend-types 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +256 -0
  2. package/dist/src/account/dto/account.dto.js +53 -0
  3. package/dist/src/account/dto/create-account.dto.d.ts +381 -0
  4. package/dist/src/account/dto/create-account.dto.js +23 -0
  5. package/dist/src/account/dto/get-global-filter.dto.d.ts +154 -0
  6. package/dist/src/account/dto/get-global-filter.dto.js +30 -0
  7. package/dist/src/account/dto/get-me.dto.d.ts +251 -0
  8. package/dist/src/account/dto/get-me.dto.js +12 -0
  9. package/dist/src/account/dto/update-global-filter.dto.d.ts +208 -0
  10. package/dist/src/account/dto/update-global-filter.dto.js +29 -0
  11. package/dist/src/account/exports.d.ts +5 -0
  12. package/dist/src/account/exports.js +22 -0
  13. package/dist/src/auth/dto/login.dto.d.ts +416 -24
  14. package/dist/src/auth/dto/login.dto.js +3 -3
  15. package/dist/src/auth/exports.d.ts +0 -1
  16. package/dist/src/auth/exports.js +0 -1
  17. package/dist/src/comment/dto/comment.dto.d.ts +66 -0
  18. package/dist/src/comment/dto/comment.dto.js +26 -0
  19. package/dist/src/comment/exports.d.ts +1 -0
  20. package/dist/src/comment/exports.js +18 -0
  21. package/dist/src/event/dto/event.dto.d.ts +41 -0
  22. package/dist/src/event/dto/event.dto.js +33 -0
  23. package/dist/src/event/exports.d.ts +1 -0
  24. package/dist/src/{cuenta → event}/exports.js +1 -1
  25. package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
  26. package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
  27. package/dist/src/exports.d.ts +5 -1
  28. package/dist/src/exports.js +5 -1
  29. package/dist/src/i18n/es.json +125 -0
  30. package/dist/src/i18n/translate.d.ts +8 -0
  31. package/dist/src/i18n/translate.js +21 -0
  32. package/dist/src/i18n/translate.js.map +1 -0
  33. package/dist/src/tag/dto/create-tag.dto.d.ts +89 -0
  34. package/dist/src/tag/dto/create-tag.dto.js +20 -0
  35. package/dist/src/tag/dto/delete-tag.dto.d.ts +57 -0
  36. package/dist/src/tag/dto/delete-tag.dto.js +10 -0
  37. package/dist/src/tag/dto/find-all-grouped-tag.dto.d.ts +282 -0
  38. package/dist/src/tag/dto/find-all-grouped-tag.dto.js +33 -0
  39. package/dist/src/tag/dto/find-all-tag.dto.d.ts +208 -0
  40. package/dist/src/tag/dto/find-all-tag.dto.js +19 -0
  41. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +208 -0
  42. package/dist/src/tag/dto/find-by-group-tag.dto.js +19 -0
  43. package/dist/src/tag/dto/find-one-tag.dto.d.ts +136 -0
  44. package/dist/src/tag/dto/find-one-tag.dto.js +17 -0
  45. package/dist/src/tag/dto/tag.dto.d.ts +58 -0
  46. package/dist/src/tag/dto/tag.dto.js +30 -0
  47. package/dist/src/tag/dto/update-tag.dto.d.ts +79 -0
  48. package/dist/src/tag/dto/update-tag.dto.js +19 -0
  49. package/dist/src/tag/exports.d.ts +8 -0
  50. package/dist/src/tag/exports.js +25 -0
  51. package/dist/src/tag-group/dto/tag-group.dto.d.ts +48 -0
  52. package/dist/src/tag-group/dto/tag-group.dto.js +28 -0
  53. package/dist/src/tag-group/exports.d.ts +1 -0
  54. package/dist/src/tag-group/exports.js +18 -0
  55. package/dist/types/index.d.ts +1 -1
  56. package/dist/types/index.js +1 -1
  57. package/dist/types/index.js.map +1 -1
  58. package/dist/types/prisma-schema/edge.js +106 -64
  59. package/dist/types/prisma-schema/index-browser.js +103 -61
  60. package/dist/types/prisma-schema/index.d.ts +11442 -6088
  61. package/dist/types/prisma-schema/index.js +106 -64
  62. package/dist/types/prisma-schema/package.json +1 -1
  63. package/dist/types/prisma-schema/schema.prisma +175 -103
  64. package/dist/types/prisma-schema/wasm.js +103 -61
  65. package/dist/types/schema.d.ts +539 -26
  66. package/package.json +11 -7
  67. package/dist/src/auth/dto/register.dto.d.ts +0 -73
  68. package/dist/src/auth/dto/register.dto.js +0 -20
  69. package/dist/src/cuenta/dto/cuenta.dto.d.ts +0 -60
  70. package/dist/src/cuenta/dto/cuenta.dto.js +0 -31
  71. package/dist/src/cuenta/exports.d.ts +0 -1
@@ -0,0 +1,208 @@
1
+ import z from 'zod';
2
+ export declare const findByGroupTagResponseDto: z.ZodObject<{
3
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ groupId: z.ZodString;
7
+ type: z.ZodNativeEnum<{
8
+ PROFILE: "PROFILE";
9
+ EVENT: "EVENT";
10
+ PARTICIPANT: "PARTICIPANT";
11
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
12
+ }>;
13
+ created_at: z.ZodDate;
14
+ updated_at: z.ZodDate;
15
+ }, {
16
+ group: z.ZodObject<{
17
+ id: z.ZodString;
18
+ name: z.ZodString;
19
+ color: z.ZodString;
20
+ isExclusive: z.ZodBoolean;
21
+ created_at: z.ZodDate;
22
+ updated_at: z.ZodDate;
23
+ }, "strip", z.ZodTypeAny, {
24
+ id: string;
25
+ name: string;
26
+ color: string;
27
+ isExclusive: boolean;
28
+ created_at: Date;
29
+ updated_at: Date;
30
+ }, {
31
+ id: string;
32
+ name: string;
33
+ color: string;
34
+ isExclusive: boolean;
35
+ created_at: Date;
36
+ updated_at: Date;
37
+ }>;
38
+ }>, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ name: string;
41
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
42
+ created_at: Date;
43
+ updated_at: Date;
44
+ groupId: string;
45
+ group: {
46
+ id: string;
47
+ name: string;
48
+ color: string;
49
+ isExclusive: boolean;
50
+ created_at: Date;
51
+ updated_at: Date;
52
+ };
53
+ }, {
54
+ id: string;
55
+ name: string;
56
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
57
+ created_at: Date;
58
+ updated_at: Date;
59
+ groupId: string;
60
+ group: {
61
+ id: string;
62
+ name: string;
63
+ color: string;
64
+ isExclusive: boolean;
65
+ created_at: Date;
66
+ updated_at: Date;
67
+ };
68
+ }>, "many">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ tags: {
71
+ id: string;
72
+ name: string;
73
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
74
+ created_at: Date;
75
+ updated_at: Date;
76
+ groupId: string;
77
+ group: {
78
+ id: string;
79
+ name: string;
80
+ color: string;
81
+ isExclusive: boolean;
82
+ created_at: Date;
83
+ updated_at: Date;
84
+ };
85
+ }[];
86
+ }, {
87
+ tags: {
88
+ id: string;
89
+ name: string;
90
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
91
+ created_at: Date;
92
+ updated_at: Date;
93
+ groupId: string;
94
+ group: {
95
+ id: string;
96
+ name: string;
97
+ color: string;
98
+ isExclusive: boolean;
99
+ created_at: Date;
100
+ updated_at: Date;
101
+ };
102
+ }[];
103
+ }>;
104
+ declare const FindByGroupTagResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
105
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
106
+ id: z.ZodString;
107
+ name: z.ZodString;
108
+ groupId: z.ZodString;
109
+ type: z.ZodNativeEnum<{
110
+ PROFILE: "PROFILE";
111
+ EVENT: "EVENT";
112
+ PARTICIPANT: "PARTICIPANT";
113
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
114
+ }>;
115
+ created_at: z.ZodDate;
116
+ updated_at: z.ZodDate;
117
+ }, {
118
+ group: z.ZodObject<{
119
+ id: z.ZodString;
120
+ name: z.ZodString;
121
+ color: z.ZodString;
122
+ isExclusive: z.ZodBoolean;
123
+ created_at: z.ZodDate;
124
+ updated_at: z.ZodDate;
125
+ }, "strip", z.ZodTypeAny, {
126
+ id: string;
127
+ name: string;
128
+ color: string;
129
+ isExclusive: boolean;
130
+ created_at: Date;
131
+ updated_at: Date;
132
+ }, {
133
+ id: string;
134
+ name: string;
135
+ color: string;
136
+ isExclusive: boolean;
137
+ created_at: Date;
138
+ updated_at: Date;
139
+ }>;
140
+ }>, "strip", z.ZodTypeAny, {
141
+ id: string;
142
+ name: string;
143
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
144
+ created_at: Date;
145
+ updated_at: Date;
146
+ groupId: string;
147
+ group: {
148
+ id: string;
149
+ name: string;
150
+ color: string;
151
+ isExclusive: boolean;
152
+ created_at: Date;
153
+ updated_at: Date;
154
+ };
155
+ }, {
156
+ id: string;
157
+ name: string;
158
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
159
+ created_at: Date;
160
+ updated_at: Date;
161
+ groupId: string;
162
+ group: {
163
+ id: string;
164
+ name: string;
165
+ color: string;
166
+ isExclusive: boolean;
167
+ created_at: Date;
168
+ updated_at: Date;
169
+ };
170
+ }>, "many">;
171
+ }, "strip", z.ZodTypeAny, {
172
+ tags: {
173
+ id: string;
174
+ name: string;
175
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
176
+ created_at: Date;
177
+ updated_at: Date;
178
+ groupId: string;
179
+ group: {
180
+ id: string;
181
+ name: string;
182
+ color: string;
183
+ isExclusive: boolean;
184
+ created_at: Date;
185
+ updated_at: Date;
186
+ };
187
+ }[];
188
+ }, {
189
+ tags: {
190
+ id: string;
191
+ name: string;
192
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
193
+ created_at: Date;
194
+ updated_at: Date;
195
+ groupId: string;
196
+ group: {
197
+ id: string;
198
+ name: string;
199
+ color: string;
200
+ isExclusive: boolean;
201
+ created_at: Date;
202
+ updated_at: Date;
203
+ };
204
+ }[];
205
+ }>>;
206
+ export declare class FindByGroupTagResponseDto extends FindByGroupTagResponseDto_base {
207
+ }
208
+ export {};
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FindByGroupTagResponseDto = exports.findByGroupTagResponseDto = void 0;
7
+ const tag_dto_1 = require("./tag.dto");
8
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
9
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.findByGroupTagResponseDto = zod_1.default.object({
12
+ tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
13
+ group: tag_group_dto_1.tagGroupSchema,
14
+ }))),
15
+ });
16
+ class FindByGroupTagResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.findByGroupTagResponseDto) {
17
+ }
18
+ exports.FindByGroupTagResponseDto = FindByGroupTagResponseDto;
19
+ //# sourceMappingURL=find-by-group-tag.dto.js.map
@@ -0,0 +1,136 @@
1
+ import z from 'zod';
2
+ export declare const findOneTagResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ groupId: z.ZodString;
6
+ type: z.ZodNativeEnum<{
7
+ PROFILE: "PROFILE";
8
+ EVENT: "EVENT";
9
+ PARTICIPANT: "PARTICIPANT";
10
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
11
+ }>;
12
+ created_at: z.ZodDate;
13
+ updated_at: z.ZodDate;
14
+ }, {
15
+ group: z.ZodObject<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ color: z.ZodString;
19
+ isExclusive: z.ZodBoolean;
20
+ created_at: z.ZodDate;
21
+ updated_at: z.ZodDate;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ name: string;
25
+ color: string;
26
+ isExclusive: boolean;
27
+ created_at: Date;
28
+ updated_at: Date;
29
+ }, {
30
+ id: string;
31
+ name: string;
32
+ color: string;
33
+ isExclusive: boolean;
34
+ created_at: Date;
35
+ updated_at: Date;
36
+ }>;
37
+ }>, "strip", z.ZodTypeAny, {
38
+ id: string;
39
+ name: string;
40
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
41
+ created_at: Date;
42
+ updated_at: Date;
43
+ groupId: string;
44
+ group: {
45
+ id: string;
46
+ name: string;
47
+ color: string;
48
+ isExclusive: boolean;
49
+ created_at: Date;
50
+ updated_at: Date;
51
+ };
52
+ }, {
53
+ id: string;
54
+ name: string;
55
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
56
+ created_at: Date;
57
+ updated_at: Date;
58
+ groupId: string;
59
+ group: {
60
+ id: string;
61
+ name: string;
62
+ color: string;
63
+ isExclusive: boolean;
64
+ created_at: Date;
65
+ updated_at: Date;
66
+ };
67
+ }>;
68
+ declare const FindOneTagResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<z.objectUtil.extendShape<{
69
+ id: z.ZodString;
70
+ name: z.ZodString;
71
+ groupId: z.ZodString;
72
+ type: z.ZodNativeEnum<{
73
+ PROFILE: "PROFILE";
74
+ EVENT: "EVENT";
75
+ PARTICIPANT: "PARTICIPANT";
76
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
77
+ }>;
78
+ created_at: z.ZodDate;
79
+ updated_at: z.ZodDate;
80
+ }, {
81
+ group: z.ZodObject<{
82
+ id: z.ZodString;
83
+ name: z.ZodString;
84
+ color: z.ZodString;
85
+ isExclusive: z.ZodBoolean;
86
+ created_at: z.ZodDate;
87
+ updated_at: z.ZodDate;
88
+ }, "strip", z.ZodTypeAny, {
89
+ id: string;
90
+ name: string;
91
+ color: string;
92
+ isExclusive: boolean;
93
+ created_at: Date;
94
+ updated_at: Date;
95
+ }, {
96
+ id: string;
97
+ name: string;
98
+ color: string;
99
+ isExclusive: boolean;
100
+ created_at: Date;
101
+ updated_at: Date;
102
+ }>;
103
+ }>, "strip", z.ZodTypeAny, {
104
+ id: string;
105
+ name: string;
106
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
107
+ created_at: Date;
108
+ updated_at: Date;
109
+ groupId: string;
110
+ group: {
111
+ id: string;
112
+ name: string;
113
+ color: string;
114
+ isExclusive: boolean;
115
+ created_at: Date;
116
+ updated_at: Date;
117
+ };
118
+ }, {
119
+ id: string;
120
+ name: string;
121
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
122
+ created_at: Date;
123
+ updated_at: Date;
124
+ groupId: string;
125
+ group: {
126
+ id: string;
127
+ name: string;
128
+ color: string;
129
+ isExclusive: boolean;
130
+ created_at: Date;
131
+ updated_at: Date;
132
+ };
133
+ }>>;
134
+ export declare class FindOneTagResponseDto extends FindOneTagResponseDto_base {
135
+ }
136
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FindOneTagResponseDto = exports.findOneTagResponseSchema = void 0;
7
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
8
+ const tag_dto_1 = require("./tag.dto");
9
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.findOneTagResponseSchema = tag_dto_1.tagSchema.merge(zod_1.default.object({
12
+ group: tag_group_dto_1.tagGroupSchema,
13
+ }));
14
+ class FindOneTagResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.findOneTagResponseSchema) {
15
+ }
16
+ exports.FindOneTagResponseDto = FindOneTagResponseDto;
17
+ //# sourceMappingURL=find-one-tag.dto.js.map
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ export declare const tagSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ groupId: z.ZodString;
6
+ type: z.ZodNativeEnum<{
7
+ PROFILE: "PROFILE";
8
+ EVENT: "EVENT";
9
+ PARTICIPANT: "PARTICIPANT";
10
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
11
+ }>;
12
+ created_at: z.ZodDate;
13
+ updated_at: z.ZodDate;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ name: string;
17
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ groupId: string;
21
+ }, {
22
+ id: string;
23
+ name: string;
24
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ groupId: string;
28
+ }>;
29
+ declare const TagDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
30
+ id: z.ZodString;
31
+ name: z.ZodString;
32
+ groupId: z.ZodString;
33
+ type: z.ZodNativeEnum<{
34
+ PROFILE: "PROFILE";
35
+ EVENT: "EVENT";
36
+ PARTICIPANT: "PARTICIPANT";
37
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
38
+ }>;
39
+ created_at: z.ZodDate;
40
+ updated_at: z.ZodDate;
41
+ }, "strip", z.ZodTypeAny, {
42
+ id: string;
43
+ name: string;
44
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
45
+ created_at: Date;
46
+ updated_at: Date;
47
+ groupId: string;
48
+ }, {
49
+ id: string;
50
+ name: string;
51
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
52
+ created_at: Date;
53
+ updated_at: Date;
54
+ groupId: string;
55
+ }>>;
56
+ export declare class TagDto extends TagDto_base {
57
+ }
58
+ export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagDto = exports.tagSchema = void 0;
4
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
5
+ const translate_1 = require("../../i18n/translate");
6
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
7
+ const zod_1 = require("zod");
8
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
9
+ exports.tagSchema = zod_1.z.object({
10
+ id: zod_1.z.string().uuid({
11
+ message: (0, translate_1.translate)('model.tag.id.uuid'),
12
+ }),
13
+ name: zod_1.z
14
+ .string({
15
+ required_error: (0, translate_1.translate)('model.tag.name.required'),
16
+ })
17
+ .min(1, {
18
+ message: (0, translate_1.translate)('model.tag.name.min'),
19
+ }),
20
+ groupId: tag_group_dto_1.tagGroupSchema.shape.id,
21
+ type: zod_1.z.nativeEnum(prisma_schema_1.TagType, {
22
+ message: (0, translate_1.translate)('model.tag.type.invalid'),
23
+ }),
24
+ created_at: zod_1.z.date(),
25
+ updated_at: zod_1.z.date(),
26
+ });
27
+ class TagDto extends (0, zod_nestjs_1.createZodDto)(exports.tagSchema) {
28
+ }
29
+ exports.TagDto = TagDto;
30
+ //# sourceMappingURL=tag.dto.js.map
@@ -0,0 +1,79 @@
1
+ export declare const updateTagSchema: import("zod").ZodObject<{
2
+ name: import("zod").ZodOptional<import("zod").ZodString>;
3
+ groupId: import("zod").ZodOptional<import("zod").ZodString>;
4
+ }, "strip", import("zod").ZodTypeAny, {
5
+ name?: string | undefined;
6
+ groupId?: string | undefined;
7
+ }, {
8
+ name?: string | undefined;
9
+ groupId?: string | undefined;
10
+ }>;
11
+ declare const UpdateTagDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
12
+ name: import("zod").ZodOptional<import("zod").ZodString>;
13
+ groupId: import("zod").ZodOptional<import("zod").ZodString>;
14
+ }, "strip", import("zod").ZodTypeAny, {
15
+ name?: string | undefined;
16
+ groupId?: string | undefined;
17
+ }, {
18
+ name?: string | undefined;
19
+ groupId?: string | undefined;
20
+ }>>;
21
+ export declare class UpdateTagDto extends UpdateTagDto_base {
22
+ }
23
+ export declare const updateTagResponseSchema: import("zod").ZodObject<{
24
+ id: import("zod").ZodString;
25
+ name: import("zod").ZodString;
26
+ groupId: import("zod").ZodString;
27
+ type: import("zod").ZodNativeEnum<{
28
+ PROFILE: "PROFILE";
29
+ EVENT: "EVENT";
30
+ PARTICIPANT: "PARTICIPANT";
31
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
32
+ }>;
33
+ created_at: import("zod").ZodDate;
34
+ updated_at: import("zod").ZodDate;
35
+ }, "strip", import("zod").ZodTypeAny, {
36
+ id: string;
37
+ name: string;
38
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
39
+ created_at: Date;
40
+ updated_at: Date;
41
+ groupId: string;
42
+ }, {
43
+ id: string;
44
+ name: string;
45
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
46
+ created_at: Date;
47
+ updated_at: Date;
48
+ groupId: string;
49
+ }>;
50
+ declare const UpdateTagResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
51
+ id: import("zod").ZodString;
52
+ name: import("zod").ZodString;
53
+ groupId: import("zod").ZodString;
54
+ type: import("zod").ZodNativeEnum<{
55
+ PROFILE: "PROFILE";
56
+ EVENT: "EVENT";
57
+ PARTICIPANT: "PARTICIPANT";
58
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
59
+ }>;
60
+ created_at: import("zod").ZodDate;
61
+ updated_at: import("zod").ZodDate;
62
+ }, "strip", import("zod").ZodTypeAny, {
63
+ id: string;
64
+ name: string;
65
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
66
+ created_at: Date;
67
+ updated_at: Date;
68
+ groupId: string;
69
+ }, {
70
+ id: string;
71
+ name: string;
72
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
73
+ created_at: Date;
74
+ updated_at: Date;
75
+ groupId: string;
76
+ }>>;
77
+ export declare class UpdateTagResponseDto extends UpdateTagResponseDto_base {
78
+ }
79
+ export {};
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTagResponseDto = exports.updateTagResponseSchema = exports.UpdateTagDto = exports.updateTagSchema = void 0;
4
+ const tag_dto_1 = require("./tag.dto");
5
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
+ exports.updateTagSchema = tag_dto_1.tagSchema
7
+ .pick({
8
+ name: true,
9
+ groupId: true,
10
+ })
11
+ .partial();
12
+ class UpdateTagDto extends (0, zod_nestjs_1.createZodDto)(exports.updateTagSchema) {
13
+ }
14
+ exports.UpdateTagDto = UpdateTagDto;
15
+ exports.updateTagResponseSchema = tag_dto_1.tagSchema;
16
+ class UpdateTagResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.updateTagResponseSchema) {
17
+ }
18
+ exports.UpdateTagResponseDto = UpdateTagResponseDto;
19
+ //# sourceMappingURL=update-tag.dto.js.map
@@ -0,0 +1,8 @@
1
+ export * from './dto/create-tag.dto';
2
+ export * from './dto/delete-tag.dto';
3
+ export * from './dto/find-all-tag.dto';
4
+ export * from './dto/find-all-grouped-tag.dto';
5
+ export * from './dto/find-by-group-tag.dto';
6
+ export * from './dto/find-one-tag.dto';
7
+ export * from './dto/tag.dto';
8
+ export * from './dto/update-tag.dto';
@@ -0,0 +1,25 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/create-tag.dto"), exports);
18
+ __exportStar(require("./dto/delete-tag.dto"), exports);
19
+ __exportStar(require("./dto/find-all-tag.dto"), exports);
20
+ __exportStar(require("./dto/find-all-grouped-tag.dto"), exports);
21
+ __exportStar(require("./dto/find-by-group-tag.dto"), exports);
22
+ __exportStar(require("./dto/find-one-tag.dto"), exports);
23
+ __exportStar(require("./dto/tag.dto"), exports);
24
+ __exportStar(require("./dto/update-tag.dto"), exports);
25
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export declare const tagGroupSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ color: z.ZodString;
6
+ isExclusive: z.ZodBoolean;
7
+ created_at: z.ZodDate;
8
+ updated_at: z.ZodDate;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ name: string;
12
+ color: string;
13
+ isExclusive: boolean;
14
+ created_at: Date;
15
+ updated_at: Date;
16
+ }, {
17
+ id: string;
18
+ name: string;
19
+ color: string;
20
+ isExclusive: boolean;
21
+ created_at: Date;
22
+ updated_at: Date;
23
+ }>;
24
+ declare const TagGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ color: z.ZodString;
28
+ isExclusive: z.ZodBoolean;
29
+ created_at: z.ZodDate;
30
+ updated_at: z.ZodDate;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id: string;
33
+ name: string;
34
+ color: string;
35
+ isExclusive: boolean;
36
+ created_at: Date;
37
+ updated_at: Date;
38
+ }, {
39
+ id: string;
40
+ name: string;
41
+ color: string;
42
+ isExclusive: boolean;
43
+ created_at: Date;
44
+ updated_at: Date;
45
+ }>>;
46
+ export declare class TagGroupDto extends TagGroupDto_base {
47
+ }
48
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagGroupDto = exports.tagGroupSchema = void 0;
4
+ const translate_1 = require("../../i18n/translate");
5
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
+ const zod_1 = require("zod");
7
+ exports.tagGroupSchema = zod_1.z.object({
8
+ id: zod_1.z.string().uuid({
9
+ message: (0, translate_1.translate)('model.tagGroup.id.uuid'),
10
+ }),
11
+ name: zod_1.z.string().min(1, {
12
+ message: (0, translate_1.translate)('model.tagGroup.name.required'),
13
+ }),
14
+ color: zod_1.z
15
+ .string()
16
+ .length(7)
17
+ .startsWith('#', {
18
+ message: (0, translate_1.translate)('model.tagGroup.color.invalid'),
19
+ })
20
+ .toLowerCase(),
21
+ isExclusive: zod_1.z.boolean(),
22
+ created_at: zod_1.z.date(),
23
+ updated_at: zod_1.z.date(),
24
+ });
25
+ class TagGroupDto extends (0, zod_nestjs_1.createZodDto)(exports.tagGroupSchema) {
26
+ }
27
+ exports.TagGroupDto = TagGroupDto;
28
+ //# sourceMappingURL=tag-group.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/tag-group.dto';