@boxitworld/commons-backend 1.0.61 → 1.0.62

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.
@@ -1,4 +1,6 @@
1
1
  import Batch from "./batch.model";
2
+ import SessionEvent from "./SessionEvent.model";
3
+ import UserSession from "./UserSession.model";
2
4
  export declare const initializeModels: () => Promise<void>;
3
- export { Batch };
5
+ export { Batch, UserSession, SessionEvent };
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/batch-locker/db/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAIlC,eAAO,MAAM,gBAAgB,qBAa1B,CAAC;AAGF,OAAO,EACL,KAAK,EACN,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/batch-locker/db/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAClC,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,gBAAgB,qBAa1B,CAAC;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACb,CAAC"}
@@ -3,11 +3,13 @@ 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.Batch = exports.initializeModels = void 0;
6
+ exports.SessionEvent = exports.UserSession = exports.Batch = exports.initializeModels = void 0;
7
7
  const batch_model_1 = __importDefault(require("./batch.model"));
8
8
  exports.Batch = batch_model_1.default;
9
9
  const SessionEvent_model_1 = __importDefault(require("./SessionEvent.model"));
10
+ exports.SessionEvent = SessionEvent_model_1.default;
10
11
  const UserSession_model_1 = __importDefault(require("./UserSession.model"));
12
+ exports.UserSession = UserSession_model_1.default;
11
13
  const initializeModels = async () => {
12
14
  try {
13
15
  await batch_model_1.default.sync({ alter: true });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/batch-locker/db/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAkC;AAqB9B,gBArBG,qBAAK,CAqBH;AApBT,8EAAgD;AAChD,4EAA8C;AAEvC,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;IACvC,IAAI,CAAC;QAGH,MAAM,qBAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAClC,MAAM,2BAAW,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACxC,MAAM,4BAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAEzC,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IACnE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;QACtD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAbS,QAAA,gBAAgB,oBAazB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/batch-locker/db/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAkC;AAqB9B,gBArBG,qBAAK,CAqBH;AApBT,8EAAgD;AAsB5C,uBAtBG,4BAAY,CAsBH;AArBhB,4EAA8C;AAoB1C,sBApBG,2BAAW,CAoBH;AAlBR,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;IACvC,IAAI,CAAC;QAGH,MAAM,qBAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAClC,MAAM,2BAAW,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACxC,MAAM,4BAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAEzC,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IACnE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;QACtD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAbS,QAAA,gBAAgB,oBAazB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxitworld/commons-backend",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "Common interfaces and functions for BoxitWorld backend applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",