@golemio/playgrounds 1.0.3-dev.486221468 → 1.0.3-dev.488256458
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/db/example/.config.json +3 -0
- package/db/example/00_truncate_tables.sql +6 -0
- package/db/example/01_playgrounds.sql +30 -0
- package/db/migrations/postgresql/.config.json +3 -0
- package/db/migrations/postgresql/20220223135414-playgrounds-to-postgres.js +53 -0
- package/db/migrations/postgresql/package.json +3 -0
- package/db/migrations/postgresql/sqls/20220223135414-playgrounds-to-postgres-down.sql +3 -0
- package/db/migrations/postgresql/sqls/20220223135414-playgrounds-to-postgres-up.sql +52 -0
- package/db/migrations/postgresql/sqls/package.json +3 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/integration-engine/PlaygroundsDataSource.d.ts +5 -0
- package/dist/integration-engine/PlaygroundsDataSource.js +21 -0
- package/dist/integration-engine/PlaygroundsDataSource.js.map +1 -0
- package/dist/integration-engine/PlaygroundsTransformation.d.ts +6 -1
- package/dist/integration-engine/PlaygroundsTransformation.js +35 -27
- package/dist/integration-engine/PlaygroundsTransformation.js.map +1 -1
- package/dist/integration-engine/PlaygroundsWorker.d.ts +7 -1
- package/dist/integration-engine/PlaygroundsWorker.js +114 -81
- package/dist/integration-engine/PlaygroundsWorker.js.map +1 -1
- package/dist/integration-engine/helpers/AddressHelper.d.ts +11 -0
- package/dist/integration-engine/helpers/AddressHelper.js +68 -0
- package/dist/integration-engine/helpers/AddressHelper.js.map +1 -0
- package/dist/integration-engine/models/CityDistrictsModel.d.ts +4 -0
- package/dist/integration-engine/models/CityDistrictsModel.js +22 -0
- package/dist/integration-engine/models/CityDistrictsModel.js.map +1 -0
- package/dist/integration-engine/models/PlaygroundPropertyModel.d.ts +4 -0
- package/dist/integration-engine/models/PlaygroundPropertyModel.js +21 -0
- package/dist/integration-engine/models/PlaygroundPropertyModel.js.map +1 -0
- package/dist/integration-engine/models/PlaygroundsModel.d.ts +12 -0
- package/dist/integration-engine/models/PlaygroundsModel.js +47 -0
- package/dist/integration-engine/models/PlaygroundsModel.js.map +1 -0
- package/dist/integration-engine/models/PropertyModel.d.ts +4 -0
- package/dist/integration-engine/models/PropertyModel.js +21 -0
- package/dist/integration-engine/models/PropertyModel.js.map +1 -0
- package/dist/integration-engine/queueDefinitions.js +3 -3
- package/dist/integration-engine/queueDefinitions.js.map +1 -1
- package/dist/output-gateway/PlaygroundsRouter.d.ts +2 -1
- package/dist/output-gateway/PlaygroundsRouter.js +6 -4
- package/dist/output-gateway/PlaygroundsRouter.js.map +1 -1
- package/dist/output-gateway/index.d.ts +1 -1
- package/dist/output-gateway/index.js +1 -1
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/models/FilterHelper.d.ts +8 -0
- package/dist/output-gateway/models/FilterHelper.js +49 -0
- package/dist/output-gateway/models/FilterHelper.js.map +1 -0
- package/dist/output-gateway/models/PlaygroundPropertyModel.d.ts +6 -0
- package/dist/output-gateway/models/PlaygroundPropertyModel.js +22 -0
- package/dist/output-gateway/models/PlaygroundPropertyModel.js.map +1 -0
- package/dist/output-gateway/models/PlaygroundsModel.d.ts +15 -0
- package/dist/output-gateway/models/PlaygroundsModel.js +87 -0
- package/dist/output-gateway/models/PlaygroundsModel.js.map +1 -0
- package/dist/output-gateway/models/PropertyModel.d.ts +6 -0
- package/dist/output-gateway/models/PropertyModel.js +22 -0
- package/dist/output-gateway/models/PropertyModel.js.map +1 -0
- package/dist/schema-definitions/PlaygroundSchemaTables.d.ts +5 -0
- package/dist/schema-definitions/PlaygroundSchemaTables.js +10 -0
- package/dist/schema-definitions/PlaygroundSchemaTables.js.map +1 -0
- package/dist/schema-definitions/PlaygroundsInfo.d.ts +12 -0
- package/dist/schema-definitions/PlaygroundsInfo.js +41 -0
- package/dist/schema-definitions/PlaygroundsInfo.js.map +1 -0
- package/dist/schema-definitions/json-schema/OutputSchemaProvider.d.ts +9 -0
- package/dist/schema-definitions/json-schema/OutputSchemaProvider.js +58 -0
- package/dist/schema-definitions/json-schema/OutputSchemaProvider.js.map +1 -0
- package/dist/schema-definitions/json-schema/SourceSchemaProvider.d.ts +5 -0
- package/dist/schema-definitions/json-schema/SourceSchemaProvider.js +48 -0
- package/dist/schema-definitions/json-schema/SourceSchemaProvider.js.map +1 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourcePlayground.d.ts +14 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourcePlayground.js +3 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourcePlayground.js.map +1 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourcePlaygroundCategory.d.ts +4 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourcePlaygroundCategory.js +3 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourcePlaygroundCategory.js.map +1 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourceResponse.d.ts +8 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourceResponse.js +3 -0
- package/dist/schema-definitions/json-schema/interfaces/ISourceResponse.js.map +1 -0
- package/dist/schema-definitions/output/IOutputPlaygroundProperties.d.ts +24 -0
- package/dist/schema-definitions/output/IOutputPlaygroundProperties.js +3 -0
- package/dist/schema-definitions/output/IOutputPlaygroundProperties.js.map +1 -0
- package/dist/schema-definitions/output/OutputPlayground.d.ts +9 -0
- package/dist/schema-definitions/output/OutputPlayground.js +38 -0
- package/dist/schema-definitions/output/OutputPlayground.js.map +1 -0
- package/dist/schema-definitions/sequelize-models/Playground.d.ts +24 -0
- package/dist/schema-definitions/sequelize-models/Playground.js +30 -0
- package/dist/schema-definitions/sequelize-models/Playground.js.map +1 -0
- package/dist/schema-definitions/sequelize-models/PlaygroundProperty.d.ts +7 -0
- package/dist/schema-definitions/sequelize-models/PlaygroundProperty.js +27 -0
- package/dist/schema-definitions/sequelize-models/PlaygroundProperty.js.map +1 -0
- package/dist/schema-definitions/sequelize-models/Property.d.ts +7 -0
- package/dist/schema-definitions/sequelize-models/Property.js +12 -0
- package/dist/schema-definitions/sequelize-models/Property.js.map +1 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IPlayground.d.ts +20 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IPlayground.js +3 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IPlayground.js.map +1 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IPlaygroundProperty.d.ts +4 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IPlaygroundProperty.js +3 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IPlaygroundProperty.js.map +1 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IProperty.d.ts +4 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IProperty.js +3 -0
- package/dist/schema-definitions/sequelize-models/interfaces/IProperty.js.map +1 -0
- package/package.json +6 -4
- package/db/example/mongo_data/dataplatform/playgrounds.bson +0 -0
- package/db/example/mongo_data/dataplatform/playgrounds.metadata.json +0 -1
- package/dist/output-gateway/PlaygroundsModel.d.ts +0 -7
- package/dist/output-gateway/PlaygroundsModel.js +0 -17
- package/dist/output-gateway/PlaygroundsModel.js.map +0 -1
- package/dist/schema-definitions/index.d.ts +0 -12
- package/dist/schema-definitions/index.js +0 -66
- package/dist/schema-definitions/index.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Sequelize from "@golemio/core/dist/shared/sequelize";
|
|
2
|
+
import { Playground } from "./sequelize-models/Playground";
|
|
3
|
+
import { PlaygroundProperty } from "./sequelize-models/PlaygroundProperty";
|
|
4
|
+
import { Property } from "./sequelize-models/Property";
|
|
5
|
+
export declare class PlaygroundsInfo {
|
|
6
|
+
static schemaName: string;
|
|
7
|
+
static moduleName: string;
|
|
8
|
+
static playgroundsModelName: string;
|
|
9
|
+
static propertiesModelName: string;
|
|
10
|
+
static playgroundPropertiesModelName: string;
|
|
11
|
+
static associateTables(mainTable: Sequelize.ModelCtor<Playground>, secondaryTable: Sequelize.ModelCtor<Property>, relationTable: Sequelize.ModelCtor<PlaygroundProperty>): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlaygroundsInfo = void 0;
|
|
4
|
+
class PlaygroundsInfo {
|
|
5
|
+
static associateTables(mainTable, secondaryTable, relationTable) {
|
|
6
|
+
mainTable.belongsToMany(secondaryTable, {
|
|
7
|
+
through: relationTable,
|
|
8
|
+
foreignKey: "playground_id",
|
|
9
|
+
otherKey: "properties_id",
|
|
10
|
+
as: "properties",
|
|
11
|
+
});
|
|
12
|
+
secondaryTable.belongsToMany(mainTable, {
|
|
13
|
+
through: relationTable,
|
|
14
|
+
foreignKey: "properties_id",
|
|
15
|
+
otherKey: "playground_id",
|
|
16
|
+
});
|
|
17
|
+
relationTable.belongsTo(mainTable, {
|
|
18
|
+
targetKey: "internal_id",
|
|
19
|
+
foreignKey: "playground_id",
|
|
20
|
+
});
|
|
21
|
+
relationTable.belongsTo(secondaryTable, {
|
|
22
|
+
targetKey: "id",
|
|
23
|
+
foreignKey: "properties_id",
|
|
24
|
+
});
|
|
25
|
+
mainTable.hasMany(relationTable, {
|
|
26
|
+
sourceKey: "internal_id",
|
|
27
|
+
foreignKey: "playground_id",
|
|
28
|
+
});
|
|
29
|
+
secondaryTable.hasMany(relationTable, {
|
|
30
|
+
sourceKey: "id",
|
|
31
|
+
foreignKey: "properties_id",
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.PlaygroundsInfo = PlaygroundsInfo;
|
|
36
|
+
PlaygroundsInfo.schemaName = "playgrounds";
|
|
37
|
+
PlaygroundsInfo.moduleName = "Playgrounds";
|
|
38
|
+
PlaygroundsInfo.playgroundsModelName = "PlaygroundsModel";
|
|
39
|
+
PlaygroundsInfo.propertiesModelName = "PropertyModel";
|
|
40
|
+
PlaygroundsInfo.playgroundPropertiesModelName = "PlaygroundCategoryModel";
|
|
41
|
+
//# sourceMappingURL=PlaygroundsInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaygroundsInfo.js","sourceRoot":"","sources":["../../src/schema-definitions/PlaygroundsInfo.ts"],"names":[],"mappings":";;;AAIA,MAAa,eAAe;IAOjB,MAAM,CAAC,eAAe,CACzB,SAA0C,EAC1C,cAA6C,EAC7C,aAAsD;QAEtD,SAAS,CAAC,aAAa,CAAC,cAAc,EAAE;YACpC,OAAO,EAAE,aAAa;YACtB,UAAU,EAAE,eAAe;YAC3B,QAAQ,EAAE,eAAe;YACzB,EAAE,EAAE,YAAY;SACnB,CAAC,CAAC;QACH,cAAc,CAAC,aAAa,CAAC,SAAS,EAAE;YACpC,OAAO,EAAE,aAAa;YACtB,UAAU,EAAE,eAAe;YAC3B,QAAQ,EAAE,eAAe;SAC5B,CAAC,CAAC;QACH,aAAa,CAAC,SAAS,CAAC,SAAS,EAAE;YAC/B,SAAS,EAAE,aAAa;YACxB,UAAU,EAAE,eAAe;SAC9B,CAAC,CAAC;QACH,aAAa,CAAC,SAAS,CAAC,cAAc,EAAE;YACpC,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,eAAe;SAC9B,CAAC,CAAC;QACH,SAAS,CAAC,OAAO,CAAC,aAAa,EAAE;YAC7B,SAAS,EAAE,aAAa;YACxB,UAAU,EAAE,eAAe;SAC9B,CAAC,CAAC;QACH,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE;YAClC,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,eAAe;SAC9B,CAAC,CAAC;IACP,CAAC;;AAvCL,0CAwCC;AAvCiB,0BAAU,GAAG,aAAa,CAAC;AAC3B,0BAAU,GAAG,aAAa,CAAC;AAC3B,oCAAoB,GAAG,kBAAkB,CAAC;AAC1C,mCAAmB,GAAG,eAAe,CAAC;AACtC,6CAA6B,GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPlayground } from "../sequelize-models/interfaces/IPlayground";
|
|
2
|
+
import { IPlaygroundProperty } from "../sequelize-models/interfaces/IPlaygroundProperty";
|
|
3
|
+
import { IProperty } from "../sequelize-models/interfaces/IProperty";
|
|
4
|
+
import { JSONSchemaType } from "@golemio/core/node_modules/ajv";
|
|
5
|
+
export declare class OutputSchemaProvider {
|
|
6
|
+
static playgroundOutput: JSONSchemaType<IPlayground[]>;
|
|
7
|
+
static property: JSONSchemaType<IProperty[]>;
|
|
8
|
+
static playgroundProperty: JSONSchemaType<IPlaygroundProperty[]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutputSchemaProvider = void 0;
|
|
4
|
+
const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
|
|
5
|
+
class OutputSchemaProvider {
|
|
6
|
+
}
|
|
7
|
+
exports.OutputSchemaProvider = OutputSchemaProvider;
|
|
8
|
+
OutputSchemaProvider.playgroundOutput = {
|
|
9
|
+
type: "array",
|
|
10
|
+
items: {
|
|
11
|
+
type: "object",
|
|
12
|
+
properties: {
|
|
13
|
+
internal_id: { type: "integer" },
|
|
14
|
+
location: { $ref: "#/definitions/geometry" },
|
|
15
|
+
image_url: { type: "string" },
|
|
16
|
+
content: { type: "string" },
|
|
17
|
+
external_id: { type: "integer" },
|
|
18
|
+
name: { type: "string" },
|
|
19
|
+
perex: { type: "string" },
|
|
20
|
+
url: { type: "string" },
|
|
21
|
+
district: { type: "string" },
|
|
22
|
+
address_country: { type: "string" },
|
|
23
|
+
address_formatted: { type: "string" },
|
|
24
|
+
address_locality: { type: "string" },
|
|
25
|
+
address_region: { type: "string" },
|
|
26
|
+
postal_code: { type: "string" },
|
|
27
|
+
street_address: { type: "string" },
|
|
28
|
+
},
|
|
29
|
+
required: ["location", "content", "external_id", "name", "url"],
|
|
30
|
+
},
|
|
31
|
+
definitions: {
|
|
32
|
+
// @ts-expect-error since it is referenced definition from other file ts doesnt like it.
|
|
33
|
+
geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
OutputSchemaProvider.property = {
|
|
37
|
+
type: "array",
|
|
38
|
+
items: {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
id: { type: "integer" },
|
|
42
|
+
description: { type: "string" },
|
|
43
|
+
},
|
|
44
|
+
required: ["id", "description"],
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
OutputSchemaProvider.playgroundProperty = {
|
|
48
|
+
type: "array",
|
|
49
|
+
items: {
|
|
50
|
+
type: "object",
|
|
51
|
+
properties: {
|
|
52
|
+
playground_id: { type: "integer" },
|
|
53
|
+
properties_id: { type: "integer" },
|
|
54
|
+
},
|
|
55
|
+
required: ["playground_id", "properties_id"],
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=OutputSchemaProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputSchemaProvider.js","sourceRoot":"","sources":["../../../src/schema-definitions/json-schema/OutputSchemaProvider.ts"],"names":[],"mappings":";;;AAGA,qGAAkG;AAGlG,MAAa,oBAAoB;;AAAjC,oDAqDC;AApDiB,qCAAgB,GAAkC;IAC5D,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAChC,QAAQ,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAC5C,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAChC,IAAI,EAAE,EAAE,IAAI,EAAE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
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceSchemaProvider = void 0;
|
|
4
|
+
const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
|
|
5
|
+
class SourceSchemaProvider {
|
|
6
|
+
}
|
|
7
|
+
exports.SourceSchemaProvider = SourceSchemaProvider;
|
|
8
|
+
SourceSchemaProvider.playground = {
|
|
9
|
+
type: "array",
|
|
10
|
+
items: {
|
|
11
|
+
type: "object",
|
|
12
|
+
properties: {
|
|
13
|
+
itemId: { type: "integer" },
|
|
14
|
+
url: { type: "string" },
|
|
15
|
+
title: { type: "string" },
|
|
16
|
+
geometry: { $ref: "#/definitions/geometry" },
|
|
17
|
+
perex: { type: "string" },
|
|
18
|
+
content: { type: "string" },
|
|
19
|
+
category: { $ref: "#/definitions/category" },
|
|
20
|
+
image: { $ref: "#/definitions/image" },
|
|
21
|
+
},
|
|
22
|
+
required: ["itemId", "url", "title", "geometry", "content", "image"],
|
|
23
|
+
additionalProperties: false,
|
|
24
|
+
},
|
|
25
|
+
definitions: {
|
|
26
|
+
category: {
|
|
27
|
+
type: "array",
|
|
28
|
+
items: {
|
|
29
|
+
type: "object",
|
|
30
|
+
properties: {
|
|
31
|
+
nazev: { type: "string" },
|
|
32
|
+
id: { type: "integer" },
|
|
33
|
+
},
|
|
34
|
+
required: ["id", "nazev"],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
image: {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: {
|
|
40
|
+
originalUrl: { type: "string" },
|
|
41
|
+
},
|
|
42
|
+
required: ["originalUrl"],
|
|
43
|
+
},
|
|
44
|
+
// @ts-expect-error since it is referenced definition from other file ts doesnt like it.
|
|
45
|
+
geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=SourceSchemaProvider.js.map
|
|
@@ -0,0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EAAE,CAAC,aAAa,CAAC;SAC5B;QACD,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Geometry } from "geojson";
|
|
2
|
+
import { ISourcePlaygroundCategory } from "./ISourcePlaygroundCategory";
|
|
3
|
+
export interface ISourcePlayground {
|
|
4
|
+
itemId: number;
|
|
5
|
+
url: string;
|
|
6
|
+
title: string;
|
|
7
|
+
geometry: Geometry;
|
|
8
|
+
perex: string;
|
|
9
|
+
content: string;
|
|
10
|
+
category: ISourcePlaygroundCategory[];
|
|
11
|
+
image: {
|
|
12
|
+
originalUrl: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISourcePlayground.js","sourceRoot":"","sources":["../../../../src/schema-definitions/json-schema/interfaces/ISourcePlayground.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISourcePlaygroundCategory.js","sourceRoot":"","sources":["../../../../src/schema-definitions/json-schema/interfaces/ISourcePlaygroundCategory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISourceResponse.js","sourceRoot":"","sources":["../../../../src/schema-definitions/json-schema/interfaces/ISourceResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface IOutputPlaygroundProperties {
|
|
2
|
+
image: {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
content: string;
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
perex: string;
|
|
9
|
+
properties: Array<{
|
|
10
|
+
description: string;
|
|
11
|
+
id: number;
|
|
12
|
+
}>;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
url: string;
|
|
15
|
+
district: string;
|
|
16
|
+
address: {
|
|
17
|
+
address_country: string;
|
|
18
|
+
address_formatted: string;
|
|
19
|
+
street_address: string;
|
|
20
|
+
postal_code: string;
|
|
21
|
+
address_locality: string;
|
|
22
|
+
address_region: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOutputPlaygroundProperties.js","sourceRoot":"","sources":["../../../src/schema-definitions/output/IOutputPlaygroundProperties.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Playground } from "../sequelize-models/Playground";
|
|
2
|
+
import { IGeoJSONFeature, TGeoCoordinates } from "@golemio/core/dist/output-gateway";
|
|
3
|
+
import { IOutputPlaygroundProperties } from "./IOutputPlaygroundProperties";
|
|
4
|
+
export declare class OutputPlayground implements IGeoJSONFeature {
|
|
5
|
+
geometry: TGeoCoordinates;
|
|
6
|
+
properties: IOutputPlaygroundProperties;
|
|
7
|
+
type: "Feature";
|
|
8
|
+
constructor(playground: Playground);
|
|
9
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutputPlayground = void 0;
|
|
4
|
+
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
5
|
+
class OutputPlayground {
|
|
6
|
+
constructor(playground) {
|
|
7
|
+
this.geometry = {};
|
|
8
|
+
this.geometry.coordinates = playground.location.coordinates;
|
|
9
|
+
this.geometry.type = output_gateway_1.GeoCoordinatesType.Point;
|
|
10
|
+
this.properties = {
|
|
11
|
+
image: { url: playground.image_url },
|
|
12
|
+
content: playground.content,
|
|
13
|
+
id: playground.external_id,
|
|
14
|
+
name: playground.name,
|
|
15
|
+
perex: playground.perex,
|
|
16
|
+
properties: playground.properties.map((property) => {
|
|
17
|
+
return {
|
|
18
|
+
description: property.description,
|
|
19
|
+
id: property.id,
|
|
20
|
+
};
|
|
21
|
+
}),
|
|
22
|
+
updated_at: playground.updated_at,
|
|
23
|
+
url: playground.url,
|
|
24
|
+
district: playground.district,
|
|
25
|
+
address: {
|
|
26
|
+
address_country: playground.address_country,
|
|
27
|
+
address_formatted: playground.address_formatted,
|
|
28
|
+
street_address: playground.street_address,
|
|
29
|
+
postal_code: playground.postal_code,
|
|
30
|
+
address_locality: playground.address_locality,
|
|
31
|
+
address_region: playground.address_region,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
this.type = "Feature";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.OutputPlayground = OutputPlayground;
|
|
38
|
+
//# sourceMappingURL=OutputPlayground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputPlayground.js","sourceRoot":"","sources":["../../../src/schema-definitions/output/OutputPlayground.ts"],"names":[],"mappings":";;;AACA,sEAAyG;AAIzG,MAAa,gBAAgB;IAKzB,YAAY,UAAsB;QAC9B,IAAI,CAAC,QAAQ,GAAG,EAAqB,CAAC;QACtC,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAI,UAAU,CAAC,QAAkB,CAAC,WAAW,CAAC;QACvE,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,mCAAkB,CAAC,KAAK,CAAC;QAC9C,IAAI,CAAC,UAAU,GAAG;YACd,KAAK,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,SAAS,EAAE;YACpC,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,EAAE,EAAE,UAAU,CAAC,WAAW;YAC1B,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAC/C,OAAO;oBACH,WAAW,EAAE,QAAQ,CAAC,WAAW;oBACjC,EAAE,EAAE,QAAQ,CAAC,EAAE;iBAClB,CAAC;YACN,CAAC,CAAC;YACF,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,GAAG,EAAE,UAAU,CAAC,GAAG;YACnB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,OAAO,EAAE;gBACL,eAAe,EAAE,UAAU,CAAC,eAAe;gBAC3C,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;gBAC/C,cAAc,EAAE,UAAU,CAAC,cAAc;gBACzC,WAAW,EAAE,UAAU,CAAC,WAAW;gBACnC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;gBAC7C,cAAc,EAAE,UAAU,CAAC,cAAc;aAC5C;SACJ,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;IAC1B,CAAC;CACJ;AAnCD,4CAmCC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
+
import { Point } from "geojson";
|
|
3
|
+
import { IPlayground } from "./interfaces/IPlayground";
|
|
4
|
+
import { IProperty } from "./interfaces/IProperty";
|
|
5
|
+
export declare class Playground extends Model<Playground> implements IPlayground {
|
|
6
|
+
internal_id: number;
|
|
7
|
+
location: Point;
|
|
8
|
+
image_url: string;
|
|
9
|
+
content: string;
|
|
10
|
+
external_id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
perex: string;
|
|
13
|
+
url: string;
|
|
14
|
+
district: string;
|
|
15
|
+
address_country: string;
|
|
16
|
+
address_formatted: string;
|
|
17
|
+
address_locality: string;
|
|
18
|
+
address_region: string;
|
|
19
|
+
postal_code: string;
|
|
20
|
+
street_address: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
properties: IProperty[];
|
|
23
|
+
static attributesModel: ModelAttributes<Playground>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Playground = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class Playground extends sequelize_1.Model {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.properties = [];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.Playground = Playground;
|
|
12
|
+
Playground.attributesModel = {
|
|
13
|
+
internal_id: { type: sequelize_1.DataTypes.INTEGER.UNSIGNED, primaryKey: true, autoIncrement: true },
|
|
14
|
+
location: { type: sequelize_1.DataTypes.GEOMETRY },
|
|
15
|
+
image_url: { type: sequelize_1.DataTypes.STRING, allowNull: true },
|
|
16
|
+
content: { type: sequelize_1.DataTypes.STRING },
|
|
17
|
+
external_id: { type: sequelize_1.DataTypes.STRING },
|
|
18
|
+
name: { type: sequelize_1.DataTypes.STRING },
|
|
19
|
+
perex: { type: sequelize_1.DataTypes.STRING, allowNull: true },
|
|
20
|
+
url: { type: sequelize_1.DataTypes.STRING },
|
|
21
|
+
district: { type: sequelize_1.DataTypes.STRING, allowNull: true },
|
|
22
|
+
address_country: { type: sequelize_1.DataTypes.STRING },
|
|
23
|
+
address_formatted: { type: sequelize_1.DataTypes.STRING },
|
|
24
|
+
address_locality: { type: sequelize_1.DataTypes.STRING },
|
|
25
|
+
address_region: { type: sequelize_1.DataTypes.STRING },
|
|
26
|
+
postal_code: { type: sequelize_1.DataTypes.STRING },
|
|
27
|
+
street_address: { type: sequelize_1.DataTypes.STRING },
|
|
28
|
+
updated_at: { type: sequelize_1.DataTypes.DATE },
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=Playground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Playground.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/Playground.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAKxF,MAAa,UAAW,SAAQ,iBAAiB;IAAjD;;QAiBW,eAAU,GAAgB,EAAE,CAAC;IAoBxC,CAAC;;AArCD,gCAqCC;AAlBiB,0BAAe,GAAgC;IACzD,WAAW,EAAE,EAAE,IAAI,EAAE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ygroundProperty";
|
|
3
|
+
export declare class PlaygroundProperty extends Model<PlaygroundProperty> implements IPlaygroundProperty {
|
|
4
|
+
playground_id: number;
|
|
5
|
+
properties_id: number;
|
|
6
|
+
static attributeModel: ModelAttributes<PlaygroundProperty>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlaygroundProperty = void 0;
|
|
4
|
+
const PlaygroundsInfo_1 = require("../PlaygroundsInfo");
|
|
5
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
6
|
+
class PlaygroundProperty extends sequelize_1.Model {
|
|
7
|
+
}
|
|
8
|
+
exports.PlaygroundProperty = PlaygroundProperty;
|
|
9
|
+
PlaygroundProperty.attributeModel = {
|
|
10
|
+
playground_id: {
|
|
11
|
+
type: sequelize_1.DataTypes.INTEGER.UNSIGNED,
|
|
12
|
+
primaryKey: true,
|
|
13
|
+
references: {
|
|
14
|
+
model: PlaygroundsInfo_1.PlaygroundsInfo.playgroundsModelName,
|
|
15
|
+
key: "internal_id",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
properties_id: {
|
|
19
|
+
type: sequelize_1.DataTypes.INTEGER.UNSIGNED,
|
|
20
|
+
primaryKey: true,
|
|
21
|
+
references: {
|
|
22
|
+
model: PlaygroundsInfo_1.PlaygroundsInfo.propertiesModelName,
|
|
23
|
+
key: "id",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=PlaygroundProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaygroundProperty.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/PlaygroundProperty.ts"],"names":[],"mappings":";;;AAAA,wDAAuD;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
+
import { IProperty } from "./interfaces/IProperty";
|
|
3
|
+
export declare class Property extends Model<Property> implements IProperty {
|
|
4
|
+
id: number;
|
|
5
|
+
description: string;
|
|
6
|
+
static attributeModel: ModelAttributes<Property>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Property = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class Property extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.Property = Property;
|
|
8
|
+
Property.attributeModel = {
|
|
9
|
+
id: { type: sequelize_1.DataTypes.INTEGER.UNSIGNED, primaryKey: true },
|
|
10
|
+
description: { type: sequelize_1.DataTypes.STRING },
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Property.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/Property.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAGxF,MAAa,QAAS,SAAQ,iBAAe;;AAA7C,4BAQC;AAJiB,uBAAc,GAA8B;IACtD,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IAC1D,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;CAC1C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Point } from "geojson";
|
|
2
|
+
import { IProperty } from "./IProperty";
|
|
3
|
+
export interface IPlayground {
|
|
4
|
+
internal_id: number | undefined;
|
|
5
|
+
location: Point;
|
|
6
|
+
image_url: string | null;
|
|
7
|
+
content: string;
|
|
8
|
+
external_id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
perex: string;
|
|
11
|
+
url: string;
|
|
12
|
+
district: string;
|
|
13
|
+
address_country: string;
|
|
14
|
+
address_formatted: string;
|
|
15
|
+
address_locality: string;
|
|
16
|
+
address_region: string;
|
|
17
|
+
postal_code: string;
|
|
18
|
+
street_address: string;
|
|
19
|
+
properties: IProperty[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPlayground.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/IPlayground.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPlaygroundProperty.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/IPlaygroundProperty.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IProperty.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/IProperty.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/playgrounds",
|
|
3
|
-
"version": "1.0.3-dev.
|
|
3
|
+
"version": "1.0.3-dev.488256458",
|
|
4
4
|
"description": "Golemio Playgrounds Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
|
|
9
9
|
"build-minimal": "run-s 'build --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build --watch --preserveWatchOutput'",
|
|
11
|
-
"pretest": "golemio
|
|
11
|
+
"pretest": "golemio import-db-data --postgres",
|
|
12
12
|
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
|
|
13
13
|
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
14
14
|
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
15
15
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
16
|
-
"lint": "eslint
|
|
16
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"golemio"
|
|
@@ -27,10 +27,12 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@commitlint/cli": "^11.0.0",
|
|
29
29
|
"@commitlint/config-conventional": "^11.0.0",
|
|
30
|
-
"@golemio/
|
|
30
|
+
"@golemio/cli": "1.2.1-dev.461806964",
|
|
31
|
+
"@golemio/core": "1.2.2-dev.487010523",
|
|
31
32
|
"@golemio/eslint-config": "^1.0.2",
|
|
32
33
|
"@types/chai": "4.2.3",
|
|
33
34
|
"@types/chai-as-promised": "7.1.2",
|
|
35
|
+
"@types/geojson": "^7946.0.8",
|
|
34
36
|
"@types/mocha": "^8.2.0",
|
|
35
37
|
"@types/node": "^14.14.20",
|
|
36
38
|
"@types/sinon": "^9.0.10",
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"dataplatform.playgrounds"},{"v":2,"key":{"properties.id":1},"name":"properties.id_1","ns":"dataplatform.playgrounds"},{"v":2,"key":{"geometry":"2dsphere"},"name":"geometry_2dsphere","ns":"dataplatform.playgrounds","2dsphereIndexVersion":3}],"uuid":"2760730cd2a6492aafaa712054d1a883"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlaygroundsModel = void 0;
|
|
4
|
-
const models_1 = require("@golemio/core/dist/output-gateway/models");
|
|
5
|
-
const index_1 = require("../schema-definitions/index");
|
|
6
|
-
class PlaygroundsModel extends models_1.GeoJsonModel {
|
|
7
|
-
/**
|
|
8
|
-
* Instantiates the model according to the given schema.
|
|
9
|
-
*/
|
|
10
|
-
constructor() {
|
|
11
|
-
super(index_1.Playgrounds.name, index_1.Playgrounds.outputMongooseSchemaObject, index_1.Playgrounds.mongoCollectionName);
|
|
12
|
-
// Set model-specific indexes
|
|
13
|
-
this.schema.index({ "properties.name": "text" });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.PlaygroundsModel = PlaygroundsModel;
|
|
17
|
-
//# sourceMappingURL=PlaygroundsModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsModel.js","sourceRoot":"","sources":["../../src/output-gateway/PlaygroundsModel.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,uDAAyC;AAEzC,MAAa,gBAAiB,SAAQ,qBAAY;IAC9C;;OAEG;IACH;QACI,KAAK,CAAC,mBAAW,CAAC,IAAI,EAAE,mBAAW,CAAC,0BAA0B,EAAE,mBAAW,CAAC,mBAAmB,CAAC,CAAC;QAEjG,6BAA6B;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;CACJ;AAVD,4CAUC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose" />
|
|
2
|
-
declare const forExport: {
|
|
3
|
-
datasourceMongooseSchemaObject: {
|
|
4
|
-
[path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
|
|
5
|
-
};
|
|
6
|
-
mongoCollectionName: string;
|
|
7
|
-
name: string;
|
|
8
|
-
outputMongooseSchemaObject: {
|
|
9
|
-
[path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export { forExport as Playgrounds };
|