@banch0u/core-project-test-repository 2.3.18 → 2.3.19
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/components/Input/index.module.scss +1 -0
- package/dist/helpers/enums.js +7 -0
- package/dist/layout/QuestionnairesSidebar/index.js +10 -2
- package/dist/pages/Questionnnaires/QuestionnairesAttestationsContent/constant.js +68 -0
- package/dist/pages/Questionnnaires/QuestionnairesAttestationsContent/index.js +284 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/constant.js +5 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +15 -6
- package/dist/routes/QuestionnaireRoutes.js +7 -1
- package/dist/store/slices/global/index.js +186 -180
- package/dist/store/slices/questionnaire/index.js +562 -353
- package/dist/store/slices/questionnaire/service.js +128 -0
- package/dist/tools/questionnaireGenerator.js +3 -3
- package/dist/utils/path.js +4 -0
- package/package.json +69 -69
|
@@ -10308,4 +10308,132 @@ _defineProperty(Services, "vendorCategoriesVisibility", /*#__PURE__*/function ()
|
|
|
10308
10308
|
return _ref528.apply(this, arguments);
|
|
10309
10309
|
};
|
|
10310
10310
|
}());
|
|
10311
|
+
// ---- end generated ----
|
|
10312
|
+
// ---- generated by questionnaireGenerator: Attestations ----
|
|
10313
|
+
_defineProperty(Services, "getAttestations", /*#__PURE__*/function () {
|
|
10314
|
+
var _ref529 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee529(size, page, query, visibility) {
|
|
10315
|
+
var response;
|
|
10316
|
+
return _regeneratorRuntime.wrap(function (_context529) {
|
|
10317
|
+
while (1) switch (_context529.prev = _context529.next) {
|
|
10318
|
+
case 0:
|
|
10319
|
+
_context529.next = 1;
|
|
10320
|
+
return api.get("/attestations/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
10321
|
+
case 1:
|
|
10322
|
+
response = _context529.sent;
|
|
10323
|
+
return _context529.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
10324
|
+
case 2:
|
|
10325
|
+
case "end":
|
|
10326
|
+
return _context529.stop();
|
|
10327
|
+
}
|
|
10328
|
+
}, _callee529);
|
|
10329
|
+
}));
|
|
10330
|
+
return function (_x811, _x812, _x813, _x814) {
|
|
10331
|
+
return _ref529.apply(this, arguments);
|
|
10332
|
+
};
|
|
10333
|
+
}());
|
|
10334
|
+
_defineProperty(Services, "getAttestationsAll", /*#__PURE__*/function () {
|
|
10335
|
+
var _ref530 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee530(visibility) {
|
|
10336
|
+
var response;
|
|
10337
|
+
return _regeneratorRuntime.wrap(function (_context530) {
|
|
10338
|
+
while (1) switch (_context530.prev = _context530.next) {
|
|
10339
|
+
case 0:
|
|
10340
|
+
_context530.next = 1;
|
|
10341
|
+
return api.get("/attestations?visibility=".concat(visibility));
|
|
10342
|
+
case 1:
|
|
10343
|
+
response = _context530.sent;
|
|
10344
|
+
return _context530.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
10345
|
+
case 2:
|
|
10346
|
+
case "end":
|
|
10347
|
+
return _context530.stop();
|
|
10348
|
+
}
|
|
10349
|
+
}, _callee530);
|
|
10350
|
+
}));
|
|
10351
|
+
return function (_x815) {
|
|
10352
|
+
return _ref530.apply(this, arguments);
|
|
10353
|
+
};
|
|
10354
|
+
}());
|
|
10355
|
+
_defineProperty(Services, "addAttestations", /*#__PURE__*/function () {
|
|
10356
|
+
var _ref531 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee531(value) {
|
|
10357
|
+
var response;
|
|
10358
|
+
return _regeneratorRuntime.wrap(function (_context531) {
|
|
10359
|
+
while (1) switch (_context531.prev = _context531.next) {
|
|
10360
|
+
case 0:
|
|
10361
|
+
_context531.next = 1;
|
|
10362
|
+
return api.post("/attestations", value);
|
|
10363
|
+
case 1:
|
|
10364
|
+
response = _context531.sent;
|
|
10365
|
+
return _context531.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
10366
|
+
case 2:
|
|
10367
|
+
case "end":
|
|
10368
|
+
return _context531.stop();
|
|
10369
|
+
}
|
|
10370
|
+
}, _callee531);
|
|
10371
|
+
}));
|
|
10372
|
+
return function (_x816) {
|
|
10373
|
+
return _ref531.apply(this, arguments);
|
|
10374
|
+
};
|
|
10375
|
+
}());
|
|
10376
|
+
_defineProperty(Services, "editAttestations", /*#__PURE__*/function () {
|
|
10377
|
+
var _ref532 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee532(data) {
|
|
10378
|
+
var response;
|
|
10379
|
+
return _regeneratorRuntime.wrap(function (_context532) {
|
|
10380
|
+
while (1) switch (_context532.prev = _context532.next) {
|
|
10381
|
+
case 0:
|
|
10382
|
+
_context532.next = 1;
|
|
10383
|
+
return api.put("/attestations/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
10384
|
+
case 1:
|
|
10385
|
+
response = _context532.sent;
|
|
10386
|
+
return _context532.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
10387
|
+
case 2:
|
|
10388
|
+
case "end":
|
|
10389
|
+
return _context532.stop();
|
|
10390
|
+
}
|
|
10391
|
+
}, _callee532);
|
|
10392
|
+
}));
|
|
10393
|
+
return function (_x817) {
|
|
10394
|
+
return _ref532.apply(this, arguments);
|
|
10395
|
+
};
|
|
10396
|
+
}());
|
|
10397
|
+
_defineProperty(Services, "deleteAttestations", /*#__PURE__*/function () {
|
|
10398
|
+
var _ref533 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee533(id) {
|
|
10399
|
+
var response;
|
|
10400
|
+
return _regeneratorRuntime.wrap(function (_context533) {
|
|
10401
|
+
while (1) switch (_context533.prev = _context533.next) {
|
|
10402
|
+
case 0:
|
|
10403
|
+
_context533.next = 1;
|
|
10404
|
+
return api["delete"]("/attestations/".concat(id));
|
|
10405
|
+
case 1:
|
|
10406
|
+
response = _context533.sent;
|
|
10407
|
+
return _context533.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
10408
|
+
case 2:
|
|
10409
|
+
case "end":
|
|
10410
|
+
return _context533.stop();
|
|
10411
|
+
}
|
|
10412
|
+
}, _callee533);
|
|
10413
|
+
}));
|
|
10414
|
+
return function (_x818) {
|
|
10415
|
+
return _ref533.apply(this, arguments);
|
|
10416
|
+
};
|
|
10417
|
+
}());
|
|
10418
|
+
_defineProperty(Services, "attestationsVisibility", /*#__PURE__*/function () {
|
|
10419
|
+
var _ref534 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee534(data) {
|
|
10420
|
+
var response;
|
|
10421
|
+
return _regeneratorRuntime.wrap(function (_context534) {
|
|
10422
|
+
while (1) switch (_context534.prev = _context534.next) {
|
|
10423
|
+
case 0:
|
|
10424
|
+
_context534.next = 1;
|
|
10425
|
+
return api.patch("/attestations/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
10426
|
+
case 1:
|
|
10427
|
+
response = _context534.sent;
|
|
10428
|
+
return _context534.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
10429
|
+
case 2:
|
|
10430
|
+
case "end":
|
|
10431
|
+
return _context534.stop();
|
|
10432
|
+
}
|
|
10433
|
+
}, _callee534);
|
|
10434
|
+
}));
|
|
10435
|
+
return function (_x819) {
|
|
10436
|
+
return _ref534.apply(this, arguments);
|
|
10437
|
+
};
|
|
10438
|
+
}());
|
|
10311
10439
|
export default Services;
|
|
@@ -10,9 +10,9 @@ var fs = require("fs");
|
|
|
10
10
|
var path = require("path");
|
|
11
11
|
|
|
12
12
|
////////// === CONFIG === //////////
|
|
13
|
-
var questionnaireName = "
|
|
14
|
-
var constantColumnName = "
|
|
15
|
-
var endpointName = "/
|
|
13
|
+
var questionnaireName = "Attestations"; // change as needed
|
|
14
|
+
var constantColumnName = "Sertifikat növləri"; // change as needed
|
|
15
|
+
var endpointName = "/attestations"; // change as needed (should match backend endpoint)
|
|
16
16
|
///////////////////////////////////
|
|
17
17
|
|
|
18
18
|
var upperName = questionnaireName.toUpperCase();
|
package/dist/utils/path.js
CHANGED
|
@@ -2,6 +2,10 @@ export var LOGIN_PATH = "/login";
|
|
|
2
2
|
export var PLATFORM_PATH = "/platform";
|
|
3
3
|
export var QUESTIONNAIRES = "/questionnaires";
|
|
4
4
|
|
|
5
|
+
// ---- generated by questionnaireGenerator: ATTESTATIONS ----
|
|
6
|
+
export var QUESTIONNAIRES_ATTESTATIONS = "attestations";
|
|
7
|
+
// ---- end generated ----
|
|
8
|
+
|
|
5
9
|
// ---- generated by questionnaireGenerator: VENDORCATEGORIES ----
|
|
6
10
|
export var QUESTIONNAIRES_VENDORCATEGORIES = "vendor/categories";
|
|
7
11
|
// ---- end generated ----
|
package/package.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@banch0u/core-project-test-repository",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "Shared core features for all projects",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/banch0u/core-project-test-repository.git"
|
|
12
|
-
},
|
|
13
|
-
"private": false,
|
|
14
|
-
"author": "banch0u",
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf dist",
|
|
18
|
-
"build": "babel src --out-dir dist --copy-files",
|
|
19
|
-
"watch": "babel src --out-dir dist --copy-files --watch",
|
|
20
|
-
"watch:push": "chokidar \"dist/**/*\" -c \"yalc push --changed --verbose\"",
|
|
21
|
-
"pull": "git pull",
|
|
22
|
-
"dev": "npm run pull && concurrently \"npm run watch\" \"npm run watch:push\"",
|
|
23
|
-
"push": "yalc push --changed --verbose",
|
|
24
|
-
"publish:patch": "npm run clean && npm run build && npm version patch && npm publish",
|
|
25
|
-
"publish:minor": "npm run clean && npm run build && npm version minor && npm publish",
|
|
26
|
-
"publish:major": "npm run clean && npm run build && npm version major && npm publish"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@ant-design/icons": "^6.0.0",
|
|
30
|
-
"@microsoft/signalr": "^8.0.7",
|
|
31
|
-
"@pdftron/webviewer": "^
|
|
32
|
-
"@reduxjs/toolkit": "^2.6.1",
|
|
33
|
-
"antd": "^5.
|
|
34
|
-
"antd-5-mask-input": "^1.1.0",
|
|
35
|
-
"axios": "^1.8.4",
|
|
36
|
-
"dayjs": "^1.11.13",
|
|
37
|
-
"js-cookie": "^3.0.5",
|
|
38
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
39
|
-
"react-redux": "^9.2.0",
|
|
40
|
-
"sass": "^1.86.3"
|
|
41
|
-
},
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
44
|
-
"react-dom": "^18.0.0 || ^19.0.0",
|
|
45
|
-
"react-router-dom": "^6.
|
|
46
|
-
},
|
|
47
|
-
"publishConfig": {
|
|
48
|
-
"registry": "https://registry.npmjs.org/"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@babel/cli": "^7.26.4",
|
|
52
|
-
"@babel/core": "^7.26.10",
|
|
53
|
-
"@babel/eslint-parser": "^7.27.0",
|
|
54
|
-
"@babel/plugin-transform-runtime": "^7.26.9",
|
|
55
|
-
"@babel/preset-env": "^7.26.9",
|
|
56
|
-
"@babel/preset-react": "^7.26.3",
|
|
57
|
-
"babel-loader": "^9.2.1",
|
|
58
|
-
"chokidar-cli": "^3.0.0",
|
|
59
|
-
"concurrently": "^9.2.1",
|
|
60
|
-
"eslint": "^8.57.1",
|
|
61
|
-
"eslint-import-resolver-node": "^0.3.9",
|
|
62
|
-
"eslint-plugin-import": "^2.31.0",
|
|
63
|
-
"eslint-plugin-react": "^7.37.4",
|
|
64
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
65
|
-
"eslint-plugin-unused-imports": "^4.1.4",
|
|
66
|
-
"npm-run-all": "^4.1.5",
|
|
67
|
-
"rimraf": "^6.0.1"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@banch0u/core-project-test-repository",
|
|
3
|
+
"version": "2.3.19",
|
|
4
|
+
"description": "Shared core features for all projects",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/banch0u/core-project-test-repository.git"
|
|
12
|
+
},
|
|
13
|
+
"private": false,
|
|
14
|
+
"author": "banch0u",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"clean": "rimraf dist",
|
|
18
|
+
"build": "babel src --out-dir dist --copy-files",
|
|
19
|
+
"watch": "babel src --out-dir dist --copy-files --watch",
|
|
20
|
+
"watch:push": "chokidar \"dist/**/*\" -c \"yalc push --changed --verbose\"",
|
|
21
|
+
"pull": "git pull",
|
|
22
|
+
"dev": "npm run pull && concurrently \"npm run watch\" \"npm run watch:push\"",
|
|
23
|
+
"push": "yalc push --changed --verbose",
|
|
24
|
+
"publish:patch": "npm run clean && npm run build && npm version patch && npm publish",
|
|
25
|
+
"publish:minor": "npm run clean && npm run build && npm version minor && npm publish",
|
|
26
|
+
"publish:major": "npm run clean && npm run build && npm version major && npm publish"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@ant-design/icons": "^6.0.0",
|
|
30
|
+
"@microsoft/signalr": "^8.0.7",
|
|
31
|
+
"@pdftron/webviewer": "^10.10.1",
|
|
32
|
+
"@reduxjs/toolkit": "^2.6.1",
|
|
33
|
+
"antd": "^5.20.3",
|
|
34
|
+
"antd-5-mask-input": "^1.1.0",
|
|
35
|
+
"axios": "^1.8.4",
|
|
36
|
+
"dayjs": "^1.11.13",
|
|
37
|
+
"js-cookie": "^3.0.5",
|
|
38
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
39
|
+
"react-redux": "^9.2.0",
|
|
40
|
+
"sass": "^1.86.3"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
44
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
45
|
+
"react-router-dom": "^6.26.1"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"registry": "https://registry.npmjs.org/"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@babel/cli": "^7.26.4",
|
|
52
|
+
"@babel/core": "^7.26.10",
|
|
53
|
+
"@babel/eslint-parser": "^7.27.0",
|
|
54
|
+
"@babel/plugin-transform-runtime": "^7.26.9",
|
|
55
|
+
"@babel/preset-env": "^7.26.9",
|
|
56
|
+
"@babel/preset-react": "^7.26.3",
|
|
57
|
+
"babel-loader": "^9.2.1",
|
|
58
|
+
"chokidar-cli": "^3.0.0",
|
|
59
|
+
"concurrently": "^9.2.1",
|
|
60
|
+
"eslint": "^8.57.1",
|
|
61
|
+
"eslint-import-resolver-node": "^0.3.9",
|
|
62
|
+
"eslint-plugin-import": "^2.31.0",
|
|
63
|
+
"eslint-plugin-react": "^7.37.4",
|
|
64
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
65
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
66
|
+
"npm-run-all": "^4.1.5",
|
|
67
|
+
"rimraf": "^6.0.1"
|
|
68
|
+
}
|
|
69
|
+
}
|