@zyacreatives/shared 2.0.47 → 2.0.49
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.
|
@@ -3,6 +3,10 @@ export declare const BaseDisciplineEntitySchema: z.ZodObject<{
|
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
+
export declare const TagEntitySchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodInt;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
6
10
|
export declare const DisciplineEntitySchema: z.ZodObject<{
|
|
7
11
|
slug: z.ZodString;
|
|
8
12
|
name: z.ZodString;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SlugInputSchema = exports.GetDisciplinesOutputSchema = exports.GetDisciplinesInputSchema = exports.CreateDisciplinesOutputSchema = exports.CreateDisciplinesInputSchema = exports.DisciplineUpdateOutputSchema = exports.DisciplineEntitySchema = exports.BaseDisciplineEntitySchema = void 0;
|
|
3
|
+
exports.SlugInputSchema = exports.GetDisciplinesOutputSchema = exports.GetDisciplinesInputSchema = exports.CreateDisciplinesOutputSchema = exports.CreateDisciplinesInputSchema = exports.DisciplineUpdateOutputSchema = exports.DisciplineEntitySchema = exports.TagEntitySchema = exports.BaseDisciplineEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
exports.BaseDisciplineEntitySchema = zod_openapi_1.z.object({
|
|
6
6
|
slug: zod_openapi_1.z.string().openapi({ example: "digital-art" }),
|
|
7
7
|
name: zod_openapi_1.z.string().openapi({ example: "Digital Art" }),
|
|
8
8
|
});
|
|
9
|
+
exports.TagEntitySchema = zod_openapi_1.z.object({
|
|
10
|
+
id: zod_openapi_1.z.int(),
|
|
11
|
+
name: zod_openapi_1.z.string()
|
|
12
|
+
});
|
|
9
13
|
exports.DisciplineEntitySchema = exports.BaseDisciplineEntitySchema.extend({
|
|
10
14
|
tags: zod_openapi_1.z
|
|
11
15
|
.array(zod_openapi_1.z.string().openapi({ example: "illustration" }))
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { CreateDisciplinesInputSchema, CreateDisciplinesOutputSchema, DisciplineEntitySchema, DisciplineUpdateOutputSchema, GetDisciplinesInputSchema, GetDisciplinesOutputSchema, SlugInputSchema } from "../schemas/discipline";
|
|
2
|
+
import { BaseDisciplineEntitySchema, CreateDisciplinesInputSchema, CreateDisciplinesOutputSchema, DisciplineEntitySchema, DisciplineUpdateOutputSchema, GetDisciplinesInputSchema, GetDisciplinesOutputSchema, SlugInputSchema, TagEntitySchema } from "../schemas/discipline";
|
|
3
|
+
export type BaseDisciplineEntity = z.infer<typeof BaseDisciplineEntitySchema>;
|
|
3
4
|
export type DisciplineEntity = z.infer<typeof DisciplineEntitySchema>;
|
|
4
5
|
export type DisciplineUpdateOutput = z.infer<typeof DisciplineUpdateOutputSchema>;
|
|
5
6
|
export type CreateDisciplinesInput = z.infer<typeof CreateDisciplinesInputSchema>;
|
|
@@ -7,3 +8,4 @@ export type CreateDisciplinesOutput = z.infer<typeof CreateDisciplinesOutputSche
|
|
|
7
8
|
export type GetDisciplinesInput = z.infer<typeof GetDisciplinesInputSchema>;
|
|
8
9
|
export type GetDisciplinesOutput = z.infer<typeof GetDisciplinesOutputSchema>;
|
|
9
10
|
export type SlugInput = z.infer<typeof SlugInputSchema>;
|
|
11
|
+
export type TagEntity = z.infer<typeof TagEntitySchema>;
|
package/package.json
CHANGED
|
@@ -4,6 +4,12 @@ export const BaseDisciplineEntitySchema = z.object({
|
|
|
4
4
|
slug: z.string().openapi({ example: "digital-art" }),
|
|
5
5
|
name: z.string().openapi({ example: "Digital Art" }),
|
|
6
6
|
});
|
|
7
|
+
|
|
8
|
+
export const TagEntitySchema = z.object({
|
|
9
|
+
id: z.int(),
|
|
10
|
+
name: z.string()
|
|
11
|
+
})
|
|
12
|
+
|
|
7
13
|
export const DisciplineEntitySchema = BaseDisciplineEntitySchema.extend({
|
|
8
14
|
tags: z
|
|
9
15
|
.array(z.string().openapi({ example: "illustration" }))
|
package/src/types/discipline.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import {
|
|
3
|
+
BaseDisciplineEntitySchema,
|
|
3
4
|
CreateDisciplinesInputSchema,
|
|
4
5
|
CreateDisciplinesOutputSchema,
|
|
5
6
|
DisciplineEntitySchema,
|
|
@@ -7,9 +8,12 @@ import {
|
|
|
7
8
|
GetDisciplinesInputSchema,
|
|
8
9
|
GetDisciplinesOutputSchema,
|
|
9
10
|
SlugInputSchema,
|
|
11
|
+
TagEntitySchema,
|
|
10
12
|
} from "../schemas/discipline";
|
|
11
13
|
|
|
14
|
+
export type BaseDisciplineEntity = z.infer<typeof BaseDisciplineEntitySchema>;
|
|
12
15
|
export type DisciplineEntity = z.infer<typeof DisciplineEntitySchema>;
|
|
16
|
+
|
|
13
17
|
export type DisciplineUpdateOutput = z.infer<
|
|
14
18
|
typeof DisciplineUpdateOutputSchema
|
|
15
19
|
>;
|
|
@@ -25,3 +29,4 @@ export type GetDisciplinesInput = z.infer<typeof GetDisciplinesInputSchema>;
|
|
|
25
29
|
export type GetDisciplinesOutput = z.infer<typeof GetDisciplinesOutputSchema>;
|
|
26
30
|
|
|
27
31
|
export type SlugInput = z.infer<typeof SlugInputSchema>;
|
|
32
|
+
export type TagEntity = z.infer<typeof TagEntitySchema>;
|