@zyacreatives/shared 2.5.36 → 2.5.38
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
CHANGED
|
@@ -14,6 +14,7 @@ export declare const BrandEntitySchema: z.ZodObject<{
|
|
|
14
14
|
userId: z.ZodCUID2;
|
|
15
15
|
brandName: z.ZodString;
|
|
16
16
|
bio: z.ZodOptional<z.ZodString>;
|
|
17
|
+
location: z.ZodString;
|
|
17
18
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
19
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
20
|
url: z.ZodURL;
|
|
@@ -38,6 +39,7 @@ export declare const BrandEntitySchema: z.ZodObject<{
|
|
|
38
39
|
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
39
40
|
export declare const CreateBrandProfileInputSchema: z.ZodObject<{
|
|
40
41
|
brandName: z.ZodString;
|
|
42
|
+
location: z.ZodString;
|
|
41
43
|
disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
42
44
|
}, z.core.$strip>;
|
|
43
45
|
export type CreateBrandProfileInput = z.infer<typeof CreateBrandProfileInputSchema>;
|
|
@@ -54,6 +56,7 @@ export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
|
|
|
54
56
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
55
57
|
}>;
|
|
56
58
|
}, z.core.$strip>>>;
|
|
59
|
+
location: z.ZodString;
|
|
57
60
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
61
|
title: z.ZodString;
|
|
59
62
|
link: z.ZodOptional<z.ZodURL>;
|
|
@@ -83,6 +86,7 @@ export declare const CreateBrandOutputSchema: z.ZodObject<{
|
|
|
83
86
|
userId: z.ZodCUID2;
|
|
84
87
|
brandName: z.ZodString;
|
|
85
88
|
bio: z.ZodOptional<z.ZodString>;
|
|
89
|
+
location: z.ZodString;
|
|
86
90
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
91
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
92
|
url: z.ZodURL;
|
|
@@ -110,6 +114,7 @@ export declare const GetBrandOutputSchema: z.ZodObject<{
|
|
|
110
114
|
userId: z.ZodCUID2;
|
|
111
115
|
brandName: z.ZodString;
|
|
112
116
|
bio: z.ZodOptional<z.ZodString>;
|
|
117
|
+
location: z.ZodString;
|
|
113
118
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
119
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
120
|
url: z.ZodURL;
|
|
@@ -137,6 +142,7 @@ export declare const UpdateBrandOutputSchema: z.ZodObject<{
|
|
|
137
142
|
userId: z.ZodCUID2;
|
|
138
143
|
brandName: z.ZodString;
|
|
139
144
|
bio: z.ZodOptional<z.ZodString>;
|
|
145
|
+
location: z.ZodString;
|
|
140
146
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
147
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
148
|
url: z.ZodURL;
|
package/dist/schemas/brand.js
CHANGED
|
@@ -30,6 +30,9 @@ exports.BrandEntitySchema = zod_openapi_1.z
|
|
|
30
30
|
bio: zod_openapi_1.z.string().optional().openapi({
|
|
31
31
|
example: "Leading software development firm focused on AI.",
|
|
32
32
|
}),
|
|
33
|
+
location: zod_openapi_1.z.string().openapi({
|
|
34
|
+
example: "UK",
|
|
35
|
+
}),
|
|
33
36
|
disciplines: zod_openapi_1.z
|
|
34
37
|
.array(zod_openapi_1.z.string())
|
|
35
38
|
.optional()
|
|
@@ -60,6 +63,9 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
60
63
|
.string()
|
|
61
64
|
.min(1, "Brand name is required")
|
|
62
65
|
.openapi({ example: "Acme Creative Studio" }),
|
|
66
|
+
location: zod_openapi_1.z.string().openapi({
|
|
67
|
+
example: "UK",
|
|
68
|
+
}),
|
|
63
69
|
disciplineSlugs: zod_openapi_1.z
|
|
64
70
|
.array(zod_openapi_1.z.string())
|
|
65
71
|
.min(1, "At least one discipline is required")
|
|
@@ -82,6 +88,9 @@ exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
82
88
|
})
|
|
83
89
|
.array()
|
|
84
90
|
.optional(),
|
|
91
|
+
location: zod_openapi_1.z.string().openapi({
|
|
92
|
+
example: "UK",
|
|
93
|
+
}),
|
|
85
94
|
achievements: zod_openapi_1.z
|
|
86
95
|
.object({
|
|
87
96
|
title: zod_openapi_1.z.string(),
|
|
@@ -539,6 +539,13 @@ export declare const RevenueChartInputSchema: z.ZodObject<{
|
|
|
539
539
|
startDate: z.ZodOptional<z.ZodString>;
|
|
540
540
|
endDate: z.ZodOptional<z.ZodString>;
|
|
541
541
|
}, z.core.$strip>;
|
|
542
|
+
export declare const SellerDashboardStatsOutputSchema: z.ZodObject<{
|
|
543
|
+
totalSales: z.ZodNumber;
|
|
544
|
+
totalViews: z.ZodNumber;
|
|
545
|
+
totalProducts: z.ZodNumber;
|
|
546
|
+
totalDrafts: z.ZodNumber;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
export type SellerDashboardStatsOutput = z.infer<typeof SellerDashboardStatsOutputSchema>;
|
|
542
549
|
export type ProductLink = z.infer<typeof ProductLinkSchema>;
|
|
543
550
|
export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
|
|
544
551
|
export type SearchProductOutput = z.infer<typeof SearchProductOutputSchema>;
|
package/dist/schemas/product.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RevenueChartInputSchema = exports.ProductRevenueChartOutputSchema = exports.RevenueChartPointSchema = exports.ProductTransactionsOutputSchema = exports.ProductTransactionItemSchema = exports.ProductStatsOutputSchema = exports.ProductDiscountCheckOutputSchema = exports.ProductDiscountCheckInputSchema = exports.MarketplaceProductEntitySchema = exports.GetMarketplaceInfoOutputSchema = exports.MarketplaceCategorySchema = exports.SearchProductOutputSchema = exports.SearchProductInputSchema = exports.ProductSearchDocumentSchema = exports.ProductEntitySchema = exports.UpdateProductInputSchema = exports.ProductServiceAndComplianceInputSchema = exports.CreateProductInputSchema = exports.ProductLinkSchema = exports.ProductDiscountEntitySchema = void 0;
|
|
3
|
+
exports.SellerDashboardStatsOutputSchema = exports.RevenueChartInputSchema = exports.ProductRevenueChartOutputSchema = exports.RevenueChartPointSchema = exports.ProductTransactionsOutputSchema = exports.ProductTransactionItemSchema = exports.ProductStatsOutputSchema = exports.ProductDiscountCheckOutputSchema = exports.ProductDiscountCheckInputSchema = exports.MarketplaceProductEntitySchema = exports.GetMarketplaceInfoOutputSchema = exports.MarketplaceCategorySchema = exports.SearchProductOutputSchema = exports.SearchProductInputSchema = exports.ProductSearchDocumentSchema = exports.ProductEntitySchema = exports.UpdateProductInputSchema = exports.ProductServiceAndComplianceInputSchema = exports.CreateProductInputSchema = exports.ProductLinkSchema = exports.ProductDiscountEntitySchema = 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");
|
|
@@ -239,3 +239,9 @@ exports.RevenueChartInputSchema = zod_openapi_1.z.object({
|
|
|
239
239
|
startDate: zod_openapi_1.z.string().optional().openapi({ description: "YYYY-MM-DD" }),
|
|
240
240
|
endDate: zod_openapi_1.z.string().optional().openapi({ description: "YYYY-MM-DD" }),
|
|
241
241
|
});
|
|
242
|
+
exports.SellerDashboardStatsOutputSchema = zod_openapi_1.z.object({
|
|
243
|
+
totalSales: zod_openapi_1.z.number().int(),
|
|
244
|
+
totalViews: zod_openapi_1.z.number().int(),
|
|
245
|
+
totalProducts: zod_openapi_1.z.number().int(),
|
|
246
|
+
totalDrafts: zod_openapi_1.z.number().int(),
|
|
247
|
+
});
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
92
92
|
userId: z.ZodCUID2;
|
|
93
93
|
brandName: z.ZodString;
|
|
94
94
|
bio: z.ZodOptional<z.ZodString>;
|
|
95
|
+
location: z.ZodString;
|
|
95
96
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
97
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
98
|
url: z.ZodURL;
|
|
@@ -1329,6 +1330,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
1329
1330
|
userId: z.ZodCUID2;
|
|
1330
1331
|
brandName: z.ZodString;
|
|
1331
1332
|
bio: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
location: z.ZodString;
|
|
1332
1334
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1333
1335
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1334
1336
|
url: z.ZodURL;
|
package/package.json
CHANGED
package/src/schemas/brand.ts
CHANGED
|
@@ -31,6 +31,9 @@ export const BrandEntitySchema = z
|
|
|
31
31
|
bio: z.string().optional().openapi({
|
|
32
32
|
example: "Leading software development firm focused on AI.",
|
|
33
33
|
}),
|
|
34
|
+
location: z.string().openapi({
|
|
35
|
+
example: "UK",
|
|
36
|
+
}),
|
|
34
37
|
disciplines: z
|
|
35
38
|
.array(z.string())
|
|
36
39
|
.optional()
|
|
@@ -64,6 +67,9 @@ export const CreateBrandProfileInputSchema = z
|
|
|
64
67
|
.string()
|
|
65
68
|
.min(1, "Brand name is required")
|
|
66
69
|
.openapi({ example: "Acme Creative Studio" }),
|
|
70
|
+
location: z.string().openapi({
|
|
71
|
+
example: "UK",
|
|
72
|
+
}),
|
|
67
73
|
disciplineSlugs: z
|
|
68
74
|
.array(z.string())
|
|
69
75
|
.min(1, "At least one discipline is required")
|
|
@@ -91,6 +97,9 @@ export const UpdateBrandProfileInputSchema = z
|
|
|
91
97
|
})
|
|
92
98
|
.array()
|
|
93
99
|
.optional(),
|
|
100
|
+
location: z.string().openapi({
|
|
101
|
+
example: "UK",
|
|
102
|
+
}),
|
|
94
103
|
achievements: z
|
|
95
104
|
.object({
|
|
96
105
|
title: z.string(),
|
package/src/schemas/product.ts
CHANGED
|
@@ -299,6 +299,15 @@ export const RevenueChartInputSchema = z.object({
|
|
|
299
299
|
endDate: z.string().optional().openapi({ description: "YYYY-MM-DD" }),
|
|
300
300
|
});
|
|
301
301
|
|
|
302
|
+
export const SellerDashboardStatsOutputSchema = z.object({
|
|
303
|
+
totalSales: z.number().int(),
|
|
304
|
+
totalViews: z.number().int(),
|
|
305
|
+
totalProducts: z.number().int(),
|
|
306
|
+
totalDrafts: z.number().int(),
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
export type SellerDashboardStatsOutput = z.infer<typeof SellerDashboardStatsOutputSchema>;
|
|
310
|
+
|
|
302
311
|
export type ProductLink = z.infer<typeof ProductLinkSchema>;
|
|
303
312
|
export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
|
|
304
313
|
export type SearchProductOutput = z.infer<typeof SearchProductOutputSchema>;
|