expo-backend-types 0.4.0-EXPO-248-EB-GrupoEtiqueta.17 → 0.4.0-EXPO-212.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/event/dto/event.dto.d.ts +4 -10
- package/dist/src/event/dto/event.dto.js +4 -8
- 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 +1 -0
- package/dist/src/exports.js +1 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
declare const
|
2
|
+
export declare const eventSchema: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
5
|
date: z.ZodString;
|
@@ -7,7 +7,7 @@ declare const eventSchemaBase: z.ZodObject<{
|
|
7
7
|
folderId: z.ZodString;
|
8
8
|
tagAssistedId: z.ZodString;
|
9
9
|
tagConfirmedId: z.ZodString;
|
10
|
-
|
10
|
+
supraEventId: z.ZodOptional<z.ZodString>;
|
11
11
|
created_at: z.ZodString;
|
12
12
|
updated_at: z.ZodString;
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
@@ -20,7 +20,7 @@ declare const eventSchemaBase: z.ZodObject<{
|
|
20
20
|
folderId: string;
|
21
21
|
tagAssistedId: string;
|
22
22
|
tagConfirmedId: string;
|
23
|
-
|
23
|
+
supraEventId?: string | undefined;
|
24
24
|
}, {
|
25
25
|
location: string;
|
26
26
|
id: string;
|
@@ -31,11 +31,5 @@ declare const eventSchemaBase: z.ZodObject<{
|
|
31
31
|
folderId: string;
|
32
32
|
tagAssistedId: string;
|
33
33
|
tagConfirmedId: string;
|
34
|
-
|
34
|
+
supraEventId?: string | undefined;
|
35
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 {};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.eventSchema = void 0;
|
4
|
-
const
|
4
|
+
const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
|
5
5
|
const translate_1 = require("../../i18n/translate");
|
6
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
6
7
|
const zod_1 = require("zod");
|
7
|
-
|
8
|
-
const eventSchemaBase = zod_1.z.object({
|
8
|
+
exports.eventSchema = zod_1.z.object({
|
9
9
|
id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
|
10
10
|
name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
|
11
11
|
date: zod_1.z
|
@@ -17,7 +17,7 @@ const eventSchemaBase = zod_1.z.object({
|
|
17
17
|
folderId: event_folder_dto_1.eventFolderSchema.shape.id,
|
18
18
|
tagAssistedId: tag_dto_1.tagSchema.shape.id,
|
19
19
|
tagConfirmedId: tag_dto_1.tagSchema.shape.id,
|
20
|
-
|
20
|
+
supraEventId: zod_1.z
|
21
21
|
.string()
|
22
22
|
.uuid({
|
23
23
|
message: (0, translate_1.translate)('model.event.id.uuid'),
|
@@ -26,8 +26,4 @@ const eventSchemaBase = zod_1.z.object({
|
|
26
26
|
created_at: zod_1.z.string().datetime(),
|
27
27
|
updated_at: zod_1.z.string().datetime(),
|
28
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
29
|
//# sourceMappingURL=event.dto.js.map
|
@@ -3,12 +3,18 @@ export declare const eventFolderSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
5
|
color: z.ZodString;
|
6
|
+
created_at: z.ZodString;
|
7
|
+
updated_at: z.ZodString;
|
6
8
|
}, "strip", z.ZodTypeAny, {
|
7
9
|
id: string;
|
8
10
|
name: string;
|
9
11
|
color: string;
|
12
|
+
created_at: string;
|
13
|
+
updated_at: string;
|
10
14
|
}, {
|
11
15
|
id: string;
|
12
16
|
name: string;
|
13
17
|
color: string;
|
18
|
+
created_at: string;
|
19
|
+
updated_at: string;
|
14
20
|
}>;
|
@@ -18,5 +18,7 @@ exports.eventFolderSchema = zod_1.default.object({
|
|
18
18
|
message: (0, translate_1.translate)('model.eventFolder.color.invalid'),
|
19
19
|
})
|
20
20
|
.toLowerCase(),
|
21
|
+
created_at: zod_1.default.string().datetime(),
|
22
|
+
updated_at: zod_1.default.string().datetime(),
|
21
23
|
});
|
22
24
|
//# sourceMappingURL=event-folder.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/event-folder.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/event-folder.dto"), exports);
|
18
|
+
//# sourceMappingURL=exports.js.map
|
package/dist/src/exports.d.ts
CHANGED
package/dist/src/exports.js
CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./account/exports"), exports);
|
18
18
|
__exportStar(require("./auth/exports"), exports);
|
19
19
|
__exportStar(require("./comment/exports"), exports);
|
20
|
+
__exportStar(require("./event-folder/exports"), exports);
|
20
21
|
__exportStar(require("./event/exports"), exports);
|
21
22
|
__exportStar(require("./tag-group/exports"), exports);
|
22
23
|
__exportStar(require("./tag/exports"), exports);
|