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.
Files changed (144) hide show
  1. package/dist/agents/agent.d.ts +6 -0
  2. package/dist/agents/agent.d.ts.map +1 -0
  3. package/dist/agents/agent.js +12 -0
  4. package/dist/agents/agent.js.map +1 -0
  5. package/dist/agents/text-search-agent.d.ts +34 -0
  6. package/dist/agents/text-search-agent.d.ts.map +1 -0
  7. package/dist/agents/text-search-agent.js +84 -0
  8. package/dist/agents/text-search-agent.js.map +1 -0
  9. package/dist/app.js +4 -1
  10. package/dist/app.js.map +1 -1
  11. package/dist/auth/auth-manager.d.ts +9 -0
  12. package/dist/auth/auth-manager.d.ts.map +1 -0
  13. package/dist/auth/auth-manager.js +9 -0
  14. package/dist/auth/auth-manager.js.map +1 -0
  15. package/dist/auth/reload-session-promisify.d.ts.map +1 -1
  16. package/dist/auth/reload-session-promisify.js +10 -1
  17. package/dist/auth/reload-session-promisify.js.map +1 -1
  18. package/dist/auth/use-auth.d.ts.map +1 -1
  19. package/dist/auth/use-auth.js +6 -0
  20. package/dist/auth/use-auth.js.map +1 -1
  21. package/dist/auth/wait-identity-client.d.ts +2 -0
  22. package/dist/auth/wait-identity-client.d.ts.map +1 -0
  23. package/dist/auth/wait-identity-client.js +6 -0
  24. package/dist/auth/wait-identity-client.js.map +1 -0
  25. package/dist/constants.d.ts +1 -0
  26. package/dist/constants.d.ts.map +1 -1
  27. package/dist/constants.js +2 -1
  28. package/dist/constants.js.map +1 -1
  29. package/dist/controller/close-api/actions-controller.d.ts +7 -0
  30. package/dist/controller/close-api/actions-controller.d.ts.map +1 -0
  31. package/dist/controller/close-api/actions-controller.js +75 -0
  32. package/dist/controller/close-api/actions-controller.js.map +1 -0
  33. package/dist/controller/close-api/communication-controller.d.ts +8 -0
  34. package/dist/controller/close-api/communication-controller.d.ts.map +1 -0
  35. package/dist/controller/close-api/communication-controller.js +89 -0
  36. package/dist/controller/close-api/communication-controller.js.map +1 -0
  37. package/dist/controller/close-api/history-controller.d.ts +5 -0
  38. package/dist/controller/close-api/history-controller.d.ts.map +1 -0
  39. package/dist/controller/close-api/history-controller.js +29 -0
  40. package/dist/controller/close-api/history-controller.js.map +1 -0
  41. package/dist/controller/close-api/rules-validator-controller.d.ts +5 -0
  42. package/dist/controller/close-api/rules-validator-controller.d.ts.map +1 -0
  43. package/dist/controller/close-api/rules-validator-controller.js +21 -0
  44. package/dist/controller/close-api/rules-validator-controller.js.map +1 -0
  45. package/dist/controller/close-api-controller.d.ts +8 -0
  46. package/dist/controller/close-api-controller.d.ts.map +1 -0
  47. package/dist/controller/close-api-controller.js +39 -0
  48. package/dist/controller/close-api-controller.js.map +1 -0
  49. package/dist/dtos/dto-list-options.d.ts +3 -0
  50. package/dist/dtos/dto-list-options.d.ts.map +1 -0
  51. package/dist/dtos/dto-list-options.js +17 -0
  52. package/dist/dtos/dto-list-options.js.map +1 -0
  53. package/dist/dtos/dto-list-setting.d.ts.map +1 -1
  54. package/dist/dtos/dto-list-setting.js +3 -1
  55. package/dist/dtos/dto-list-setting.js.map +1 -1
  56. package/dist/middleware/test-middleware.d.ts +8 -0
  57. package/dist/middleware/test-middleware.d.ts.map +1 -0
  58. package/dist/middleware/test-middleware.js +27 -0
  59. package/dist/middleware/test-middleware.js.map +1 -0
  60. package/dist/router/close/actions-route.d.ts +3 -0
  61. package/dist/router/close/actions-route.d.ts.map +1 -0
  62. package/dist/router/close/actions-route.js +13 -0
  63. package/dist/router/close/actions-route.js.map +1 -0
  64. package/dist/router/close/audit-router.d.ts +3 -0
  65. package/dist/router/close/audit-router.d.ts.map +1 -0
  66. package/dist/router/close/audit-router.js +11 -0
  67. package/dist/router/close/audit-router.js.map +1 -0
  68. package/dist/router/close/client-router.d.ts +3 -0
  69. package/dist/router/close/client-router.d.ts.map +1 -0
  70. package/dist/router/close/client-router.js +11 -0
  71. package/dist/router/close/client-router.js.map +1 -0
  72. package/dist/router/close/communication-router.d.ts +3 -0
  73. package/dist/router/close/communication-router.d.ts.map +1 -0
  74. package/dist/router/close/communication-router.js +14 -0
  75. package/dist/router/close/communication-router.js.map +1 -0
  76. package/dist/router/close/presentation-router.d.ts +3 -0
  77. package/dist/router/close/presentation-router.d.ts.map +1 -0
  78. package/dist/router/close/presentation-router.js +11 -0
  79. package/dist/router/close/presentation-router.js.map +1 -0
  80. package/dist/router/close/rules-validator-router.d.ts +3 -0
  81. package/dist/router/close/rules-validator-router.d.ts.map +1 -0
  82. package/dist/router/close/rules-validator-router.js +11 -0
  83. package/dist/router/close/rules-validator-router.js.map +1 -0
  84. package/dist/services/action-service.d.ts +2 -3
  85. package/dist/services/action-service.d.ts.map +1 -1
  86. package/dist/services/action-service.js +3 -3
  87. package/dist/services/action-service.js.map +1 -1
  88. package/dist/services/list-setting-service.d.ts +1 -0
  89. package/dist/services/list-setting-service.d.ts.map +1 -1
  90. package/dist/services/user-manager-service.d.ts +5 -0
  91. package/dist/services/user-manager-service.d.ts.map +1 -0
  92. package/dist/services/user-manager-service.js +24 -0
  93. package/dist/services/user-manager-service.js.map +1 -0
  94. package/dist/socket/configuration-read-socket.d.ts +2 -0
  95. package/dist/socket/configuration-read-socket.d.ts.map +1 -0
  96. package/dist/socket/configuration-read-socket.js +18 -0
  97. package/dist/socket/configuration-read-socket.js.map +1 -0
  98. package/dist/socket/entity-count-socket.d.ts +7 -0
  99. package/dist/socket/entity-count-socket.d.ts.map +1 -0
  100. package/dist/socket/entity-count-socket.js +40 -0
  101. package/dist/socket/entity-count-socket.js.map +1 -0
  102. package/dist/socket/entity-read-socket.d.ts +10 -0
  103. package/dist/socket/entity-read-socket.d.ts.map +1 -0
  104. package/dist/socket/entity-read-socket.js +57 -0
  105. package/dist/socket/entity-read-socket.js.map +1 -0
  106. package/dist/socket/events/tool_execute.d.ts.map +1 -1
  107. package/dist/socket/events/tool_execute.js +5 -2
  108. package/dist/socket/events/tool_execute.js.map +1 -1
  109. package/dist/socket/metadata-read-socket.d.ts +10 -0
  110. package/dist/socket/metadata-read-socket.d.ts.map +1 -0
  111. package/dist/socket/metadata-read-socket.js +63 -0
  112. package/dist/socket/metadata-read-socket.js.map +1 -0
  113. package/dist/store/Store.d.ts +60 -0
  114. package/dist/store/Store.d.ts.map +1 -0
  115. package/dist/store/Store.js +83 -0
  116. package/dist/store/Store.js.map +1 -0
  117. package/dist/store/actions.d.ts +26 -0
  118. package/dist/store/actions.d.ts.map +1 -0
  119. package/dist/store/actions.js +23 -0
  120. package/dist/store/actions.js.map +1 -0
  121. package/dist/store/index.d.ts +2 -0
  122. package/dist/store/index.d.ts.map +1 -0
  123. package/dist/store/index.js +10 -0
  124. package/dist/store/index.js.map +1 -0
  125. package/dist/store/reducer.d.ts +45 -0
  126. package/dist/store/reducer.d.ts.map +1 -0
  127. package/dist/store/reducer.js +27 -0
  128. package/dist/store/reducer.js.map +1 -0
  129. package/dist/types/value-hooks.d.ts +3 -1
  130. package/dist/types/value-hooks.d.ts.map +1 -1
  131. package/dist/utils/iterate-entity-value-with-hooks.js +15 -18
  132. package/dist/utils/iterate-entity-value-with-hooks.js.map +1 -1
  133. package/dist/utils/value-hooks.d.ts.map +1 -1
  134. package/dist/utils/value-hooks.js +40 -0
  135. package/dist/utils/value-hooks.js.map +1 -1
  136. package/package.json +1 -1
  137. package/dist/model/filter-config.d.ts +0 -69
  138. package/dist/model/filter-config.d.ts.map +0 -1
  139. package/dist/model/filter-config.js +0 -146
  140. package/dist/model/filter-config.js.map +0 -1
  141. package/dist/store/filters-store.d.ts +0 -7
  142. package/dist/store/filters-store.d.ts.map +0 -1
  143. package/dist/store/filters-store.js +0 -28
  144. 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,5 @@
1
+ import { Request, Response } from "express";
2
+ export default class RulesValidatorController {
3
+ static validate(req: Request, res: Response, next: any): Response<any, Record<string, any>>;
4
+ }
5
+ //# sourceMappingURL=rules-validator-controller.d.ts.map
@@ -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,3 @@
1
+ import { IListOptions } from "../types/list-setting-type";
2
+ export default function dtoListOptions(options: unknown): IListOptions;
3
+ //# sourceMappingURL=dto-list-options.d.ts.map
@@ -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,qBAYnD"}
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,GACL,CAAA;AAC1B,CAAC;AAZD,iCAYC"}
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,3 @@
1
+ declare const Router: import("express-serve-static-core").Router;
2
+ export default Router;
3
+ //# sourceMappingURL=actions-route.d.ts.map
@@ -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,3 @@
1
+ declare const AuditRouter: import("express-serve-static-core").Router;
2
+ export default AuditRouter;
3
+ //# sourceMappingURL=audit-router.d.ts.map
@@ -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,3 @@
1
+ declare const ClientRouter: import("express-serve-static-core").Router;
2
+ export default ClientRouter;
3
+ //# sourceMappingURL=client-router.d.ts.map
@@ -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,3 @@
1
+ declare const CommunicationRouter: import("express-serve-static-core").Router;
2
+ export default CommunicationRouter;
3
+ //# sourceMappingURL=communication-router.d.ts.map
@@ -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,3 @@
1
+ declare const PresentationRouter: import("express-serve-static-core").Router;
2
+ export default PresentationRouter;
3
+ //# sourceMappingURL=presentation-router.d.ts.map
@@ -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,3 @@
1
+ declare const RulesValidatorRouter: import("express-serve-static-core").Router;
2
+ export default RulesValidatorRouter;
3
+ //# sourceMappingURL=rules-validator-router.d.ts.map
@@ -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, keys, contextId }: {
7
+ execute({ usageContext, name, params }: {
8
8
  usageContext: any;
9
9
  name: any;
10
- keys: any;
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;AAK5D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB;IACxD,GAAG,CAAC,EAAC,OAAO,EAAE,SAAS,EAAC;;;KAAA;IAsB9B,OAAO,CAAC,EAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC;;;;;KAAA;IAiB7C;;OAEG;IACH,OAAO;CASP;AAED,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAA;CACX"}
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, keys, contextId }) {
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(keys), // Так надо!,
48
- parametersJson: JSON.stringify(Object.assign({ ApplicantId: contextId }, keys))
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;AAE3C,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,IAAI,EAAE,SAAS,EAAC;QAC5C,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,IAAI,CAAC,EAAE,aAAa;gBACnD,cAAc,EAAE,IAAI,CAAC,SAAS,iBAAE,WAAW,EAAE,SAAS,IAAK,IAAI,EAAE;aACjE,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
+ {"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"}
@@ -64,5 +64,6 @@ export interface IBaseListSettings {
64
64
  entity: string;
65
65
  config?: unknown;
66
66
  tools?: unknown;
67
+ modifications: any[];
67
68
  }
68
69
  //# sourceMappingURL=list-setting-service.d.ts.map
@@ -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;CACf"}
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,5 @@
1
+ import InterfaceAuthService from "./interface-auth-service";
2
+ export default class UserManagerService extends InterfaceAuthService {
3
+ registerUser(): Promise<any>;
4
+ }
5
+ //# sourceMappingURL=user-manager-service.d.ts.map
@@ -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,2 @@
1
+ export declare function readConfiguration(): any;
2
+ //# sourceMappingURL=configuration-read-socket.d.ts.map
@@ -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"}