@zyacreatives/shared 1.4.2 → 1.4.4
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.
|
@@ -36,8 +36,8 @@ export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
36
36
|
readonly YEAR_3_5: "3-5 years";
|
|
37
37
|
readonly YEAR_5_PLUS: "5+ years";
|
|
38
38
|
}>>;
|
|
39
|
-
bio: z.
|
|
40
|
-
location: z.
|
|
39
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
40
|
+
location: z.ZodOptional<z.ZodString>;
|
|
41
41
|
disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
package/dist/schemas/creative.js
CHANGED
|
@@ -68,13 +68,11 @@ exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
|
|
|
68
68
|
.string()
|
|
69
69
|
.max(210)
|
|
70
70
|
.optional()
|
|
71
|
-
.default("")
|
|
72
71
|
.openapi({ example: "I am a freelance UI/UX designer." }),
|
|
73
72
|
location: zod_openapi_1.z
|
|
74
73
|
.string()
|
|
75
74
|
.max(100)
|
|
76
75
|
.optional()
|
|
77
|
-
.default("")
|
|
78
76
|
.openapi({ example: "Lagos, Nigeria" }),
|
|
79
77
|
disciplineSlugs: zod_openapi_1.z
|
|
80
78
|
.array(zod_openapi_1.z.string())
|
package/dist/types/creative.d.ts
CHANGED
|
@@ -2,12 +2,8 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
import { CreateCreativeOutputSchema, CreateCreativeProfileInputSchema, CreativeEntitySchema, GetCreativeOutputSchema, GetCreativeParamsSchema, GetCreativeQuerySchema, ListCreativesInputSchema, UpdateCreativeOutputSchema, UpdateCreativeProfileInputSchema } from "../schemas";
|
|
3
3
|
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
4
4
|
export type ListCreativesInput = z.infer<typeof ListCreativesInputSchema>;
|
|
5
|
-
export type CreateCreativeInput = z.infer<typeof CreateCreativeProfileInputSchema
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export type UpdateCreativeInput = z.infer<typeof UpdateCreativeProfileInputSchema> & {
|
|
9
|
-
userId: string;
|
|
10
|
-
};
|
|
5
|
+
export type CreateCreativeInput = z.infer<typeof CreateCreativeProfileInputSchema>;
|
|
6
|
+
export type UpdateCreativeInput = z.infer<typeof UpdateCreativeProfileInputSchema>;
|
|
11
7
|
export type GetCreativeParams = z.infer<typeof GetCreativeParamsSchema>;
|
|
12
8
|
export type GetCreativeQuery = z.infer<typeof GetCreativeQuerySchema>;
|
|
13
9
|
export type CreateCreativeOutput = z.infer<typeof CreateCreativeOutputSchema>;
|
package/package.json
CHANGED
package/src/schemas/creative.ts
CHANGED
|
@@ -80,13 +80,11 @@ export const CreateCreativeProfileInputSchema = z
|
|
|
80
80
|
.string()
|
|
81
81
|
.max(210)
|
|
82
82
|
.optional()
|
|
83
|
-
.default("")
|
|
84
83
|
.openapi({ example: "I am a freelance UI/UX designer." }),
|
|
85
84
|
location: z
|
|
86
85
|
.string()
|
|
87
86
|
.max(100)
|
|
88
87
|
.optional()
|
|
89
|
-
.default("")
|
|
90
88
|
.openapi({ example: "Lagos, Nigeria" }),
|
|
91
89
|
disciplineSlugs: z
|
|
92
90
|
.array(z.string())
|
|
@@ -136,6 +134,6 @@ export const GetCreativeQuerySchema = ProfileIdentifierSchema;
|
|
|
136
134
|
|
|
137
135
|
export const CreateCreativeOutputSchema = CreativeEntitySchema;
|
|
138
136
|
|
|
139
|
-
export const GetCreativeOutputSchema = CreativeEntitySchema
|
|
137
|
+
export const GetCreativeOutputSchema = CreativeEntitySchema;
|
|
140
138
|
|
|
141
139
|
export const UpdateCreativeOutputSchema = CreativeEntitySchema;
|
package/src/types/creative.ts
CHANGED
|
@@ -15,25 +15,19 @@ export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
|
15
15
|
|
|
16
16
|
export type ListCreativesInput = z.infer<typeof ListCreativesInputSchema>;
|
|
17
17
|
|
|
18
|
-
export type CreateCreativeInput = z.infer<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export type UpdateCreativeInput = z.infer<
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
export type CreateCreativeInput = z.infer<
|
|
19
|
+
typeof CreateCreativeProfileInputSchema
|
|
20
|
+
>;
|
|
21
|
+
export type UpdateCreativeInput = z.infer<
|
|
22
|
+
typeof UpdateCreativeProfileInputSchema
|
|
23
|
+
>;
|
|
24
24
|
|
|
25
25
|
export type GetCreativeParams = z.infer<typeof GetCreativeParamsSchema>;
|
|
26
26
|
|
|
27
27
|
export type GetCreativeQuery = z.infer<typeof GetCreativeQuerySchema>;
|
|
28
28
|
|
|
29
|
-
export type CreateCreativeOutput = z.infer<
|
|
30
|
-
typeof CreateCreativeOutputSchema
|
|
31
|
-
>;
|
|
29
|
+
export type CreateCreativeOutput = z.infer<typeof CreateCreativeOutputSchema>;
|
|
32
30
|
|
|
33
|
-
export type GetCreativeOutput = z.infer<
|
|
34
|
-
typeof GetCreativeOutputSchema
|
|
35
|
-
>;
|
|
31
|
+
export type GetCreativeOutput = z.infer<typeof GetCreativeOutputSchema>;
|
|
36
32
|
|
|
37
|
-
export type UpdateCreativeOutput = z.infer<
|
|
38
|
-
typeof UpdateCreativeOutputSchema
|
|
39
|
-
>;
|
|
33
|
+
export type UpdateCreativeOutput = z.infer<typeof UpdateCreativeOutputSchema>;
|