oneentry 1.0.146 → 1.0.148
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/admins/adminsApi.d.ts +4 -3
- package/dist/admins/adminsApi.js +1 -1
- package/dist/admins/adminsInterfaces.d.ts +4 -4
- package/dist/admins/adminsSchemas.d.ts +24 -8
- package/dist/admins/adminsSchemas.js +11 -5
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +122 -25
- package/dist/auth-provider/authProvidersInterfaces.d.ts +34 -25
- package/dist/base/utils.d.ts +147 -71
- package/dist/blocks/blocksApi.d.ts +3 -3
- package/dist/blocks/blocksApi.js +1 -1
- package/dist/blocks/blocksInterfaces.d.ts +8 -8
- package/dist/blocks/blocksSchemas.d.ts +52 -8
- package/dist/discounts/discountsInterfaces.d.ts +53 -19
- package/dist/forms/formsInterfaces.d.ts +89 -14
- package/dist/forms-data/formsDataInterfaces.d.ts +141 -66
- package/dist/general-types/generalTypesSchemas.d.ts +2 -2
- package/dist/menus/menusInterfaces.d.ts +1 -1
- package/dist/orders/ordersInterfaces.d.ts +81 -19
- package/dist/orders/ordersSchemas.d.ts +73 -2
- package/dist/orders/ordersSchemas.js +32 -3
- package/dist/pages/pagesApi.js +1 -1
- package/dist/pages/pagesInterfaces.d.ts +12 -12
- package/dist/payments/paymentsInterfaces.d.ts +41 -16
- package/dist/products/productsApi.d.ts +26 -19
- package/dist/products/productsApi.js +27 -20
- package/dist/products/productsInterfaces.d.ts +118 -41
- package/dist/products/productsSchemas.d.ts +52 -8
- package/dist/products/productsSchemas.js +15 -2
- package/dist/sitemap/sitemapApi.d.ts +4 -4
- package/dist/sitemap/sitemapApi.js +2 -2
- package/dist/sitemap/sitemapInterfaces.d.ts +13 -11
- package/dist/templates/templatesApi.d.ts +6 -5
- package/dist/templates/templatesApi.js +10 -5
- package/dist/templates/templatesInterfaces.d.ts +10 -9
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +25 -11
- package/dist/users/usersInterfaces.d.ts +4 -8
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IAttributeValues, IError } from '../base/utils';
|
|
2
2
|
/**
|
|
3
3
|
* @interface ITemplatesPreviewApi
|
|
4
4
|
* @description This interface defines methods for retrieving template previews in the system, including fetching all previews, specific previews by marker.
|
|
@@ -69,7 +69,7 @@ interface ITemplatesPreviewApi {
|
|
|
69
69
|
}
|
|
70
70
|
* @property {string} identifier - The textual identifier for the record field. Example: "preview-templates"
|
|
71
71
|
* @property {number} version - The version number of the object. Example: 1.
|
|
72
|
-
* @property {
|
|
72
|
+
* @property {IAttributeValues} attributeValues - Attribute values from index. Example: {}
|
|
73
73
|
* @property {number} position - The position of the object. Example: 1.
|
|
74
74
|
* @property {boolean} isUsed - Indicates whether the template preview is used. Example: true.
|
|
75
75
|
* @property {string | null} [attributeSetIdentifier] - Text identifier used for a set of attributes. Example: "attribute_set_1".
|
|
@@ -78,20 +78,34 @@ interface ITemplatesPreviewApi {
|
|
|
78
78
|
interface ITemplatesPreviewEntity {
|
|
79
79
|
id: number;
|
|
80
80
|
title: string;
|
|
81
|
-
proportions:
|
|
82
|
-
default: {
|
|
83
|
-
horizontal: IProportion | null;
|
|
84
|
-
vertical: IProportion | null;
|
|
85
|
-
square: ISquare;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
81
|
+
proportions: ITemplatesPreviewProportions;
|
|
88
82
|
identifier: string;
|
|
89
83
|
version: number;
|
|
90
|
-
attributeValues:
|
|
84
|
+
attributeValues: IAttributeValues;
|
|
91
85
|
position: number;
|
|
92
86
|
isUsed: boolean;
|
|
93
87
|
attributeSetIdentifier?: string | null;
|
|
94
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* @interface ITemplatesPreviewProportions
|
|
91
|
+
* @property {ITemplatesPreviewProportionVariants} default - Default proportion variants for horizontal, vertical, and square layouts.
|
|
92
|
+
* @description Container for proportion variants of a template preview.
|
|
93
|
+
*/
|
|
94
|
+
interface ITemplatesPreviewProportions {
|
|
95
|
+
default: ITemplatesPreviewProportionVariants;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @interface ITemplatesPreviewProportionVariants
|
|
99
|
+
* @property {IProportion | null} horizontal - Horizontal layout proportion, or null when not configured.
|
|
100
|
+
* @property {IProportion | null} vertical - Vertical layout proportion, or null when not configured.
|
|
101
|
+
* @property {ISquare} square - Square layout proportion.
|
|
102
|
+
* @description Layout proportion variants of a template preview.
|
|
103
|
+
*/
|
|
104
|
+
interface ITemplatesPreviewProportionVariants {
|
|
105
|
+
horizontal: IProportion | null;
|
|
106
|
+
vertical: IProportion | null;
|
|
107
|
+
square: ISquare;
|
|
108
|
+
}
|
|
95
109
|
/**
|
|
96
110
|
* The `IProportion` interface defines the structure of a proportion object used in template previews.
|
|
97
111
|
* @interface IProportion
|
|
@@ -116,4 +130,4 @@ interface ISquare {
|
|
|
116
130
|
side: number | string;
|
|
117
131
|
alignmentType: string;
|
|
118
132
|
}
|
|
119
|
-
export type { IProportion, ISquare, ITemplatesPreviewApi, ITemplatesPreviewEntity, };
|
|
133
|
+
export type { IProportion, ISquare, ITemplatesPreviewApi, ITemplatesPreviewEntity, ITemplatesPreviewProportions, ITemplatesPreviewProportionVariants, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAuthData, IAuthFormData } from '../auth-provider/authProvidersInterfaces';
|
|
1
|
+
import type { IAuthData, IAuthFormData, INotificationData } from '../auth-provider/authProvidersInterfaces';
|
|
2
2
|
import type { IError, IRating } from '../base/utils';
|
|
3
3
|
import type { IFormConfig } from '../forms/formsInterfaces';
|
|
4
4
|
import type { FormDataType } from '../forms-data/formsDataInterfaces';
|
|
@@ -172,7 +172,7 @@ interface IUserEntity {
|
|
|
172
172
|
formIdentifier: string;
|
|
173
173
|
total: string;
|
|
174
174
|
groups: Array<string | number>;
|
|
175
|
-
state: Record<string,
|
|
175
|
+
state: Record<string, unknown>;
|
|
176
176
|
moduleFormConfigs?: Array<IFormConfig>;
|
|
177
177
|
rating?: IRating;
|
|
178
178
|
}
|
|
@@ -221,11 +221,7 @@ interface IUserBody {
|
|
|
221
221
|
langCode?: string;
|
|
222
222
|
authData?: IAuthData[];
|
|
223
223
|
formData?: IAuthFormData | IAuthFormData[];
|
|
224
|
-
notificationData?:
|
|
225
|
-
|
|
226
|
-
phonePush: string[];
|
|
227
|
-
phoneSMS?: string;
|
|
228
|
-
};
|
|
229
|
-
state?: Record<string, any>;
|
|
224
|
+
notificationData?: INotificationData;
|
|
225
|
+
state?: Record<string, unknown>;
|
|
230
226
|
}
|
|
231
227
|
export type { IUserBody, IUserEntity, IUsersApi };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneentry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.148",
|
|
4
4
|
"description": "OneEntry NPM package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bin": {
|
|
11
11
|
"oneentry": "./configure.js"
|
|
12
12
|
},
|
|
13
|
-
"author": "ONEENTRY PORTAL
|
|
13
|
+
"author": "ONEENTRY PORTAL CO.",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"socket.io-client": "^4.8.3",
|