@zyacreatives/shared 2.1.77 → 2.1.79
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/schemas/brand.d.ts +5 -14
- package/dist/schemas/brand.js +6 -45
- package/dist/schemas/creative.d.ts +5 -14
- package/dist/schemas/creative.js +4 -42
- package/dist/schemas/project.d.ts +22 -15
- package/dist/schemas/project.js +23 -21
- package/dist/schemas/user.d.ts +6 -0
- package/dist/types/brand.d.ts +1 -2
- package/dist/types/creative.d.ts +1 -2
- package/dist/types/project.d.ts +3 -3
- package/package.json +1 -1
- package/src/schemas/brand.ts +110 -158
- package/src/schemas/creative.ts +180 -236
- package/src/schemas/project.ts +240 -239
- package/src/types/brand.ts +0 -3
- package/src/types/creative.ts +0 -3
- package/src/types/project.ts +23 -23
package/dist/schemas/brand.d.ts
CHANGED
|
@@ -32,26 +32,13 @@ export declare const BrandEntitySchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>>>;
|
|
33
33
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
34
34
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
35
|
-
|
|
36
|
-
export declare const ListBrandsInputSchema: z.ZodObject<{
|
|
37
|
-
query: z.ZodOptional<z.ZodString>;
|
|
38
|
-
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
-
experienceLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
40
|
-
"0-1 year": "0-1 year";
|
|
41
|
-
"1-3 years": "1-3 years";
|
|
42
|
-
"3-5 years": "3-5 years";
|
|
43
|
-
"5+ years": "5+ years";
|
|
44
|
-
}>>>;
|
|
45
|
-
location: z.ZodOptional<z.ZodString>;
|
|
46
|
-
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
47
|
-
perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
35
|
+
version: z.ZodInt;
|
|
48
36
|
}, z.core.$strip>;
|
|
49
37
|
export declare const CreateBrandProfileInputSchema: z.ZodObject<{
|
|
50
38
|
brandName: z.ZodString;
|
|
51
39
|
disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
52
40
|
}, z.core.$strip>;
|
|
53
41
|
export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
|
|
54
|
-
expectedUpdateAt: z.ZodISODateTime;
|
|
55
42
|
brandName: z.ZodOptional<z.ZodString>;
|
|
56
43
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
44
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
@@ -71,6 +58,7 @@ export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
|
|
|
71
58
|
}, z.core.$strip>>>;
|
|
72
59
|
bio: z.ZodOptional<z.ZodString>;
|
|
73
60
|
disciplineSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
version: z.ZodInt;
|
|
74
62
|
}, z.core.$strip>;
|
|
75
63
|
export declare const GetBrandInputSchema: z.ZodObject<{
|
|
76
64
|
value: z.ZodCUID2;
|
|
@@ -109,6 +97,7 @@ export declare const CreateBrandOutputSchema: z.ZodObject<{
|
|
|
109
97
|
}, z.core.$strip>>>;
|
|
110
98
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
111
99
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
100
|
+
version: z.ZodInt;
|
|
112
101
|
}, z.core.$strip>;
|
|
113
102
|
export declare const GetBrandOutputSchema: z.ZodObject<{
|
|
114
103
|
id: z.ZodCUID2;
|
|
@@ -134,6 +123,7 @@ export declare const GetBrandOutputSchema: z.ZodObject<{
|
|
|
134
123
|
}, z.core.$strip>>>;
|
|
135
124
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
136
125
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
126
|
+
version: z.ZodInt;
|
|
137
127
|
}, z.core.$strip>;
|
|
138
128
|
export declare const UpdateBrandOutputSchema: z.ZodObject<{
|
|
139
129
|
id: z.ZodCUID2;
|
|
@@ -159,6 +149,7 @@ export declare const UpdateBrandOutputSchema: z.ZodObject<{
|
|
|
159
149
|
}, z.core.$strip>>>;
|
|
160
150
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
161
151
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
152
|
+
version: z.ZodInt;
|
|
162
153
|
}, z.core.$strip>;
|
|
163
154
|
export declare const BrandWithUserEntitySchema: z.ZodObject<{
|
|
164
155
|
id: z.ZodCUID2;
|
package/dist/schemas/brand.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchBrandOutputSchema = exports.SearchBrandInputSchema = exports.BrandWithUserEntitySchema = exports.UpdateBrandOutputSchema = exports.GetBrandOutputSchema = exports.CreateBrandOutputSchema = exports.GetBrandQuerySchema = exports.GetBrandInputSchema = exports.UpdateBrandProfileInputSchema = exports.CreateBrandProfileInputSchema = exports.
|
|
3
|
+
exports.SearchBrandOutputSchema = exports.SearchBrandInputSchema = exports.BrandWithUserEntitySchema = exports.UpdateBrandOutputSchema = exports.GetBrandOutputSchema = exports.CreateBrandOutputSchema = exports.GetBrandQuerySchema = exports.GetBrandInputSchema = exports.UpdateBrandProfileInputSchema = exports.CreateBrandProfileInputSchema = exports.BrandEntitySchema = exports.MinimalBrandEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
@@ -49,46 +49,11 @@ exports.BrandEntitySchema = zod_openapi_1.z
|
|
|
49
49
|
})
|
|
50
50
|
.array()
|
|
51
51
|
.optional(),
|
|
52
|
-
createdAt: zod_openapi_1.z.coerce
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
updatedAt: zod_openapi_1.z.coerce
|
|
56
|
-
.date()
|
|
57
|
-
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
52
|
+
createdAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
53
|
+
updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
54
|
+
version: zod_openapi_1.z.int(),
|
|
58
55
|
})
|
|
59
56
|
.openapi("BrandEntitySchema");
|
|
60
|
-
exports.ListBrandsInputSchema = zod_openapi_1.z
|
|
61
|
-
.object({
|
|
62
|
-
query: zod_openapi_1.z.string().optional().openapi({ example: "AI software brand" }),
|
|
63
|
-
disciplines: zod_openapi_1.z
|
|
64
|
-
.array(zod_openapi_1.z.string())
|
|
65
|
-
.optional()
|
|
66
|
-
.openapi({ example: ["design", "marketing"] }),
|
|
67
|
-
experienceLevels: zod_openapi_1.z
|
|
68
|
-
.array(zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)))
|
|
69
|
-
.optional()
|
|
70
|
-
.openapi({
|
|
71
|
-
example: ["SENIOR", "EXPERT"],
|
|
72
|
-
description: "Filter based on the required experience level of partners.",
|
|
73
|
-
}),
|
|
74
|
-
location: zod_openapi_1.z.string().optional().openapi({ example: "San Francisco" }),
|
|
75
|
-
page: zod_openapi_1.z
|
|
76
|
-
.number()
|
|
77
|
-
.int()
|
|
78
|
-
.min(1)
|
|
79
|
-
.default(1)
|
|
80
|
-
.optional()
|
|
81
|
-
.openapi({ example: 1 }),
|
|
82
|
-
perPage: zod_openapi_1.z
|
|
83
|
-
.number()
|
|
84
|
-
.int()
|
|
85
|
-
.min(1)
|
|
86
|
-
.max(100)
|
|
87
|
-
.default(20)
|
|
88
|
-
.optional()
|
|
89
|
-
.openapi({ example: 20 }),
|
|
90
|
-
})
|
|
91
|
-
.openapi("ListBrandsInput");
|
|
92
57
|
exports.CreateBrandProfileInputSchema = zod_openapi_1.z
|
|
93
58
|
.object({
|
|
94
59
|
brandName: zod_openapi_1.z
|
|
@@ -106,12 +71,7 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
106
71
|
});
|
|
107
72
|
exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
|
|
108
73
|
.object({
|
|
109
|
-
|
|
110
|
-
brandName: zod_openapi_1.z
|
|
111
|
-
.string()
|
|
112
|
-
.min(1)
|
|
113
|
-
.optional()
|
|
114
|
-
.openapi({ example: "Acme Studio" }),
|
|
74
|
+
brandName: zod_openapi_1.z.string().min(1).optional().openapi({ example: "Acme Studio" }),
|
|
115
75
|
links: zod_openapi_1.z
|
|
116
76
|
.object({
|
|
117
77
|
url: zod_openapi_1.z.union([
|
|
@@ -140,6 +100,7 @@ exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
140
100
|
.min(1, "At least one discipline is required")
|
|
141
101
|
.optional()
|
|
142
102
|
.openapi({ example: ["frontend", "ui-ux"] }),
|
|
103
|
+
version: zod_openapi_1.z.int(),
|
|
143
104
|
})
|
|
144
105
|
.openapi({
|
|
145
106
|
title: "update brand profile",
|
|
@@ -20,6 +20,7 @@ export declare const CreativeEntitySchema: z.ZodObject<{
|
|
|
20
20
|
userId: z.ZodCUID2;
|
|
21
21
|
bio: z.ZodOptional<z.ZodString>;
|
|
22
22
|
role: z.ZodOptional<z.ZodString>;
|
|
23
|
+
version: z.ZodInt;
|
|
23
24
|
location: z.ZodOptional<z.ZodString>;
|
|
24
25
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
25
26
|
"0-1 year": "0-1 year";
|
|
@@ -55,19 +56,6 @@ export declare const CreativeEntitySchema: z.ZodObject<{
|
|
|
55
56
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
56
57
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
57
58
|
}, z.core.$strip>;
|
|
58
|
-
export declare const ListCreativesInputSchema: z.ZodObject<{
|
|
59
|
-
query: z.ZodOptional<z.ZodString>;
|
|
60
|
-
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
-
experienceLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
62
|
-
"0-1 year": "0-1 year";
|
|
63
|
-
"1-3 years": "1-3 years";
|
|
64
|
-
"3-5 years": "3-5 years";
|
|
65
|
-
"5+ years": "5+ years";
|
|
66
|
-
}>>>;
|
|
67
|
-
location: z.ZodOptional<z.ZodString>;
|
|
68
|
-
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
69
|
-
perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
59
|
export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
|
|
72
60
|
experienceLevel: z.ZodDefault<z.ZodEnum<{
|
|
73
61
|
readonly YEAR_0_1: "0-1 year";
|
|
@@ -80,7 +68,6 @@ export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
80
68
|
disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
81
69
|
}, z.core.$strip>;
|
|
82
70
|
export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
|
83
|
-
expectedUpdateAt: z.ZodISODateTime;
|
|
84
71
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
85
72
|
readonly YEAR_0_1: "0-1 year";
|
|
86
73
|
readonly YEAR_1_3: "1-3 years";
|
|
@@ -110,6 +97,7 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
110
97
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
111
98
|
}>;
|
|
112
99
|
}, z.core.$strip>>>;
|
|
100
|
+
version: z.ZodInt;
|
|
113
101
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
114
102
|
title: z.ZodString;
|
|
115
103
|
link: z.ZodOptional<z.ZodString>;
|
|
@@ -134,6 +122,7 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
|
|
|
134
122
|
userId: z.ZodCUID2;
|
|
135
123
|
bio: z.ZodOptional<z.ZodString>;
|
|
136
124
|
role: z.ZodOptional<z.ZodString>;
|
|
125
|
+
version: z.ZodInt;
|
|
137
126
|
location: z.ZodOptional<z.ZodString>;
|
|
138
127
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
139
128
|
"0-1 year": "0-1 year";
|
|
@@ -174,6 +163,7 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
|
|
|
174
163
|
userId: z.ZodCUID2;
|
|
175
164
|
bio: z.ZodOptional<z.ZodString>;
|
|
176
165
|
role: z.ZodOptional<z.ZodString>;
|
|
166
|
+
version: z.ZodInt;
|
|
177
167
|
location: z.ZodOptional<z.ZodString>;
|
|
178
168
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
179
169
|
"0-1 year": "0-1 year";
|
|
@@ -214,6 +204,7 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
|
|
|
214
204
|
userId: z.ZodCUID2;
|
|
215
205
|
bio: z.ZodOptional<z.ZodString>;
|
|
216
206
|
role: z.ZodOptional<z.ZodString>;
|
|
207
|
+
version: z.ZodInt;
|
|
217
208
|
location: z.ZodOptional<z.ZodString>;
|
|
218
209
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
219
210
|
"0-1 year": "0-1 year";
|
package/dist/schemas/creative.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchCreativeOutputSchema = exports.SearchCreativeInputSchema = exports.CreativeWithUserEntitySchema = exports.UpdateCreativeOutputSchema = exports.GetCreativeOutputSchema = exports.CreateCreativeOutputSchema = exports.GetCreativeQuerySchema = exports.GetCreativeInputSchema = exports.UpdateCreativeProfileInputSchema = exports.CreateCreativeProfileInputSchema = exports.
|
|
3
|
+
exports.SearchCreativeOutputSchema = exports.SearchCreativeInputSchema = exports.CreativeWithUserEntitySchema = exports.UpdateCreativeOutputSchema = exports.GetCreativeOutputSchema = exports.CreateCreativeOutputSchema = exports.GetCreativeQuerySchema = exports.GetCreativeInputSchema = exports.UpdateCreativeProfileInputSchema = exports.CreateCreativeProfileInputSchema = exports.CreativeEntitySchema = exports.MinimalCreativeEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const common_1 = require("./common");
|
|
@@ -32,6 +32,7 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
32
32
|
example: "A multi-disciplinary designer specializing in brand identity.",
|
|
33
33
|
}),
|
|
34
34
|
role: zod_openapi_1.z.string().optional().openapi({ example: "Designer" }),
|
|
35
|
+
version: zod_openapi_1.z.int(),
|
|
35
36
|
location: zod_openapi_1.z.string().optional().openapi({ example: "London, UK" }),
|
|
36
37
|
experienceLevel: zod_openapi_1.z
|
|
37
38
|
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
@@ -74,51 +75,12 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
74
75
|
.date()
|
|
75
76
|
.optional()
|
|
76
77
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
77
|
-
updatedAt: zod_openapi_1.z.coerce
|
|
78
|
-
.date()
|
|
79
|
-
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
78
|
+
updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
80
79
|
})
|
|
81
80
|
.openapi({
|
|
82
81
|
title: "CreativeEntitySchema",
|
|
83
82
|
description: "Represents a creative profile, including bio, experience level, location, disciplines and timestamps.",
|
|
84
83
|
});
|
|
85
|
-
exports.ListCreativesInputSchema = zod_openapi_1.z
|
|
86
|
-
.object({
|
|
87
|
-
query: zod_openapi_1.z.string().optional().openapi({ example: "logo designer" }),
|
|
88
|
-
disciplines: zod_openapi_1.z
|
|
89
|
-
.array(zod_openapi_1.z.string())
|
|
90
|
-
.optional()
|
|
91
|
-
.openapi({ example: ["branding", "web design"] }),
|
|
92
|
-
experienceLevels: zod_openapi_1.z
|
|
93
|
-
.array(zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)))
|
|
94
|
-
.optional()
|
|
95
|
-
.openapi({
|
|
96
|
-
example: [
|
|
97
|
-
constants_1.EXPERIENCE_LEVELS.YEAR_1_3,
|
|
98
|
-
constants_1.EXPERIENCE_LEVELS.YEAR_5_PLUS,
|
|
99
|
-
],
|
|
100
|
-
}),
|
|
101
|
-
location: zod_openapi_1.z.string().optional().openapi({ example: "Los Angeles" }),
|
|
102
|
-
page: zod_openapi_1.z
|
|
103
|
-
.number()
|
|
104
|
-
.int()
|
|
105
|
-
.min(1)
|
|
106
|
-
.default(1)
|
|
107
|
-
.optional()
|
|
108
|
-
.openapi({ example: 1 }),
|
|
109
|
-
perPage: zod_openapi_1.z
|
|
110
|
-
.number()
|
|
111
|
-
.int()
|
|
112
|
-
.min(1)
|
|
113
|
-
.max(100)
|
|
114
|
-
.default(20)
|
|
115
|
-
.optional()
|
|
116
|
-
.openapi({ example: 20 }),
|
|
117
|
-
})
|
|
118
|
-
.openapi({
|
|
119
|
-
title: "ListCreativesInput",
|
|
120
|
-
description: "Query parameters for filtering and paginating creatives. Supports text search, discipline filtering, experience level filtering, tag filtering, location filtering, and pagination settings.",
|
|
121
|
-
});
|
|
122
84
|
exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
|
|
123
85
|
.object({
|
|
124
86
|
experienceLevel: zod_openapi_1.z
|
|
@@ -152,7 +114,6 @@ exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
|
|
|
152
114
|
});
|
|
153
115
|
exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
|
|
154
116
|
.object({
|
|
155
|
-
expectedUpdateAt: zod_openapi_1.z.iso.datetime(),
|
|
156
117
|
experienceLevel: zod_openapi_1.z
|
|
157
118
|
.enum(constants_1.EXPERIENCE_LEVELS)
|
|
158
119
|
.optional()
|
|
@@ -194,6 +155,7 @@ exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
|
|
|
194
155
|
})
|
|
195
156
|
.array()
|
|
196
157
|
.optional(),
|
|
158
|
+
version: zod_openapi_1.z.int(),
|
|
197
159
|
achievements: zod_openapi_1.z
|
|
198
160
|
.object({
|
|
199
161
|
title: zod_openapi_1.z.string(),
|
|
@@ -26,6 +26,7 @@ export declare const ProjectEntitySchema: z.ZodObject<{
|
|
|
26
26
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
27
27
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
28
28
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
29
|
+
version: z.ZodInt;
|
|
29
30
|
}, z.core.$strip>;
|
|
30
31
|
export declare const ProjectFileEntitySchema: z.ZodObject<{
|
|
31
32
|
id: z.ZodString;
|
|
@@ -67,6 +68,7 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
|
|
|
67
68
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
68
69
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
69
70
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
71
|
+
version: z.ZodInt;
|
|
70
72
|
user: z.ZodObject<{
|
|
71
73
|
email: z.ZodEmail;
|
|
72
74
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -155,16 +157,7 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
|
|
|
155
157
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
156
158
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
157
159
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
158
|
-
|
|
159
|
-
export declare const ViewProjectInputSchema: z.ZodObject<{
|
|
160
|
-
projectId: z.ZodCUID2;
|
|
161
|
-
id: z.ZodOptional<z.ZodCUID2>;
|
|
162
|
-
userId: z.ZodOptional<z.ZodCUID2>;
|
|
163
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
164
|
-
ipAddress: z.ZodOptional<z.ZodString>;
|
|
165
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
166
|
-
viewedAt: z.ZodOptional<z.ZodDate>;
|
|
167
|
-
viewDate: z.ZodOptional<z.ZodDate>;
|
|
160
|
+
version: z.ZodInt;
|
|
168
161
|
}, z.core.$strip>;
|
|
169
162
|
export declare const CreateProjectOutputSchema: z.ZodObject<{
|
|
170
163
|
id: z.ZodString;
|
|
@@ -193,6 +186,7 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
|
|
|
193
186
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
194
187
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
195
188
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
189
|
+
version: z.ZodInt;
|
|
196
190
|
}, z.core.$strip>;
|
|
197
191
|
export declare const UpdateProjectOutputSchema: z.ZodObject<{
|
|
198
192
|
id: z.ZodString;
|
|
@@ -221,6 +215,7 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
|
|
|
221
215
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
222
216
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
223
217
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
218
|
+
version: z.ZodInt;
|
|
224
219
|
}, z.core.$strip>;
|
|
225
220
|
export declare const DeleteProjectOutputSchema: z.ZodObject<{
|
|
226
221
|
id: z.ZodString;
|
|
@@ -249,6 +244,7 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
|
|
|
249
244
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
250
245
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
251
246
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
247
|
+
version: z.ZodInt;
|
|
252
248
|
}, z.core.$strip>;
|
|
253
249
|
export declare const GetProjectOutputSchema: z.ZodObject<{
|
|
254
250
|
id: z.ZodString;
|
|
@@ -277,6 +273,7 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
|
|
|
277
273
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
278
274
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
279
275
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
276
|
+
version: z.ZodInt;
|
|
280
277
|
user: z.ZodObject<{
|
|
281
278
|
email: z.ZodEmail;
|
|
282
279
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -321,13 +318,23 @@ export declare const MinimalProjectSchema: z.ZodObject<{
|
|
|
321
318
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
322
319
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
323
320
|
}, z.core.$strip>;
|
|
324
|
-
export declare const
|
|
321
|
+
export declare const SearchProjectsInputSchema: z.ZodObject<{
|
|
325
322
|
query: z.ZodOptional<z.ZodString>;
|
|
326
323
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
324
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
325
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
export declare const SearchProjectsOutputSchema: z.ZodObject<{
|
|
328
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
description: z.ZodOptional<z.ZodString>;
|
|
331
|
+
title: z.ZodString;
|
|
332
|
+
imagePlaceholderUrl: z.ZodString;
|
|
333
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
334
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
335
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
331
338
|
}, z.core.$strip>;
|
|
332
339
|
export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
|
|
333
340
|
id: z.ZodString;
|
package/dist/schemas/project.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithLikesEntitySchema = exports.ProjectWithProjectCommentsEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.
|
|
3
|
+
exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithLikesEntitySchema = exports.ProjectWithProjectCommentsEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.SearchProjectsOutputSchema = exports.SearchProjectsInputSchema = exports.MinimalProjectSchema = exports.ProjectIdSchema = exports.GetProjectOutputSchema = exports.DeleteProjectOutputSchema = exports.UpdateProjectOutputSchema = exports.CreateProjectOutputSchema = exports.UpdateProjectInputSchema = exports.CreateProjectInputSchema = exports.ProjectUpdateOutputEntitySchema = exports.ProjectDetailsEntitySchema = exports.ProjectSocialGraphEntitySchema = exports.ProjectFileEntitySchema = exports.ProjectEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const file_1 = require("./file");
|
|
@@ -88,6 +88,7 @@ exports.ProjectEntitySchema = zod_openapi_1.z
|
|
|
88
88
|
description: "Timestamp when the project was last updated.",
|
|
89
89
|
example: new Date("2024-06-30T00:00:00.000Z"),
|
|
90
90
|
}),
|
|
91
|
+
version: zod_openapi_1.z.int(),
|
|
91
92
|
})
|
|
92
93
|
.openapi({
|
|
93
94
|
title: "Project DB Entity",
|
|
@@ -101,9 +102,7 @@ exports.ProjectFileEntitySchema = zod_openapi_1.z
|
|
|
101
102
|
projectId: zod_openapi_1.z.string().openapi({
|
|
102
103
|
description: "CUID2 of the project this file belongs to.",
|
|
103
104
|
}),
|
|
104
|
-
fileId: zod_openapi_1.z
|
|
105
|
-
.string()
|
|
106
|
-
.openapi({ description: "CUID2 of the linked file." }),
|
|
105
|
+
fileId: zod_openapi_1.z.string().openapi({ description: "CUID2 of the linked file." }),
|
|
107
106
|
isPlaceholder: zod_openapi_1.z.boolean().openapi({
|
|
108
107
|
description: "Indicates whether the file is a placeholder.",
|
|
109
108
|
example: false,
|
|
@@ -195,20 +194,9 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
|
|
|
195
194
|
endDate: zod_openapi_1.z.coerce.date().optional(),
|
|
196
195
|
createdAt: zod_openapi_1.z.date().optional(),
|
|
197
196
|
updatedAt: zod_openapi_1.z.date().optional(),
|
|
197
|
+
version: zod_openapi_1.z.int(),
|
|
198
198
|
})
|
|
199
199
|
.openapi({ title: "Update Project" });
|
|
200
|
-
exports.ViewProjectInputSchema = zod_openapi_1.z
|
|
201
|
-
.object({
|
|
202
|
-
projectId: zod_openapi_1.z.cuid2(),
|
|
203
|
-
id: zod_openapi_1.z.cuid2().optional(),
|
|
204
|
-
userId: zod_openapi_1.z.cuid2().optional(),
|
|
205
|
-
sessionId: zod_openapi_1.z.string().optional(),
|
|
206
|
-
ipAddress: zod_openapi_1.z.string().optional(),
|
|
207
|
-
userAgent: zod_openapi_1.z.string().optional(),
|
|
208
|
-
viewedAt: zod_openapi_1.z.date().optional(),
|
|
209
|
-
viewDate: zod_openapi_1.z.date().optional(),
|
|
210
|
-
})
|
|
211
|
-
.openapi({ title: "View Project" });
|
|
212
200
|
exports.CreateProjectOutputSchema = exports.ProjectEntitySchema;
|
|
213
201
|
exports.UpdateProjectOutputSchema = exports.ProjectEntitySchema;
|
|
214
202
|
exports.DeleteProjectOutputSchema = exports.ProjectEntitySchema;
|
|
@@ -228,18 +216,32 @@ exports.MinimalProjectSchema = exports.ProjectEntitySchema.pick({
|
|
|
228
216
|
}).openapi({
|
|
229
217
|
title: "MinimalProject",
|
|
230
218
|
});
|
|
231
|
-
exports.
|
|
219
|
+
exports.SearchProjectsInputSchema = zod_openapi_1.z
|
|
232
220
|
.object({
|
|
233
221
|
query: zod_openapi_1.z.string().optional(),
|
|
234
222
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
223
|
+
limit: zod_openapi_1.z.coerce
|
|
224
|
+
.number()
|
|
225
|
+
.min(1)
|
|
226
|
+
.max(100)
|
|
227
|
+
.default(20)
|
|
228
|
+
.openapi({ example: 20 }),
|
|
229
|
+
cursor: zod_openapi_1.z
|
|
230
|
+
.string()
|
|
231
|
+
.optional()
|
|
232
|
+
.openapi({ example: "ckl1y9xyz0000qv7a0h1efgh4" }),
|
|
239
233
|
})
|
|
240
234
|
.openapi({
|
|
241
235
|
title: "ListProjectsInput",
|
|
242
236
|
});
|
|
237
|
+
exports.SearchProjectsOutputSchema = zod_openapi_1.z
|
|
238
|
+
.object({
|
|
239
|
+
projects: zod_openapi_1.z.array(exports.MinimalProjectSchema),
|
|
240
|
+
nextCursor: zod_openapi_1.z.string().optional(),
|
|
241
|
+
})
|
|
242
|
+
.openapi({
|
|
243
|
+
title: "SearchProjectsOutput",
|
|
244
|
+
});
|
|
243
245
|
exports.ProjectWithProjectViewsEntitySchema = exports.MinimalProjectSchema.extend({
|
|
244
246
|
views: zod_openapi_1.z.array(view_1.ViewEntitySchema),
|
|
245
247
|
}).openapi({
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -113,12 +113,14 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
113
113
|
}, z.core.$strip>>>;
|
|
114
114
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
115
115
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
116
|
+
version: z.ZodInt;
|
|
116
117
|
}, z.core.$strip>;
|
|
117
118
|
creative: z.ZodObject<{
|
|
118
119
|
id: z.ZodCUID2;
|
|
119
120
|
userId: z.ZodCUID2;
|
|
120
121
|
bio: z.ZodOptional<z.ZodString>;
|
|
121
122
|
role: z.ZodOptional<z.ZodString>;
|
|
123
|
+
version: z.ZodInt;
|
|
122
124
|
location: z.ZodOptional<z.ZodString>;
|
|
123
125
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
124
126
|
"0-1 year": "0-1 year";
|
|
@@ -232,6 +234,7 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
232
234
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
233
235
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
234
236
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
237
|
+
version: z.ZodInt;
|
|
235
238
|
}, z.core.$strip>>;
|
|
236
239
|
}, z.core.$strip>;
|
|
237
240
|
export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
@@ -593,12 +596,14 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
593
596
|
}, z.core.$strip>>>;
|
|
594
597
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
595
598
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
599
|
+
version: z.ZodInt;
|
|
596
600
|
}, z.core.$strip>;
|
|
597
601
|
creative: z.ZodObject<{
|
|
598
602
|
id: z.ZodCUID2;
|
|
599
603
|
userId: z.ZodCUID2;
|
|
600
604
|
bio: z.ZodOptional<z.ZodString>;
|
|
601
605
|
role: z.ZodOptional<z.ZodString>;
|
|
606
|
+
version: z.ZodInt;
|
|
602
607
|
location: z.ZodOptional<z.ZodString>;
|
|
603
608
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
604
609
|
"0-1 year": "0-1 year";
|
|
@@ -712,6 +717,7 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
712
717
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
713
718
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
714
719
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
720
|
+
version: z.ZodInt;
|
|
715
721
|
}, z.core.$strip>>;
|
|
716
722
|
}, z.core.$strip>;
|
|
717
723
|
export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
package/dist/types/brand.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { BrandEntitySchema,
|
|
2
|
+
import { BrandEntitySchema, CreateBrandProfileInputSchema, UpdateBrandProfileInputSchema, GetBrandInputSchema, CreateBrandOutputSchema, GetBrandOutputSchema, UpdateBrandOutputSchema, BrandWithUserEntitySchema, SearchBrandInputSchema, SearchBrandOutputSchema, MinimalBrandEntitySchema } from "../schemas/brand";
|
|
3
3
|
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
4
|
-
export type ListBrandsInput = z.infer<typeof ListBrandsInputSchema>;
|
|
5
4
|
export type CreateBrandProfileInput = z.infer<typeof CreateBrandProfileInputSchema>;
|
|
6
5
|
export type UpdateBrandProfileInput = z.infer<typeof UpdateBrandProfileInputSchema>;
|
|
7
6
|
export type GetBrandInput = z.infer<typeof GetBrandInputSchema>;
|
package/dist/types/creative.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { CreativeEntitySchema,
|
|
2
|
+
import { CreativeEntitySchema, CreateCreativeProfileInputSchema, UpdateCreativeProfileInputSchema, GetCreativeInputSchema, CreateCreativeOutputSchema, GetCreativeOutputSchema, UpdateCreativeOutputSchema, CreativeWithUserEntitySchema, SearchCreativeInputSchema, SearchCreativeOutputSchema, MinimalCreativeEntitySchema } from "../schemas/creative";
|
|
3
3
|
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
4
|
-
export type ListCreativesInput = z.infer<typeof ListCreativesInputSchema>;
|
|
5
4
|
export type CreateCreativeProfileInput = z.infer<typeof CreateCreativeProfileInputSchema>;
|
|
6
5
|
export type UpdateCreativeProfileInput = z.infer<typeof UpdateCreativeProfileInputSchema>;
|
|
7
6
|
export type GetCreativeInput = z.infer<typeof GetCreativeInputSchema>;
|
package/dist/types/project.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from "@hono/zod-openapi";
|
|
2
|
-
import type { ProjectEntitySchema, ProjectIdSchema, MinimalProjectSchema, ProjectFileEntitySchema, ProjectDetailsEntitySchema, ProjectWithProjectViewsEntitySchema, ProjectWithProjectCommentsEntitySchema, ProjectWithLikesEntitySchema, ProjectWithProjectBookmarksEntitySchema, CreateProjectInputSchema, CreateProjectOutputSchema, UpdateProjectInputSchema, UpdateProjectOutputSchema, DeleteProjectOutputSchema, GetProjectOutputSchema,
|
|
2
|
+
import type { ProjectEntitySchema, ProjectIdSchema, MinimalProjectSchema, ProjectFileEntitySchema, ProjectDetailsEntitySchema, ProjectWithProjectViewsEntitySchema, ProjectWithProjectCommentsEntitySchema, ProjectWithLikesEntitySchema, ProjectWithProjectBookmarksEntitySchema, CreateProjectInputSchema, CreateProjectOutputSchema, UpdateProjectInputSchema, UpdateProjectOutputSchema, DeleteProjectOutputSchema, GetProjectOutputSchema, SearchProjectsInputSchema, SearchProjectsOutputSchema } from "../schemas/project";
|
|
3
3
|
import { ViewEntitySchema } from "../schemas/view";
|
|
4
4
|
import { LikeEntitySchema } from "../schemas/like";
|
|
5
5
|
import { CommentEntitySchema } from "../schemas/comment";
|
|
@@ -21,5 +21,5 @@ export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
|
|
|
21
21
|
export type UpdateProjectOutput = z.infer<typeof UpdateProjectOutputSchema>;
|
|
22
22
|
export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
|
|
23
23
|
export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
|
|
24
|
-
export type
|
|
25
|
-
export type
|
|
24
|
+
export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
|
|
25
|
+
export type SearchProjectsOutput = z.infer<typeof SearchProjectsOutputSchema>;
|