oneentry 1.0.102 → 1.0.105

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.
Files changed (82) hide show
  1. package/README.md +1322 -506
  2. package/configure.js +24 -33
  3. package/dist/admins/adminsApi.d.ts +11 -7
  4. package/dist/admins/adminsApi.js +17 -5
  5. package/dist/admins/adminsInterfaces.d.ts +33 -19
  6. package/dist/attribute-sets/attributeSetsApi.d.ts +35 -10
  7. package/dist/attribute-sets/attributeSetsApi.js +49 -7
  8. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +42 -11
  9. package/dist/auth-provider/authProviderApi.d.ts +17 -5
  10. package/dist/auth-provider/authProviderApi.js +31 -14
  11. package/dist/auth-provider/authProvidersInterfaces.d.ts +23 -2
  12. package/dist/base/asyncModules.d.ts +2 -2
  13. package/dist/base/asyncModules.js +26 -17
  14. package/dist/base/result.js +26 -12
  15. package/dist/base/stateModule.d.ts +1 -1
  16. package/dist/base/stateModule.js +20 -11
  17. package/dist/base/syncModules.d.ts +4 -4
  18. package/dist/base/syncModules.js +16 -12
  19. package/dist/base/utils.d.ts +2 -2
  20. package/dist/blocks/blocksApi.d.ts +8 -5
  21. package/dist/blocks/blocksApi.js +30 -8
  22. package/dist/blocks/blocksInterfaces.d.ts +38 -5
  23. package/dist/events/eventsApi.d.ts +7 -7
  24. package/dist/events/eventsApi.js +14 -9
  25. package/dist/events/eventsInterfaces.d.ts +5 -2
  26. package/dist/{file-uploding → file-uploading}/fileUploadingApi.d.ts +3 -3
  27. package/dist/{file-uploding → file-uploading}/fileUploadingApi.js +9 -5
  28. package/dist/{file-uploding → file-uploading}/fileUploadingInterfaces.d.ts +8 -5
  29. package/dist/forms/formsApi.d.ts +4 -4
  30. package/dist/forms/formsApi.js +4 -1
  31. package/dist/forms/formsInterfaces.d.ts +2 -3
  32. package/dist/formsData/formsDataApi.d.ts +5 -5
  33. package/dist/formsData/formsDataApi.js +10 -4
  34. package/dist/formsData/formsDataInterfaces.d.ts +2 -2
  35. package/dist/general-types/{typesApi.d.ts → generalTypesApi.d.ts} +4 -4
  36. package/dist/general-types/{typesApi.js → generalTypesApi.js} +4 -1
  37. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  38. package/dist/index.d.ts +33 -21
  39. package/dist/index.js +37 -26
  40. package/dist/integration-collections/integrationCollectionsApi.d.ts +128 -0
  41. package/dist/integration-collections/integrationCollectionsApi.js +161 -0
  42. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +57 -0
  43. package/dist/integration-collections/integrationCollectionsInterfaces.js +2 -0
  44. package/dist/locales/localesApi.d.ts +4 -4
  45. package/dist/locales/localesApi.js +4 -1
  46. package/dist/locales/localesInterfaces.d.ts +2 -2
  47. package/dist/menus/menusApi.d.ts +4 -4
  48. package/dist/menus/menusApi.js +4 -1
  49. package/dist/menus/menusInterfaces.d.ts +6 -4
  50. package/dist/menus/menusInterfaces.js +1 -0
  51. package/dist/orders/ordersApi.d.ts +8 -8
  52. package/dist/orders/ordersApi.js +15 -7
  53. package/dist/orders/ordersInterfaces.d.ts +13 -3
  54. package/dist/pages/pagesApi.d.ts +4 -10
  55. package/dist/pages/pagesApi.js +14 -10
  56. package/dist/pages/pagesInterfaces.d.ts +13 -22
  57. package/dist/payments/paymentsApi.d.ts +6 -6
  58. package/dist/payments/paymentsApi.js +14 -6
  59. package/dist/payments/paymentsInterfaces.d.ts +20 -5
  60. package/dist/product-statuses/productStatusesApi.d.ts +3 -3
  61. package/dist/product-statuses/productStatusesApi.js +4 -1
  62. package/dist/product-statuses/productStatusesInterfaces.d.ts +2 -5
  63. package/dist/products/productsApi.d.ts +38 -54
  64. package/dist/products/productsApi.js +63 -61
  65. package/dist/products/productsInterfaces.d.ts +50 -38
  66. package/dist/system/systemApi.d.ts +3 -3
  67. package/dist/system/systemApi.js +5 -1
  68. package/dist/system/systemInterfaces.d.ts +1 -1
  69. package/dist/templates/templatesApi.d.ts +6 -3
  70. package/dist/templates/templatesApi.js +10 -2
  71. package/dist/templates/templatesInterfaces.d.ts +2 -2
  72. package/dist/templates-preview/templatesPreviewApi.d.ts +5 -4
  73. package/dist/templates-preview/templatesPreviewApi.js +5 -1
  74. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +21 -10
  75. package/dist/users/usersApi.d.ts +15 -4
  76. package/dist/users/usersApi.js +29 -2
  77. package/dist/users/usersInterfaces.d.ts +10 -4
  78. package/dist/web-socket/wsApi.d.ts +4 -4
  79. package/dist/web-socket/wsApi.js +15 -14
  80. package/dist/web-socket/wsInterfaces.d.ts +2 -2
  81. package/package.json +45 -9
  82. /package/dist/{file-uploding → file-uploading}/fileUploadingInterfaces.js +0 -0
@@ -2,4 +2,4 @@ interface ISystem {
2
2
  test404(): Promise<any>;
3
3
  test500(): Promise<any>;
4
4
  }
5
- export { ISystem };
5
+ export type { ISystem };
@@ -1,7 +1,7 @@
1
1
  import AsyncModules from '../base/asyncModules';
2
- import { ITemplatesApi, ITemplateEntity } from './templatesInterfaces';
3
- import { IError, Types } from "../base/utils";
4
- import StateModule from "../base/stateModule";
2
+ import type StateModule from '../base/stateModule';
3
+ import type { IError, Types } from '../base/utils';
4
+ import type { ITemplateEntity, ITemplatesApi } from './templatesInterfaces';
5
5
  /**
6
6
  * Controllers for working with template objects
7
7
  */
@@ -11,6 +11,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
11
11
  constructor(state: StateModule);
12
12
  /**
13
13
  * Get all template objects grouped by types.
14
+ *
14
15
  * @param {string} [langCode] - Optional parameter language code
15
16
  *
16
17
  * @returns Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
@@ -30,6 +31,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
30
31
  *
31
32
  * @param {number} id - Template id
32
33
  * @param {string} [langCode] - Optional parameter language code
34
+ *
33
35
  * @returns Returns a TemplateEntity object
34
36
  */
35
37
  getTemplateById(id: number, langCode?: string): Promise<ITemplateEntity | IError>;
@@ -38,6 +40,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
38
40
  *
39
41
  * @param {number} marker - Template marker
40
42
  * @param {string} [langCode] - Optional parameter language code
43
+ *
41
44
  * @returns Returns a TemplateEntity object
42
45
  */
43
46
  getTemplateByMarker(marker: string, langCode?: string): Promise<ITemplateEntity | IError>;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const asyncModules_1 = require("../base/asyncModules");
6
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
+ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
4
8
  /**
5
9
  * Controllers for working with template objects
6
10
  */
@@ -11,6 +15,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
11
15
  }
12
16
  /**
13
17
  * Get all template objects grouped by types.
18
+ *
14
19
  * @param {string} [langCode] - Optional parameter language code
15
20
  *
16
21
  * @returns Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
@@ -18,7 +23,8 @@ class TemplatesPreviewApi extends asyncModules_1.default {
18
23
  async getAllTemplates(langCode = this.state.lang) {
19
24
  const response = await this._fetchGet(`/all?langCode=${langCode}`);
20
25
  const result = {};
21
- for (let item in response) {
26
+ // eslint-disable-next-line no-restricted-syntax
27
+ for (const item in response) {
22
28
  result[item] = this._normalizeData(response[item], langCode);
23
29
  }
24
30
  return result;
@@ -40,6 +46,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
40
46
  *
41
47
  * @param {number} id - Template id
42
48
  * @param {string} [langCode] - Optional parameter language code
49
+ *
43
50
  * @returns Returns a TemplateEntity object
44
51
  */
45
52
  async getTemplateById(id, langCode = this.state.lang) {
@@ -51,6 +58,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
51
58
  *
52
59
  * @param {number} marker - Template marker
53
60
  * @param {string} [langCode] - Optional parameter language code
61
+ *
54
62
  * @returns Returns a TemplateEntity object
55
63
  */
56
64
  async getTemplateByMarker(marker, langCode = this.state.lang) {
@@ -1,4 +1,4 @@
1
- import { AttributeType, IError, Types } from "../base/utils";
1
+ import type { AttributeType, IError, Types } from '../base/utils';
2
2
  /**
3
3
  * Represents an interface object of Templates Api.
4
4
  *
@@ -39,4 +39,4 @@ interface ITemplateEntity {
39
39
  attributeValues: AttributeType;
40
40
  attributeSetIdentifier: string | null;
41
41
  }
42
- export { ITemplatesApi, ITemplateEntity, };
42
+ export type { ITemplateEntity, ITemplatesApi };
@@ -1,7 +1,7 @@
1
- import AsyncModules from "../base/asyncModules";
2
- import { ITemplatesPreview, ITemplatesPreviewEntity } from "./templatesPreviewInterfaces";
3
- import StateModule from "../base/stateModule";
4
- import { IError } from "../base/utils";
1
+ import AsyncModules from '../base/asyncModules';
2
+ import type StateModule from '../base/stateModule';
3
+ import type { IError } from '../base/utils';
4
+ import type { ITemplatesPreview, ITemplatesPreviewEntity } from './templatesPreviewInterfaces';
5
5
  /**
6
6
  * Controllers for working with template objects for preview
7
7
  */
@@ -11,6 +11,7 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
11
11
  constructor(state: StateModule);
12
12
  /**
13
13
  * Get all template objects.
14
+ *
14
15
  * @param {string} [langCode] - Optional parameter language code
15
16
  *
16
17
  * @returns Returns all TemplatePreviewsEntity template objects
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const asyncModules_1 = require("../base/asyncModules");
6
+ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
4
7
  /**
5
8
  * Controllers for working with template objects for preview
6
9
  */
@@ -11,6 +14,7 @@ class TemplatePreviewsApi extends asyncModules_1.default {
11
14
  }
12
15
  /**
13
16
  * Get all template objects.
17
+ *
14
18
  * @param {string} [langCode] - Optional parameter language code
15
19
  *
16
20
  * @returns Returns all TemplatePreviewsEntity template objects
@@ -1,11 +1,10 @@
1
- import { AttributeType, IError } from "../base/utils";
1
+ import type { AttributeType, IError } from '../base/utils';
2
2
  /**
3
3
  * Represents an interface object of Templates Preview Api.
4
4
  *
5
+ * @interface
5
6
  * @property {function} getTemplatesPreview - Get all template objects.
6
- *
7
7
  * @property {function} getTemplatesPreviewById - Get one template object by id.
8
- *
9
8
  * @property {function} getTemplatesPreviewByMarker - Get one template object by marker.
10
9
  */
11
10
  interface ITemplatesPreview {
@@ -24,15 +23,13 @@ interface ITemplatesPreview {
24
23
  * @property {number} position - The position of the object.
25
24
  * @property {AttributeType} attributeValues - Attribute values from index.
26
25
  * @property {string} attributeSetIdentifier - Text identifier used for a set of attributes
27
- *
28
- *
29
26
  */
30
27
  interface ITemplatesPreviewEntity {
31
28
  id: number;
32
29
  version: number;
33
30
  identifier: string;
34
31
  attributeValues: AttributeType;
35
- attributeSetIdentifier: string;
32
+ attributeSetIdentifier: string | null;
36
33
  proportion: {
37
34
  horizontal: IProportion | null;
38
35
  vertical: IProportion | null;
@@ -41,15 +38,29 @@ interface ITemplatesPreviewEntity {
41
38
  title: string;
42
39
  position: number;
43
40
  }
41
+ /**
42
+ * IProportion
43
+ *
44
+ * @property {string | number | null} width -
45
+ * @property {string | number | null} height -
46
+ * @property {string} marker -
47
+ * @property {string} alignmentType -
48
+ */
44
49
  interface IProportion {
45
- height: number | null;
46
- weight: number | null;
50
+ width: string | number | null;
51
+ height: string | number | null;
47
52
  marker: string;
48
53
  alignmentType: string;
49
54
  }
55
+ /**
56
+ * ISquare
57
+ * @property {string} marker -
58
+ * @property {number | string} side -
59
+ * @property {string} alignmentType -
60
+ */
50
61
  interface ISquare {
51
62
  marker: string;
52
- slide: number;
63
+ side: number | string;
53
64
  alignmentType: string;
54
65
  }
55
- export { ITemplatesPreview, ITemplatesPreviewEntity, ISquare, IProportion };
66
+ export type { IProportion, ISquare, ITemplatesPreview, ITemplatesPreviewEntity, };
@@ -1,7 +1,7 @@
1
- import AsyncModules from "../base/asyncModules";
2
- import { IUserBody, IUserEntity, IUsers } from "./usersInterfaces";
3
- import StateModule from "../base/stateModule";
4
- import { IError } from "../base/utils";
1
+ import AsyncModules from '../base/asyncModules';
2
+ import type StateModule from '../base/stateModule';
3
+ import type { IError } from '../base/utils';
4
+ import type { IUserBody, IUserEntity, IUsers } from './usersInterfaces';
5
5
  /**
6
6
  * Controllers for working with users
7
7
  */
@@ -47,8 +47,18 @@ export default class UsersApi extends AsyncModules implements IUsers {
47
47
  * }
48
48
  */
49
49
  updateUser(data: IUserBody, langCode?: string): Promise<boolean | IError>;
50
+ /**
51
+ * Delete a single user object.
52
+ * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
53
+ *
54
+ * @param {object} data - Request body.
55
+ * @param {string} langCode - Optional language field
56
+ *
57
+ */
58
+ deleteUser(data: IUserBody, langCode?: string): Promise<boolean | IError>;
50
59
  /**
51
60
  * Adds FCM token for sending Push notification.
61
+ *
52
62
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
53
63
  *
54
64
  * @param {string} token - Cloud messaging token.
@@ -56,6 +66,7 @@ export default class UsersApi extends AsyncModules implements IUsers {
56
66
  addFCMToken(token: string): Promise<boolean | IError>;
57
67
  /**
58
68
  * Delete FCM token.
69
+ *
59
70
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
60
71
  *
61
72
  * @param {string} token - Cloud messaging token.
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const asyncModules_1 = require("../base/asyncModules");
6
+ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
4
7
  /**
5
8
  * Controllers for working with users
6
9
  */
@@ -52,11 +55,34 @@ class UsersApi extends asyncModules_1.default {
52
55
  async updateUser(data, langCode = this.state.lang) {
53
56
  if (!('langCode' in data))
54
57
  data['langCode'] = langCode;
55
- const result = await this._fetchPut('/me', data.hasOwnProperty('formData') ? this._normalizePostBody(data, langCode) : data);
58
+ const result = await this._fetchPut('/me',
59
+ // eslint-disable-next-line no-prototype-builtins
60
+ data.hasOwnProperty('formData')
61
+ ? this._normalizePostBody(data, langCode)
62
+ : data);
63
+ return result;
64
+ }
65
+ /**
66
+ * Delete a single user object.
67
+ * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
68
+ *
69
+ * @param {object} data - Request body.
70
+ * @param {string} langCode - Optional language field
71
+ *
72
+ */
73
+ async deleteUser(data, langCode = this.state.lang) {
74
+ if (!('langCode' in data))
75
+ data['langCode'] = langCode;
76
+ const result = await this._fetchDelete('/me',
77
+ // eslint-disable-next-line no-prototype-builtins
78
+ data.hasOwnProperty('formData')
79
+ ? this._normalizePostBody(data, langCode)
80
+ : data);
56
81
  return result;
57
82
  }
58
83
  /**
59
84
  * Adds FCM token for sending Push notification.
85
+ *
60
86
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
61
87
  *
62
88
  * @param {string} token - Cloud messaging token.
@@ -67,6 +93,7 @@ class UsersApi extends asyncModules_1.default {
67
93
  }
68
94
  /**
69
95
  * Delete FCM token.
96
+ *
70
97
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
71
98
  *
72
99
  * @param {string} token - Cloud messaging token.
@@ -1,6 +1,6 @@
1
- import { IAuthFormData } from "../auth-provider/authProvidersInterfaces";
2
- import { FormDataType } from "../formsData/formsDataInterfaces";
3
- import { IError } from "../base/utils";
1
+ import type { IAuthFormData } from '../auth-provider/authProvidersInterfaces';
2
+ import type { IError } from '../base/utils';
3
+ import type { FormDataType } from '../formsData/formsDataInterfaces';
4
4
  /**
5
5
  * Represents a interface object of Users Api.
6
6
  *
@@ -16,6 +16,9 @@ interface IUsers {
16
16
  addFCMToken(token: string): Promise<boolean | IError>;
17
17
  deleteFCMToken(token: string): Promise<boolean | IError>;
18
18
  }
19
+ /**
20
+ * IUserEntity
21
+ */
19
22
  interface IUserEntity {
20
23
  id: number;
21
24
  identifier: string;
@@ -25,6 +28,9 @@ interface IUserEntity {
25
28
  groups: Array<string>;
26
29
  state: Record<string, any>;
27
30
  }
31
+ /**
32
+ * IUserBody
33
+ */
28
34
  interface IUserBody {
29
35
  formIdentifier: string;
30
36
  langCode?: string;
@@ -40,4 +46,4 @@ interface IUserBody {
40
46
  };
41
47
  state?: Record<string, any>;
42
48
  }
43
- export { IUsers, IUserEntity, IUserBody, };
49
+ export type { IUserBody, IUserEntity, IUsers };
@@ -1,7 +1,7 @@
1
- import AsyncModules from "../base/asyncModules";
2
- import StateModule from "../base/stateModule";
3
- import { Socket } from "socket.io-client";
4
- import { IWS } from "./wsInterfaces";
1
+ import type { Socket } from 'socket.io-client';
2
+ import AsyncModules from '../base/asyncModules';
3
+ import type StateModule from '../base/stateModule';
4
+ import type { IWS } from './wsInterfaces';
5
5
  /**
6
6
  * Controllers for working with users
7
7
  */
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const asyncModules_1 = require("../base/asyncModules");
4
6
  const socket_io_client_1 = require("socket.io-client");
7
+ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
5
8
  /**
6
9
  * Controllers for working with users
7
10
  */
@@ -20,21 +23,19 @@ class WsApi extends asyncModules_1.default {
20
23
  * socket.on('my_event', callback)
21
24
  */
22
25
  connect() {
23
- if (this.state.accessToken) {
24
- const socket = (0, socket_io_client_1.io)(this.state.url, {
25
- autoConnect: true,
26
- path: '/api/content/ws',
27
- transports: ['websocket'],
28
- extraHeaders: {
29
- "Authorization": 'Bearer ' + this.state.accessToken,
30
- "x-app-token": this.state.token
31
- }
32
- });
33
- return socket;
34
- }
35
- else {
26
+ if (!this.state.accessToken) {
36
27
  console.error('User is unauthorized');
37
28
  }
29
+ const socket = (0, socket_io_client_1.io)(this.state.url, {
30
+ autoConnect: true,
31
+ path: '/api/content/ws',
32
+ transports: ['websocket'],
33
+ extraHeaders: {
34
+ Authorization: 'Bearer ' + this.state.accessToken,
35
+ 'x-app-token': this.state.token,
36
+ },
37
+ });
38
+ return socket;
38
39
  }
39
40
  }
40
41
  exports.default = WsApi;
@@ -1,4 +1,4 @@
1
- import { Socket } from "socket.io-client";
1
+ import type { Socket } from 'socket.io-client';
2
2
  /**
3
3
  * Represents a interface object of WebSocket IO.
4
4
  *
@@ -7,4 +7,4 @@ import { Socket } from "socket.io-client";
7
7
  interface IWS {
8
8
  connect(): Socket;
9
9
  }
10
- export { IWS };
10
+ export type { IWS };
package/package.json CHANGED
@@ -1,14 +1,37 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.102",
4
- "description": "",
3
+ "version": "1.0.105",
4
+ "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "/dist"
9
9
  ],
10
10
  "scripts": {
11
- "test": "jest"
11
+ "productionBuild": "run-s lint testAll build",
12
+ "testAll": "run-s admins attributesets authProvider blocks fileuploading forms formsdata generaltypes locales menus orders pages payments payments productstatuses products templates templatespreview users",
13
+ "admins": "npx jest src/admins/admins.spec.ts",
14
+ "attributesets": "npx jest src/attribute-sets/attributesets.spec.ts",
15
+ "authProvider": "npx jest src/auth-provider/authProvider.spec.ts",
16
+ "blocks": "npx jest src/blocks/blocks.spec.ts",
17
+ "fileuploading": "npx jest src/file-uploading/fileuploading.spec.ts",
18
+ "forms": "npx jest src/forms/forms.spec.ts",
19
+ "formsdata": "npx jest src/formsData/formsdata.spec.ts",
20
+ "generaltypes": "npx jest src/general-types/generaltypes.spec.ts",
21
+ "integrationcollections": "npx jest src/integration-collections/integrationcollections.spec.ts",
22
+ "locales": "npx jest src/locales/locales.spec.ts",
23
+ "menus": "npx jest src/menus/menus.spec.ts",
24
+ "orders": "npx jest src/orders/orders.spec.ts",
25
+ "pages": "npx jest src/pages/pages.spec.ts",
26
+ "payments": "npx jest src/payments/payments.spec.ts",
27
+ "productstatuses": "npx jest src/product-statuses/productstatuses.spec.ts",
28
+ "products": "npx jest src/products/products.spec.ts",
29
+ "templates": "npx jest src/templates/templates.spec.ts",
30
+ "templatespreview": "npx jest src/templates-preview/templatespreview.spec.ts",
31
+ "users": "npx jest src/users/users.spec.ts",
32
+ "lint": "npx eslint",
33
+ "build": "npx tsc",
34
+ "tsdoc": "tsdoc --src=src/admins/adminsApi.ts,src/attribute-sets/attributeSetsApi.ts,src/index.ts"
12
35
  },
13
36
  "bin": {
14
37
  "oneentry": "./configure.js"
@@ -17,14 +40,27 @@
17
40
  "license": "ISC",
18
41
  "dependencies": {
19
42
  "io": "^1.5.3",
20
- "jsdoc": "^4.0.2",
21
- "socket.io-client": "^4.7.5"
43
+ "socket.io-client": "^4.8.1"
22
44
  },
23
45
  "devDependencies": {
24
- "@types/jest": "^29.5.11",
25
- "@types/node": "^20.10.5",
46
+ "@jest/globals": "^29.7.0",
47
+ "@microsoft/tsdoc": "^0.15.1",
48
+ "@types/eslint-config-prettier": "^6.11.3",
49
+ "@types/jest": "^29.5.14",
50
+ "@types/node": "^22.10.10",
51
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
52
+ "@typescript-eslint/parser": "^8.21.0",
53
+ "eslint": "^8.57.1",
54
+ "eslint-config-prettier": "^10.0.1",
55
+ "eslint-plugin-import": "^2.31.0",
56
+ "eslint-plugin-jest": "^28.11.0",
57
+ "eslint-plugin-prettier": "^5.2.3",
58
+ "eslint-plugin-simple-import-sort": "^12.1.1",
26
59
  "jest": "^29.7.0",
27
- "ts-jest": "^29.1.1",
28
- "typescript": "^5.3.3"
60
+ "npm-run-all": "^4.1.5",
61
+ "prettier": "^3.4.2",
62
+ "ts-jest": "^29.2.5",
63
+ "tsdoc-markdown": "^1.1.1",
64
+ "typescript": "^5.7.3"
29
65
  }
30
66
  }