@zyacreatives/shared 2.5.36 → 2.5.37
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.
|
@@ -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/package.json
CHANGED
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>;
|