@signskart/shared 1.3.19 → 1.3.22
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.mts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -166,6 +166,11 @@ interface IProductType {
|
|
|
166
166
|
variantChart: IVariantChart;
|
|
167
167
|
frameChart: IFrameChartDocument;
|
|
168
168
|
store: IStore;
|
|
169
|
+
images: {
|
|
170
|
+
desktopBanner: string;
|
|
171
|
+
mobileBanner: string;
|
|
172
|
+
thumbnail: string;
|
|
173
|
+
};
|
|
169
174
|
}
|
|
170
175
|
interface IPricingTier {
|
|
171
176
|
from: number;
|
|
@@ -291,15 +296,15 @@ interface IVariant {
|
|
|
291
296
|
_id: string;
|
|
292
297
|
productId?: string;
|
|
293
298
|
sku: string;
|
|
294
|
-
barcode?: string;
|
|
295
299
|
title: ILocalizedString;
|
|
296
300
|
description?: ILocalizedString;
|
|
297
301
|
slug: string;
|
|
298
|
-
stock: number;
|
|
299
|
-
sales?: number;
|
|
300
|
-
tag?: string[];
|
|
301
302
|
prices: IVariantPrices;
|
|
302
|
-
|
|
303
|
+
images: {
|
|
304
|
+
productImage: string;
|
|
305
|
+
seoImage: string;
|
|
306
|
+
displayImage: string;
|
|
307
|
+
};
|
|
303
308
|
templateJson?: string;
|
|
304
309
|
seoMetaData: ISEOMetaData;
|
|
305
310
|
size: {
|
package/dist/index.d.ts
CHANGED
|
@@ -166,6 +166,11 @@ interface IProductType {
|
|
|
166
166
|
variantChart: IVariantChart;
|
|
167
167
|
frameChart: IFrameChartDocument;
|
|
168
168
|
store: IStore;
|
|
169
|
+
images: {
|
|
170
|
+
desktopBanner: string;
|
|
171
|
+
mobileBanner: string;
|
|
172
|
+
thumbnail: string;
|
|
173
|
+
};
|
|
169
174
|
}
|
|
170
175
|
interface IPricingTier {
|
|
171
176
|
from: number;
|
|
@@ -291,15 +296,15 @@ interface IVariant {
|
|
|
291
296
|
_id: string;
|
|
292
297
|
productId?: string;
|
|
293
298
|
sku: string;
|
|
294
|
-
barcode?: string;
|
|
295
299
|
title: ILocalizedString;
|
|
296
300
|
description?: ILocalizedString;
|
|
297
301
|
slug: string;
|
|
298
|
-
stock: number;
|
|
299
|
-
sales?: number;
|
|
300
|
-
tag?: string[];
|
|
301
302
|
prices: IVariantPrices;
|
|
302
|
-
|
|
303
|
+
images: {
|
|
304
|
+
productImage: string;
|
|
305
|
+
seoImage: string;
|
|
306
|
+
displayImage: string;
|
|
307
|
+
};
|
|
303
308
|
templateJson?: string;
|
|
304
309
|
seoMetaData: ISEOMetaData;
|
|
305
310
|
size: {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/interfaces/category.ts","../src/interfaces/product.ts"],"sourcesContent":["export * from './interfaces';\n","import { ILocalizedString } from \"./common\";\nimport { ISEOMetaData } from \"./seo\";\nimport { IStore } from \"./store\";\n\nexport const TAGS = ['new', 'hot', 'sale', 'featured', 'exclusive'] as const;\n\nexport type Tag = typeof TAGS[number];\n\nexport interface ICategory {\n _id: string;\n name: ILocalizedString;\n description?: ILocalizedString;\n slug: string;\n parent?: string | null;\n parentName?: string;\n children?: string[];\n level?: number;\n status: boolean;\n store: IStore;\n skuInitial?: string;\n sortPosition?: number;\n tags: Tag[];\n\n images: {\n desktopBanner?: string;\n mobileBanner?: string;\n shopPageThumbnail?: string;\n categoryThumbnail?: string;\n };\n\n seoMetaData: ISEOMetaData;\n metaData: {\n\n };\n createdAt?: string;\n updatedAt?: string;\n productCount?: number;\n\n [key: string]: any; // Optional catch-all for dynamic properties\n}\n\nexport interface CategoryQueryParams {\n page?: number;\n limit?: number;\n name?: string;\n status?: string;\n minLevel?: string;\n maxLevel?: string;\n}\n\nexport interface CategoryResponse {\n categories: ICategory[];\n totalCategories: number;\n totalPages: number;\n currentPage: number;\n}\n","import { ICategory, ILocalizedString, IProductType, ISEOMetaData, IStore, IVariant } from \"./\";\n\nexport interface IPrices {\n originalPrice: number;\n price: number\n discount?: number;\n}\n\nexport interface IImages {\n productImage?: string;\n seoImage?: string;\n displayImage?: string;\n}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/interfaces/category.ts","../src/interfaces/product.ts"],"sourcesContent":["export * from './interfaces';\n","import { ILocalizedString } from \"./common\";\nimport { ISEOMetaData } from \"./seo\";\nimport { IStore } from \"./store\";\n\nexport const TAGS = ['new', 'hot', 'sale', 'featured', 'exclusive'] as const;\n\nexport type Tag = typeof TAGS[number];\n\nexport interface ICategory {\n _id: string;\n name: ILocalizedString;\n description?: ILocalizedString;\n slug: string;\n parent?: string | null;\n parentName?: string;\n children?: string[];\n level?: number;\n status: boolean;\n store: IStore;\n skuInitial?: string;\n sortPosition?: number;\n tags: Tag[];\n\n images: {\n desktopBanner?: string;\n mobileBanner?: string;\n shopPageThumbnail?: string;\n categoryThumbnail?: string;\n };\n\n seoMetaData: ISEOMetaData;\n metaData: {\n\n };\n createdAt?: string;\n updatedAt?: string;\n productCount?: number;\n\n [key: string]: any; // Optional catch-all for dynamic properties\n}\n\nexport interface CategoryQueryParams {\n page?: number;\n limit?: number;\n name?: string;\n status?: string;\n minLevel?: string;\n maxLevel?: string;\n}\n\nexport interface CategoryResponse {\n categories: ICategory[];\n totalCategories: number;\n totalPages: number;\n currentPage: number;\n}\n","import { ICategory, ILocalizedString, IProductType, ISEOMetaData, IStore, IVariant } from \"./\";\n\nexport interface IPrices {\n originalPrice: number;\n price: number\n discount?: number;\n}\n\nexport interface IImages {\n productImage?: string;\n seoImage?: string;\n displayImage?: string;\n}\n\nexport const ProdductExclusiveTAGS = [\n \"new\",\n \"hot\",\n \"sale\",\n \"featured\",\n \"exclusive\",\n \"trending\",\n \"pack\",\n \"bundles\"\n] as const;\n\nexport type ProductExclusiveTag = typeof ProdductExclusiveTAGS[number];\n\nexport interface IProduct {\n _id: string;\n sku: string;\n barcode?: string;\n title: ILocalizedString;\n description: ILocalizedString;\n slug: string;\n categories: ICategory[];\n category: ICategory;\n productType: IProductType;\n tags: ProductExclusiveTag[];\n image: string[];\n stock: number;\n sales: number;\n tag: string[];\n variants: IVariant[];\n hasVariant: boolean;\n hasSize: boolean;\n prices: IPrices;\n status: boolean;\n store: IStore;\n images: IImages;\n seoMetaData: ISEOMetaData;\n metaData: {};\n createdAt?: Date;\n updatedAt?: Date;\n\n // Optional: virtual populate\n variantList?: IVariant[];\n\n [key: string]: any;\n}\n\nexport interface IProductQuery {\n page?: number;\n limit?: number;\n category?: string;\n categories?: string[];\n title?: string;\n price?: string;\n stockStatus?: string;\n published?: string;\n status?: boolean;\n minPrice?: string;\n maxPrice?: string;\n}\n\nexport interface IProductResponse {\n products: IProduct[];\n totalDoc: number;\n limits: number;\n pages: number;\n}\n\nexport interface IProductUpdate {\n ids: string[];\n [key: string]: any;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;;;ACU3D,IAAM,wBAAwB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interfaces/category.ts","../src/interfaces/product.ts"],"sourcesContent":["import { ILocalizedString } from \"./common\";\nimport { ISEOMetaData } from \"./seo\";\nimport { IStore } from \"./store\";\n\nexport const TAGS = ['new', 'hot', 'sale', 'featured', 'exclusive'] as const;\n\nexport type Tag = typeof TAGS[number];\n\nexport interface ICategory {\n _id: string;\n name: ILocalizedString;\n description?: ILocalizedString;\n slug: string;\n parent?: string | null;\n parentName?: string;\n children?: string[];\n level?: number;\n status: boolean;\n store: IStore;\n skuInitial?: string;\n sortPosition?: number;\n tags: Tag[];\n\n images: {\n desktopBanner?: string;\n mobileBanner?: string;\n shopPageThumbnail?: string;\n categoryThumbnail?: string;\n };\n\n seoMetaData: ISEOMetaData;\n metaData: {\n\n };\n createdAt?: string;\n updatedAt?: string;\n productCount?: number;\n\n [key: string]: any; // Optional catch-all for dynamic properties\n}\n\nexport interface CategoryQueryParams {\n page?: number;\n limit?: number;\n name?: string;\n status?: string;\n minLevel?: string;\n maxLevel?: string;\n}\n\nexport interface CategoryResponse {\n categories: ICategory[];\n totalCategories: number;\n totalPages: number;\n currentPage: number;\n}\n","import { ICategory, ILocalizedString, IProductType, ISEOMetaData, IStore, IVariant } from \"./\";\n\nexport interface IPrices {\n originalPrice: number;\n price: number\n discount?: number;\n}\n\nexport interface IImages {\n productImage?: string;\n seoImage?: string;\n displayImage?: string;\n}
|
|
1
|
+
{"version":3,"sources":["../src/interfaces/category.ts","../src/interfaces/product.ts"],"sourcesContent":["import { ILocalizedString } from \"./common\";\nimport { ISEOMetaData } from \"./seo\";\nimport { IStore } from \"./store\";\n\nexport const TAGS = ['new', 'hot', 'sale', 'featured', 'exclusive'] as const;\n\nexport type Tag = typeof TAGS[number];\n\nexport interface ICategory {\n _id: string;\n name: ILocalizedString;\n description?: ILocalizedString;\n slug: string;\n parent?: string | null;\n parentName?: string;\n children?: string[];\n level?: number;\n status: boolean;\n store: IStore;\n skuInitial?: string;\n sortPosition?: number;\n tags: Tag[];\n\n images: {\n desktopBanner?: string;\n mobileBanner?: string;\n shopPageThumbnail?: string;\n categoryThumbnail?: string;\n };\n\n seoMetaData: ISEOMetaData;\n metaData: {\n\n };\n createdAt?: string;\n updatedAt?: string;\n productCount?: number;\n\n [key: string]: any; // Optional catch-all for dynamic properties\n}\n\nexport interface CategoryQueryParams {\n page?: number;\n limit?: number;\n name?: string;\n status?: string;\n minLevel?: string;\n maxLevel?: string;\n}\n\nexport interface CategoryResponse {\n categories: ICategory[];\n totalCategories: number;\n totalPages: number;\n currentPage: number;\n}\n","import { ICategory, ILocalizedString, IProductType, ISEOMetaData, IStore, IVariant } from \"./\";\n\nexport interface IPrices {\n originalPrice: number;\n price: number\n discount?: number;\n}\n\nexport interface IImages {\n productImage?: string;\n seoImage?: string;\n displayImage?: string;\n}\n\nexport const ProdductExclusiveTAGS = [\n \"new\",\n \"hot\",\n \"sale\",\n \"featured\",\n \"exclusive\",\n \"trending\",\n \"pack\",\n \"bundles\"\n] as const;\n\nexport type ProductExclusiveTag = typeof ProdductExclusiveTAGS[number];\n\nexport interface IProduct {\n _id: string;\n sku: string;\n barcode?: string;\n title: ILocalizedString;\n description: ILocalizedString;\n slug: string;\n categories: ICategory[];\n category: ICategory;\n productType: IProductType;\n tags: ProductExclusiveTag[];\n image: string[];\n stock: number;\n sales: number;\n tag: string[];\n variants: IVariant[];\n hasVariant: boolean;\n hasSize: boolean;\n prices: IPrices;\n status: boolean;\n store: IStore;\n images: IImages;\n seoMetaData: ISEOMetaData;\n metaData: {};\n createdAt?: Date;\n updatedAt?: Date;\n\n // Optional: virtual populate\n variantList?: IVariant[];\n\n [key: string]: any;\n}\n\nexport interface IProductQuery {\n page?: number;\n limit?: number;\n category?: string;\n categories?: string[];\n title?: string;\n price?: string;\n stockStatus?: string;\n published?: string;\n status?: boolean;\n minPrice?: string;\n maxPrice?: string;\n}\n\nexport interface IProductResponse {\n products: IProduct[];\n totalDoc: number;\n limits: number;\n pages: number;\n}\n\nexport interface IProductUpdate {\n ids: string[];\n [key: string]: any;\n}\n"],"mappings":";AAIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;;;ACU3D,IAAM,wBAAwB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signskart/shared",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.22",
|
|
4
4
|
"description": "Production-grade upload manager SDK with queue, progress tracking, retry logic, and multi-provider support (S3, Cloudinary).",
|
|
5
5
|
"author": "Signskart",
|
|
6
6
|
"license": "UNLICENSED",
|