@signskart/shared 1.3.8 → 1.3.10

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
@@ -42,7 +42,7 @@ interface ICreateStoreDTO {
42
42
  declare const TAGS: readonly ["new", "hot", "sale", "featured", "exclusive"];
43
43
  type Tag = typeof TAGS[number];
44
44
  interface ICategory {
45
- _id?: string;
45
+ _id: string;
46
46
  name: ILocalizedString;
47
47
  description?: ILocalizedString;
48
48
  slug: string;
@@ -128,6 +128,7 @@ interface IProduct {
128
128
  tag: string[];
129
129
  variants: IVariant[];
130
130
  hasVariant: boolean;
131
+ hasSize: boolean;
131
132
  prices: IPrices;
132
133
  status: boolean;
133
134
  store: IStore;
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ interface ICreateStoreDTO {
42
42
  declare const TAGS: readonly ["new", "hot", "sale", "featured", "exclusive"];
43
43
  type Tag = typeof TAGS[number];
44
44
  interface ICategory {
45
- _id?: string;
45
+ _id: string;
46
46
  name: ILocalizedString;
47
47
  description?: ILocalizedString;
48
48
  slug: string;
@@ -128,6 +128,7 @@ interface IProduct {
128
128
  tag: string[];
129
129
  variants: IVariant[];
130
130
  hasVariant: boolean;
131
+ hasSize: boolean;
131
132
  prices: IPrices;
132
133
  status: boolean;
133
134
  store: IStore;
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 { 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 +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 { 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":[]}
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@signskart/shared",
3
- "version": "1.3.8",
3
+ "version": "1.3.10",
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",
7
7
  "main": "dist/index.cjs",
8
8
  "module": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
- "files": ["dist"],
10
+ "files": [
11
+ "dist"
12
+ ],
11
13
  "exports": {
12
14
  ".": {
13
15
  "import": "./dist/index.js",
@@ -32,4 +34,4 @@
32
34
  "tsup": "^8.0.0",
33
35
  "typescript": "^5.0.0"
34
36
  }
35
- }
37
+ }