@golemio/pid 5.9.2-dev.2487723561 → 5.9.2
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/integration-engine/jis/ioc/Di.js +0 -2
- package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +0 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +0 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +1 -3
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +2 -15
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.d.ts +15 -6
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +20 -12
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +1 -1
- package/dist/integration-engine/jis/services/JISInfotextsDataService.d.ts +8 -7
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js +12 -17
- package/dist/integration-engine/jis/services/JISInfotextsDataService.js.map +1 -1
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.d.ts +1 -2
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js +0 -5
- package/dist/integration-engine/jis/transformations/JISInfotextsTransformation.js.map +1 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +4 -8
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +0 -12
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +0 -2
- package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/index.js +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +1 -1
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +0 -2
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/interfaces/index.d.ts +0 -1
- package/dist/schema-definitions/jis/models/interfaces/index.js +0 -1
- package/dist/schema-definitions/jis/models/interfaces/index.js.map +1 -1
- package/docs/asyncapi.yaml +5 -16
- package/docs/openapi-input.yaml +3 -14
- package/package.json +7 -7
- package/db/migrations/postgresql/20260428091015-jis-infotexts-presets.js +0 -49
- package/db/migrations/postgresql/sqls/20260428091015-jis-infotexts-presets-down.sql +0 -2
- package/db/migrations/postgresql/sqls/20260428091015-jis-infotexts-presets-up.sql +0 -8
- package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.d.ts +0 -32
- package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.js +0 -89
- package/dist/integration-engine/jis/repositories/JISInfotextsPresetsRepository.js.map +0 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.d.ts +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.js +0 -3
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.js.map +0 -1
- package/dist/schema-definitions/jis/models/JISInfotextsPresetsModel.d.ts +0 -12
- package/dist/schema-definitions/jis/models/JISInfotextsPresetsModel.js +0 -41
- package/dist/schema-definitions/jis/models/JISInfotextsPresetsModel.js.map +0 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsPresets.d.ts +0 -4
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsPresets.js +0 -3
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotextsPresets.js.map +0 -1
|
@@ -8,7 +8,6 @@ const JISInfotextsDataSourceFactory_1 = require("../datasources/JISInfotextsData
|
|
|
8
8
|
const JISEventsRepository_1 = require("../repositories/JISEventsRepository");
|
|
9
9
|
const JISEventsRopidGTFSRoutesRepository_1 = require("../repositories/JISEventsRopidGTFSRoutesRepository");
|
|
10
10
|
const JISInfotextsRedisRepository_1 = require("../repositories/JISInfotextsRedisRepository");
|
|
11
|
-
const JISInfotextsPresetsRepository_1 = require("../repositories/JISInfotextsPresetsRepository");
|
|
12
11
|
const JISInfotextsRepository_1 = require("../repositories/JISInfotextsRepository");
|
|
13
12
|
const JISInfotextsRopidGTFSStopsRepository_1 = require("../repositories/JISInfotextsRopidGTFSStopsRepository");
|
|
14
13
|
const JISMetadataRepository_1 = require("../repositories/JISMetadataRepository");
|
|
@@ -43,7 +42,6 @@ JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISEventsRe
|
|
|
43
42
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISEventsRopidGTFSRoutesRepository, JISEventsRopidGTFSRoutesRepository_1.JISEventsRopidGTFSRoutesRepository);
|
|
44
43
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsRepository, JISInfotextsRepository_1.JISInfotextsRepository);
|
|
45
44
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository, JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository);
|
|
46
|
-
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsPresetsRepository, JISInfotextsPresetsRepository_1.JISInfotextsPresetsRepository);
|
|
47
45
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISMetadataRepository, JISMetadataRepository_1.JISMetadataRepository);
|
|
48
46
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.RopidGTFSStopsRepository, RopidGTFSStopsModel_1.RopidGTFSStopsModel);
|
|
49
47
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.RopidGTFSRoutesRepository, RopidGTFSRoutesRepository_1.RopidGTFSRoutesRepository);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,8EAAyE;AAEzE,0FAAuF;AACvF,gGAA6F;AAC7F,6EAA0E;AAC1E,2GAAwG;AACxG,6FAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,8EAAyE;AAEzE,0FAAuF;AACvF,gGAA6F;AAC7F,6EAA0E;AAC1E,2GAAwG;AACxG,6FAA0F;AAC1F,mFAAgF;AAChF,+GAA4G;AAC5G,iFAA8E;AAC9E,2EAAwE;AACxE,iFAA8E;AAC9E,oGAAiG;AACjG,wFAAqF;AACrF,oGAAiG;AACjG,8FAA2F;AAC3F,0GAAuG;AACvG,4EAAyE;AACzE,kFAA+E;AAC/E,gFAA6E;AAC7E,gGAA6F;AAC7F,sFAAmF;AACnF,oFAAiF;AACjF,2DAAwD;AACxD,sGAAiG;AAEjG,wBAAwB;AACxB,MAAM,YAAY,GAAwB,iBAAY,CAAC,oBAAoB,EAAE,CAAC;AA4CrE,oCAAY;AA3CrB,YAAY;AAEZ,sBAAsB;AACtB,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACzG,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,6BAA6B,EAAE,6DAA6B,CAAC,CAAC;AAC/G,YAAY;AAEZ,4BAA4B;AAC5B,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,2BAA2B,EAAE,yDAA2B,CAAC,CAAC;AAC3G,YAAY;AAEZ,sBAAsB;AACtB,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,mBAAmB,EAAE,yCAAmB,CAAC,CAAC;AAC3F,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,kCAAkC,EA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AE,iDAAuB,CAAC,CAAC;AACnG,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,6BAA6B,EAAE,6DAA6B,CAAC,CAAC;AAC/G,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACzG,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,6BAA6B,EAAE,6DAA6B,CAAC,CAAC;AAC/G,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,gCAAgC,EAAE,mEAAgC,CAAC,CAAC"}
|
|
@@ -6,7 +6,6 @@ declare const JISContainerToken: {
|
|
|
6
6
|
JISEventsRopidGTFSRoutesRepository: symbol;
|
|
7
7
|
JISInfotextsRepository: symbol;
|
|
8
8
|
JISInfotextsRopidGTFSStopsRepository: symbol;
|
|
9
|
-
JISInfotextsPresetsRepository: symbol;
|
|
10
9
|
JISMetadataRepository: symbol;
|
|
11
10
|
RopidGTFSStopsRepository: symbol;
|
|
12
11
|
RopidGTFSRoutesRepository: symbol;
|
|
@@ -12,7 +12,6 @@ const JISContainerToken = {
|
|
|
12
12
|
JISEventsRopidGTFSRoutesRepository: Symbol("JISEventsRopidGTFSRoutesRepository"),
|
|
13
13
|
JISInfotextsRepository: Symbol("JISInfotextsRepository"),
|
|
14
14
|
JISInfotextsRopidGTFSStopsRepository: Symbol("JISInfotextsRopidGTFSStopsRepository"),
|
|
15
|
-
JISInfotextsPresetsRepository: Symbol("JISInfotextsPresetsRepository"),
|
|
16
15
|
JISMetadataRepository: Symbol("JISMetadataRepository"),
|
|
17
16
|
RopidGTFSStopsRepository: Symbol("RopidGTFSStopsRepository"),
|
|
18
17
|
RopidGTFSRoutesRepository: Symbol("RopidGTFSRoutesRepository"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/JISContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACtB,kBAAkB;IAClB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,wBAAwB;IACxB,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,kBAAkB;IAClB,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,kCAAkC,EAAE,MAAM,CAAC,oCAAoC,CAAC;IAChF,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,oCAAoC,EAAE,MAAM,CAAC,sCAAsC,CAAC;IACpF,
|
|
1
|
+
{"version":3,"file":"JISContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/JISContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACtB,kBAAkB;IAClB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,wBAAwB;IACxB,2BAA2B,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAClE,kBAAkB;IAClB,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,kCAAkC,EAAE,MAAM,CAAC,oCAAoC,CAAC;IAChF,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,oCAAoC,EAAE,MAAM,CAAC,sCAAsC,CAAC;IACpF,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IAC9D,cAAc;IACd,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,qBAAqB;IACrB,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,gCAAgC,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAC5E,WAAW;IACX,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CAAC;IACpE,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;CAC3D,CAAC;AAEO,8CAAiB"}
|
|
@@ -6,7 +6,6 @@ import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postg
|
|
|
6
6
|
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
|
|
7
7
|
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
8
8
|
import { Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
9
|
-
import { JISInfotextsPresetsRepository } from "./JISInfotextsPresetsRepository";
|
|
10
9
|
import { JISInfotextsRopidGTFSStopsRepository } from "./JISInfotextsRopidGTFSStopsRepository";
|
|
11
10
|
type RepositoryOptions = {
|
|
12
11
|
transaction?: Transaction;
|
|
@@ -14,13 +13,12 @@ type RepositoryOptions = {
|
|
|
14
13
|
export declare class JISInfotextsRepository extends AbstractValidatableRepository {
|
|
15
14
|
private logger;
|
|
16
15
|
private infotextStopRepository;
|
|
17
|
-
private infotextPresetsRepository;
|
|
18
16
|
private gtfsStopRepository;
|
|
19
17
|
validator: JSONSchemaValidator;
|
|
20
18
|
schema: string;
|
|
21
19
|
tableName: string;
|
|
22
20
|
private sequelizeModel;
|
|
23
|
-
constructor(connector: IDatabaseConnector, logger: ILogger, infotextStopRepository: JISInfotextsRopidGTFSStopsRepository,
|
|
21
|
+
constructor(connector: IDatabaseConnector, logger: ILogger, infotextStopRepository: JISInfotextsRopidGTFSStopsRepository, gtfsStopRepository: RopidGTFSStopsModel);
|
|
24
22
|
/**
|
|
25
23
|
* Refresh all data from VYMI and delete old data
|
|
26
24
|
*
|
|
@@ -24,14 +24,12 @@ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
|
24
24
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
25
25
|
const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
26
26
|
const JISContainerToken_1 = require("../ioc/JISContainerToken");
|
|
27
|
-
const JISInfotextsPresetsRepository_1 = require("./JISInfotextsPresetsRepository");
|
|
28
27
|
const JISInfotextsRopidGTFSStopsRepository_1 = require("./JISInfotextsRopidGTFSStopsRepository");
|
|
29
28
|
let JISInfotextsRepository = class JISInfotextsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
30
|
-
constructor(connector, logger, infotextStopRepository,
|
|
29
|
+
constructor(connector, logger, infotextStopRepository, gtfsStopRepository) {
|
|
31
30
|
super(connector, logger);
|
|
32
31
|
this.logger = logger;
|
|
33
32
|
this.infotextStopRepository = infotextStopRepository;
|
|
34
|
-
this.infotextPresetsRepository = infotextPresetsRepository;
|
|
35
33
|
this.gtfsStopRepository = gtfsStopRepository;
|
|
36
34
|
this.schema = const_1.PG_SCHEMA;
|
|
37
35
|
this.tableName = JISInfotextsModel_1.JISInfotextsModel.tableName;
|
|
@@ -66,15 +64,6 @@ let JISInfotextsRepository = class JISInfotextsRepository extends AbstractValida
|
|
|
66
64
|
sourceKey: "stop_id",
|
|
67
65
|
foreignKey: "stop_id",
|
|
68
66
|
});
|
|
69
|
-
this.sequelizeModel.hasMany(this.infotextPresetsRepository["sequelizeModel"], {
|
|
70
|
-
sourceKey: "id",
|
|
71
|
-
foreignKey: "infotext_id",
|
|
72
|
-
as: "presets",
|
|
73
|
-
});
|
|
74
|
-
this.infotextPresetsRepository["sequelizeModel"].belongsTo(this.sequelizeModel, {
|
|
75
|
-
targetKey: "id",
|
|
76
|
-
foreignKey: "infotext_id",
|
|
77
|
-
});
|
|
78
67
|
}
|
|
79
68
|
/**
|
|
80
69
|
* Refresh all data from VYMI and delete old data
|
|
@@ -157,10 +146,8 @@ exports.JISInfotextsRepository = JISInfotextsRepository = __decorate([
|
|
|
157
146
|
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
158
147
|
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
159
148
|
__param(2, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository)),
|
|
160
|
-
__param(3, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.
|
|
161
|
-
__param(4, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.RopidGTFSStopsRepository)),
|
|
149
|
+
__param(3, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.RopidGTFSStopsRepository)),
|
|
162
150
|
__metadata("design:paramtypes", [Object, Object, JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository,
|
|
163
|
-
JISInfotextsPresetsRepository_1.JISInfotextsPresetsRepository,
|
|
164
151
|
ropid_gtfs_1.RopidGTFSStopsModel])
|
|
165
152
|
], JISInfotextsRepository);
|
|
166
153
|
//# sourceMappingURL=JISInfotextsRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAAqD;AACrD,6DAAuC;AACvC,gGAAsE;AAItE,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAC7D,gEAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"JISInfotextsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAAqD;AACrD,6DAAuC;AACvC,gGAAsE;AAItE,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAC7D,gEAA6D;AAC7D,iGAA8F;AAOvF,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,6DAA6B;IAOrE,YACyC,SAA6B,EACxC,MAAuB,EAEjD,sBAAoE,EAEpE,kBAA+C;QAE/C,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANS,WAAM,GAAN,MAAM,CAAS;QAEzC,2BAAsB,GAAtB,sBAAsB,CAAsC;QAE5D,uBAAkB,GAAlB,kBAAkB,CAAqB;QAX5C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,qCAAiB,CAAC,SAAS,CAAC;QAa3C,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,wBAAwB,EAAE,qCAAiB,CAAC,UAAU,CAAC,CAAC;QACjG,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,qCAAiB,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAEvF,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE;YACtE,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC;YACtD,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,SAAS;YACnB,EAAE,EAAE,OAAO;SACd,CAAC,CAAC;QACH,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC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AA;IACxB,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,oCAAoC,CAAC,CAAA;IAE9D,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,wBAAwB,CAAC,CAAA;qDADnB,2EAAoC;QAExC,gCAAmB;GAb1C,sBAAsB,CAoIlC"}
|
|
@@ -9,24 +9,33 @@ type RepositoryOptions = {
|
|
|
9
9
|
transaction?: Transaction;
|
|
10
10
|
};
|
|
11
11
|
export declare class JISInfotextsRopidGTFSStopsRepository extends AbstractValidatableRepository {
|
|
12
|
+
private logger;
|
|
12
13
|
validator: JSONSchemaValidator;
|
|
13
14
|
schema: string;
|
|
14
15
|
tableName: string;
|
|
15
16
|
private sequelizeModel;
|
|
16
17
|
constructor(connector: IDatabaseConnector, logger: ILogger);
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* Delete all items last updated before a given date and time (where their `updated_at` is less than the given limit)
|
|
20
|
+
*
|
|
21
|
+
* @param dateTime The `updated_at` limit, where all items last updated before this limit shall be deleted
|
|
22
|
+
* @param options Options for the operation
|
|
23
|
+
* @returns The number of deleted items
|
|
21
24
|
*/
|
|
22
25
|
deleteAllLastUpdatedBefore(dateTime: Date, options?: RepositoryOptions): Promise<number>;
|
|
23
26
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
+
* Insert or update all given data. In case of an update, all attributes except for `created_at` shall be overwritten.
|
|
28
|
+
*
|
|
29
|
+
* @param data The data to be upserted
|
|
30
|
+
* @param options Options for the operation
|
|
31
|
+
* @returns The upserted items
|
|
27
32
|
*/
|
|
28
33
|
upsertAll(data: IJISInfotextsRopidGTFSStops[], options?: RepositoryOptions): ReturnType<ModelStatic<JISInfotextsRopidGTFSStopsModel>["bulkCreate"]>;
|
|
29
34
|
private getUpdateAttributes;
|
|
35
|
+
/**
|
|
36
|
+
* @param options
|
|
37
|
+
* @returns The number of deleted items
|
|
38
|
+
*/
|
|
30
39
|
deleteAll(options?: RepositoryOptions): Promise<number>;
|
|
31
40
|
}
|
|
32
41
|
export {};
|
|
@@ -17,6 +17,7 @@ const const_1 = require("../../../schema-definitions/const");
|
|
|
17
17
|
const JISInfotextsRopidGTFSStopsModel_1 = require("../../../schema-definitions/jis/models/JISInfotextsRopidGTFSStopsModel");
|
|
18
18
|
const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
|
|
19
19
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
20
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
20
21
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
21
22
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
22
23
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
@@ -24,6 +25,7 @@ const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
|
24
25
|
let JISInfotextsRopidGTFSStopsRepository = class JISInfotextsRopidGTFSStopsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
25
26
|
constructor(connector, logger) {
|
|
26
27
|
super(connector, logger);
|
|
28
|
+
this.logger = logger;
|
|
27
29
|
this.schema = const_1.PG_SCHEMA;
|
|
28
30
|
this.tableName = JISInfotextsRopidGTFSStopsModel_1.JISInfotextsRopidGTFSStopsModel.tableName;
|
|
29
31
|
this.validator = new golemio_validator_1.JSONSchemaValidator("JISInfotextsRopidGTFSStopsRepository", JISInfotextsRopidGTFSStopsModel_1.JISInfotextsRopidGTFSStopsModel.jsonSchema);
|
|
@@ -32,9 +34,11 @@ let JISInfotextsRopidGTFSStopsRepository = class JISInfotextsRopidGTFSStopsRepos
|
|
|
32
34
|
.define(this.tableName, JISInfotextsRopidGTFSStopsModel_1.JISInfotextsRopidGTFSStopsModel.attributeModel, { schema: this.schema });
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
37
|
+
* Delete all items last updated before a given date and time (where their `updated_at` is less than the given limit)
|
|
38
|
+
*
|
|
39
|
+
* @param dateTime The `updated_at` limit, where all items last updated before this limit shall be deleted
|
|
40
|
+
* @param options Options for the operation
|
|
41
|
+
* @returns The number of deleted items
|
|
38
42
|
*/
|
|
39
43
|
async deleteAllLastUpdatedBefore(dateTime, options) {
|
|
40
44
|
try {
|
|
@@ -46,13 +50,15 @@ let JISInfotextsRopidGTFSStopsRepository = class JISInfotextsRopidGTFSStopsRepos
|
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
52
|
catch (err) {
|
|
49
|
-
throw
|
|
53
|
+
throw new golemio_errors_1.GeneralError("Error in deleteAllLastUpdatedBefore", this.constructor.name, err);
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
57
|
+
* Insert or update all given data. In case of an update, all attributes except for `created_at` shall be overwritten.
|
|
58
|
+
*
|
|
59
|
+
* @param data The data to be upserted
|
|
60
|
+
* @param options Options for the operation
|
|
61
|
+
* @returns The upserted items
|
|
56
62
|
*/
|
|
57
63
|
async upsertAll(data, options) {
|
|
58
64
|
try {
|
|
@@ -62,20 +68,22 @@ let JISInfotextsRopidGTFSStopsRepository = class JISInfotextsRopidGTFSStopsRepos
|
|
|
62
68
|
});
|
|
63
69
|
}
|
|
64
70
|
catch (err) {
|
|
65
|
-
|
|
71
|
+
RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "upsertAll");
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
|
-
// created_at is excluded so that re-upserting an existing row doesn't overwrite
|
|
69
|
-
// when it was first seen — only updated_at should advance on subsequent refreshes.
|
|
70
74
|
getUpdateAttributes() {
|
|
71
|
-
return Object.keys(JISInfotextsRopidGTFSStopsModel_1.JISInfotextsRopidGTFSStopsModel.attributeModel).filter((attribute) =>
|
|
75
|
+
return Object.keys(JISInfotextsRopidGTFSStopsModel_1.JISInfotextsRopidGTFSStopsModel.attributeModel).filter((attribute) => !["created_at"].includes(attribute));
|
|
72
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* @param options
|
|
79
|
+
* @returns The number of deleted items
|
|
80
|
+
*/
|
|
73
81
|
async deleteAll(options) {
|
|
74
82
|
try {
|
|
75
83
|
return await this.sequelizeModel.destroy({ where: {}, transaction: options?.transaction });
|
|
76
84
|
}
|
|
77
85
|
catch (err) {
|
|
78
|
-
throw
|
|
86
|
+
throw new golemio_errors_1.GeneralError("Error in deleteAll", this.constructor.name, err);
|
|
79
87
|
}
|
|
80
88
|
}
|
|
81
89
|
};
|
package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsRopidGTFSStopsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,4HAAkG;AAIlG,8IAA2I;AAC3I,wEAAqE;AACrE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAOtD,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,6DAA6B;IAOnF,
|
|
1
|
+
{"version":3,"file":"JISInfotextsRopidGTFSStopsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,4HAAkG;AAIlG,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAOtD,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,6DAA6B;IAOnF,YACyC,SAA6B,EAC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,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC/E,CAAC;IACL,CAAC;IAEO,mBAAmB;QACvB,OAAO,MAAM,CAAC,IAAI,CAAC,iEAA+B,CAAC,cAAc,CAAC,CAAC,MAAM,CACrE,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CACrD,CAAC;IACN,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,SAAS,CAAC,OAA2B;QAC9C,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;QAC/F,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,IAAI,6BAAY,CAAC,oBAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC7E,CAAC;IACL,CAAC;CACJ,CAAA;AA/EY,oFAAoC;+CAApC,oCAAoC;IADhD,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GATpB,oCAAoC,CA+EhD"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { JISInfotextsPresetsRepository } from "../repositories/JISInfotextsPresetsRepository";
|
|
2
1
|
import { JISInfotextsRepository } from "../repositories/JISInfotextsRepository";
|
|
3
2
|
import { JISInfotextsRopidGTFSStopsRepository } from "../repositories/JISInfotextsRopidGTFSStopsRepository";
|
|
4
|
-
import { IJISInfotext,
|
|
3
|
+
import { IJISInfotext, IJISInfotextsRopidGTFSStops } from "../../../schema-definitions/jis/models/interfaces";
|
|
5
4
|
import { ILogger } from "@golemio/core/dist/helpers";
|
|
6
5
|
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
7
6
|
export declare class JISInfotextsDataService {
|
|
8
7
|
private infotextsRepository;
|
|
9
8
|
private infotextsRopidGTFSStopsRepository;
|
|
10
|
-
private infotextsPresetsRepository;
|
|
11
9
|
private databaseConnector;
|
|
12
10
|
private logger;
|
|
13
|
-
constructor(infotextsRepository: JISInfotextsRepository, infotextsRopidGTFSStopsRepository: JISInfotextsRopidGTFSStopsRepository,
|
|
11
|
+
constructor(infotextsRepository: JISInfotextsRepository, infotextsRopidGTFSStopsRepository: JISInfotextsRopidGTFSStopsRepository, databaseConnector: IDatabaseConnector, logger: ILogger);
|
|
14
12
|
/**
|
|
15
|
-
* Insert or update all given infotexts
|
|
16
|
-
* `created_at` shall be overwritten.
|
|
13
|
+
* Insert or update all given infotexts and infotextsRopidGTFSStops data. In case of an update, all attributes except for
|
|
14
|
+
* `created_at` shall be overwritten. Delete all non-updated data from before the refresh.
|
|
15
|
+
*
|
|
16
|
+
* @param infotexts The infotexts data to be upserted
|
|
17
|
+
* @param infotextsRopidGTFSStops The infotextsRopidGTFSStops data to be upserted
|
|
17
18
|
*/
|
|
18
|
-
refreshData(infotexts: IJISInfotext[], infotextsRopidGTFSStops: IJISInfotextsRopidGTFSStops[]
|
|
19
|
+
refreshData(infotexts: IJISInfotext[], infotextsRopidGTFSStops: IJISInfotextsRopidGTFSStops[]): Promise<void>;
|
|
19
20
|
}
|
|
@@ -14,32 +14,32 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.JISInfotextsDataService = void 0;
|
|
16
16
|
const JISContainerToken_1 = require("../ioc/JISContainerToken");
|
|
17
|
-
const JISInfotextsPresetsRepository_1 = require("../repositories/JISInfotextsPresetsRepository");
|
|
18
17
|
const JISInfotextsRepository_1 = require("../repositories/JISInfotextsRepository");
|
|
19
18
|
const JISInfotextsRopidGTFSStopsRepository_1 = require("../repositories/JISInfotextsRopidGTFSStopsRepository");
|
|
20
19
|
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
21
20
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
22
21
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
23
22
|
let JISInfotextsDataService = class JISInfotextsDataService {
|
|
24
|
-
constructor(infotextsRepository, infotextsRopidGTFSStopsRepository,
|
|
23
|
+
constructor(infotextsRepository, infotextsRopidGTFSStopsRepository, databaseConnector, logger) {
|
|
25
24
|
this.infotextsRepository = infotextsRepository;
|
|
26
25
|
this.infotextsRopidGTFSStopsRepository = infotextsRopidGTFSStopsRepository;
|
|
27
|
-
this.infotextsPresetsRepository = infotextsPresetsRepository;
|
|
28
26
|
this.databaseConnector = databaseConnector;
|
|
29
27
|
this.logger = logger;
|
|
30
28
|
// do nothing
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
|
-
* Insert or update all given infotexts
|
|
34
|
-
* `created_at` shall be overwritten.
|
|
31
|
+
* Insert or update all given infotexts and infotextsRopidGTFSStops data. In case of an update, all attributes except for
|
|
32
|
+
* `created_at` shall be overwritten. Delete all non-updated data from before the refresh.
|
|
33
|
+
*
|
|
34
|
+
* @param infotexts The infotexts data to be upserted
|
|
35
|
+
* @param infotextsRopidGTFSStops The infotextsRopidGTFSStops data to be upserted
|
|
35
36
|
*/
|
|
36
|
-
async refreshData(infotexts, infotextsRopidGTFSStops
|
|
37
|
+
async refreshData(infotexts, infotextsRopidGTFSStops) {
|
|
37
38
|
const connection = this.databaseConnector.getConnection();
|
|
38
39
|
const transaction = await connection.transaction();
|
|
39
40
|
const saveTime = new Date();
|
|
40
41
|
try {
|
|
41
42
|
if (infotexts.length === 0) {
|
|
42
|
-
await this.infotextsPresetsRepository.deleteAll({ transaction });
|
|
43
43
|
await this.infotextsRopidGTFSStopsRepository.deleteAll({ transaction });
|
|
44
44
|
await this.infotextsRepository.deleteAll({ transaction });
|
|
45
45
|
await transaction.commit();
|
|
@@ -49,12 +49,9 @@ let JISInfotextsDataService = class JISInfotextsDataService {
|
|
|
49
49
|
await this.infotextsRepository.refreshData(infotexts, { transaction });
|
|
50
50
|
await this.infotextsRopidGTFSStopsRepository.upsertAll(infotextsRopidGTFSStops, { transaction });
|
|
51
51
|
await this.infotextsRopidGTFSStopsRepository.deleteAllLastUpdatedBefore(saveTime, { transaction });
|
|
52
|
-
await this.infotextsPresetsRepository.upsertAll(infotextsPresets, { transaction });
|
|
53
|
-
await this.infotextsPresetsRepository.deleteAllLastUpdatedBefore(saveTime, { transaction });
|
|
54
52
|
await transaction.commit();
|
|
55
|
-
this.logger.info(`${this.constructor.name}.refreshData: ${infotexts.length} JIS infotexts
|
|
56
|
-
`${infotextsRopidGTFSStops.length} JIS infotextsRopidGTFSStops
|
|
57
|
-
`${infotextsPresets.length} JIS infotextsPresets were saved`);
|
|
53
|
+
this.logger.info(`${this.constructor.name}.refreshData: ${infotexts.length} JIS infotexts and ` +
|
|
54
|
+
`${infotextsRopidGTFSStops.length} JIS infotextsRopidGTFSStops were saved`);
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
57
|
catch (err) {
|
|
@@ -70,11 +67,9 @@ exports.JISInfotextsDataService = JISInfotextsDataService = __decorate([
|
|
|
70
67
|
(0, tsyringe_1.injectable)(),
|
|
71
68
|
__param(0, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRepository)),
|
|
72
69
|
__param(1, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository)),
|
|
73
|
-
__param(2, (0, tsyringe_1.inject)(
|
|
74
|
-
__param(3, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.
|
|
75
|
-
__param(4, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
70
|
+
__param(2, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
71
|
+
__param(3, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
76
72
|
__metadata("design:paramtypes", [JISInfotextsRepository_1.JISInfotextsRepository,
|
|
77
|
-
JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository,
|
|
78
|
-
JISInfotextsPresetsRepository_1.JISInfotextsPresetsRepository, Object, Object])
|
|
73
|
+
JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository, Object, Object])
|
|
79
74
|
], JISInfotextsDataService);
|
|
80
75
|
//# sourceMappingURL=JISInfotextsDataService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsDataService.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/services/JISInfotextsDataService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"JISInfotextsDataService.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/services/JISInfotextsDataService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAkE;AAClE,mFAAqF;AACrF,+GAAiH;AAIjH,wEAAqE;AACrE,6EAAwE;AACxE,iEAAwE;AAGjE,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YAEY,mBAA2C,EAE3C,iCAAuE,EAClC,iBAAqC,EAChD,MAAe;QAJzC,wBAAmB,GAAnB,mBAAmB,CAAwB;QAE3C,sCAAiC,GAAjC,iCAAiC,CAAsC;QAClC,sBAAiB,GAAjB,iBAAiB,CAAoB;QAChD,WAAM,GAAN,MAAM,CAAS;QAEjD,aAAa;IACjB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,WAAW,CAAC,SAAyB,EAAE,uBAAsD;QACtG,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;QAC1D,MAAM,WAAW,GAAG,MAAM,UAAU,C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;QACtG,CAAC;IACL,CAAC;CACJ,CAAA;AAhDY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,sBAAsB,CAAC,CAAA;IAEhD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,oCAAoC,CAAC,CAAA;IAE9D,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;qCAJI,+CAAsB;QAER,2EAAoC;GAL1E,uBAAuB,CAgDnC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { IJISInfotext as IJISInfotextDataSource } from "../../../schema-definitions/jis/datasources/interfaces";
|
|
2
|
-
import { IJISInfotext as IJISInfotextModel,
|
|
2
|
+
import { IJISInfotext as IJISInfotextModel, IJISInfotextsRopidGTFSStops as IJISInfotextsRopidGTFSStopsModel } from "../../../schema-definitions/jis/models/interfaces";
|
|
3
3
|
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
|
|
4
4
|
type TransformIn = IJISInfotextDataSource;
|
|
5
5
|
type TransformOut = {
|
|
6
6
|
infotext: IJISInfotextModel;
|
|
7
7
|
infotextsRopidGTFSStops: IJISInfotextsRopidGTFSStopsModel[];
|
|
8
|
-
infotextsPresets: IJISInfotextsPresetsModel[];
|
|
9
8
|
};
|
|
10
9
|
export declare class JISInfotextsTransformation extends AbstractTransformation<TransformIn, TransformOut> {
|
|
11
10
|
name: string;
|
|
@@ -31,14 +31,9 @@ let JISInfotextsTransformation = class JISInfotextsTransformation extends Abstra
|
|
|
31
31
|
infotext_id: data.id,
|
|
32
32
|
stop_id: id,
|
|
33
33
|
})) ?? [];
|
|
34
|
-
const infotextsPresets = data.informed_entity?.presets?.map(({ route_name }) => ({
|
|
35
|
-
infotext_id: data.id,
|
|
36
|
-
route_name,
|
|
37
|
-
})) ?? [];
|
|
38
34
|
return {
|
|
39
35
|
infotext,
|
|
40
36
|
infotextsRopidGTFSStops,
|
|
41
|
-
infotextsPresets,
|
|
42
37
|
};
|
|
43
38
|
};
|
|
44
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISInfotextsTransformation.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"JISInfotextsTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISInfotextsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAKA,6GAA0G;AAC1G,iEAAgE;AASzD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,+CAAiD;IAA1F;;QACI,SAAI,GAAG,4BAA4B,CAAC;QAEjC,sBAAiB,GAAG,CAAC,IAAiB,EAAgB,EAAE;YAC9D,MAAM,QAAQ,GAAG;gBACb,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,mBAAmB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;gBACvD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI;gBACnF,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,IAAI,KAAK;gBAC7C,iBAAiB,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,IAAI,IAAI;gBAClD,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,IAAI;gBAC9C,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;gBACnD,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC;aAC5D,CAAC;YACF,MAAM,uBAAuB,GACzB,IAAI,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC1C,WAAW,EAAE,IAAI,CAAC,EAAE;gBACpB,OAAO,EAAE,EAAE;aACd,CAAC,CAAC,IAAI,EAAE,CAAC;YACd,OAAO;gBACH,QAAQ;gBACR,uBAAuB;aAC1B,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;AA3BY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,qBAAU,GAAE;GACA,0BAA0B,CA2BtC"}
|
|
@@ -33,27 +33,23 @@ let RefreshJISInfotextsTask = class RefreshJISInfotextsTask extends AbstractTask
|
|
|
33
33
|
}
|
|
34
34
|
async execute(data) {
|
|
35
35
|
const transformedData = this.infotextsTransformation.transformArray(data);
|
|
36
|
-
const { infotexts, infotextsRopidGTFSStops
|
|
37
|
-
await this.infotextsDataService.refreshData(infotexts, infotextsRopidGTFSStops
|
|
36
|
+
const { infotexts, infotextsRopidGTFSStops } = this.getEntitiesFromTransformationResult(transformedData);
|
|
37
|
+
await this.infotextsDataService.refreshData(infotexts, infotextsRopidGTFSStops);
|
|
38
38
|
await integration_engine_1.QueueManager.sendMessageToExchange(this.queuePrefix, "refreshJISInfotextsCache", {});
|
|
39
39
|
}
|
|
40
40
|
getEntitiesFromTransformationResult(transformedData) {
|
|
41
41
|
const infotextEntities = [];
|
|
42
42
|
const infotextsRopidGTFSStopsEntities = [];
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
const { infotext, infotextsRopidGTFSStops, infotextsPresets } = data;
|
|
46
|
-
if (infotextsRopidGTFSStops.length === 0 && infotextsPresets.length === 0) {
|
|
43
|
+
for (const { infotext, infotextsRopidGTFSStops } of transformedData) {
|
|
44
|
+
if (infotextsRopidGTFSStops.length === 0) {
|
|
47
45
|
continue;
|
|
48
46
|
}
|
|
49
47
|
infotextEntities.push(infotext);
|
|
50
48
|
infotextsRopidGTFSStopsEntities.push(...infotextsRopidGTFSStops);
|
|
51
|
-
infotextsPresetsEntities.push(...infotextsPresets);
|
|
52
49
|
}
|
|
53
50
|
return {
|
|
54
51
|
infotexts: infotextEntities,
|
|
55
52
|
infotextsRopidGTFSStops: infotextsRopidGTFSStopsEntities,
|
|
56
|
-
infotextsPresets: infotextsPresetsEntities,
|
|
57
53
|
};
|
|
58
54
|
}
|
|
59
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshJISInfotextsTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAkE;AAClE,oFAAmF;AACnF,iGAAgG;AAEhG,kHAAqF;AAErF,8EAAqE;AACrE,iHAA8G;AAC9G,mFAAkF;AAClF,iEAAwE;AACxE,4CAA+C;AAGxC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+CAAsC;IAK/E,YAEI,oBAAqD,EAErD,uBAA2D;QAE3D,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAJ7B,yBAAoB,GAApB,oBAAoB,CAAyB;QAE7C,4BAAuB,GAAvB,uBAAuB,CAA4B;QAR/C,WAAM,GAAG,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,+CAAsB,CAAC,CAAC;QACvF,cAAS,GAAG,qBAAqB,CAAC;QAClC,aAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;IASjD,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,IAAoB;QACxC,MAAM,eAAe,GAAG,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"RefreshJISInfotextsTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAkE;AAClE,oFAAmF;AACnF,iGAAgG;AAEhG,kHAAqF;AAErF,8EAAqE;AACrE,iHAA8G;AAC9G,mFAAkF;AAClF,iEAAwE;AACxE,4CAA+C;AAGxC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+CAAsC;IAK/E,YAEI,oBAAqD,EAErD,uBAA2D;QAE3D,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAJ7B,yBAAoB,GAApB,oBAAoB,CAAyB;QAE7C,4BAAuB,GAAvB,uBAAuB,CAA4B;QAR/C,WAAM,GAAG,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,+CAAsB,CAAC,CAAC;QACvF,cAAS,GAAG,qBAAqB,CAAC;QAClC,aAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;IASjD,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,IAAoB;QACxC,MAAM,eAAe,GAAG,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAC,mCAAmC,CAAC,eAAe,CAAC,CAAC;QACzG,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;QAChF,MAAM,iCAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,0BAA0B,EAAE,EAAE,CAAC,CAAC;IAC/F,CAAC;IAEO,mCAAmC,CAAC,eAAyE;QACjH,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QACjD,MAAM,+BAA+B,GAAkC,EAAE,CAAC;QAC1E,KAAK,MAAM,EAAE,QAAQ,EAAE,uBAAuB,EAAE,IAAI,eAAe,EAAE,CAAC;YAClE,IAAI,uBAAuB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvC,SAAS;YACb,CAAC;YACD,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,+BAA+B,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,CAAC;QACrE,CAAC;QACD,OAAO;YACH,SAAS,EAAE,gBAAgB;YAC3B,uBAAuB,EAAE,+BAA+B;SAC3D,CAAC;IACN,CAAC;CACJ,CAAA;AApCY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,qBAAU,GAAE;IAOJ,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,uBAAuB,CAAC,CAAA;IAEjD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,0BAA0B,CAAC,CAAA;qCADvB,iDAAuB;QAEpB,uDAA0B;GATtD,uBAAuB,CAoCnC"}
|
|
@@ -65,18 +65,6 @@ exports.jisInfotextsJsonSchema = {
|
|
|
65
65
|
required: ["id"],
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
|
-
presets: {
|
|
69
|
-
type: "array",
|
|
70
|
-
nullable: true,
|
|
71
|
-
items: {
|
|
72
|
-
type: "object",
|
|
73
|
-
properties: {
|
|
74
|
-
route_name: { type: "string" },
|
|
75
|
-
},
|
|
76
|
-
additionalProperties: false,
|
|
77
|
-
required: ["route_name"],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
68
|
},
|
|
81
69
|
additionalProperties: false,
|
|
82
70
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/datasources/JISInfotextsJsonSchema.ts"],"names":[],"mappings":";;;AAAA,oGAAqF;AAIxE,QAAA,sBAAsB,GAAmC;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU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E,CAAC,EAAE;yBAC9E;wBACD,QAAQ,EAAE,CAAC,SAAS,CAAC;wBACrB,oBAAoB,EAAE,KAAK;qBAC9B;iBACJ;aACJ;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE;oBACR,KAAK,EAAE;wBACH,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,IAAI;wBACd,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BACzB;4BACD,oBAAoB,EAAE,KAAK;4BAC3B,QAAQ,EAAE,CAAC,IAAI,CAAC;yBACnB;qBACJ;iBACJ;gBACD,oBAAoB,EAAE,KAAK;aAC9B;YACD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;YAC1D,uBAAuB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;SACnE;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,gBAAgB;YAChB,cAAc;YACd,eAAe;YACf,kBAAkB;YAClB,mBAAmB;YACnB,yBAAyB;SAC5B;KACJ;CACJ,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JISInfotextSeverityLevel } from "../../../../helpers/jis/JISInfotextSeverityLevelEnum";
|
|
2
2
|
import { IJISInfotextStop } from "./IJISInfotextStop";
|
|
3
|
-
import { IJISInfotextPreset } from "./IJISInfotextPreset";
|
|
4
3
|
import { IJISTranslationText } from "./IJISTranslationText";
|
|
5
4
|
export interface IJISInfotext {
|
|
6
5
|
id: string;
|
|
@@ -18,7 +17,6 @@ export interface IJISInfotext {
|
|
|
18
17
|
} | null;
|
|
19
18
|
informed_entity?: {
|
|
20
19
|
stops?: IJISInfotextStop[] | null;
|
|
21
|
-
presets?: IJISInfotextPreset[] | null;
|
|
22
20
|
} | null;
|
|
23
21
|
created_timestamp: string;
|
|
24
22
|
last_modified_timestamp: string;
|
|
@@ -18,6 +18,5 @@ __exportStar(require("./IJISEvent"), exports);
|
|
|
18
18
|
__exportStar(require("./IJISEventRoute"), exports);
|
|
19
19
|
__exportStar(require("./IJISInfotext"), exports);
|
|
20
20
|
__exportStar(require("./IJISInfotextStop"), exports);
|
|
21
|
-
__exportStar(require("./IJISInfotextPreset"), exports);
|
|
22
21
|
__exportStar(require("./IJISTranslationText"), exports);
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/datasources/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,qDAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/datasources/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,qDAAmC;AACnC,wDAAsC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JISInfotextSeverityLevel } from "../../../helpers/jis/JISInfotextSeverityLevelEnum";
|
|
2
|
-
import { JISInfotextsPresetsModel } from "./JISInfotextsPresetsModel";
|
|
3
2
|
import { StopDto } from "../../ropid-gtfs/models/StopDto";
|
|
4
3
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
5
4
|
import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
@@ -20,7 +19,6 @@ export declare class JISInfotextsModel extends Model<InferAttributes<JISInfotext
|
|
|
20
19
|
created_at: CreationOptional<Date>;
|
|
21
20
|
updated_at: CreationOptional<Date>;
|
|
22
21
|
stops?: StopDto[];
|
|
23
|
-
presets?: JISInfotextsPresetsModel[];
|
|
24
22
|
static attributeModel: ModelAttributes<JISInfotextsModel>;
|
|
25
23
|
static jsonSchema: JSONSchemaType<IJISInfotext[]>;
|
|
26
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISInfotextsModel.ts"],"names":[],"mappings":";;;AAAA,oGAAqF;
|
|
1
|
+
{"version":3,"file":"JISInfotextsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISInfotextsModel.ts"],"names":[],"mappings":";;;AAAA,oGAAqF;AAGrF,mEAO6C;AAG7C,MAAa,iBACT,SAAQ,iBAAqF;;AADjG,8CA+HC;AA3HiB,2BAAS,GAAG,eAAe,CAAC;AAmB5B,gCAAc,GAAuC;IAC/D,EAAE,EAAE;QACA,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,uDAAwB,CAAC,CAAC;QAChE,SAAS,EAAE,KAAK;KACnB;IACD,YAAY,EAAE;QACV,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,SAAS,EAAE,KAAK;KACnB;IACD,mBAAmB,EAAE;QACjB,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,iBAAiB,EAAE;QACf,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,gBAAgB,EAAE;QACd,IAAI,EAAE,qBAAS,CAAC,KAAK;QACrB,SAAS,EAAE,KAAK;KACnB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,YAAY,EAAE,KAAK;KACtB;IACD,iBAAiB,EAAE;QACf,IAAI,EAAE,qBAAS,CAAC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AAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;YAChE,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;SACnE;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE;YACN,IAAI;YACJ,gBAAgB;YAChB,cAAc;YACd,qBAAqB;YACrB,kBAAkB;YAClB,mBAAmB;YACnB,mBAAmB;SACtB;KACJ;IACD,WAAW,EAAE;QACT,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACtB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;aACxE;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,CAAC,IAAI,CAAC;SACnB;KACJ;CACJ,CAAC"}
|
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./IJISEvent"), exports);
|
|
18
18
|
__exportStar(require("./IJISEventsRopidGTFSRoutes"), exports);
|
|
19
19
|
__exportStar(require("./IJISInfotext"), exports);
|
|
20
|
-
__exportStar(require("./IJISInfotextsPresets"), exports);
|
|
21
20
|
__exportStar(require("./IJISInfotextsRopidGTFSStops"), exports);
|
|
22
21
|
__exportStar(require("./IJISTranslationText"), exports);
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8DAA4C;AAC5C,iDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8DAA4C;AAC5C,iDAA+B;AAC/B,gEAA8C;AAC9C,wDAAsC"}
|
package/docs/asyncapi.yaml
CHANGED
|
@@ -1959,31 +1959,19 @@ components:
|
|
|
1959
1959
|
description: Localized descriptions of the infotext
|
|
1960
1960
|
informed_entity:
|
|
1961
1961
|
type: object
|
|
1962
|
-
nullable: true
|
|
1963
1962
|
properties:
|
|
1964
1963
|
stops:
|
|
1965
1964
|
type: array
|
|
1966
|
-
nullable: true
|
|
1967
1965
|
items:
|
|
1968
1966
|
type: object
|
|
1969
1967
|
properties:
|
|
1970
|
-
|
|
1968
|
+
stop_id:
|
|
1971
1969
|
type: string
|
|
1972
1970
|
description: Unique identifier for the stop
|
|
1973
1971
|
required:
|
|
1974
|
-
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
nullable: true
|
|
1978
|
-
description: Departure presets connected to this infotext (optional, migration period)
|
|
1979
|
-
items:
|
|
1980
|
-
type: object
|
|
1981
|
-
properties:
|
|
1982
|
-
route_name:
|
|
1983
|
-
type: string
|
|
1984
|
-
description: Route name of the departure preset (ropid_departures_presets.route_name)
|
|
1985
|
-
required:
|
|
1986
|
-
- route_name
|
|
1972
|
+
- stop_id
|
|
1973
|
+
required:
|
|
1974
|
+
- stops
|
|
1987
1975
|
created_timestamp:
|
|
1988
1976
|
type: string
|
|
1989
1977
|
format: date-time
|
|
@@ -1998,5 +1986,6 @@ components:
|
|
|
1998
1986
|
- display_type
|
|
1999
1987
|
- active_period
|
|
2000
1988
|
- description_text
|
|
1989
|
+
- informed_entity
|
|
2001
1990
|
- created_timestamp
|
|
2002
1991
|
- last_modified_timestamp
|
package/docs/openapi-input.yaml
CHANGED
|
@@ -786,11 +786,9 @@ components:
|
|
|
786
786
|
description: Localized descriptions of the infotext
|
|
787
787
|
informed_entity:
|
|
788
788
|
type: object
|
|
789
|
-
nullable: true
|
|
790
789
|
properties:
|
|
791
790
|
stops:
|
|
792
791
|
type: array
|
|
793
|
-
nullable: true
|
|
794
792
|
items:
|
|
795
793
|
type: object
|
|
796
794
|
properties:
|
|
@@ -799,18 +797,8 @@ components:
|
|
|
799
797
|
description: Unique identifier for the stop
|
|
800
798
|
required:
|
|
801
799
|
- id
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
nullable: true
|
|
805
|
-
description: Departure presets connected to this infotext (optional, migration period)
|
|
806
|
-
items:
|
|
807
|
-
type: object
|
|
808
|
-
properties:
|
|
809
|
-
route_name:
|
|
810
|
-
type: string
|
|
811
|
-
description: Route name of the departure preset (ropid_departures_presets.route_name)
|
|
812
|
-
required:
|
|
813
|
-
- route_name
|
|
800
|
+
required:
|
|
801
|
+
- stops
|
|
814
802
|
created_timestamp:
|
|
815
803
|
type: string
|
|
816
804
|
format: date-time
|
|
@@ -825,6 +813,7 @@ components:
|
|
|
825
813
|
- display_type
|
|
826
814
|
- active_period
|
|
827
815
|
- description_text
|
|
816
|
+
- informed_entity
|
|
828
817
|
- created_timestamp
|
|
829
818
|
- last_modified_timestamp
|
|
830
819
|
examples:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/pid",
|
|
3
|
-
"version": "5.9.2
|
|
3
|
+
"version": "5.9.2",
|
|
4
4
|
"description": "Golemio PID Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"url": "https://gitlab.com/operator-ict/golemio/code/modules/pid"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=20.0.0",
|
|
37
37
|
"npm": ">=8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@apideck/portman": "1.
|
|
40
|
+
"@apideck/portman": "^1.26.5",
|
|
41
41
|
"@commitlint/cli": "^11.0.0",
|
|
42
42
|
"@commitlint/config-conventional": "^11.0.0",
|
|
43
43
|
"@golemio/cli": "1.11.2",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/chai": "4.2.3",
|
|
49
49
|
"@types/chai-as-promised": "7.1.2",
|
|
50
50
|
"@types/mocha": "^10.0.10",
|
|
51
|
-
"@types/node": "^
|
|
51
|
+
"@types/node": "^20.12.7",
|
|
52
52
|
"@types/pg-copy-streams": "^1.2.5",
|
|
53
53
|
"@types/sinon": "^9.0.10",
|
|
54
54
|
"@types/supertest": "^2.0.10",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dotenv": "^8.2.0",
|
|
62
62
|
"eslint": "^8.1.1",
|
|
63
63
|
"husky": "^4.3.7",
|
|
64
|
-
"mocha": "^
|
|
64
|
+
"mocha": "^10.0.0",
|
|
65
65
|
"npm-run-all": "^4.1.5",
|
|
66
66
|
"nyc": "^17.1.0",
|
|
67
67
|
"prettier": "^2.5.1",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"ts-node": "^10.9.2",
|
|
74
74
|
"ts-patch": "^3.3.0",
|
|
75
75
|
"tsconfig-paths": "^4.2.0",
|
|
76
|
-
"typedoc": "0.28.
|
|
76
|
+
"typedoc": "^0.28.14",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
78
|
"typescript-transform-paths": "^3.5.5"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@golemio/core": "^3.0.
|
|
81
|
+
"@golemio/core": "^3.0.1-dev.2 || ^3.0.0 || ^2.0.1"
|
|
82
82
|
},
|
|
83
83
|
"overrides": {
|
|
84
84
|
"@google-cloud/storage": {
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dbm;
|
|
4
|
-
var type;
|
|
5
|
-
var seed;
|
|
6
|
-
var fs = require('fs');
|
|
7
|
-
var path = require('path');
|
|
8
|
-
var Promise;
|
|
9
|
-
|
|
10
|
-
exports.setup = function(options, seedLink) {
|
|
11
|
-
dbm = options.dbmigrate;
|
|
12
|
-
type = dbm.dataType;
|
|
13
|
-
seed = seedLink;
|
|
14
|
-
Promise = options.Promise;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.up = function(db) {
|
|
18
|
-
var filePath = path.join(__dirname, 'sqls', '20260428091015-jis-infotexts-presets-up.sql');
|
|
19
|
-
return new Promise( function( resolve, reject ) {
|
|
20
|
-
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
21
|
-
if (err) return reject(err);
|
|
22
|
-
console.log('received data: ' + data);
|
|
23
|
-
|
|
24
|
-
resolve(data);
|
|
25
|
-
});
|
|
26
|
-
})
|
|
27
|
-
.then(function(data) {
|
|
28
|
-
return db.runSql(data);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
exports.down = function(db) {
|
|
33
|
-
var filePath = path.join(__dirname, 'sqls', '20260428091015-jis-infotexts-presets-down.sql');
|
|
34
|
-
return new Promise( function( resolve, reject ) {
|
|
35
|
-
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
36
|
-
if (err) return reject(err);
|
|
37
|
-
console.log('received data: ' + data);
|
|
38
|
-
|
|
39
|
-
resolve(data);
|
|
40
|
-
});
|
|
41
|
-
})
|
|
42
|
-
.then(function(data) {
|
|
43
|
-
return db.runSql(data);
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
exports._meta = {
|
|
48
|
-
"version": 1
|
|
49
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
create table jis_infotexts_presets (
|
|
2
|
-
infotext_id uuid not null,
|
|
3
|
-
route_name varchar(100) not null,
|
|
4
|
-
created_at timestamptz not null,
|
|
5
|
-
updated_at timestamptz not null,
|
|
6
|
-
constraint jis_infotexts_presets_pk primary key (infotext_id, route_name)
|
|
7
|
-
);
|
|
8
|
-
create index jis_infotexts_presets_route_name_idx on jis_infotexts_presets (route_name);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { JISInfotextsPresetsModel } from "../../../schema-definitions/jis/models/JISInfotextsPresetsModel";
|
|
2
|
-
import { IJISInfotextsPresets } from "../../../schema-definitions/jis/models/interfaces";
|
|
3
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
4
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
5
|
-
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
|
|
6
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
7
|
-
import { ModelStatic, Transaction } from "@golemio/core/dist/shared/sequelize";
|
|
8
|
-
type RepositoryOptions = {
|
|
9
|
-
transaction?: Transaction;
|
|
10
|
-
};
|
|
11
|
-
export declare class JISInfotextsPresetsRepository extends AbstractValidatableRepository {
|
|
12
|
-
validator: JSONSchemaValidator;
|
|
13
|
-
schema: string;
|
|
14
|
-
tableName: string;
|
|
15
|
-
private sequelizeModel;
|
|
16
|
-
constructor(connector: IDatabaseConnector, logger: ILogger);
|
|
17
|
-
/**
|
|
18
|
-
* Inserts new rows or updates existing ones. On conflict, all columns except `created_at` are overwritten —
|
|
19
|
-
* `created_at` is intentionally preserved to track when a row was first seen, while `updated_at` advances
|
|
20
|
-
* each cycle so stale-record cleanup can identify entries missing from the latest feed.
|
|
21
|
-
*/
|
|
22
|
-
upsertAll(data: IJISInfotextsPresets[], options?: RepositoryOptions): ReturnType<ModelStatic<JISInfotextsPresetsModel>["bulkCreate"]>;
|
|
23
|
-
/**
|
|
24
|
-
* Removes rows that were not touched during the current refresh cycle — any row whose `updated_at`
|
|
25
|
-
* predates `dateTime` was absent from the latest feed and is considered stale.
|
|
26
|
-
* Call this after `upsertAll` with the timestamp captured at the start of the save to clean up vanished entries.
|
|
27
|
-
*/
|
|
28
|
-
deleteAllLastUpdatedBefore(dateTime: Date, options?: RepositoryOptions): Promise<number>;
|
|
29
|
-
deleteAll(options?: RepositoryOptions): Promise<number>;
|
|
30
|
-
private getUpdateAttributes;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.JISInfotextsPresetsRepository = void 0;
|
|
16
|
-
const const_1 = require("../../../schema-definitions/const");
|
|
17
|
-
const JISInfotextsPresetsModel_1 = require("../../../schema-definitions/jis/models/JISInfotextsPresetsModel");
|
|
18
|
-
const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
|
|
19
|
-
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
20
|
-
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
21
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
22
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
23
|
-
const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
24
|
-
let JISInfotextsPresetsRepository = class JISInfotextsPresetsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
25
|
-
constructor(connector, logger) {
|
|
26
|
-
super(connector, logger);
|
|
27
|
-
this.schema = const_1.PG_SCHEMA;
|
|
28
|
-
this.tableName = JISInfotextsPresetsModel_1.JISInfotextsPresetsModel.tableName;
|
|
29
|
-
this.validator = new golemio_validator_1.JSONSchemaValidator("JISInfotextsPresetsRepository", JISInfotextsPresetsModel_1.JISInfotextsPresetsModel.jsonSchema);
|
|
30
|
-
this.sequelizeModel = connector
|
|
31
|
-
.getConnection()
|
|
32
|
-
.define(this.tableName, JISInfotextsPresetsModel_1.JISInfotextsPresetsModel.attributeModel, { schema: this.schema });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Inserts new rows or updates existing ones. On conflict, all columns except `created_at` are overwritten —
|
|
36
|
-
* `created_at` is intentionally preserved to track when a row was first seen, while `updated_at` advances
|
|
37
|
-
* each cycle so stale-record cleanup can identify entries missing from the latest feed.
|
|
38
|
-
*/
|
|
39
|
-
async upsertAll(data, options) {
|
|
40
|
-
try {
|
|
41
|
-
return await this.sequelizeModel.bulkCreate(data, {
|
|
42
|
-
updateOnDuplicate: this.getUpdateAttributes(),
|
|
43
|
-
transaction: options?.transaction,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
catch (err) {
|
|
47
|
-
throw RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "upsertAll");
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Removes rows that were not touched during the current refresh cycle — any row whose `updated_at`
|
|
52
|
-
* predates `dateTime` was absent from the latest feed and is considered stale.
|
|
53
|
-
* Call this after `upsertAll` with the timestamp captured at the start of the save to clean up vanished entries.
|
|
54
|
-
*/
|
|
55
|
-
async deleteAllLastUpdatedBefore(dateTime, options) {
|
|
56
|
-
try {
|
|
57
|
-
return await this.sequelizeModel.destroy({
|
|
58
|
-
where: {
|
|
59
|
-
updated_at: { [sequelize_1.Op.lt]: dateTime },
|
|
60
|
-
},
|
|
61
|
-
transaction: options?.transaction,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
throw RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "deleteAllLastUpdatedBefore");
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
async deleteAll(options) {
|
|
69
|
-
try {
|
|
70
|
-
return await this.sequelizeModel.destroy({ where: {}, transaction: options?.transaction });
|
|
71
|
-
}
|
|
72
|
-
catch (err) {
|
|
73
|
-
throw RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "deleteAll");
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
// created_at is excluded so that re-upserting an existing row doesn't overwrite
|
|
77
|
-
// when it was first seen — only updated_at should advance on subsequent refreshes.
|
|
78
|
-
getUpdateAttributes() {
|
|
79
|
-
return Object.keys(JISInfotextsPresetsModel_1.JISInfotextsPresetsModel.attributeModel).filter((attribute) => attribute !== "created_at");
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
exports.JISInfotextsPresetsRepository = JISInfotextsPresetsRepository;
|
|
83
|
-
exports.JISInfotextsPresetsRepository = JISInfotextsPresetsRepository = __decorate([
|
|
84
|
-
(0, tsyringe_1.injectable)(),
|
|
85
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
86
|
-
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
87
|
-
__metadata("design:paramtypes", [Object, Object])
|
|
88
|
-
], JISInfotextsPresetsRepository);
|
|
89
|
-
//# sourceMappingURL=JISInfotextsPresetsRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsPresetsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsPresetsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,8GAAoF;AAIpF,8IAA2I;AAC3I,wEAAqE;AACrE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAOtD,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,6DAA6B;IAO5E,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,mDAAwB,CAAC,SAAS,CAAC;QAMlD,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,+BAA+B,EAAE,mDAAwB,CAAC,UAAU,CAAC,CAAC;QAC/G,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,mDAAwB,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,SAAS,CAClB,IAA4B,EAC5B,OAA2B;QAE3B,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBAC9C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E,CAAC,SAAS,KAAK,YAAY,CAAC,CAAC;IAClH,CAAC;CACJ,CAAA;AAjEY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,6BAA6B,CAiEzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IJISInfotextPreset.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/datasources/interfaces/IJISInfotextPreset.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
-
import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { IJISInfotextsPresets } from "./interfaces";
|
|
4
|
-
export declare class JISInfotextsPresetsModel extends Model<InferAttributes<JISInfotextsPresetsModel>, InferCreationAttributes<JISInfotextsPresetsModel>> implements IJISInfotextsPresets {
|
|
5
|
-
static tableName: string;
|
|
6
|
-
infotext_id: string;
|
|
7
|
-
route_name: string;
|
|
8
|
-
created_at: CreationOptional<Date>;
|
|
9
|
-
updated_at: CreationOptional<Date>;
|
|
10
|
-
static attributeModel: ModelAttributes<JISInfotextsPresetsModel>;
|
|
11
|
-
static jsonSchema: JSONSchemaType<IJISInfotextsPresets[]>;
|
|
12
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JISInfotextsPresetsModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class JISInfotextsPresetsModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.JISInfotextsPresetsModel = JISInfotextsPresetsModel;
|
|
8
|
-
JISInfotextsPresetsModel.tableName = "jis_infotexts_presets";
|
|
9
|
-
JISInfotextsPresetsModel.attributeModel = {
|
|
10
|
-
infotext_id: {
|
|
11
|
-
primaryKey: true,
|
|
12
|
-
type: sequelize_1.DataTypes.UUID,
|
|
13
|
-
allowNull: false,
|
|
14
|
-
},
|
|
15
|
-
route_name: {
|
|
16
|
-
primaryKey: true,
|
|
17
|
-
type: sequelize_1.DataTypes.STRING(100),
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
created_at: {
|
|
21
|
-
type: sequelize_1.DataTypes.DATE,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
},
|
|
24
|
-
updated_at: {
|
|
25
|
-
type: sequelize_1.DataTypes.DATE,
|
|
26
|
-
allowNull: false,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
JISInfotextsPresetsModel.jsonSchema = {
|
|
30
|
-
type: "array",
|
|
31
|
-
items: {
|
|
32
|
-
type: "object",
|
|
33
|
-
properties: {
|
|
34
|
-
infotext_id: { type: "string" },
|
|
35
|
-
route_name: { type: "string" },
|
|
36
|
-
},
|
|
37
|
-
additionalProperties: false,
|
|
38
|
-
required: ["infotext_id", "route_name"],
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=JISInfotextsPresetsModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsPresetsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISInfotextsPresetsModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAG7C,MAAa,wBACT,SAAQ,iBAAmG;;AAD/G,4DA4CC;AAxCiB,kCAAS,GAAG,uBAAuB,CAAC;AAOpC,uCAAc,GAA8C;IACtE,WAAW,EAAE;QACT,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACR,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,SAAS,EAAE,KAAK;KACnB;CACJ,CAAC;AAEY,mCAAU,GAA2C;IAC/D,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KAC1C;CACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IJISInfotextsPresets.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/models/interfaces/IJISInfotextsPresets.ts"],"names":[],"mappings":""}
|