oneentry 1.0.55 → 1.0.56
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 +2 -2
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +8 -7
- package/dist/blocks/blocksInterfaces.d.ts +1 -1
- package/dist/forms/formsInterfaces.d.ts +1 -1
- package/dist/menus/menusInterfaces.d.ts +1 -1
- package/dist/products/productsInterfaces.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,11 +65,11 @@ You can get a token as follows
|
|
|
65
65
|
5) Log in to the project, go to the settings section and open the token tab
|
|
66
66
|
6) Get and copy the token of your project
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
You can also connect a tls certificate to protect your project. In this case, do not pass the "token" at all. When using the certificate, set up a proxy in your project. Pass an empty string as an url parameter.
|
|
69
69
|
[Learn more about security](https://oneentry.ru/instructions.html#START)
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
```js
|
|
72
|
+
```js
|
|
73
73
|
const api = defineOneEntry('your-url', {token: 'my-token', langCode:'my-langCode'})
|
|
74
74
|
```
|
|
75
75
|
Now you can use the following links to jump to specific entries:
|
|
@@ -10,6 +10,13 @@ interface IAttributesSets {
|
|
|
10
10
|
getAttributesByMarker(marker: string, langCode: string): Promise<Array<IAttributesSetsEntity>>;
|
|
11
11
|
getSingleAttributeByMarkerSet(attributeMarker: string, setMarker: string, langCode: string): Promise<IAttributesSetsEntity>;
|
|
12
12
|
}
|
|
13
|
+
interface IListTitle {
|
|
14
|
+
title: string;
|
|
15
|
+
value: number | string;
|
|
16
|
+
position: string | number | null;
|
|
17
|
+
extendedValue: string | number | null;
|
|
18
|
+
extendedValueType: string | number | null;
|
|
19
|
+
}
|
|
13
20
|
/**
|
|
14
21
|
* Represents a template entity object.
|
|
15
22
|
*
|
|
@@ -35,12 +42,6 @@ interface IAttributesSetsEntity {
|
|
|
35
42
|
};
|
|
36
43
|
};
|
|
37
44
|
localizeInfos: Record<string, any>;
|
|
38
|
-
listTitles: Array<
|
|
39
|
-
title: string;
|
|
40
|
-
value: number | string;
|
|
41
|
-
position: string | number | null;
|
|
42
|
-
extendedValue: string | number | null;
|
|
43
|
-
extendedValueType: string | number | null;
|
|
44
|
-
}> | Record<string, any>;
|
|
45
|
+
listTitles: Array<IListTitle> | Record<string, any>;
|
|
45
46
|
}
|
|
46
47
|
export { IAttributesSets, IAttributesSetsEntity };
|
|
@@ -70,7 +70,7 @@ interface IProductsQuery {
|
|
|
70
70
|
* @property {number | null} conditionValue - The value that is being searched for, default null.
|
|
71
71
|
* @property {string | null} conditionMarker - Id of the filter condition by which the values are filtered, default null.
|
|
72
72
|
* @property {string | null} attributeMarker - The text identifier of the indexed attribute by which values are filtered, default null.
|
|
73
|
-
* @property {
|
|
73
|
+
* @property {Array<string> | null} pageUrl - Url of the category page object.
|
|
74
74
|
*/
|
|
75
75
|
interface IFilterParams {
|
|
76
76
|
attributeMarker: string;
|
|
@@ -86,7 +86,7 @@ interface IFilterParams {
|
|
|
86
86
|
*/
|
|
87
87
|
conditionMarker?: 'in' | 'nin' | 'eq' | 'neq' | 'mth' | 'lth' | 'exs' | 'nexs' | null;
|
|
88
88
|
conditionValue: number | string | null;
|
|
89
|
-
|
|
89
|
+
pageUrl?: Array<string> | null;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Represents a product entity object.
|