eservices-back-core 2.1.4 → 2.1.6
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/agents/agent.d.ts +6 -0
- package/dist/agents/agent.d.ts.map +1 -0
- package/dist/agents/agent.js +12 -0
- package/dist/agents/agent.js.map +1 -0
- package/dist/agents/text-search-agent.d.ts +34 -0
- package/dist/agents/text-search-agent.d.ts.map +1 -0
- package/dist/agents/text-search-agent.js +84 -0
- package/dist/agents/text-search-agent.js.map +1 -0
- package/dist/app.js +4 -1
- package/dist/app.js.map +1 -1
- package/dist/auth/auth-manager.d.ts +9 -0
- package/dist/auth/auth-manager.d.ts.map +1 -0
- package/dist/auth/auth-manager.js +9 -0
- package/dist/auth/auth-manager.js.map +1 -0
- package/dist/auth/reload-session-promisify.d.ts.map +1 -1
- package/dist/auth/reload-session-promisify.js +10 -1
- package/dist/auth/reload-session-promisify.js.map +1 -1
- package/dist/auth/use-auth.d.ts.map +1 -1
- package/dist/auth/use-auth.js +6 -0
- package/dist/auth/use-auth.js.map +1 -1
- package/dist/auth/wait-identity-client.d.ts +2 -0
- package/dist/auth/wait-identity-client.d.ts.map +1 -0
- package/dist/auth/wait-identity-client.js +6 -0
- package/dist/auth/wait-identity-client.js.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/controller/close-api/actions-controller.d.ts +7 -0
- package/dist/controller/close-api/actions-controller.d.ts.map +1 -0
- package/dist/controller/close-api/actions-controller.js +75 -0
- package/dist/controller/close-api/actions-controller.js.map +1 -0
- package/dist/controller/close-api/communication-controller.d.ts +8 -0
- package/dist/controller/close-api/communication-controller.d.ts.map +1 -0
- package/dist/controller/close-api/communication-controller.js +89 -0
- package/dist/controller/close-api/communication-controller.js.map +1 -0
- package/dist/controller/close-api/history-controller.d.ts +5 -0
- package/dist/controller/close-api/history-controller.d.ts.map +1 -0
- package/dist/controller/close-api/history-controller.js +29 -0
- package/dist/controller/close-api/history-controller.js.map +1 -0
- package/dist/controller/close-api/rules-validator-controller.d.ts +5 -0
- package/dist/controller/close-api/rules-validator-controller.d.ts.map +1 -0
- package/dist/controller/close-api/rules-validator-controller.js +21 -0
- package/dist/controller/close-api/rules-validator-controller.js.map +1 -0
- package/dist/controller/close-api-controller.d.ts +8 -0
- package/dist/controller/close-api-controller.d.ts.map +1 -0
- package/dist/controller/close-api-controller.js +39 -0
- package/dist/controller/close-api-controller.js.map +1 -0
- package/dist/dtos/dto-list-options.d.ts +3 -0
- package/dist/dtos/dto-list-options.d.ts.map +1 -0
- package/dist/dtos/dto-list-options.js +17 -0
- package/dist/dtos/dto-list-options.js.map +1 -0
- package/dist/dtos/dto-list-setting.d.ts.map +1 -1
- package/dist/dtos/dto-list-setting.js +3 -1
- package/dist/dtos/dto-list-setting.js.map +1 -1
- package/dist/middleware/test-middleware.d.ts +8 -0
- package/dist/middleware/test-middleware.d.ts.map +1 -0
- package/dist/middleware/test-middleware.js +27 -0
- package/dist/middleware/test-middleware.js.map +1 -0
- package/dist/router/close/actions-route.d.ts +3 -0
- package/dist/router/close/actions-route.d.ts.map +1 -0
- package/dist/router/close/actions-route.js +13 -0
- package/dist/router/close/actions-route.js.map +1 -0
- package/dist/router/close/audit-router.d.ts +3 -0
- package/dist/router/close/audit-router.d.ts.map +1 -0
- package/dist/router/close/audit-router.js +11 -0
- package/dist/router/close/audit-router.js.map +1 -0
- package/dist/router/close/client-router.d.ts +3 -0
- package/dist/router/close/client-router.d.ts.map +1 -0
- package/dist/router/close/client-router.js +11 -0
- package/dist/router/close/client-router.js.map +1 -0
- package/dist/router/close/communication-router.d.ts +3 -0
- package/dist/router/close/communication-router.d.ts.map +1 -0
- package/dist/router/close/communication-router.js +14 -0
- package/dist/router/close/communication-router.js.map +1 -0
- package/dist/router/close/presentation-router.d.ts +3 -0
- package/dist/router/close/presentation-router.d.ts.map +1 -0
- package/dist/router/close/presentation-router.js +11 -0
- package/dist/router/close/presentation-router.js.map +1 -0
- package/dist/router/close/rules-validator-router.d.ts +3 -0
- package/dist/router/close/rules-validator-router.d.ts.map +1 -0
- package/dist/router/close/rules-validator-router.js +11 -0
- package/dist/router/close/rules-validator-router.js.map +1 -0
- package/dist/services/action-service.d.ts +2 -3
- package/dist/services/action-service.d.ts.map +1 -1
- package/dist/services/action-service.js +3 -3
- package/dist/services/action-service.js.map +1 -1
- package/dist/services/list-setting-service.d.ts +1 -0
- package/dist/services/list-setting-service.d.ts.map +1 -1
- package/dist/services/user-manager-service.d.ts +5 -0
- package/dist/services/user-manager-service.d.ts.map +1 -0
- package/dist/services/user-manager-service.js +24 -0
- package/dist/services/user-manager-service.js.map +1 -0
- package/dist/socket/configuration-read-socket.d.ts +2 -0
- package/dist/socket/configuration-read-socket.d.ts.map +1 -0
- package/dist/socket/configuration-read-socket.js +18 -0
- package/dist/socket/configuration-read-socket.js.map +1 -0
- package/dist/socket/entity-count-socket.d.ts +7 -0
- package/dist/socket/entity-count-socket.d.ts.map +1 -0
- package/dist/socket/entity-count-socket.js +40 -0
- package/dist/socket/entity-count-socket.js.map +1 -0
- package/dist/socket/entity-read-socket.d.ts +10 -0
- package/dist/socket/entity-read-socket.d.ts.map +1 -0
- package/dist/socket/entity-read-socket.js +57 -0
- package/dist/socket/entity-read-socket.js.map +1 -0
- package/dist/socket/events/tool_execute.d.ts.map +1 -1
- package/dist/socket/events/tool_execute.js +5 -2
- package/dist/socket/events/tool_execute.js.map +1 -1
- package/dist/socket/metadata-read-socket.d.ts +10 -0
- package/dist/socket/metadata-read-socket.d.ts.map +1 -0
- package/dist/socket/metadata-read-socket.js +63 -0
- package/dist/socket/metadata-read-socket.js.map +1 -0
- package/dist/store/Store.d.ts +60 -0
- package/dist/store/Store.d.ts.map +1 -0
- package/dist/store/Store.js +83 -0
- package/dist/store/Store.js.map +1 -0
- package/dist/store/actions.d.ts +26 -0
- package/dist/store/actions.d.ts.map +1 -0
- package/dist/store/actions.js +23 -0
- package/dist/store/actions.js.map +1 -0
- package/dist/store/index.d.ts +2 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +10 -0
- package/dist/store/index.js.map +1 -0
- package/dist/store/reducer.d.ts +45 -0
- package/dist/store/reducer.d.ts.map +1 -0
- package/dist/store/reducer.js +27 -0
- package/dist/store/reducer.js.map +1 -0
- package/dist/types/value-hooks.d.ts +3 -1
- package/dist/types/value-hooks.d.ts.map +1 -1
- package/dist/utils/iterate-entity-value-with-hooks.js +15 -18
- package/dist/utils/iterate-entity-value-with-hooks.js.map +1 -1
- package/dist/utils/value-hooks.d.ts.map +1 -1
- package/dist/utils/value-hooks.js +40 -0
- package/dist/utils/value-hooks.js.map +1 -1
- package/package.json +1 -1
- package/dist/model/filter-config.d.ts +0 -69
- package/dist/model/filter-config.d.ts.map +0 -1
- package/dist/model/filter-config.js +0 -146
- package/dist/model/filter-config.js.map +0 -1
- package/dist/store/filters-store.d.ts +0 -7
- package/dist/store/filters-store.d.ts.map +0 -1
- package/dist/store/filters-store.js +0 -28
- package/dist/store/filters-store.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const history_service_1 = require("../../services/history-service");
|
|
13
|
+
class HistoryController {
|
|
14
|
+
static getById(req, res, next) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
try {
|
|
17
|
+
const { entity, id } = req.params;
|
|
18
|
+
const hs = new history_service_1.HistoryService(req.infoAccessToken);
|
|
19
|
+
const output = yield hs.readById(entity, Number(id));
|
|
20
|
+
res.json(output);
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
next(e);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = HistoryController;
|
|
29
|
+
//# sourceMappingURL=history-controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-controller.js","sourceRoot":"","sources":["../../../src/controller/close-api/history-controller.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,oEAA8D;AAE9D,MAAqB,iBAAiB;IACrC,MAAM,CAAO,OAAO,CAAC,GAAY,EAAE,GAAa,EAAE,IAAI;;YACrD,IAAI,CAAC;gBACJ,MAAM,EAAC,MAAM,EAAE,EAAE,EAAC,GAAG,GAAG,CAAC,MAAM,CAAC;gBAEhC,MAAM,EAAE,GAAG,IAAI,gCAAc,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;gBAEnD,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;gBACrD,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACZ,IAAI,CAAC,CAAC,CAAC,CAAC;YACT,CAAC;QACF,CAAC;KAAA;CACD;AAbD,oCAaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-validator-controller.d.ts","sourceRoot":"","sources":["../../../src/controller/close-api/rules-validator-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,wBAAwB;IACzC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,KAAA;CAcpD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const rules_validation_service_1 = __importDefault(require("../../services/rules-validation-service"));
|
|
7
|
+
class RulesValidatorController {
|
|
8
|
+
static validate(req, res, next) {
|
|
9
|
+
try {
|
|
10
|
+
const { scope } = req.params;
|
|
11
|
+
const ruleValidation = new rules_validation_service_1.default(req.infoAccessToken);
|
|
12
|
+
const result = ruleValidation.validate(scope, req.body);
|
|
13
|
+
return res.json(result);
|
|
14
|
+
}
|
|
15
|
+
catch (e) {
|
|
16
|
+
next(e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = RulesValidatorController;
|
|
21
|
+
//# sourceMappingURL=rules-validator-controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-validator-controller.js","sourceRoot":"","sources":["../../../src/controller/close-api/rules-validator-controller.ts"],"names":[],"mappings":";;;;;AACA,uGAA6E;AAE7E,MAAqB,wBAAwB;IACzC,MAAM,CAAC,QAAQ,CAAC,GAAY,EAAE,GAAa,EAAE,IAAI;QAC7C,IAAI,CAAC;YACD,MAAM,EAAC,KAAK,EAAC,GAAG,GAAG,CAAC,MAAM,CAAC;YAG3B,MAAM,cAAc,GAAG,IAAI,kCAAsB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YACvE,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;YAExD,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE5B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC;IACL,CAAC;CACJ;AAfD,2CAeC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
/**
|
|
3
|
+
* @description Получение информации о пользователе. Важной особенностью данного метода является зависимость от типа
|
|
4
|
+
* web-server запрос будет содержать полную информацию о Front пользователе, либо краткую информацию про внутреннего
|
|
5
|
+
* пользователя.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getUserContent(req: Request, res: Response, next: any): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=close-api-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-api-controller.d.ts","sourceRoot":"","sources":["../../src/controller/close-api-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AAI1C;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,KAAA,iBAgBrE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getUserContent = void 0;
|
|
13
|
+
const client_read_1 = require("../socket/events/client_read");
|
|
14
|
+
/**
|
|
15
|
+
* @description Получение информации о пользователе. Важной особенностью данного метода является зависимость от типа
|
|
16
|
+
* web-server запрос будет содержать полную информацию о Front пользователе, либо краткую информацию про внутреннего
|
|
17
|
+
* пользователя.
|
|
18
|
+
*/
|
|
19
|
+
function getUserContent(req, res, next) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
try {
|
|
22
|
+
const accessToken = req.infoAccessToken;
|
|
23
|
+
const userId = req.infoUserId;
|
|
24
|
+
const personId = req.infoPersonId;
|
|
25
|
+
res.json(yield (0, client_read_1.readClientSocket)({
|
|
26
|
+
userId,
|
|
27
|
+
personId,
|
|
28
|
+
token: accessToken,
|
|
29
|
+
usageContext: "",
|
|
30
|
+
contextId: 0
|
|
31
|
+
}, {}));
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
next(e);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
exports.getUserContent = getUserContent;
|
|
39
|
+
//# sourceMappingURL=close-api-controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-api-controller.js","sourceRoot":"","sources":["../../src/controller/close-api-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8DAA8D;AAG9D;;;;GAIG;AACH,SAAsB,cAAc,CAAC,GAAY,EAAE,GAAa,EAAE,IAAI;;QACrE,IAAI,CAAC;YACJ,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,CAAC;YACxC,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YAC9B,MAAM,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC;YAElC,GAAG,CAAC,IAAI,CAAC,MAAM,IAAA,8BAAgB,EAAC;gBAC/B,MAAM;gBACN,QAAQ;gBACR,KAAK,EAAE,WAAW;gBAClB,YAAY,EAAE,EAAE;gBAChB,SAAS,EAAE,CAAC;aACZ,EAAE,EAAE,CAAC,CAAC,CAAA;QACR,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,CAAC,CAAC,CAAC,CAAC;QACT,CAAC;IACF,CAAC;CAAA;AAhBD,wCAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dto-list-options.d.ts","sourceRoot":"","sources":["../../src/dtos/dto-list-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAC;AAGxD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,OAAO,EAAE,OAAO,GAAE,YAAY,CAMpE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const parse_order_1 = __importDefault(require("../utils/parse-order"));
|
|
7
|
+
function dtoListOptions(options) {
|
|
8
|
+
if (!isSimpleListOptions(options))
|
|
9
|
+
throw new Error('List options should be an object.');
|
|
10
|
+
options.order = (0, parse_order_1.default)(options.order);
|
|
11
|
+
return options;
|
|
12
|
+
}
|
|
13
|
+
exports.default = dtoListOptions;
|
|
14
|
+
function isSimpleListOptions(options) {
|
|
15
|
+
return (typeof options === 'object' || options !== null);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=dto-list-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dto-list-options.js","sourceRoot":"","sources":["../../src/dtos/dto-list-options.ts"],"names":[],"mappings":";;;;;AACA,uEAA8C;AAE9C,SAAwB,cAAc,CAAC,OAAgB;IACtD,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IAExF,OAAO,CAAC,KAAK,GAAG,IAAA,qBAAU,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE1C,OAAO,OAAO,CAAC;AAChB,CAAC;AAND,iCAMC;AAED,SAAS,mBAAmB,CAAC,OAAO;IACnC,OAAO,CAAC,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,CAAC,CAAA;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto-list-setting.d.ts","sourceRoot":"","sources":["../../src/dtos/dto-list-setting.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAEnE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"dto-list-setting.d.ts","sourceRoot":"","sources":["../../src/dtos/dto-list-setting.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAEnE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,IAAI,EAAE,OAAO,qBAcnD"}
|
|
@@ -13,7 +13,9 @@ function dtoListSetting(data) {
|
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
config: data.config || [],
|
|
15
15
|
// @ts-ignore
|
|
16
|
-
tools: data.tools || []
|
|
16
|
+
tools: data.tools || [],
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
modifications: Array.isArray(data.modifications) ? data.modifications : [] });
|
|
17
19
|
}
|
|
18
20
|
exports.default = dtoListSetting;
|
|
19
21
|
//# sourceMappingURL=dto-list-setting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto-list-setting.js","sourceRoot":"","sources":["../../src/dtos/dto-list-setting.ts"],"names":[],"mappings":";;;;;AAAA,wFAA8D;AAG9D,SAAwB,cAAc,CAAC,IAAa;IAChD,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,MAAM,6BAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC3F,IAAI,CAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAQ,IAA0B,CAAC,MAAM,KAAK,QAAQ,CAAC;QAC9E,MAAM,6BAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO,gCACA,IAAI;QACP,aAAa;QACb,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE;QACzB,aAAa;QACb,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"dto-list-setting.js","sourceRoot":"","sources":["../../src/dtos/dto-list-setting.ts"],"names":[],"mappings":";;;;;AAAA,wFAA8D;AAG9D,SAAwB,cAAc,CAAC,IAAa;IAChD,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,MAAM,6BAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC3F,IAAI,CAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAQ,IAA0B,CAAC,MAAM,KAAK,QAAQ,CAAC;QAC9E,MAAM,6BAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO,gCACA,IAAI;QACP,aAAa;QACb,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE;QACzB,aAAa;QACb,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE;QACvB,aAAa;QACb,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,GACxD,CAAA;AAC1B,CAAC;AAdD,iCAcC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Используется как тестовый middleware для development разработки
|
|
3
|
+
* Подставляет token, userId в req и session
|
|
4
|
+
*/
|
|
5
|
+
import { Request, Response } from "express";
|
|
6
|
+
declare const _default: (req: Request, res: Response, next: any) => void;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=test-middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-middleware.d.ts","sourceRoot":"","sources":["../../src/middleware/test-middleware.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;8BAKrB,OAAO,OAAO,QAAQ;AAA3C,wBAiBC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jwt_decode_1 = __importDefault(require("jwt-decode"));
|
|
7
|
+
const store_1 = require("../store");
|
|
8
|
+
const get_current_context_from_request_1 = __importDefault(require("../utils/get-current-context-from-request"));
|
|
9
|
+
exports.default = (req, res, next) => {
|
|
10
|
+
try {
|
|
11
|
+
const state = store_1.store.getState();
|
|
12
|
+
const accessToken = req.infoAccessToken = state.token;
|
|
13
|
+
const payload = (0, jwt_decode_1.default)(accessToken);
|
|
14
|
+
req.infoCurrentContextId = (0, get_current_context_from_request_1.default)(req) || Number(payload["AppRegister.Claim.PersonId"]);
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
req.oidc = {
|
|
17
|
+
user: payload
|
|
18
|
+
};
|
|
19
|
+
req.infoUserId = payload["AppRegister.Claim.UserId"];
|
|
20
|
+
req.infoPersonId = payload["AppRegister.Claim.PersonId"];
|
|
21
|
+
next();
|
|
22
|
+
}
|
|
23
|
+
catch (e) {
|
|
24
|
+
next(e);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=test-middleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-middleware.js","sourceRoot":"","sources":["../../src/middleware/test-middleware.ts"],"names":[],"mappings":";;;;;AAKA,4DAAmC;AACnC,oCAA+B;AAC/B,iHAAqF;AAErF,kBAAe,CAAC,GAAY,EAAE,GAAa,EAAE,IAAI,EAAE,EAAE;IACpD,IAAI,CAAC;QACJ,MAAM,KAAK,GAAG,aAAK,CAAC,QAAQ,EAAE,CAAC;QAE/B,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,GAAG,KAAK,CAAC,KAAK,CAAC;QACtD,MAAM,OAAO,GAAG,IAAA,oBAAS,EAAC,WAAW,CAAC,CAAC;QACvC,GAAG,CAAC,oBAAoB,GAAG,IAAA,0CAA4B,EAAC,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC;QAC9G,aAAa;QACb,GAAG,CAAC,IAAI,GAAG;YACV,IAAI,EAAE,OAAO;SACb,CAAA;QACD,GAAG,CAAC,UAAU,GAAS,OAAO,CAAC,0BAA0B,CAAC,CAAC;QAC3D,GAAG,CAAC,YAAY,GAAO,OAAO,CAAC,4BAA4B,CAAC,CAAC;QAC7D,IAAI,EAAE,CAAC;IACR,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,IAAI,CAAC,CAAC,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-route.d.ts","sourceRoot":"","sources":["../../../src/router/close/actions-route.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,4CAAmB,CAAC;AAMhC,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const actions_controller_1 = __importDefault(require("../../controller/close-api/actions-controller"));
|
|
8
|
+
const Router = express_1.default.Router();
|
|
9
|
+
Router.get('/:entity/:id', actions_controller_1.default.getById);
|
|
10
|
+
Router.get('/', actions_controller_1.default.get);
|
|
11
|
+
Router.post('/:name', actions_controller_1.default.execute);
|
|
12
|
+
exports.default = Router;
|
|
13
|
+
//# sourceMappingURL=actions-route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-route.js","sourceRoot":"","sources":["../../../src/router/close/actions-route.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,uGAA8E;AAC9E,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEhC,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,4BAAiB,CAAC,OAAO,CAAC,CAAA;AACrD,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,4BAAiB,CAAC,GAAG,CAAC,CAAC;AACvC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,4BAAiB,CAAC,OAAO,CAAC,CAAC;AAEjD,kBAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-router.d.ts","sourceRoot":"","sources":["../../../src/router/close/audit-router.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,4CAAmB,CAAC;AAIrC,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const history_controller_1 = __importDefault(require("../../controller/close-api/history-controller"));
|
|
8
|
+
const AuditRouter = express_1.default.Router();
|
|
9
|
+
AuditRouter.get('/history/:entity/:id', history_controller_1.default.getById);
|
|
10
|
+
exports.default = AuditRouter;
|
|
11
|
+
//# sourceMappingURL=audit-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-router.js","sourceRoot":"","sources":["../../../src/router/close/audit-router.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,uGAA8E;AAC9E,MAAM,WAAW,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAErC,WAAW,CAAC,GAAG,CAAC,sBAAsB,EAAE,4BAAiB,CAAC,OAAO,CAAC,CAAC;AAEnE,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-router.d.ts","sourceRoot":"","sources":["../../../src/router/close/client-router.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,4CAAmB,CAAC;AAItC,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const view_controller_1 = __importDefault(require("../../controller/close-api/view-controller"));
|
|
8
|
+
const ClientRouter = express_1.default.Router();
|
|
9
|
+
ClientRouter.get("/navigation", view_controller_1.default.getNavigation);
|
|
10
|
+
exports.default = ClientRouter;
|
|
11
|
+
//# sourceMappingURL=client-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-router.js","sourceRoot":"","sources":["../../../src/router/close/client-router.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,iGAAwE;AACxE,MAAM,YAAY,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEtC,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,yBAAc,CAAC,aAAa,CAAC,CAAA;AAE7D,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication-router.d.ts","sourceRoot":"","sources":["../../../src/router/close/communication-router.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mBAAmB,4CAAmB,CAAC;AAO7C,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const communication_controller_1 = __importDefault(require("../../controller/close-api/communication-controller"));
|
|
8
|
+
const CommunicationRouter = express_1.default.Router();
|
|
9
|
+
CommunicationRouter.post('/', communication_controller_1.default.create);
|
|
10
|
+
CommunicationRouter.get('/', communication_controller_1.default.read);
|
|
11
|
+
CommunicationRouter.get('/:communicationId/messages', communication_controller_1.default.readMessages);
|
|
12
|
+
CommunicationRouter.post('/:communicationId/messages', communication_controller_1.default.createMessage);
|
|
13
|
+
exports.default = CommunicationRouter;
|
|
14
|
+
//# sourceMappingURL=communication-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication-router.js","sourceRoot":"","sources":["../../../src/router/close/communication-router.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,mHAC4D;AAC5D,MAAM,mBAAmB,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAE7C,mBAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,kCAAuB,CAAC,MAAM,CAAC,CAAA;AAC7D,mBAAmB,CAAC,GAAG,CAAC,GAAG,EAAE,kCAAuB,CAAC,IAAI,CAAC,CAAA;AAC1D,mBAAmB,CAAC,GAAG,CAAC,4BAA4B,EAAE,kCAAuB,CAAC,YAAY,CAAC,CAAC;AAC5F,mBAAmB,CAAC,IAAI,CAAC,4BAA4B,EAAE,kCAAuB,CAAC,aAAa,CAAC,CAAC;AAE9F,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-router.d.ts","sourceRoot":"","sources":["../../../src/router/close/presentation-router.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,4CAAmB,CAAC;AAI5C,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const view_controller_1 = __importDefault(require("../../controller/close-api/view-controller"));
|
|
8
|
+
const PresentationRouter = express_1.default.Router();
|
|
9
|
+
PresentationRouter.get('/status/:entity/:code', view_controller_1.default.getPresentationStatuses);
|
|
10
|
+
exports.default = PresentationRouter;
|
|
11
|
+
//# sourceMappingURL=presentation-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-router.js","sourceRoot":"","sources":["../../../src/router/close/presentation-router.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,iGAAwE;AACxE,MAAM,kBAAkB,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAE5C,kBAAkB,CAAC,GAAG,CAAC,uBAAuB,EAAE,yBAAc,CAAC,uBAAuB,CAAC,CAAA;AAEvF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-validator-router.d.ts","sourceRoot":"","sources":["../../../src/router/close/rules-validator-router.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB,4CAAmB,CAAC;AAI9C,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const rules_validator_controller_1 = __importDefault(require("../../controller/close-api/rules-validator-controller"));
|
|
8
|
+
const RulesValidatorRouter = express_1.default.Router();
|
|
9
|
+
RulesValidatorRouter.post('/:scope', rules_validator_controller_1.default.validate);
|
|
10
|
+
exports.default = RulesValidatorRouter;
|
|
11
|
+
//# sourceMappingURL=rules-validator-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-validator-router.js","sourceRoot":"","sources":["../../../src/router/close/rules-validator-router.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,uHAA6F;AAC7F,MAAM,oBAAoB,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAE9C,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,oCAAwB,CAAC,QAAQ,CAAC,CAAA;AAEvE,kBAAe,oBAAoB,CAAC"}
|
|
@@ -4,11 +4,10 @@ export default class ActionService extends InterfaceAuthService {
|
|
|
4
4
|
context: any;
|
|
5
5
|
criterion: any;
|
|
6
6
|
}): Promise<ActionListResponse[]>;
|
|
7
|
-
execute({ usageContext, name,
|
|
7
|
+
execute({ usageContext, name, params }: {
|
|
8
8
|
usageContext: any;
|
|
9
9
|
name: any;
|
|
10
|
-
|
|
11
|
-
contextId: any;
|
|
10
|
+
params: any;
|
|
12
11
|
}): Promise<any>;
|
|
13
12
|
/**
|
|
14
13
|
* @description Возвращает набор всех actions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-service.d.ts","sourceRoot":"","sources":["../../src/services/action-service.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"action-service.d.ts","sourceRoot":"","sources":["../../src/services/action-service.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAI5D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB;IACxD,GAAG,CAAC,EAAC,OAAO,EAAE,SAAS,EAAC;;;KAAA;IAsB9B,OAAO,CAAC,EAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAC;;;;KAAA;IAiBpC;;OAEG;IACH,OAAO;CASP;AAED,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAA;CACX"}
|
|
@@ -35,7 +35,7 @@ class ActionService extends interface_auth_service_1.default {
|
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
execute({ usageContext, name,
|
|
38
|
+
execute({ usageContext, name, params }) {
|
|
39
39
|
const url = `${Server_1.default.instance.params.apiUrl}/api/ActionManager/UsageContext/${usageContext}/Tool/${name}`;
|
|
40
40
|
return (0, nodeFetch_1.default)(url, {
|
|
41
41
|
method: "POST",
|
|
@@ -44,8 +44,8 @@ class ActionService extends interface_auth_service_1.default {
|
|
|
44
44
|
authorization: this.token
|
|
45
45
|
},
|
|
46
46
|
body: JSON.stringify({
|
|
47
|
-
primaryKeyJson: JSON.stringify(
|
|
48
|
-
parametersJson: JSON.stringify(
|
|
47
|
+
primaryKeyJson: JSON.stringify(params), // Так надо!,
|
|
48
|
+
parametersJson: JSON.stringify(params)
|
|
49
49
|
})
|
|
50
50
|
})
|
|
51
51
|
.then(res => res.json());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-service.js","sourceRoot":"","sources":["../../src/services/action-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sFAA4D;AAC5D,mEAA2C;
|
|
1
|
+
{"version":3,"file":"action-service.js","sourceRoot":"","sources":["../../src/services/action-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sFAA4D;AAC5D,mEAA2C;AAC3C,uDAA+B;AAE/B,MAAqB,aAAc,SAAQ,gCAAoB;IACxD,GAAG,CAAC,EAAC,OAAO,EAAE,SAAS,EAAC;;YAE7B,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,IAAI,SAAS;gBAAE,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;YAEzD,MAAM,GAAG,GAAG,GAAG,gBAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,qBAAqB,OAAO,UAAU,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAA;YAErG,MAAM,MAAM,GAAyB,MAAM,IAAA,mBAAS,EAAC,GAAG,EAAE;gBACzD,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;oBAClC,aAAa,EAAE,IAAI,CAAC,KAAK;iBACzB;aACD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;YAEtB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACxB,IAAI,CAAC,GAAG,GAAG,sBAAsB,IAAI,CAAC,IAAI,EAAE,CAAA;gBAC5C,OAAO,IAAI,CAAC;YACb,CAAC,CAAC,CAAA;QAEH,CAAC;KAAA;IAED,OAAO,CAAC,EAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAC;QACnC,MAAM,GAAG,GAAG,GAAG,gBAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,mCAAmC,YAAY,SAAS,IAAI,EAAE,CAAA;QAE1G,OAAO,IAAA,mBAAS,EAAC,GAAG,EAAE;YACrB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACR,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,IAAI,CAAC,KAAK;aACzB;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACpB,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,aAAa;gBACrD,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;aACtC,CAAC;SACF,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;QACN,OAAO,IAAA,mBAAS,EAAC,gBAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,GAAG,uBAAuB,EAAE;YACzE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACR,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,IAAI,CAAC,KAAK;aACzB;SACD,CAAC,CAAA;IACH,CAAC;CACD;AApDD,gCAoDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-setting-service.d.ts","sourceRoot":"","sources":["../../src/services/list-setting-service.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,OAAO,kBAAkB;IAEtC;;;;OAIG;IACG,eAAe,CAAC,IAAI,EAAE,OAAO;IAYnC;;;OAGG;IACH,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;IA8D9D;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,OAAO;IAW1B,OAAO,CAAC,qBAAqB;IAkB7B;;;OAGG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;IAoD9C;;;;;;OAMG;IAEH;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,gBAAgB;CAaxB;AAED,MAAM,WAAW,2BAA2B;IAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"list-setting-service.d.ts","sourceRoot":"","sources":["../../src/services/list-setting-service.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,OAAO,kBAAkB;IAEtC;;;;OAIG;IACG,eAAe,CAAC,IAAI,EAAE,OAAO;IAYnC;;;OAGG;IACH,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;IA8D9D;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,OAAO;IAW1B,OAAO,CAAC,qBAAqB;IAkB7B;;;OAGG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;IAoD9C;;;;;;OAMG;IAEH;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,gBAAgB;CAaxB;AAED,MAAM,WAAW,2BAA2B;IAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,GAAG,EAAE,CAAA;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-manager-service.d.ts","sourceRoot":"","sources":["../../src/services/user-manager-service.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAM5D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,oBAAoB;IACnE,YAAY;CAcZ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const interface_auth_service_1 = __importDefault(require("./interface-auth-service"));
|
|
7
|
+
const utils_1 = require("../utils");
|
|
8
|
+
const Server_1 = __importDefault(require("../Server"));
|
|
9
|
+
const nodeFetch_1 = __importDefault(require("../utils/nodeFetch"));
|
|
10
|
+
class UserManagerService extends interface_auth_service_1.default {
|
|
11
|
+
registerUser() {
|
|
12
|
+
const url = (0, utils_1.joinURL)(Server_1.default.instance.params.apiUrl, 'api/UsersManager/RegisterUser');
|
|
13
|
+
return (0, nodeFetch_1.default)(url, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
headers: {
|
|
16
|
+
'Content-Type': 'application/json',
|
|
17
|
+
authorization: this.token
|
|
18
|
+
},
|
|
19
|
+
})
|
|
20
|
+
.then(res => res.json());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = UserManagerService;
|
|
24
|
+
//# sourceMappingURL=user-manager-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-manager-service.js","sourceRoot":"","sources":["../../src/services/user-manager-service.ts"],"names":[],"mappings":";;;;;AAAA,sFAA4D;AAE5D,oCAAiC;AACjC,uDAA+B;AAC/B,mEAA2C;AAE3C,MAAqB,kBAAmB,SAAQ,gCAAoB;IACnE,YAAY;QACX,MAAM,GAAG,GAAG,IAAA,eAAO,EAClB,gBAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAC7B,+BAA+B,CAC/B,CAAA;QACD,OAAO,IAAA,mBAAS,EAAC,GAAG,EAAE;YACrB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACR,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,IAAI,CAAC,KAAK;aACzB;SACD,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;IACzB,CAAC;CACD;AAfD,qCAeC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration-read-socket.d.ts","sourceRoot":"","sources":["../../src/socket/configuration-read-socket.ts"],"names":[],"mappings":"AAIA,wBAAgB,iBAAiB,QAEhC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.readConfiguration = void 0;
|
|
7
|
+
const store_1 = require("../store");
|
|
8
|
+
const Store_1 = __importDefault(require("../store/Store"));
|
|
9
|
+
const Server_1 = __importDefault(require("../Server"));
|
|
10
|
+
function readConfiguration() {
|
|
11
|
+
return getServerConfiguration();
|
|
12
|
+
}
|
|
13
|
+
exports.readConfiguration = readConfiguration;
|
|
14
|
+
function getServerConfiguration() {
|
|
15
|
+
const state = store_1.store.getState();
|
|
16
|
+
return Object.assign(Object.assign({}, state.webServerConfiguration), { navigation: Store_1.default.viewNavigation, notification: Store_1.default.viewNotification, version: Server_1.default.getServer().version });
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=configuration-read-socket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration-read-socket.js","sourceRoot":"","sources":["../../src/socket/configuration-read-socket.ts"],"names":[],"mappings":";;;;;;AAAA,oCAA+B;AAC/B,2DAAmC;AACnC,uDAA+B;AAE/B,SAAgB,iBAAiB;IAChC,OAAO,sBAAsB,EAAE,CAAC;AACjC,CAAC;AAFD,8CAEC;AAED,SAAS,sBAAsB;IAC9B,MAAM,KAAK,GAAG,aAAK,CAAC,QAAQ,EAAE,CAAC;IAC/B,uCACI,KAAK,CAAC,sBAAsB,KAC/B,UAAU,EAAE,eAAK,CAAC,cAAc,EAChC,YAAY,EAAE,eAAK,CAAC,gBAAgB,EACpC,OAAO,EAAE,gBAAM,CAAC,SAAS,EAAE,CAAC,OAAO,IACnC;AACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ISocketOptions } from "./connect-socket";
|
|
2
|
+
export declare function getCountEntitySocket(options: ISocketOptions, data: unknown): Promise<import("../types/main").IRequestCountResult>;
|
|
3
|
+
export interface IEntityReadParams {
|
|
4
|
+
entity: string;
|
|
5
|
+
filter?: string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=entity-count-socket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-count-socket.d.ts","sourceRoot":"","sources":["../../src/socket/entity-count-socket.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAQhD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,wDAchF;AAOD,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getCountEntitySocket = void 0;
|
|
16
|
+
const api_error_1 = __importDefault(require("../errors/api-error"));
|
|
17
|
+
const data_service_1 = __importDefault(require("../services/data-service"));
|
|
18
|
+
const get_extend_customer_filters_1 = require("../utils/get-extend-customer-filters");
|
|
19
|
+
const Server_1 = __importDefault(require("../Server"));
|
|
20
|
+
const debug_1 = __importDefault(require("debug"));
|
|
21
|
+
const utils_1 = require("../utils");
|
|
22
|
+
const debug = (0, debug_1.default)((0, utils_1.getCoreDebugMark)("socket:entity-count"));
|
|
23
|
+
function getCountEntitySocket(options, data) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
if (!isEntityCountParams(data))
|
|
26
|
+
throw api_error_1.default.SocketWrongEntityReadParams();
|
|
27
|
+
const dataService = new data_service_1.default(options.token);
|
|
28
|
+
let filter = "";
|
|
29
|
+
if (Server_1.default.instance.type === 'front')
|
|
30
|
+
filter = yield (0, get_extend_customer_filters_1.joinExtendCustomerFilters)(data.filter, options.contextId, data.entity);
|
|
31
|
+
debug(`For entity "%s" result filter %s`, data.entity, filter);
|
|
32
|
+
return dataService.getCount(data.entity, {
|
|
33
|
+
filter
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.getCountEntitySocket = getCountEntitySocket;
|
|
38
|
+
const isEntityCountParams = (value) => !!value && typeof value === 'object' &&
|
|
39
|
+
'entity' in value && typeof value.entity === 'string';
|
|
40
|
+
//# sourceMappingURL=entity-count-socket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-count-socket.js","sourceRoot":"","sources":["../../src/socket/entity-count-socket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oEAA2C;AAE3C,4EAAmD;AACnD,sFAA+E;AAC/E,uDAA+B;AAC/B,kDAA+B;AAC/B,oCAA0C;AAC1C,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,IAAA,wBAAgB,EAAC,qBAAqB,CAAC,CAAC,CAAA;AAElE,SAAsB,oBAAoB,CAAC,OAAuB,EAAE,IAAa;;QAC7E,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;YAAE,MAAM,mBAAQ,CAAC,2BAA2B,EAAE,CAAC;QAE7E,MAAM,WAAW,GAAG,IAAI,sBAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAEnD,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,gBAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO;YAChC,MAAM,GAAG,MAAM,IAAA,uDAAyB,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAE1F,KAAK,CAAC,kCAAkC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAE/D,OAAO,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE;YACrC,MAAM;SACT,CAAC,CAAA;IACN,CAAC;CAAA;AAdD,oDAcC;AAED,MAAM,mBAAmB,GAAG,CAAC,KAAc,EACZ,EAAE,CAC7B,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;IACpC,QAAQ,IAAI,KAAK,IAAI,OAAQ,KAA2B,CAAC,MAAM,KAAK,QAAQ,CAAA"}
|