@golemio/parkings 1.6.1-dev.1034818356 → 1.6.1-dev.1035889725

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.
@@ -5,13 +5,13 @@ INSERT INTO "parking_machines" (id,"source",code,"type","location",valid_from,ta
5
5
  ('4521afac-66db-4680-abc5-0006837d977a','tsk_v2','10000088','info_box','SRID=4326;POINT (14.509560372775391 50.08336146182989)','2023-03-27 16:22:55.370','bdd68c37-2462-4825-befa-1eeab518dfbd');
6
6
 
7
7
  INSERT INTO parkings (id,"source",source_id,data_provider,"name",category,date_modified,address,"location",area_served,web_app_payment_url,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,tariff_id,valid_from,valid_to,parking_type,zone_type,centroid,android_app_payment_url,ios_app_payment_url) VALUES
8
- ('tsk2-P1-0586','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','P1-0586','blue','2023-10-04 22:05:32.300',NULL,'SRID=4326;MULTIPOLYGON (((14.435146686704691 50.09031935764648, 14.435158778421304 50.090037674196914, 14.436496591004804 50.090271939573704, 14.436891101497103 50.09057582442722, 14.436584596966501 50.090700574765144, 14.436361060659229 50.09071081877421, 14.435146686704691 50.09031935764648)), ((14.432518050883488 50.08963880488788, 14.432849963583294 50.08974602637074, 14.433520760939317 50.08983654654372, 14.434026273297146 50.08989232808531, 14.433980344589223 50.0900468365997, 14.433568068617168 50.09014494638063, 14.4326828562706 50.08990536564012, 14.432518050883488 50.08963880488788)), ((14.43054520416443 50.089075595822536, 14.431267236152568 50.08895539557057, 14.431701029418882 50.089166218961886, 14.432130432442564 50.089421387255, 14.432518050883488 50.08963880488788, 14.43220935744498 50.089735597324186, 14.432069970660601 50.08973394311176, 14.431747143504648 50.08969881144357, 14.4308507378023 50.08944361428869, 14.43054520416443 50.089075595822536)))',NULL,NULL,42,NULL,'2023-10-04 22:05:34.589',NULL,NULL,'2023-10-04 22:05:34.589',NULL,'0639c53f-c555-49ac-b5e0-bb3d50acf588','2023-06-12 02:03:43.000',NULL,'on_street','zone','SRID=4326;POINT (14.433520760939317 50.08983654654372)',NULL,NULL);
8
+ ('tsk2-P1-0586','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','P1-0586','blue','2023-10-13 06:47:17.196','{"address_country":"Česko","address_formatted":"Na Poříčí, 11000 Praha Nové Město, Česko","address_locality":"Praha","address_region":"Nové Město","postal_code":"11000","street_address":"Na Poříčí"}','SRID=4326;MULTIPOLYGON (((14.435146686704691 50.09031935764648, 14.435158778421304 50.090037674196914, 14.436496591004804 50.090271939573704, 14.436891101497103 50.09057582442722, 14.436584596966501 50.090700574765144, 14.436361060659229 50.09071081877421, 14.435146686704691 50.09031935764648)), ((14.432518050883488 50.08963880488788, 14.432849963583294 50.08974602637074, 14.433520760939317 50.08983654654372, 14.434026273297146 50.08989232808531, 14.433980344589223 50.0900468365997, 14.433568068617168 50.09014494638063, 14.4326828562706 50.08990536564012, 14.432518050883488 50.08963880488788)), ((14.43054520416443 50.089075595822536, 14.431267236152568 50.08895539557057, 14.431701029418882 50.089166218961886, 14.432130432442564 50.089421387255, 14.432518050883488 50.08963880488788, 14.43220935744498 50.089735597324186, 14.432069970660601 50.08973394311176, 14.431747143504648 50.08969881144357, 14.4308507378023 50.08944361428869, 14.43054520416443 50.089075595822536)))',NULL,NULL,42,NULL,'2023-10-04 22:05:34.589',NULL,NULL,'2023-10-13 06:47:28.150',NULL,'0639c53f-c555-49ac-b5e0-bb3d50acf588','2023-06-12 02:03:43.000',NULL,'on_street','zone','SRID=4326;POINT (14.433520760939317 50.08983654654372)',NULL,NULL);
9
9
 
10
10
  INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",centroid,address,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,special_access) VALUES
11
- ('tsk2-P1-0586','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','SRID=4326;POLYGON ((14.430752009766316 50.08911821177594, 14.430769229998441 50.08910172868469, 14.430963092041813 50.089173302203854, 14.431121142940848 50.089229729083705, 14.431288241809778 50.089282708701234, 14.431380867359115 50.089311873860034, 14.4314096437366 50.08932032789265, 14.431440597404489 50.089328628720935, 14.431480187766274 50.0893393542484, 14.431531156892785 50.08935234952796, 14.432034928912303 50.08948101755296, 14.432024626323633 50.08950011783093, 14.431408883289269 50.08933960160983, 14.431288556785107 50.08930381070842, 14.43119927473038 50.089275437868416, 14.430947745128789 50.08918874462976, 14.430752009766316 50.08911821177594))','SRID=4326;POINT (14.431380867359115 50.089311873860034)',NULL,16,NULL,'2023-10-04 09:38:30.821',NULL,NULL,'2023-10-04 09:38:30.821',NULL,'disabled');
11
+ ('tsk2-P1-0586','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','SRID=4326;POLYGON ((14.430752009766316 50.08911821177594, 14.430769229998441 50.08910172868469, 14.430963092041813 50.089173302203854, 14.431121142940848 50.089229729083705, 14.431288241809778 50.089282708701234, 14.431380867359115 50.089311873860034, 14.4314096437366 50.08932032789265, 14.431440597404489 50.089328628720935, 14.431480187766274 50.0893393542484, 14.431531156892785 50.08935234952796, 14.432034928912303 50.08948101755296, 14.432024626323633 50.08950011783093, 14.431408883289269 50.08933960160983, 14.431288556785107 50.08930381070842, 14.43119927473038 50.089275437868416, 14.430947745128789 50.08918874462976, 14.430752009766316 50.08911821177594))','SRID=4326;POINT (14.431380867359115 50.089311873860034)','{"address_country":"Česko","address_formatted":"Na Poříčí, 11000 Praha Nové Město, Česko","address_locality":"Praha","address_region":"Nové Město","postal_code":"11000","street_address":"Na Poříčí"}',16,NULL,'2023-10-04 09:38:30.821',NULL,NULL,'2023-10-04 09:38:30.821',NULL,'disabled');
12
12
 
13
13
  INSERT INTO parkings_location (id,"source",source_id,data_provider,"location",centroid,address,total_spot_number,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,special_access) VALUES
14
- ('tsk2-P1-0587','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','SRID=4326;POLYGON ((14.430752009766316 50.08911821177594, 14.430769229998441 50.08910172868469, 14.430963092041813 50.089173302203854, 14.431121142940848 50.089229729083705, 14.431288241809778 50.089282708701234, 14.431380867359115 50.089311873860034, 14.4314096437366 50.08932032789265, 14.431440597404489 50.089328628720935, 14.431480187766274 50.0893393542484, 14.431531156892785 50.08935234952796, 14.432034928912303 50.08948101755296, 14.432024626323633 50.08950011783093, 14.431408883289269 50.08933960160983, 14.431288556785107 50.08930381070842, 14.43119927473038 50.089275437868416, 14.430947745128789 50.08918874462976, 14.430752009766316 50.08911821177594))','SRID=4326;POINT (14.431380867359115 50.089311873860034)',NULL,17,NULL,'2023-10-04 09:38:30.821',NULL,NULL,'2023-10-04 09:38:30.821',NULL,NULL);
14
+ ('tsk2-P1-0587','tsk_v2','c66bb668-eab6-49da-bc84-002263e1dce0','www.tsk-praha.cz','SRID=4326;POLYGON ((14.430752009766316 50.08911821177594, 14.430769229998441 50.08910172868469, 14.430963092041813 50.089173302203854, 14.431121142940848 50.089229729083705, 14.431288241809778 50.089282708701234, 14.431380867359115 50.089311873860034, 14.4314096437366 50.08932032789265, 14.431440597404489 50.089328628720935, 14.431480187766274 50.0893393542484, 14.431531156892785 50.08935234952796, 14.432034928912303 50.08948101755296, 14.432024626323633 50.08950011783093, 14.431408883289269 50.08933960160983, 14.431288556785107 50.08930381070842, 14.43119927473038 50.089275437868416, 14.430947745128789 50.08918874462976, 14.430752009766316 50.08911821177594))','SRID=4326;POINT (14.431380867359115 50.089311873860034)','{"address_country":"Česko","address_formatted":"Na Poříčí, 11000 Praha Nové Město, Česko","address_locality":"Praha","address_region":"Nové Město","postal_code":"11000","street_address":"Na Poříčí"}',17,NULL,'2023-10-04 09:38:30.821',NULL,NULL,'2023-10-04 09:38:30.821',NULL,NULL);
15
15
 
16
16
  INSERT INTO parkings_tariffs (tariff_id,"source",last_updated,payment_mode,payment_additional_description,free_of_charge,url_link_address,charge_band_name,accepts_payment_card,accepts_cash,accepts_mobile_payment,charge_currency,charge,charge_type,charge_order_index,charge_interval,max_iterations_of_charge,min_iterations_of_charge,start_time_of_period,end_time_of_period,allowed_vehicle_type,allowed_fuel_type,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by,accepts_litacka,valid_from,valid_to,maximum_duration_seconds,periods_of_time) VALUES
17
17
  ('0639c53f-c555-49ac-b5e0-bb3d50acf588','tsk_v2','2023-10-04 22:09:18.720','pre_paid',NULL,false,NULL,'PO-NE 00-06+08-24',NULL,NULL,true,'czk',1.3333333333333333,'other',0,60,1440,1,NULL,NULL,NULL,NULL,NULL,'2023-10-04 22:09:19.749',NULL,NULL,'2023-10-04 22:09:19.749',NULL,true,'2022-06-21 10:11:00.000','2999-12-31 00:00:00.000',3600,'[{"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "Mo"}, {"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "Tu"}, {"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "We"}, {"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "Th"}, {"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "Fr"}, {"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "Sa"}, {"ph": "PH_off", "end": "05:59:00", "start": "00:00:00", "day_in_week": "Su"}]'),
@@ -59,7 +59,7 @@ class V3ParkingController {
59
59
  boundingBox: req.query.boundingBox
60
60
  ? req.query.boundingBox.split(",").map((x) => parseFloat(x))
61
61
  : undefined,
62
- limit: req.query.limit ? parseInt(req.query.limit) : undefined,
62
+ limit: req.query.limit ? parseInt(req.query.limit) : 1000,
63
63
  offset: req.query.offset ? parseInt(req.query.offset) : undefined,
64
64
  accessDedicatedTo: req.query.accessDedicatedTo
65
65
  ? req.query.accessDedicatedTo instanceof Array
@@ -1 +1 @@
1
- {"version":3,"file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C,SAAS;gBAC3E,iBAAiB,EAAE,GAAG,CAAC,KAAK,CAAC,iBAAiB;oBAC1C,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,YAAY,KAAK;wBAC1C,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,iBAA8B;wBAC3C,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,iBAA2B,CAAC;oBAC7C,CAAC,CAAC,SAAS;gBACf,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,aAAuB,CAAC,CAAC,CAAC,CAAC,SAAS;gBAChG,YAAY,EAAE,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,YAAuB,CAAC,CAAC,CAAC,SAAS;aACxF,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SAClF;IACL,CAAC;CACJ;AA/DD,kDA+DC"}
1
+ {"version":3,"file":"V3ParkingController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v3/V3ParkingController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAA+C;AAC/C,yEAAoE;AACpE,gGAA2F;AAE3F,6EAAwE;AAExE,MAAa,mBAAmB;IAI5B;QAKO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,MAAM,GAAmB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBACrD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACpD,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;gBACnF,GAAG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B,CAAC,CAAC,CAAC,SAAS;aACxF,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SAClF;IACL,CAAC;CACJ;AA/DD,kDA+DC"}
@@ -65,7 +65,7 @@ class V3ParkingMachinesController {
65
65
  ? req.query.boundingBox.split(",").map((x) => parseFloat(x))
66
66
  : undefined,
67
67
  codeMask: req.query.codeMask ? req.query.codeMask : undefined,
68
- limit: req.query.limit ? parseInt(req.query.limit) : undefined,
68
+ limit: req.query.limit ? parseInt(req.query.limit) : 1000,
69
69
  offset: req.query.offset ? parseInt(req.query.offset) : undefined,
70
70
  };
71
71
  }
@@ -1 +1 @@
1
- {"version":3,"file":"V3ParkingMachinesController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v3/V3ParkingMachinesController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAA+C;AAC/C,yEAAoE;AACpE,gHAA2G;AAE3G,6EAAwE;AAExE,MAAa,2BAA2B;IAIpC;QAKO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,MAAM,GAA2B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;gBAC3D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACpD,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;gBACnF,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAC/B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBAC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E,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI;oBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,YAAY,KAAK;wBAC7B,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,IAAiB;wBAC9B,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAc,CAAC;oBAChC,CAAC,CAAC,SAAS;gBACf,WAAW,EAAE,GAAG,CAAC,KAAK,CAAC,WAAW;oBAC9B,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,WAAsB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACxE,CAAC,CAAC,SAAS;gBACf,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,QAAmB,CAAC,CAAC,CAAC,SAAS;gBACzE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,SAAS;gBACxE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;aAC9E,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,6BAA6B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SAC1F;IACL,CAAC;CACJ;AA9DD,kEA8DC"}
1
+ {"version":3,"file":"V3ParkingMachinesController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v3/V3ParkingMachinesController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAA+C;AAC/C,yEAAoE;AACpE,gHAA2G;AAE3G,6EA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CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,IAAI;gBACnE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;aAC9E,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,6BAA6B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SAC1F;IACL,CAAC;CACJ;AA9DD,kEA8DC"}
@@ -57,7 +57,7 @@ class V3ParkingTariffsController {
57
57
  primarySourceId: req.query.primarySourceId ? req.query.primarySourceId : undefined,
58
58
  validFrom: req.query.validFrom ? req.query.validFrom : undefined,
59
59
  validTo: req.query.validTo ? req.query.validTo : undefined,
60
- limit: req.query.limit ? parseInt(req.query.limit) : undefined,
60
+ limit: req.query.limit ? parseInt(req.query.limit) : 1000,
61
61
  offset: req.query.offset ? parseInt(req.query.offset) : undefined,
62
62
  };
63
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"V3ParkingTariffsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v3/V3ParkingTariffsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+C;AAG/C,yEAAoE;AACpE,4GAAuG;AAEvG,6EAAwE;AAExE,MAAa,0BAA0B;IAInC;QAKO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,MAAM,GAA0B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBAC5D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBAEpD,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,MAAM,CA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C,SAAS;gBACf,eAAe,EAAE,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,eAA0B,CAAC,CAAC,CAAC,SAAS;gBAC9F,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,SAAoB,CAAC,CAAC,CAAC,SAAS;gBAC5E,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,OAAkB,CAAC,CAAC,CAAC,SAAS;gBACtE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,SAAS;gBACxE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;aAC9E,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,4BAA4B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SACzF;IACL,CAAC;CACJ;AAxDD,gEAwDC"}
1
+ {"version":3,"file":"V3ParkingTariffsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v3/V3ParkingTariffsController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+C;AAG/C,yEAAoE;AACpE,4GAAuG;AAEvG,6EAAwE;AAExE,MAAa,0BAA0B;IAInC;QAKO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,MAAM,GAA0B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBAC5D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAA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AE,GAAG,CAAC,KAAK,CAAC,aAA0B;wBACvC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,aAAuB,CAAC;oBACzC,CAAC,CAAC,SAAS;gBACf,eAAe,EAAE,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,eAA0B,CAAC,CAAC,CAAC,SAAS;gBAC9F,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,SAAoB,CAAC,CAAC,CAAC,SAAS;gBAC5E,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAE,GAAG,CAAC,KAAK,CAAC,OAAkB,CAAC,CAAC,CAAC,SAAS;gBACtE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,IAAI;gBACnE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;aAC9E,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,4BAA4B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;SACzF;IACL,CAAC;CACJ;AAxDD,gEAwDC"}
@@ -72,7 +72,7 @@ let TariffRepository = exports.TariffRepository = class TariffRepository extends
72
72
  GetOne(id) {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  try {
75
- return yield this.sequelizeModel.findAll({
75
+ const results = yield this.sequelizeModel.findAll({
76
76
  attributes: { include: ["updated_at"] },
77
77
  where: {
78
78
  tariff_id: id,
@@ -80,6 +80,10 @@ let TariffRepository = exports.TariffRepository = class TariffRepository extends
80
80
  },
81
81
  raw: true,
82
82
  });
83
+ if (results.length === 0) {
84
+ return null;
85
+ }
86
+ return results;
83
87
  }
84
88
  catch (err) {
85
89
  throw new golemio_errors_1.GeneralError("Database error ~ GetOne", this.name, err, 500);
@@ -1 +1 @@
1
- {"version":3,"file":"TariffRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/data-access/TariffRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6GAAqG;AAErG,sEAAoE;AACpE,mDAAgC;AAEhC,4FAAyF;AACzF,6EAAwE;AACxE,mEAAoE;AACpE,iEAAwE;AAGjE,IAAM,gBAAgB,8BAAtB,MAAM,gBAAiB,SAAQ,+BAAc;IAChD,YAEY,8BAA8D;QAEtE,KAAK,CAAC,2BAA2B,EAAE,eAAQ,CAAC,OAAO,CAAC,WAAW,EAAE,eAAQ,CAAC,OAAO,CAAC,yBAAyB,EAAE;YACzG,MAAM,EAAE,eAAQ,CAAC,QAAQ;SAC5B,CAAC,CAAC;QAJK,mCAA8B,GAA9B,8BAA8B,CAAgC;IAK1E,CAAC;IAEY,MAAM,CAAC,MAA6B;;YAC7C,IAAI;gBACA,IAAI,KAAK,GAA8C,EAAE,CAAC;gBAE1D,IAAI,MAAM,CAAC,aAAa,EAAE;oBACtB,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,cAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC;iBACpD;qBAAM;oBACH,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,cAAE,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,8BAA8B,CAAC,YAAY,EAAE,EAAE,CAAC;iBACxF;gBAED,IAAI,MAAM,CAAC,eAAe,EAAE;oBACxB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC;iBAC5C;gBAED,IAAI,MAAM,CAAC,SAAS,EAAE;oBAClB,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC,cAAE,CAAC,GAA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B,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,8BAA8B,CAAC,CAAA;qCACpB,+DAA8B;GAHjE,gBAAgB,CAkE5B"}
@@ -1,3 +1,5 @@
1
1
  export * from "./v1/V1ParkingRouter";
2
2
  export * from "./v2/V2ParkingRouter";
3
+ export * from "./v3/V3ParkingRouter";
4
+ export * from "./v3/V3ParkingTariffsRouter";
3
5
  export * from "./v3/V3ParkingMachinesRouter";
@@ -16,5 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./v1/V1ParkingRouter"), exports);
18
18
  __exportStar(require("./v2/V2ParkingRouter"), exports);
19
+ __exportStar(require("./v3/V3ParkingRouter"), exports);
20
+ __exportStar(require("./v3/V3ParkingTariffsRouter"), exports);
19
21
  __exportStar(require("./v3/V3ParkingMachinesRouter"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/routers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output-gateway/routers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,8DAA4C;AAC5C,+DAA6C"}
@@ -1,7 +1,7 @@
1
1
  import { IParkingTariffPeriod } from "../../../../schema-definitions/models/interfaces/tariff/IParkingTariffPeriod";
2
2
  export interface IV3Charge {
3
3
  id: string;
4
- charge: number;
4
+ charge: string;
5
5
  charge_type: string;
6
6
  charge_order_index: number;
7
7
  charge_interval: number;
@@ -13,7 +13,7 @@ export interface IParkingTariffDto {
13
13
  accepts_mobile_payment: boolean;
14
14
  accepts_litacka: boolean;
15
15
  charge_currency: string;
16
- charge: number;
16
+ charge: string;
17
17
  charge_type: string;
18
18
  charge_order_index: number;
19
19
  charge_interval: number;
@@ -323,12 +323,11 @@ Vybraným parkovištím může být nahrazena location za Multipolygon ze zdroje
323
323
  - [OpenAPI](./openapi.yaml)
324
324
  - veřejné / neveřejné endpointy
325
325
  - částečně veřejná na úrovni filtrování podle poskytovatele dat
326
- - postman kolekce
327
- - TBD
326
+ - verze 3 neveřejná
328
327
 
329
- #### _/parking_
328
+ #### _/v2/parking_
330
329
 
331
- #### _/parking/:id_
330
+ #### _/v2/parking/:id_
332
331
 
333
332
  - zdrojové tabulky
334
333
  - parkings
@@ -337,23 +336,23 @@ Vybraným parkovištím může být nahrazena location za Multipolygon ze zdroje
337
336
  - `reservation_url` - přidáno volitelný atribut, který použijeme v datech od MPLA
338
337
  - Nový číselník `payment_methods`. Example: `{ payment_methods: ["card_online", "cash"] }`
339
338
 
340
- #### _/parking/detail_
339
+ #### _/v2/parking/detail_
341
340
 
342
- #### _/parking/detail/:id_
341
+ #### _/v2/parking/detail/:id_
343
342
 
344
343
  - zdrojové tabulky
345
344
  - parkings
346
345
  - parkings_location
347
346
  - detailnejší geometrie, vychází z OpenData IPR a doplňuje parametry z TSK (ftp)
348
347
 
349
- #### _/parking/tariffs/_
348
+ #### _/v2/parking/tariffs/_
350
349
 
351
- #### _/parking/tariffs/:tariffId_
350
+ #### _/v2/parking/tariffs/:tariffId_
352
351
 
353
352
  - zdrojové tabulky
354
353
  - parkings_tariffs
355
354
 
356
- #### _/parking/measurements_
355
+ #### _/v2/parking/measurements_
357
356
 
358
357
  - zdrojové tabulky
359
358
  - parkings_measurements_part
@@ -361,9 +360,9 @@ Vybraným parkovištím může být nahrazena location za Multipolygon ze zdroje
361
360
  - response header (`Link`) obsahuje metadata k předchozí a následující stránce
362
361
  - implementována možnost dotazování pomocí parametrů `limit` a `offset`
363
362
 
364
- #### _/parkings_
363
+ #### _/v1/parkings_
365
364
 
366
- #### _/parkings/:id_
365
+ #### _/v1/parkings/:id_
367
366
 
368
367
  _:warning: Deprecated, vyžijte /parking nebo /parking/detail_
369
368
 
@@ -380,7 +379,7 @@ _:warning: Deprecated, vyžijte /parking nebo /parking/detail_
380
379
  - navrácí pouze `tsk` data
381
380
  - používá sloupec centroid pro geolokaci, je nutné, aby vracel pouze body, ale parkoviště může být i multipolygon
382
381
 
383
- #### _/parkings/history_
382
+ #### _/v1/parkings/history_
384
383
 
385
384
  _:warning: Deprecated, využijte /parking/measurements_
386
385
 
@@ -389,3 +388,47 @@ _:warning: Deprecated, využijte /parking/measurements_
389
388
  - implementováno dodatečně
390
389
  - zpětně kompatibilní s Mongo GeoJSON history routerem
391
390
  - navrácí pouze `tsk` data
391
+
392
+ #### _/v3/parking_
393
+
394
+ - zdrojové tabulky
395
+ - parkings
396
+ - parkings_location
397
+ - added `special_access` column with possible values: `for_all, disabled, charging, parent, delivery, customer, resident, bus, designated, truck,motorcycle, RV`
398
+ - zatím vytvořeno pro nové API od TSK další budou následovat
399
+ - nový formát výstupu viz open api dokumentace
400
+
401
+ #### _/v3/parking/:id_
402
+
403
+ - zdrojové tabulky
404
+ - parkings
405
+ - parkings_location
406
+
407
+ #### _/v3/parking-tariff_
408
+
409
+ - zdrojové tabulky
410
+ - parkings_tariffs
411
+ - na výstupu děleno do charge bands a charges
412
+ - pod jedním tariffem může být více charge bands ~ každý řádek se stejným `tariff_id` je jeden charge band
413
+ - `valid_from` a `valid_to` se vztahují k charge band se vypočítá jako min a maximum z `valid_from` a `valid_to` ze všech chargů
414
+ - pod jedním charge band může být více charges pozná se podle `charge_band_name`
415
+
416
+
417
+ #### _/v3/parking-tariff/:id_
418
+
419
+ - zdrojové tabulky
420
+ - parkings_tariffs
421
+ - zobrazí konkrétní tariff, data stejná jako v `_/v3/parking-tariff_`
422
+
423
+ #### _/v3/parking-machines_
424
+
425
+ - zdrojové tabulky
426
+ - parkings_machines
427
+ - seznam parkovacích automatů s geometrií
428
+ - `type` nabývá hodnot: `payment_machine, info_box
429
+
430
+ #### _/v3/parking-machines/:id_
431
+
432
+ - zdrojové tabulky
433
+ - parkings_machines
434
+ - zobrazí konkrétní parkovací automat, data stejná jako v `_/v3/parking-machines_`
@@ -20,6 +20,8 @@ tags:
20
20
  description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> 💡 Parking Lots
21
21
  - name: 🅿️ Parking (v2)
22
22
  description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> 💡 Parking, parking zones, tarifs, measurements.
23
+ - name: 🅿️ Parking (v3)
24
+ description: 💡 Parking, tarifs, machines.
23
25
  paths:
24
26
  /v1/parkings:
25
27
  get:
@@ -573,6 +575,314 @@ paths:
573
575
  $ref: "#/components/responses/UnauthorizedError"
574
576
  404:
575
577
  description: Not found
578
+ /v3/parking:
579
+ get:
580
+ tags:
581
+ - 🅿️ Parking (v3)
582
+ summary: 'Get a list of parking locations with filtering options'
583
+ parameters:
584
+ - name: primarySource
585
+ in: query
586
+ schema:
587
+ type: array
588
+ items:
589
+ type: string
590
+ enum:
591
+ - tsk_v2
592
+ description: 'Filter by primary source. Use with square brackets `primarySource[]`'
593
+ - name: primarySourceId
594
+ in: query
595
+ schema:
596
+ type: string
597
+ example: 'c66bb668-eab6-49da-bc84-002263e1dce0'
598
+ description: 'Filter by primary source ID'
599
+ - name: boundingBox
600
+ in: query
601
+ schema:
602
+ type: string
603
+ example: '50.123,14.243,50.017,14.573'
604
+ description: 'Filter by bounding box in format "topLeft.lat,topLeft.lon,bottomRight.lat,bottomRight.lon", polygons that fit only partialy to selected bounding box are included'
605
+ - name: validFrom
606
+ in: query
607
+ schema:
608
+ type: string
609
+ format: date-time
610
+ example: '2022-08-01T00:00:00Z'
611
+ description: 'Filter by valid from date'
612
+ - name: accessDedicatedTo
613
+ in: query
614
+ schema:
615
+ type: array
616
+ items:
617
+ type: string
618
+ enum:
619
+ - for_all
620
+ - disabled
621
+ - charging
622
+ - parent
623
+ - delivery
624
+ - customer
625
+ - resident
626
+ - bus
627
+ - designated
628
+ - truck
629
+ - motorcycle
630
+ - RV
631
+ description: 'Experimental: Filter by access combinations to specific spaces in parking. Return only strictly matched parking by access to parking spaces'
632
+ - name: minutesBefore
633
+ in: query
634
+ schema:
635
+ type: integer
636
+ example: 10
637
+ description: 'Filter by time conditions based on last data update. By maximal minutes before last update.'
638
+ - name: updatedSince
639
+ in: query
640
+ schema:
641
+ type: string
642
+ example: '2022-07-25T00:00:00.000Z'
643
+ description: 'Filter by time conditions based on last data update. Date has to be in ISO8601 format.'
644
+ - name: limit
645
+ in: query
646
+ schema:
647
+ type: integer
648
+ default: 1000
649
+ maximum: 10000
650
+ minimum: 0
651
+ description: 'Number of results to return'
652
+ - name: offset
653
+ in: query
654
+ schema:
655
+ type: integer
656
+ default: 0
657
+ minimum: 0
658
+ description: 'Number of results to skip for pagination'
659
+ responses:
660
+ '200':
661
+ description: 'Successful response'
662
+ content:
663
+ application/json; charset=utf-8:
664
+ schema:
665
+ type: object
666
+ properties:
667
+ features:
668
+ type: array
669
+ items:
670
+ $ref: '#/components/schemas/Parking'
671
+ type:
672
+ type: string
673
+ example: FeatureCollection
674
+ /v3/parking/{id}:
675
+ get:
676
+ tags:
677
+ - 🅿️ Parking (v3)
678
+ summary: 'Get detailed information about a parking location by ID'
679
+ parameters:
680
+ - name: id
681
+ in: path
682
+ required: true
683
+ schema:
684
+ type: string
685
+ format: uuid
686
+ example: 'c66bb668-eab6-49da-bc84-002263e1dce0'
687
+ description: 'The UUID identifier of the parking location to retrieve'
688
+ responses:
689
+ '200':
690
+ description: 'Successful response'
691
+ content:
692
+ application/json:
693
+ schema:
694
+ $ref: '#/components/schemas/Parking'
695
+ /v3/parking-tariffs:
696
+ get:
697
+ tags:
698
+ - 🅿️ Parking (v3)
699
+ summary: 'Get a list of tariffs with filtering options'
700
+ parameters:
701
+ - name: primarySource
702
+ in: query
703
+ schema:
704
+ type: array
705
+ items:
706
+ type: string
707
+ enum:
708
+ - tsk_v2
709
+ example: tsk_v2
710
+ description: 'Filter by primary source. Use with square brackets `primarySource[]`'
711
+ - name: primarySourceId
712
+ in: query
713
+ schema:
714
+ type: string
715
+ example: '6c08e2f9-a884-4dce-81e3-00e3391f811a'
716
+ description: 'Filter by primary source ID of ChargeBand in Tariff (result show all tariffs that contains atleast one ChargeBand with the selected primary sources id and inside only ChargeBand objects that fit into that filter)'
717
+ - name: validFrom
718
+ in: query
719
+ schema:
720
+ type: string
721
+ format: date-time
722
+ example: '2022-08-01T00:00:00.000Z'
723
+ description: 'Filter by valid from date of ChargeBand in Tariff (result show all tariffs that contains atleast one valid ChargeBand and inside only ChargeBand objects that fit into that filter)'
724
+ - name: validTo
725
+ in: query
726
+ schema:
727
+ type: string
728
+ format: date-time
729
+ example: '2023-12-31T00:00:00.000Z'
730
+ description: 'Filter by valid to date of ChargeBand in Tariff (result show all tariffs that contains atleast one valid ChargeBand and inside only ChargeBand objects that fit into that filter)'
731
+ - name: limit
732
+ in: query
733
+ schema:
734
+ type: integer
735
+ default: 1000
736
+ maximum: 10000
737
+ minimum: 0
738
+ description: 'Number of results to return'
739
+ - name: offset
740
+ in: query
741
+ schema:
742
+ type: integer
743
+ default: 0
744
+ minimum: 0
745
+ description: 'Number of results to skip for pagination'
746
+ responses:
747
+ '200':
748
+ description: 'Successful response'
749
+ content:
750
+ application/json:
751
+ schema:
752
+ type: array
753
+ items:
754
+ $ref: '#/components/schemas/ParkingTariff'
755
+ /v3/parking-tariffs/{id}:
756
+ get:
757
+ tags:
758
+ - 🅿️ Parking (v3)
759
+ summary: 'Get a tariff by ID'
760
+ parameters:
761
+ - name: id
762
+ in: path
763
+ required: true
764
+ schema:
765
+ type: string
766
+ format: uuid
767
+ example: '0639c53f-c555-49ac-b5e0-bb3d50acf588'
768
+ description: 'UUID of the tariff to retrieve'
769
+ responses:
770
+ '200':
771
+ description: 'Successful response'
772
+ content:
773
+ application/json:
774
+ schema:
775
+ $ref: '#/components/schemas/ParkingTariff'
776
+ /v3/parking-machines:
777
+ get:
778
+ tags:
779
+ - 🅿️ Parking (v3)
780
+ summary: 'Get a list of parking machines with filtering options'
781
+ parameters:
782
+ - name: primarySource
783
+ in: query
784
+ schema:
785
+ type: array
786
+ items:
787
+ type: string
788
+ enum:
789
+ - tsk_v2
790
+ example: tsk_v2
791
+ description: 'Filter by primary source. Use with square brackets `primarySource[]`'
792
+ - name: primarySourceId
793
+ in: query
794
+ schema:
795
+ type: string
796
+ example: '4521afac-66db-4680-abc5-0006837d977a'
797
+ description: 'Filter by primary source ID'
798
+ - name: type
799
+ in: query
800
+ schema:
801
+ type: array
802
+ items:
803
+ type: string
804
+ enum:
805
+ - payment_machine
806
+ - info_box
807
+ example: type[]=payment_machine&type[]=info_box
808
+ description: 'Filter by type'
809
+ - name: boundingBox
810
+ in: query
811
+ schema:
812
+ type: string
813
+ example: '50.123,14.243,50.017,14.573'
814
+ description: 'Filter by bounding box in format "topLeft.lat,topLeft.lon,bottomRight.lat,bottomRight.lon", polygons that fit only partialy to selected bounding box are included'
815
+ - name: codeMask
816
+ in: query
817
+ schema:
818
+ type: string
819
+ example: '%88'
820
+ description: |
821
+ Filter by code mask using substring match and "%" wildcard (partial match).
822
+ Examples:
823
+ - `query` matches substring in codes
824
+ - `start%` matches codes starting with "start"
825
+ - `%end` matches codes ending with "end"
826
+ - `%middle%` matches codes containing "middle" anywhere
827
+ - name: validFrom
828
+ in: query
829
+ schema:
830
+ type: string
831
+ format: date-time
832
+ example: '2023-08-01T00:00:00Z'
833
+ description: 'Filter by valid from date'
834
+ - name: limit
835
+ in: query
836
+ schema:
837
+ type: integer
838
+ default: 1000
839
+ maximum: 10000
840
+ minimum: 0
841
+ description: 'Number of results to return'
842
+ - name: offset
843
+ in: query
844
+ schema:
845
+ type: integer
846
+ default: 0
847
+ minimum: 0
848
+ description: 'Number of results to skip for pagination'
849
+ responses:
850
+ '200':
851
+ description: 'Successful response'
852
+ content:
853
+ application/json; charset=utf-8:
854
+ schema:
855
+ type: object
856
+ properties:
857
+ features:
858
+ type: array
859
+ items:
860
+ $ref: '#/components/schemas/ParkingMachine'
861
+ type:
862
+ type: string
863
+ example: FeatureCollection
864
+ /v3/parking-machines/{id}:
865
+ get:
866
+ tags:
867
+ - 🅿️ Parking (v3)
868
+ summary: 'Get a parking machine by ID'
869
+ parameters:
870
+ - name: id
871
+ in: path
872
+ required: true
873
+ schema:
874
+ type: string
875
+ format: uuid
876
+ example: '4521afac-66db-4680-abc5-0006837d977a'
877
+ description: 'UUID of the parking machine to retrieve'
878
+ responses:
879
+ '200':
880
+ description: 'Successful response'
881
+ content:
882
+ application/json:
883
+ schema:
884
+ $ref: '#/components/schemas/ParkingMachine'
885
+
576
886
  components:
577
887
  responses:
578
888
  UnauthorizedError:
@@ -1195,3 +1505,544 @@ components:
1195
1505
  type: string
1196
1506
  nullable: true
1197
1507
  example: Mon-Sun 14:30
1508
+ # v3 schemas
1509
+ Parking:
1510
+ type: object
1511
+ title: Parking
1512
+ properties:
1513
+ geometry:
1514
+ type: object
1515
+ properties:
1516
+ type:
1517
+ type: string
1518
+ enum:
1519
+ - Point
1520
+ - Polygon
1521
+ - MultiPolygon
1522
+ description: The type of geometry (GeoJSON Point, Polygon, MultiPolygon).
1523
+ coordinates:
1524
+ oneOf:
1525
+ - type: array
1526
+ items:
1527
+ type: number
1528
+ example: [14.441252, 50.109318]
1529
+ description: Point coordinates
1530
+ - type: array
1531
+ items:
1532
+ type: array
1533
+ items:
1534
+ type: array
1535
+ items:
1536
+ type: number
1537
+ example:
1538
+ [
1539
+ [14.50823156003554, 50.10498927328214],
1540
+ [14.505782430390298, 50.1031042405622],
1541
+ [14.509701037821998, 50.1029471511537],
1542
+ [14.50823156003554, 50.10498927328214]
1543
+ ]
1544
+ description: Polygon coordinates
1545
+ - type: array
1546
+ items:
1547
+ type: array
1548
+ items:
1549
+ type: array
1550
+ items:
1551
+ type: array
1552
+ items:
1553
+ type: number
1554
+ example:
1555
+ [
1556
+ [
1557
+ [14.50823156003554, 50.10498927328214],
1558
+ [14.505782430390298, 50.1031042405622],
1559
+ [14.509701037821998, 50.1029471511537],
1560
+ [14.50823156003554, 50.10498927328214]
1561
+ ],
1562
+ [
1563
+ [14.50823156003554, 50.10498927328214],
1564
+ [14.505782430390298, 50.1031042405622],
1565
+ [14.509701037821998, 50.1029471511537],
1566
+ [14.50823156003554, 50.10498927328214]
1567
+ ]
1568
+ ]
1569
+ description: MultiPolygon coordinates
1570
+ description: Coordinates of the geometry.
1571
+ description: GeoJSON geometry of the parking location.
1572
+ properties:
1573
+ type: object
1574
+ properties:
1575
+ id:
1576
+ type: string
1577
+ description: 'The identifier for the parking location.'
1578
+ primary_source:
1579
+ type: string
1580
+ enum:
1581
+ - tsk_v2
1582
+ description: 'The primary source of the parking location. Assigned by us.'
1583
+ primary_source_id:
1584
+ type: string
1585
+ nullable: true
1586
+ description: 'The ID defined by the primary source. As in the source data.'
1587
+ name:
1588
+ type: string
1589
+ nullable: true
1590
+ description: 'The name of the parking location.'
1591
+ valid_from:
1592
+ type: string
1593
+ format: date-time
1594
+ description: 'The start date and time when the parking location is opened from. Or date of implementation.'
1595
+ centroid:
1596
+ type: object
1597
+ properties:
1598
+ type:
1599
+ type: string
1600
+ enum:
1601
+ - Point
1602
+ coordinates:
1603
+ type: array
1604
+ items:
1605
+ type: number
1606
+ description: 'The GeoJSON centroid of the parking location, centroid is always point in geometry.'
1607
+ last_updated_at:
1608
+ type: string
1609
+ format: date-time
1610
+ description: 'The date and time when info about the parking location was last checked and updated.'
1611
+ last_modified_at_source:
1612
+ type: string
1613
+ format: date-time
1614
+ description: 'The date and time when the parking location was last modified at the source. In case data source provides it.'
1615
+ space:
1616
+ type: array
1617
+ items:
1618
+ $ref: '#/components/schemas/ParkingSpace'
1619
+ tariff:
1620
+ type: string
1621
+ format: uuid
1622
+ description: 'UUID of related parking tariff.'
1623
+ required:
1624
+ - id
1625
+ - primary_source
1626
+ - valid_from
1627
+ - last_updated_at
1628
+ - centroid
1629
+ type:
1630
+ type: string
1631
+ example: Feature
1632
+ ParkingSpace:
1633
+ type: object
1634
+ title: Parking Space
1635
+ properties:
1636
+ geometry:
1637
+ type: object
1638
+ properties:
1639
+ type:
1640
+ type: string
1641
+ enum:
1642
+ - Point
1643
+ - Polygon
1644
+ - MultiPolygon
1645
+ description: The type of geometry (GeoJSON Point, Polygon, MultiPolygon).
1646
+ coordinates:
1647
+ oneOf:
1648
+ - type: array
1649
+ items:
1650
+ type: number
1651
+ example: [14.441252, 50.109318]
1652
+ description: Point coordinates
1653
+ - type: array
1654
+ items:
1655
+ type: array
1656
+ items:
1657
+ type: array
1658
+ items:
1659
+ type: number
1660
+ example:
1661
+ [
1662
+ [14.50823156003554, 50.10498927328214],
1663
+ [14.505782430390298, 50.1031042405622],
1664
+ [14.509701037821998, 50.1029471511537],
1665
+ [14.50823156003554, 50.10498927328214]
1666
+ ]
1667
+ description: Polygon coordinates
1668
+ - type: array
1669
+ items:
1670
+ type: array
1671
+ items:
1672
+ type: array
1673
+ items:
1674
+ type: array
1675
+ items:
1676
+ type: number
1677
+ example:
1678
+ [
1679
+ [
1680
+ [14.50823156003554, 50.10498927328214],
1681
+ [14.505782430390298, 50.1031042405622],
1682
+ [14.509701037821998, 50.1029471511537],
1683
+ [14.50823156003554, 50.10498927328214]
1684
+ ],
1685
+ [
1686
+ [14.50823156003554, 50.10498927328214],
1687
+ [14.505782430390298, 50.1031042405622],
1688
+ [14.509701037821998, 50.1029471511537],
1689
+ [14.50823156003554, 50.10498927328214]
1690
+ ]
1691
+ ]
1692
+ description: MultiPolygon coordinates
1693
+ description: Coordinates of the geometry.
1694
+ description: GeoJSON geometry of the parking space.
1695
+ properties:
1696
+ type: object
1697
+ properties:
1698
+ id:
1699
+ type: string
1700
+ description: 'The identifier for the parking space.'
1701
+ capacity:
1702
+ type: integer
1703
+ minimum: 0
1704
+ nullable: true
1705
+ description: 'The capacity of the parking space.'
1706
+ filter:
1707
+ type: string
1708
+ description: 'Specific marking of parking space (blue zone, A zone etc.).'
1709
+ access_dedicated_to:
1710
+ type: array
1711
+ items:
1712
+ type: string
1713
+ enum:
1714
+ - disabled
1715
+ - charging
1716
+ - parent
1717
+ - delivery
1718
+ - customer
1719
+ - resident
1720
+ - bus
1721
+ - designated
1722
+ - truck
1723
+ - all
1724
+ - motorcycle
1725
+ - RV
1726
+ minItems: 0
1727
+ description: |
1728
+ Array of dedicated access types for the parking space:
1729
+ * `disabled` - reserved for disabled individuals
1730
+ * `charging` - intended for electric vehicle charging
1731
+ * `parent` - designated for parents with children
1732
+ * `delivery` - exclusively for delivery purposes
1733
+ * `customer` - exclusive for customers
1734
+ * `resident` - reserved for residents
1735
+ * `bus` - reserved for buses
1736
+ * `designated` - specific purpose (e.g., school, embassy)
1737
+ * `truck` - reserved for trucks
1738
+ * `all` - open for all vehicles
1739
+ * `motorcycle` - for motorcycles only
1740
+ * `RV` - reserved for recreational vehicles
1741
+ address:
1742
+ $ref: '#/components/schemas/ParkingAddress'
1743
+ restriction:
1744
+ type: array
1745
+ items:
1746
+ $ref: '#/components/schemas/ParkingRestriction'
1747
+ required:
1748
+ - id
1749
+ - access_dedicated_to
1750
+ type:
1751
+ type: string
1752
+ example: Feature
1753
+ ParkingRestriction:
1754
+ title: Parking Restriction
1755
+ description:
1756
+ Vehicles with a special feature.
1757
+ * `CNG` - Compressed Natural Gas vehicles
1758
+ * `LPG` - Liquefied Petroleum Gas vehicles
1759
+ * `bus` - buses
1760
+ * `truck` - trucks
1761
+ * `motorcycle` - motorcycles
1762
+ * `trailer` - trailers
1763
+ * `RV` - recreational vehicles
1764
+ type: object
1765
+ properties:
1766
+ default:
1767
+ type: string
1768
+ enum:
1769
+ - cng
1770
+ - lpg
1771
+ - bus
1772
+ - truck
1773
+ - motorcycle
1774
+ - trailer
1775
+ - rv
1776
+ additionalProperties:
1777
+ type: boolean
1778
+ ParkingAddress:
1779
+ type: object
1780
+ title: Parking Address
1781
+ properties:
1782
+ address_formated:
1783
+ type: string
1784
+ nullable: true
1785
+ description: 'Formatted address of the parking location.'
1786
+ country:
1787
+ type: string
1788
+ nullable: true
1789
+ description: 'Country of the parking location.'
1790
+ locality:
1791
+ type: string
1792
+ nullable: true
1793
+ description: 'Locality of the parking location.'
1794
+ region:
1795
+ type: string
1796
+ nullable: true
1797
+ description: 'Region of the parking location.'
1798
+ postal_code:
1799
+ type: string
1800
+ nullable: true
1801
+ description: 'Postal code of the parking location.'
1802
+ street_address:
1803
+ type: string
1804
+ nullable: true
1805
+ description: 'Street address of the parking location.'
1806
+ ParkingTariff:
1807
+ type: object
1808
+ title: Parking Tariff
1809
+ properties:
1810
+ id:
1811
+ type: string
1812
+ format: uuid
1813
+ description: 'The UUID identifier for the tariff.'
1814
+ charge_bands:
1815
+ type: array
1816
+ items:
1817
+ $ref: '#/components/schemas/ParkingChargeBand'
1818
+ description: 'Array of Charge Band objects that represent tariff categories for different users.'
1819
+ required:
1820
+ - id
1821
+ - charge_bands
1822
+ ParkingChargeBand:
1823
+ type: object
1824
+ title: Parking Charge Band
1825
+ properties:
1826
+ primary_source:
1827
+ type: string
1828
+ enum: ['tsk_v2']
1829
+ description: 'The primary source of the charge band.'
1830
+ primary_source_id:
1831
+ type: string
1832
+ nullable: true
1833
+ description: 'The ID defines by the primary source.'
1834
+ maximum_duration:
1835
+ type: integer
1836
+ minimum: 0
1837
+ nullable: true
1838
+ description: 'Maximum duration for charging (in seconds).'
1839
+ valid_from:
1840
+ type: string
1841
+ format: date-time
1842
+ description: 'Valid from date.'
1843
+ valid_to:
1844
+ type: string
1845
+ format: date-time
1846
+ nullable: true
1847
+ description: 'Valid to date.'
1848
+ last_updated_at:
1849
+ type: string
1850
+ format: date-time
1851
+ description: 'The date and time when info about the tariff category was last checked and updated.'
1852
+ last_modified_at_source:
1853
+ type: string
1854
+ format: date-time
1855
+ nullable: true
1856
+ description: 'The date and time when the tariff category was last modified at the source.'
1857
+ charges:
1858
+ type: array
1859
+ items:
1860
+ $ref: '#/components/schemas/ParkingCharge'
1861
+ description: 'Array of Charge objects.'
1862
+ required:
1863
+ - primary_source
1864
+ - valid_from
1865
+ ParkingCharge:
1866
+ type: object
1867
+ title: Parking Charge
1868
+ properties:
1869
+ id:
1870
+ type: string
1871
+ format: uuid
1872
+ description: 'The UUID identifier for the charge.'
1873
+ charge:
1874
+ type: string
1875
+ example: '0.6666666666666666'
1876
+ description: 'Charge amount.'
1877
+ charge_type:
1878
+ type: string
1879
+ enum: ['other', 'minimum', 'maximum']
1880
+ description: 'Type of charge.'
1881
+ charge_order_index:
1882
+ type: integer
1883
+ minimum: 0
1884
+ description: 'Order index for charges.'
1885
+ charge_interval:
1886
+ type: integer
1887
+ minimum: 0
1888
+ description: 'Charge interval (in seconds).'
1889
+ max_iterations_of_charge:
1890
+ type: integer
1891
+ minimum: 0
1892
+ description: 'Maximum iterations of charge.'
1893
+ min_iterations_of_charge:
1894
+ type: integer
1895
+ minimum: 0
1896
+ description: 'Minimum iterations of charge.'
1897
+ valid_from:
1898
+ type: string
1899
+ format: date-time
1900
+ description: 'Valid from date.'
1901
+ valid_to:
1902
+ type: string
1903
+ format: date-time
1904
+ nullable: true
1905
+ description: 'Valid to date.'
1906
+ periods_of_time:
1907
+ type: array
1908
+ items:
1909
+ $ref: '#/components/schemas/ParkingPeriodsOfTime'
1910
+ description: 'Array of Periods of Time objects.'
1911
+ required:
1912
+ - id
1913
+ - charge
1914
+ - charge_type
1915
+ - charge_order_index
1916
+ - charge_interval
1917
+ - valid_from
1918
+ ParkingPeriodsOfTime:
1919
+ type: object
1920
+ title: Parking Periods Of Time
1921
+ properties:
1922
+ day_in_week:
1923
+ type: string
1924
+ enum: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su']
1925
+ description: 'Day of the week.'
1926
+ start:
1927
+ type: string
1928
+ format: time
1929
+ description: 'Start time of the periods of time.'
1930
+ end:
1931
+ type: string
1932
+ format: time
1933
+ description: 'End time of the periods of time.'
1934
+ ph:
1935
+ type: string
1936
+ enum: ['PH_only', 'PH_off']
1937
+ description: 'Public holiday availability.'
1938
+ required:
1939
+ - day_in_week
1940
+ - start
1941
+ - end
1942
+ - ph
1943
+ ParkingMachine:
1944
+ type: object
1945
+ title: Parking Machine
1946
+ properties:
1947
+ geometry:
1948
+ type: object
1949
+ properties:
1950
+ type:
1951
+ type: string
1952
+ enum:
1953
+ - Point
1954
+ - Polygon
1955
+ - MultiPolygon
1956
+ description: The type of geometry (GeoJSON Point, Polygon, MultiPolygon).
1957
+ coordinates:
1958
+ oneOf:
1959
+ - type: array
1960
+ items:
1961
+ type: number
1962
+ example: [14.441252, 50.109318]
1963
+ description: Point coordinates
1964
+ - type: array
1965
+ items:
1966
+ type: array
1967
+ items:
1968
+ type: array
1969
+ items:
1970
+ type: number
1971
+ example:
1972
+ [
1973
+ [14.50823156003554, 50.10498927328214],
1974
+ [14.505782430390298, 50.1031042405622],
1975
+ [14.509701037821998, 50.1029471511537],
1976
+ [14.50823156003554, 50.10498927328214]
1977
+ ]
1978
+ description: Polygon coordinates
1979
+ - type: array
1980
+ items:
1981
+ type: array
1982
+ items:
1983
+ type: array
1984
+ items:
1985
+ type: array
1986
+ items:
1987
+ type: number
1988
+ example:
1989
+ [
1990
+ [
1991
+ [14.50823156003554, 50.10498927328214],
1992
+ [14.505782430390298, 50.1031042405622],
1993
+ [14.509701037821998, 50.1029471511537],
1994
+ [14.50823156003554, 50.10498927328214]
1995
+ ],
1996
+ [
1997
+ [14.50823156003554, 50.10498927328214],
1998
+ [14.505782430390298, 50.1031042405622],
1999
+ [14.509701037821998, 50.1029471511537],
2000
+ [14.50823156003554, 50.10498927328214]
2001
+ ]
2002
+ ]
2003
+ description: MultiPolygon coordinates
2004
+ description: Coordinates of the geometry.
2005
+ description: GeoJSON geometry of the parking machine.
2006
+ properties:
2007
+ type: object
2008
+ properties:
2009
+ id:
2010
+ type: string
2011
+ format: uuid
2012
+ description: The UUID identifier for the parking machine.
2013
+ primary_source:
2014
+ type: string
2015
+ enum:
2016
+ - tsk_v2
2017
+ description: The primary source of the parking machine.
2018
+ primary_source_id:
2019
+ type: string
2020
+ nullable: true
2021
+ description: The ID defined by the primary source.
2022
+ code:
2023
+ type: string
2024
+ description: The code of the parking machine.
2025
+ machine_type:
2026
+ type: string
2027
+ enum:
2028
+ - payment_machine
2029
+ - info_box
2030
+ description: |
2031
+ The type of the parking machine.
2032
+ * `payment_machine` - a facility where payment can be made for parking; often equipped with payment options
2033
+ * `info_box` - an installation providing information and possibly a QR code, without payment capabilities.
2034
+ valid_from:
2035
+ type: string
2036
+ format: date-time
2037
+ description: The start date when the parking machine is valid.
2038
+ tariff_id:
2039
+ type: string
2040
+ format: uuid
2041
+ description: The UUID identifier for the tariff connected to the parking machine.
2042
+ required:
2043
+ - id
2044
+ - primary_source
2045
+ - valid_from
2046
+ type:
2047
+ type: string
2048
+ example: Feature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/parkings",
3
- "version": "1.6.1-dev.1034818356",
3
+ "version": "1.6.1-dev.1035889725",
4
4
  "description": "Golemio Parkings Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
15
15
  "apidocs-test": "npm run apidocs-test-input && npm run apidocs-test-output",
16
16
  "apidocs-test-input": "cross-env NODE_ENV=test golemio swagger api-test --oas docs/openapi-input.yaml --script test/api-docs/input-gateway/server.js",
17
- "apidocs-test-output": "cross-env NODE_ENV=test golemio swagger api-test --oas docs/openapi-output.yaml --script test/api-docs/output-gateway/server.js",
17
+ "apidocs-test-output": "cross-env NODE_ENV=test golemio swagger api-test --oas docs/openapi-output.yaml --script test/api-docs/output-gateway/server.js --config test/api-docs/output-gateway/portman-config.json",
18
18
  "generate-docs": "typedoc --out docs/typedoc src",
19
19
  "lint": "eslint --cache \"{src,test}/**/*.ts\""
20
20
  },