@signskart/shared 1.3.12 → 1.3.14
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 +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,14 @@ interface ILocalizedString {
|
|
|
2
2
|
[languageCode: string]: string;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
interface ISEOMetaData {
|
|
6
|
+
title?: string;
|
|
7
|
+
header?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
keywords?: string[];
|
|
10
|
+
canonicalUrl?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
interface ICurrency {
|
|
6
14
|
_id?: string;
|
|
7
15
|
name: string;
|
|
@@ -61,12 +69,7 @@ interface ICategory {
|
|
|
61
69
|
shopPageThumbnail?: string;
|
|
62
70
|
categoryThumbnail?: string;
|
|
63
71
|
};
|
|
64
|
-
seoMetaData:
|
|
65
|
-
titleTag: string;
|
|
66
|
-
headerTag: string;
|
|
67
|
-
metaDescription: string;
|
|
68
|
-
keywords: string;
|
|
69
|
-
};
|
|
72
|
+
seoMetaData: ISEOMetaData;
|
|
70
73
|
metaData: {};
|
|
71
74
|
createdAt?: string;
|
|
72
75
|
updatedAt?: string;
|
|
@@ -93,18 +96,13 @@ interface IPrices {
|
|
|
93
96
|
price: number;
|
|
94
97
|
discount?: number;
|
|
95
98
|
}
|
|
96
|
-
interface IMetaDataProduct {
|
|
97
|
-
title?: string;
|
|
98
|
-
header?: string;
|
|
99
|
-
description?: string;
|
|
100
|
-
keywords?: string[];
|
|
101
|
-
canonicalUrl?: string;
|
|
102
|
-
}
|
|
103
99
|
interface IImages {
|
|
104
100
|
productImage?: string;
|
|
105
101
|
seoImage?: string;
|
|
106
102
|
displayImage?: string;
|
|
107
103
|
}
|
|
104
|
+
declare const ProdductExclusiveTAGS: readonly ["new", "hot", "sale", "featured", "exclusive", "trnding", "pack", "bundles"];
|
|
105
|
+
type ProdductExclusiveTag = typeof ProdductExclusiveTAGS[number];
|
|
108
106
|
interface IProduct {
|
|
109
107
|
_id: string;
|
|
110
108
|
sku: string;
|
|
@@ -115,6 +113,7 @@ interface IProduct {
|
|
|
115
113
|
categories: ICategory[];
|
|
116
114
|
category: ICategory;
|
|
117
115
|
productType: IProductType;
|
|
116
|
+
tags: ProdductExclusiveTag[];
|
|
118
117
|
image: string[];
|
|
119
118
|
stock: number;
|
|
120
119
|
sales: number;
|
|
@@ -126,7 +125,7 @@ interface IProduct {
|
|
|
126
125
|
status: boolean;
|
|
127
126
|
store: IStore;
|
|
128
127
|
images: IImages;
|
|
129
|
-
seoMetaData:
|
|
128
|
+
seoMetaData: ISEOMetaData;
|
|
130
129
|
metaData: {};
|
|
131
130
|
createdAt?: Date;
|
|
132
131
|
updatedAt?: Date;
|
|
@@ -302,6 +301,7 @@ interface IVariant {
|
|
|
302
301
|
prices: IVariantPrices;
|
|
303
302
|
image?: string;
|
|
304
303
|
templateJson?: string;
|
|
304
|
+
seoMetaData: ISEOMetaData;
|
|
305
305
|
size: {
|
|
306
306
|
width: number;
|
|
307
307
|
height: number;
|
|
@@ -503,4 +503,4 @@ interface CustomerPhotosQueryParams {
|
|
|
503
503
|
store?: string;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
export { type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, type IBanner, type IBannerFormValues, type ICategory, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type
|
|
506
|
+
export { type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, type IBanner, type IBannerFormValues, type ICategory, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type IPrices, type IPricingChartDocument, type IPricingChartFormProps, type IPricingData, type IPricingTier, type IProduct, type IProductQuery, type IProductResponse, type IProductType, type IProductUpdate, type IProductVariantQuery, type ISEOMetaData, type IShippingChartDocument, type IShippingChartFormProps, type IShippingData, type IShippingTier, type IStore, type IStoreSettings, type ISubscriber, type ISubscriberCampaign, type ISubscriberCampaignContent, type ISubscriberCampaignLog, type ISubscriberCampaignLogMeta, type ISubscriberCampaignLogMetaLocation, type ISubscriberEvent, type ISubscriberEventBase, type ISubscriberEventSubscribed, type ISubscriberEventUpdated, type ISubscriberList, type ISubscriberPreference, type ISubscriberSegment, type ISubscriberSegmentRules, type ISubscriberSubscription, type IVariant, type IVariantChart, type IVariantChartFormProps, type IVariantOption, type IVariantPrices, type LinkType, ProdductExclusiveTAGS, type ProdductExclusiveTag, TAGS, type Tag };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,14 @@ interface ILocalizedString {
|
|
|
2
2
|
[languageCode: string]: string;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
interface ISEOMetaData {
|
|
6
|
+
title?: string;
|
|
7
|
+
header?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
keywords?: string[];
|
|
10
|
+
canonicalUrl?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
interface ICurrency {
|
|
6
14
|
_id?: string;
|
|
7
15
|
name: string;
|
|
@@ -61,12 +69,7 @@ interface ICategory {
|
|
|
61
69
|
shopPageThumbnail?: string;
|
|
62
70
|
categoryThumbnail?: string;
|
|
63
71
|
};
|
|
64
|
-
seoMetaData:
|
|
65
|
-
titleTag: string;
|
|
66
|
-
headerTag: string;
|
|
67
|
-
metaDescription: string;
|
|
68
|
-
keywords: string;
|
|
69
|
-
};
|
|
72
|
+
seoMetaData: ISEOMetaData;
|
|
70
73
|
metaData: {};
|
|
71
74
|
createdAt?: string;
|
|
72
75
|
updatedAt?: string;
|
|
@@ -93,18 +96,13 @@ interface IPrices {
|
|
|
93
96
|
price: number;
|
|
94
97
|
discount?: number;
|
|
95
98
|
}
|
|
96
|
-
interface IMetaDataProduct {
|
|
97
|
-
title?: string;
|
|
98
|
-
header?: string;
|
|
99
|
-
description?: string;
|
|
100
|
-
keywords?: string[];
|
|
101
|
-
canonicalUrl?: string;
|
|
102
|
-
}
|
|
103
99
|
interface IImages {
|
|
104
100
|
productImage?: string;
|
|
105
101
|
seoImage?: string;
|
|
106
102
|
displayImage?: string;
|
|
107
103
|
}
|
|
104
|
+
declare const ProdductExclusiveTAGS: readonly ["new", "hot", "sale", "featured", "exclusive", "trnding", "pack", "bundles"];
|
|
105
|
+
type ProdductExclusiveTag = typeof ProdductExclusiveTAGS[number];
|
|
108
106
|
interface IProduct {
|
|
109
107
|
_id: string;
|
|
110
108
|
sku: string;
|
|
@@ -115,6 +113,7 @@ interface IProduct {
|
|
|
115
113
|
categories: ICategory[];
|
|
116
114
|
category: ICategory;
|
|
117
115
|
productType: IProductType;
|
|
116
|
+
tags: ProdductExclusiveTag[];
|
|
118
117
|
image: string[];
|
|
119
118
|
stock: number;
|
|
120
119
|
sales: number;
|
|
@@ -126,7 +125,7 @@ interface IProduct {
|
|
|
126
125
|
status: boolean;
|
|
127
126
|
store: IStore;
|
|
128
127
|
images: IImages;
|
|
129
|
-
seoMetaData:
|
|
128
|
+
seoMetaData: ISEOMetaData;
|
|
130
129
|
metaData: {};
|
|
131
130
|
createdAt?: Date;
|
|
132
131
|
updatedAt?: Date;
|
|
@@ -302,6 +301,7 @@ interface IVariant {
|
|
|
302
301
|
prices: IVariantPrices;
|
|
303
302
|
image?: string;
|
|
304
303
|
templateJson?: string;
|
|
304
|
+
seoMetaData: ISEOMetaData;
|
|
305
305
|
size: {
|
|
306
306
|
width: number;
|
|
307
307
|
height: number;
|
|
@@ -503,4 +503,4 @@ interface CustomerPhotosQueryParams {
|
|
|
503
503
|
store?: string;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
export { type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, type IBanner, type IBannerFormValues, type ICategory, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type
|
|
506
|
+
export { type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, type IBanner, type IBannerFormValues, type ICategory, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type IPrices, type IPricingChartDocument, type IPricingChartFormProps, type IPricingData, type IPricingTier, type IProduct, type IProductQuery, type IProductResponse, type IProductType, type IProductUpdate, type IProductVariantQuery, type ISEOMetaData, type IShippingChartDocument, type IShippingChartFormProps, type IShippingData, type IShippingTier, type IStore, type IStoreSettings, type ISubscriber, type ISubscriberCampaign, type ISubscriberCampaignContent, type ISubscriberCampaignLog, type ISubscriberCampaignLogMeta, type ISubscriberCampaignLogMetaLocation, type ISubscriberEvent, type ISubscriberEventBase, type ISubscriberEventSubscribed, type ISubscriberEventUpdated, type ISubscriberList, type ISubscriberPreference, type ISubscriberSegment, type ISubscriberSegmentRules, type ISubscriberSubscription, type IVariant, type IVariantChart, type IVariantChartFormProps, type IVariantOption, type IVariantPrices, type LinkType, ProdductExclusiveTAGS, type ProdductExclusiveTag, TAGS, type Tag };
|
package/dist/index.js
CHANGED
|
@@ -20,14 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
ProdductExclusiveTAGS: () => ProdductExclusiveTAGS,
|
|
23
24
|
TAGS: () => TAGS
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(index_exports);
|
|
26
27
|
|
|
27
28
|
// src/interfaces/category.ts
|
|
28
29
|
var TAGS = ["new", "hot", "sale", "featured", "exclusive"];
|
|
30
|
+
|
|
31
|
+
// src/interfaces/product.ts
|
|
32
|
+
var ProdductExclusiveTAGS = ["new", "hot", "sale", "featured", "exclusive", "trnding", "pack", "bundles"];
|
|
29
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
34
|
0 && (module.exports = {
|
|
35
|
+
ProdductExclusiveTAGS,
|
|
31
36
|
TAGS
|
|
32
37
|
});
|
|
33
38
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/interfaces/category.ts"],"sourcesContent":["export * from './interfaces';\n","import { ILocalizedString } from \"./common\";\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:
|
|
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 = ['new', 'hot', 'sale', 'featured', 'exclusive', 'trnding', 'pack', 'bundles'] as const;\n\nexport type ProdductExclusiveTag = 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: ProdductExclusiveTag[];\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,CAAC,OAAO,OAAO,QAAQ,YAAY,aAAa,WAAW,QAAQ,SAAS;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// src/interfaces/category.ts
|
|
2
2
|
var TAGS = ["new", "hot", "sale", "featured", "exclusive"];
|
|
3
|
+
|
|
4
|
+
// src/interfaces/product.ts
|
|
5
|
+
var ProdductExclusiveTAGS = ["new", "hot", "sale", "featured", "exclusive", "trnding", "pack", "bundles"];
|
|
3
6
|
export {
|
|
7
|
+
ProdductExclusiveTAGS,
|
|
4
8
|
TAGS
|
|
5
9
|
};
|
|
6
10
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interfaces/category.ts"],"sourcesContent":["import { ILocalizedString } from \"./common\";\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:
|
|
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 = ['new', 'hot', 'sale', 'featured', 'exclusive', 'trnding', 'pack', 'bundles'] as const;\n\nexport type ProdductExclusiveTag = 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: ProdductExclusiveTag[];\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,CAAC,OAAO,OAAO,QAAQ,YAAY,aAAa,WAAW,QAAQ,SAAS;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signskart/shared",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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",
|