@golemio/fypr 1.3.0 → 1.3.1-dev.2484571803

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,11 +1,17 @@
1
1
  import { ILogger } from "@golemio/core/dist/helpers";
2
2
  import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
3
  import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
4
+ import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
5
  import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
- import { IElement } from "../../schema-definitions/models/interfaces/IElement";
6
6
  import { AbstractElementModel } from "../../schema-definitions/models/AbstractElementModel";
7
- export declare abstract class AbstractFyprRepository extends AbstractValidatableRepository {
8
- abstract upsertAll(data: IElement[]): Promise<IElement[]>;
7
+ import { IElement } from "../../schema-definitions/models/interfaces/IElement";
8
+ export declare abstract class AbstractFyprRepository<T extends IElement = IElement> extends AbstractValidatableRepository {
9
+ schema: string;
10
+ abstract validator: JSONSchemaValidator;
11
+ abstract tableName: string;
12
+ protected abstract sequelizeModel: ModelStatic<AbstractElementModel>;
13
+ protected abstract entityLabel: string;
9
14
  constructor(connector: IDatabaseConnector, log: ILogger);
10
- getUpdateAttributes(model: ModelStatic<AbstractElementModel>): string[];
15
+ upsertAll(data: T[]): Promise<T[]>;
16
+ protected getUpdateAttributes(model: ModelStatic<AbstractElementModel>): string[];
11
17
  }
@@ -2,9 +2,41 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractFyprRepository = void 0;
4
4
  const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
5
+ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
6
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
7
+ const const_1 = require("../../schema-definitions/const");
5
8
  class AbstractFyprRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
6
9
  constructor(connector, log) {
7
10
  super(connector, log);
11
+ this.schema = const_1.PG_SCHEMA;
12
+ }
13
+ async upsertAll(data) {
14
+ try {
15
+ if (data.length === 0) {
16
+ this.log.warn(`${this.constructor.name}.upsertAll: empty snapshot, skipping sync`);
17
+ return [];
18
+ }
19
+ this.validator.Validate(data);
20
+ const incomingDocIds = data.map((row) => row.document_id);
21
+ return await this.connector.getConnection().transaction(async (t) => {
22
+ const upserted = await this.sequelizeModel.bulkCreate(data, {
23
+ updateOnDuplicate: this.getUpdateAttributes(this.sequelizeModel),
24
+ transaction: t,
25
+ });
26
+ const deleted = await this.sequelizeModel.destroy({
27
+ where: { document_id: { [sequelize_1.Op.notIn]: incomingDocIds } },
28
+ transaction: t,
29
+ });
30
+ this.log.info(`${this.constructor.name}.upsertAll: upserted ${upserted.length} ${this.entityLabel}, deleted ${deleted}.`);
31
+ return upserted;
32
+ });
33
+ }
34
+ catch (err) {
35
+ if (err instanceof golemio_errors_1.GeneralError) {
36
+ throw err;
37
+ }
38
+ throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
39
+ }
8
40
  }
9
41
  getUpdateAttributes(model) {
10
42
  return Object.keys(model.getAttributes()).filter((attribute) => !["created_at"].includes(attribute));
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractFyprRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/AbstractFyprRepository.ts"],"names":[],"mappings":";;;AAEA,8IAA2I;AAK3I,MAAsB,sBAAuB,SAAQ,6DAA6B;IAG9E,YAAY,SAA6B,EAAE,GAAY;QACnD,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;IAEM,mBAAmB,CAAC,KAAwC;QAC/D,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;CACJ;AAVD,wDAUC"}
1
+ {"version":3,"file":"AbstractFyprRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/AbstractFyprRepository.ts"],"names":[],"mappings":";;;AAEA,8IAA2I;AAC3I,6EAAwE;AAExE,mEAAsE;AACtE,0DAAuC;AAIvC,MAAsB,sBAAsD,SAAQ,6DAA6B;IAQ7G,YAAY,SAA6B,EAAE,GAAY;QACnD,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QARnB,WAAM,GAAG,iBAAS,CAAC;IAS1B,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,IAAS;QAC5B,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,2CAA2C,CAAC,CAAC;gBACnF,OAAO,EAAE,CAAC;YACd,CAAC;YACD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9B,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAE1D,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;gBAChE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;oBACxD,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,cAAc,CAAQ;oBACvE,WAAW,EAAE,CAAC;iBACjB,CAAC,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBAC9C,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,CAAC,cAAE,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,EAAE;oBACtD,WAAW,EAAE,CAAC;iBACjB,CAAC,CAAC;gBAEH,IAAI,CAAC,GAAG,CAAC,IAAI,CACT,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,wBAAwB,QAAQ,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,aAAa,OAAO,GAAG,CAC7G,CAAC;gBAEF,OAAO,QAA0B,CAAC;YACtC,CAAC,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,GAAG,YAAY,6BAAY,EAAE,CAAC;gBAC9B,MAAM,GAAG,CAAC;YACd,CAAC;YACD,MAAM,IAAI,6BAAY,CAAC,oBAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC7E,CAAC;IACL,CAAC;IAES,mBAAmB,CAAC,KAAwC;QAClE,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;CACJ;AAhDD,wDAgDC"}
@@ -1,14 +1,14 @@
1
1
  import { ILogger } from "@golemio/core/dist/helpers";
2
2
  import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
3
  import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
+ import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
+ import { DisplayCaseModel } from "../../schema-definitions/models/DisplayCaseModel";
4
6
  import { IDisplayCase } from "../../schema-definitions/models/interfaces/IDisplayCase";
5
7
  import { AbstractFyprRepository } from "./AbstractFyprRepository";
6
- export declare class DisplayCaseRepository extends AbstractFyprRepository {
7
- private logger;
8
+ export declare class DisplayCaseRepository extends AbstractFyprRepository<IDisplayCase> {
8
9
  validator: JSONSchemaValidator;
9
- schema: string;
10
10
  tableName: string;
11
- private sequelizeModel;
11
+ protected sequelizeModel: ModelStatic<DisplayCaseModel>;
12
+ protected entityLabel: string;
12
13
  constructor(connector: IDatabaseConnector, logger: ILogger);
13
- upsertAll(data: IDisplayCase[]): Promise<IDisplayCase[]>;
14
14
  }
@@ -14,7 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.DisplayCaseRepository = void 0;
16
16
  const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
18
17
  const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
19
18
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
20
19
  const const_1 = require("../../schema-definitions/const");
@@ -23,30 +22,13 @@ const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
23
22
  let DisplayCaseRepository = class DisplayCaseRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
24
23
  constructor(connector, logger) {
25
24
  super(connector, logger);
26
- this.logger = logger;
27
- this.schema = const_1.PG_SCHEMA;
28
25
  this.tableName = DisplayCaseModel_1.DisplayCaseModel.tableName;
26
+ this.entityLabel = "DisplayCases";
29
27
  this.validator = new golemio_validator_1.JSONSchemaValidator("DisplayCaseRepository", DisplayCaseModel_1.DisplayCaseModel.jsonSchema);
30
28
  this.sequelizeModel = connector.getConnection().define(this.tableName, DisplayCaseModel_1.DisplayCaseModel.attributeModel, {
31
- schema: this.schema,
29
+ schema: const_1.PG_SCHEMA,
32
30
  });
33
31
  }
34
- async upsertAll(data) {
35
- try {
36
- this.validator.Validate(data);
37
- const upserted = await this.sequelizeModel.bulkCreate(data, {
38
- updateOnDuplicate: this.getUpdateAttributes(this.sequelizeModel),
39
- });
40
- this.logger.info(`${this.constructor.name}.upsertAll: upserted ${upserted.length} DisplayCases.`);
41
- return upserted;
42
- }
43
- catch (err) {
44
- if (err instanceof golemio_errors_1.GeneralError) {
45
- throw err;
46
- }
47
- throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
48
- }
49
- }
50
32
  };
51
33
  exports.DisplayCaseRepository = DisplayCaseRepository;
52
34
  exports.DisplayCaseRepository = DisplayCaseRepository = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayCaseRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/DisplayCaseRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,iEAAwE;AACxE,0DAAuC;AACvC,uFAAgE;AAGhE,qEAAkE;AAG3D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAsB;IAO7D,YACyC,SAA6B,EACxC,MAAuB;QAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAFS,WAAM,GAAN,MAAM,CAAS;QAP9C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,mCAAgB,CAAC,SAAS,CAAC;QAS1C,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,uBAAuB,EAAE,mCAAgB,CAAC,UAAU,CAAC,CAAC;QAC/F,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAgB,CAAC,cAAc,EAAE;YACpG,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,IAAoB;QACvC,IAAI,CAAC;YACD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBACxD,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,cAAc,CAAQ;aAC1E,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,wBAAwB,QAAQ,CAAC,MAAM,gBAAgB,CAAC,CAAC;YAElG,OAAO,QAAQ,CAAC;QACpB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,GAAG,YAAY,6BAAY,EAAE,CAAC;gBAC9B,MAAM,GAAG,CAAC;YACd,CAAC;YACD,MAAM,IAAI,6BAAY,CAAC,oBAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC7E,CAAC;IACL,CAAC;CACJ,CAAA;AAnCY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GATpB,qBAAqB,CAmCjC"}
1
+ {"version":3,"file":"DisplayCaseRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/DisplayCaseRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,mFAAkF;AAElF,iEAAwE;AACxE,0DAAuC;AACvC,uFAAgE;AAEhE,qEAAkE;AAG3D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAoC;IAO3E,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,mCAAgB,CAAC,SAAS,CAAC;QAGpC,gBAAW,GAAG,cAAc,CAAC;QAInC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,uBAAuB,EAAE,mCAAgB,CAAC,UAAU,CAAC,CAAC;QAC/F,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAgB,CAAC,cAAc,EAAE;YACpG,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,qBAAqB,CAcjC"}
@@ -1,14 +1,14 @@
1
1
  import { ILogger } from "@golemio/core/dist/helpers";
2
2
  import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
3
  import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
+ import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
+ import { InformationPanelModel } from "../../schema-definitions/models/InformationPanelModel";
4
6
  import { IInformationPanel } from "../../schema-definitions/models/interfaces/IInformationPanel";
5
7
  import { AbstractFyprRepository } from "./AbstractFyprRepository";
6
- export declare class InformationPanelRepository extends AbstractFyprRepository {
7
- private logger;
8
+ export declare class InformationPanelRepository extends AbstractFyprRepository<IInformationPanel> {
8
9
  validator: JSONSchemaValidator;
9
- schema: string;
10
10
  tableName: string;
11
- private sequelizeModel;
11
+ protected sequelizeModel: ModelStatic<InformationPanelModel>;
12
+ protected entityLabel: string;
12
13
  constructor(connector: IDatabaseConnector, logger: ILogger);
13
- upsertAll(data: IInformationPanel[]): Promise<IInformationPanel[]>;
14
14
  }
@@ -14,7 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.InformationPanelRepository = void 0;
16
16
  const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
18
17
  const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
19
18
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
20
19
  const const_1 = require("../../schema-definitions/const");
@@ -23,30 +22,13 @@ const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
23
22
  let InformationPanelRepository = class InformationPanelRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
24
23
  constructor(connector, logger) {
25
24
  super(connector, logger);
26
- this.logger = logger;
27
- this.schema = const_1.PG_SCHEMA;
28
25
  this.tableName = InformationPanelModel_1.InformationPanelModel.tableName;
26
+ this.entityLabel = "InformationPanels";
29
27
  this.validator = new golemio_validator_1.JSONSchemaValidator("InformationPanelRepository", InformationPanelModel_1.InformationPanelModel.jsonSchema);
30
28
  this.sequelizeModel = connector.getConnection().define(this.tableName, InformationPanelModel_1.InformationPanelModel.attributeModel, {
31
- schema: this.schema,
29
+ schema: const_1.PG_SCHEMA,
32
30
  });
33
31
  }
34
- async upsertAll(data) {
35
- try {
36
- this.validator.Validate(data);
37
- const upserted = await this.sequelizeModel.bulkCreate(data, {
38
- updateOnDuplicate: this.getUpdateAttributes(this.sequelizeModel),
39
- });
40
- this.logger.info(`${this.constructor.name}.upsertAll: upserted ${upserted.length} InformationPanels.`);
41
- return upserted;
42
- }
43
- catch (err) {
44
- if (err instanceof golemio_errors_1.GeneralError) {
45
- throw err;
46
- }
47
- throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
48
- }
49
- }
50
32
  };
51
33
  exports.InformationPanelRepository = InformationPanelRepository;
52
34
  exports.InformationPanelRepository = InformationPanelRepository = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,iEAAwE;AACxE,0DAAuC;AACvC,iGAA0E;AAG1E,qEAAkE;AAG3D,IAA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EAA0B;qCAA1B,0BAA0B;IADtC,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GATpB,0BAA0B,CAmCtC"}
1
+ {"version":3,"file":"InformationPanelRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,mFAAkF;AAElF,iEAAwE;AACxE,0DAAuC;AACvC,iGAA0E;AAE1E,qEAAkE;AAG3D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,+CAAyC;IAOrF,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,6CAAqB,CAAC,SAAS,CAAC;QAGzC,gBAAW,GAAG,mBAAmB,CAAC;QAIxC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,6CAAqB,CAAC,UAAU,CAAC,CAAC;QACzG,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,6CAAqB,CAAC,cAAc,EAAE;YACzG,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,0BAA0B,CActC"}
@@ -1,14 +1,14 @@
1
1
  import { ILogger } from "@golemio/core/dist/helpers";
2
2
  import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
3
  import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
+ import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
+ import { ObeliskModel } from "../../schema-definitions/models/ObeliskModel";
4
6
  import { IObelisk } from "../../schema-definitions/models/interfaces/IObelisk";
5
7
  import { AbstractFyprRepository } from "./AbstractFyprRepository";
6
- export declare class ObeliskRepository extends AbstractFyprRepository {
7
- private logger;
8
+ export declare class ObeliskRepository extends AbstractFyprRepository<IObelisk> {
8
9
  validator: JSONSchemaValidator;
9
- schema: string;
10
10
  tableName: string;
11
- private sequelizeModel;
11
+ protected sequelizeModel: ModelStatic<ObeliskModel>;
12
+ protected entityLabel: string;
12
13
  constructor(connector: IDatabaseConnector, logger: ILogger);
13
- upsertAll(data: IObelisk[]): Promise<IObelisk[]>;
14
14
  }
@@ -14,7 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ObeliskRepository = void 0;
16
16
  const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
18
17
  const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
19
18
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
20
19
  const const_1 = require("../../schema-definitions/const");
@@ -23,30 +22,13 @@ const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
23
22
  let ObeliskRepository = class ObeliskRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
24
23
  constructor(connector, logger) {
25
24
  super(connector, logger);
26
- this.logger = logger;
27
- this.schema = const_1.PG_SCHEMA;
28
25
  this.tableName = ObeliskModel_1.ObeliskModel.tableName;
26
+ this.entityLabel = "Obelisks";
29
27
  this.validator = new golemio_validator_1.JSONSchemaValidator("ObeliskRepository", ObeliskModel_1.ObeliskModel.jsonSchema);
30
28
  this.sequelizeModel = connector.getConnection().define(this.tableName, ObeliskModel_1.ObeliskModel.attributeModel, {
31
- schema: this.schema,
29
+ schema: const_1.PG_SCHEMA,
32
30
  });
33
31
  }
34
- async upsertAll(data) {
35
- try {
36
- this.validator.Validate(data);
37
- const upserted = await this.sequelizeModel.bulkCreate(data, {
38
- updateOnDuplicate: this.getUpdateAttributes(this.sequelizeModel),
39
- });
40
- this.logger.info(`${this.constructor.name}.upsertAll: upserted ${upserted.length} Obelisks.`);
41
- return upserted;
42
- }
43
- catch (err) {
44
- if (err instanceof golemio_errors_1.GeneralError) {
45
- throw err;
46
- }
47
- throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
48
- }
49
- }
50
32
  };
51
33
  exports.ObeliskRepository = ObeliskRepository;
52
34
  exports.ObeliskRepository = ObeliskRepository = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ObeliskRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/ObeliskRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,iEAAwE;AACxE,0DAAuC;AACvC,+EAAwD;AAGxD,qEAAkE;AAG3D,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAsB;IAOzD,YACyC,SAA6B,EACxC,MAAuB;QAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAFS,WAAM,GAAN,MAAM,CAAS;QAP9C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,2BAAY,CAAC,SAAS,CAAC;QAStC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,mBAAmB,EAAE,2BAAY,CAAC,UAAU,CAAC,CAAC;QACvF,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,2BAAY,CAAC,cAAc,EAAE;YAChG,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC,CAAC;I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EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,2BAAY,CAAC,SAAS,CAAC;QAGhC,gBAAW,GAAG,UAAU,CAAC;QAI/B,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,mBAAmB,EAAE,2BAAY,CAAC,UAAU,CAAC,CAAC;QACvF,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,2BAAY,CAAC,cAAc,EAAE;YAChG,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,iBAAiB,CAc7B"}
@@ -1,14 +1,14 @@
1
1
  import { ILogger } from "@golemio/core/dist/helpers";
2
2
  import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
3
  import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
+ import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
+ import { SignpostModel } from "../../schema-definitions/models/SignpostModel";
4
6
  import { ISignpost } from "../../schema-definitions/models/interfaces/ISignpost";
5
7
  import { AbstractFyprRepository } from "./AbstractFyprRepository";
6
- export declare class SignpostRepository extends AbstractFyprRepository {
7
- private logger;
8
+ export declare class SignpostRepository extends AbstractFyprRepository<ISignpost> {
8
9
  validator: JSONSchemaValidator;
9
- schema: string;
10
10
  tableName: string;
11
- private sequelizeModel;
11
+ protected sequelizeModel: ModelStatic<SignpostModel>;
12
+ protected entityLabel: string;
12
13
  constructor(connector: IDatabaseConnector, logger: ILogger);
13
- upsertAll(data: ISignpost[]): Promise<ISignpost[]>;
14
14
  }
@@ -14,7 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.SignpostRepository = void 0;
16
16
  const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
18
17
  const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
19
18
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
20
19
  const const_1 = require("../../schema-definitions/const");
@@ -23,30 +22,13 @@ const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
23
22
  let SignpostRepository = class SignpostRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
24
23
  constructor(connector, logger) {
25
24
  super(connector, logger);
26
- this.logger = logger;
27
- this.schema = const_1.PG_SCHEMA;
28
25
  this.tableName = SignpostModel_1.SignpostModel.tableName;
26
+ this.entityLabel = "Signposts";
29
27
  this.validator = new golemio_validator_1.JSONSchemaValidator("SignpostRepository", SignpostModel_1.SignpostModel.jsonSchema);
30
28
  this.sequelizeModel = connector.getConnection().define(this.tableName, SignpostModel_1.SignpostModel.attributeModel, {
31
- schema: this.schema,
29
+ schema: const_1.PG_SCHEMA,
32
30
  });
33
31
  }
34
- async upsertAll(data) {
35
- try {
36
- this.validator.Validate(data);
37
- const upserted = await this.sequelizeModel.bulkCreate(data, {
38
- updateOnDuplicate: this.getUpdateAttributes(this.sequelizeModel),
39
- });
40
- this.logger.info(`${this.constructor.name}.upsertAll: upserted ${upserted.length} Signposts.`);
41
- return upserted;
42
- }
43
- catch (err) {
44
- if (err instanceof golemio_errors_1.GeneralError) {
45
- throw err;
46
- }
47
- throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
48
- }
49
- }
50
32
  };
51
33
  exports.SignpostRepository = SignpostRepository;
52
34
  exports.SignpostRepository = SignpostRepository = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"SignpostRepository.js","sourceRoot":"","sources":["../../../src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G,CAAC;YACd,CAAC;YACD,MAAM,IAAI,6BAAY,CAAC,oBAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC7E,CAAC;IACL,CAAC;CACJ,CAAA;AAnCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GATpB,kBAAkB,CAmC9B"}
1
+ {"version":3,"file":"SignpostRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/SignpostRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,mFAAkF;AAElF,iEAAwE;AACxE,0DAAuC;AACvC,iFAA0D;AAE1D,qEAAkE;AAG3D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+CAAiC;IAOrE,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,6BAAa,CAAC,SAAS,CAAC;QAGjC,gBAAW,GAAG,WAAW,CAAC;QAIhC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,oBAAoB,EAAE,6BAAa,CAAC,UAAU,CAAC,CAAC;QACzF,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,6BAAa,CAAC,cAAc,EAAE;YACjG,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,kBAAkB,CAc9B"}
@@ -1,14 +1,14 @@
1
1
  import { ILogger } from "@golemio/core/dist/helpers";
2
2
  import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
3
  import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
+ import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
+ import { TotemModel } from "../../schema-definitions/models/TotemModel";
4
6
  import { ITotem } from "../../schema-definitions/models/interfaces/ITotem";
5
7
  import { AbstractFyprRepository } from "./AbstractFyprRepository";
6
- export declare class TotemRepository extends AbstractFyprRepository {
7
- private logger;
8
+ export declare class TotemRepository extends AbstractFyprRepository<ITotem> {
8
9
  validator: JSONSchemaValidator;
9
- schema: string;
10
10
  tableName: string;
11
- private sequelizeModel;
11
+ protected sequelizeModel: ModelStatic<TotemModel>;
12
+ protected entityLabel: string;
12
13
  constructor(connector: IDatabaseConnector, logger: ILogger);
13
- upsertAll(data: ITotem[]): Promise<ITotem[]>;
14
14
  }
@@ -14,7 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.TotemRepository = void 0;
16
16
  const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
18
17
  const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
19
18
  const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
20
19
  const const_1 = require("../../schema-definitions/const");
@@ -23,30 +22,13 @@ const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
23
22
  let TotemRepository = class TotemRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
24
23
  constructor(connector, logger) {
25
24
  super(connector, logger);
26
- this.logger = logger;
27
- this.schema = const_1.PG_SCHEMA;
28
25
  this.tableName = TotemModel_1.TotemModel.tableName;
26
+ this.entityLabel = "Totems";
29
27
  this.validator = new golemio_validator_1.JSONSchemaValidator("TotemRepository", TotemModel_1.TotemModel.jsonSchema);
30
28
  this.sequelizeModel = connector.getConnection().define(this.tableName, TotemModel_1.TotemModel.attributeModel, {
31
- schema: this.schema,
29
+ schema: const_1.PG_SCHEMA,
32
30
  });
33
31
  }
34
- async upsertAll(data) {
35
- try {
36
- this.validator.Validate(data);
37
- const upserted = await this.sequelizeModel.bulkCreate(data, {
38
- updateOnDuplicate: this.getUpdateAttributes(this.sequelizeModel),
39
- });
40
- this.logger.info(`${this.constructor.name}.upsertAll: upserted ${upserted.length} Totems.`);
41
- return upserted;
42
- }
43
- catch (err) {
44
- if (err instanceof golemio_errors_1.GeneralError) {
45
- throw err;
46
- }
47
- throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
48
- }
49
- }
50
32
  };
51
33
  exports.TotemRepository = TotemRepository;
52
34
  exports.TotemRepository = TotemRepository = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"TotemRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/TotemRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,iEAAwE;AACxE,0DAAuC;AACvC,2EAAoD;AAGpD,qEAAkE;AAG3D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+CAAsB;IAOvD,YACyC,SAA6B,EACxC,MAAuB;QAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAFS,WAAM,GAAN,MAAM,CAAS;QAP9C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,uBAAU,CAAC,SAAS,CAAC;QASpC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,iBAAiB,EAAE,uBAAU,CAAC,UAAU,CAAC,CAAC;QACnF,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SA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SAAQ,+CAA8B;IAO/D,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,uBAAU,CAAC,SAAS,CAAC;QAG9B,gBAAW,GAAG,QAAQ,CAAC;QAI7B,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,iBAAiB,EAAE,uBAAU,CAAC,UAAU,CAAC,CAAC;QACnF,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAU,CAAC,cAAc,EAAE;YAC9F,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,eAAe,CAc3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/fypr",
3
- "version": "1.3.0",
3
+ "version": "1.3.1-dev.2484571803",
4
4
  "description": "Golemio FYPR Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",