@golemio/parkings 1.8.7-dev.1241477950 → 1.8.7-dev.1243995431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/example/00_clear_test_data.sql +1 -0
- package/db/example/01_sql_dump.sql +16 -16
- package/db/example/02_ztp_updated_recently.sql +3 -9
- package/db/example/03_tsk_measurements_for_legacy_endpoints.sql +2 -2
- package/db/example/04_tsk_parking_v2.sql +2 -2
- package/db/example/05_payments.sql +2 -0
- package/db/example/08_isphk_data.sql +6 -16
- package/db/migrations/postgresql/20240327113105-payments.js +53 -0
- package/db/migrations/postgresql/sqls/20240327113105-payments-down.sql +29 -0
- package/db/migrations/postgresql/sqls/20240327113105-payments-up.sql +47 -0
- package/dist/helpers/data-access/CachedParkingSourcesRepository.d.ts +14 -1
- package/dist/helpers/data-access/CachedParkingSourcesRepository.js +28 -0
- package/dist/helpers/data-access/CachedParkingSourcesRepository.js.map +1 -1
- package/dist/integration-engine/ParkingInterface.d.ts +0 -3
- package/dist/integration-engine/datasources/iptoict/IptOictPaymentsDataSource.d.ts +3 -0
- package/dist/integration-engine/datasources/iptoict/IptOictPaymentsDataSource.js +29 -0
- package/dist/integration-engine/datasources/iptoict/IptOictPaymentsDataSource.js.map +1 -0
- package/dist/integration-engine/ioc/Di.js +8 -0
- package/dist/integration-engine/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ioc/ModuleContainerToken.d.ts +6 -2
- package/dist/integration-engine/ioc/ModuleContainerToken.js +11 -3
- package/dist/integration-engine/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/integration-engine/repositories/ParkingPaymentsRepository.d.ts +6 -0
- package/dist/integration-engine/repositories/ParkingPaymentsRepository.js +40 -0
- package/dist/integration-engine/repositories/ParkingPaymentsRepository.js.map +1 -0
- package/dist/integration-engine/transformations/IptOictPaymentsTransformation.d.ts +9 -0
- package/dist/integration-engine/transformations/IptOictPaymentsTransformation.js +29 -0
- package/dist/integration-engine/transformations/IptOictPaymentsTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/ParkingLotsTransformation.d.ts +3 -0
- package/dist/integration-engine/transformations/ParkingLotsTransformation.js +12 -7
- package/dist/integration-engine/transformations/ParkingLotsTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/TSKParkingTransformation.d.ts +9 -2
- package/dist/integration-engine/transformations/TSKParkingTransformation.js +31 -18
- package/dist/integration-engine/transformations/TSKParkingTransformation.js.map +1 -1
- package/dist/integration-engine/workers/NewParkingsWorker.js +2 -0
- package/dist/integration-engine/workers/NewParkingsWorker.js.map +1 -1
- package/dist/integration-engine/workers/schemas/ParkingSourceSchema.d.ts +14 -2
- package/dist/integration-engine/workers/schemas/ParkingSourceSchema.js +46 -2
- package/dist/integration-engine/workers/schemas/ParkingSourceSchema.js.map +1 -1
- package/dist/integration-engine/workers/tasks/GenerateIptOictParkingJobsTask.d.ts +1 -1
- package/dist/integration-engine/workers/tasks/GenerateIptOictParkingJobsTask.js +1 -1
- package/dist/integration-engine/workers/tasks/GenerateIptOictParkingJobsTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/GenerateIptOictPaymentJobsTask.d.ts +11 -0
- package/dist/integration-engine/workers/tasks/GenerateIptOictPaymentJobsTask.js +56 -0
- package/dist/integration-engine/workers/tasks/GenerateIptOictPaymentJobsTask.js.map +1 -0
- package/dist/integration-engine/workers/tasks/SaveIptOictParkingDataTask.js +3 -0
- package/dist/integration-engine/workers/tasks/SaveIptOictParkingDataTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/SaveIptOictPaymentsDataTask.d.ts +17 -0
- package/dist/integration-engine/workers/tasks/SaveIptOictPaymentsDataTask.js +91 -0
- package/dist/integration-engine/workers/tasks/SaveIptOictPaymentsDataTask.js.map +1 -0
- package/dist/integration-engine/workers/tasks/SaveParkingZonesPrague.d.ts +1 -0
- package/dist/integration-engine/workers/tasks/SaveParkingZonesPrague.js +5 -1
- package/dist/integration-engine/workers/tasks/SaveParkingZonesPrague.js.map +1 -1
- package/dist/output-gateway/controllers/v3/V3ParkingController.d.ts +0 -1
- package/dist/output-gateway/controllers/v3/V3ParkingController.js +9 -7
- package/dist/output-gateway/controllers/v3/V3ParkingController.js.map +1 -1
- package/dist/output-gateway/data-access/ParkingPaymentsRepository.d.ts +6 -0
- package/dist/output-gateway/data-access/ParkingPaymentsRepository.js +34 -0
- package/dist/output-gateway/data-access/ParkingPaymentsRepository.js.map +1 -0
- package/dist/output-gateway/data-access/ParkingRepository.d.ts +4 -2
- package/dist/output-gateway/data-access/ParkingRepository.js +29 -3
- package/dist/output-gateway/data-access/ParkingRepository.js.map +1 -1
- package/dist/output-gateway/data-access/TskParkingLotsRepository.d.ts +1 -0
- package/dist/output-gateway/data-access/TskParkingLotsRepository.js +13 -1
- package/dist/output-gateway/data-access/TskParkingLotsRepository.js.map +1 -1
- package/dist/output-gateway/ioc/Di.js +2 -0
- package/dist/output-gateway/ioc/Di.js.map +1 -1
- package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +1 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.js +1 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/output-gateway/models/ParkingsModel.d.ts +7 -3
- package/dist/output-gateway/models/ParkingsModel.js +29 -0
- package/dist/output-gateway/models/ParkingsModel.js.map +1 -1
- package/dist/output-gateway/models/helpers/DetailAttributesHelper.js +0 -3
- package/dist/output-gateway/models/helpers/DetailAttributesHelper.js.map +1 -1
- package/dist/output-gateway/models/index.d.ts +2 -0
- package/dist/output-gateway/models/index.js +2 -0
- package/dist/output-gateway/models/index.js.map +1 -1
- package/dist/output-gateway/routers/v2/V2ParkingRouter.js +6 -6
- package/dist/output-gateway/routers/v2/V2ParkingRouter.js.map +1 -1
- package/dist/output-gateway/transformations/ParkingsTransformationFabric.d.ts +3 -3
- package/dist/output-gateway/transformations/ParkingsTransformationFabric.js +5 -5
- package/dist/output-gateway/transformations/ParkingsTransformationFabric.js.map +1 -1
- package/dist/output-gateway/transformations/v3/ParkingDtoTransformation.d.ts +7 -0
- package/dist/output-gateway/transformations/v3/ParkingDtoTransformation.js +70 -2
- package/dist/output-gateway/transformations/v3/ParkingDtoTransformation.js.map +1 -1
- package/dist/schema-definitions/datasources/InputParkingSourceSchema.js +34 -1
- package/dist/schema-definitions/datasources/InputParkingSourceSchema.js.map +1 -1
- package/dist/schema-definitions/datasources/ParkingsDtoSchema.js +0 -3
- package/dist/schema-definitions/datasources/ParkingsDtoSchema.js.map +1 -1
- package/dist/schema-definitions/datasources/interfaces/IParkingsDto.d.ts +0 -3
- package/dist/schema-definitions/datasources/iptoict/IptOictPaymentsSchema.d.ts +3 -0
- package/dist/schema-definitions/datasources/iptoict/IptOictPaymentsSchema.js +38 -0
- package/dist/schema-definitions/datasources/iptoict/IptOictPaymentsSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/iptoict/interfaces/IIptOictPaymentsProperties.d.ts +16 -0
- package/dist/schema-definitions/datasources/iptoict/interfaces/IIptOictPaymentsProperties.js +3 -0
- package/dist/schema-definitions/datasources/iptoict/interfaces/IIptOictPaymentsProperties.js.map +1 -0
- package/dist/schema-definitions/index.js +0 -3
- package/dist/schema-definitions/index.js.map +1 -1
- package/dist/schema-definitions/models/ParkingSourcesModel.d.ts +4 -2
- package/dist/schema-definitions/models/ParkingSourcesModel.js +3 -1
- package/dist/schema-definitions/models/ParkingSourcesModel.js.map +1 -1
- package/dist/schema-definitions/models/PaymentModel.d.ts +20 -0
- package/dist/schema-definitions/models/PaymentModel.js +47 -0
- package/dist/schema-definitions/models/PaymentModel.js.map +1 -0
- package/dist/schema-definitions/models/interfaces/IParking.d.ts +2 -3
- package/dist/schema-definitions/models/interfaces/IParkingSource.d.ts +12 -1
- package/dist/schema-definitions/models/interfaces/IPayment.d.ts +13 -0
- package/dist/schema-definitions/models/interfaces/IPayment.js +3 -0
- package/dist/schema-definitions/models/interfaces/IPayment.js.map +1 -0
- package/docs/implementation-documentation.md +49 -17
- package/docs/openapi-output.yaml +58 -9
- package/package.json +4 -3
package/docs/openapi-output.yaml
CHANGED
|
@@ -47,7 +47,7 @@ paths:
|
|
|
47
47
|
in: query
|
|
48
48
|
description: Filter by Prague city districts (slug) separated by comma.
|
|
49
49
|
required: false
|
|
50
|
-
example: praha-4
|
|
50
|
+
example: ['praha-4']
|
|
51
51
|
schema:
|
|
52
52
|
type: array
|
|
53
53
|
items: {}
|
|
@@ -204,8 +204,8 @@ paths:
|
|
|
204
204
|
schema:
|
|
205
205
|
type: array
|
|
206
206
|
items:
|
|
207
|
-
type:
|
|
208
|
-
example: park_and_ride
|
|
207
|
+
type: string
|
|
208
|
+
example: ['park_and_ride']
|
|
209
209
|
- name: limit
|
|
210
210
|
in: query
|
|
211
211
|
description: Limits number of retrieved items.
|
|
@@ -313,8 +313,8 @@ paths:
|
|
|
313
313
|
schema:
|
|
314
314
|
type: array
|
|
315
315
|
items:
|
|
316
|
-
type:
|
|
317
|
-
example: park_and_ride
|
|
316
|
+
type: string
|
|
317
|
+
example: ['park_and_ride']
|
|
318
318
|
- name: limit
|
|
319
319
|
in: query
|
|
320
320
|
description: Limits number of retrieved items.
|
|
@@ -348,8 +348,8 @@ paths:
|
|
|
348
348
|
schema:
|
|
349
349
|
type: array
|
|
350
350
|
items:
|
|
351
|
-
type:
|
|
352
|
-
example: zone_mixed
|
|
351
|
+
type: string
|
|
352
|
+
example: ['zone_mixed']
|
|
353
353
|
- name: parkingType
|
|
354
354
|
in: query
|
|
355
355
|
description: Filter by parking type. Use with square brackets `parkingType[]`,
|
|
@@ -359,8 +359,8 @@ paths:
|
|
|
359
359
|
schema:
|
|
360
360
|
type: array
|
|
361
361
|
items:
|
|
362
|
-
type:
|
|
363
|
-
example: on_street
|
|
362
|
+
type: string
|
|
363
|
+
example: ['on_street']
|
|
364
364
|
|
|
365
365
|
responses:
|
|
366
366
|
200:
|
|
@@ -1757,6 +1757,10 @@ components:
|
|
|
1757
1757
|
type:
|
|
1758
1758
|
type: string
|
|
1759
1759
|
example: FeatureCollection
|
|
1760
|
+
payment:
|
|
1761
|
+
$ref: '#/components/schemas/ParkingPayment'
|
|
1762
|
+
reservation:
|
|
1763
|
+
$ref: '#/components/schemas/ParkingReservation'
|
|
1760
1764
|
tariff:
|
|
1761
1765
|
type: string
|
|
1762
1766
|
format: uuid
|
|
@@ -1998,6 +2002,51 @@ components:
|
|
|
1998
2002
|
type:
|
|
1999
2003
|
type: string
|
|
2000
2004
|
example: Feature
|
|
2005
|
+
ParkingPayment:
|
|
2006
|
+
type: object
|
|
2007
|
+
title: Parking Payment
|
|
2008
|
+
properties:
|
|
2009
|
+
properties:
|
|
2010
|
+
type: object
|
|
2011
|
+
properties:
|
|
2012
|
+
web_url:
|
|
2013
|
+
type: string
|
|
2014
|
+
nullable: true
|
|
2015
|
+
android_url:
|
|
2016
|
+
type: string
|
|
2017
|
+
nullable: true
|
|
2018
|
+
ios_url:
|
|
2019
|
+
type: string
|
|
2020
|
+
nullable: true
|
|
2021
|
+
discovery_url:
|
|
2022
|
+
type: string
|
|
2023
|
+
nullable: true
|
|
2024
|
+
ParkingReservation:
|
|
2025
|
+
type: object
|
|
2026
|
+
title: Parking Reservation
|
|
2027
|
+
properties:
|
|
2028
|
+
properties:
|
|
2029
|
+
type: object
|
|
2030
|
+
properties:
|
|
2031
|
+
reservation_type:
|
|
2032
|
+
type: string
|
|
2033
|
+
enum:
|
|
2034
|
+
- possible
|
|
2035
|
+
- not_possible
|
|
2036
|
+
- required
|
|
2037
|
+
nullable: true
|
|
2038
|
+
web_url:
|
|
2039
|
+
type: string
|
|
2040
|
+
nullable: true
|
|
2041
|
+
android_url:
|
|
2042
|
+
type: string
|
|
2043
|
+
nullable: true
|
|
2044
|
+
ios_url:
|
|
2045
|
+
type: string
|
|
2046
|
+
nullable: true
|
|
2047
|
+
discovery_url:
|
|
2048
|
+
type: string
|
|
2049
|
+
nullable: true
|
|
2001
2050
|
ParkingRestriction:
|
|
2002
2051
|
title: Parking Restriction
|
|
2003
2052
|
description:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/parkings",
|
|
3
|
-
"version": "1.8.7-dev.
|
|
3
|
+
"version": "1.8.7-dev.1243995431",
|
|
4
4
|
"description": "Golemio Parkings Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"@golemio/core": "1.9.16-dev.1228020721",
|
|
40
40
|
"@golemio/db-common": "1.1.3",
|
|
41
41
|
"@golemio/eslint-config": "1.1.1",
|
|
42
|
+
"@types/body-parser": "^1.19.5",
|
|
42
43
|
"@types/chai": "4.2.3",
|
|
43
44
|
"@types/chai-as-promised": "7.1.2",
|
|
44
|
-
"@types/mocha": "^
|
|
45
|
+
"@types/mocha": "^10.0.6",
|
|
45
46
|
"@types/node": "^18.13.0",
|
|
46
47
|
"@types/sinon": "^9.0.10",
|
|
47
48
|
"@types/supertest": "^2.0.10",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"dotenv": "^8.2.0",
|
|
55
56
|
"eslint": "^8.1.1",
|
|
56
57
|
"husky": "^4.3.7",
|
|
57
|
-
"mocha": "^
|
|
58
|
+
"mocha": "^10.4.0",
|
|
58
59
|
"npm-run-all": "^4.1.5",
|
|
59
60
|
"nyc": "^15.1.0",
|
|
60
61
|
"prettier": "^2.5.1",
|