oneentry 1.0.136 → 1.0.138
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 +15 -3
- package/configure.js +27 -3
- package/dist/admins/adminsApi.d.ts +2 -2
- package/dist/admins/adminsApi.js +6 -3
- package/dist/admins/adminsInterfaces.d.ts +2 -2
- package/dist/admins/adminsSchemas.d.ts +30 -0
- package/dist/admins/adminsSchemas.js +27 -0
- package/dist/attribute-sets/attributeSetsApi.d.ts +8 -8
- package/dist/attribute-sets/attributeSetsApi.js +21 -12
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +3 -3
- package/dist/attribute-sets/attributeSetsSchemas.d.ts +90 -0
- package/dist/attribute-sets/attributeSetsSchemas.js +74 -0
- package/dist/auth-provider/authProviderApi.d.ts +44 -41
- package/dist/auth-provider/authProviderApi.js +58 -48
- package/dist/auth-provider/authProviderSchemas.d.ts +137 -0
- package/dist/auth-provider/authProviderSchemas.js +85 -0
- package/dist/auth-provider/authProvidersInterfaces.d.ts +17 -67
- package/dist/base/asyncModules.d.ts +25 -15
- package/dist/base/asyncModules.js +65 -44
- package/dist/base/stateModule.d.ts +8 -0
- package/dist/base/stateModule.js +27 -11
- package/dist/base/syncModules.d.ts +18 -0
- package/dist/base/syncModules.js +93 -99
- package/dist/base/utils.d.ts +56 -10
- package/dist/base/validation.d.ts +118 -0
- package/dist/base/validation.js +132 -0
- package/dist/blocks/blocksApi.d.ts +10 -10
- package/dist/blocks/blocksApi.js +26 -21
- package/dist/blocks/blocksInterfaces.d.ts +2 -1
- package/dist/blocks/blocksSchemas.d.ts +187 -0
- package/dist/blocks/blocksSchemas.js +43 -0
- package/dist/events/eventsApi.d.ts +5 -5
- package/dist/events/eventsApi.js +5 -5
- package/dist/events/eventsInterfaces.d.ts +25 -15
- package/dist/file-uploading/fileUploadingApi.d.ts +6 -6
- package/dist/file-uploading/fileUploadingApi.js +10 -7
- package/dist/file-uploading/fileUploadingSchemas.d.ts +22 -0
- package/dist/file-uploading/fileUploadingSchemas.js +21 -0
- package/dist/forms/formsApi.d.ts +4 -4
- package/dist/forms/formsApi.js +11 -6
- package/dist/forms/formsInterfaces.d.ts +21 -8
- package/dist/forms/formsSchemas.d.ts +65 -0
- package/dist/forms/formsSchemas.js +36 -0
- package/dist/forms-data/formsDataApi.d.ts +10 -10
- package/dist/forms-data/formsDataApi.js +20 -13
- package/dist/forms-data/formsDataInterfaces.d.ts +26 -26
- package/dist/forms-data/formsDataSchemas.d.ts +115 -0
- package/dist/forms-data/formsDataSchemas.js +86 -0
- package/dist/general-types/generalTypesApi.d.ts +2 -2
- package/dist/general-types/generalTypesApi.js +6 -3
- package/dist/general-types/generalTypesSchemas.d.ts +50 -0
- package/dist/general-types/generalTypesSchemas.js +35 -0
- package/dist/index.d.ts +23 -1
- package/dist/integration-collections/integrationCollectionsApi.d.ts +17 -17
- package/dist/integration-collections/integrationCollectionsApi.js +42 -26
- package/dist/integration-collections/integrationCollectionsSchemas.d.ts +84 -0
- package/dist/integration-collections/integrationCollectionsSchemas.js +63 -0
- package/dist/locales/localesApi.d.ts +2 -2
- package/dist/locales/localesApi.js +6 -3
- package/dist/locales/localesSchemas.d.ts +32 -0
- package/dist/locales/localesSchemas.js +26 -0
- package/dist/menus/menusApi.d.ts +2 -2
- package/dist/menus/menusApi.js +6 -3
- package/dist/menus/menusInterfaces.d.ts +2 -2
- package/dist/menus/menusSchemas.d.ts +16 -0
- package/dist/menus/menusSchemas.js +28 -0
- package/dist/orders/ordersApi.d.ts +12 -12
- package/dist/orders/ordersApi.js +25 -16
- package/dist/orders/ordersInterfaces.d.ts +5 -4
- package/dist/orders/ordersSchemas.d.ts +158 -0
- package/dist/orders/ordersSchemas.js +120 -0
- package/dist/pages/pagesApi.d.ts +22 -21
- package/dist/pages/pagesApi.js +107 -54
- package/dist/pages/pagesInterfaces.d.ts +15 -11
- package/dist/pages/pagesSchemas.d.ts +85 -0
- package/dist/pages/pagesSchemas.js +46 -0
- package/dist/payments/paymentsApi.d.ts +13 -13
- package/dist/payments/paymentsApi.js +25 -16
- package/dist/payments/paymentsInterfaces.d.ts +11 -5
- package/dist/payments/paymentsSchemas.d.ts +137 -0
- package/dist/payments/paymentsSchemas.js +78 -0
- package/dist/product-statuses/productStatusesApi.d.ts +6 -6
- package/dist/product-statuses/productStatusesApi.js +19 -9
- package/dist/product-statuses/productStatusesSchemas.d.ts +34 -0
- package/dist/product-statuses/productStatusesSchemas.js +30 -0
- package/dist/products/productsApi.d.ts +29 -28
- package/dist/products/productsApi.js +50 -36
- package/dist/products/productsInterfaces.d.ts +27 -22
- package/dist/products/productsSchemas.d.ts +212 -0
- package/dist/products/productsSchemas.js +85 -0
- package/dist/system/systemApi.d.ts +10 -10
- package/dist/system/systemApi.js +10 -10
- package/dist/templates/templatesApi.d.ts +6 -6
- package/dist/templates/templatesApi.js +17 -10
- package/dist/templates/templatesSchemas.d.ts +48 -0
- package/dist/templates/templatesSchemas.js +31 -0
- package/dist/templates-preview/templatesPreviewApi.d.ts +3 -3
- package/dist/templates-preview/templatesPreviewApi.js +10 -5
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +1 -0
- package/dist/templates-preview/templatesPreviewSchemas.d.ts +83 -0
- package/dist/templates-preview/templatesPreviewSchemas.js +48 -0
- package/dist/users/usersApi.d.ts +18 -18
- package/dist/users/usersApi.js +26 -23
- package/dist/users/usersInterfaces.d.ts +10 -11
- package/dist/users/usersSchemas.d.ts +38 -0
- package/dist/users/usersSchemas.js +28 -0
- package/package.json +36 -12
- package/dist/config.d.ts +0 -13
- package/dist/config.js +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneentry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.138",
|
|
4
4
|
"description": "OneEntry NPM package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,29 +11,50 @@
|
|
|
11
11
|
"productionBuild": "run-s lint testAll build",
|
|
12
12
|
"testAll": "run-s admins attributesets authProvider blocks events fileuploading forms formsdata generaltypes integrationcollections locales menus orders pages payments productstatuses products templates templatespreview users",
|
|
13
13
|
"admins": "npx jest src/admins/tests/admins.spec.ts",
|
|
14
|
+
"update admins": "npx jest src/admins/tests/admins.spec.ts --updateSnapshot",
|
|
14
15
|
"attributesets": "npx jest src/attribute-sets/tests/attributesets.spec.ts",
|
|
16
|
+
"update attributesets": "npx jest src/attribute-sets/tests/attributesets.spec.ts --updateSnapshot",
|
|
15
17
|
"authProvider": "npx jest src/auth-provider/tests/authProvider.spec.ts",
|
|
18
|
+
"update authProvider": "npx jest src/auth-provider/tests/authProvider.spec.ts --updateSnapshot",
|
|
16
19
|
"blocks": "npx jest src/blocks/tests/blocks.spec.ts",
|
|
20
|
+
"update blocks": "npx jest src/blocks/tests/blocks.spec.ts --updateSnapshot",
|
|
17
21
|
"events": "npx jest src/events/tests/events.spec.ts",
|
|
22
|
+
"update events": "npx jest src/events/tests/events.spec.ts --updateSnapshot",
|
|
18
23
|
"fileuploading": "npx jest src/file-uploading/tests/fileuploading.spec.ts",
|
|
24
|
+
"update fileuploading": "npx jest src/file-uploading/tests/fileuploading.spec.ts --updateSnapshot",
|
|
19
25
|
"forms": "npx jest src/forms/tests/forms.spec.ts",
|
|
26
|
+
"update forms": "npx jest src/forms/tests/forms.spec.ts --updateSnapshot",
|
|
20
27
|
"formsdata": "npx jest src/forms-data/tests/formsdata.spec.ts",
|
|
28
|
+
"update formsdata": "npx jest src/forms-data/tests/formsdata.spec.ts --updateSnapshot",
|
|
21
29
|
"generaltypes": "npx jest src/general-types/tests/generaltypes.spec.ts",
|
|
30
|
+
"update generaltypes": "npx jest src/general-types/tests/generaltypes.spec.ts --updateSnapshot",
|
|
22
31
|
"integrationcollections": "npx jest src/integration-collections/tests/integrationcollections.spec.ts",
|
|
32
|
+
"update integrationcollections": "npx jest src/integration-collections/tests/integrationcollections.spec.ts --updateSnapshot",
|
|
23
33
|
"locales": "npx jest src/locales/tests/locales.spec.ts",
|
|
34
|
+
"update locales": "npx jest src/locales/tests/locales.spec.ts --updateSnapshot",
|
|
24
35
|
"menus": "npx jest src/menus/tests/menus.spec.ts",
|
|
36
|
+
"update menus": "npx jest src/menus/tests/menus.spec.ts --updateSnapshot",
|
|
25
37
|
"orders": "npx jest src/orders/tests/orders.spec.ts",
|
|
38
|
+
"update orders": "npx jest src/orders/tests/orders.spec.ts --updateSnapshot",
|
|
26
39
|
"pages": "npx jest src/pages/tests/pages.spec.ts",
|
|
40
|
+
"update pages": "npx jest src/pages/tests/pages.spec.ts --updateSnapshot",
|
|
27
41
|
"payments": "npx jest src/payments/tests/payments.spec.ts",
|
|
42
|
+
"update payments": "npx jest src/payments/tests/payments.spec.ts --updateSnapshot",
|
|
28
43
|
"productstatuses": "npx jest src/product-statuses/tests/productstatuses.spec.ts",
|
|
44
|
+
"update productstatuses": "npx jest src/product-statuses/tests/productstatuses.spec.ts --updateSnapshot",
|
|
29
45
|
"products": "npx jest src/products/tests/products.spec.ts",
|
|
46
|
+
"update products": "npx jest src/products/tests/products.spec.ts --updateSnapshot",
|
|
30
47
|
"templates": "npx jest src/templates/tests/templates.spec.ts",
|
|
48
|
+
"update templates": "npx jest src/templates/tests/templates.spec.ts --updateSnapshot",
|
|
31
49
|
"templatespreview": "npx jest src/templates-preview/tests/templatespreview.spec.ts",
|
|
50
|
+
"update templatespreview": "npx jest src/templates-preview/tests/templatespreview.spec.ts --updateSnapshot",
|
|
32
51
|
"users": "npx jest src/users/tests/users.spec.ts",
|
|
52
|
+
"update users": "npx jest src/users/tests/users.spec.ts --updateSnapshot",
|
|
33
53
|
"lint": "npx eslint .",
|
|
34
54
|
"tsc": "npx tsc --noEmit --watch false",
|
|
35
55
|
"lintFix": "npx eslint . --fix",
|
|
36
|
-
"build": "npx tsc"
|
|
56
|
+
"build": "npx tsc",
|
|
57
|
+
"updateSnapshots": "npx jest --updateSnapshot"
|
|
37
58
|
},
|
|
38
59
|
"bin": {
|
|
39
60
|
"oneentry": "./configure.js"
|
|
@@ -41,30 +62,33 @@
|
|
|
41
62
|
"author": "ONEENTRY PORTAL CO.",
|
|
42
63
|
"license": "ISC",
|
|
43
64
|
"dependencies": {
|
|
44
|
-
"io": "^1.5.
|
|
45
|
-
"socket.io-client": "^4.8.
|
|
65
|
+
"io": "^1.5.8",
|
|
66
|
+
"socket.io-client": "^4.8.3",
|
|
67
|
+
"zod": "^4.3.6"
|
|
46
68
|
},
|
|
47
69
|
"devDependencies": {
|
|
70
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
48
71
|
"@jest/globals": "^30.2.0",
|
|
49
72
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
50
73
|
"@types/jest": "^30.0.0",
|
|
51
|
-
"@types/node": "^25.
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
53
|
-
"@typescript-eslint/parser": "^8.
|
|
74
|
+
"@types/node": "^25.2.3",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
76
|
+
"@typescript-eslint/parser": "^8.55.0",
|
|
54
77
|
"eslint": "^9.39.2",
|
|
55
78
|
"eslint-config-prettier": "^10.1.8",
|
|
56
79
|
"eslint-plugin-import": "^2.32.0",
|
|
57
|
-
"eslint-plugin-jest": "^29.
|
|
80
|
+
"eslint-plugin-jest": "^29.15.0",
|
|
58
81
|
"eslint-plugin-jest-extended": "^3.0.1",
|
|
59
|
-
"eslint-plugin-jsdoc": "^
|
|
60
|
-
"eslint-plugin-prettier": "^5.5.
|
|
82
|
+
"eslint-plugin-jsdoc": "^62.5.5",
|
|
83
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
61
84
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
62
85
|
"jest": "^30.2.0",
|
|
63
86
|
"jest-extended": "^7.0.0",
|
|
64
87
|
"jsdoc": "^4.0.5",
|
|
65
88
|
"npm-run-all": "^4.1.5",
|
|
66
|
-
"prettier": "^3.
|
|
89
|
+
"prettier": "^3.8.1",
|
|
67
90
|
"ts-jest": "^29.4.6",
|
|
91
|
+
"ts-node": "^10.9.2",
|
|
68
92
|
"typescript": "^5.9.3"
|
|
69
93
|
}
|
|
70
|
-
}
|
|
94
|
+
}
|
package/dist/config.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const projectUrl = "https://js-sdk-tests.oneentry.cloud";
|
|
2
|
-
export declare const projectToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiTlBNIiwic2VyaWFsTnVtYmVyIjozLCJpYXQiOjE3NDA1OTE0MzgsImV4cCI6MTc3MjEyNzQzMX0.MWbtBoXh-MqGTWgmiMTZSkfN8N-WYv3Cv2kSPhRpFlk";
|
|
3
|
-
/**
|
|
4
|
-
* authData
|
|
5
|
-
*/
|
|
6
|
-
export declare const authData: {
|
|
7
|
-
marker: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const authData2: {
|
|
11
|
-
marker: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
package/dist/config.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.authData2 = exports.authData = exports.projectToken = exports.projectUrl = void 0;
|
|
4
|
-
// export const projectUrl = 'https://stage.oneentry.cloud';
|
|
5
|
-
// export const projectToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiTlBNIiwic2VyaWFsTnVtYmVyIjozLCJpYXQiOjE3NDA1OTE0MzgsImV4cCI6MTc3MjEyNzQzMX0.MWbtBoXh-MqGTWgmiMTZSkfN8N-WYv3Cv2kSPhRpFlk';
|
|
6
|
-
exports.projectUrl = 'https://js-sdk-tests.oneentry.cloud';
|
|
7
|
-
exports.projectToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiTlBNIiwic2VyaWFsTnVtYmVyIjozLCJpYXQiOjE3NDA1OTE0MzgsImV4cCI6MTc3MjEyNzQzMX0.MWbtBoXh-MqGTWgmiMTZSkfN8N-WYv3Cv2kSPhRpFlk';
|
|
8
|
-
/**
|
|
9
|
-
* authData
|
|
10
|
-
*/
|
|
11
|
-
exports.authData = [
|
|
12
|
-
{
|
|
13
|
-
marker: 'email_reg',
|
|
14
|
-
value: 'test@test.ru',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
marker: 'password_reg',
|
|
18
|
-
// value: '12345',
|
|
19
|
-
value: '1-1',
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
exports.authData2 = [
|
|
23
|
-
{
|
|
24
|
-
marker: 'email_reg',
|
|
25
|
-
value: 'test2@test.ru',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
marker: 'password_reg',
|
|
29
|
-
// value: '12345',
|
|
30
|
-
value: '1-1',
|
|
31
|
-
},
|
|
32
|
-
];
|