eservices-back-core 2.1.43 → 2.1.46
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/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/services/history-service.d.ts +1 -1
- package/dist/services/history-service.d.ts.map +1 -1
- package/dist/services/history-service.js +2 -2
- package/dist/services/history-service.js.map +1 -1
- package/dist/socket/events/history_read.d.ts +2 -2
- package/dist/socket/events/history_read.d.ts.map +1 -1
- package/dist/socket/events/history_read.js +12 -3
- package/dist/socket/events/history_read.js.map +1 -1
- package/dist/types/history-type.d.ts +1 -1
- package/dist/types/history-type.d.ts.map +1 -1
- package/dist/utils/is-uuid.d.ts +1 -1
- package/dist/utils/is-uuid.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,9 @@ import MetadataStore from "./store/metadata-store";
|
|
|
8
8
|
import TemplateStore from "./store/template-store";
|
|
9
9
|
import ValueHooks from "./utils/value-hooks";
|
|
10
10
|
import SocketMessage from "./socket/SocketMessage";
|
|
11
|
-
import { ISocketOptions } from "./types/socket-type";
|
|
11
|
+
import { ISocketOptions, ISocketUtils } from "./types/socket-type";
|
|
12
12
|
import { IValueHook } from "./types/value-hooks";
|
|
13
|
+
import ApiError from "./errors/api-error";
|
|
13
14
|
import DataService from "./services/data-service";
|
|
14
15
|
import dtoTemplateRenderError from "./dtos/dto-template-render-error";
|
|
15
16
|
import { renderResponseTemplate } from "./utils/render-response-template";
|
|
@@ -22,7 +23,7 @@ import valuesToUpperCase from "./utils/values-to-upper-case";
|
|
|
22
23
|
import getCriterionConfig from "./utils/get-criterion-config";
|
|
23
24
|
import { getCriterionPresetFromCustomerRequestInfo } from "./utils/get-criterion-preset";
|
|
24
25
|
import convertMasterEntity from "./utils/convert-master-entity";
|
|
25
|
-
export { SocketMessage, createServer, Server, Logger, Criterion, authModule, ValueHooks, ISocketOptions, IValueHook, DataService, Filter, nodeFetch, joinURL, arrayToUpperCase, valuesToUpperCase, getCriterionConfig, getCriterionPresetFromCustomerRequestInfo, convertMasterEntity, CoreError, MetadataStore, TemplateStore, dtoTemplateRenderError, renderResponseTemplate, utils };
|
|
26
|
+
export { ISocketUtils, SocketMessage, createServer, Server, Logger, Criterion, authModule, ValueHooks, ISocketOptions, IValueHook, DataService, Filter, nodeFetch, joinURL, arrayToUpperCase, valuesToUpperCase, getCriterionConfig, getCriterionPresetFromCustomerRequestInfo, convertMasterEntity, CoreError, ApiError, MetadataStore, TemplateStore, dtoTemplateRenderError, renderResponseTemplate, utils };
|
|
26
27
|
import { ICustomerRequestInfo } from "./types/main";
|
|
27
28
|
export type { ICustomerRequestInfo };
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AACxD,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAC;AAC3C,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAC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gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,yCAAyC,EACzC,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,aAAa,EACb,aAAa,EAEb,sBAAsB,EAEtB,sBAAsB,EACtB,KAAK,EACL,CAAA;AAED,OAAO,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAClD,YAAY,EACX,oBAAoB,EACpB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.utils = exports.renderResponseTemplate = exports.dtoTemplateRenderError = exports.TemplateStore = exports.MetadataStore = exports.CoreError = exports.convertMasterEntity = exports.getCriterionPresetFromCustomerRequestInfo = exports.getCriterionConfig = exports.valuesToUpperCase = exports.arrayToUpperCase = exports.joinURL = exports.nodeFetch = exports.Filter = exports.DataService = exports.ValueHooks = exports.authModule = exports.Criterion = exports.Logger = exports.Server = exports.createServer = exports.SocketMessage = void 0;
|
|
6
|
+
exports.utils = exports.renderResponseTemplate = exports.dtoTemplateRenderError = exports.TemplateStore = exports.MetadataStore = exports.ApiError = exports.CoreError = exports.convertMasterEntity = exports.getCriterionPresetFromCustomerRequestInfo = exports.getCriterionConfig = exports.valuesToUpperCase = exports.arrayToUpperCase = exports.joinURL = exports.nodeFetch = exports.Filter = exports.DataService = exports.ValueHooks = exports.authModule = exports.Criterion = exports.Logger = exports.Server = exports.createServer = exports.SocketMessage = void 0;
|
|
7
7
|
const Server_1 = require("./Server");
|
|
8
8
|
Object.defineProperty(exports, "createServer", { enumerable: true, get: function () { return Server_1.createServer; } });
|
|
9
9
|
const Server_2 = __importDefault(require("./Server"));
|
|
@@ -24,6 +24,8 @@ const value_hooks_1 = __importDefault(require("./utils/value-hooks"));
|
|
|
24
24
|
exports.ValueHooks = value_hooks_1.default;
|
|
25
25
|
const SocketMessage_1 = __importDefault(require("./socket/SocketMessage"));
|
|
26
26
|
exports.SocketMessage = SocketMessage_1.default;
|
|
27
|
+
const api_error_1 = __importDefault(require("./errors/api-error"));
|
|
28
|
+
exports.ApiError = api_error_1.default;
|
|
27
29
|
// SERVICES
|
|
28
30
|
const data_service_1 = __importDefault(require("./services/data-service"));
|
|
29
31
|
exports.DataService = data_service_1.default;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAsC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAsC;AAkCrC,6FAlCO,qBAAY,OAkCP;AAjCb,sDAA8B;AAkC7B,iBAlCM,gBAAM,CAkCN;AAjCP,kEAAwD;AAoCvD,2FApCO,4BAAU,OAoCP;AAnCX,kEAA0C;AAkCzC,oBAlCM,mBAAS,CAkCN;AAjCV,oDAA2C;AAgC1C,uFAhCO,mBAAM,OAgCP;AA/BP,qEAA4C;AAiD3C,oBAjDM,oBAAS,CAiDN;AAhDV,4EAAmD;AAkDlD,wBAlDM,wBAAa,CAkDN;AAjDd,4EAAmD;AAkDlD,wBAlDM,wBAAa,CAkDN;AAjDd,sEAA6C;AA+B5C,qBA/BM,qBAAU,CA+BN;AA9BX,2EAAmD;AAwBlD,wBAxBM,uBAAa,CAwBN;AApBd,mEAA0C;AA0CzC,mBA1CM,mBAAQ,CA0CN;AAzCT,WAAW;AACX,2EAAkD;AA6BjD,sBA7BM,sBAAW,CA6BN;AA3BZ,iGAAsE;AA0CrE,iCA1CM,mCAAsB,CA0CN;AAxCvB,+EAAwE;AA0CvE,uGA1CO,iDAAsB,OA0CP;AAzCvB,mCAA8B;AA0C7B,sFA1CO,aAAK,OA0CP;AAxCN,QAAQ;AACR,4DAAoC;AAuBnC,iBAvBM,gBAAM,CAuBN;AAtBP,kEAA0C;AAuBzC,oBAvBM,mBAAS,CAuBN;AAtBV,mCAAgC;AAuB/B,wFAvBO,eAAO,OAuBP;AAtBR,oFAA0D;AAuBzD,2BAvBM,4BAAgB,CAuBN;AAtBjB,wFAA6D;AAuB5D,4BAvBM,8BAAiB,CAuBN;AAtBlB,wFAA8D;AAuB7D,6BAvBM,8BAAkB,CAuBN;AAtBnB,uEAAuF;AAuBtF,0HAvBO,gEAAyC,OAuBP;AAtB1C,0FAAgE;AAuB/D,8BAvBM,+BAAmB,CAuBN"}
|
|
@@ -4,6 +4,6 @@ export declare class HistoryService extends InterfaceAuthService {
|
|
|
4
4
|
/**
|
|
5
5
|
* @description Reading History configuration for object by id. In current case _id_ is simple primaryKey
|
|
6
6
|
*/
|
|
7
|
-
readById(entity: string,
|
|
7
|
+
readById(entity: string, primaryKey: number | string): Promise<IParsedHistoryResponse>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=history-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-service.d.ts","sourceRoot":"","sources":["../../src/services/history-service.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAIN,sBAAsB,EACtB,MAAM,uBAAuB,CAAC;AAG/B,qBAAa,cAAe,SAAQ,oBAAoB;IACvD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"history-service.d.ts","sourceRoot":"","sources":["../../src/services/history-service.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAIN,sBAAsB,EACtB,MAAM,uBAAuB,CAAC;AAG/B,qBAAa,cAAe,SAAQ,oBAAoB;IACvD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAiCtF"}
|
|
@@ -12,8 +12,8 @@ class HistoryService extends interface_auth_service_1.default {
|
|
|
12
12
|
/**
|
|
13
13
|
* @description Reading History configuration for object by id. In current case _id_ is simple primaryKey
|
|
14
14
|
*/
|
|
15
|
-
readById(entity,
|
|
16
|
-
const url = (0, utils_1.joinURL)(Server_1.default.instance.params.apiUrl, 'api/Audit/History/Entity', entity, String(
|
|
15
|
+
readById(entity, primaryKey) {
|
|
16
|
+
const url = (0, utils_1.joinURL)(Server_1.default.instance.params.apiUrl, 'api/Audit/History/Entity', entity, String(primaryKey));
|
|
17
17
|
return (0, nodeFetch_1.default)(url, {
|
|
18
18
|
method: 'GET',
|
|
19
19
|
headers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-service.js","sourceRoot":"","sources":["../../src/services/history-service.ts"],"names":[],"mappings":";;;;;;AAAA,sFAA4D;AAC5D,mEAA2C;AAC3C,uDAA+B;AAO/B,oCAAiC;AAEjC,MAAa,cAAe,SAAQ,gCAAoB;IACvD;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"history-service.js","sourceRoot":"","sources":["../../src/services/history-service.ts"],"names":[],"mappings":";;;;;;AAAA,sFAA4D;AAC5D,mEAA2C;AAC3C,uDAA+B;AAO/B,oCAAiC;AAEjC,MAAa,cAAe,SAAQ,gCAAoB;IACvD;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,UAA2B;QACnD,MAAM,GAAG,GAAG,IAAA,eAAO,EAAE,gBAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAA;QAE3G,OAAO,IAAA,mBAAS,EAAC,GAAG,EAAE;YACrB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACR,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,IAAI,CAAC,KAAK;aACzB;SACD,CAAC;aACD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAA+B,CAAC;aAC9D,IAAI,CAAC,GAAG,CAAC,EAAE;YACX,MAAM,UAAU,GAAgC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAEtE,IAAI,CAAC,IAAI,CAAC,OAAO;oBAAE,OAAO,IAAkC,CAAC;gBAC7D,MAAM,UAAU,GAA4B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iCACnE,IAAI,KACP,QAAQ,EAAE,IAAI,CAAC,aAAa,EAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,IACnB,CAAC,CAAA;gBAEH,uCACI,IAAI,KACP,OAAO,EAAE,UAAU,IACnB;YACF,CAAC,CAAC,CAAA;YAEF,uCACI,GAAG,KACN,OAAO,EAAE,UAAU,IACnB;QACF,CAAC,CAAC,CAAA;IACH,CAAC;CACD;AArCD,wCAqCC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function readHistorySocket(options:
|
|
1
|
+
import { ICustomerRequestInfo } from "../../types/main";
|
|
2
|
+
export declare function readHistorySocket(options: ICustomerRequestInfo, data: unknown): Promise<import("../../types/history-type").IParsedHistoryResponse>;
|
|
3
3
|
//# sourceMappingURL=history_read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history_read.d.ts","sourceRoot":"","sources":["../../../src/socket/events/history_read.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"history_read.d.ts","sourceRoot":"","sources":["../../../src/socket/events/history_read.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AAOtD,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,OAAO,sEAgBnF"}
|
|
@@ -17,17 +17,26 @@ const debug_1 = __importDefault(require("debug"));
|
|
|
17
17
|
const utils_1 = require("../../utils");
|
|
18
18
|
const history_service_1 = require("../../services/history-service");
|
|
19
19
|
const history_error_1 = __importDefault(require("../../errors/history-error"));
|
|
20
|
+
const is_uuid_1 = __importDefault(require("../../utils/is-uuid"));
|
|
21
|
+
const data_service_1 = __importDefault(require("../../services/data-service"));
|
|
20
22
|
const debug = (0, debug_1.default)((0, utils_1.getCoreDebugMark)('history_read'));
|
|
21
23
|
function readHistorySocket(options, data) {
|
|
22
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
25
|
const historyService = new history_service_1.HistoryService(options.token);
|
|
26
|
+
const dataService = new data_service_1.default(options.token);
|
|
24
27
|
if (!isReadHistoryParams(data))
|
|
25
28
|
throw history_error_1.default.IncorrectHistoryReadParams(data);
|
|
26
|
-
debug(`Socket read history for (${data.entity}/${data.
|
|
27
|
-
|
|
29
|
+
debug(`Socket read history for (${data.entity}/${data.primaryKey})`);
|
|
30
|
+
if ((0, is_uuid_1.default)(data.primaryKey)) {
|
|
31
|
+
const entityData = yield dataService.getById(data.entity, data.primaryKey, {
|
|
32
|
+
fields: "Id"
|
|
33
|
+
});
|
|
34
|
+
data.primaryKey = entityData.Id;
|
|
35
|
+
}
|
|
36
|
+
return historyService.readById(data.entity, data.primaryKey);
|
|
28
37
|
});
|
|
29
38
|
}
|
|
30
39
|
exports.readHistorySocket = readHistorySocket;
|
|
31
40
|
const isReadHistoryParams = (data) => !!data && typeof data === 'object' && typeof data.entity === 'string' &&
|
|
32
|
-
typeof data.
|
|
41
|
+
["number", "string"].includes(typeof data.primaryKey);
|
|
33
42
|
//# sourceMappingURL=history_read.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history_read.js","sourceRoot":"","sources":["../../../src/socket/events/history_read.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"history_read.js","sourceRoot":"","sources":["../../../src/socket/events/history_read.ts"],"names":[],"m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AAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-type.d.ts","sourceRoot":"","sources":["../../src/types/history-type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"history-type.d.ts","sourceRoot":"","sources":["../../src/types/history-type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;CAC9B;AACD,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAClC;AAED,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,qBAAqB,EAAE,CAAA;CACzC;AACD,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAA;CACxB;AACD,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D,QAAQ,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IAC3C,IAAI,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;CACrC;AACD,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC;IACxC,aAAa,EAAE,qBAAqB,EAAE,CAAA;CACzC;AACD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,OAAO,EAAE,0BAA0B,EAAE,CAAA;CACxC"}
|
package/dist/utils/is-uuid.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function isUUID(data: unknown): boolean;
|
|
2
2
|
//# sourceMappingURL=is-uuid.d.ts.map
|
package/dist/utils/is-uuid.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function
|
|
3
|
+
function isUUID(data) {
|
|
4
4
|
if (typeof data !== 'string')
|
|
5
5
|
return false;
|
|
6
6
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(data);
|
|
7
7
|
}
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = isUUID;
|
|
9
9
|
//# sourceMappingURL=is-uuid.js.map
|