nextemos 3.7.3 → 3.7.5

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.
@@ -1,2 +1,4 @@
1
1
  export * from './httpMethods';
2
2
  export * from './httpStatusCode';
3
+ export * from './productDocumentTypes';
4
+ export * from './productFlags';
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./httpMethods"), exports);
18
18
  __exportStar(require("./httpStatusCode"), exports);
19
+ __exportStar(require("./productDocumentTypes"), exports);
20
+ __exportStar(require("./productFlags"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum ProductDocumentTypes {
2
+ Image = "Image",
3
+ Video = "Video",
4
+ Document = "Document",
5
+ Driver = "Driver"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductDocumentTypes = void 0;
4
+ var ProductDocumentTypes;
5
+ (function (ProductDocumentTypes) {
6
+ ProductDocumentTypes["Image"] = "Image";
7
+ ProductDocumentTypes["Video"] = "Video";
8
+ ProductDocumentTypes["Document"] = "Document";
9
+ ProductDocumentTypes["Driver"] = "Driver";
10
+ })(ProductDocumentTypes || (exports.ProductDocumentTypes = ProductDocumentTypes = {}));
@@ -1,6 +1,6 @@
1
1
  import { IResponse, IResponsePaging } from "./response";
2
2
  export interface IProductResponse extends IResponse {
3
- product: Product;
3
+ product: IProduct;
4
4
  }
5
5
  export interface IProductCategoryResponse extends IResponse {
6
6
  category: ICategory;
@@ -12,61 +12,61 @@ export interface ICategoryTreeResponse extends IResponse {
12
12
  category: ICategoryWithChilds;
13
13
  }
14
14
  export interface ISearchProductsResponse extends IResponsePaging {
15
- products: Product[];
15
+ products: IProduct[];
16
16
  facets: IFacet[];
17
17
  pointInTimeId: string;
18
18
  }
19
19
  export interface IGetAllProductsResponse extends IResponsePaging {
20
- products: Product[];
20
+ products: IProduct[];
21
21
  pointInTimeId: string;
22
22
  }
23
- export interface Product {
24
- id: number;
25
- productUrl: string;
26
- routePath: string;
27
- routeTitle: string;
28
- routeLocalizations: RouteLocalization[];
29
- routeDescription: string;
30
- parameterName: string;
31
- templateId: number;
32
- barcode: string;
33
- name: string;
34
- deci: number;
35
- shortName: string;
36
- description: string;
37
- sku: string;
38
- className: string;
39
- code: string;
40
- isApproved: any;
41
- isCompleted: any;
42
- scopeTypeId: number;
43
- isAssembleRequired: boolean;
44
- year: number;
45
- rptDate: string;
46
- seasonCode: string;
47
- orderRate: number;
48
- salesCount: number;
49
- isGiftCard: any;
50
- integrationCode: string;
51
- rates: Rate[];
52
- extensionData: any;
53
- stocksByBarcode: StocksByBarcode;
54
- stocksByWarehouse: StocksByWarehouse;
55
- basePrice: number;
56
- discountPrice: number;
57
- salesPrice: number;
58
- discountRate: number;
59
- brand: Brand;
60
- unitOfMeasure: UnitOfMeasure;
61
- displayType: DisplayType;
62
- categories: ICategory[];
63
- variations: number[];
64
- channelProperties: ChannelProperty[];
65
- types: Type[];
66
- barcodes: Barcode[];
67
- documents: Document[];
68
- vendors: Vendor[];
69
- attributeGroupMappings: AttributeGroupMapping[];
23
+ export interface IProduct {
24
+ id?: number;
25
+ productUrl?: string;
26
+ routePath?: string;
27
+ routeTitle?: string;
28
+ routeLocalizations?: RouteLocalization[];
29
+ routeDescription?: string;
30
+ parameterName?: string;
31
+ templateId?: number;
32
+ barcode?: string;
33
+ name?: string;
34
+ deci?: number;
35
+ shortName?: string;
36
+ description?: string;
37
+ sku?: string;
38
+ className?: string;
39
+ code?: string;
40
+ isApproved?: boolean;
41
+ isCompleted?: boolean;
42
+ scopeTypeId?: number;
43
+ isAssembleRequired?: boolean;
44
+ year?: number;
45
+ rptDate?: string;
46
+ seasonCode?: string;
47
+ orderRate?: number;
48
+ salesCount?: number;
49
+ isGiftCard?: boolean;
50
+ integrationCode?: string;
51
+ rates?: Rate[];
52
+ extensionData?: any;
53
+ stocksByBarcode?: StocksByBarcode;
54
+ stocksByWarehouse?: StocksByWarehouse;
55
+ basePrice?: number;
56
+ discountPrice?: number;
57
+ salesPrice?: number;
58
+ discountRate?: number;
59
+ brand?: Brand;
60
+ unitOfMeasure?: UnitOfMeasure;
61
+ displayType?: DisplayType;
62
+ categories?: ICategory[];
63
+ variations?: number[];
64
+ channelProperties?: ChannelProperty[];
65
+ types?: Type[];
66
+ barcodes?: Barcode[];
67
+ documents?: Document[];
68
+ vendors?: Vendor[];
69
+ attributeGroupMappings?: AttributeGroupMapping[];
70
70
  }
71
71
  export interface RouteLocalization {
72
72
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.7.3",
3
+ "version": "3.7.5",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",