oneentry 1.0.133 → 1.0.134

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.
@@ -66,18 +66,19 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
66
66
  * @param {object} [body] - Request body.
67
67
  * @example
68
68
  {
69
- "entityIdentifier": "test",
69
+ "entityIdentifier": 14,
70
+ "entityparentIdentifier": 167,
70
71
  "userIdentifier": "",
71
- "status": "",
72
- "dateFrom": "2025-08-11",
72
+ "status": ["new", "approved"],
73
+ "dateFrom": "2025-01-01",
73
74
  "dateTo": ""
74
75
  }
75
- * @param {any} [isNested] - Flag for getting hierarchical data. Example: 1.
76
+ * @param {number} [isExtended] - Flag for getting additional fields. Example: 1.
76
77
  * @param {string} [langCode] - Language code. Default: "en_US".
77
78
  * @param {number} [offset] - Parameter for pagination. Default: 0.
78
79
  * @param {number} [limit] - Parameter for pagination. Default: 30.
79
80
  * @returns {IFormsByMarkerDataEntity} Returns an object containing the form data or an error object if there was an issue.
80
81
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
81
82
  */
82
- getFormsDataByMarker(marker: string, formModuleConfigId: number, body?: object, isNested?: number, langCode?: string, offset?: number, limit?: number): Promise<IFormsByMarkerDataEntity | IError>;
83
+ getFormsDataByMarker(marker: string, formModuleConfigId: number, body?: object, isExtended?: number, langCode?: string, offset?: number, limit?: number): Promise<IFormsByMarkerDataEntity | IError>;
83
84
  }
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable jsdoc/reject-any-type */
7
6
  /* eslint-disable @typescript-eslint/no-explicit-any */
8
7
  const asyncModules_1 = __importDefault(require("../base/asyncModules"));
9
8
  const fileUploadingApi_1 = __importDefault(require("../file-uploading/fileUploadingApi"));
@@ -69,7 +68,9 @@ class FormsDataApi extends asyncModules_1.default {
69
68
  formData[langCode] = Array.isArray(body.formData)
70
69
  ? body.formData.filter((fd) => fd.type !== 'spam' && fd.type !== 'button')
71
70
  : [body.formData].filter((fd) => fd.type !== 'spam' && fd.type !== 'button');
72
- // Handle file uploads if fileQuery is present
71
+ /**
72
+ * Handle file uploads if fileQuery is present
73
+ */
73
74
  // Check if there is any element in formData[langCode] that contains one of the specified types
74
75
  if (formData[langCode].find((fd) => ['file', 'image', 'groupOfImages'].includes(fd.type))) {
75
76
  // Create an instance of FileUploadingApi with the current state
@@ -128,21 +129,22 @@ class FormsDataApi extends asyncModules_1.default {
128
129
  * @param {object} [body] - Request body.
129
130
  * @example
130
131
  {
131
- "entityIdentifier": "test",
132
+ "entityIdentifier": 14,
133
+ "entityparentIdentifier": 167,
132
134
  "userIdentifier": "",
133
- "status": "",
134
- "dateFrom": "2025-08-11",
135
+ "status": ["new", "approved"],
136
+ "dateFrom": "2025-01-01",
135
137
  "dateTo": ""
136
138
  }
137
- * @param {any} [isNested] - Flag for getting hierarchical data. Example: 1.
139
+ * @param {number} [isExtended] - Flag for getting additional fields. Example: 1.
138
140
  * @param {string} [langCode] - Language code. Default: "en_US".
139
141
  * @param {number} [offset] - Parameter for pagination. Default: 0.
140
142
  * @param {number} [limit] - Parameter for pagination. Default: 30.
141
143
  * @returns {IFormsByMarkerDataEntity} Returns an object containing the form data or an error object if there was an issue.
142
144
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
143
145
  */
144
- async getFormsDataByMarker(marker, formModuleConfigId, body = {}, isNested = 1, langCode = this.state.lang, offset = 0, limit = 30) {
145
- const result = await this._fetchPost(`/marker/${marker}?formModuleConfigId=${formModuleConfigId}&isNested=${isNested}&langCode=${langCode}&offset=${offset}&limit=${limit}`, body);
146
+ async getFormsDataByMarker(marker, formModuleConfigId, body = {}, isExtended = 0, langCode = this.state.lang, offset = 0, limit = 30) {
147
+ const result = await this._fetchPost(`/marker/${marker}?formModuleConfigId=${formModuleConfigId}&isExtended=${isExtended}&langCode=${langCode}&offset=${offset}&limit=${limit}`, body);
146
148
  return this._dataPostProcess(result, langCode);
147
149
  }
148
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.133",
3
+ "version": "1.0.134",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -48,23 +48,23 @@
48
48
  "@jest/globals": "^30.2.0",
49
49
  "@types/eslint-config-prettier": "^6.11.3",
50
50
  "@types/jest": "^30.0.0",
51
- "@types/node": "^24.7.2",
52
- "@typescript-eslint/eslint-plugin": "^8.46.1",
53
- "@typescript-eslint/parser": "^8.46.1",
54
- "eslint": "^9.37.0",
51
+ "@types/node": "^25.0.2",
52
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
53
+ "@typescript-eslint/parser": "^8.50.0",
54
+ "eslint": "^9.39.2",
55
55
  "eslint-config-prettier": "^10.1.8",
56
56
  "eslint-plugin-import": "^2.32.0",
57
- "eslint-plugin-jest": "^29.0.1",
57
+ "eslint-plugin-jest": "^29.5.0",
58
58
  "eslint-plugin-jest-extended": "^3.0.1",
59
- "eslint-plugin-jsdoc": "^61.1.4",
59
+ "eslint-plugin-jsdoc": "^61.5.0",
60
60
  "eslint-plugin-prettier": "^5.5.4",
61
61
  "eslint-plugin-simple-import-sort": "^12.1.1",
62
62
  "jest": "^30.2.0",
63
- "jest-extended": "^6.0.0",
63
+ "jest-extended": "^7.0.0",
64
64
  "jsdoc": "^4.0.5",
65
65
  "npm-run-all": "^4.1.5",
66
- "prettier": "^3.6.2",
67
- "ts-jest": "^29.4.5",
66
+ "prettier": "^3.7.4",
67
+ "ts-jest": "^29.4.6",
68
68
  "typescript": "^5.9.3"
69
69
  }
70
70
  }