From dc7f3ed89f1d169c5f1dace261060dc896ed9215 Mon Sep 17 00:00:00 2001 From: Ralf Aron Date: Sun, 13 Oct 2024 22:06:59 +0200 Subject: [PATCH 01/76] fix: add headers to AASEndpoint --- projects/aas-core/src/lib/types.ts | 1 + .../add-endpoint-form.component.html | 63 +++++++- .../add-endpoint-form.component.ts | 116 ++++++++++--- .../aas-portal/src/assets/i18n/de-de.json | 15 +- .../aas-portal/src/assets/i18n/en-us.json | 13 +- .../src/app/aas-index/mysql/mysql-index.ts | 4 +- .../src/app/aas-index/mysql/mysql-types.ts | 10 +- .../aas-provider/aas-resource-scan-factory.ts | 17 +- .../src/app/live/http/http-subscription.ts | 2 +- .../src/app/packages/aas-resource-factory.ts | 28 ++-- .../src/app/packages/aas-resource.ts | 7 +- .../packages/aas-server/aas-api-client-v0.ts | 19 +-- .../packages/aas-server/aas-api-client-v1.ts | 75 ++++++--- .../packages/aas-server/aas-api-client-v3.ts | 79 ++++++--- .../app/packages/aas-server/aas-api-client.ts | 23 +-- .../packages/aas-server/aas-server-package.ts | 2 +- .../packages/file-system/aasx-directory.ts | 16 +- .../app/packages/file-system/aasx-package.ts | 2 +- .../{server-message.ts => http-client.ts} | 50 ++++-- .../src/app/packages/opcua/opcua-client.ts | 10 +- .../src/app/packages/opcua/opcua-package.ts | 6 +- .../src/app/template/template-scan.ts | 17 +- .../src/app/template/template-storage.ts | 17 +- .../aas-server/aas-api-client-v0.spec.ts | 137 ++++++++-------- .../aas-server/aas-api-client-v3.spec.ts | 152 ++++-------------- .../aas-server/aas-server-package.spec.ts | 3 +- ...er-message.spec.ts => http-client.spec.ts} | 50 +++--- projects/aasportal-index/schema.sql | 3 +- 28 files changed, 532 insertions(+), 405 deletions(-) rename projects/aas-server/src/app/packages/{server-message.ts => http-client.ts} (83%) rename projects/aas-server/src/test/packages/{server-message.spec.ts => http-client.spec.ts} (82%) diff --git a/projects/aas-core/src/lib/types.ts b/projects/aas-core/src/lib/types.ts index 25053dd7..a0746c97 100644 --- a/projects/aas-core/src/lib/types.ts +++ b/projects/aas-core/src/lib/types.ts @@ -54,6 +54,7 @@ export type AASEndpoint = { url: string; type: AASEndpointType; version?: string; + headers?: Record; }; /** Represents a server (AASX, OPC-UA) or file directory (AASX package files). */ diff --git a/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html b/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html index 65e046d3..e24a0b7e 100644 --- a/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html +++ b/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html @@ -22,22 +22,73 @@