diff --git a/.env.local-dev b/.env.local-dev index e3bd2a647..68360b73a 100644 --- a/.env.local-dev +++ b/.env.local-dev @@ -2,7 +2,8 @@ # see app-config-properties.ts for list of all configurable values EDC_UI_ACTIVE_PROFILE=sovity-open-source -EDC_UI_DATA_MANAGEMENT_API_URL=http://localhost:3000/api/v1/data +EDC_UI_USE_FAKE_BACKEND=true +EDC_UI_DATA_MANAGEMENT_API_URL=http://edc.fake-backend EDC_UI_DATA_MANAGEMENT_API_KEY=no-api-key-required-in-local-dev EDC_UI_CATALOG_URLS=http://existing-other-connector/v1/ids/data,http://does-not-exist-but-is-super-long-so-we-can-test/v1/ids/data, http://how-wrapping-works-in-subtext-of-catalog-url-select/v1/ids/data EDC_UI_LOGOUT_URL=https://example.com/logout diff --git a/fake-backend/.gitignore b/fake-backend/.gitignore deleted file mode 100644 index b512c09d4..000000000 --- a/fake-backend/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/fake-backend/json/assets.json b/fake-backend/json/assets.json deleted file mode 100644 index 81dbed371..000000000 --- a/fake-backend/json/assets.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "assets": [ - { - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2023-jan", - "asset:prop:name": "Rail Network DB 2023 January", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail", - "asset:prop:some-unsupported-property": "test" - }, - "privateProperties": {} - }, - { - "properties": { - "asset:prop:id": "urn:artifact:bitcoin-data", - "asset:prop:name": "Bitcoin Data", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "description", - "asset:prop:version": "1.0", - "asset:prop:type": "HttpData", - "asset:prop:originator": "https://sovity-001.stage-sovity.azure.sovity.io/control/api/v1/ids/data" - }, - "privateProperties": {} - } - ] -} diff --git a/fake-backend/json/brokerCatalogPage.json b/fake-backend/json/brokerCatalogPage.json deleted file mode 100644 index c567bcefa..000000000 --- a/fake-backend/json/brokerCatalogPage.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "availableFilters": { - "fields": [ - { - "id": "filter1", - "title": "Test Filter", - "values": [ - {"id": "filter1-1", "title": "Electromobility"}, - {"id": "", "title": ""} - ] - }, - { - "id": "filter2", - "title": "Test Filter With Long Values", - "values": [ - { - "id": "filter2-1", - "title": "Some Other Filter Value That's Very Long. In fact it should be so long that it wraps around to the next multiple lines." - } - ] - }, - { - "id": "filter3", - "title": "Test Filter With Many Values", - "values": [ - {"id": "value1", "title": "Value 1"}, - {"id": "value2", "title": "Value 2"}, - {"id": "value3", "title": "Value 3"}, - {"id": "value4", "title": "Value 4"}, - {"id": "value5", "title": "Value 5"}, - {"id": "value6", "title": "Value 6"}, - {"id": "value7", "title": "Value 7"}, - {"id": "value8", "title": "Value 8"}, - {"id": "value9", "title": "Value 9"} - ] - } - ] - }, - "availableSortings": [ - {"sorting": "TITLE", "title": "Test Sorting"}, - {"sorting": "ORIGINATOR", "title": "Other Sorting"} - ], - "paginationMetadata": { - "numTotal": 62, - "numVisible": 20, - "pageOneBased": 1, - "pageSize": 20 - }, - "dataOffers": [ - { - "assetId": "urn:artifact:my-asset", - "connectorEndpoint": "http://my-connector/ids/data", - "connectorOnlineStatus": "ONLINE", - "connectorOfflineSinceOrLastUpdatedAt": "2023-05-31T12:02:41+02:00", - "createdAt": "2023-05-26T12:02:41+02:00", - "updatedAt": "2023-05-31T12:02:41+02:00", - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2023-jan", - "asset:prop:name": "Rail Network DB 2023 January", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail" - }, - "contractOffers": [ - { - "contractOfferId": "my-contract-offer-1", - "createdAt": "2023-05-26T12:02:41+02:00", - "updatedAt": "2023-05-31T12:02:41+02:00", - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"action\": {\n \"type\": \"USE\"\n },\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ]\n }\n ],\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - } - } - ] - }, - { - "assetId": "urn:artifact:my-asset", - "connectorEndpoint": "http://my-connector/ids/data", - "connectorOnlineStatus": "OFFLINE", - "connectorOfflineSinceOrLastUpdatedAt": "2023-05-31T12:02:41+02:00", - "createdAt": "2023-05-26T12:02:41+02:00", - "updatedAt": "2023-05-31T12:02:41+02:00", - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2023-jan", - "asset:prop:name": "Rail Network DB 2023 January TEST2", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail" - }, - "contractOffers": [ - { - "contractOfferId": "my-contract-offer-1", - "createdAt": "2023-05-26T12:02:41+02:00", - "updatedAt": "2023-05-31T12:02:41+02:00", - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"action\": {\n \"type\": \"USE\"\n },\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ]\n }\n ],\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - } - } - ] - }, - { - "assetId": "urn:artifact:my-asset", - "connectorEndpoint": "http://my-connector/ids/data", - "connectorOnlineStatus": "DEAD", - "connectorOfflineSinceOrLastUpdatedAt": "2023-05-31T12:02:41+02:00", - "createdAt": "2023-05-26T12:02:41+02:00", - "updatedAt": "2023-05-31T12:02:41+02:00", - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2023-jan", - "asset:prop:name": "Rail Network DB 2023 January TEST3", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail" - }, - "contractOffers": [ - { - "contractOfferId": "my-contract-offer-1", - "createdAt": "2023-05-26T12:02:41+02:00", - "updatedAt": "2023-05-31T12:02:41+02:00", - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"action\": {\n \"type\": \"USE\"\n },\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ]\n }\n ],\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - } - } - ] - } - ] -} diff --git a/fake-backend/json/brokerConnectorPage.json b/fake-backend/json/brokerConnectorPage.json deleted file mode 100644 index 0ad1f36d4..000000000 --- a/fake-backend/json/brokerConnectorPage.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "availableSortings": [ - {"sorting": "MOST_RECENT", "title": "Most Recent"}, - {"sorting": "TITLE", "title": "By Title"} - ], - "paginationMetadata": { - "numTotal": 2, - "numVisible": 2, - "pageOneBased": 2, - "pageSize": 1 - }, - "connectors": [ - { - "id": "https://example.com", - "endpoint": "https://example.com/ids/data", - "createdAt": "2023-05-31T14:06:21.536182+02:00", - "onlineStatus": "OFFLINE", - "numContractOffers": 0 - }, - { - "id": "https://other-connector.com", - "endpoint": "https://other-connector.com/ids/data", - "createdAt": "2023-05-31T14:06:21.536182+02:00", - "lastSuccessfulRefreshAt": "2023-05-31T14:06:21.536182+02:00", - "lastRefreshAttemptAt": "2023-05-31T14:06:21.536182+02:00", - "onlineStatus": "ONLINE", - "numContractOffers": 2 - }, - { - "id": "https://example2.com", - "endpoint": "https://example2.com/ids/data", - "createdAt": "2022-05-31T14:06:21.536182+02:00", - "onlineStatus": "DEAD", - "numContractOffers": 0 - } - ] -} diff --git a/fake-backend/json/catalog1.json b/fake-backend/json/catalog1.json deleted file mode 100644 index f234883ed..000000000 --- a/fake-backend/json/catalog1.json +++ /dev/null @@ -1,337 +0,0 @@ -{ - "id": "default", - "contractOffers": [ - { - "id": "offer:6db25605-cd8c-4528-ade2-6a90389d06ac", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:bitcoin", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-01T23:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-04T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": "urn:artifact:bitcoin", - "@type": { - "@policytype": "set" - } - }, - "asset": { - "id": "urn:artifact:db-rail-network-2023-jan", - "createdAt": 1672751462682, - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2023-jan", - "asset:prop:name": "Rail Network DB 2023 January", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail" - } - }, - "provider": "urn:connector:provider", - "consumer": "urn:connector:consumer", - "offerStart": null, - "offerEnd": null, - "contractStart": null, - "contractEnd": null - }, - { - "id": "offer:6db25605-cd8c-4528-ade2-6a90349d06ac", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:bitcoin", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-01T23:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-04T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": "urn:artifact:bitcoin", - "@type": { - "@policytype": "set" - } - }, - "asset": { - "id": "urn:artifact:db-rail-network-2022-dec", - "createdAt": 1672751462682, - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2022-dec", - "asset:prop:name": "Rail Network DB 2022 December", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.12.2023, valid until 31.12.2022. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail" - } - }, - "provider": "urn:connector:provider", - "consumer": "urn:connector:consumer", - "offerStart": null, - "offerEnd": null, - "contractStart": null, - "contractEnd": null - }, - { - "id": "offer:6db25605-cd8c-4528-ade1-6a90389d06ac", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:bitcoin", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-01T23:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-04T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": "urn:artifact:bitcoin", - "@type": { - "@policytype": "set" - } - }, - "asset": { - "id": "urn:artifact:test-asset-from-hell-with-massive-title-so-massive-in-fact-that-it-will-definitely-explode-this-ui-in-every-direction-hf-lol", - "createdAt": 1672751462682, - "properties": { - "asset:prop:id": "urn:artifact:test-asset-from-hell-with-massive-title-so-massive-in-fact-that-it-will-definitely-explode-this-ui-in-every-direction-hf-lol", - "asset:prop:name": "Example Very Long Title Multiline Asset c459954361b0e4133f4872ea5977e3fb2971f3a33f207ea9d33ec70790b339f8", - "asset:prop:version": "1.1.19_2023-04-01_c459954361b0e4133f4872ea5977e3fb2971f3a33f207ea9d33ec70790b339f8", - "asset:prop:originator": null, - "asset:prop:originatorOrganization": "Mitsui Engineering & Shipbuilding Co Ltd Department XYZ (B2)", - "asset:prop:keywords": "Mitsui Engineering & Shipbuilding Co Ltd, test, asset, test, asset, test, asset, test, asset, test, asset, test, asset, test", - "asset:prop:contenttype": "text/plain", - "asset:prop:description": "A simple test asset.\nMultiple Lines\nShould be rendered\nAs such.\n\n\n\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about/?sessid=8e105c1c7fa6bf96f79285d10fe13b6b02d6d35d2cb76dfe4e0646bffb345cf0", - "asset:prop:standardLicense": "https://my.cool-api.gg/license?sessid=8e105c1c7fa6bf96f79285d10fe13b6b02d6d35d2cb76dfe4e0646bffb345cf0", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs?sessid=8e105c1c7fa6bf96f79285d10fe13b6b02d6d35d2cb76dfe4e0646bffb345cf0&feature=363ccc506b1a780eb9e879abb5bd1de1339870a569eea2cc8cd2ee86c8db86ce", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Road" - } - }, - "provider": "urn:connector:provider", - "consumer": "urn:connector:consumer", - "offerStart": null, - "offerEnd": null, - "contractStart": null, - "contractEnd": null - }, - - { - "id": "offer:6db25605-cd8c-4528-ade1-6a80389ds6ad", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:ernaehrungstabelle", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-01T23:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-04T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": "urn:artifact:ernaehrungstabelle", - "@type": { - "@policytype": "set" - } - }, - "asset": { - "id": "urn:artifact:ernaehrungstabelle", - "createdAt": 1672751462682, - "properties": { - "asset:prop:byteSize": null, - "asset:prop:name": "Ernährungstabelle ABC", - "asset:prop:contenttype": "text/plain", - "asset:prop:description": "qweqwe", - "asset:prop:version": "1.0", - "asset:prop:id": "urn:artifact:ernaehrungstabelle", - "asset:prop:fileName": null, - "asset:prop:originator": "http://connector-a-controlplane-1:8282/api/v1/ids/data" - } - }, - "provider": "urn:connector:provider", - "consumer": "urn:connector:consumer", - "offerStart": null, - "offerEnd": null, - "contractStart": null, - "contractEnd": null - } - ] -} diff --git a/fake-backend/json/catalog2.json b/fake-backend/json/catalog2.json deleted file mode 100644 index ed474e7d7..000000000 --- a/fake-backend/json/catalog2.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "id": "default", - "contractOffers": [ - { - "id": "offer:6db25605-cd8c-4528-ade1-6a80389d06ad", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:ernaehrungstabelle", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-01T23:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-01-04T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": "urn:artifact:ernaehrungstabelle", - "@type": { - "@policytype": "set" - } - }, - "asset": { - "id": "urn:artifact:ernaehrungstabelle", - "createdAt": 1672751462682, - "properties": { - "asset:prop:byteSize": null, - "asset:prop:name": "Ernährungstabelle ABC", - "asset:prop:contenttype": "text/plain", - "asset:prop:description": "qweqwe", - "asset:prop:version": "1.0", - "asset:prop:id": "urn:artifact:ernaehrungstabelle", - "asset:prop:fileName": null, - "asset:prop:originator": "http://connector-a-controlplane-1:8282/api/v1/ids/data" - } - }, - "provider": "urn:connector:provider", - "consumer": "urn:connector:consumer", - "offerStart": null, - "offerEnd": null, - "contractStart": null, - "contractEnd": null - } - ] -} diff --git a/fake-backend/json/connectorLimits.json b/fake-backend/json/connectorLimits.json deleted file mode 100644 index 66e3a4bf8..000000000 --- a/fake-backend/json/connectorLimits.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "numActiveConsumingContractAgreements": 3, - "maxActiveConsumingContractAgreements": 2 -} diff --git a/fake-backend/json/contractAgreementPage.json b/fake-backend/json/contractAgreementPage.json deleted file mode 100644 index 5a2aeadfb..000000000 --- a/fake-backend/json/contractAgreementPage.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "contractAgreements": [ - { - "contractAgreementId": "my-own-asset-cd:f52a5d30-6356-4a55-a75a-3c45d7a88c3e", - "direction": "PROVIDING", - "counterPartyAddress": "http://edc2:11003/api/v1/ids/data", - "counterPartyId": "urn:connector:example-connector", - "contractSigningDate": "2022-03-20T11:18:59.659Z", - "contractStartDate": "2022-03-20T11:18:59.659Z", - "contractEndDate": "2022-04-20T20:04:35.658Z", - "asset": { - "assetId": "urn:artifact:my-own-asset", - "createdAt": "2023-04-24T12:33:46.779Z", - "properties": { - "asset:prop:keywords": "example, keyword", - "asset:prop:name": "My Own Asset", - "asset:prop:curatorOrganizationName": "Example GmbH", - "asset:prop:description": "This is an example Asset that will be provided by this connector!", - "asset:prop:id": "urn:artifact:my-own-asset", - "asset:prop:originator": "http://edc:11003/api/v1/ids/data", - "asset:prop:language": "https://w3id.org/idsa/code/EN" - } - }, - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"uid\": null,\n \"target\": \"urn:artifact:my-own-asset\",\n \"action\": {\n \"type\": \"USE\",\n \"includedIn\": null,\n \"constraint\": null\n },\n \"assignee\": null,\n \"assigner\": null,\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ],\n \"duties\": []\n }\n ],\n \"prohibitions\": [],\n \"obligations\": [],\n \"extensibleProperties\": {},\n \"inheritsFrom\": null,\n \"assigner\": null,\n \"assignee\": null,\n \"target\": \"urn:artifact:my-own-asset\",\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - }, - "transferProcesses": [ - { - "transferProcessId": "2679d234-3340-44bf-a96b-c88b57838033", - "lastUpdatedDate": "2023-04-24T12:34:52.896Z", - "state": { - "code": 600, - "name": "IN_PROGRESS", - "simplifiedState": "RUNNING" - }, - "errorMessage": null - }, - { - "transferProcessId": "c2863791-c8f3-49e7-8137-7fadaa36b4e4", - "lastUpdatedDate": "2023-04-24T12:34:40.801Z", - "state": { - "code": 800, - "name": "COMPLETED", - "simplifiedState": "OK" - }, - "errorMessage": null - }, - { - "transferProcessId": "f3ee5129-1909-4d7b-a6fe-a25994d67b56", - "lastUpdatedDate": "2023-04-24T12:34:36.735Z", - "state": { - "code": 900, - "name": "DEPROVISIONING", - "simplifiedState": "OK" - }, - "errorMessage": null - }, - { - "transferProcessId": "2cf2c9be-3b8c-4768-b10e-c1d9f9874e62", - "lastUpdatedDate": "2023-04-24T12:34:31.674Z", - "state": { - "code": -1, - "name": "ERROR", - "simplifiedState": "ERROR" - }, - "errorMessage": "Something went wrong!" - } - ] - }, - { - "contractAgreementId": "my-test-asset-cd:6ebbc301-9b1e-4cd7-9f17-97b5b7867531", - "direction": "CONSUMING", - "counterPartyAddress": "http://edc2:11003/api/v1/ids/data", - "counterPartyId": "my-connector", - "contractSigningDate": "2022-03-25T11:18:59.659Z", - "contractStartDate": "2022-03-25T11:18:59.659Z", - "contractEndDate": "2022-05-01T20:04:35.658Z", - "asset": { - "assetId": "urn:artifact:my-test-asset", - "createdAt": "2023-04-24T12:32:28.492Z", - "properties": { - "asset:prop:id": "urn:artifact:consumed-asset" - } - }, - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"uid\": null,\n \"target\": \"urn:artifact:consumed-asset\",\n \"action\": {\n \"type\": \"USE\",\n \"includedIn\": null,\n \"constraint\": null\n },\n \"assignee\": null,\n \"assigner\": null,\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ],\n \"duties\": []\n }\n ],\n \"prohibitions\": [],\n \"obligations\": [],\n \"extensibleProperties\": {},\n \"inheritsFrom\": null,\n \"assigner\": null,\n \"assignee\": null,\n \"target\": \"urn:artifact:my-test-asset\",\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - }, - "transferProcesses": [ - { - "transferProcessId": "522138de-349d-4b68-9356-7e5929f053e0", - "lastUpdatedDate": "2023-04-24T12:32:43.027Z", - "state": { - "code": 800, - "name": "COMPLETED", - "simplifiedState": "OK" - }, - "errorMessage": null - } - ] - }, - { - "contractAgreementId": "my-test-asset-2-cd:6ebbc301-9b1e-4cd7-9f17-08b5b7867533", - "direction": "CONSUMING", - "counterPartyAddress": "http://edc2:11003/api/v1/ids/data", - "counterPartyId": "my-connector", - "contractSigningDate": "2022-03-25T11:18:59.659Z", - "contractStartDate": "2022-03-25T11:18:59.659Z", - "contractEndDate": "2022-05-01T20:04:35.658Z", - "asset": { - "assetId": "urn:artifact:my-test-asset-2", - "createdAt": "2023-04-24T12:32:28.492Z", - "properties": { - "asset:prop:id": "urn:artifact:my-test-asset-2", - "asset:prop:name": "Consuming Contract Offer If Asset Propreties Weren't Buggy", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail", - "asset:prop:some-unsupported-property": "F10E2821BBBEA527EA02200352313BC059445190", - "asset:prop:datasource:http:hints:proxyMethod": "true", - "asset:prop:datasource:http:hints:proxyPath": "true", - "asset:prop:datasource:http:hints:proxyQueryParams": "true", - "asset:prop:datasource:http:hints:proxyBody": "true" - } - }, - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"uid\": null,\n \"target\": \"urn:artifact:my-test-asset-2\",\n \"action\": {\n \"type\": \"USE\",\n \"includedIn\": null,\n \"constraint\": null\n },\n \"assignee\": null,\n \"assigner\": null,\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ],\n \"duties\": []\n }\n ],\n \"prohibitions\": [],\n \"obligations\": [],\n \"extensibleProperties\": {},\n \"inheritsFrom\": null,\n \"assigner\": null,\n \"assignee\": null,\n \"target\": \"urn:artifact:my-test-asset-2\",\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - }, - "transferProcesses": [] - }, - { - "contractAgreementId": "my-test-asset-cd:6ebbc301-9b1e-4cd7-9f17-97b5b786752", - "direction": "CONSUMING", - "counterPartyAddress": "http://edc2:11003/api/v1/ids/data", - "counterPartyId": "my-connector", - "contractSigningDate": "2022-03-25T11:18:59.659Z", - "contractStartDate": "2022-03-25T11:18:59.659Z", - "contractEndDate": "2022-05-01T20:04:35.658Z", - "asset": { - "assetId": "urn:artifact:my-test-asset", - "createdAt": "2023-04-24T12:32:28.492Z", - "properties": { - "asset:prop:id": "urn:artifact:consumed-asset-2" - } - }, - "contractPolicy": { - "legacyPolicy": "{\n \"permissions\": [\n {\n \"edctype\": \"dataspaceconnector:permission\",\n \"uid\": null,\n \"target\": \"urn:artifact:consumed-asset\",\n \"action\": {\n \"type\": \"USE\",\n \"includedIn\": null,\n \"constraint\": null\n },\n \"assignee\": null,\n \"assigner\": null,\n \"constraints\": [\n {\n \"edctype\": \"AtomicConstraint\",\n \"leftExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"ALWAYS_TRUE\"\n },\n \"rightExpression\": {\n \"edctype\": \"dataspaceconnector:literalexpression\",\n \"value\": \"true\"\n },\n \"operator\": \"EQ\"\n }\n ],\n \"duties\": []\n }\n ],\n \"prohibitions\": [],\n \"obligations\": [],\n \"extensibleProperties\": {},\n \"inheritsFrom\": null,\n \"assigner\": null,\n \"assignee\": null,\n \"target\": \"urn:artifact:my-test-asset\",\n \"@type\": {\n \"@policytype\": \"set\"\n }\n }" - }, - "transferProcesses": [ - { - "transferProcessId": "522138de-349d-4b68-9356-7e5929f053e0", - "lastUpdatedDate": "2023-04-24T12:32:43.027Z", - "state": { - "code": 800, - "name": "COMPLETED", - "simplifiedState": "OK" - }, - "errorMessage": null - } - ] - } - ] -} diff --git a/fake-backend/json/contractAgreements.json b/fake-backend/json/contractAgreements.json deleted file mode 100644 index 2b147e78e..000000000 --- a/fake-backend/json/contractAgreements.json +++ /dev/null @@ -1,870 +0,0 @@ -[ - { - "id": "newdef:eb934d1f-6582-4bab-85e6-af19a76f7e2b", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1663861038, - "contractStartDate": 1663861038, - "contractEndDate": 1695397038, - "assetId": "urn:artifact:bitcoin2", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:bitcoin2", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-08-31T00:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-08-31T00:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "my-def:cbffb0e5-47ce-4165-beb6-c7477bfd77ed", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1664375988, - "contractStartDate": 1664375988, - "contractEndDate": 1695911988, - "assetId": "urn:artifact:emissions", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:emissions", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-26T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-29T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "Test-Offer:76fcacef-81e3-4013-b4e8-470956cb0553", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665585166, - "contractStartDate": 1665585166, - "contractEndDate": 1697121166, - "assetId": "urn:artifact:emissions", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:emissions", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-26T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-29T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "emissions-end-of-the-year-offering:3401a040-5c10-47ae-8cd6-8c313b1bf141", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665641398, - "contractStartDate": 1665641398, - "contractEndDate": 1697177398, - "assetId": "urn:artifact:emissions", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:emissions", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-30T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-31T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "Ethereum-Offer:e305fa90-7f44-4d20-b1bf-7dd2aa1cf33c", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665645919, - "contractStartDate": 1665645919, - "contractEndDate": 1697181919, - "assetId": "urn:artifact:ethereum", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:ethereum", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-11T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-19T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "ETH-Value:74557248-d6b6-44d5-9ce5-7ee12d61a264", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665667186, - "contractStartDate": 1665667186, - "contractEndDate": 1697203186, - "assetId": "urn:artifact:ethereum2", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:ethereum2", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-30T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-31T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "emissions-end-of-the-year-offering:f0879036-19ce-40ca-91bd-a0373b6422be", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665705778, - "contractStartDate": 1665705778, - "contractEndDate": 1697241778, - "assetId": "urn:artifact:emissions", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:emissions", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-30T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-31T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "charging-contract-time-restricted:e658135d-708e-43da-ab7d-fb12c92f8022", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665761003, - "contractStartDate": 1665761003, - "contractEndDate": 1697297003, - "assetId": "urn:artifact:electrocharging", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:electrocharging", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-13T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-30T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "escooterswiss-contract-definition:74ffb23c-8781-4edb-a716-10b2422afa2a", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665762871, - "contractStartDate": 1665762871, - "contractEndDate": 1697298871, - "assetId": "urn:artifact:sharedmobilityescooter", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:sharedmobilityescooter", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-13T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-27T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "emissions-end-of-the-year-offering:b193e010-b8ff-492d-b5b6-6ff1279cc10b", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665990225, - "contractStartDate": 1665990225, - "contractEndDate": 1697526225, - "assetId": "urn:artifact:emissions", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:emissions", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-30T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-31T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "Methane-contract-definition:f38308ac-6048-4a7f-9c4d-605d6e1619fc", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1665996536, - "contractStartDate": 1665996536, - "contractEndDate": 1697532536, - "assetId": "urn:artifact:methane-emissions-timeseries", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:methane-emissions-timeseries", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-16T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-23T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "emissions-end-of-the-year-offering:addc4818-fa4b-48b2-9fd7-18013ce7db83", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1666256013, - "contractStartDate": 1666256013, - "contractEndDate": 1697792013, - "assetId": "urn:artifact:emissions", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:emissions", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-30T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-31T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "escooterswiss-contract-definition:449d38d5-77da-4246-9694-e2306c672fc0", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1670421997, - "contractStartDate": 1670421997, - "contractEndDate": 1701957997, - "assetId": "urn:artifact:sharedmobilityescooter", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:sharedmobilityescooter", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-13T22:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-27T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "id": "Charging-Stations-Walkthrough:ded2dc49-decc-4f00-8aac-c735b3ec196d", - "providerAgentId": "urn:connector:provider", - "consumerAgentId": "urn:connector:consumer", - "contractSigningDate": 1671104453, - "contractStartDate": 1671104453, - "contractEndDate": 1702640453, - "assetId": "urn:artifact:chargingstationswalkthrough", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": "urn:artifact:chargingstationswalkthrough", - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-08-31T00:00:00.000Z" - }, - "operator": "GT" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-08-31T00:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - } -] diff --git a/fake-backend/json/contractDefinitions.json b/fake-backend/json/contractDefinitions.json deleted file mode 100644 index 26fe1ca37..000000000 --- a/fake-backend/json/contractDefinitions.json +++ /dev/null @@ -1,98 +0,0 @@ -[ - { - "accessPolicyId": "end-of-the-year", - "contractPolicyId": "end-of-the-year", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "in", - "operandRight": ["urn:artifact:db-rail-network-2023-jan"] - } - ], - "id": "offering" - }, - { - "accessPolicyId": "end-of-the-year", - "contractPolicyId": "end-of-the-year", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "in", - "operandRight": ["urn:artifact:emissions"] - } - ], - "id": "emissions-end-of-the-year-offering" - }, - { - "accessPolicyId": "time-restricted-usage-221017", - "contractPolicyId": "time-restricted-usage-221017", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "in", - "operandRight": ["urn:artifact:electrocharging"] - } - ], - "id": "charging-contract-time-restricted" - }, - { - "accessPolicyId": "time-restricted-policy-from221014", - "contractPolicyId": "time-restricted-policy-from221014", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "in", - "operandRight": ["urn:artifact:sharedmobilityescooter"] - } - ], - "id": "escooterswiss-contract-definition" - }, - { - "accessPolicyId": "time-restricted-policy-221017", - "contractPolicyId": "time-restricted-policy-221017", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "in", - "operandRight": ["urn:artifact:methane-emissions-timeseries"] - } - ], - "id": "Methane-contract-definition" - }, - { - "accessPolicyId": "time-restricted-policy-walkthrough", - "contractPolicyId": "time-restricted-policy-walkthrough", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "in", - "operandRight": ["urn:artifact:chargingstationswalkthrough"] - } - ], - "id": "Charging Station - Walkthrough" - }, - { - "id": "example-using-asset-prop-id-eq", - "accessPolicyId": "end-of-the-year", - "contractPolicyId": "end-of-the-year", - "criteria": [ - { - "operandLeft": "asset:prop:id", - "operator": "eq", - "operandRight": "urn:artifact:db-rail-network-2023-jan" - } - ] - }, - { - "id": "example-using-asset-prop-usecase-eq", - "accessPolicyId": "end-of-the-year", - "contractPolicyId": "end-of-the-year", - "criteria": [ - { - "operandLeft": "asset:prop:usecase", - "operator": "eq", - "operandRight": "urn:usecase:my-example-usecase" - } - ] - } -] diff --git a/fake-backend/json/lastCommitInfo.json b/fake-backend/json/lastCommitInfo.json deleted file mode 100644 index 37e6f53d4..000000000 --- a/fake-backend/json/lastCommitInfo.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "envLastCommitInfo": "Env Last Commit Info:\ncommit eabb87eb8c76a82e022ff0400b4b529348d902f4 (HEAD -> main, origin/main)\nMerge: 15ece734e 225b18251\nAuthor: First Last \nDate: Mon Mar 13 08:09:15 2023 +0100\n\nMerge pull request #221 from sovity/feat/ms8\n\nchore: update to milestone-8", - "envBuildDate": null, - "jarLastCommitInfo": "Jar Last Commit Info:\n commit 2fe06beaf6027fb4cc06db2adb7d5b4c8ae61b05 (HEAD -> 2023-03-16-edc-extensions-cleanup, origin/2023-03-16-edc-extensions-cleanup)\n Author: First Last \n Date: Thu Mar 9 14:50:20 2023 +0100\n\n feat new image variants, rework documentation, better configuration via MY_EDC vars\n", - "jarBuildDate": "2023-05-05T14:30:00Z" -} diff --git a/fake-backend/json/logs.json b/fake-backend/json/logs.json deleted file mode 100644 index 82202a573..000000000 --- a/fake-backend/json/logs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "properties": { - "asset:prop:id": "urn:artifact:db-rail-network-2023-jan", - "asset:prop:name": "Rail Network DB 2023 January", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.rail-mgmt.bahn.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Deutsche Bahn AG", - "asset:prop:keywords": "db, bahn, rail, Rail-Designer", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Train Network Map released on 10.01.2023, valid until 31.02.2023. \nFile format is xyz as exported by Rail-Designer.", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Infrastructure and Logistics", - "http://w3id.org/mds#dataSubcategory": "General Information About Planning Of Routes", - "http://w3id.org/mds#dataModel": "my-data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "my-geo-reference-method", - "http://w3id.org/mds#transportMode": "Rail", - "asset:prop:some-unsupported-property": "F10E2821BBBEA527EA02200352313BC059445190" - } - }, - { - "properties": { - "asset:prop:id": "urn:artifact:bitcoin-data", - "asset:prop:name": "Bitcoin Data", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "description", - "asset:prop:version": "1.0", - "asset:prop:type": "HttpData", - "asset:prop:originator": "https://sovity-001.stage-sovity.azure.sovity.io/control/api/v1/ids/data" - } - } -] diff --git a/fake-backend/json/policyDefinitions.json b/fake-backend/json/policyDefinitions.json deleted file mode 100644 index 04b2d92e4..000000000 --- a/fake-backend/json/policyDefinitions.json +++ /dev/null @@ -1,495 +0,0 @@ -[ - { - "createdAt": 1677833530781, - "id": "always-true", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "ALWAYS_TRUE" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "true" - }, - "operator": "EQ" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted-policy", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": "Idk", - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-08-31T00:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-08-31T00:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted-policy -2", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-08-31T00:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2023-08-31T00:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-26T22:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-29T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "end-of-the-year", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-09-30T22:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-31T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted-usage-221017", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-13T22:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-30T23:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted-policy-from221014", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-13T22:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-27T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted-policy-221017", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-16T22:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-10-23T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - }, - { - "uid": "time-restricted-policy-walkthrough", - "policy": { - "permissions": [ - { - "edctype": "dataspaceconnector:permission", - "uid": null, - "target": null, - "action": { - "type": "USE", - "includedIn": null, - "constraint": null - }, - "assignee": null, - "assigner": null, - "constraints": [ - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2022-12-14T23:00:00.000Z" - }, - "operator": "GEQ" - }, - { - "edctype": "AtomicConstraint", - "leftExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "POLICY_EVALUATION_TIME" - }, - "rightExpression": { - "edctype": "dataspaceconnector:literalexpression", - "value": "2024-04-16T22:00:00.000Z" - }, - "operator": "LT" - } - ], - "duties": [] - } - ], - "prohibitions": [], - "obligations": [], - "extensibleProperties": {}, - "inheritsFrom": null, - "assigner": null, - "assignee": null, - "target": null, - "@type": { - "@policytype": "set" - } - } - } -] diff --git a/fake-backend/json/transferHistoryAssetDetails.json b/fake-backend/json/transferHistoryAssetDetails.json deleted file mode 100644 index 1ee0d5755..000000000 --- a/fake-backend/json/transferHistoryAssetDetails.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "properties": { - "asset:prop:id": "urn:artifact:test-asset-1", - "asset:prop:name": "Test Asset 1", - "asset:prop:version": "1.1", - "asset:prop:originator": "https://example-connector.de/api/v1/ids/data", - "asset:prop:originatorOrganization": "Organization", - "asset:prop:keywords": "test, example", - "asset:prop:contenttype": "application/json", - "asset:prop:description": "Test asset for checking asset fetch in transfer history page", - "asset:prop:language": "https://w3id.org/idsa/code/EN", - "asset:prop:publisher": "https://my.cool-api.gg/about", - "asset:prop:standardLicense": "https://my.cool-api.gg/license", - "asset:prop:endpointDocumentation": "https://my.cool-api.gg/docs", - "http://w3id.org/mds#dataCategory": "Example", - "http://w3id.org/mds#dataSubcategory": "example-data", - "http://w3id.org/mds#dataModel": "data-model-001", - "http://w3id.org/mds#geoReferenceMethod": "example-reference-method", - "http://w3id.org/mds#transportMode": "Mode" - } -} diff --git a/fake-backend/json/transferHistoryPage.json b/fake-backend/json/transferHistoryPage.json deleted file mode 100644 index c023acf9a..000000000 --- a/fake-backend/json/transferHistoryPage.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "transferEntries": [ - { - "transferProcessId": "339b2a27-3b66-49f5-8b43-6a400d5914b5", - "createdDate": "2023-03-20T11:18:59.659Z", - "lastUpdatedDate": "2023-07-25T11:18:59.659Z", - "state": { - "code": 800, - "name": "COMPLETED", - "simplifiedState": "OK" - }, - "contractAgreementId": "test-asset-1-cd:f52a5d30-6356-4a55-a75a-3c45d7a88c3e", - "direction": "CONSUMING", - "counterPartyConnectorEndpoint": "https://sovity-demo4-mds/api/v1/ids/data", - "assetName": "urn:artifact:test-asset-1", - "assetId": "urn:artifact:test-asset-1", - "errorMessage": null - }, - { - "transferProcessId": "1317d0da-cdc6-42ab-b54b-1f90bcfed508", - "createdDate": "2023-01-20T11:18:59.659Z", - "lastUpdatedDate": "2023-03-25T11:18:59.659Z", - "state": { - "code": -1, - "name": "ERROR", - "simplifiedState": "ERROR" - }, - "contractAgreementId": "test-asset-2-cd:5816a60b-86c1-489a-b26a-ed129947f973", - "direction": "CONSUMING", - "counterPartyConnectorEndpoint": "http://edc2:11003/api/v1/ids/data", - "assetName": "urn:artifact:test-asset-2", - "assetId": "urn:artifact:test-asset-2", - "errorMessage": "TransferProcessManager: attempt #8 failed to send transfer. Retry limit exceeded, TransferProcess 1317d0da-cdc6-42ab-b54b-1f90bcfed508 moves to ERROR state. Cause: java.net.SocketException: Connection reset" - }, - { - "transferProcessId": "81cdf4cf-8427-480f-9662-8a29d66ddd3b", - "createdDate": "2022-03-25T11:18:59.659Z", - "lastUpdatedDate": "2022-11-20T11:18:59.659Z", - "state": { - "code": 800, - "name": "COMPLETED", - "simplifiedState": "OK" - }, - "contractAgreementId": "test-asset-3-cd:6ebbc301-9b1e-4cd7-9f17-97b5b7867531", - "direction": "CONSUMING", - "counterPartyConnectorEndpoint": "https://sovity-demo2-edc/api/v1/ids/data", - "assetName": "urn:artifact:test-asset-3", - "assetId": "urn:artifact:test-asset-3", - "errorMessage": null - }, - { - "transferProcessId": "47240a35-d8fc-41d9-b020-07b87f3cc7b6", - "createdDate": "2022-01-29T11:18:59.659Z", - "lastUpdatedDate": "2022-02-24T11:18:59.659Z", - "state": { - "code": 600, - "name": "IN_PROGRESS", - "simplifiedState": "RUNNING" - }, - "contractAgreementId": "test-asset-4-cd:f52a5d30-6356-4a55-a75a-3c45d7a88c3e", - "direction": "PROVIDING", - "counterPartyConnectorEndpoint": "https://sovity-demo2-edc/api/v1/ids/data", - "assetName": "Test Asset 4", - "assetId": "urn:artifact:test-asset-4", - "errorMessage": null - } - ] -} diff --git a/fake-backend/package-lock.json b/fake-backend/package-lock.json deleted file mode 100644 index 276f8537c..000000000 --- a/fake-backend/package-lock.json +++ /dev/null @@ -1,947 +0,0 @@ -{ - "name": "test", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "test", - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "body-parser": "^1.20.0", - "cors": "^2.8.5", - "express": "^4.18.1", - "nodemon": "^2.0.20" - } - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore-by-default": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==" - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/nodemon": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.20.tgz", - "integrity": "sha512-Km2mWHKKY5GzRg6i1j5OxOHQtuvVsgskLfigG25yTtbyfRGn/GNvIbRyOf1PSCKJ2aT/58TiuUsuOU5UToVViw==", - "dependencies": { - "chokidar": "^3.5.2", - "debug": "^3.2.7", - "ignore-by-default": "^1.0.1", - "minimatch": "^3.1.2", - "pstree.remy": "^1.1.8", - "semver": "^5.7.1", - "simple-update-notifier": "^1.0.7", - "supports-color": "^5.5.0", - "touch": "^3.1.0", - "undefsafe": "^2.0.5" - }, - "bin": { - "nodemon": "bin/nodemon.js" - }, - "engines": { - "node": ">=8.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/nodemon" - } - }, - "node_modules/nodemon/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/nodemon/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/nopt": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", - "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": "*" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/pstree.remy": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", - "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" - }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/simple-update-notifier": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", - "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", - "dependencies": { - "semver": "~7.0.0" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/simple-update-notifier/node_modules/semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/touch": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", - "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", - "dependencies": { - "nopt": "~1.0.10" - }, - "bin": { - "nodetouch": "bin/nodetouch.js" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/undefsafe": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", - "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==" - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } - } - } -} diff --git a/fake-backend/package.json b/fake-backend/package.json deleted file mode 100644 index eb3c33fd0..000000000 --- a/fake-backend/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "test", - "version": "1.0.0", - "description": "", - "main": "serve.js", - "scripts": { - "start": "nodemon serve.js" - }, - "author": "", - "license": "ISC", - "dependencies": { - "body-parser": "^1.20.0", - "cors": "^2.8.5", - "express": "^4.18.1", - "nodemon": "^2.0.20" - } -} diff --git a/fake-backend/serve.js b/fake-backend/serve.js deleted file mode 100644 index 8e7990dc3..000000000 --- a/fake-backend/serve.js +++ /dev/null @@ -1,137 +0,0 @@ -const express = require('express'); -const cors = require('cors'); -const fs = require('fs'); -const path = require('path'); - -const json = (jsonFile) => - JSON.parse(fs.readFileSync(path.resolve(jsonFile)).toString()); - -const app = express(); -app.use( - cors({ - allowedHeaders: [ - 'origin', - 'content-type', - 'accept', - 'authorization', - 'x-api-key', - ], - credentials: true, - origin: true, - }), -); - -// Check API Key -app.use((req, res, next) => { - if (req.header('x-api-key') !== 'no-api-key-required-in-local-dev') { - res.status(401); - res.json({message: 'Unauthorized'}); - return; - } - next(); -}); - -// Content Type & Status -app.use((req, res, next) => { - res.header('Content-Type', 'application/json'); - res.status(200); - next(); -}); - -// Delay Responses -app.use((req, res, next) => setTimeout(next, 1000)); - -// Management API - -const policyDefinitions = json('json/policyDefinitions.json'); -app.get('/api/v1/data/policydefinitions', (req, res) => { - res.json(policyDefinitions); -}); - -const contractDefinitions = json('json/contractDefinitions.json'); -app.get('/api/v1/data/contractdefinitions', (req, res) => { - res.json(contractDefinitions); -}); - -const contractAgreements = json('json/contractAgreements.json'); -app.get('/api/v1/data/contractagreements', (req, res) => { - res.json(contractAgreements); -}); - -const lastCommitInfo = json('json/lastCommitInfo.json'); -app.get('/api/v1/data/last-commit-info', (req, res) => { - res.json(lastCommitInfo); -}); - -const catalog1 = json('json/catalog1.json'); -const catalog2 = json('json/catalog2.json'); -app.get('/api/v1/data/catalog', (req, res) => { - let providerUrl = req.query.providerUrl; - if (providerUrl === 'http://existing-other-connector/v1/ids/data') { - res.json(catalog1); - } else if (providerUrl === 'https://test') { - res.json(catalog2); - } else if (providerUrl === 'http://status-502') { - return res.status(502).json({message: 'Target IDS Endpoint unreachable'}); - } else if (providerUrl === 'http://status-500') { - return res.status(500).json({message: 'Internal Server Error'}); - } else if (providerUrl === 'http://timeout') { - return res.status(0); - } else { - res.json({contractOffers: []}); - } -}); - -// Contract Agreement Transfer Extension -app.post( - '/api/v1/data/contract-agreements-transfer/contractagreements/:contractAgreementId/transfer', - (req, res) => { - res.json('{}'); - }, -); - -// UI API Wrapper -const assetPage = json('json/assets.json'); -app.get('/api/v1/data/wrapper/ui/pages/asset-page', (req, res) => { - res.json(assetPage); -}); - -const contractAgreementPage = json('json/contractAgreementPage.json'); -app.get('/api/v1/data/wrapper/ui/pages/contract-agreement-page', (_, res) => { - res.json(contractAgreementPage); -}); - -const transferProcess = json('json/transferHistoryPage.json'); -app.get('/api/v1/data/wrapper/ui/pages/transfer-history-page', (req, res) => { - res.json(transferProcess); -}); - -const transferHistoryAssetDetails = json( - 'json/transferHistoryAssetDetails.json', -); -app.get( - '/api/v1/data/wrapper/ui/pages/transfer-history-page/transfer-processes/47240a35-d8fc-41d9-b020-07b87f3cc7b6/asset', - (req, res) => { - res.json(transferHistoryAssetDetails); - }, -); - -// Connector Limits -const connectorLimits = json('json/connectorLimits.json'); -app.get('/api/v1/data/wrapper/ee/connector-limits', (_, res) => { - res.json(connectorLimits); -}); - -// Broker API Wrapper -const brokerCatalogPage = json('json/brokerCatalogPage.json'); -app.post('/api/v1/data/wrapper/broker/catalog-page', (_, res) => { - res.json(brokerCatalogPage); -}); -const brokerConnectorPage = json('json/brokerConnectorPage.json'); -app.post('/api/v1/data/wrapper/broker/connector-page', (_, res) => { - res.json(brokerConnectorPage); -}); - -app.listen(3000, function () { - console.log('Fake Backend listening on port 3000'); -}); diff --git a/src/app/core/config/app-config-properties.ts b/src/app/core/config/app-config-properties.ts index 7ce987f6b..f33e0bfad 100644 --- a/src/app/core/config/app-config-properties.ts +++ b/src/app/core/config/app-config-properties.ts @@ -115,6 +115,11 @@ export const AppConfigProperties = { */ maintainerOrganizationName: 'EDC_UI_MAINTAINER_ORGANIZATION_NAME', + /** + * Whether to use the fake backend (local development). + */ + useFakeBackend: 'EDC_UI_USE_FAKE_BACKEND', + /** * Same as {@link connectorEndpoint}. * diff --git a/src/app/core/config/app-config.builder.ts b/src/app/core/config/app-config.builder.ts index dc228f22d..b093ce9e3 100644 --- a/src/app/core/config/app-config.builder.ts +++ b/src/app/core/config/app-config.builder.ts @@ -72,6 +72,7 @@ export class AppConfigBuilder { maintainerOrganizationName: vars[AppConfigProperties.maintainerOrganizationName] ?? 'No Maintainer Organization Name Configured', + useFakeBackend: vars[AppConfigProperties.useFakeBackend] === 'true', }; } diff --git a/src/app/core/config/app-config.ts b/src/app/core/config/app-config.ts index 0545ce3c5..18d218cdd 100644 --- a/src/app/core/config/app-config.ts +++ b/src/app/core/config/app-config.ts @@ -47,4 +47,5 @@ export interface AppConfig { dapsOauthJwksUrl: string; maintainerUrl: string; maintainerOrganizationName: string; + useFakeBackend: boolean; } diff --git a/src/app/core/services/api/edc-api.service.ts b/src/app/core/services/api/edc-api.service.ts index 63b33b753..ef042bafe 100644 --- a/src/app/core/services/api/edc-api.service.ts +++ b/src/app/core/services/api/edc-api.service.ts @@ -14,6 +14,7 @@ import { } from '@sovity.de/edc-client'; import {AssetCreateRequest} from '@sovity.de/edc-client/dist/generated/models/AssetCreateRequest'; import {APP_CONFIG, AppConfig} from '../../config/app-config'; +import {EDC_FAKE_BACKEND} from './fake-backend/edc-api.fake-backend'; @Injectable({providedIn: 'root'}) export class EdcApiService { @@ -23,6 +24,9 @@ export class EdcApiService { this.edcClient = buildEdcClient({ managementApiUrl: this.config.managementApiUrl, managementApiKey: this.config.managementApiKey, + configOverrides: { + fetchApi: config.useFakeBackend ? EDC_FAKE_BACKEND : undefined, + }, }); } diff --git a/src/app/core/services/api/fake-backend/asset-fake-service.ts b/src/app/core/services/api/fake-backend/asset-fake-service.ts new file mode 100644 index 000000000..e9d7a125a --- /dev/null +++ b/src/app/core/services/api/fake-backend/asset-fake-service.ts @@ -0,0 +1,42 @@ +import { + AssetCreateRequest, + AssetEntry, + AssetPage, + IdResponseDto, +} from '@sovity.de/edc-client'; +import {AssetProperties} from '../../asset-properties'; + +export let assets: AssetEntry[] = [ + { + properties: { + [AssetProperties.id]: 'test-asset-1', + [AssetProperties.name]: 'Test Asset 1', + [AssetProperties.description]: 'This is a test asset.', + }, + privateProperties: { + 'some-private-property': 'abc', + }, + }, +]; + +export const assetPage = (): AssetPage => { + return { + assets, + }; +}; + +export const createAsset = (asset: AssetCreateRequest): IdResponseDto => { + assets.push({ + properties: asset.properties, + privateProperties: asset.privateProperties, + }); + return { + id: asset.properties[AssetProperties.id], + lastUpdatedDate: new Date(), + }; +}; + +export const deleteAsset = (id: string): IdResponseDto => { + assets = assets.filter((it) => it.properties[AssetProperties.id] !== id); + return {id, lastUpdatedDate: new Date()}; +}; diff --git a/src/app/core/services/api/fake-backend/edc-api.fake-backend.ts b/src/app/core/services/api/fake-backend/edc-api.fake-backend.ts new file mode 100644 index 000000000..a9df4bcd7 --- /dev/null +++ b/src/app/core/services/api/fake-backend/edc-api.fake-backend.ts @@ -0,0 +1,30 @@ +import {FetchAPI} from '@sovity.de/edc-client'; +import {AssetCreateRequest} from '@sovity.de/edc-client/dist/generated/models/AssetCreateRequest'; +import {assetPage, createAsset, deleteAsset} from './asset-fake-service'; +import {getBody, getMethod, getUrl} from './utils/request-utils'; +import {ok} from './utils/response-utils'; +import {UrlInterceptor} from './utils/url-interceptor'; + +export const EDC_FAKE_BACKEND: FetchAPI = async ( + input: RequestInfo, + init?: RequestInit, +): Promise => { + let url = getUrl(input, 'http://edc.fake-backend/wrapper/ui/'); + let method = getMethod(init); + let body = getBody(init); + + console.log(...['Fake Backend:', method, url, body].filter((it) => !!it)); + + return new UrlInterceptor(url, method) + + .url('pages/asset-page') + .on('GET', () => ok(assetPage())) + + .url('pages/asset-page/assets') + .on('POST', () => ok(createAsset(body as AssetCreateRequest))) + + .url('pages/asset-page/assets/*') + .on('DELETE', (assetId) => ok(deleteAsset(assetId))) + + .tryMatch(); +}; diff --git a/src/app/core/services/api/fake-backend/utils/request-utils.ts b/src/app/core/services/api/fake-backend/utils/request-utils.ts new file mode 100644 index 000000000..86975b5a7 --- /dev/null +++ b/src/app/core/services/api/fake-backend/utils/request-utils.ts @@ -0,0 +1,15 @@ +export const getUrl = (input: Request | string, baseUrl: string): string => { + let url = new URL(typeof input === 'string' ? input : input.url); + let urlNoQuery = url.origin + url.pathname; + return urlNoQuery.startsWith(baseUrl) + ? urlNoQuery.substring(baseUrl.length) + : urlNoQuery; +}; + +export const getMethod = (init: RequestInit | undefined): string => + init?.method ?? 'GET'; + +export const getBody = (input: RequestInit | undefined): null | any => { + let body = input?.body?.toString(); + return body ? JSON.parse(body) : null; +}; diff --git a/src/app/core/services/api/fake-backend/utils/response-utils.ts b/src/app/core/services/api/fake-backend/utils/response-utils.ts new file mode 100644 index 000000000..0ddc3235f --- /dev/null +++ b/src/app/core/services/api/fake-backend/utils/response-utils.ts @@ -0,0 +1,5 @@ +export const ok = (body: any): Promise => + new Promise((resolve) => { + const response = new Response(JSON.stringify(body), {status: 200}); + setTimeout(() => resolve(response), 400); + }); diff --git a/src/app/core/services/api/fake-backend/utils/url-interceptor.ts b/src/app/core/services/api/fake-backend/utils/url-interceptor.ts new file mode 100644 index 000000000..5fdf81412 --- /dev/null +++ b/src/app/core/services/api/fake-backend/utils/url-interceptor.ts @@ -0,0 +1,65 @@ +/** + * Collects URLs + Method + ResponseFn and then matches them in order. + * + * This class only exists to clean up the fake-backend code. + */ +export class UrlInterceptor { + private entries: { + urlPattern: string; + method: string; + response: ResponseFn; + }[] = []; + + private lastUrlPattern: string | null = null; + + constructor(public requestUrl: String, public requestMethod: string) {} + + url(urlPattern: string): this { + this.lastUrlPattern = urlPattern; + return this; + } + + on(method: string, response: ResponseFn): this { + let urlPattern = this.lastUrlPattern; + if (!urlPattern) { + throw new Error('Call .url() before calling .on()'); + } + this.entries.push({urlPattern, method, response}); + return this; + } + + async tryMatch(): Promise { + for (let entry of this.entries) { + if (entry.method !== this.requestMethod) { + continue; + } + + let regexp = '^' + entry.urlPattern.replace(/\*/g, '(.*)') + '$'; + let match = this.requestUrl.match(regexp); + if (!match) { + continue; + } + + match = match + .filter((_, index) => index > 0) + .map((pathSegment) => decodeURIComponent(pathSegment)); + + return await entry.response(...match); + } + + console.warn( + `Unmatched request: ${this.requestMethod} ${this.requestUrl}`, + this.entries.map((it) => `${it.method} ${it.urlPattern}`), + ); + + return Promise.reject( + `Unmatched request: ${this.requestMethod} ${this.requestUrl}`, + ); + } +} + +export type ResponseFn = (...match: string[]) => Promise; + +export interface MethodMatcher { + on(method: string, accept: ResponseFn): MethodMatcher; +}