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.
- package/dist/src/account/dto/account.dto.d.ts +256 -0
- package/dist/src/account/dto/account.dto.js +53 -0
- package/dist/src/account/dto/create-account.dto.d.ts +381 -0
- package/dist/src/account/dto/create-account.dto.js +23 -0
- package/dist/src/account/dto/get-global-filter.dto.d.ts +154 -0
- package/dist/src/account/dto/get-global-filter.dto.js +30 -0
- package/dist/src/account/dto/get-me.dto.d.ts +251 -0
- package/dist/src/account/dto/get-me.dto.js +12 -0
- package/dist/src/account/dto/update-global-filter.dto.d.ts +208 -0
- package/dist/src/account/dto/update-global-filter.dto.js +29 -0
- package/dist/src/account/exports.d.ts +5 -0
- package/dist/src/account/exports.js +22 -0
- package/dist/src/auth/dto/login.dto.d.ts +416 -24
- package/dist/src/auth/dto/login.dto.js +3 -3
- package/dist/src/auth/exports.d.ts +0 -1
- package/dist/src/auth/exports.js +0 -1
- package/dist/src/comment/dto/comment.dto.d.ts +66 -0
- package/dist/src/comment/dto/comment.dto.js +26 -0
- package/dist/src/comment/exports.d.ts +1 -0
- package/dist/src/comment/exports.js +18 -0
- package/dist/src/event/dto/event.dto.d.ts +41 -0
- package/dist/src/event/dto/event.dto.js +33 -0
- package/dist/src/event/exports.d.ts +1 -0
- package/dist/src/{cuenta → event}/exports.js +1 -1
- package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
- package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
- package/dist/src/exports.d.ts +5 -1
- package/dist/src/exports.js +5 -1
- package/dist/src/i18n/es.json +125 -0
- package/dist/src/i18n/translate.d.ts +8 -0
- package/dist/src/i18n/translate.js +21 -0
- package/dist/src/i18n/translate.js.map +1 -0
- package/dist/src/tag/dto/create-tag.dto.d.ts +89 -0
- package/dist/src/tag/dto/create-tag.dto.js +20 -0
- package/dist/src/tag/dto/delete-tag.dto.d.ts +57 -0
- package/dist/src/tag/dto/delete-tag.dto.js +10 -0
- package/dist/src/tag/dto/find-all-grouped-tag.dto.d.ts +282 -0
- package/dist/src/tag/dto/find-all-grouped-tag.dto.js +33 -0
- package/dist/src/tag/dto/find-all-tag.dto.d.ts +208 -0
- package/dist/src/tag/dto/find-all-tag.dto.js +19 -0
- package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +208 -0
- package/dist/src/tag/dto/find-by-group-tag.dto.js +19 -0
- package/dist/src/tag/dto/find-one-tag.dto.d.ts +136 -0
- package/dist/src/tag/dto/find-one-tag.dto.js +17 -0
- package/dist/src/tag/dto/tag.dto.d.ts +58 -0
- package/dist/src/tag/dto/tag.dto.js +30 -0
- package/dist/src/tag/dto/update-tag.dto.d.ts +79 -0
- package/dist/src/tag/dto/update-tag.dto.js +19 -0
- package/dist/src/tag/exports.d.ts +8 -0
- package/dist/src/tag/exports.js +25 -0
- package/dist/src/tag-group/dto/tag-group.dto.d.ts +48 -0
- package/dist/src/tag-group/dto/tag-group.dto.js +28 -0
- package/dist/src/tag-group/exports.d.ts +1 -0
- package/dist/src/tag-group/exports.js +18 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/prisma-schema/edge.js +106 -64
- package/dist/types/prisma-schema/index-browser.js +103 -61
- package/dist/types/prisma-schema/index.d.ts +11442 -6088
- package/dist/types/prisma-schema/index.js +106 -64
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +175 -103
- package/dist/types/prisma-schema/wasm.js +103 -61
- package/dist/types/schema.d.ts +539 -26
- package/package.json +11 -7
- package/dist/src/auth/dto/register.dto.d.ts +0 -73
- package/dist/src/auth/dto/register.dto.js +0 -20
- package/dist/src/cuenta/dto/cuenta.dto.d.ts +0 -60
- package/dist/src/cuenta/dto/cuenta.dto.js +0 -31
- package/dist/src/cuenta/exports.d.ts +0 -1
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CommentDto = exports.commentSchema = void 0;
|
4
|
+
const account_dto_1 = require("../../account/dto/account.dto");
|
5
|
+
const translate_1 = require("../../i18n/translate");
|
6
|
+
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
7
|
+
const zod_1 = require("zod");
|
8
|
+
exports.commentSchema = zod_1.z.object({
|
9
|
+
id: zod_1.z.string().uuid({
|
10
|
+
message: (0, translate_1.translate)('model.comment.id.uuid'),
|
11
|
+
}),
|
12
|
+
content: zod_1.z.string().min(1, {
|
13
|
+
message: (0, translate_1.translate)('model.comment.content.min'),
|
14
|
+
}),
|
15
|
+
createdBy: account_dto_1.accountSchema.shape.id,
|
16
|
+
isSolvable: zod_1.z.boolean().default(false),
|
17
|
+
isSolved: zod_1.z.boolean().default(false),
|
18
|
+
solvedAt: zod_1.z.string().datetime().optional(),
|
19
|
+
solvedBy: account_dto_1.accountSchema.shape.id.optional(),
|
20
|
+
created_at: zod_1.z.string().datetime(),
|
21
|
+
updated_at: zod_1.z.string().datetime(),
|
22
|
+
});
|
23
|
+
class CommentDto extends (0, zod_nestjs_1.createZodDto)(exports.commentSchema) {
|
24
|
+
}
|
25
|
+
exports.CommentDto = CommentDto;
|
26
|
+
//# sourceMappingURL=comment.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/comment.dto';
|
@@ -0,0 +1,18 @@
|
|
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/comment.dto"), exports);
|
18
|
+
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
declare const eventSchemaBase: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
date: z.ZodString;
|
6
|
+
location: z.ZodString;
|
7
|
+
folderId: z.ZodString;
|
8
|
+
tagAssistedId: z.ZodString;
|
9
|
+
tagConfirmedId: z.ZodString;
|
10
|
+
eventoPadreId: z.ZodOptional<z.ZodString>;
|
11
|
+
created_at: z.ZodString;
|
12
|
+
updated_at: z.ZodString;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
location: string;
|
15
|
+
id: string;
|
16
|
+
name: string;
|
17
|
+
date: string;
|
18
|
+
created_at: string;
|
19
|
+
updated_at: string;
|
20
|
+
folderId: string;
|
21
|
+
tagAssistedId: string;
|
22
|
+
tagConfirmedId: string;
|
23
|
+
eventoPadreId?: string | undefined;
|
24
|
+
}, {
|
25
|
+
location: string;
|
26
|
+
id: string;
|
27
|
+
name: string;
|
28
|
+
date: string;
|
29
|
+
created_at: string;
|
30
|
+
updated_at: string;
|
31
|
+
folderId: string;
|
32
|
+
tagAssistedId: string;
|
33
|
+
tagConfirmedId: string;
|
34
|
+
eventoPadreId?: string | undefined;
|
35
|
+
}>;
|
36
|
+
type Event = z.infer<typeof eventSchemaBase> & {
|
37
|
+
supraEvent: z.infer<typeof eventSchemaBase>;
|
38
|
+
subEvents: Array<z.infer<typeof eventSchemaBase>>;
|
39
|
+
};
|
40
|
+
export declare const eventSchema: z.ZodType<Event>;
|
41
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.eventSchema = void 0;
|
4
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
5
|
+
const translate_1 = require("../../i18n/translate");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
|
8
|
+
const eventSchemaBase = zod_1.z.object({
|
9
|
+
id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
|
10
|
+
name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
|
11
|
+
date: zod_1.z
|
12
|
+
.string({
|
13
|
+
required_error: (0, translate_1.translate)('model.event.date.required'),
|
14
|
+
})
|
15
|
+
.date((0, translate_1.translate)('model.event.date.invalid')),
|
16
|
+
location: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.location.required')),
|
17
|
+
folderId: event_folder_dto_1.eventFolderSchema.shape.id,
|
18
|
+
tagAssistedId: tag_dto_1.tagSchema.shape.id,
|
19
|
+
tagConfirmedId: tag_dto_1.tagSchema.shape.id,
|
20
|
+
eventoPadreId: zod_1.z
|
21
|
+
.string()
|
22
|
+
.uuid({
|
23
|
+
message: (0, translate_1.translate)('model.event.id.uuid'),
|
24
|
+
})
|
25
|
+
.optional(),
|
26
|
+
created_at: zod_1.z.string().datetime(),
|
27
|
+
updated_at: zod_1.z.string().datetime(),
|
28
|
+
});
|
29
|
+
exports.eventSchema = eventSchemaBase.extend({
|
30
|
+
supraEvent: zod_1.z.lazy(() => exports.eventSchema),
|
31
|
+
subEvents: zod_1.z.array(zod_1.z.lazy(() => eventSchemaBase)),
|
32
|
+
});
|
33
|
+
//# sourceMappingURL=event.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/event.dto';
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/
|
17
|
+
__exportStar(require("./dto/event.dto"), exports);
|
18
18
|
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const eventFolderSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
color: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
color: string;
|
10
|
+
}, {
|
11
|
+
id: string;
|
12
|
+
name: string;
|
13
|
+
color: string;
|
14
|
+
}>;
|
@@ -0,0 +1,22 @@
|
|
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.eventFolderSchema = void 0;
|
7
|
+
const translate_1 = require("../../i18n/translate");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.eventFolderSchema = zod_1.default.object({
|
10
|
+
id: zod_1.default.string().uuid({
|
11
|
+
message: (0, translate_1.translate)('model.eventFolder.id.uuid'),
|
12
|
+
}),
|
13
|
+
name: zod_1.default.string().min(1),
|
14
|
+
color: zod_1.default
|
15
|
+
.string()
|
16
|
+
.length(7)
|
17
|
+
.startsWith('#', {
|
18
|
+
message: (0, translate_1.translate)('model.eventFolder.color.invalid'),
|
19
|
+
})
|
20
|
+
.toLowerCase(),
|
21
|
+
});
|
22
|
+
//# sourceMappingURL=event-folder.dto.js.map
|
package/dist/src/exports.d.ts
CHANGED
package/dist/src/exports.js
CHANGED
@@ -15,5 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./auth/exports"), exports);
|
18
|
-
__exportStar(require("./
|
18
|
+
__exportStar(require("./account/exports"), exports);
|
19
|
+
__exportStar(require("./tag/exports"), exports);
|
20
|
+
__exportStar(require("./comment/exports"), exports);
|
21
|
+
__exportStar(require("./tag-group/exports"), exports);
|
22
|
+
__exportStar(require("./event/exports"), exports);
|
19
23
|
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1,125 @@
|
|
1
|
+
{
|
2
|
+
"model": {
|
3
|
+
"comment": {
|
4
|
+
"id": {
|
5
|
+
"uuid": "El ID debe ser un UUID"
|
6
|
+
},
|
7
|
+
"content": {
|
8
|
+
"min": "El contenido debe tener al menos 1 caracter"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"account": {
|
12
|
+
"id": {
|
13
|
+
"required": "El ID es requerido",
|
14
|
+
"uuid": "El ID debe ser un UUID"
|
15
|
+
},
|
16
|
+
"username": {
|
17
|
+
"required": "El nombre de usuario es requerido"
|
18
|
+
},
|
19
|
+
"email": {
|
20
|
+
"required": "El email es requerido",
|
21
|
+
"email": "El email debe ser un email válido"
|
22
|
+
},
|
23
|
+
"password": {
|
24
|
+
"required": "La contraseña es requerida",
|
25
|
+
"min": "La contraseña debe tener al menos 6 caracteres"
|
26
|
+
},
|
27
|
+
"role": {
|
28
|
+
"required": "El rol es requerido",
|
29
|
+
"invalid": "El rol es inválido"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"tag": {
|
33
|
+
"id": {
|
34
|
+
"uuid": "El ID debe ser un UUID"
|
35
|
+
},
|
36
|
+
"name": {
|
37
|
+
"required": "El nombre es requerido",
|
38
|
+
"min": "El nombre debe tener al menos 1 caracter"
|
39
|
+
},
|
40
|
+
"type": {
|
41
|
+
"invalid": "El tipo de etiqueta es inválido"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"event": {
|
45
|
+
"id": {
|
46
|
+
"uuid": "El ID debe ser un UUID"
|
47
|
+
},
|
48
|
+
"name": {
|
49
|
+
"required": "El nombre es requerido"
|
50
|
+
},
|
51
|
+
"date": {
|
52
|
+
"required": "La fecha es requerida",
|
53
|
+
"invalid": "La fecha debe ser una fecha válida"
|
54
|
+
},
|
55
|
+
"location": {
|
56
|
+
"required": "La ubicación es requerida"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"tagGroup": {
|
60
|
+
"id": {
|
61
|
+
"uuid": "El ID debe ser un UUID"
|
62
|
+
},
|
63
|
+
"name": {
|
64
|
+
"required": "El nombre es requerido"
|
65
|
+
},
|
66
|
+
"color": {
|
67
|
+
"invalid": "El color debe tener el formato hexadecimal (#ABCDEF)"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"eventFolder": {
|
71
|
+
"id": {
|
72
|
+
"uuid": "El ID debe ser un UUID"
|
73
|
+
},
|
74
|
+
"color": {
|
75
|
+
"invalid": "El color debe tener el formato hexadecimal (#ABCDEF)"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"route": {
|
80
|
+
"account": {
|
81
|
+
"create": {
|
82
|
+
"success": "Cuenta creada con éxito",
|
83
|
+
"conflict": "Cuenta ya existente"
|
84
|
+
},
|
85
|
+
"global-filter-patch": {
|
86
|
+
"success": "Filtro base actualizado",
|
87
|
+
"conflict": "Etiquetas Inválidas"
|
88
|
+
},
|
89
|
+
"global-filter-get": {
|
90
|
+
"success": "Filtro base obtenido",
|
91
|
+
"not-found": "Cuenta no encontrada"
|
92
|
+
},
|
93
|
+
"me": {
|
94
|
+
"success": "Cuenta obtenida"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"tag": {
|
98
|
+
"create": {
|
99
|
+
"success": "Etiqueta creada con éxito"
|
100
|
+
},
|
101
|
+
"find-all": {
|
102
|
+
"success": "Etiquetas obtenidas"
|
103
|
+
},
|
104
|
+
"find-one": {
|
105
|
+
"success": "Etiqueta obtenida",
|
106
|
+
"not-found": "Etiqueta no encontrada"
|
107
|
+
},
|
108
|
+
"update": {
|
109
|
+
"success": "Etiqueta actualizada",
|
110
|
+
"not-found": "Etiqueta no encontrada"
|
111
|
+
},
|
112
|
+
"delete": {
|
113
|
+
"success": "Etiqueta eliminada",
|
114
|
+
"not-found": "Etiqueta no encontrada"
|
115
|
+
},
|
116
|
+
"find-by-group": {
|
117
|
+
"success": "Etiquetas obtenidas",
|
118
|
+
"not-found": "Grupo de etiquetas no encontrado"
|
119
|
+
},
|
120
|
+
"find-all-grouped": {
|
121
|
+
"success": "Etiquetas obtenidas"
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { I18n, TranslateOptions } from 'i18n-js';
|
2
|
+
import esJson from '@/i18n/es.json';
|
3
|
+
import { Paths } from '@/shared/errors/dotType';
|
4
|
+
declare const translations: Record<string, typeof esJson>;
|
5
|
+
export declare const i18n: I18n;
|
6
|
+
type Translations = Paths<(typeof translations)['es']>;
|
7
|
+
export declare function translate<Keys extends Translations>(key: Keys extends `${string}.${string}` ? Keys : never, params?: TranslateOptions): string;
|
8
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
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.translate = exports.i18n = void 0;
|
7
|
+
const i18n_js_1 = require("i18n-js");
|
8
|
+
const es_json_1 = __importDefault(require("./es.json"));
|
9
|
+
const translations = {
|
10
|
+
es: es_json_1.default,
|
11
|
+
};
|
12
|
+
exports.i18n = new i18n_js_1.I18n(translations, {
|
13
|
+
defaultLocale: 'es',
|
14
|
+
locale: 'es',
|
15
|
+
missingTranslationPrefix: 'TRANSLATION MISSING: ',
|
16
|
+
});
|
17
|
+
function translate(key, params = {}) {
|
18
|
+
return exports.i18n.t(key, params);
|
19
|
+
}
|
20
|
+
exports.translate = translate;
|
21
|
+
//# sourceMappingURL=translate.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../../../src/i18n/translate.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAwD;AAExD,wDAAoC;AAGpC,MAAM,YAAY,GAAkC;IAClD,EAAE,EAAE,iBAAM;CACX,CAAC;AAEW,QAAA,IAAI,GAAG,IAAI,cAAI,CAAC,YAAY,EAAE;IACzC,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,IAAI;IACZ,wBAAwB,EAAE,uBAAuB;CAClD,CAAC,CAAC;AAIH,SAAgB,SAAS,CACvB,GAAsD,EACtD,SAA2B,EAAE;IAE7B,OAAO,YAAI,CAAC,CAAC,CAAC,GAAY,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AALD,8BAKC"}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
export declare const createTagSchema: import("zod").ZodObject<Pick<{
|
2
|
+
id: import("zod").ZodString;
|
3
|
+
name: import("zod").ZodString;
|
4
|
+
groupId: import("zod").ZodString;
|
5
|
+
type: import("zod").ZodNativeEnum<{
|
6
|
+
PROFILE: "PROFILE";
|
7
|
+
EVENT: "EVENT";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
10
|
+
}>;
|
11
|
+
created_at: import("zod").ZodDate;
|
12
|
+
updated_at: import("zod").ZodDate;
|
13
|
+
}, "name" | "groupId">, "strip", import("zod").ZodTypeAny, {
|
14
|
+
name: string;
|
15
|
+
groupId: string;
|
16
|
+
}, {
|
17
|
+
name: string;
|
18
|
+
groupId: string;
|
19
|
+
}>;
|
20
|
+
declare const CreateTagDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Pick<{
|
21
|
+
id: import("zod").ZodString;
|
22
|
+
name: import("zod").ZodString;
|
23
|
+
groupId: import("zod").ZodString;
|
24
|
+
type: import("zod").ZodNativeEnum<{
|
25
|
+
PROFILE: "PROFILE";
|
26
|
+
EVENT: "EVENT";
|
27
|
+
PARTICIPANT: "PARTICIPANT";
|
28
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
29
|
+
}>;
|
30
|
+
created_at: import("zod").ZodDate;
|
31
|
+
updated_at: import("zod").ZodDate;
|
32
|
+
}, "name" | "groupId">, "strip", import("zod").ZodTypeAny, {
|
33
|
+
name: string;
|
34
|
+
groupId: string;
|
35
|
+
}, {
|
36
|
+
name: string;
|
37
|
+
groupId: string;
|
38
|
+
}>>;
|
39
|
+
export declare class CreateTagDto extends CreateTagDto_base {
|
40
|
+
}
|
41
|
+
export declare const createTagResponseSchema: import("zod").ZodObject<Omit<{
|
42
|
+
id: import("zod").ZodString;
|
43
|
+
name: import("zod").ZodString;
|
44
|
+
groupId: import("zod").ZodString;
|
45
|
+
type: import("zod").ZodNativeEnum<{
|
46
|
+
PROFILE: "PROFILE";
|
47
|
+
EVENT: "EVENT";
|
48
|
+
PARTICIPANT: "PARTICIPANT";
|
49
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
50
|
+
}>;
|
51
|
+
created_at: import("zod").ZodDate;
|
52
|
+
updated_at: import("zod").ZodDate;
|
53
|
+
}, "created_at" | "updated_at">, "strip", import("zod").ZodTypeAny, {
|
54
|
+
id: string;
|
55
|
+
name: string;
|
56
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
57
|
+
groupId: string;
|
58
|
+
}, {
|
59
|
+
id: string;
|
60
|
+
name: string;
|
61
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
62
|
+
groupId: string;
|
63
|
+
}>;
|
64
|
+
declare const CreateTagResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Omit<{
|
65
|
+
id: import("zod").ZodString;
|
66
|
+
name: import("zod").ZodString;
|
67
|
+
groupId: import("zod").ZodString;
|
68
|
+
type: import("zod").ZodNativeEnum<{
|
69
|
+
PROFILE: "PROFILE";
|
70
|
+
EVENT: "EVENT";
|
71
|
+
PARTICIPANT: "PARTICIPANT";
|
72
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
73
|
+
}>;
|
74
|
+
created_at: import("zod").ZodDate;
|
75
|
+
updated_at: import("zod").ZodDate;
|
76
|
+
}, "created_at" | "updated_at">, "strip", import("zod").ZodTypeAny, {
|
77
|
+
id: string;
|
78
|
+
name: string;
|
79
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
80
|
+
groupId: string;
|
81
|
+
}, {
|
82
|
+
id: string;
|
83
|
+
name: string;
|
84
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
85
|
+
groupId: string;
|
86
|
+
}>>;
|
87
|
+
export declare class CreateTagResponseDto extends CreateTagResponseDto_base {
|
88
|
+
}
|
89
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateTagResponseDto = exports.createTagResponseSchema = exports.CreateTagDto = exports.createTagSchema = void 0;
|
4
|
+
const tag_dto_1 = require("./tag.dto");
|
5
|
+
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
6
|
+
exports.createTagSchema = tag_dto_1.tagSchema.pick({
|
7
|
+
name: true,
|
8
|
+
groupId: true,
|
9
|
+
});
|
10
|
+
class CreateTagDto extends (0, zod_nestjs_1.createZodDto)(exports.createTagSchema) {
|
11
|
+
}
|
12
|
+
exports.CreateTagDto = CreateTagDto;
|
13
|
+
exports.createTagResponseSchema = tag_dto_1.tagSchema.omit({
|
14
|
+
created_at: true,
|
15
|
+
updated_at: true,
|
16
|
+
});
|
17
|
+
class CreateTagResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.createTagResponseSchema) {
|
18
|
+
}
|
19
|
+
exports.CreateTagResponseDto = CreateTagResponseDto;
|
20
|
+
//# sourceMappingURL=create-tag.dto.js.map
|
@@ -0,0 +1,57 @@
|
|
1
|
+
export declare const deleteTagResponseSchema: import("zod").ZodObject<{
|
2
|
+
id: import("zod").ZodString;
|
3
|
+
name: import("zod").ZodString;
|
4
|
+
groupId: import("zod").ZodString;
|
5
|
+
type: import("zod").ZodNativeEnum<{
|
6
|
+
PROFILE: "PROFILE";
|
7
|
+
EVENT: "EVENT";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
10
|
+
}>;
|
11
|
+
created_at: import("zod").ZodDate;
|
12
|
+
updated_at: import("zod").ZodDate;
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
14
|
+
id: string;
|
15
|
+
name: string;
|
16
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
17
|
+
created_at: Date;
|
18
|
+
updated_at: Date;
|
19
|
+
groupId: string;
|
20
|
+
}, {
|
21
|
+
id: string;
|
22
|
+
name: string;
|
23
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
24
|
+
created_at: Date;
|
25
|
+
updated_at: Date;
|
26
|
+
groupId: string;
|
27
|
+
}>;
|
28
|
+
declare const DeleteTagResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
29
|
+
id: import("zod").ZodString;
|
30
|
+
name: import("zod").ZodString;
|
31
|
+
groupId: import("zod").ZodString;
|
32
|
+
type: import("zod").ZodNativeEnum<{
|
33
|
+
PROFILE: "PROFILE";
|
34
|
+
EVENT: "EVENT";
|
35
|
+
PARTICIPANT: "PARTICIPANT";
|
36
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
37
|
+
}>;
|
38
|
+
created_at: import("zod").ZodDate;
|
39
|
+
updated_at: import("zod").ZodDate;
|
40
|
+
}, "strip", import("zod").ZodTypeAny, {
|
41
|
+
id: string;
|
42
|
+
name: string;
|
43
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
44
|
+
created_at: Date;
|
45
|
+
updated_at: Date;
|
46
|
+
groupId: string;
|
47
|
+
}, {
|
48
|
+
id: string;
|
49
|
+
name: string;
|
50
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
51
|
+
created_at: Date;
|
52
|
+
updated_at: Date;
|
53
|
+
groupId: string;
|
54
|
+
}>>;
|
55
|
+
export declare class DeleteTagResponseDto extends DeleteTagResponseDto_base {
|
56
|
+
}
|
57
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteTagResponseDto = exports.deleteTagResponseSchema = void 0;
|
4
|
+
const tag_dto_1 = require("./tag.dto");
|
5
|
+
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
6
|
+
exports.deleteTagResponseSchema = tag_dto_1.tagSchema;
|
7
|
+
class DeleteTagResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.deleteTagResponseSchema) {
|
8
|
+
}
|
9
|
+
exports.DeleteTagResponseDto = DeleteTagResponseDto;
|
10
|
+
//# sourceMappingURL=delete-tag.dto.js.map
|