@golemio/playgrounds 1.12.1-dev.2587935029 → 1.12.1-dev.2635607329
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 +2 -2
- package/dist/index.js +19 -9
- package/dist/index.js.map +1 -1
- package/dist/integration-engine/PlaygroundsDataSource.js +1 -1
- package/dist/integration-engine/PlaygroundsDataSource.js.map +1 -1
- package/dist/integration-engine/PlaygroundsTransformation.d.ts +3 -3
- package/dist/integration-engine/PlaygroundsTransformation.js +1 -1
- package/dist/integration-engine/PlaygroundsTransformation.js.map +1 -1
- package/dist/integration-engine/helpers/AddressHelper.d.ts +2 -2
- package/dist/integration-engine/helpers/AddressHelper.js +1 -1
- package/dist/integration-engine/helpers/AddressHelper.js.map +1 -1
- package/dist/integration-engine/models/PlaygroundPropertyModel.js +4 -4
- package/dist/integration-engine/models/PlaygroundPropertyModel.js.map +1 -1
- package/dist/integration-engine/models/PlaygroundsModel.d.ts +1 -1
- package/dist/integration-engine/models/PlaygroundsModel.js +4 -4
- package/dist/integration-engine/models/PlaygroundsModel.js.map +1 -1
- package/dist/integration-engine/models/PropertyModel.js +4 -4
- package/dist/integration-engine/models/PropertyModel.js.map +1 -1
- package/dist/integration-engine/workers/playgrounds/PlaygroundsWorker.js +1 -1
- package/dist/integration-engine/workers/playgrounds/PlaygroundsWorker.js.map +1 -1
- package/dist/integration-engine/workers/playgrounds/tasks/RefreshDataInDBTask.js +4 -4
- package/dist/integration-engine/workers/playgrounds/tasks/RefreshDataInDBTask.js.map +1 -1
- package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.d.ts +1 -1
- package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.js +4 -4
- package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.js.map +1 -1
- package/dist/output-gateway/PlaygroundsRouter.d.ts +0 -1
- package/dist/output-gateway/models/PlaygroundPropertyModel.js +3 -3
- package/dist/output-gateway/models/PlaygroundPropertyModel.js.map +1 -1
- package/dist/output-gateway/models/PlaygroundsModel.js +4 -4
- package/dist/output-gateway/models/PlaygroundsModel.js.map +1 -1
- package/dist/output-gateway/models/PropertyModel.js +3 -3
- package/dist/output-gateway/models/PropertyModel.js.map +1 -1
- package/dist/schema-definitions/json-schema/OutputSchemaProvider.d.ts +3 -3
- package/dist/schema-definitions/json-schema/SourceSchemaProvider.js +1 -1
- package/dist/schema-definitions/json-schema/SourceSchemaProvider.js.map +1 -1
- package/dist/schema-definitions/output/OutputPlayground.d.ts +1 -1
- package/dist/schema-definitions/sequelize-models/PlaygroundProperty.js +1 -1
- package/dist/schema-definitions/sequelize-models/PlaygroundProperty.js.map +1 -1
- package/package.json +92 -67
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as IntegrationEngine from "
|
|
2
|
-
export * as OutputGateway from "
|
|
1
|
+
export * as IntegrationEngine from "#ie/index";
|
|
2
|
+
export * as OutputGateway from "#og/index";
|
package/dist/index.js
CHANGED
|
@@ -15,16 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.OutputGateway = exports.IntegrationEngine = void 0;
|
|
27
37
|
// Library exports
|
|
28
|
-
exports.IntegrationEngine = __importStar(require("
|
|
29
|
-
exports.OutputGateway = __importStar(require("
|
|
38
|
+
exports.IntegrationEngine = __importStar(require("#ie/index"));
|
|
39
|
+
exports.OutputGateway = __importStar(require("#og/index"));
|
|
30
40
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB;AAClB,+DAA+C;AAC/C,2DAA2C"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.PlaygroundsDataSource = void 0;
|
|
5
|
-
const SourceSchemaProvider_1 = require("
|
|
5
|
+
const SourceSchemaProvider_1 = require("#sch/json-schema/SourceSchemaProvider");
|
|
6
6
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
7
7
|
const config_1 = require("@golemio/core/dist/integration-engine/config");
|
|
8
8
|
const HTTPFetchProtocolStrategy_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsDataSource.js","sourceRoot":"","sources":["../../src/integration-engine/PlaygroundsDataSource.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"PlaygroundsDataSource.js","sourceRoot":"","sources":["../../src/integration-engine/PlaygroundsDataSource.ts"],"names":[],"mappings":";;;;AAAA,gFAA6E;AAC7E,8EAAyF;AACzF,yEAAsE;AACtE,6IAA0I;AAC1I,mFAAkF;AAElF,MAAa,qBAAqB;;AAAlC,sDAeC;;AAdkB,oCAAc,GAAG,uBAAuB,AAA1B,CAA2B;AAE1C,yBAAG,GAAG,GAAe,EAAE;IACjC,OAAO,IAAI,+BAAU,CACjB,EAAI,CAAC,cAAc,EACnB,IAAI,qDAAyB,CAAC;QAC1B,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,eAAM,CAAC,WAAW,CAAC,WAAW;KACtC,CAAC,EACF,IAAI,yCAAoB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,EAClD,IAAI,uCAAmB,CAAC,EAAI,CAAC,cAAc,GAAG,WAAW,EAAE,2CAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,CACpG,CAAC;AACN,CAAC,AAXgB,CAWf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISourcePlayground } from "
|
|
2
|
-
import { IPlayground } from "
|
|
3
|
-
import { IProperty } from "
|
|
1
|
+
import { ISourcePlayground } from "#sch/json-schema/interfaces/ISourcePlayground";
|
|
2
|
+
import { IPlayground } from "#sch/sequelize-models/interfaces/IPlayground";
|
|
3
|
+
import { IProperty } from "#sch/sequelize-models/interfaces/IProperty";
|
|
4
4
|
import { BaseTransformation, ITransformation } from "@golemio/core/dist/integration-engine/transformations";
|
|
5
5
|
export declare class PlaygroundsTransformation extends BaseTransformation implements ITransformation {
|
|
6
6
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaygroundsTransformation = void 0;
|
|
4
|
-
const PlaygroundsInfo_1 = require("
|
|
4
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
5
5
|
const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
|
|
6
6
|
class PlaygroundsTransformation extends transformations_1.BaseTransformation {
|
|
7
7
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsTransformation.js","sourceRoot":"","sources":["../../src/integration-engine/PlaygroundsTransformation.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"PlaygroundsTransformation.js","sourceRoot":"","sources":["../../src/integration-engine/PlaygroundsTransformation.ts"],"names":[],"mappings":";;;AACA,0DAAuD;AAGvD,2FAA4G;AAE5G,MAAa,yBAA0B,SAAQ,oCAAkB;IAG7D;QACI,KAAK,EAAE,CAAC;QAIF,qBAAgB,GAAG,KAAK,EAAE,OAA0B,EAAwB,EAAE;YACpF,MAAM,UAAU,GAAG;gBACf,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,SAAS,EAAE,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI;gBACxF,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,WAAW,EAAE,OAAO,CAAC,MAAM;gBAC3B,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;gBAC1C,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;gBACzC,GAAG,EAAE,OAAO,CAAC,GAAG;aACJ,CAAC;YAEjB,UAAU,CAAC,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAY,CAAC,OAAO,EAAE,EAAE;gBAChE,OAAO;oBACH,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,WAAW,EAAE,OAAO,CAAC,KAAK;iBAC7B,CAAC;YACN,CAAC,CAAC,CAAC;YAEH,OAAO,UAAU,CAAC;QACtB,CAAC,CAAC;QAtBE,IAAI,CAAC,IAAI,GAAG,iCAAe,CAAC,UAAU,CAAC;IAC3C,CAAC;IAuBO,gBAAgB,CAAC,KAAa;QAClC,OAAO,KAAK,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;;AA/BL,8DAiDC;AAhBiB,6CAAmB,GAAG,CAAC,0BAAyC,EAAe,EAAE;IAC3F,MAAM,MAAM,GAAgB,EAAE,CAAC;IAC/B,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,0BAA0B,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACrE,MAAM,OAAO,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAClD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YACrB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;gBAC7D,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;gBAC3C,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;oBACvD,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC1B,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,AAfgC,CAe/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IPlayground } from "
|
|
2
|
-
import { Playground } from "
|
|
1
|
+
import { IPlayground } from "#sch/sequelize-models/interfaces/IPlayground";
|
|
2
|
+
import { Playground } from "#sch/sequelize-models/Playground";
|
|
3
3
|
import CityDistrictsModel from "@golemio/city-districts/dist/integration-engine/repositories/CityDistrictPostgresRepository";
|
|
4
4
|
import { Point } from "geojson";
|
|
5
5
|
export declare class AddressHelper {
|
|
@@ -6,7 +6,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
6
6
|
class AddressHelper {
|
|
7
7
|
static async updateAddress(dbData) {
|
|
8
8
|
try {
|
|
9
|
-
const address = await integration_engine_1.GeocodeApi.
|
|
9
|
+
const address = await integration_engine_1.GeocodeApi.getEnrichedAddressByLatLngFromPhoton(dbData.location.coordinates[1], dbData.location.coordinates[0]);
|
|
10
10
|
if (address) {
|
|
11
11
|
dbData.address_country = address.address_country ?? "";
|
|
12
12
|
dbData.address_formatted = address.address_formatted ?? "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/AddressHelper.ts"],"names":[],"mappings":";;;AAGA,8EAAmE;AACnE,6EAA4E;AAG5E,MAAa,aAAa;IAgBf,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAkB;QAChD,IAAI;
|
|
1
|
+
{"version":3,"file":"AddressHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/AddressHelper.ts"],"names":[],"mappings":";;;AAGA,8EAAmE;AACnE,6EAA4E;AAG5E,MAAa,aAAa;IAgBf,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAkB;QAChD,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,+BAAU,CAAC,oCAAoC,CACjE,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAC9B,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CACjC,CAAC;YAEF,IAAI,OAAO,EAAE,CAAC;gBACV,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,EAAE,CAAC;gBACvD,MAAM,CAAC,iBAAiB,GAAG,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W,CAAC,CAAC,CAAC,CAAC;AAC9G,CAAC,CAAC;AAEY,uBAAS,GAAG,CAAC,UAAsB,EAAW,EAAE;IAC1D,OAAO,CAAC,UAAU,CAAC,iBAAiB,IAAI,CAAC,UAAU,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;AAChG,CAAC,CAAC;AAEY,yBAAW,GAAG,CAAC,aAA0B,EAAE,mBAA+B,EAAW,EAAE;IACjG,OAAO,CACH,aAAa,CAAC,iBAAiB,CAAC,aAAa,CAAC,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,CAAC;QACrF,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAC/C,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaygroundPropertyModel = void 0;
|
|
4
|
-
const OutputSchemaProvider_1 = require("
|
|
5
|
-
const PlaygroundSchemaTables_1 = require("
|
|
6
|
-
const PlaygroundsInfo_1 = require("
|
|
7
|
-
const PlaygroundProperty_1 = require("
|
|
4
|
+
const OutputSchemaProvider_1 = require("#sch/json-schema/OutputSchemaProvider");
|
|
5
|
+
const PlaygroundSchemaTables_1 = require("#sch/PlaygroundSchemaTables");
|
|
6
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
7
|
+
const PlaygroundProperty_1 = require("#sch/sequelize-models/PlaygroundProperty");
|
|
8
8
|
const models_1 = require("@golemio/core/dist/integration-engine/models");
|
|
9
9
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
10
10
|
class PlaygroundPropertyModel extends models_1.PostgresModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundPropertyModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PlaygroundPropertyModel.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PlaygroundPropertyModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PlaygroundPropertyModel.ts"],"names":[],"mappings":";;;AAAA,gFAA6E;AAC7E,wEAAqE;AACrE,0DAAuD;AACvD,iFAA8E;AAC9E,yEAAqF;AACrF,mFAAkF;AAElF,MAAa,uBAAwB,SAAQ,sBAAa;IACtD;QACI,KAAK,CACD,iCAAe,CAAC,6BAA6B,EAC7C;YACI,yBAAyB,EAAE,uCAAkB,CAAC,cAAc;YAC5D,WAAW,EAAE,+CAAsB,CAAC,oBAAoB;YACxD,QAAQ,EAAE,iCAAe,CAAC,UAAU;YACpC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,mCAAmC,EAAE,2CAAoB,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAC9G,CAAC;IACN,CAAC;CACJ;AAbD,0DAaC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Playground } from "
|
|
1
|
+
import { Playground } from "#sch/sequelize-models/Playground";
|
|
2
2
|
import { IModel, PostgresModel } from "@golemio/core/dist/integration-engine/models";
|
|
3
3
|
import sequelize from "@golemio/core/dist/shared/sequelize";
|
|
4
4
|
import { PlaygroundPropertyModel } from "./PlaygroundPropertyModel";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaygroundsModel = void 0;
|
|
4
|
-
const OutputSchemaProvider_1 = require("
|
|
5
|
-
const PlaygroundSchemaTables_1 = require("
|
|
6
|
-
const PlaygroundsInfo_1 = require("
|
|
7
|
-
const Playground_1 = require("
|
|
4
|
+
const OutputSchemaProvider_1 = require("#sch/json-schema/OutputSchemaProvider");
|
|
5
|
+
const PlaygroundSchemaTables_1 = require("#sch/PlaygroundSchemaTables");
|
|
6
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
7
|
+
const Playground_1 = require("#sch/sequelize-models/Playground");
|
|
8
8
|
const models_1 = require("@golemio/core/dist/integration-engine/models");
|
|
9
9
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
10
10
|
const PlaygroundPropertyModel_1 = require("./PlaygroundPropertyModel");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PlaygroundsModel.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PlaygroundsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PlaygroundsModel.ts"],"names":[],"mappings":";;;AAAA,gFAA6E;AAC7E,wEAAqE;AACrE,0DAAuD;AACvD,iEAA8D;AAC9D,yEAAqF;AACrF,mFAAkF;AAElF,uEAAoE;AACpE,mDAAgD;AAEhD,MAAa,gBAAiB,SAAQ,sBAAa;IAI/C;QACI,KAAK,CACD,iCAAe,CAAC,oBAAoB,EACpC;YACI,yBAAyB,EAAE,uBAAU,CAAC,eAAe;YACrD,WAAW,EAAE,+CAAsB,CAAC,UAAU;YAC9C,QAAQ,EAAE,iCAAe,CAAC,UAAU;YACpC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,2BAA2B,EAAE,2CAAoB,CAAC,gBAAgB,EAAE,IAAI,CAAC,CACpG,CAAC;QAWC,oBAAe,GAAG,KAAK,EAAE,WAAmB,EAAE,CAAyB,EAA+B,EAAE;YAC3G,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YAE5D,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;QAC3D,CAAC,CAAC;QAdE,IAAI,CAAC,eAAe,GAAG,IAAI,6BAAa,EAAE,CAAC;QAC3C,IAAI,CAAC,uBAAuB,GAAG,IAAI,iDAAuB,EAAE,CAAC;QAE7D,iCAAe,CAAC,eAAe,CAC3B,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,EACtC,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CACjD,CAAC;IACN,CAAC;IAQM,KAAK,CAAC,aAAa,CAAC,WAAmB,EAAE,CAAqC;QACjF,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAa;YACjD,KAAK,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE;YACnC,WAAW,EAAE,CAAC;SACjB,CAAC,CAAC;IACP,CAAC;CACJ;AArCD,4CAqCC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PropertyModel = void 0;
|
|
4
|
-
const OutputSchemaProvider_1 = require("
|
|
5
|
-
const PlaygroundSchemaTables_1 = require("
|
|
6
|
-
const PlaygroundsInfo_1 = require("
|
|
7
|
-
const Property_1 = require("
|
|
4
|
+
const OutputSchemaProvider_1 = require("#sch/json-schema/OutputSchemaProvider");
|
|
5
|
+
const PlaygroundSchemaTables_1 = require("#sch/PlaygroundSchemaTables");
|
|
6
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
7
|
+
const Property_1 = require("#sch/sequelize-models/Property");
|
|
8
8
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
9
9
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
10
10
|
class PropertyModel extends integration_engine_1.PostgresModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PropertyModel.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PropertyModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PropertyModel.ts"],"names":[],"mappings":";;;AAAA,gFAA6E;AAC7E,wEAAqE;AACrE,0DAAuD;AACvD,6DAA0D;AAC1D,8EAA8E;AAC9E,mFAAkF;AAElF,MAAa,aAAc,SAAQ,kCAAa;IAC5C;QACI,KAAK,CACD,iCAAe,CAAC,mBAAmB,EACnC;YACI,yBAAyB,EAAE,mBAAQ,CAAC,cAAc;YAClD,WAAW,EAAE,+CAAsB,CAAC,UAAU;YAC9C,QAAQ,EAAE,iCAAe,CAAC,UAAU;YACpC,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,wBAAwB,EAAE,2CAAoB,CAAC,QAAQ,EAAE,IAAI,CAAC,CACzF,CAAC;IACN,CAAC;CACJ;AAbD,sCAaC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaygroundsWorker = void 0;
|
|
4
4
|
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
|
|
5
|
-
const PlaygroundsInfo_1 = require("
|
|
5
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
6
6
|
const tasks_1 = require("./tasks");
|
|
7
7
|
class PlaygroundsWorker extends workers_1.AbstractWorker {
|
|
8
8
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsWorker.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/playgrounds/PlaygroundsWorker.ts"],"names":[],"mappings":";;;AAAA,2EAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"PlaygroundsWorker.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/playgrounds/PlaygroundsWorker.ts"],"names":[],"mappings":";;;AAAA,2EAA+E;AAC/E,0DAAuD;AACvD,mCAA4E;AAE5E,MAAa,iBAAkB,SAAQ,wBAAc;IAGjD;QACI,KAAK,EAAE,CAAC;QAHF,SAAI,GAAG,iCAAe,CAAC,UAAU,CAAC;QAKxC,iBAAiB;QACjB,IAAI,CAAC,YAAY,CAAC,IAAI,2BAAmB,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,YAAY,CAAC,IAAI,oCAA4B,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IAC/E,CAAC;CACJ;AAVD,8CAUC"}
|
|
@@ -4,10 +4,10 @@ exports.RefreshDataInDBTask = void 0;
|
|
|
4
4
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
5
5
|
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
|
|
6
6
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
7
|
-
const PlaygroundsModel_1 = require("
|
|
8
|
-
const AddressHelper_1 = require("
|
|
9
|
-
const PlaygroundsTransformation_1 = require("
|
|
10
|
-
const PlaygroundsDataSource_1 = require("
|
|
7
|
+
const PlaygroundsModel_1 = require("#ie/models/PlaygroundsModel");
|
|
8
|
+
const AddressHelper_1 = require("#ie/helpers/AddressHelper");
|
|
9
|
+
const PlaygroundsTransformation_1 = require("#ie/PlaygroundsTransformation");
|
|
10
|
+
const PlaygroundsDataSource_1 = require("#ie/PlaygroundsDataSource");
|
|
11
11
|
class RefreshDataInDBTask extends workers_1.AbstractEmptyTask {
|
|
12
12
|
constructor(queuePrefix) {
|
|
13
13
|
super(queuePrefix);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshDataInDBTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/workers/playgrounds/tasks/RefreshDataInDBTask.ts"],"names":[],"mappings":";;;AACA,6EAA8F;AAE9F,2EAAkF;AAClF,8EAAwF;AAGxF,
|
|
1
|
+
{"version":3,"file":"RefreshDataInDBTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/workers/playgrounds/tasks/RefreshDataInDBTask.ts"],"names":[],"mappings":";;;AACA,6EAA8F;AAE9F,2EAAkF;AAClF,8EAAwF;AAGxF,kEAA+D;AAC/D,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAElE,MAA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|
|
1
1
|
import { AbstractTask } from "@golemio/core/dist/integration-engine/workers";
|
|
2
|
-
import { IPlaygroundInput, PlaygroundsValidationSchema } from "
|
|
2
|
+
import { IPlaygroundInput, PlaygroundsValidationSchema } from "#ie/schema/index";
|
|
3
3
|
export declare class UpdateAddressAndDistrictTask extends AbstractTask<IPlaygroundInput> {
|
|
4
4
|
readonly queueName = "updateAddressAndDistrict";
|
|
5
5
|
readonly queueTtl: number;
|
|
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.UpdateAddressAndDistrictTask = void 0;
|
|
7
7
|
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
|
|
8
8
|
const CityDistrictPostgresRepository_1 = __importDefault(require("@golemio/city-districts/dist/integration-engine/repositories/CityDistrictPostgresRepository"));
|
|
9
|
-
const AddressHelper_1 = require("
|
|
10
|
-
const
|
|
11
|
-
const PlaygroundsModel_1 = require("
|
|
9
|
+
const AddressHelper_1 = require("#ie/helpers/AddressHelper");
|
|
10
|
+
const index_1 = require("#ie/schema/index");
|
|
11
|
+
const PlaygroundsModel_1 = require("#ie/models/PlaygroundsModel");
|
|
12
12
|
class UpdateAddressAndDistrictTask extends workers_1.AbstractTask {
|
|
13
13
|
constructor(queuePrefix) {
|
|
14
14
|
super(queuePrefix);
|
|
15
15
|
this.queueName = "updateAddressAndDistrict";
|
|
16
16
|
this.queueTtl = 23 * 60 * 60 * 1000; // 23 hours
|
|
17
|
-
this.schema =
|
|
17
|
+
this.schema = index_1.PlaygroundsValidationSchema;
|
|
18
18
|
this.model = new PlaygroundsModel_1.PlaygroundsModel();
|
|
19
19
|
this.cityDistrictsModel = new CityDistrictPostgresRepository_1.default();
|
|
20
20
|
}
|
package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateAddressAndDistrictTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.ts"],"names":[],"mappings":";;;;;;AAAA,2EAA6E;AAC7E,iKAA6H;AAE7H,
|
|
1
|
+
{"version":3,"file":"UpdateAddressAndDistrictTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.ts"],"names":[],"mappings":";;;;;;AAAA,2EAA6E;AAC7E,iKAA6H;AAE7H,6DAA0D;AAC1D,4CAAiF;AACjF,kEAA+D;AAE/D,MAAa,4BAA6B,SAAQ,sBAA8B;IAQ5E,YAAY,WAAmB;QAC3B,KAAK,CAAC,WAAW,CAAC,CAAC;QARP,cAAS,GAAG,0BAA0B,CAAC;QACvC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;QAC3C,WAAM,GAAG,mCAA2B,CAAC;QAOjD,IAAI,CAAC,KAAK,GAAG,IAAI,mCAAgB,EAAE,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,IAAI,wCAAkB,EAAE,CAAC;IACvD,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,IAAsB;QAC1C,MAAM,MAAM,GAAe,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAChD,KAAK,EAAE;gBACH,WAAW,EAAE,IAAI,CAAC,WAAW;aAChC;SACJ,CAAC,CAAC;QAEH,MAAM,6BAAa,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACpE,MAAM,6BAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACJ;AAxBD,oEAwBC"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Router /WEB LAYER/: maps routes to specific controller functions, passes request parameters and handles responses.
|
|
5
5
|
* Handles web logic (http request, response). Sets response headers, handles error responses.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="express" />
|
|
8
7
|
import { GeoJsonRouter } from "@golemio/core/dist/output-gateway";
|
|
9
8
|
import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shared/express";
|
|
10
9
|
export declare class PlaygroundsRouter extends GeoJsonRouter {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaygroundPropertyModel = void 0;
|
|
4
|
-
const PlaygroundSchemaTables_1 = require("
|
|
5
|
-
const PlaygroundsInfo_1 = require("
|
|
6
|
-
const PlaygroundProperty_1 = require("
|
|
4
|
+
const PlaygroundSchemaTables_1 = require("#sch/PlaygroundSchemaTables");
|
|
5
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
6
|
+
const PlaygroundProperty_1 = require("#sch/sequelize-models/PlaygroundProperty");
|
|
7
7
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
8
8
|
class PlaygroundPropertyModel extends output_gateway_1.SequelizeModel {
|
|
9
9
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundPropertyModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/PlaygroundPropertyModel.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PlaygroundPropertyModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/PlaygroundPropertyModel.ts"],"names":[],"mappings":";;;AAAA,wEAAqE;AACrE,0DAAuD;AACvD,iFAA8E;AAC9E,sEAAmE;AAEnE,MAAa,uBAAwB,SAAQ,+BAAc;IACvD;QACI,KAAK,CACD,iCAAe,CAAC,6BAA6B,EAC7C,+CAAsB,CAAC,oBAAoB,EAC3C,uCAAkB,CAAC,cAAc,EACjC;YACI,MAAM,EAAE,iCAAe,CAAC,UAAU;SACrC,CACJ,CAAC;IACN,CAAC;IAED,MAAM,CAAC,OAAa;QAChB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,CAAC,EAAO;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ;AAlBD,0DAkBC"}
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PlaygroundsModel = void 0;
|
|
7
|
-
const OutputPlayground_1 = require("
|
|
8
|
-
const PlaygroundSchemaTables_1 = require("
|
|
9
|
-
const PlaygroundsInfo_1 = require("
|
|
10
|
-
const Playground_1 = require("
|
|
7
|
+
const OutputPlayground_1 = require("#sch/output/OutputPlayground");
|
|
8
|
+
const PlaygroundSchemaTables_1 = require("#sch/PlaygroundSchemaTables");
|
|
9
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
10
|
+
const Playground_1 = require("#sch/sequelize-models/Playground");
|
|
11
11
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
12
12
|
const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
|
|
13
13
|
const FilterHelper_1 = require("./FilterHelper");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/PlaygroundsModel.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"PlaygroundsModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/PlaygroundsModel.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAgE;AAChE,wEAAqE;AACrE,0DAAuD;AAEvD,iEAA8D;AAE9D,sEAO2C;AAE3C,oFAA4D;AAC5D,iDAA8C;AAC9C,uEAAoE;AACpE,mDAAgD;AAEhD,MAAa,gBAAiB,SAAQ,+BAAc;IAIhD;QACI,KAAK,CAAC,iCAAe,CAAC,oBAAoB,EAAE,+CAAsB,CAAC,UAAU,EAAE,uBAAU,CAAC,eAA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_1 = require("
|
|
5
|
-
const PlaygroundsInfo_1 = require("
|
|
6
|
-
const Property_1 = require("
|
|
4
|
+
const PlaygroundSchemaTables_1 = require("#sch/PlaygroundSchemaTables");
|
|
5
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
6
|
+
const Property_1 = require("#sch/sequelize-models/Property");
|
|
7
7
|
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
8
8
|
class PropertyModel extends output_gateway_1.SequelizeModel {
|
|
9
9
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/PropertyModel.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PropertyModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/PropertyModel.ts"],"names":[],"mappings":";;;AAAA,wEAAqE;AACrE,0DAAuD;AACvD,6DAA0D;AAC1D,sEAAmE;AAEnE,MAAa,aAAc,SAAQ,+BAAc;IAC7C;QACI,KAAK,CAAC,iCAAe,CAAC,mBAAmB,EAAE,+CAAsB,CAAC,UAAU,EAAE,mBAAQ,CAAC,cAAc,EAAE;YACnG,MAAM,EAAE,iCAAe,CAAC,UAAU;SACrC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,OAAa;QAChB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,CAAC,EAAO;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ;AAbD,sCAaC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IPlayground } from "
|
|
2
|
-
import { IPlaygroundProperty } from "
|
|
3
|
-
import { IProperty } from "
|
|
1
|
+
import { IPlayground } from "#sch/sequelize-models/interfaces/IPlayground";
|
|
2
|
+
import { IPlaygroundProperty } from "#sch/sequelize-models/interfaces/IPlaygroundProperty";
|
|
3
|
+
import { IProperty } from "#sch/sequelize-models/interfaces/IProperty";
|
|
4
4
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
5
5
|
export declare class OutputSchemaProvider {
|
|
6
6
|
static playgroundOutput: JSONSchemaType<IPlayground[]>;
|
|
@@ -19,7 +19,7 @@ SourceSchemaProvider.playground = {
|
|
|
19
19
|
category: { $ref: "#/definitions/category" },
|
|
20
20
|
image: { $ref: "#/definitions/image" },
|
|
21
21
|
},
|
|
22
|
-
required: ["itemId", "url", "title", "geometry", "content", "image"],
|
|
22
|
+
required: ["itemId", "url", "title", "geometry", "content", "image"], //TODO is image required?
|
|
23
23
|
additionalProperties: false,
|
|
24
24
|
},
|
|
25
25
|
definitions: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceSchemaProvider.js","sourceRoot":"","sources":["../../../src/schema-definitions/json-schema/SourceSchemaProvider.ts"],"names":[],"mappings":";;;AAAA,qGAAkG;AAIlG,MAAa,oBAAoB;;AAAjC,oDAyCC;AAxCiB,+BAAU,GAAwC;IAC5D,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC3B,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,QAAQ,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;SACzC;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EA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AE;aAClC;YACD,QAAQ,EAAE,CAAC,aAAa,CAAC;SAC5B;QACD,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Playground } from "
|
|
1
|
+
import { Playground } from "#sch/sequelize-models/Playground";
|
|
2
2
|
import { IGeoJSONFeature, TGeoCoordinates } from "@golemio/core/dist/output-gateway";
|
|
3
3
|
import { IOutputPlaygroundProperties } from "./IOutputPlaygroundProperties";
|
|
4
4
|
export declare class OutputPlayground implements IGeoJSONFeature {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaygroundProperty = void 0;
|
|
4
|
-
const PlaygroundsInfo_1 = require("
|
|
4
|
+
const PlaygroundsInfo_1 = require("#sch/PlaygroundsInfo");
|
|
5
5
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
6
6
|
class PlaygroundProperty extends sequelize_1.Model {
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundProperty.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/PlaygroundProperty.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PlaygroundProperty.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/PlaygroundProperty.ts"],"names":[],"mappings":";;;AAAA,0DAAuD;AACvD,mEAAwF;AAGxF,MAAa,kBAAmB,SAAQ,iBAAyB;;AAAjE,gDAsBC;AAlBiB,iCAAc,GAAwC;IAChE,aAAa,EAAE;QACX,IAAI,EAAE,qBAAS,CAAC,OAAO,CAAC,QAAQ;QAChC,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE;YACR,KAAK,EAAE,iCAAe,CAAC,oBAAoB;YAC3C,GAAG,EAAE,aAAa;SACrB;KACJ;IACD,aAAa,EAAE;QACX,IAAI,EAAE,qBAAS,CAAC,OAAO,CAAC,QAAQ;QAChC,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE;YACR,KAAK,EAAE,iCAAe,CAAC,mBAAmB;YAC1C,GAAG,EAAE,IAAI;SACZ;KACJ;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,74 +1,99 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"prepare-db": "golemio import-db-data --postgres",
|
|
12
|
-
"test:only": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
13
|
-
"test": "run-s prepare-db test:only",
|
|
14
|
-
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
15
|
-
"coverage:only": "nyc --reporter=text --reporter=lcov npm run test:only -- -r source-map-support/register",
|
|
16
|
-
"code-coverage": "run-s prepare-db coverage:only",
|
|
17
|
-
"generate-docs": "typedoc --out docs/typedoc src",
|
|
18
|
-
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
2
|
+
"name": "@golemio/playgrounds",
|
|
3
|
+
"version": "1.12.1-dev.2635607329",
|
|
4
|
+
"description": "Golemio Playgrounds Module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"imports": {
|
|
8
|
+
"#ie": {
|
|
9
|
+
"development": "./src/integration-engine/index.ts",
|
|
10
|
+
"default": "./dist/integration-engine/index.js"
|
|
19
11
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"author": "Operator ICT, a.s.",
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "https://gitlab.com/operator-ict/golemio/code/modules/playgrounds"
|
|
12
|
+
"#ie/*": {
|
|
13
|
+
"development": "./src/integration-engine/*.ts",
|
|
14
|
+
"default": "./dist/integration-engine/*.js"
|
|
28
15
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
"#og": {
|
|
17
|
+
"development": "./src/output-gateway/index.ts",
|
|
18
|
+
"default": "./dist/output-gateway/index.js"
|
|
32
19
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@golemio/city-districts": "1.4.5",
|
|
37
|
-
"@golemio/cli": "1.11.2",
|
|
38
|
-
"@golemio/core": "3.1.1",
|
|
39
|
-
"@golemio/db-common": "1.2.2",
|
|
40
|
-
"@golemio/eslint-config": "1.1.4",
|
|
41
|
-
"@types/chai": "^5.2.3",
|
|
42
|
-
"@types/chai-as-promised": "^8.0.2",
|
|
43
|
-
"@types/geojson": "^7946.0.8",
|
|
44
|
-
"@types/mocha": "^10.0.10",
|
|
45
|
-
"@types/node": "^24.12.4",
|
|
46
|
-
"@types/sinon": "^21.0.0",
|
|
47
|
-
"@types/supertest": "^6.0.3",
|
|
48
|
-
"chai": "^6.2.2",
|
|
49
|
-
"chai-as-promised": "^8.0.2",
|
|
50
|
-
"cross-env": "^7.0.3",
|
|
51
|
-
"dotenv": "^8.2.0",
|
|
52
|
-
"eslint": "^8.1.1",
|
|
53
|
-
"husky": "^4.3.7",
|
|
54
|
-
"mocha": "^11.7.5",
|
|
55
|
-
"npm-run-all": "^4.1.5",
|
|
56
|
-
"nyc": "^15.1.0",
|
|
57
|
-
"prettier": "^2.5.1",
|
|
58
|
-
"pretty-quick": "^3.1.0",
|
|
59
|
-
"rimraf": "^3.0.2",
|
|
60
|
-
"sinon": "^21.0.1",
|
|
61
|
-
"source-map-support": "0.5.21",
|
|
62
|
-
"supertest": "^7.1.4",
|
|
63
|
-
"ts-node": "^10.9.1",
|
|
64
|
-
"ts-patch": "3.0.0-beta3",
|
|
65
|
-
"tsconfig-paths": "^4.2.0",
|
|
66
|
-
"typedoc": "^0.24.8",
|
|
67
|
-
"typescript": "5.1.3",
|
|
68
|
-
"typescript-transform-paths": "^3.4.6"
|
|
20
|
+
"#og/*": {
|
|
21
|
+
"development": "./src/output-gateway/*.ts",
|
|
22
|
+
"default": "./dist/output-gateway/*.js"
|
|
69
23
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
24
|
+
"#sch": {
|
|
25
|
+
"development": "./src/schema-definitions/index.ts",
|
|
26
|
+
"default": "./dist/schema-definitions/index.js"
|
|
27
|
+
},
|
|
28
|
+
"#sch/*": {
|
|
29
|
+
"development": "./src/schema-definitions/*.ts",
|
|
30
|
+
"default": "./dist/schema-definitions/*.js"
|
|
73
31
|
}
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "rimraf ./dist && tsc -p ./tsconfig.build.json",
|
|
35
|
+
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
36
|
+
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
37
|
+
"prepare-db": "golemio import-db-data --postgres",
|
|
38
|
+
"test:only": "cross-env NODE_ENV=test NODE_OPTIONS=\"--conditions=development --import=tsx\" mocha --exit --check-leaks --timeout 120000 -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
39
|
+
"test": "run-s prepare-db test:only",
|
|
40
|
+
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
41
|
+
"coverage:only": "nyc --reporter=text --reporter=lcov npm run test:only",
|
|
42
|
+
"code-coverage": "run-s prepare-db coverage:only",
|
|
43
|
+
"generate-docs": "typedoc --out docs/typedoc src",
|
|
44
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"golemio"
|
|
48
|
+
],
|
|
49
|
+
"author": "Operator ICT, a.s.",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "https://gitlab.com/operator-ict/golemio/code/modules/playgrounds"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=24.0.0",
|
|
57
|
+
"npm": ">=11.0.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@commitlint/cli": "^11.0.0",
|
|
61
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
62
|
+
"@golemio/city-districts": "1.5.0",
|
|
63
|
+
"@golemio/cli": "1.11.2",
|
|
64
|
+
"@golemio/core": "3.2.2-dev.2622707631",
|
|
65
|
+
"@golemio/db-common": "1.2.2",
|
|
66
|
+
"@golemio/eslint-config": "1.1.4",
|
|
67
|
+
"@swc/core": "^1.15.33",
|
|
68
|
+
"@types/chai": "^5.2.3",
|
|
69
|
+
"@types/chai-as-promised": "^8.0.2",
|
|
70
|
+
"@types/geojson": "^7946.0.8",
|
|
71
|
+
"@types/mocha": "^10.0.10",
|
|
72
|
+
"@types/node": "^24.12.4",
|
|
73
|
+
"@types/sinon": "^21.0.0",
|
|
74
|
+
"@types/supertest": "^6.0.3",
|
|
75
|
+
"chai": "^6.2.2",
|
|
76
|
+
"chai-as-promised": "^8.0.2",
|
|
77
|
+
"cross-env": "^7.0.3",
|
|
78
|
+
"dotenv": "^8.2.0",
|
|
79
|
+
"eslint": "^8.1.1",
|
|
80
|
+
"husky": "^4.3.7",
|
|
81
|
+
"mocha": "^11.7.5",
|
|
82
|
+
"npm-run-all": "^4.1.5",
|
|
83
|
+
"nyc": "^15.1.0",
|
|
84
|
+
"prettier": "^2.5.1",
|
|
85
|
+
"pretty-quick": "^3.1.0",
|
|
86
|
+
"rimraf": "^3.0.2",
|
|
87
|
+
"sinon": "^21.0.1",
|
|
88
|
+
"source-map-support": "0.5.21",
|
|
89
|
+
"supertest": "^7.1.4",
|
|
90
|
+
"ts-node": "^10.9.2",
|
|
91
|
+
"typedoc": "^0.24.8",
|
|
92
|
+
"typescript": "6.0.3",
|
|
93
|
+
"tsx": "^4.20.6"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"@golemio/city-districts": ">=1.2.5",
|
|
97
|
+
"@golemio/core": ">=1.9.0"
|
|
98
|
+
}
|
|
74
99
|
}
|