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 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
- Also, you can connect a tls certificate to secure your project. In this case, do not transfer the "token" at all.
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 };
@@ -73,4 +73,4 @@ interface ICustomSetting {
73
73
  }> | Record<string, any>;
74
74
  [key: string]: any;
75
75
  }
76
- export { IBlocks, IBlockEntity, IBlocksResponse, IBlockProduct };
76
+ export { IBlocks, IBlockEntity, IBlocksResponse, IBlockProduct, ICustomSetting };
@@ -30,8 +30,8 @@ interface IFormsEntity {
30
30
  id: number;
31
31
  identifier: string;
32
32
  localizeInfos: Record<string, any>;
33
+ templateId: number | null;
33
34
  position: number;
34
- processingData: Record<string, any> | string;
35
35
  processingType: string;
36
36
  version: number;
37
37
  }
@@ -40,4 +40,4 @@ interface IMenusEntity {
40
40
  localizeInfos: Record<string, any>;
41
41
  pages: Array<IMenusPages> | IMenusPages;
42
42
  }
43
- export { IMenus, IMenusEntity };
43
+ export { IMenus, IMenusEntity, IMenusPages };
@@ -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 {number | null} pageId - Id of the category page object.
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
- pageId?: number;
89
+ pageUrl?: Array<string> | null;
90
90
  }
91
91
  /**
92
92
  * Represents a product entity object.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",