oneentry 1.0.88 → 1.0.89
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,3 +1,4 @@
|
|
|
1
|
+
import { AttributeType } from "../base/utils";
|
|
1
2
|
/**
|
|
2
3
|
* Represents a interface object of Admins Api.
|
|
3
4
|
*
|
|
@@ -38,7 +39,7 @@ interface IPosition {
|
|
|
38
39
|
*/
|
|
39
40
|
interface IAdminEntity {
|
|
40
41
|
attributeSetId: number | null;
|
|
41
|
-
attributeValues:
|
|
42
|
+
attributeValues: AttributeType;
|
|
42
43
|
id: number;
|
|
43
44
|
identifier: string;
|
|
44
45
|
isSync: boolean;
|
package/dist/base/utils.d.ts
CHANGED
|
@@ -66,23 +66,6 @@ interface IAttributeValue {
|
|
|
66
66
|
[key: string]: any;
|
|
67
67
|
}
|
|
68
68
|
type AttributeType = IAttributeValues | IAttributeValue;
|
|
69
|
-
interface IAttributeSetEntity {
|
|
70
|
-
id: number;
|
|
71
|
-
updatedDate: string;
|
|
72
|
-
version: number;
|
|
73
|
-
identifier: string;
|
|
74
|
-
typeId: number;
|
|
75
|
-
localizeInfos: LocalizeType;
|
|
76
|
-
schema: Record<string, any>;
|
|
77
|
-
position: {
|
|
78
|
-
id: number;
|
|
79
|
-
objectId: number;
|
|
80
|
-
objectType: string;
|
|
81
|
-
position: number | string;
|
|
82
|
-
};
|
|
83
|
-
positionId: number | string;
|
|
84
|
-
isVisible: boolean;
|
|
85
|
-
}
|
|
86
69
|
type LangType = string | Array<string>;
|
|
87
70
|
type LocalizeType = ILocalizeInfos | ILocalizeInfo;
|
|
88
71
|
interface IError {
|
|
@@ -92,4 +75,4 @@ interface IError {
|
|
|
92
75
|
timestamp: string;
|
|
93
76
|
[key: string]: any;
|
|
94
77
|
}
|
|
95
|
-
export { LocalizeType, ILocalizeInfos, ILocalizeInfo, Types,
|
|
78
|
+
export { LocalizeType, ILocalizeInfos, ILocalizeInfo, Types, LangType, AttributeType, IAttributeValues, IAttributes, IConfig, IError };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AttributeType } from "../base/utils";
|
|
1
2
|
import { IProductsEntity } from "../products/productsInterfaces";
|
|
2
3
|
/**
|
|
3
4
|
* Represents a interface object of Blocks Api.
|
|
@@ -18,7 +19,7 @@ interface IBlocksResponse {
|
|
|
18
19
|
items: Array<IBlockEntity>;
|
|
19
20
|
}
|
|
20
21
|
interface IBlockEntity {
|
|
21
|
-
attributeValues:
|
|
22
|
+
attributeValues: AttributeType;
|
|
22
23
|
id: number;
|
|
23
24
|
identifier: string;
|
|
24
25
|
isVisible: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAttributes, LangType, Types } from "../base/utils";
|
|
1
|
+
import { AttributeType, IAttributes, LangType, Types } from "../base/utils";
|
|
2
2
|
/**
|
|
3
3
|
* Represents an interface object of Pages Api.
|
|
4
4
|
*
|
|
@@ -90,7 +90,7 @@ interface IPositionBlock {
|
|
|
90
90
|
position: number;
|
|
91
91
|
isSync: boolean;
|
|
92
92
|
isVisible: boolean;
|
|
93
|
-
attributeValues:
|
|
93
|
+
attributeValues: AttributeType;
|
|
94
94
|
attributeSetIdentifier: string | null;
|
|
95
95
|
type: string;
|
|
96
96
|
templateIdentifier: string | null;
|
|
@@ -118,7 +118,7 @@ interface IPositionBlock {
|
|
|
118
118
|
*/
|
|
119
119
|
interface IPagesEntity {
|
|
120
120
|
attributeSetIdentifier: string;
|
|
121
|
-
attributeValues:
|
|
121
|
+
attributeValues: AttributeType;
|
|
122
122
|
childrenCount?: number;
|
|
123
123
|
config?: Record<string, number>;
|
|
124
124
|
depth: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LangType, Types } from "../base/utils";
|
|
1
|
+
import { AttributeType, LangType, Types } from "../base/utils";
|
|
2
2
|
/**
|
|
3
3
|
* Represents an interface object of Products Api.
|
|
4
4
|
*
|
|
@@ -66,6 +66,8 @@ interface IProductsQuery {
|
|
|
66
66
|
* @property {string | null} conditionMarker - Id of the filter condition by which the values are filtered, default null.
|
|
67
67
|
* @property {string | null} attributeMarker - The text identifier of the indexed attribute by which values are filtered, default null.
|
|
68
68
|
* @property {Array<string> | null} pageUrl - Url of the category page object.
|
|
69
|
+
* @property {string | null} statusMarker - Text identifier of the product page status (default not set).
|
|
70
|
+
* @property {string | null} title - Product name.
|
|
69
71
|
*/
|
|
70
72
|
interface IFilterParams {
|
|
71
73
|
attributeMarker: string;
|
|
@@ -82,6 +84,8 @@ interface IFilterParams {
|
|
|
82
84
|
conditionMarker?: 'in' | 'nin' | 'eq' | 'neq' | 'mth' | 'lth' | 'exs' | 'nexs' | null;
|
|
83
85
|
conditionValue: number | string | null;
|
|
84
86
|
pageUrl?: Array<string> | null;
|
|
87
|
+
statusMarker?: string;
|
|
88
|
+
title?: string;
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
91
|
* Represents a product entity object.
|
|
@@ -120,7 +124,7 @@ interface IProductsEntity {
|
|
|
120
124
|
templateIdentifier: string | null;
|
|
121
125
|
shortDescTemplateIdentifier: string;
|
|
122
126
|
statusLocalizeInfos: Record<string, any>;
|
|
123
|
-
attributeValues:
|
|
127
|
+
attributeValues: AttributeType;
|
|
124
128
|
position: number;
|
|
125
129
|
sku: string | null;
|
|
126
130
|
}
|
|
@@ -168,6 +172,6 @@ interface IProductBlock {
|
|
|
168
172
|
templateIdentifier: string | null;
|
|
169
173
|
isVisible: boolean;
|
|
170
174
|
isSync: boolean;
|
|
171
|
-
attributeValues:
|
|
175
|
+
attributeValues: AttributeType;
|
|
172
176
|
}
|
|
173
177
|
export { IFilterParams, IProductsQuery, IProductApi, IProductsEntity, IProductsInfo, IProductInfo, IProductBlock, IProductEntity, IProductsResponse };
|