@signskart/shared 1.2.4 → 1.2.6

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/ReadMe.md CHANGED
@@ -59,8 +59,6 @@ We welcome:
59
59
  ## ✍️ Author Signature
60
60
 
61
61
  Warm regards,
62
- **Rajan Sharma**
63
- Senior Software Developer | Founder at [Signskart](https://signskart.com)
64
- 📧 [rajansharmaa46@gmail.com](mailto:rajansharmaa46@gmail.com)
65
-
66
- 🔗 [https://github.com/rajansharmax](https://github.com/rajansharmax)
62
+ **RAJAN KUMAR**
63
+ | Founder at [Signskart](https://signskart.com)
64
+ 📧 [admin@signskart.com](mailto:admin@signskart.com)
@@ -1,5 +1,7 @@
1
1
  import { ILocalizedString } from "./common";
2
2
  import { IStore } from "./store";
3
+ export declare const TAGS: readonly ["new", "hot", "sale", "featured", "exclusive"];
4
+ export type Tag = typeof TAGS[number];
3
5
  export interface ICategory {
4
6
  _id: string;
5
7
  name: ILocalizedString;
@@ -13,6 +15,7 @@ export interface ICategory {
13
15
  store: IStore;
14
16
  skuInitial?: string;
15
17
  sortPosition?: number;
18
+ tags?: Tag[];
16
19
  images?: {
17
20
  desktopBanner?: string;
18
21
  mobileBanner?: string;
@@ -1 +1 @@
1
- export {};
1
+ export const TAGS = ['new', 'hot', 'sale', 'featured', 'exclusive'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signskart/shared",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,6 +1,10 @@
1
1
  import { ILocalizedString } from "./common";
2
2
  import { IStore } from "./store";
3
3
 
4
+ export const TAGS = ['new', 'hot', 'sale', 'featured', 'exclusive'] as const;
5
+
6
+ export type Tag = typeof TAGS[number];
7
+
4
8
  export interface ICategory {
5
9
  _id: string;
6
10
  name: ILocalizedString;
@@ -14,6 +18,7 @@ export interface ICategory {
14
18
  store: IStore;
15
19
  skuInitial?: string;
16
20
  sortPosition?: number;
21
+ tags?: Tag[];
17
22
 
18
23
  images?: {
19
24
  desktopBanner?: string;