@zyacreatives/shared 1.2.9 → 1.3.1
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schemas/discipline.d.ts +1 -1
- package/dist/schemas/discipline.js +2 -2
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/types/discipline.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schemas/discipline.ts +1 -1
- package/src/schemas/index.ts +1 -0
- package/src/types/discipline.ts +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./types/index"), exports);
|
|
18
18
|
__exportStar(require("./constants"), exports);
|
|
19
19
|
__exportStar(require("./schemas/index"), exports);
|
|
20
|
+
__exportStar(require("./utils/slugify"), exports);
|
|
@@ -16,7 +16,7 @@ export declare const CreateDisciplinesInputSchema: z.ZodObject<{
|
|
|
16
16
|
export declare const SlugSchema: z.ZodObject<{
|
|
17
17
|
slug: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const GetDisciplinesQuerySchema: z.ZodObject<{
|
|
20
20
|
withTags: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>>;
|
|
21
21
|
getDefault: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>>;
|
|
22
22
|
slugs: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetDisciplinesOutputSchema = exports.CreateDisciplinesOutputSchema = exports.
|
|
3
|
+
exports.GetDisciplinesOutputSchema = exports.CreateDisciplinesOutputSchema = exports.GetDisciplinesQuerySchema = exports.SlugSchema = exports.CreateDisciplinesInputSchema = exports.DisciplineUpdateOutputEntitySchema = exports.DisciplineEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
exports.DisciplineEntitySchema = zod_openapi_1.z
|
|
6
6
|
.object({
|
|
@@ -57,7 +57,7 @@ exports.SlugSchema = zod_openapi_1.z.object({
|
|
|
57
57
|
example: "mathematics",
|
|
58
58
|
}),
|
|
59
59
|
});
|
|
60
|
-
exports.
|
|
60
|
+
exports.GetDisciplinesQuerySchema = zod_openapi_1.z
|
|
61
61
|
.object({
|
|
62
62
|
withTags: zod_openapi_1.z
|
|
63
63
|
.union([zod_openapi_1.z.literal("true"), zod_openapi_1.z.literal("false")])
|
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { CreateDisciplinesInputSchema, CreateDisciplinesOutputSchema, DisciplineEntitySchema, DisciplineUpdateOutputEntitySchema,
|
|
2
|
+
import { CreateDisciplinesInputSchema, CreateDisciplinesOutputSchema, DisciplineEntitySchema, DisciplineUpdateOutputEntitySchema, GetDisciplinesQuerySchema, GetDisciplinesOutputSchema, SlugSchema } from "../schemas/discipline";
|
|
3
3
|
export type DisciplineEntity = z.infer<typeof DisciplineEntitySchema>;
|
|
4
4
|
export type DisciplineUpdateOutputEntity = z.infer<typeof DisciplineUpdateOutputEntitySchema>;
|
|
5
5
|
export type CreateDisciplinesInput = z.infer<typeof CreateDisciplinesInputSchema>;
|
|
6
6
|
export type SlugInput = z.infer<typeof SlugSchema>;
|
|
7
|
-
export type GetMultipleDisciplinesQuery = z.infer<typeof
|
|
7
|
+
export type GetMultipleDisciplinesQuery = z.infer<typeof GetDisciplinesQuerySchema>;
|
|
8
8
|
export type DeleteDisciplineInput = SlugInput;
|
|
9
9
|
export type DeleteDisciplineOutput = SlugInput;
|
|
10
10
|
export type CreateDisciplinesOutput = z.infer<typeof CreateDisciplinesOutputSchema>;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/schemas/index.ts
CHANGED
package/src/types/discipline.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CreateDisciplinesOutputSchema,
|
|
5
5
|
DisciplineEntitySchema,
|
|
6
6
|
DisciplineUpdateOutputEntitySchema,
|
|
7
|
-
|
|
7
|
+
GetDisciplinesQuerySchema,
|
|
8
8
|
GetDisciplinesOutputSchema,
|
|
9
9
|
SlugSchema,
|
|
10
10
|
} from "../schemas/discipline";
|
|
@@ -22,7 +22,7 @@ export type CreateDisciplinesInput = z.infer<
|
|
|
22
22
|
export type SlugInput = z.infer<typeof SlugSchema>;
|
|
23
23
|
|
|
24
24
|
export type GetMultipleDisciplinesQuery = z.infer<
|
|
25
|
-
typeof
|
|
25
|
+
typeof GetDisciplinesQuerySchema
|
|
26
26
|
>;
|
|
27
27
|
|
|
28
28
|
export type DeleteDisciplineInput = SlugInput;
|