@pegasimed.com/shared-tools 1.0.97 → 1.0.99
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/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/socket.d.ts +9 -0
- package/dist/constants/socket.js +13 -0
- package/dist/constants/socket.js.map +1 -0
- package/dist/custom-variable-resolvers/findDataObject.js +3 -3
- package/dist/custom-variable-resolvers/findDataObject.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export * from './notificationManagerLogConditionAction';
|
|
|
14
14
|
export * from './notificationManagerLogsStatus';
|
|
15
15
|
export * from './notificationManagerSendType';
|
|
16
16
|
export * from './patterns';
|
|
17
|
+
export * from './socket';
|
|
17
18
|
export * from './specimenActivitiesKind';
|
|
18
19
|
export * from './specimenProcessingTypes';
|
|
19
20
|
export interface IVariableInterface {
|
package/dist/constants/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./notificationManagerLogConditionAction"), exports);
|
|
|
30
30
|
__exportStar(require("./notificationManagerLogsStatus"), exports);
|
|
31
31
|
__exportStar(require("./notificationManagerSendType"), exports);
|
|
32
32
|
__exportStar(require("./patterns"), exports);
|
|
33
|
+
__exportStar(require("./socket"), exports);
|
|
33
34
|
__exportStar(require("./specimenActivitiesKind"), exports);
|
|
34
35
|
__exportStar(require("./specimenProcessingTypes"), exports);
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yDAAuC;AACvC,2DAAyC;AACzC,6DAA2C;AAC3C,mDAAiC;AACjC,+CAA6B;AAC7B,+DAA6C;AAC7C,0CAAwB;AACxB,wDAAsC;AACtC,uDAAqC;AACrC,gDAA8B;AAC9B,4CAA0B;AAC1B,0EAAwD;AACxD,kEAAgD;AAChD,gEAA8C;AAC9C,6CAA2B;AAC3B,2DAAyC;AACzC,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yDAAuC;AACvC,2DAAyC;AACzC,6DAA2C;AAC3C,mDAAiC;AACjC,+CAA6B;AAC7B,+DAA6C;AAC7C,0CAAwB;AACxB,wDAAsC;AACtC,uDAAqC;AACrC,gDAA8B;AAC9B,4CAA0B;AAC1B,0EAAwD;AACxD,kEAAgD;AAChD,gEAA8C;AAC9C,6CAA2B;AAC3B,2CAAyB;AACzB,2DAAyC;AACzC,4DAA0C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SOCKET_EVENTS = void 0;
|
|
4
|
+
exports.SOCKET_EVENTS = {
|
|
5
|
+
CONNECT: 'connect',
|
|
6
|
+
MESSAGE: 'message',
|
|
7
|
+
ERROR: 'error-event',
|
|
8
|
+
ADD_ROOM: 'add-room',
|
|
9
|
+
DISCONNECT: 'disconnect',
|
|
10
|
+
REMOVE_ROOM: 'remove-room',
|
|
11
|
+
ROOM_MESSAGE: 'room-message',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=socket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socket.js","sourceRoot":"","sources":["../../src/constants/socket.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CAC7B,CAAC"}
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.findDataObject = void 0;
|
|
4
4
|
const findDataObject = (splitFields, data, fieldPath) => {
|
|
5
5
|
const currentField = splitFields.shift() || '';
|
|
6
|
-
const currentValue = currentField ? data[currentField] :
|
|
7
|
-
if (currentValue === undefined) {
|
|
8
|
-
|
|
6
|
+
const currentValue = (data === null || data === void 0 ? void 0 : data.hasOwnProperty(currentField)) ? data[currentField] : null;
|
|
7
|
+
if (currentValue === null || currentValue === undefined) {
|
|
8
|
+
return null;
|
|
9
9
|
}
|
|
10
10
|
if (splitFields.length === 0) {
|
|
11
11
|
return currentValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findDataObject.js","sourceRoot":"","sources":["../../src/custom-variable-resolvers/findDataObject.ts"],"names":[],"mappings":";;;AAAO,MAAM,cAAc,GAAG,CAAC,WAAqB,EAAE,IAAS,EAAE,SAAiB,EAAO,EAAE;IACzF,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/C,MAAM,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"findDataObject.js","sourceRoot":"","sources":["../../src/custom-variable-resolvers/findDataObject.ts"],"names":[],"mappings":";;;AAAO,MAAM,cAAc,GAAG,CAAC,WAAqB,EAAE,IAAS,EAAE,SAAiB,EAAO,EAAE;IACzF,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/C,MAAM,YAAY,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,CAAC,YAAY,CAAC,EAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpF,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,OAAO,IAAA,sBAAc,EAAC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,CAAC;AACpE,CAAC,CAAC;AAXW,QAAA,cAAc,kBAWzB"}
|