@golemio/fcd 1.1.7-dev.932324335 → 1.1.7-dev.939057085

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,15 @@
1
1
  /// <reference types="express" />
2
2
  import { Router } from "@golemio/core/dist/shared/express";
3
+ export declare class FloatingCarDataRouter {
4
+ router: Router;
5
+ private loggerEmitter;
6
+ private fcdPragueController;
7
+ private fcdRegionsController;
8
+ constructor();
9
+ private initRoutes;
10
+ private fcdPrague;
11
+ private fcdRegions;
12
+ private floatingCarData;
13
+ }
3
14
  declare const floatingCarDataRouter: Router;
4
15
  export { floatingCarDataRouter };
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.floatingCarDataRouter = void 0;
12
+ exports.floatingCarDataRouter = exports.FloatingCarDataRouter = void 0;
13
13
  const FcdPragueController_1 = require("./FcdPragueController");
14
14
  const LoggerEmitter_1 = require("@golemio/core/dist/helpers/logger/LoggerEmitter");
15
15
  const CheckContentTypeMiddleware_1 = require("@golemio/core/dist/input-gateway/helpers/CheckContentTypeMiddleware");
@@ -50,6 +50,7 @@ class FloatingCarDataRouter {
50
50
  this.initRoutes();
51
51
  }
52
52
  }
53
+ exports.FloatingCarDataRouter = FloatingCarDataRouter;
53
54
  const floatingCarDataRouter = new FloatingCarDataRouter().router;
54
55
  exports.floatingCarDataRouter = floatingCarDataRouter;
55
56
  //# sourceMappingURL=FloatingCarDataRouter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingCarDataRouter.js","sourceRoot":"","sources":["../../src/input-gateway/FloatingCarDataRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA8D;AAC9D,mFAAiG;AAEjG,oHAAiH;AACjH,8DAA6F;AAC7F,+DAA4F;AAE5F,iEAA8D;AAE9D,MAAM,qBAAqB;IAOvB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BAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAC,MAAM,CAAC;AAExD,sDAAqB"}
@@ -0,0 +1,459 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: 🚢 Floating Car Data Input
4
+ description: >-
5
+ version: 1.0.1
6
+ contact:
7
+ name: Golemio Prague Data Plaform
8
+ email: golemio@operatorict.cz
9
+ url: https://golemio.cz
10
+
11
+ servers:
12
+ - url: https://rabin.golemio.cz/v2
13
+ description: Test (development) server
14
+ - url: https://api.golemio.cz/v2
15
+ description: Main (production) server
16
+ - url: http://localhost:3005
17
+ description: Localhost
18
+ tags:
19
+ - name: 🚢 Floating Car Data
20
+ description: >-
21
+ 💡 FCD
22
+ paths:
23
+ /fcd/fcd-info:
24
+ post:
25
+ summary: POST Latest floating Car Data
26
+ description: ""
27
+ operationId: postFCDInfo
28
+ tags:
29
+ - 🚢 Floating Car Data
30
+ parameters:
31
+ - in: header
32
+ name: Media-Type
33
+ schema:
34
+ type: string
35
+ example: "text/xml"
36
+ required: true
37
+ requestBody:
38
+ required: true
39
+ content:
40
+ text/xml:
41
+ schema:
42
+ $ref: "#/components/schemas/d2LogicalModel"
43
+ examples:
44
+ xml:
45
+ summary: Sample response
46
+ value: '<d2LogicalModel modelBaseVersion="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datex2.eu/schema/2/2_0"><exchange><supplierIdentification><country>cz</country><nationalIdentifier>ŘSD</nationalIdentifier></supplierIdentification></exchange><payloadPublication xsi:type="ElaboratedDataPublication" lang="cs"><publicationTime>2021-09-21T00:00:18+02:00</publicationTime><publicationCreator><country>cz</country><nationalIdentifier>ŘSD</nationalIdentifier></publicationCreator><headerInformation><confidentiality>noRestriction</confidentiality><informationStatus>real</informationStatus></headerInformation><elaboratedData><source><sourceIdentification>TS01225T256821</sourceIdentification></source><basicData xsi:type="TrafficStatus"><measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime><pertinentLocation xsi:type="LocationByReference"><predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" /></pertinentLocation><trafficStatusExtension><ndicFcdExtension><trafficLevel supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"><trafficLevelValue>level3</trafficLevelValue></trafficLevel></ndicFcdExtension></trafficStatusExtension></basicData></elaboratedData><elaboratedData><source><sourceIdentification>TS01225T25685</sourceIdentification></source><basicData xsi:type="TrafficSpeed"><measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime><pertinentLocation xsi:type="LocationByReference"><predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" /></pertinentLocation><averageVehicleSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"> <speed>88</speed></averageVehicleSpeed></basicData></elaboratedData><elaboratedData><source><sourceIdentification>TS01225T256816</sourceIdentification></source><basicData xsi:type="TravelTimeData"> <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime><pertinentLocation xsi:type="LocationByReference"><predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" /> </pertinentLocation><travelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"><duration>133</duration></travelTime><freeFlowTravelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"> <duration>91</duration></freeFlowTravelTime><freeFlowSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"><speed>130</speed></freeFlowSpeed></basicData> </elaboratedData></payloadPublication></d2LogicalModel>'
47
+ responses:
48
+ 204:
49
+ description: OK
50
+ 401:
51
+ $ref: "#/components/responses/UnauthorizedError"
52
+ 404:
53
+ description: Not found
54
+ 422:
55
+ description: Error while validating input data
56
+ 500:
57
+ description: Database error
58
+ /fcd/fcd-info-regions:
59
+ post:
60
+ summary: POST Latest floating Car Data
61
+ description: ""
62
+ operationId: postFCDregions
63
+ tags:
64
+ - 🚢 Floating Car Data
65
+ parameters:
66
+ - in: header
67
+ name: Media-Type
68
+ schema:
69
+ type: string
70
+ example: "text/xml"
71
+ required: true
72
+ requestBody:
73
+ required: true
74
+ content:
75
+ text/xml:
76
+ schema:
77
+ $ref: "#/components/schemas/d2LogicalModel"
78
+ examples:
79
+ xml:
80
+ summary: Sample response
81
+ value: '<d2LogicalModel modelBaseVersion="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datex2.eu/schema/2/2_0"><exchange><supplierIdentification><country>cz</country><nationalIdentifier>ŘSD</nationalIdentifier></supplierIdentification></exchange><payloadPublication xsi:type="ElaboratedDataPublication" lang="cs"><publicationTime>2021-09-21T00:00:18+02:00</publicationTime><publicationCreator><country>cz</country><nationalIdentifier>ŘSD</nationalIdentifier></publicationCreator><headerInformation><confidentiality>noRestriction</confidentiality><informationStatus>real</informationStatus></headerInformation><elaboratedData><source><sourceIdentification>TS01225T256821</sourceIdentification></source><basicData xsi:type="TrafficStatus"><measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime><pertinentLocation xsi:type="LocationByReference"><predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" /></pertinentLocation><trafficStatusExtension><ndicFcdExtension><trafficLevel supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"><trafficLevelValue>level3</trafficLevelValue></trafficLevel></ndicFcdExtension></trafficStatusExtension></basicData></elaboratedData><elaboratedData><source><sourceIdentification>TS01225T25685</sourceIdentification></source><basicData xsi:type="TrafficSpeed"><measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime><pertinentLocation xsi:type="LocationByReference"><predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" /></pertinentLocation><averageVehicleSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"> <speed>88</speed></averageVehicleSpeed></basicData></elaboratedData><elaboratedData><source><sourceIdentification>TS01225T256816</sourceIdentification></source><basicData xsi:type="TravelTimeData"> <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime><pertinentLocation xsi:type="LocationByReference"><predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" /> </pertinentLocation><travelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"><duration>133</duration></travelTime><freeFlowTravelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"> <duration>91</duration></freeFlowTravelTime><freeFlowSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1"><speed>130</speed></freeFlowSpeed></basicData> </elaboratedData></payloadPublication></d2LogicalModel>'
82
+ responses:
83
+ 204:
84
+ description: OK
85
+ 401:
86
+ $ref: "#/components/responses/UnauthorizedError"
87
+ 404:
88
+ description: Not found
89
+ 422:
90
+ description: Error while validating input data
91
+ 500:
92
+ description: Database error
93
+
94
+ components:
95
+ responses:
96
+ UnauthorizedError:
97
+ description: API key is missing or invalid
98
+ headers:
99
+ WWW_Authenticate:
100
+ schema:
101
+ type: string
102
+ schemas:
103
+ d2LogicalModel:
104
+ type: object
105
+ required:
106
+ - exchange
107
+ - payloadPublication
108
+ - modelBaseVersion
109
+ properties:
110
+ exchange:
111
+ type: object
112
+ required:
113
+ - supplierIdentification
114
+ properties:
115
+ supplierIdentification:
116
+ type: object
117
+ required:
118
+ - country
119
+ - nationalIdentifier
120
+ properties:
121
+ country:
122
+ type: string
123
+ example: "cz"
124
+ nationalIdentifier:
125
+ type: string
126
+ example: "ŘSD"
127
+ internationalIdentifierExtension:
128
+ type: object
129
+ payloadPublication:
130
+ type: object
131
+ required: [publicationTime, publicationCreator, elaboratedData, xsi:type]
132
+ properties:
133
+ publicationTime:
134
+ type: string
135
+ example: "2021-09-21T00:00:18+02:00"
136
+ publicationCreator:
137
+ type: object
138
+ properties:
139
+ country:
140
+ type: string
141
+ nationalIdentifier:
142
+ type: string
143
+ headerInformation:
144
+ type: object
145
+ properties:
146
+ confidentiality:
147
+ type: string
148
+ example: "noRestriction"
149
+ informationStatus:
150
+ type: string
151
+ example: "real"
152
+ elaboratedData:
153
+ type: array
154
+ items:
155
+ type: object
156
+ properties:
157
+ source:
158
+ type: object
159
+ properties:
160
+ sourceIdentification:
161
+ type: string
162
+ example: "TS01225T25680"
163
+ basicData:
164
+ type: object
165
+ required: [measurementOrCalculationTime, pertinentLocation, xsi:type]
166
+ properties:
167
+ measurementOrCalculationTime:
168
+ type: string
169
+ example: "2021-09-21T00:00:01+02:00"
170
+ pertinentLocation:
171
+ type: object
172
+ required:
173
+ - predefinedLocationReference
174
+ - xsi:type
175
+ properties:
176
+ predefinedLocationReference:
177
+ required:
178
+ - targetClass
179
+ - id
180
+ - version
181
+ type: object
182
+ properties:
183
+ targetClass:
184
+ type: string
185
+ xml:
186
+ attribute: true
187
+ id:
188
+ type: string
189
+ xml:
190
+ attribute: true
191
+ version:
192
+ type: string
193
+ xml:
194
+ attribute: true
195
+ xsi:type:
196
+ type: string
197
+ enum: ["ElaboratedDataPublication"]
198
+ xml:
199
+ attribute: true
200
+ trafficStatusExtension:
201
+ type: object
202
+ properties:
203
+ ndicFcdExtension:
204
+ type: object
205
+ required:
206
+ - trafficLevel
207
+ properties:
208
+ trafficLevel:
209
+ type: object
210
+ required:
211
+ - supplierCalculatedDataQuality
212
+ - numberOfInputValuesUsed
213
+ properties:
214
+ trafficLevelValue:
215
+ type: string
216
+ example: "level3"
217
+ supplierCalculatedDataQuality:
218
+ type: string
219
+ xml:
220
+ attribute: true
221
+ numberOfInputValuesUsed:
222
+ type: string
223
+ xml:
224
+ attribute: true
225
+ queueInformation:
226
+ type: object
227
+ required:
228
+ - queueLength
229
+ - fromPoint
230
+ - toPoint
231
+ properties:
232
+ queueLength:
233
+ type: string
234
+ fromPoint:
235
+ type: string
236
+ toPoint:
237
+ type: string
238
+
239
+ travelTime:
240
+ type: object
241
+ properties:
242
+ duration:
243
+ type: string
244
+ example: "133"
245
+ supplierCalculatedDataQuality:
246
+ type: string
247
+ xml:
248
+ attribute: true
249
+ numberOfInputValuesUsed:
250
+ type: string
251
+ xml:
252
+ attribute: true
253
+ freeFlowTravelTime:
254
+ type: object
255
+ properties:
256
+ duration:
257
+ type: string
258
+ example: "120"
259
+ supplierCalculatedDataQuality:
260
+ type: string
261
+ xml:
262
+ attribute: true
263
+ numberOfInputValuesUsed:
264
+ type: string
265
+ xml:
266
+ attribute: true
267
+ freeFlowSpeed:
268
+ type: object
269
+ properties:
270
+ speed:
271
+ type: string
272
+ example: "120"
273
+ supplierCalculatedDataQuality:
274
+ type: string
275
+ xml:
276
+ attribute: true
277
+ numberOfInputValuesUsed:
278
+ type: string
279
+ xml:
280
+ attribute: true
281
+ averageVehicleSpeed:
282
+ type: object
283
+ properties:
284
+ speed:
285
+ type: string
286
+ example: "120"
287
+ supplierCalculatedDataQuality:
288
+ type: string
289
+ xml:
290
+ attribute: true
291
+ numberOfInputValuesUsed:
292
+ type: string
293
+ xml:
294
+ attribute: true
295
+ xsi:type:
296
+ type: string
297
+ enum: ["TrafficStatus", "TrafficSpeed", "TravelTimeData"]
298
+ xml:
299
+ attribute: true
300
+ xsi:type:
301
+ type: string
302
+ enum: ["ElaboratedDataPublication"]
303
+ xml:
304
+ attribute: true
305
+ lang:
306
+ type: string
307
+ xml:
308
+ attribute: true
309
+ modelBaseVersion:
310
+ type: string
311
+ example: "2"
312
+ xml:
313
+ attribute: true
314
+
315
+ xmlns:xsi:
316
+ type: string
317
+ xml:
318
+ attribute: true
319
+ xmlns:
320
+ type: string
321
+ xml:
322
+ attribute: true
323
+
324
+ examples:
325
+ Example:
326
+ value: |-
327
+ <?xml version="1.0" encoding="utf-8"?>
328
+ <d2LogicalModel modelBaseVersion="2"
329
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
330
+ xmlns="http://datex2.eu/schema/2/2_0">
331
+ <exchange>
332
+ <supplierIdentification>
333
+ <country>cz</country>
334
+ <nationalIdentifier>ŘSD</nationalIdentifier>
335
+ </supplierIdentification>
336
+ </exchange>
337
+ <payloadPublication xsi:type="ElaboratedDataPublication" lang="cs">
338
+ <publicationTime>2021-09-21T00:00:18+02:00</publicationTime>
339
+ <publicationCreator>
340
+ <country>cz</country>
341
+ <nationalIdentifier>ŘSD</nationalIdentifier>
342
+ </publicationCreator>
343
+ <headerInformation>
344
+ <confidentiality>noRestriction</confidentiality>
345
+ <informationStatus>real</informationStatus>
346
+ </headerInformation>
347
+
348
+ <elaboratedData json:Array='true'>
349
+ <source>
350
+ <sourceIdentification>TS01225T256821</sourceIdentification>
351
+ </source>
352
+ <basicData xsi:type="TrafficStatus">
353
+ <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime>
354
+ <pertinentLocation xsi:type="LocationByReference">
355
+ <predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" />
356
+ </pertinentLocation>
357
+ <trafficStatusExtension>
358
+ <ndicFcdExtension>
359
+ <trafficLevel supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
360
+ <trafficLevelValue>level3</trafficLevelValue>
361
+ </trafficLevel>
362
+ </ndicFcdExtension>
363
+ </trafficStatusExtension>
364
+ </basicData>
365
+ </elaboratedData>
366
+
367
+ <elaboratedData>
368
+ <source>
369
+ <sourceIdentification>TS01225T25685</sourceIdentification>
370
+ </source>
371
+ <basicData xsi:type="TrafficSpeed">
372
+ <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime>
373
+ <pertinentLocation xsi:type="LocationByReference">
374
+ <predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" />
375
+ </pertinentLocation>
376
+ <averageVehicleSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
377
+ <speed>88</speed>
378
+ </averageVehicleSpeed>
379
+ </basicData>
380
+ </elaboratedData>
381
+
382
+ <elaboratedData>
383
+ <source>
384
+ <sourceIdentification>TS01225T256816</sourceIdentification>
385
+ </source>
386
+ <basicData xsi:type="TravelTimeData">
387
+ <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime>
388
+ <pertinentLocation xsi:type="LocationByReference">
389
+ <predefinedLocationReference targetClass="PredefinedLocation" id="TS01225T25680" version="2" />
390
+ </pertinentLocation>
391
+ <travelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
392
+ <duration>133</duration>
393
+ </travelTime>
394
+ <freeFlowTravelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
395
+ <duration>91</duration>
396
+ </freeFlowTravelTime>
397
+ <freeFlowSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
398
+ <speed>130</speed>
399
+ </freeFlowSpeed>
400
+ </basicData>
401
+ </elaboratedData>
402
+
403
+
404
+ <elaboratedData>
405
+ <source>
406
+ <sourceIdentification>TS37613T370221</sourceIdentification>
407
+ </source>
408
+ <basicData xsi:type="TrafficStatus">
409
+ <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime>
410
+ <pertinentLocation xsi:type="LocationByReference">
411
+ <predefinedLocationReference targetClass="PredefinedLocation" id="TS37613T37027" version="2" />
412
+ </pertinentLocation>
413
+ <trafficStatusExtension>
414
+ <ndicFcdExtension>
415
+ <trafficLevel supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
416
+ <trafficLevelValue>level3</trafficLevelValue>
417
+ </trafficLevel>
418
+ </ndicFcdExtension>
419
+ </trafficStatusExtension>
420
+ </basicData>
421
+ </elaboratedData>
422
+
423
+ <elaboratedData>
424
+ <source>
425
+ <sourceIdentification>TS37613T370212</sourceIdentification>
426
+ </source>
427
+ <basicData xsi:type="TrafficSpeed">
428
+ <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime>
429
+ <pertinentLocation xsi:type="LocationByReference">
430
+ <predefinedLocationReference targetClass="PredefinedLocation" id="TS37613T37027" version="2" />
431
+ </pertinentLocation>
432
+ <averageVehicleSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
433
+ <speed>50</speed>
434
+ </averageVehicleSpeed>
435
+ </basicData>
436
+ </elaboratedData>
437
+
438
+ <elaboratedData>
439
+ <source>
440
+ <sourceIdentification>TS37613T370234</sourceIdentification>
441
+ </source>
442
+ <basicData xsi:type="TravelTimeData">
443
+ <measurementOrCalculationTime>2021-09-21T00:00:01+02:00</measurementOrCalculationTime>
444
+ <pertinentLocation xsi:type="LocationByReference">
445
+ <predefinedLocationReference targetClass="PredefinedLocation" id="TS37613T37027" version="2" />
446
+ </pertinentLocation>
447
+ <travelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
448
+ <duration>46</duration>
449
+ </travelTime>
450
+ <freeFlowTravelTime supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
451
+ <duration>34</duration>
452
+ </freeFlowTravelTime>
453
+ <freeFlowSpeed supplierCalculatedDataQuality="0.500" numberOfInputValuesUsed="1">
454
+ <speed>73</speed>
455
+ </freeFlowSpeed>
456
+ </basicData>
457
+ </elaboratedData>
458
+ </payloadPublication>
459
+ </d2LogicalModel>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/fcd",
3
- "version": "1.1.7-dev.932324335",
3
+ "version": "1.1.7-dev.939057085",
4
4
  "description": "Golemio Floating Car Data Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,10 @@
10
10
  "build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
11
11
  "pretest": "golemio mdb reset --postgres && golemio mdb up --postgres && golemio import-db-data --postgres",
12
12
  "test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
13
- "apidocs-test": "cross-env NODE_ENV=test ts-node -r tsconfig-paths/register -r dotenv/config test/api-docs/index.ts",
13
+ "apidocs": "cross-env NODE_ENV=test ts-node -r tsconfig-paths/register -r dotenv/config test/api-docs/index.ts",
14
+ "apidocs-test": "run-s \"apidocs -- input,output\"",
15
+ "apidocs-test-input": "run-s \"apidocs -- input\"",
16
+ "apidocs-test-output": "run-s \"apidocs -- output\"",
14
17
  "test-debug": "run-s 'test -- --inspect-brk=9230'",
15
18
  "code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
16
19
  "generate-docs": "typedoc --out docs/typedoc src",
@@ -69,7 +72,8 @@
69
72
  "tsconfig-paths": "^4.2.0",
70
73
  "typedoc": "^0.24.8",
71
74
  "typescript": "5.1.3",
72
- "typescript-transform-paths": "^3.4.6"
75
+ "typescript-transform-paths": "^3.4.6",
76
+ "xml2js": "^0.6.0"
73
77
  },
74
78
  "peerDependencies": {
75
79
  "@golemio/core": ">=1.8.4",
File without changes