@signskart/shared 1.3.36 → 1.3.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.
package/dist/index.d.mts CHANGED
@@ -269,8 +269,11 @@ interface IGlobalSetting {
269
269
  updatedAt: string;
270
270
  }
271
271
 
272
- declare const DISCOUNT_TYPES: readonly ["PERCENTAGE", "FIXED"];
273
- type DiscountTypeEnum = (typeof DISCOUNT_TYPES)[number];
272
+ declare const DiscountTypeEnum: {
273
+ readonly PERCENTAGE: "PERCENTAGE";
274
+ readonly FIXED: "FIXED";
275
+ };
276
+ type DiscountTypeEnum = (typeof DiscountTypeEnum)[keyof typeof DiscountTypeEnum];
274
277
  interface IDiscountType {
275
278
  type: DiscountTypeEnum;
276
279
  value: number;
@@ -637,4 +640,4 @@ interface IOrder {
637
640
  updatedAt: string;
638
641
  }
639
642
 
640
- export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, DISCOUNT_TYPES, type DiscountTypeEnum, type IAddress, type IAdmin, type IBanner, type IBannerFormValues, type ICart, type ICartItem, type ICategory, type ICountry, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomer, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type IOrder, type IOrderItem, 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 IState, 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, type OrderStatus, type PaymentMethod, type PaymentStatus, ProdductExclusiveTAGS, type ProductExclusiveTag, TAGS, type Tag };
643
+ export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, DiscountTypeEnum, type IAddress, type IAdmin, type IBanner, type IBannerFormValues, type ICart, type ICartItem, type ICategory, type ICountry, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomer, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type IOrder, type IOrderItem, 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 IState, 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, type OrderStatus, type PaymentMethod, type PaymentStatus, ProdductExclusiveTAGS, type ProductExclusiveTag, TAGS, type Tag };
package/dist/index.d.ts CHANGED
@@ -269,8 +269,11 @@ interface IGlobalSetting {
269
269
  updatedAt: string;
270
270
  }
271
271
 
272
- declare const DISCOUNT_TYPES: readonly ["PERCENTAGE", "FIXED"];
273
- type DiscountTypeEnum = (typeof DISCOUNT_TYPES)[number];
272
+ declare const DiscountTypeEnum: {
273
+ readonly PERCENTAGE: "PERCENTAGE";
274
+ readonly FIXED: "FIXED";
275
+ };
276
+ type DiscountTypeEnum = (typeof DiscountTypeEnum)[keyof typeof DiscountTypeEnum];
274
277
  interface IDiscountType {
275
278
  type: DiscountTypeEnum;
276
279
  value: number;
@@ -637,4 +640,4 @@ interface IOrder {
637
640
  updatedAt: string;
638
641
  }
639
642
 
640
- export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, DISCOUNT_TYPES, type DiscountTypeEnum, type IAddress, type IAdmin, type IBanner, type IBannerFormValues, type ICart, type ICartItem, type ICategory, type ICountry, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomer, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type IOrder, type IOrderItem, 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 IState, 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, type OrderStatus, type PaymentMethod, type PaymentStatus, ProdductExclusiveTAGS, type ProductExclusiveTag, TAGS, type Tag };
643
+ export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, DiscountTypeEnum, type IAddress, type IAdmin, type IBanner, type IBannerFormValues, type ICart, type ICartItem, type ICategory, type ICountry, type ICoupon, type ICreateStoreDTO, type ICurrency, type ICustomer, type ICustomerPhotos, type IDiscountType, type IFrameChartDocument, type IFrameChartFormProps, type IGlobalSetting, type IImages, type ILanguage, type ILocalizedString, type IOrder, type IOrderItem, 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 IState, 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, type OrderStatus, type PaymentMethod, type PaymentStatus, ProdductExclusiveTAGS, type ProductExclusiveTag, TAGS, type Tag };
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- DISCOUNT_TYPES: () => DISCOUNT_TYPES,
23
+ DiscountTypeEnum: () => DiscountTypeEnum,
24
24
  ProdductExclusiveTAGS: () => ProdductExclusiveTAGS,
25
25
  TAGS: () => TAGS
26
26
  });
@@ -42,5 +42,8 @@ var ProdductExclusiveTAGS = [
42
42
  ];
43
43
 
44
44
  // src/interfaces/coupon.ts
45
- var DISCOUNT_TYPES = ["PERCENTAGE", "FIXED"];
45
+ var DiscountTypeEnum = {
46
+ PERCENTAGE: "PERCENTAGE",
47
+ FIXED: "FIXED"
48
+ };
46
49
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/interfaces/category.ts","../src/interfaces/product.ts","../src/interfaces/coupon.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\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 showInMenu: boolean;\n showInNavbar: 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 stock: number;\n sales: number;\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","import { ILocalizedString } from './common';\nimport { IStore } from './store';\n\nexport const DISCOUNT_TYPES = [\"PERCENTAGE\", \"FIXED\"] as const;\n\nexport type DiscountTypeEnum = (typeof DISCOUNT_TYPES)[number];\n\nexport interface IDiscountType {\n type: DiscountTypeEnum;\n value: number;\n}\n\nexport interface ICoupon {\n _id: string;\n title: ILocalizedString;\n logo: string;\n couponCode: string;\n startTime: Date;\n endTime: Date;\n discountType: IDiscountType;\n minimumAmount: number;\n isPromotional: boolean;\n status: boolean;\n store: IStore;\n createdAt: Date;\n updatedAt: Date;\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;;;ACU3D,IAAM,wBAAwB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;;;ACpBO,IAAM,iBAAiB,CAAC,cAAc,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/interfaces/category.ts","../src/interfaces/product.ts","../src/interfaces/coupon.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\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 showInMenu: boolean;\n showInNavbar: 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 stock: number;\n sales: number;\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","import { ILocalizedString } from './common';\nimport { IStore } from './store';\n\nexport const DiscountTypeEnum = {\n PERCENTAGE: \"PERCENTAGE\",\n FIXED: \"FIXED\",\n} as const;\n\nexport type DiscountTypeEnum = (typeof DiscountTypeEnum)[keyof typeof DiscountTypeEnum];\n\nexport interface IDiscountType {\n type: DiscountTypeEnum;\n value: number;\n}\n\nexport interface ICoupon {\n _id: string;\n title: ILocalizedString;\n logo: string;\n couponCode: string;\n startTime: Date;\n endTime: Date;\n discountType: IDiscountType;\n minimumAmount: number;\n isPromotional: boolean;\n status: boolean;\n store: IStore;\n createdAt: Date;\n updatedAt: Date;\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;;;ACU3D,IAAM,wBAAwB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;;;ACpBO,IAAM,mBAAmB;AAAA,EAC5B,YAAY;AAAA,EACZ,OAAO;AACX;","names":[]}
package/dist/index.mjs CHANGED
@@ -14,9 +14,12 @@ var ProdductExclusiveTAGS = [
14
14
  ];
15
15
 
16
16
  // src/interfaces/coupon.ts
17
- var DISCOUNT_TYPES = ["PERCENTAGE", "FIXED"];
17
+ var DiscountTypeEnum = {
18
+ PERCENTAGE: "PERCENTAGE",
19
+ FIXED: "FIXED"
20
+ };
18
21
  export {
19
- DISCOUNT_TYPES,
22
+ DiscountTypeEnum,
20
23
  ProdductExclusiveTAGS,
21
24
  TAGS
22
25
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/interfaces/category.ts","../src/interfaces/product.ts","../src/interfaces/coupon.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\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 showInMenu: boolean;\n showInNavbar: 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 stock: number;\n sales: number;\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","import { ILocalizedString } from './common';\nimport { IStore } from './store';\n\nexport const DISCOUNT_TYPES = [\"PERCENTAGE\", \"FIXED\"] as const;\n\nexport type DiscountTypeEnum = (typeof DISCOUNT_TYPES)[number];\n\nexport interface IDiscountType {\n type: DiscountTypeEnum;\n value: number;\n}\n\nexport interface ICoupon {\n _id: string;\n title: ILocalizedString;\n logo: string;\n couponCode: string;\n startTime: Date;\n endTime: Date;\n discountType: IDiscountType;\n minimumAmount: number;\n isPromotional: boolean;\n status: boolean;\n store: IStore;\n createdAt: Date;\n updatedAt: Date;\n}"],"mappings":";AAIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;;;ACU3D,IAAM,wBAAwB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;;;ACpBO,IAAM,iBAAiB,CAAC,cAAc,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/interfaces/category.ts","../src/interfaces/product.ts","../src/interfaces/coupon.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\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 showInMenu: boolean;\n showInNavbar: 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 stock: number;\n sales: number;\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","import { ILocalizedString } from './common';\nimport { IStore } from './store';\n\nexport const DiscountTypeEnum = {\n PERCENTAGE: \"PERCENTAGE\",\n FIXED: \"FIXED\",\n} as const;\n\nexport type DiscountTypeEnum = (typeof DiscountTypeEnum)[keyof typeof DiscountTypeEnum];\n\nexport interface IDiscountType {\n type: DiscountTypeEnum;\n value: number;\n}\n\nexport interface ICoupon {\n _id: string;\n title: ILocalizedString;\n logo: string;\n couponCode: string;\n startTime: Date;\n endTime: Date;\n discountType: IDiscountType;\n minimumAmount: number;\n isPromotional: boolean;\n status: boolean;\n store: IStore;\n createdAt: Date;\n updatedAt: Date;\n}"],"mappings":";AAIO,IAAM,OAAO,CAAC,OAAO,OAAO,QAAQ,YAAY,WAAW;;;ACU3D,IAAM,wBAAwB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;;;ACpBO,IAAM,mBAAmB;AAAA,EAC5B,YAAY;AAAA,EACZ,OAAO;AACX;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signskart/shared",
3
- "version": "1.3.36",
3
+ "version": "1.3.37",
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",