@golemio/pid 3.0.1-dev.1539989765 → 3.0.1-dev.1544923161
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/datasources/JISInfotextsDataSourceFactory.d.ts +1 -1
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js +5 -8
- package/dist/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.js.map +1 -1
- 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/workers/tasks/RefreshJISInfotextsTask.d.ts +1 -7
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js +5 -38
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
- package/docs/asyncapi.yaml +0 -17
- package/docs/implementation_documentation.md +1 -7
- package/docs/openapi-output.yaml +15 -4
- package/package.json +3 -3
- package/dist/integration-engine/jis/repositories/JISMetadataRepository.d.ts +0 -15
- package/dist/integration-engine/jis/repositories/JISMetadataRepository.js +0 -91
- package/dist/integration-engine/jis/repositories/JISMetadataRepository.js.map +0 -1
- package/dist/schema-definitions/jis/redis/const.d.ts +0 -1
- package/dist/schema-definitions/jis/redis/const.js +0 -5
- package/dist/schema-definitions/jis/redis/const.js.map +0 -1
- package/dist/schema-definitions/jis/redis/interfaces/IJISMetadataDto.d.ts +0 -10
- package/dist/schema-definitions/jis/redis/interfaces/IJISMetadataDto.js +0 -3
- package/dist/schema-definitions/jis/redis/interfaces/IJISMetadataDto.js.map +0 -1
- package/dist/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.d.ts +0 -4
- package/dist/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.js +0 -27
- package/dist/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.js.map +0 -1
|
@@ -5,6 +5,6 @@ export declare class JISInfotextsDataSourceFactory {
|
|
|
5
5
|
private config;
|
|
6
6
|
constructor(config: ISimpleConfig);
|
|
7
7
|
private static DATASOURCE_NAME;
|
|
8
|
-
getDataSource(
|
|
8
|
+
getDataSource(): IDataSource<IJISInfotext[]>;
|
|
9
9
|
private getProtocolStrategy;
|
|
10
10
|
}
|
|
@@ -24,21 +24,18 @@ let JISInfotextsDataSourceFactory = exports.JISInfotextsDataSourceFactory = JISI
|
|
|
24
24
|
constructor(config) {
|
|
25
25
|
this.config = config;
|
|
26
26
|
}
|
|
27
|
-
getDataSource(
|
|
28
|
-
return new integration_engine_1.DataSource(JISInfotextsDataSourceFactory_1.DATASOURCE_NAME, this.getProtocolStrategy(
|
|
27
|
+
getDataSource() {
|
|
28
|
+
return new integration_engine_1.DataSource(JISInfotextsDataSourceFactory_1.DATASOURCE_NAME, this.getProtocolStrategy(), new integration_engine_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.JSONSchemaValidator(JISInfotextsDataSourceFactory_1.DATASOURCE_NAME + "Validator", JISInfotextsJsonSchema_1.jisInfotextsJsonSchema));
|
|
29
29
|
}
|
|
30
|
-
getProtocolStrategy(
|
|
30
|
+
getProtocolStrategy() {
|
|
31
31
|
const baseUrl = this.config.getValue("module.pid.jis.baseUrl");
|
|
32
|
-
|
|
32
|
+
const headers = this.config.getValue("module.pid.jis.infotexts.headers");
|
|
33
33
|
const urlPath = this.config.getValue("module.pid.jis.infotexts.path");
|
|
34
34
|
const url = new URL(urlPath, baseUrl).toString();
|
|
35
|
-
if (typeof etag === "string") {
|
|
36
|
-
headers = Object.assign(Object.assign({}, headers), { "If-None-Match": etag, "Cache-Control": "no-store" });
|
|
37
|
-
}
|
|
38
35
|
return new HTTPFetchProtocolStrategy_1.HTTPFetchProtocolStrategy({
|
|
39
36
|
method: "GET",
|
|
40
37
|
url,
|
|
41
|
-
headers,
|
|
38
|
+
headers: headers,
|
|
42
39
|
timeoutInSeconds: 20,
|
|
43
40
|
});
|
|
44
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsDataSourceFactory.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,+GAAqF;AAErF,wEAAqE;AACrE,8EAAwH;AACxH,6IAA0I;AAC1I,mFAAkF;AAClF,iEAAwE;AAGjE,IAAM,6BAA6B,6EAAnC,MAAM,6BAA6B;IACtC,YAAoD,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAItE,aAAa
|
|
1
|
+
{"version":3,"file":"JISInfotextsDataSourceFactory.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/datasources/JISInfotextsDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,+GAAqF;AAErF,wEAAqE;AACrE,8EAAwH;AACxH,6IAA0I;AAC1I,mFAAkF;AAClF,iEAAwE;AAGjE,IAAM,6BAA6B,6EAAnC,MAAM,6BAA6B;IACtC,YAAoD,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAItE,aAAa;QAChB,OAAO,IAAI,+BAAU,CACjB,+BAA6B,CAAC,eAAe,EAC7C,IAAI,CAAC,mBAAmB,EAAE,EAC1B,IAAI,yCAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAI,uCAAmB,CAAC,+BAA6B,CAAC,eAAe,GAAG,WAAW,EAAE,+CAAsB,CAAC,CAC/G,CAAC;IACN,CAAC;IAEO,mBAAmB;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,wBAAwB,CAAC,CAAC;QACvE,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAc,kCAAkC,CAAC,CAAC;QACtF,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,+BAA+B,CAAC,CAAC;QAC9E,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEjD,OAAO,IAAI,qDAAyB,CAAC;YACjC,MAAM,EAAE,KAAK;YACb,GAAG;YACH,OAAO,EAAE,OAAyC;YAClD,gBAAgB,EAAE,EAAE;SACvB,CAAC,CAAC;IACP,CAAC;;AAvBc,6CAAe,GAAG,wBAAwB,AAA3B,CAA4B;wCAHjD,6BAA6B;IADzC,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;;GADlC,6BAA6B,CA2BzC"}
|
|
@@ -5,7 +5,6 @@ const Di_1 = require("../../ioc/Di");
|
|
|
5
5
|
const JISInfotextsDataSourceFactory_1 = require("../datasources/JISInfotextsDataSourceFactory");
|
|
6
6
|
const JISInfotextsRepository_1 = require("../repositories/JISInfotextsRepository");
|
|
7
7
|
const JISInfotextsRopidGTFSStopsRepository_1 = require("../repositories/JISInfotextsRopidGTFSStopsRepository");
|
|
8
|
-
const JISMetadataRepository_1 = require("../repositories/JISMetadataRepository");
|
|
9
8
|
const JISInfotextsDataService_1 = require("../services/JISInfotextsDataService");
|
|
10
9
|
const JISInfotextsTransformation_1 = require("../transformations/JISInfotextsTransformation");
|
|
11
10
|
const RefreshJISInfotextsTask_1 = require("../workers/tasks/RefreshJISInfotextsTask");
|
|
@@ -20,7 +19,6 @@ JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotext
|
|
|
20
19
|
//#region Repositories
|
|
21
20
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsRepository, JISInfotextsRepository_1.JISInfotextsRepository);
|
|
22
21
|
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository, JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository);
|
|
23
|
-
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISMetadataRepository, JISMetadataRepository_1.JISMetadataRepository);
|
|
24
22
|
//#endregion
|
|
25
23
|
//#region Services
|
|
26
24
|
JISContainer.register(JISContainerToken_1.JISContainerToken.JISInfotextsDataService, JISInfotextsDataService_1.JISInfotextsDataService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAE1C,gGAA6F;AAC7F,mFAAgF;AAChF,+GAA4G;AAC5G,iFAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAE1C,gGAA6F;AAC7F,mFAAgF;AAChF,+GAA4G;AAC5G,iFAA8E;AAC9E,8FAA2F;AAC3F,sFAAmF;AACnF,2DAAwD;AAExD,wBAAwB;AACxB,MAAM,YAAY,GAAwB,iBAAY,CAAC,oBAAoB,EAAE,CAAC;AAwBrE,oCAAY;AAvBrB,YAAY;AAEZ,sBAAsB;AACtB,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,6BAA6B,EAAE,6DAA6B,CAAC,CAAC;AAC/G,YAAY;AAEZ,sBAAsB;AACtB,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,sBAAsB,EAAE,+CAAsB,CAAC,CAAC;AACjG,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,oCAAoC,EAAE,2EAAoC,CAAC,CAAC;AAC7H,YAAY;AAEZ,kBAAkB;AAClB,YAAY,CAAC,QAAQ,CAAC,qCAAiB,CAAC,uBAAuB,EAAE,iDAAuB,CAAC,CAAC;AAC1F,YAAY;AAEZ,eAAe;AACf,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,uBAAuB,EAAE,iDAAuB,CAAC,CAAC;AACnG,YAAY;AAEZ,yBAAyB;AACzB,YAAY,CAAC,iBAAiB,CAAC,qCAAiB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC"}
|
|
@@ -2,7 +2,6 @@ declare const JISContainerToken: {
|
|
|
2
2
|
JISInfotextsDataSourceFactory: symbol;
|
|
3
3
|
JISInfotextsRepository: symbol;
|
|
4
4
|
JISInfotextsRopidGTFSStopsRepository: symbol;
|
|
5
|
-
JISMetadataRepository: symbol;
|
|
6
5
|
JISInfotextsDataService: symbol;
|
|
7
6
|
JISInfotextsTransformation: symbol;
|
|
8
7
|
RefreshJISInfotextsTask: symbol;
|
|
@@ -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,6BAA6B,EAAE,MAAM,EAAE;IACvC,kBAAkB;IAClB,sBAAsB,EAAE,MAAM,EAAE;IAChC,oCAAoC,EAAE,MAAM,EAAE;IAC9C,
|
|
1
|
+
{"version":3,"file":"JISContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/ioc/JISContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACtB,kBAAkB;IAClB,6BAA6B,EAAE,MAAM,EAAE;IACvC,kBAAkB;IAClB,sBAAsB,EAAE,MAAM,EAAE;IAChC,oCAAoC,EAAE,MAAM,EAAE;IAC9C,cAAc;IACd,uBAAuB,EAAE,MAAM,EAAE;IACjC,qBAAqB;IACrB,0BAA0B,EAAE,MAAM,EAAE;IACpC,WAAW;IACX,uBAAuB,EAAE,MAAM,EAAE;CACpC,CAAC;AAEO,8CAAiB"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { JISInfotextsDataSourceFactory } from "../../datasources/JISInfotextsDataSourceFactory";
|
|
2
|
-
import { JISMetadataRepository } from "../../repositories/JISMetadataRepository";
|
|
3
2
|
import { JISInfotextsDataService } from "../../services/JISInfotextsDataService";
|
|
4
3
|
import { JISInfotextsTransformation } from "../../transformations/JISInfotextsTransformation";
|
|
5
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
6
4
|
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
|
|
7
5
|
export declare class RefreshJISInfotextsTask extends AbstractEmptyTask {
|
|
8
6
|
private dataSourceFactory;
|
|
9
7
|
private infotextsDataService;
|
|
10
8
|
private infotextsTransformation;
|
|
11
|
-
private metadataRepository;
|
|
12
|
-
private logger;
|
|
13
9
|
readonly queueName = "refreshJISInfotexts";
|
|
14
10
|
readonly queueTtl: number;
|
|
15
|
-
constructor(dataSourceFactory: JISInfotextsDataSourceFactory, infotextsDataService: JISInfotextsDataService, infotextsTransformation: JISInfotextsTransformation
|
|
16
|
-
/** Fetch JIS Infotexts data source and if it has been updated, refresh JIS Infotexts data in database */
|
|
11
|
+
constructor(dataSourceFactory: JISInfotextsDataSourceFactory, infotextsDataService: JISInfotextsDataService, infotextsTransformation: JISInfotextsTransformation);
|
|
17
12
|
protected execute(): Promise<void>;
|
|
18
|
-
private getResponseEtag;
|
|
19
13
|
private getEntitiesFromTransformationResult;
|
|
20
14
|
}
|
|
@@ -24,59 +24,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.RefreshJISInfotextsTask = void 0;
|
|
25
25
|
const JISInfotextsDataSourceFactory_1 = require("../../datasources/JISInfotextsDataSourceFactory");
|
|
26
26
|
const JISContainerToken_1 = require("../../ioc/JISContainerToken");
|
|
27
|
-
const JISMetadataRepository_1 = require("../../repositories/JISMetadataRepository");
|
|
28
27
|
const JISInfotextsDataService_1 = require("../../services/JISInfotextsDataService");
|
|
29
28
|
const JISInfotextsTransformation_1 = require("../../transformations/JISInfotextsTransformation");
|
|
30
|
-
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
31
29
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
32
|
-
const ResourceNotModified_1 = require("@golemio/core/dist/integration-engine/helpers/ResourceNotModified");
|
|
33
30
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
34
31
|
const constants_1 = require("../constants");
|
|
35
32
|
let RefreshJISInfotextsTask = exports.RefreshJISInfotextsTask = class RefreshJISInfotextsTask extends integration_engine_1.AbstractEmptyTask {
|
|
36
|
-
constructor(dataSourceFactory, infotextsDataService, infotextsTransformation
|
|
33
|
+
constructor(dataSourceFactory, infotextsDataService, infotextsTransformation) {
|
|
37
34
|
super(constants_1.JIS_WORKER_NAME.toLowerCase());
|
|
38
35
|
this.dataSourceFactory = dataSourceFactory;
|
|
39
36
|
this.infotextsDataService = infotextsDataService;
|
|
40
37
|
this.infotextsTransformation = infotextsTransformation;
|
|
41
|
-
this.metadataRepository = metadataRepository;
|
|
42
|
-
this.logger = logger;
|
|
43
38
|
this.queueName = "refreshJISInfotexts";
|
|
44
|
-
this.queueTtl =
|
|
39
|
+
this.queueTtl = 1 * 60 * 1000; // 1 minute;
|
|
45
40
|
}
|
|
46
|
-
/** Fetch JIS Infotexts data source and if it has been updated, refresh JIS Infotexts data in database */
|
|
47
41
|
execute() {
|
|
48
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const { data, metadata } = yield dataSource.getAllWithMetadata();
|
|
52
|
-
if (data instanceof ResourceNotModified_1.ResourceNotModified) {
|
|
53
|
-
this.logger.info(`${this.constructor.name}.execute: JIS infotexts data source hasn't been updated since last refresh in ` +
|
|
54
|
-
`database (received 304 Not Modified for request with ETag: ${lastEtag}).`);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
43
|
+
const dataSource = this.dataSourceFactory.getDataSource();
|
|
44
|
+
const data = yield dataSource.getAll();
|
|
57
45
|
const transformedData = this.infotextsTransformation.transformArray(data);
|
|
58
46
|
const { infotexts, infotextsRopidGTFSStops } = this.getEntitiesFromTransformationResult(transformedData);
|
|
59
47
|
yield this.infotextsDataService.refreshData(infotexts, infotextsRopidGTFSStops);
|
|
60
|
-
const responseEtag = this.getResponseEtag(metadata);
|
|
61
|
-
if (typeof responseEtag === "string") {
|
|
62
|
-
yield this.metadataRepository.setLastInfotextsEtag(responseEtag);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this.logger.warn(`${this.constructor.name}.execute: JIS infotexts data source response has no ETag.`);
|
|
66
|
-
}
|
|
67
48
|
});
|
|
68
49
|
}
|
|
69
|
-
getResponseEtag(metadata) {
|
|
70
|
-
if (typeof metadata === "object" &&
|
|
71
|
-
metadata !== null &&
|
|
72
|
-
"headers" in metadata &&
|
|
73
|
-
typeof metadata.headers === "object" &&
|
|
74
|
-
metadata.headers !== null &&
|
|
75
|
-
"etag" in metadata.headers &&
|
|
76
|
-
typeof metadata.headers["etag"] === "string") {
|
|
77
|
-
return metadata.headers["etag"];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
50
|
getEntitiesFromTransformationResult(transformedData) {
|
|
81
51
|
const infotextEntities = [];
|
|
82
52
|
const infotextsRopidGTFSStopsEntities = [];
|
|
@@ -98,11 +68,8 @@ exports.RefreshJISInfotextsTask = RefreshJISInfotextsTask = __decorate([
|
|
|
98
68
|
__param(0, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsDataSourceFactory)),
|
|
99
69
|
__param(1, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsDataService)),
|
|
100
70
|
__param(2, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISInfotextsTransformation)),
|
|
101
|
-
__param(3, (0, tsyringe_1.inject)(JISContainerToken_1.JISContainerToken.JISMetadataRepository)),
|
|
102
|
-
__param(4, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
103
71
|
__metadata("design:paramtypes", [JISInfotextsDataSourceFactory_1.JISInfotextsDataSourceFactory,
|
|
104
72
|
JISInfotextsDataService_1.JISInfotextsDataService,
|
|
105
|
-
JISInfotextsTransformation_1.JISInfotextsTransformation
|
|
106
|
-
JISMetadataRepository_1.JISMetadataRepository, Object])
|
|
73
|
+
JISInfotextsTransformation_1.JISInfotextsTransformation])
|
|
107
74
|
], RefreshJISInfotextsTask);
|
|
108
75
|
//# sourceMappingURL=RefreshJISInfotextsTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshJISInfotextsTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mGAAkG;AAClG,mEAAkE;AAClE,oFAAmF;AACnF,
|
|
1
|
+
{"version":3,"file":"RefreshJISInfotextsTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mGAAkG;AAClG,mEAAkE;AAClE,oFAAmF;AACnF,iGAAgG;AAEhG,8EAA0E;AAC1E,iEAAwE;AACxE,4CAA+C;AAGxC,IAAM,uBAAuB,qCAA7B,MAAM,uBAAwB,SAAQ,sCAAiB;IAI1D,YAEI,iBAAwD,EAExD,oBAAqD,EAErD,uBAA2D;QAE3D,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAN7B,sBAAiB,GAAjB,iBAAiB,CAA+B;QAEhD,yBAAoB,GAApB,oBAAoB,CAAyB;QAE7C,4BAAuB,GAAvB,uBAAuB,CAA4B;QAT/C,cAAS,GAAG,qBAAqB,CAAC;QAClC,aAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,YAAY;IAWtD,CAAC;IAEe,OAAO;;YACnB,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;YAC1D,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;YACvC,MAAM,eAAe,GAAG,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC1E,MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAC,mCAAmC,CAAC,eAAe,CAAC,CAAC;YACzG,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;QACpF,CAAC;KAAA;IAEO,mCAAmC,CAAC,eAAyE;QACjH,MAAM,gBAAgB,GAAmB,EAAE,CAAC;QAC5C,MAAM,+BAA+B,GAAkC,EAAE,CAAC;QAC1E,KAAK,MAAM,EAAE,QAAQ,EAAE,uBAAuB,EAAE,IAAI,eAAe,EAAE;YACjE,IAAI,uBAAuB,CAAC,MAAM,KAAK,CAAC,EAAE;gBACtC,SAAS;aACZ;YACD,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,+BAA+B,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,CAAC;SACpE;QACD,OAAO;YACH,SAAS,EAAE,gBAAgB;YAC3B,uBAAuB,EAAE,+BAA+B;SAC3D,CAAC;IACN,CAAC;CACJ,CAAA;kCAtCY,uBAAuB;IADnC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,6BAA6B,CAAC,CAAA;IAEvD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,uBAAuB,CAAC,CAAA;IAEjD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,0BAA0B,CAAC,CAAA;qCAH1B,6DAA6B;QAE1B,iDAAuB;QAEpB,uDAA0B;GAVtD,uBAAuB,CAsCnC"}
|
package/docs/asyncapi.yaml
CHANGED
|
@@ -4,17 +4,6 @@ info:
|
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
description: PID
|
|
6
6
|
channels:
|
|
7
|
-
jis.refreshJISInfotexts:
|
|
8
|
-
address: vehicle-positions.jis.refreshJISInfotexts
|
|
9
|
-
description: Fetch JIS Infotexts data source and if it has been updated, refresh JIS Infotexts data in database
|
|
10
|
-
bindings:
|
|
11
|
-
amqp:
|
|
12
|
-
is: queue
|
|
13
|
-
queue:
|
|
14
|
-
durable: true
|
|
15
|
-
messages:
|
|
16
|
-
empty:
|
|
17
|
-
$ref: "#/components/messages/emptyMessage"
|
|
18
7
|
updateGTFSTripId:
|
|
19
8
|
address: vehicle-positions.vehiclepositions.updateGTFSTripId
|
|
20
9
|
description: some description
|
|
@@ -245,10 +234,6 @@ channels:
|
|
|
245
234
|
empty:
|
|
246
235
|
$ref: "#/components/messages/EmptyObject"
|
|
247
236
|
operations:
|
|
248
|
-
jis.refreshJISInfotexts:
|
|
249
|
-
action: "send"
|
|
250
|
-
channel:
|
|
251
|
-
$ref: "#/channels/jis.refreshJISInfotexts"
|
|
252
237
|
updateGTFSTripId:
|
|
253
238
|
action: "send"
|
|
254
239
|
channel:
|
|
@@ -327,8 +312,6 @@ operations:
|
|
|
327
312
|
$ref: "#/channels/processMetroRunMessages"
|
|
328
313
|
components:
|
|
329
314
|
messages:
|
|
330
|
-
emptyMessage:
|
|
331
|
-
title: Empty message
|
|
332
315
|
saveTramRunsToDB:
|
|
333
316
|
payload:
|
|
334
317
|
type: object
|
|
@@ -1113,7 +1113,7 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
|
|
|
1113
1113
|
|
|
1114
1114
|
- vstupní rabbitmq fronta
|
|
1115
1115
|
- název: vehicle-positions.jis.refreshJISInfotexts
|
|
1116
|
-
- TTL:
|
|
1116
|
+
- TTL: 1 minuta
|
|
1117
1117
|
- parametry: žádné
|
|
1118
1118
|
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
1119
1119
|
- žádné
|
|
@@ -1121,12 +1121,6 @@ Worker má na starost stahování VYMI (JIS) infotextů, jejich transformaci a u
|
|
|
1121
1121
|
- JIS Infotexty
|
|
1122
1122
|
- transformace
|
|
1123
1123
|
- [JISInfotextsTransformation](../src/integration-engine/jis/transformations/JISInfotextsTransformation.ts)
|
|
1124
|
-
- popis
|
|
1125
|
-
- z Redisu je získán ETag poslední přijaté odpovědi datového zdroje
|
|
1126
|
-
- z datového zdroje jsou podmíněným dotazem s posledním ETagem získána data a metadata
|
|
1127
|
-
- pokud na straně datového zdroje došlo k aktualizaci dat, je provedena transformace
|
|
1128
|
-
- transformovaná data jsou uložena do Postgres a starší záznamy jsou odstraněny
|
|
1129
|
-
- v Redisu je aktualizován poslední přijatý ETag
|
|
1130
1124
|
- data modely
|
|
1131
1125
|
- JISInfotextsModel `jis_infotexts`
|
|
1132
1126
|
- JISInfotextsRopidGTFSStopsModel `jis_infotexts_ropidgtfs_stops`
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -35,13 +35,13 @@ tags:
|
|
|
35
35
|
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> <img src="https://img.shields.io/badge/stability-experimental-orange" alt="golemioapi-stability-badge" />
|
|
36
36
|
|
|
37
37
|
- name: 🗓️ Public GTFS Static Lookup (v2)
|
|
38
|
-
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
38
|
+
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
39
39
|
|
|
40
40
|
- name: 🕐 Public Vehicle Positions (v2)
|
|
41
|
-
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
41
|
+
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
42
42
|
|
|
43
43
|
- name: 🕒 Public Departures (v2)
|
|
44
|
-
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
44
|
+
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
45
45
|
|
|
46
46
|
paths:
|
|
47
47
|
/v2/gtfs/services:
|
|
@@ -1330,7 +1330,10 @@ paths:
|
|
|
1330
1330
|
tags:
|
|
1331
1331
|
- 🗓️ Public GTFS Static Lookup (v2)
|
|
1332
1332
|
summary: GET GTFS Trip
|
|
1333
|
-
description:
|
|
1333
|
+
description: |
|
|
1334
|
+
Get GTFS static trip info by trip ID, including associated stop times (without no stop waypoints) and shapes.
|
|
1335
|
+
|
|
1336
|
+
ℹ️ Note: This endpoint is optimized for client applications serving many users simultaneously. It provides streamlined data structures and caching strategies suitable for client-side consumption. Rate limits can be adjusted upon request - contact us if you need higher limits. Note: Despite the 'public' prefix, this endpoint requires an API key for access control and usage monitoring.
|
|
1334
1337
|
parameters:
|
|
1335
1338
|
- name: gtfsTripId
|
|
1336
1339
|
in: path
|
|
@@ -1392,6 +1395,8 @@ paths:
|
|
|
1392
1395
|
tags:
|
|
1393
1396
|
- 🕐 Public Vehicle Positions (v2)
|
|
1394
1397
|
summary: GET All Vehicle Positions
|
|
1398
|
+
description: |
|
|
1399
|
+
ℹ️ Note: This endpoint is optimized for client applications serving many users simultaneously. It provides streamlined data structures and caching strategies suitable for client-side consumption. Rate limits can be adjusted upon request - contact us if you need higher limits. Note: Despite the 'public' prefix, this endpoint requires an API key for access control and usage monitoring.
|
|
1395
1400
|
parameters:
|
|
1396
1401
|
- name: boundingBox
|
|
1397
1402
|
in: query
|
|
@@ -1464,6 +1469,8 @@ paths:
|
|
|
1464
1469
|
tags:
|
|
1465
1470
|
- 🕐 Public Vehicle Positions (v2)
|
|
1466
1471
|
summary: GET Vehicle Positions
|
|
1472
|
+
description: |
|
|
1473
|
+
ℹ️ Note: This endpoint is optimized for client applications serving many users simultaneously. It provides streamlined data structures and caching strategies suitable for client-side consumption. Rate limits can be adjusted upon request - contact us if you need higher limits. Note: Despite the 'public' prefix, this endpoint requires an API key for access control and usage monitoring.
|
|
1467
1474
|
parameters:
|
|
1468
1475
|
- name: vehicleId
|
|
1469
1476
|
in: path
|
|
@@ -1531,6 +1538,8 @@ paths:
|
|
|
1531
1538
|
Combination of `vehicleId` and `gtfsTripId` is needed because multiple vehicles can serve the same trip, and we want to select the correct one.
|
|
1532
1539
|
`gtfsTripId` is specified as a path matrix parameter.
|
|
1533
1540
|
<br><br>Example: `/public/vehiclepositions/service-3-1001;gtfsTripId=115_107_180501`
|
|
1541
|
+
|
|
1542
|
+
ℹ️ Note: This endpoint is optimized for client applications serving many users simultaneously. It provides streamlined data structures and caching strategies suitable for client-side consumption. Rate limits can be adjusted upon request - contact us if you need higher limits. Note: Despite the 'public' prefix, this endpoint requires an API key for access control and usage monitoring.
|
|
1534
1543
|
parameters:
|
|
1535
1544
|
- name: vehicleId
|
|
1536
1545
|
in: path
|
|
@@ -1602,6 +1611,8 @@ paths:
|
|
|
1602
1611
|
tags:
|
|
1603
1612
|
- 🕒 Public Departures (v2)
|
|
1604
1613
|
summary: Get Departure Boards
|
|
1614
|
+
description: |
|
|
1615
|
+
ℹ️ Note: This endpoint is optimized for client applications serving many users simultaneously. It provides streamlined data structures and caching strategies suitable for client-side consumption. Rate limits can be adjusted upon request - contact us if you need higher limits. Note: Despite the 'public' prefix, this endpoint requires an API key for access control and usage monitoring.
|
|
1605
1616
|
parameters:
|
|
1606
1617
|
- in: query
|
|
1607
1618
|
name: stopIds
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/pid",
|
|
3
|
-
"version": "3.0.1-dev.
|
|
3
|
+
"version": "3.0.1-dev.1544923161",
|
|
4
4
|
"description": "Golemio PID Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@commitlint/cli": "^11.0.0",
|
|
38
38
|
"@commitlint/config-conventional": "^11.0.0",
|
|
39
39
|
"@golemio/cli": "1.7.3",
|
|
40
|
-
"@golemio/core": "1.
|
|
40
|
+
"@golemio/core": "1.16.0-dev.1544903458",
|
|
41
41
|
"@golemio/db-common": "1.1.4",
|
|
42
42
|
"@golemio/eslint-config": "1.1.2",
|
|
43
43
|
"@types/amqplib": "^0.5.17",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"typescript-transform-paths": "^3.4.6"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@golemio/core": ">=1.
|
|
76
|
+
"@golemio/core": ">=1.14.1-rc.1470811358"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@golemio/ovapi-gtfs-realtime-bindings": "1.2.4-dev.1288219308",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RedisModel } from "@golemio/core/dist/integration-engine/models/RedisModel";
|
|
2
|
-
export declare class JISMetadataRepository extends RedisModel {
|
|
3
|
-
static readonly NAMESPACE_PREFIX = "jisMetadata";
|
|
4
|
-
protected readonly key = "main";
|
|
5
|
-
constructor();
|
|
6
|
-
/** Get the Etag of the last JIS Infotexts response */
|
|
7
|
-
getLastInfotextsEtag(): Promise<string | undefined>;
|
|
8
|
-
/**
|
|
9
|
-
* Set the Etag of the last JIS Infotexts response to a given new value
|
|
10
|
-
*
|
|
11
|
-
* @param etag The new Etag of the last JIS Infotexts response
|
|
12
|
-
*/
|
|
13
|
-
setLastInfotextsEtag(etag: string): Promise<void>;
|
|
14
|
-
private initializeMetadata;
|
|
15
|
-
}
|
|
@@ -1,91 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
var JISMetadataRepository_1;
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.JISMetadataRepository = void 0;
|
|
23
|
-
const const_1 = require("../../../schema-definitions/jis/redis/const");
|
|
24
|
-
const JISMetadataDtoSchema_1 = require("../../../schema-definitions/jis/redis/schemas/JISMetadataDtoSchema");
|
|
25
|
-
const RedisModel_1 = require("@golemio/core/dist/integration-engine/models/RedisModel");
|
|
26
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
27
|
-
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
28
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
29
|
-
let JISMetadataRepository = exports.JISMetadataRepository = JISMetadataRepository_1 = class JISMetadataRepository extends RedisModel_1.RedisModel {
|
|
30
|
-
constructor() {
|
|
31
|
-
super("JISMetadataRepository", {
|
|
32
|
-
decodeDataAfterGet: JSON.parse,
|
|
33
|
-
encodeDataBeforeSave: JSON.stringify,
|
|
34
|
-
isKeyConstructedFromData: false,
|
|
35
|
-
prefix: JISMetadataRepository_1.NAMESPACE_PREFIX,
|
|
36
|
-
}, new golemio_validator_1.JSONSchemaValidator("JISMetadataRepositoryValidator", JISMetadataDtoSchema_1.JISMetadataDtoSchema));
|
|
37
|
-
this.key = "main";
|
|
38
|
-
}
|
|
39
|
-
/** Get the Etag of the last JIS Infotexts response */
|
|
40
|
-
getLastInfotextsEtag() {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
try {
|
|
43
|
-
const metadata = yield this.get(this.key);
|
|
44
|
-
return metadata === null || metadata === void 0 ? void 0 : metadata.infotexts.lastResponse.etag;
|
|
45
|
-
}
|
|
46
|
-
catch (err) {
|
|
47
|
-
if (err instanceof golemio_errors_1.GeneralError)
|
|
48
|
-
throw err;
|
|
49
|
-
throw new golemio_errors_1.GeneralError("Error while getting last infotexts etag", this.constructor.name, err);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Set the Etag of the last JIS Infotexts response to a given new value
|
|
55
|
-
*
|
|
56
|
-
* @param etag The new Etag of the last JIS Infotexts response
|
|
57
|
-
*/
|
|
58
|
-
setLastInfotextsEtag(etag) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
try {
|
|
61
|
-
let metadata = yield this.get(this.key);
|
|
62
|
-
if (!metadata)
|
|
63
|
-
metadata = this.initializeMetadata();
|
|
64
|
-
metadata.infotexts.lastResponse.etag = etag;
|
|
65
|
-
metadata.infotexts.lastResponse.updatedAt = new Date().toISOString();
|
|
66
|
-
yield this.set(this.key, metadata);
|
|
67
|
-
}
|
|
68
|
-
catch (err) {
|
|
69
|
-
if (err instanceof golemio_errors_1.GeneralError)
|
|
70
|
-
throw err;
|
|
71
|
-
throw new golemio_errors_1.GeneralError("Error while updating last infotexts etag", this.constructor.name, err);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
initializeMetadata() {
|
|
76
|
-
return {
|
|
77
|
-
infotexts: {
|
|
78
|
-
lastResponse: {
|
|
79
|
-
etag: "",
|
|
80
|
-
updatedAt: new Date().toISOString(),
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
JISMetadataRepository.NAMESPACE_PREFIX = const_1.JIS_METADATA_NAMESPACE_PREFIX;
|
|
87
|
-
exports.JISMetadataRepository = JISMetadataRepository = JISMetadataRepository_1 = __decorate([
|
|
88
|
-
(0, tsyringe_1.injectable)(),
|
|
89
|
-
__metadata("design:paramtypes", [])
|
|
90
|
-
], JISMetadataRepository);
|
|
91
|
-
//# sourceMappingURL=JISMetadataRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JISMetadataRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISMetadataRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAqE;AAErE,6GAAmF;AACnF,wFAAqF;AACrF,6EAAwE;AACxE,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,qBAAqB,6DAA3B,MAAM,qBAAsB,SAAQ,uBAAU;IAKjD;QACI,KAAK,CACD,uBAAuB,EACvB;YACI,kBAAkB,EAAE,IAAI,CAAC,KAAK;YAC9B,oBAAoB,EAAE,IAAI,CAAC,SAAS;YACpC,wBAAwB,EAAE,KAAK;YAC/B,MAAM,EAAE,uBAAqB,CAAC,gBAAgB;SACjD,EACD,IAAI,uCAAmB,CAAC,gCAAgC,EAAE,2CAAoB,CAAC,CAClF,CAAC;QAZa,QAAG,GAAG,MAAM,CAAC;IAahC,CAAC;IAED,sDAAsD;IAChD,oBAAoB;;YACtB,IAAI;gBACA,MAAM,QAAQ,GAAgC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACvE,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC;aAChD;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,6BAAY;oBAAE,MAAM,GAAG,CAAC;gBAC3C,MAAM,IAAI,6BAAY,CAAC,yCAAyC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aACjG;QACL,CAAC;KAAA;IAED;;;;OAIG;IACG,oBAAoB,CAAC,IAAY;;YACnC,IAAI;gBACA,IAAI,QAAQ,GAAgC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrE,IAAI,CAAC,QAAQ;oBAAE,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACpD,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;gBAC5C,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;gBACrE,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;aACtC;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,6BAAY;oBAAE,MAAM,GAAG,CAAC;gBAC3C,MAAM,IAAI,6BAAY,CAAC,0CAA0C,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAClG;QACL,CAAC;KAAA;IAEO,kBAAkB;QACtB,OAAO;YACH,SAAS,EAAE;gBACP,YAAY,EAAE;oBACV,IAAI,EAAE,EAAE;oBACR,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;iBACtC;aACJ;SACJ,CAAC;IACN,CAAC;;AAvDsB,sCAAgB,GAAG,qCAA6B,AAAhC,CAAiC;gCAD/D,qBAAqB;IADjC,IAAA,qBAAU,GAAE;;GACA,qBAAqB,CAyDjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const JIS_METADATA_NAMESPACE_PREFIX = "jisMetadata";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/redis/const.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GAAG,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IJISMetadataDto.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/redis/interfaces/IJISMetadataDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JISMetadataDtoSchema = void 0;
|
|
4
|
-
const jisMetadataDtoSchema = {
|
|
5
|
-
$schema: "http://json-schema.org/draft-04/schema#",
|
|
6
|
-
title: "JISMetadataDto",
|
|
7
|
-
type: "object",
|
|
8
|
-
properties: {
|
|
9
|
-
infotexts: {
|
|
10
|
-
type: "object",
|
|
11
|
-
properties: {
|
|
12
|
-
lastResponse: {
|
|
13
|
-
type: "object",
|
|
14
|
-
properties: {
|
|
15
|
-
etag: { type: "string" },
|
|
16
|
-
updatedAt: { type: "string", format: "date-time" },
|
|
17
|
-
},
|
|
18
|
-
required: ["etag", "updatedAt"],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
required: ["lastResponse"],
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
required: ["infotexts"],
|
|
25
|
-
};
|
|
26
|
-
exports.JISMetadataDtoSchema = jisMetadataDtoSchema;
|
|
27
|
-
//# sourceMappingURL=JISMetadataDtoSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JISMetadataDtoSchema.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/jis/redis/schemas/JISMetadataDtoSchema.ts"],"names":[],"mappings":";;;AAGA,MAAM,oBAAoB,GAAoC;IAC1D,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,YAAY,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACxB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;qBACrD;oBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;iBAClC;aACJ;YACD,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC7B;KACJ;IACD,QAAQ,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAC;AAC+B,oDAAoB"}
|