@signskart/shared 1.3.11 → 1.3.13

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 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,20 +69,8 @@ interface ICategory {
61
69
  shopPageThumbnail?: string;
62
70
  categoryThumbnail?: string;
63
71
  };
64
- metaData?: {
65
- category?: {
66
- titleTag?: string;
67
- headerTag?: string;
68
- metaDescription?: string;
69
- csrKeywords?: string;
70
- };
71
- product?: {
72
- titleTag?: string;
73
- headerTag?: string;
74
- metaDescription?: string;
75
- csrKeywords?: string;
76
- };
77
- };
72
+ seoMetaData: ISEOMetaData;
73
+ metaData: {};
78
74
  createdAt?: string;
79
75
  updatedAt?: string;
80
76
  productCount?: number;
@@ -100,13 +96,6 @@ interface IPrices {
100
96
  price: number;
101
97
  discount?: number;
102
98
  }
103
- interface IMetaDataProduct {
104
- title?: string;
105
- header?: string;
106
- description?: string;
107
- keywords?: string[];
108
- canonicalUrl?: string;
109
- }
110
99
  interface IImages {
111
100
  productImage?: string;
112
101
  seoImage?: string;
@@ -133,7 +122,7 @@ interface IProduct {
133
122
  status: boolean;
134
123
  store: IStore;
135
124
  images: IImages;
136
- seoMetaData: IMetaDataProduct;
125
+ seoMetaData: ISEOMetaData;
137
126
  metaData: {};
138
127
  createdAt?: Date;
139
128
  updatedAt?: Date;
@@ -309,6 +298,7 @@ interface IVariant {
309
298
  prices: IVariantPrices;
310
299
  image?: string;
311
300
  templateJson?: string;
301
+ seoMetaData: ISEOMetaData;
312
302
  size: {
313
303
  width: number;
314
304
  height: number;
@@ -510,4 +500,4 @@ interface CustomerPhotosQueryParams {
510
500
  store?: string;
511
501
  }
512
502
 
513
- 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 IMetaDataProduct, type IPrices, type IPricingChartDocument, type IPricingChartFormProps, type IPricingData, type IPricingTier, type IProduct, type IProductQuery, type IProductResponse, type IProductType, type IProductUpdate, type IProductVariantQuery, 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, TAGS, type Tag };
503
+ 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, 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,20 +69,8 @@ interface ICategory {
61
69
  shopPageThumbnail?: string;
62
70
  categoryThumbnail?: string;
63
71
  };
64
- metaData?: {
65
- category?: {
66
- titleTag?: string;
67
- headerTag?: string;
68
- metaDescription?: string;
69
- csrKeywords?: string;
70
- };
71
- product?: {
72
- titleTag?: string;
73
- headerTag?: string;
74
- metaDescription?: string;
75
- csrKeywords?: string;
76
- };
77
- };
72
+ seoMetaData: ISEOMetaData;
73
+ metaData: {};
78
74
  createdAt?: string;
79
75
  updatedAt?: string;
80
76
  productCount?: number;
@@ -100,13 +96,6 @@ interface IPrices {
100
96
  price: number;
101
97
  discount?: number;
102
98
  }
103
- interface IMetaDataProduct {
104
- title?: string;
105
- header?: string;
106
- description?: string;
107
- keywords?: string[];
108
- canonicalUrl?: string;
109
- }
110
99
  interface IImages {
111
100
  productImage?: string;
112
101
  seoImage?: string;
@@ -133,7 +122,7 @@ interface IProduct {
133
122
  status: boolean;
134
123
  store: IStore;
135
124
  images: IImages;
136
- seoMetaData: IMetaDataProduct;
125
+ seoMetaData: ISEOMetaData;
137
126
  metaData: {};
138
127
  createdAt?: Date;
139
128
  updatedAt?: Date;
@@ -309,6 +298,7 @@ interface IVariant {
309
298
  prices: IVariantPrices;
310
299
  image?: string;
311
300
  templateJson?: string;
301
+ seoMetaData: ISEOMetaData;
312
302
  size: {
313
303
  width: number;
314
304
  height: number;
@@ -510,4 +500,4 @@ interface CustomerPhotosQueryParams {
510
500
  store?: string;
511
501
  }
512
502
 
513
- 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 IMetaDataProduct, type IPrices, type IPricingChartDocument, type IPricingChartFormProps, type IPricingData, type IPricingTier, type IProduct, type IProductQuery, type IProductResponse, type IProductType, type IProductUpdate, type IProductVariantQuery, 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, TAGS, type Tag };
503
+ 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, TAGS, type Tag };
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 metaData?: {\n category?: {\n titleTag?: string;\n headerTag?: string;\n metaDescription?: string;\n csrKeywords?: string;\n };\n product?: {\n titleTag?: string;\n headerTag?: string;\n metaDescription?: string;\n csrKeywords?: string;\n };\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/interfaces/category.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;","names":[]}
@@ -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 metaData?: {\n category?: {\n titleTag?: string;\n headerTag?: string;\n metaDescription?: string;\n csrKeywords?: string;\n };\n product?: {\n titleTag?: string;\n headerTag?: string;\n metaDescription?: string;\n csrKeywords?: string;\n };\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"],"mappings":";AAGO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;","names":[]}
1
+ {"version":3,"sources":["../src/interfaces/category.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"],"mappings":";AAIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signskart/shared",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
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",