@signskart/shared 1.3.31 → 1.3.33

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
@@ -278,15 +278,15 @@ interface ICoupon {
278
278
  title: ILocalizedString;
279
279
  logo: string;
280
280
  couponCode: string;
281
- startTime: string;
282
- endTime: string;
281
+ startTime: Date;
282
+ endTime: Date;
283
283
  discountType: IDiscountType;
284
284
  minimumAmount: number;
285
285
  isPromotional: boolean;
286
286
  status: boolean;
287
287
  store: IStore;
288
- createdAt: string;
289
- updatedAt: string;
288
+ createdAt: Date;
289
+ updatedAt: Date;
290
290
  }
291
291
 
292
292
  interface IVariantPrices {
@@ -584,4 +584,55 @@ interface ICustomer {
584
584
  updatedAt: string;
585
585
  }
586
586
 
587
- export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, type IAddress, type IAdmin, type IBanner, type IBannerFormValues, 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 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, ProdductExclusiveTAGS, type ProductExclusiveTag, TAGS, type Tag };
587
+ interface ICartItem {
588
+ _id: string;
589
+ cart: ICart;
590
+ product: IProduct;
591
+ quantity: number;
592
+ totalAmount: number;
593
+ createdAt: string;
594
+ updatedAt: string;
595
+ }
596
+
597
+ interface ICart {
598
+ _id: string;
599
+ cartItems: ICartItem[];
600
+ user: ICustomer;
601
+ coupon: ICoupon;
602
+ subTotalAmount: number;
603
+ discountAmount: number;
604
+ totalAmount: number;
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ }
608
+
609
+ interface IOrderItem {
610
+ _id: string;
611
+ order: IOrder;
612
+ product: IProduct;
613
+ quantity: number;
614
+ totalAmount: number;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ }
618
+
619
+ type OrderStatus = 'CREATED' | 'RECEIVED' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'ARCHIVE' | 'FAILED';
620
+ type PaymentStatus = 'PENDING' | 'PROCESSING' | 'FAILED' | 'CANCELLED' | 'PENDING_CAPTURE' | 'COMPLETED' | 'VOIDED' | 'REDIRECTED_TO_GATEWAY' | 'UNKNOWN' | 'REFUNDED' | 'PARTIALLY_REFUNDED';
621
+ type PaymentMethod = 'CREDIT_CARD' | 'PAYPAL' | 'STRIPE' | 'CHECK' | 'APPLE_PAY';
622
+ interface IOrder {
623
+ _id: string;
624
+ orderItems: IOrderItem[];
625
+ cart: ICart;
626
+ coupon: ICoupon;
627
+ customer: ICustomer;
628
+ subTotalAmount: number;
629
+ discountAmount: number;
630
+ totalAmount: number;
631
+ paymentStatus: PaymentStatus;
632
+ paymentMethod: PaymentMethod;
633
+ orderStatus: OrderStatus;
634
+ createdAt: string;
635
+ updatedAt: string;
636
+ }
637
+
638
+ export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, 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
@@ -278,15 +278,15 @@ interface ICoupon {
278
278
  title: ILocalizedString;
279
279
  logo: string;
280
280
  couponCode: string;
281
- startTime: string;
282
- endTime: string;
281
+ startTime: Date;
282
+ endTime: Date;
283
283
  discountType: IDiscountType;
284
284
  minimumAmount: number;
285
285
  isPromotional: boolean;
286
286
  status: boolean;
287
287
  store: IStore;
288
- createdAt: string;
289
- updatedAt: string;
288
+ createdAt: Date;
289
+ updatedAt: Date;
290
290
  }
291
291
 
292
292
  interface IVariantPrices {
@@ -584,4 +584,55 @@ interface ICustomer {
584
584
  updatedAt: string;
585
585
  }
586
586
 
587
- export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, type IAddress, type IAdmin, type IBanner, type IBannerFormValues, 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 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, ProdductExclusiveTAGS, type ProductExclusiveTag, TAGS, type Tag };
587
+ interface ICartItem {
588
+ _id: string;
589
+ cart: ICart;
590
+ product: IProduct;
591
+ quantity: number;
592
+ totalAmount: number;
593
+ createdAt: string;
594
+ updatedAt: string;
595
+ }
596
+
597
+ interface ICart {
598
+ _id: string;
599
+ cartItems: ICartItem[];
600
+ user: ICustomer;
601
+ coupon: ICoupon;
602
+ subTotalAmount: number;
603
+ discountAmount: number;
604
+ totalAmount: number;
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ }
608
+
609
+ interface IOrderItem {
610
+ _id: string;
611
+ order: IOrder;
612
+ product: IProduct;
613
+ quantity: number;
614
+ totalAmount: number;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ }
618
+
619
+ type OrderStatus = 'CREATED' | 'RECEIVED' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'ARCHIVE' | 'FAILED';
620
+ type PaymentStatus = 'PENDING' | 'PROCESSING' | 'FAILED' | 'CANCELLED' | 'PENDING_CAPTURE' | 'COMPLETED' | 'VOIDED' | 'REDIRECTED_TO_GATEWAY' | 'UNKNOWN' | 'REFUNDED' | 'PARTIALLY_REFUNDED';
621
+ type PaymentMethod = 'CREDIT_CARD' | 'PAYPAL' | 'STRIPE' | 'CHECK' | 'APPLE_PAY';
622
+ interface IOrder {
623
+ _id: string;
624
+ orderItems: IOrderItem[];
625
+ cart: ICart;
626
+ coupon: ICoupon;
627
+ customer: ICustomer;
628
+ subTotalAmount: number;
629
+ discountAmount: number;
630
+ totalAmount: number;
631
+ paymentStatus: PaymentStatus;
632
+ paymentMethod: PaymentMethod;
633
+ orderStatus: OrderStatus;
634
+ createdAt: string;
635
+ updatedAt: string;
636
+ }
637
+
638
+ export { type AdminRole, type BannerLink, type BannerMedia, type BannerMediaType, type BannerVisibility, type CategoryQueryParams, type CategoryResponse, type CustomerPhotoStatus, type CustomerPhotosQueryParams, 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signskart/shared",
3
- "version": "1.3.31",
3
+ "version": "1.3.33",
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",