From b5eedb948d74946d4081752f41d8f0ac4286d157 Mon Sep 17 00:00:00 2001 From: Artur Sudnik-Hrynkiewicz Date: Thu, 2 Nov 2023 14:03:36 +0100 Subject: [PATCH] chore: updating copyright header in files --- apps/vc-api/.eslintrc.js | 5 +++++ apps/vc-api/scripts/write-open-api-json.ts | 16 ++------------- apps/vc-api/src/app.module.ts | 16 ++------------- .../src/config/env-vars-validation-schema.ts | 14 +------------ apps/vc-api/src/did/did.controller.spec.ts | 16 ++------------- apps/vc-api/src/did/did.controller.ts | 16 ++------------- apps/vc-api/src/did/did.module.ts | 16 ++------------- apps/vc-api/src/did/did.service.spec.ts | 16 ++------------- apps/vc-api/src/did/did.service.ts | 16 ++------------- .../src/did/dto/create-did-options.dto.ts | 16 ++------------- .../src/did/dto/create-did-response.dto.ts | 14 +------------ apps/vc-api/src/did/dto/json-web-key.dto.ts | 14 +------------ .../src/did/dto/verification-method.dto.ts | 14 +------------ .../src/did/entities/did-document.entity.ts | 16 ++------------- .../entities/verification-method.entity.ts | 16 ++------------- apps/vc-api/src/did/types/did-method.ts | 16 ++------------- .../dtos/bad-request-error-response.dto.ts | 14 +------------ .../src/dtos/conflict-error-response.dto.ts | 14 +------------ .../internal-server-error-response.dto.ts | 14 +------------ .../src/dtos/not-found-error-response.dto.ts | 14 +------------ .../transaction-entity-exception.filter.ts | 14 +------------ apps/vc-api/src/in-memory-db.ts | 16 ++------------- apps/vc-api/src/index.ts | 14 +------------ .../src/key/dtos/key-description.dto.ts | 16 ++------------- apps/vc-api/src/key/dtos/key-pair.dto.ts | 16 ++------------- apps/vc-api/src/key/key-pair.entity.ts | 16 ++------------- apps/vc-api/src/key/key-types.ts | 16 ++------------- apps/vc-api/src/key/key.controller.spec.ts | 5 +++++ apps/vc-api/src/key/key.controller.ts | 16 ++------------- apps/vc-api/src/key/key.module.ts | 16 ++------------- apps/vc-api/src/key/key.service.spec.ts | 16 ++------------- apps/vc-api/src/key/key.service.ts | 16 ++------------- apps/vc-api/src/main.ts | 16 ++------------- .../src/middlewares/http-logger.middleware.ts | 5 +++++ apps/vc-api/src/middlewares/index.ts | 5 +++++ .../src/seeder/fixtures/key-pair.fixture.ts | 14 +------------ apps/vc-api/src/seeder/seeder.module.ts | 5 +++++ apps/vc-api/src/seeder/seeder.service.spec.ts | 5 +++++ apps/vc-api/src/seeder/seeder.service.ts | 5 +++++ apps/vc-api/src/setup.ts | 16 ++------------- .../credentials/credentials.service.spec.ts | 16 ++------------- .../vc-api/credentials/credentials.service.ts | 16 ++------------- .../credentials/dtos/authenticate.dto.ts | 16 ++------------- .../vc-api/credentials/dtos/credential.dto.ts | 16 ++------------- .../is-string-or-string-array.ts | 16 ++------------- .../credentials/dtos/issue-credential.dto.ts | 16 ++------------- .../credentials/dtos/issue-options.dto.ts | 16 ++------------- .../src/vc-api/credentials/dtos/issuer.dto.ts | 14 +------------ .../credentials/dtos/presentation.dto.ts | 16 ++------------- .../dtos/prove-presentation-options.dto.ts | 16 ++------------- .../dtos/prove-presentation.dto.ts | 16 ++------------- .../dtos/verifiable-credential.dto.ts | 16 ++------------- .../dtos/verifiable-presentation.dto.ts | 16 ++------------- .../dtos/verification-result.dto.ts | 16 ++------------- .../credentials/dtos/verify-credential.dto.ts | 16 ++------------- .../credentials/dtos/verify-options.dto.ts | 16 ++------------- .../dtos/verify-presentation.dto.ts | 16 ++------------- .../credentials/types/credential-verifier.ts | 16 ++------------- .../types/presentation-verifier.ts | 16 ++------------- .../credentials/types/verification-result.ts | 16 ++------------- .../credentials/types/verify-options.ts | 16 ++------------- .../utils/did-kit-executor.function.spec.ts | 14 +------------ .../utils/did-kit-executor.function.ts | 14 +------------ .../dtos/callback-configuration.dto.spec.ts | 16 ++------------- .../dtos/callback-configuration.dto.ts | 16 ++------------- .../src/vc-api/exchanges/dtos/callback.dto.ts | 16 ++------------- .../exchanges/dtos/custom-validators/index.ts | 14 +------------ .../custom-validators/issuer.validator.ts | 14 +------------ ...n-definition-credential-query.validator.ts | 16 ++------------- .../dtos/exchange-definition.dto.spec.ts | 16 ++------------- .../exchanges/dtos/exchange-definition.dto.ts | 16 ++------------- ...xchange-interact-service-definition.dto.ts | 16 ++------------- .../exchanges/dtos/exchange-response.dto.ts | 16 ++------------- .../dtos/presentation-definition.dto.ts | 14 +------------ .../dtos/presentation-submission-full.dto.ts | 14 +------------ .../presentation-submission-secure.dto.ts | 16 ++------------- .../exchanges/dtos/submission-review.dto.ts | 16 ++------------- .../vc-api/exchanges/dtos/transaction.dto.ts | 16 ++------------- .../dtos/vp-request-did-auth-query.dto.ts | 16 ++------------- .../vp-request-interact-service.dto.spec.ts | 16 ++------------- .../dtos/vp-request-interact-service.dto.ts | 16 ++------------- .../exchanges/dtos/vp-request-interact.dto.ts | 16 ++------------- ...t-presentation-defintion-query.dto.spec.ts | 16 ++------------- ...equest-presentation-defintion-query.dto.ts | 16 ++------------- .../exchanges/dtos/vp-request-query.dto.ts | 16 ++------------- .../vc-api/exchanges/dtos/vp-request.dto.ts | 16 ++------------- .../entities/exchange.entity.spec.ts | 16 ++------------- .../exchanges/entities/exchange.entity.ts | 16 ++------------- .../entities/presentation-review.entity.ts | 16 ++------------- .../presentation-submission.entity.ts | 16 ++------------- .../entities/transaction.entity.spec.ts | 16 ++------------- .../exchanges/entities/transaction.entity.ts | 16 ++------------- .../exchanges/entities/vp-request.entity.ts | 16 ++------------- .../vc-api/exchanges/exchange.service.spec.ts | 16 ++------------- .../src/vc-api/exchanges/exchange.service.ts | 16 ++------------- .../exchanges/types/callback-configuration.ts | 16 ++------------- .../src/vc-api/exchanges/types/credential.ts | 16 ++------------- .../types/presentation-review-status.ts | 16 ++------------- .../vc-api/exchanges/types/presentation.ts | 16 ++------------- .../exchanges/types/submission-verifier.ts | 16 ++------------- .../exchanges/types/verifiable-credential.ts | 16 ++------------- .../types/verifiable-presentation.ts | 16 ++------------- .../vp-request-interact-service-definition.ts | 16 ++------------- .../types/vp-request-interact-service-type.ts | 16 ++------------- .../types/vp-request-interact-service.ts | 16 ++------------- .../exchanges/types/vp-request-query-type.ts | 16 ++------------- .../exchanges/types/vp-request-query.ts | 16 ++------------- .../vp-submission-verifier.service.spec.ts | 16 ++------------- .../vp-submission-verifier.service.ts | 16 ++------------- .../vc-api/src/vc-api/exhaustiveMatchGuard.ts | 16 ++------------- .../src/vc-api/vc-api.controller.spec.ts | 16 ++------------- apps/vc-api/src/vc-api/vc-api.controller.ts | 16 ++------------- apps/vc-api/src/vc-api/vc-api.module.ts | 16 ++------------- apps/vc-api/test/app.e2e-spec.ts | 16 ++------------- apps/vc-api/test/did/did.e2e-suite.ts | 16 ++------------- apps/vc-api/test/key/key.e2e-suite.ts | 16 ++------------- .../vc-api/credential.service.spec.data.ts | 5 +++++ .../vc-api/credential.service.spec.key.ts | 5 +++++ .../vc-api/credentials/vc-api.e2e-suite.ts | 16 ++------------- ...t-and-resident-card-credential-exchange.ts | 16 ++------------- ...and-resident-card-presentation.exchange.ts | 16 ++------------- .../consent-and-resident-card.e2e-suite.ts | 16 ++------------- .../exchanges/rebeam/rebeam-cpo-node.ts | 16 ++------------- .../exchanges/rebeam/rebeam-supplier.ts | 16 ++------------- .../exchanges/rebeam/rebeam.e2e-suite.ts | 16 ++------------- .../resident-card-issuance.exchange.ts | 16 ++------------- .../resident-card-presentation.exchange.ts | 16 ++------------- .../resident-card/resident-card.e2e-suite.ts | 16 ++------------- apps/vc-api/test/wallet-client.ts | 20 +++---------------- libraries/did/.eslintrc.js | 11 +++++++--- libraries/did/jest.config.js | 5 +++++ libraries/did/src/did-ethr-factory.spec.ts | 5 +++++ libraries/did/src/did-ethr-factory.ts | 5 +++++ libraries/did/src/did-key-factory.spec.ts | 5 +++++ libraries/did/src/did-key-factory.ts | 5 +++++ libraries/did/src/index.ts | 5 +++++ libraries/did/src/json-web-key.ts | 5 +++++ libraries/webkms/.eslintrc.js | 11 +++++++--- libraries/webkms/src/generate-key.ts | 5 +++++ libraries/webkms/src/index.ts | 5 +++++ libraries/webkms/src/key-description.ts | 5 +++++ tests/e2e/.eslintrc.js | 5 +++++ tests/e2e/src/main-suite.e2e-spec.ts | 14 +------------ 143 files changed, 340 insertions(+), 1684 deletions(-) diff --git a/apps/vc-api/.eslintrc.js b/apps/vc-api/.eslintrc.js index a97f76c..099b992 100644 --- a/apps/vc-api/.eslintrc.js +++ b/apps/vc-api/.eslintrc.js @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = { parserOptions: { tsconfigRootDir: __dirname, diff --git a/apps/vc-api/scripts/write-open-api-json.ts b/apps/vc-api/scripts/write-open-api-json.ts index 89b24b7..fe34a91 100644 --- a/apps/vc-api/scripts/write-open-api-json.ts +++ b/apps/vc-api/scripts/write-open-api-json.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { writeFileSync } from 'fs'; diff --git a/apps/vc-api/src/app.module.ts b/apps/vc-api/src/app.module.ts index 0f1b6e7..7c05a77 100644 --- a/apps/vc-api/src/app.module.ts +++ b/apps/vc-api/src/app.module.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { DynamicModule, MiddlewareConsumer, Module } from '@nestjs/common'; diff --git a/apps/vc-api/src/config/env-vars-validation-schema.ts b/apps/vc-api/src/config/env-vars-validation-schema.ts index 844b1cd..312f9e7 100644 --- a/apps/vc-api/src/config/env-vars-validation-schema.ts +++ b/apps/vc-api/src/config/env-vars-validation-schema.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import * as Joi from 'joi'; diff --git a/apps/vc-api/src/did/did.controller.spec.ts b/apps/vc-api/src/did/did.controller.spec.ts index 34c9f44..c7c42f4 100644 --- a/apps/vc-api/src/did/did.controller.spec.ts +++ b/apps/vc-api/src/did/did.controller.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/did/did.controller.ts b/apps/vc-api/src/did/did.controller.ts index b21e2d8..6ba2bc5 100644 --- a/apps/vc-api/src/did/did.controller.ts +++ b/apps/vc-api/src/did/did.controller.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { BadRequestException, Body, Controller, Get, NotFoundException, Param, Post } from '@nestjs/common'; diff --git a/apps/vc-api/src/did/did.module.ts b/apps/vc-api/src/did/did.module.ts index dc3313e..de1a0c8 100644 --- a/apps/vc-api/src/did/did.module.ts +++ b/apps/vc-api/src/did/did.module.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Module } from '@nestjs/common'; diff --git a/apps/vc-api/src/did/did.service.spec.ts b/apps/vc-api/src/did/did.service.spec.ts index 98a1071..69bf489 100644 --- a/apps/vc-api/src/did/did.service.spec.ts +++ b/apps/vc-api/src/did/did.service.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/did/did.service.ts b/apps/vc-api/src/did/did.service.ts index df42f37..57df233 100644 --- a/apps/vc-api/src/did/did.service.ts +++ b/apps/vc-api/src/did/did.service.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { DIDEthrFactory, DIDKeyFactory } from '@energyweb/ssi-did'; diff --git a/apps/vc-api/src/did/dto/create-did-options.dto.ts b/apps/vc-api/src/did/dto/create-did-options.dto.ts index 4c268ee..ac02b07 100644 --- a/apps/vc-api/src/did/dto/create-did-options.dto.ts +++ b/apps/vc-api/src/did/dto/create-did-options.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsEnum, IsOptional, IsString } from 'class-validator'; diff --git a/apps/vc-api/src/did/dto/create-did-response.dto.ts b/apps/vc-api/src/did/dto/create-did-response.dto.ts index 517ba56..c515384 100644 --- a/apps/vc-api/src/did/dto/create-did-response.dto.ts +++ b/apps/vc-api/src/did/dto/create-did-response.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/did/dto/json-web-key.dto.ts b/apps/vc-api/src/did/dto/json-web-key.dto.ts index c4e8efc..7757baa 100644 --- a/apps/vc-api/src/did/dto/json-web-key.dto.ts +++ b/apps/vc-api/src/did/dto/json-web-key.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/did/dto/verification-method.dto.ts b/apps/vc-api/src/did/dto/verification-method.dto.ts index 674a7c1..976976a 100644 --- a/apps/vc-api/src/did/dto/verification-method.dto.ts +++ b/apps/vc-api/src/did/dto/verification-method.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/did/entities/did-document.entity.ts b/apps/vc-api/src/did/entities/did-document.entity.ts index 21e297f..2688748 100644 --- a/apps/vc-api/src/did/entities/did-document.entity.ts +++ b/apps/vc-api/src/did/entities/did-document.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Column, Entity, OneToMany } from 'typeorm'; diff --git a/apps/vc-api/src/did/entities/verification-method.entity.ts b/apps/vc-api/src/did/entities/verification-method.entity.ts index 0082920..7ccebb0 100644 --- a/apps/vc-api/src/did/entities/verification-method.entity.ts +++ b/apps/vc-api/src/did/entities/verification-method.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { DifJsonWebKey } from '@energyweb/ssi-did'; diff --git a/apps/vc-api/src/did/types/did-method.ts b/apps/vc-api/src/did/types/did-method.ts index bea68c4..d8780cb 100644 --- a/apps/vc-api/src/did/types/did-method.ts +++ b/apps/vc-api/src/did/types/did-method.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ export enum DidMethod { diff --git a/apps/vc-api/src/dtos/bad-request-error-response.dto.ts b/apps/vc-api/src/dtos/bad-request-error-response.dto.ts index 8545974..576d98f 100644 --- a/apps/vc-api/src/dtos/bad-request-error-response.dto.ts +++ b/apps/vc-api/src/dtos/bad-request-error-response.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/dtos/conflict-error-response.dto.ts b/apps/vc-api/src/dtos/conflict-error-response.dto.ts index ac18123..b632e14 100644 --- a/apps/vc-api/src/dtos/conflict-error-response.dto.ts +++ b/apps/vc-api/src/dtos/conflict-error-response.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/dtos/internal-server-error-response.dto.ts b/apps/vc-api/src/dtos/internal-server-error-response.dto.ts index 9be2ac9..270e4cc 100644 --- a/apps/vc-api/src/dtos/internal-server-error-response.dto.ts +++ b/apps/vc-api/src/dtos/internal-server-error-response.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/dtos/not-found-error-response.dto.ts b/apps/vc-api/src/dtos/not-found-error-response.dto.ts index 5d9f8b9..553bff0 100644 --- a/apps/vc-api/src/dtos/not-found-error-response.dto.ts +++ b/apps/vc-api/src/dtos/not-found-error-response.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/exception-filters/transaction-entity-exception.filter.ts b/apps/vc-api/src/exception-filters/transaction-entity-exception.filter.ts index e800eb0..efd94f2 100644 --- a/apps/vc-api/src/exception-filters/transaction-entity-exception.filter.ts +++ b/apps/vc-api/src/exception-filters/transaction-entity-exception.filter.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { BaseExceptionFilter } from '@nestjs/core'; diff --git a/apps/vc-api/src/in-memory-db.ts b/apps/vc-api/src/in-memory-db.ts index 2401604..a776dd9 100644 --- a/apps/vc-api/src/in-memory-db.ts +++ b/apps/vc-api/src/in-memory-db.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { TypeOrmModule } from '@nestjs/typeorm'; diff --git a/apps/vc-api/src/index.ts b/apps/vc-api/src/index.ts index 73f6fe3..0d98849 100644 --- a/apps/vc-api/src/index.ts +++ b/apps/vc-api/src/index.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ export { AppModule } from './app.module'; diff --git a/apps/vc-api/src/key/dtos/key-description.dto.ts b/apps/vc-api/src/key/dtos/key-description.dto.ts index f877e0c..0e5835b 100644 --- a/apps/vc-api/src/key/dtos/key-description.dto.ts +++ b/apps/vc-api/src/key/dtos/key-description.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IKeyDescription } from '@energyweb/w3c-ccg-webkms'; diff --git a/apps/vc-api/src/key/dtos/key-pair.dto.ts b/apps/vc-api/src/key/dtos/key-pair.dto.ts index 2541337..9a32d1a 100644 --- a/apps/vc-api/src/key/dtos/key-pair.dto.ts +++ b/apps/vc-api/src/key/dtos/key-pair.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsNotEmptyObject } from 'class-validator'; diff --git a/apps/vc-api/src/key/key-pair.entity.ts b/apps/vc-api/src/key/key-pair.entity.ts index d11ca06..f729a1b 100644 --- a/apps/vc-api/src/key/key-pair.entity.ts +++ b/apps/vc-api/src/key/key-pair.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { JWK } from 'jose'; diff --git a/apps/vc-api/src/key/key-types.ts b/apps/vc-api/src/key/key-types.ts index d0e25c1..68d1ed7 100644 --- a/apps/vc-api/src/key/key-types.ts +++ b/apps/vc-api/src/key/key-types.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ export enum keyType { diff --git a/apps/vc-api/src/key/key.controller.spec.ts b/apps/vc-api/src/key/key.controller.spec.ts index a75b09d..1e2f4b3 100644 --- a/apps/vc-api/src/key/key.controller.spec.ts +++ b/apps/vc-api/src/key/key.controller.spec.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { Test, TestingModule } from '@nestjs/testing'; import { KeyController } from './key.controller'; import { KeyService } from './key.service'; diff --git a/apps/vc-api/src/key/key.controller.ts b/apps/vc-api/src/key/key.controller.ts index cc501b7..21c5bb5 100644 --- a/apps/vc-api/src/key/key.controller.ts +++ b/apps/vc-api/src/key/key.controller.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { BadRequestException, Body, Controller, Get, NotFoundException, Param, Post } from '@nestjs/common'; diff --git a/apps/vc-api/src/key/key.module.ts b/apps/vc-api/src/key/key.module.ts index 7e0afc1..b59e4c8 100644 --- a/apps/vc-api/src/key/key.module.ts +++ b/apps/vc-api/src/key/key.module.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Module } from '@nestjs/common'; diff --git a/apps/vc-api/src/key/key.service.spec.ts b/apps/vc-api/src/key/key.service.spec.ts index a42f286..55ba774 100644 --- a/apps/vc-api/src/key/key.service.spec.ts +++ b/apps/vc-api/src/key/key.service.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/key/key.service.ts b/apps/vc-api/src/key/key.service.ts index fd588b9..436f399 100644 --- a/apps/vc-api/src/key/key.service.ts +++ b/apps/vc-api/src/key/key.service.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { BadRequestException, Injectable } from '@nestjs/common'; diff --git a/apps/vc-api/src/main.ts b/apps/vc-api/src/main.ts index f6a8285..83e09a3 100644 --- a/apps/vc-api/src/main.ts +++ b/apps/vc-api/src/main.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { setupApp, setupSwaggerDocument } from './setup'; diff --git a/apps/vc-api/src/middlewares/http-logger.middleware.ts b/apps/vc-api/src/middlewares/http-logger.middleware.ts index 1752583..da62295 100644 --- a/apps/vc-api/src/middlewares/http-logger.middleware.ts +++ b/apps/vc-api/src/middlewares/http-logger.middleware.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { Injectable, Logger, NestMiddleware } from '@nestjs/common'; import { NextFunction, Request, Response } from 'express'; diff --git a/apps/vc-api/src/middlewares/index.ts b/apps/vc-api/src/middlewares/index.ts index d88583b..d068d62 100644 --- a/apps/vc-api/src/middlewares/index.ts +++ b/apps/vc-api/src/middlewares/index.ts @@ -1 +1,6 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + export * from './http-logger.middleware'; diff --git a/apps/vc-api/src/seeder/fixtures/key-pair.fixture.ts b/apps/vc-api/src/seeder/fixtures/key-pair.fixture.ts index 79f1faa..ab1b7c7 100644 --- a/apps/vc-api/src/seeder/fixtures/key-pair.fixture.ts +++ b/apps/vc-api/src/seeder/fixtures/key-pair.fixture.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { KeyPair } from '../../key/key-pair.entity'; diff --git a/apps/vc-api/src/seeder/seeder.module.ts b/apps/vc-api/src/seeder/seeder.module.ts index 6457e1c..4bd2f0f 100644 --- a/apps/vc-api/src/seeder/seeder.module.ts +++ b/apps/vc-api/src/seeder/seeder.module.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { Module } from '@nestjs/common'; import { SeederService } from './seeder.service'; import { KeyPair } from '../key/key-pair.entity'; diff --git a/apps/vc-api/src/seeder/seeder.service.spec.ts b/apps/vc-api/src/seeder/seeder.service.spec.ts index 6e6606e..b1fc0aa 100644 --- a/apps/vc-api/src/seeder/seeder.service.spec.ts +++ b/apps/vc-api/src/seeder/seeder.service.spec.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { Test, TestingModule } from '@nestjs/testing'; import { SeederService } from './seeder.service'; import { getRepositoryToken } from '@nestjs/typeorm'; diff --git a/apps/vc-api/src/seeder/seeder.service.ts b/apps/vc-api/src/seeder/seeder.service.ts index 7799f11..9402752 100644 --- a/apps/vc-api/src/seeder/seeder.service.ts +++ b/apps/vc-api/src/seeder/seeder.service.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { Injectable, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { KeyPair } from '../key/key-pair.entity'; diff --git a/apps/vc-api/src/setup.ts b/apps/vc-api/src/setup.ts index 07a460a..e27656f 100644 --- a/apps/vc-api/src/setup.ts +++ b/apps/vc-api/src/setup.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { INestApplication, ValidationPipe, VersioningType } from '@nestjs/common'; diff --git a/apps/vc-api/src/vc-api/credentials/credentials.service.spec.ts b/apps/vc-api/src/vc-api/credentials/credentials.service.spec.ts index e23a671..430c1f3 100644 --- a/apps/vc-api/src/vc-api/credentials/credentials.service.spec.ts +++ b/apps/vc-api/src/vc-api/credentials/credentials.service.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/vc-api/credentials/credentials.service.ts b/apps/vc-api/src/vc-api/credentials/credentials.service.ts index 6aae2ad..225ec54 100644 --- a/apps/vc-api/src/vc-api/credentials/credentials.service.ts +++ b/apps/vc-api/src/vc-api/credentials/credentials.service.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { BadRequestException, Injectable, InternalServerErrorException } from '@nestjs/common'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/authenticate.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/authenticate.dto.ts index 69f793f..f20627a 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/authenticate.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/authenticate.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsString, ValidateNested } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/credential.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/credential.dto.ts index a9d929a..5d53bf5 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/credential.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/credential.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsArray, IsDateString, IsObject, IsOptional, IsString } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/custom-class-validator/is-string-or-string-array.ts b/apps/vc-api/src/vc-api/credentials/dtos/custom-class-validator/is-string-or-string-array.ts index 6c1a9f8..ca276c0 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/custom-class-validator/is-string-or-string-array.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/custom-class-validator/is-string-or-string-array.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { registerDecorator, ValidationOptions } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/issue-credential.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/issue-credential.dto.ts index d09ed3b..1fc59d9 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/issue-credential.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/issue-credential.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsNotEmpty, IsNotEmptyObject, IsObject, IsOptional, ValidateNested } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/issue-options.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/issue-options.dto.ts index 8d5dd6c..b85f94f 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/issue-options.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/issue-options.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsObject, IsOptional, IsString } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/issuer.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/issuer.dto.ts index 57380aa..e16c257 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/issuer.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/issuer.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/presentation.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/presentation.dto.ts index 52a3276..5577ab4 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/presentation.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/presentation.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsArray, IsOptional, IsString, ValidateNested } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation-options.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation-options.dto.ts index 5aabe2c..8c956d4 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation-options.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation-options.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ProofPurpose } from '@sphereon/pex'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation.dto.ts index f0ef4b4..20efa45 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/prove-presentation.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ValidateNested } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/verifiable-credential.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/verifiable-credential.dto.ts index 3236437..e9a4588 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/verifiable-credential.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/verifiable-credential.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsObject } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/verifiable-presentation.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/verifiable-presentation.dto.ts index fcb65ec..c8fffc8 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/verifiable-presentation.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/verifiable-presentation.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsObject } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/verification-result.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/verification-result.dto.ts index dac9656..0e4470b 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/verification-result.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/verification-result.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsArray, IsString } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/verify-credential.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/verify-credential.dto.ts index 71f1eeb..b9d1776 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/verify-credential.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/verify-credential.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerifiableCredentialDto } from './verifiable-credential.dto'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/verify-options.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/verify-options.dto.ts index 3bd3986..0194fe0 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/verify-options.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/verify-options.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ProofPurpose } from '@sphereon/pex'; diff --git a/apps/vc-api/src/vc-api/credentials/dtos/verify-presentation.dto.ts b/apps/vc-api/src/vc-api/credentials/dtos/verify-presentation.dto.ts index 9911bb0..dcd7eef 100644 --- a/apps/vc-api/src/vc-api/credentials/dtos/verify-presentation.dto.ts +++ b/apps/vc-api/src/vc-api/credentials/dtos/verify-presentation.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerifyOptionsDto } from './verify-options.dto'; diff --git a/apps/vc-api/src/vc-api/credentials/types/credential-verifier.ts b/apps/vc-api/src/vc-api/credentials/types/credential-verifier.ts index a34fa08..2628a0f 100644 --- a/apps/vc-api/src/vc-api/credentials/types/credential-verifier.ts +++ b/apps/vc-api/src/vc-api/credentials/types/credential-verifier.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerifiableCredential } from '../../exchanges/types/verifiable-credential'; diff --git a/apps/vc-api/src/vc-api/credentials/types/presentation-verifier.ts b/apps/vc-api/src/vc-api/credentials/types/presentation-verifier.ts index 25f98b1..cd334c6 100644 --- a/apps/vc-api/src/vc-api/credentials/types/presentation-verifier.ts +++ b/apps/vc-api/src/vc-api/credentials/types/presentation-verifier.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerifiablePresentation } from '../../exchanges/types/verifiable-presentation'; diff --git a/apps/vc-api/src/vc-api/credentials/types/verification-result.ts b/apps/vc-api/src/vc-api/credentials/types/verification-result.ts index 9e61626..c1e9e6f 100644 --- a/apps/vc-api/src/vc-api/credentials/types/verification-result.ts +++ b/apps/vc-api/src/vc-api/credentials/types/verification-result.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/credentials/types/verify-options.ts b/apps/vc-api/src/vc-api/credentials/types/verify-options.ts index 9f710e1..d149919 100644 --- a/apps/vc-api/src/vc-api/credentials/types/verify-options.ts +++ b/apps/vc-api/src/vc-api/credentials/types/verify-options.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.spec.ts b/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.spec.ts index 3eaca47..2a910c8 100644 --- a/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.spec.ts +++ b/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.spec.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { didKitExecutor } from './did-kit-executor.function'; diff --git a/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.ts b/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.ts index 62668ce..855e06c 100644 --- a/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.ts +++ b/apps/vc-api/src/vc-api/credentials/utils/did-kit-executor.function.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { BadRequestException } from '@nestjs/common'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.spec.ts b/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.spec.ts index 95843df..489f294 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { validate } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.ts index 45e400b..c119509 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/callback-configuration.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsUrl } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/callback.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/callback.dto.ts index b4460e3..b1457f5 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/callback.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/callback.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { instanceToPlain, plainToInstance, Type } from 'class-transformer'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/index.ts b/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/index.ts index ae0ab06..e934b1c 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/index.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/index.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ export * from './issuer.validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/issuer.validator.ts b/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/issuer.validator.ts index 99d758a..360c957 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/issuer.validator.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/issuer.validator.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/presentation-definition-credential-query.validator.ts b/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/presentation-definition-credential-query.validator.ts index 6f34bd9..c08f4cb 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/presentation-definition-credential-query.validator.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/custom-validators/presentation-definition-credential-query.validator.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IPresentationDefinition, PEX, Status } from '@sphereon/pex'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.spec.ts b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.spec.ts index f2bcdcd..65afdc0 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { validate } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.ts index 1a44c99..165d0ab 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-definition.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsArray, IsBoolean, IsString, ValidateNested } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-interact-service-definition.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-interact-service-definition.dto.ts index a1a13fa..85e0e0b 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-interact-service-definition.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-interact-service-definition.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsEnum } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-response.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-response.dto.ts index 6c637fe..09603ba 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/exchange-response.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/exchange-response.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsArray, IsBoolean, IsOptional, IsString, ValidateNested } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/presentation-definition.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/presentation-definition.dto.ts index 1ae089f..a9d445d 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/presentation-definition.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/presentation-definition.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ApiProperty } from '@nestjs/swagger'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-full.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-full.dto.ts index 38ce6ef..46379d2 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-full.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-full.dto.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerificationResultDto } from '../../credentials/dtos/verification-result.dto'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-secure.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-secure.dto.ts index 1f1d7cd..432e395 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-secure.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/presentation-submission-secure.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerificationResultDto } from '../../credentials/dtos/verification-result.dto'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/submission-review.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/submission-review.dto.ts index 82c59b2..f976377 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/submission-review.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/submission-review.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Type } from 'class-transformer'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/transaction.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/transaction.dto.ts index cbbdb57..ec0b962 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/transaction.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/transaction.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { classToPlain, plainToClass, Type } from 'class-transformer'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-did-auth-query.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-did-auth-query.dto.ts index 17a12c2..aea633b 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-did-auth-query.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-did-auth-query.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ export class VpRequestDidAuthQueryDto {} diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.spec.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.spec.ts index e00da7a..a3efc72 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { validate } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.ts index 6841ba3..f8a4be1 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact-service.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsEnum, IsUrl } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact.dto.ts index 7ca2dfa..365e20e 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-interact.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Type } from 'class-transformer'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.spec.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.spec.ts index 2ad64f4..c17ac90 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { validate } from 'class-validator'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.ts index 46c0fe5..b5612e5 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-presentation-defintion-query.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IsPresentationDefinitionCredentialQuery } from './custom-validators'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-query.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-query.dto.ts index 72c920b..5f3e660 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-query.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request-query.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Type } from 'class-transformer'; diff --git a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request.dto.ts b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request.dto.ts index 4145fc9..40b6d1e 100644 --- a/apps/vc-api/src/vc-api/exchanges/dtos/vp-request.dto.ts +++ b/apps/vc-api/src/vc-api/exchanges/dtos/vp-request.dto.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { classToPlain, plainToClass, Type } from 'class-transformer'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.spec.ts b/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.spec.ts index 7fabade..c9ea833 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ExchangeDefinitionDto } from '../dtos/exchange-definition.dto'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.ts b/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.ts index 7a9c7e8..54fa328 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/exchange.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Column, Entity } from 'typeorm'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/presentation-review.entity.ts b/apps/vc-api/src/vc-api/exchanges/entities/presentation-review.entity.ts index 116bbcd..e9f9333 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/presentation-review.entity.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/presentation-review.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Column, Entity } from 'typeorm'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/presentation-submission.entity.ts b/apps/vc-api/src/vc-api/exchanges/entities/presentation-submission.entity.ts index c0b2c95..11c4d7e 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/presentation-submission.entity.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/presentation-submission.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerificationResult } from '../../credentials/types/verification-result'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.spec.ts b/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.spec.ts index 0272861..b3d861e 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { PresentationReviewStatus } from '../types/presentation-review-status'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.ts b/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.ts index 9f0c216..bc2b547 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/transaction.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Column, Entity, JoinColumn, OneToOne } from 'typeorm'; diff --git a/apps/vc-api/src/vc-api/exchanges/entities/vp-request.entity.ts b/apps/vc-api/src/vc-api/exchanges/entities/vp-request.entity.ts index e598e13..162af56 100644 --- a/apps/vc-api/src/vc-api/exchanges/entities/vp-request.entity.ts +++ b/apps/vc-api/src/vc-api/exchanges/entities/vp-request.entity.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Column, Entity } from 'typeorm'; diff --git a/apps/vc-api/src/vc-api/exchanges/exchange.service.spec.ts b/apps/vc-api/src/vc-api/exchanges/exchange.service.spec.ts index 755ecf8..332aa04 100644 --- a/apps/vc-api/src/vc-api/exchanges/exchange.service.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/exchange.service.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/vc-api/exchanges/exchange.service.ts b/apps/vc-api/src/vc-api/exchanges/exchange.service.ts index c56eb60..f6206b9 100644 --- a/apps/vc-api/src/vc-api/exchanges/exchange.service.ts +++ b/apps/vc-api/src/vc-api/exchanges/exchange.service.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/apps/vc-api/src/vc-api/exchanges/types/callback-configuration.ts b/apps/vc-api/src/vc-api/exchanges/types/callback-configuration.ts index 7dff7fe..b4a0a82 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/callback-configuration.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/callback-configuration.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/exchanges/types/credential.ts b/apps/vc-api/src/vc-api/exchanges/types/credential.ts index 69343e5..a88f921 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/credential.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/credential.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/exchanges/types/presentation-review-status.ts b/apps/vc-api/src/vc-api/exchanges/types/presentation-review-status.ts index dd6c137..ac43263 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/presentation-review-status.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/presentation-review-status.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/exchanges/types/presentation.ts b/apps/vc-api/src/vc-api/exchanges/types/presentation.ts index 834d48a..8c98874 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/presentation.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/presentation.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerifiableCredential } from './verifiable-credential'; diff --git a/apps/vc-api/src/vc-api/exchanges/types/submission-verifier.ts b/apps/vc-api/src/vc-api/exchanges/types/submission-verifier.ts index cb425cc..a5914b9 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/submission-verifier.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/submission-verifier.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VerificationResult } from '../../credentials/types/verification-result'; diff --git a/apps/vc-api/src/vc-api/exchanges/types/verifiable-credential.ts b/apps/vc-api/src/vc-api/exchanges/types/verifiable-credential.ts index dee3af9..febada1 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/verifiable-credential.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/verifiable-credential.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { IProof } from '@sphereon/pex'; diff --git a/apps/vc-api/src/vc-api/exchanges/types/verifiable-presentation.ts b/apps/vc-api/src/vc-api/exchanges/types/verifiable-presentation.ts index 3ec9e6e..5fc3f0c 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/verifiable-presentation.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/verifiable-presentation.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Presentation } from './presentation'; diff --git a/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-definition.ts b/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-definition.ts index 24904c1..b88e61b 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-definition.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-definition.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VpRequestInteractServiceType } from './vp-request-interact-service-type'; diff --git a/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-type.ts b/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-type.ts index 56c9fea..1f8cf1d 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-type.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service-type.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service.ts b/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service.ts index f03633b..016e479 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/vp-request-interact-service.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VpRequestInteractServiceType } from './vp-request-interact-service-type'; diff --git a/apps/vc-api/src/vc-api/exchanges/types/vp-request-query-type.ts b/apps/vc-api/src/vc-api/exchanges/types/vp-request-query-type.ts index 850c530..4136bed 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/vp-request-query-type.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/vp-request-query-type.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/exchanges/types/vp-request-query.ts b/apps/vc-api/src/vc-api/exchanges/types/vp-request-query.ts index efc2554..1aed9a1 100644 --- a/apps/vc-api/src/vc-api/exchanges/types/vp-request-query.ts +++ b/apps/vc-api/src/vc-api/exchanges/types/vp-request-query.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { VpRequestQueryType } from './vp-request-query-type'; diff --git a/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.spec.ts b/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.spec.ts index 921c661..23c2723 100644 --- a/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.spec.ts +++ b/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.ts b/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.ts index 6308497..0092493 100644 --- a/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.ts +++ b/apps/vc-api/src/vc-api/exchanges/vp-submission-verifier.service.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Injectable } from '@nestjs/common'; diff --git a/apps/vc-api/src/vc-api/exhaustiveMatchGuard.ts b/apps/vc-api/src/vc-api/exhaustiveMatchGuard.ts index 9985259..5ead90a 100644 --- a/apps/vc-api/src/vc-api/exhaustiveMatchGuard.ts +++ b/apps/vc-api/src/vc-api/exhaustiveMatchGuard.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/apps/vc-api/src/vc-api/vc-api.controller.spec.ts b/apps/vc-api/src/vc-api/vc-api.controller.spec.ts index b17cc40..3c4ed8f 100644 --- a/apps/vc-api/src/vc-api/vc-api.controller.spec.ts +++ b/apps/vc-api/src/vc-api/vc-api.controller.spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/src/vc-api/vc-api.controller.ts b/apps/vc-api/src/vc-api/vc-api.controller.ts index e5be3dd..6f279b5 100644 --- a/apps/vc-api/src/vc-api/vc-api.controller.ts +++ b/apps/vc-api/src/vc-api/vc-api.controller.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/apps/vc-api/src/vc-api/vc-api.module.ts b/apps/vc-api/src/vc-api/vc-api.module.ts index ccb488e..8792613 100644 --- a/apps/vc-api/src/vc-api/vc-api.module.ts +++ b/apps/vc-api/src/vc-api/vc-api.module.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Module } from '@nestjs/common'; diff --git a/apps/vc-api/test/app.e2e-spec.ts b/apps/vc-api/test/app.e2e-spec.ts index 6ede342..909003f 100644 --- a/apps/vc-api/test/app.e2e-spec.ts +++ b/apps/vc-api/test/app.e2e-spec.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Test, TestingModule } from '@nestjs/testing'; diff --git a/apps/vc-api/test/did/did.e2e-suite.ts b/apps/vc-api/test/did/did.e2e-suite.ts index 95c27b9..de5f69c 100644 --- a/apps/vc-api/test/did/did.e2e-suite.ts +++ b/apps/vc-api/test/did/did.e2e-suite.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { walletClient } from '../app.e2e-spec'; diff --git a/apps/vc-api/test/key/key.e2e-suite.ts b/apps/vc-api/test/key/key.e2e-suite.ts index 49c0705..e3be21c 100644 --- a/apps/vc-api/test/key/key.e2e-suite.ts +++ b/apps/vc-api/test/key/key.e2e-suite.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { walletClient } from '../app.e2e-spec'; diff --git a/apps/vc-api/test/vc-api/credential.service.spec.data.ts b/apps/vc-api/test/vc-api/credential.service.spec.data.ts index 643423b..bf6a67a 100644 --- a/apps/vc-api/test/vc-api/credential.service.spec.data.ts +++ b/apps/vc-api/test/vc-api/credential.service.spec.data.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { Optionality, Rules } from '@sphereon/pex-models'; import { CredentialDto } from 'src/vc-api/credentials/dtos/credential.dto'; import { Presentation } from 'src/vc-api/exchanges/types/presentation'; diff --git a/apps/vc-api/test/vc-api/credential.service.spec.key.ts b/apps/vc-api/test/vc-api/credential.service.spec.key.ts index adca3eb..574bea1 100644 --- a/apps/vc-api/test/vc-api/credential.service.spec.key.ts +++ b/apps/vc-api/test/vc-api/credential.service.spec.key.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { keyToDID } from '@spruceid/didkit-wasm-node'; export const key = { diff --git a/apps/vc-api/test/vc-api/credentials/vc-api.e2e-suite.ts b/apps/vc-api/test/vc-api/credentials/vc-api.e2e-suite.ts index a6c67cd..e3568bc 100644 --- a/apps/vc-api/test/vc-api/credentials/vc-api.e2e-suite.ts +++ b/apps/vc-api/test/vc-api/credentials/vc-api.e2e-suite.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import * as request from 'supertest'; diff --git a/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-credential-exchange.ts b/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-credential-exchange.ts index 68579d8..52e9fbd 100644 --- a/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-credential-exchange.ts +++ b/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-credential-exchange.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { plainToClass } from 'class-transformer'; diff --git a/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-presentation.exchange.ts b/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-presentation.exchange.ts index e790ac5..ba2002c 100644 --- a/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-presentation.exchange.ts +++ b/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card-presentation.exchange.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { Rules } from '@sphereon/pex-models'; diff --git a/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card.e2e-suite.ts b/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card.e2e-suite.ts index 01df39b..eba60b4 100644 --- a/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card.e2e-suite.ts +++ b/apps/vc-api/test/vc-api/exchanges/consent-and-resident-card-credentialexchange/consent-and-resident-card.e2e-suite.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ProofPurpose } from '@sphereon/pex'; diff --git a/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-cpo-node.ts b/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-cpo-node.ts index 05f1e25..e5786de 100644 --- a/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-cpo-node.ts +++ b/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-cpo-node.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { plainToClass } from 'class-transformer'; diff --git a/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-supplier.ts b/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-supplier.ts index 10ae585..220ce36 100644 --- a/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-supplier.ts +++ b/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam-supplier.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { DIDDocument } from 'did-resolver'; diff --git a/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam.e2e-suite.ts b/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam.e2e-suite.ts index 1ef8820..f924060 100644 --- a/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam.e2e-suite.ts +++ b/apps/vc-api/test/vc-api/exchanges/rebeam/rebeam.e2e-suite.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import * as request from 'supertest'; diff --git a/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-issuance.exchange.ts b/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-issuance.exchange.ts index 0fab2b0..06cd3ee 100644 --- a/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-issuance.exchange.ts +++ b/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-issuance.exchange.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { plainToClass } from 'class-transformer'; diff --git a/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-presentation.exchange.ts b/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-presentation.exchange.ts index ccbe01c..9d085ef 100644 --- a/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-presentation.exchange.ts +++ b/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card-presentation.exchange.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { plainToClass } from 'class-transformer'; diff --git a/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card.e2e-suite.ts b/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card.e2e-suite.ts index a472bc2..5016d7c 100644 --- a/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card.e2e-suite.ts +++ b/apps/vc-api/test/vc-api/exchanges/resident-card/resident-card.e2e-suite.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { ProofPurpose } from '@sphereon/pex'; diff --git a/apps/vc-api/test/wallet-client.ts b/apps/vc-api/test/wallet-client.ts index 8cde0ec..2f3c754 100644 --- a/apps/vc-api/test/wallet-client.ts +++ b/apps/vc-api/test/wallet-client.ts @@ -1,18 +1,6 @@ -/** +/* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { INestApplication } from '@nestjs/common'; @@ -112,9 +100,7 @@ export class WalletClient { exchangeEndpoint: string, expectedQueryType: VpRequestQueryType ): Promise { - const startWorkflowResponse = await request(this.#app.getHttpServer()) - .post(exchangeEndpoint) - .expect(201); + const startWorkflowResponse = await request(this.#app.getHttpServer()).post(exchangeEndpoint).expect(201); const vpRequest = (startWorkflowResponse.body as ExchangeResponseDto).vpRequest; expect(vpRequest).toBeDefined(); const challenge = vpRequest.challenge; diff --git a/libraries/did/.eslintrc.js b/libraries/did/.eslintrc.js index 6d9ce01..67a7b5c 100644 --- a/libraries/did/.eslintrc.js +++ b/libraries/did/.eslintrc.js @@ -1,13 +1,18 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = { parserOptions: { tsconfigRootDir: __dirname, - project: 'tsconfig.json', + project: 'tsconfig.json' }, extends: ['@energyweb'], env: { es2021: true, node: true, - jest: true, + jest: true }, - ignorePatterns: ['.eslintrc.js'], + ignorePatterns: ['.eslintrc.js'] }; diff --git a/libraries/did/jest.config.js b/libraries/did/jest.config.js index 206137a..8f79c5d 100644 --- a/libraries/did/jest.config.js +++ b/libraries/did/jest.config.js @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + let sharedConfig = require('../../jest.config.js'); module.exports = { diff --git a/libraries/did/src/did-ethr-factory.spec.ts b/libraries/did/src/did-ethr-factory.spec.ts index 6644056..4bc2143 100644 --- a/libraries/did/src/did-ethr-factory.spec.ts +++ b/libraries/did/src/did-ethr-factory.spec.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { DIDEthrFactory } from './did-ethr-factory'; describe('DIDEthrFactory', () => { diff --git a/libraries/did/src/did-ethr-factory.ts b/libraries/did/src/did-ethr-factory.ts index 7458c01..443b47d 100644 --- a/libraries/did/src/did-ethr-factory.ts +++ b/libraries/did/src/did-ethr-factory.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { DIDDocument, VerificationMethod } from 'did-resolver'; import { verificationMethodTypes } from 'ethr-did-resolver'; import { DifJsonWebKey } from '.'; diff --git a/libraries/did/src/did-key-factory.spec.ts b/libraries/did/src/did-key-factory.spec.ts index 25647b2..dd73744 100644 --- a/libraries/did/src/did-key-factory.spec.ts +++ b/libraries/did/src/did-key-factory.spec.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { DIDKeyFactory } from './did-key-factory'; describe('DIDKeyFactory', () => { diff --git a/libraries/did/src/did-key-factory.ts b/libraries/did/src/did-key-factory.ts index 9dd4ffc..ede7210 100644 --- a/libraries/did/src/did-key-factory.ts +++ b/libraries/did/src/did-key-factory.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { keyToDID, keyToVerificationMethod } from '@spruceid/didkit-wasm-node'; import { DIDDocument, VerificationMethod } from 'did-resolver'; import { verificationMethodTypes } from 'ethr-did-resolver'; diff --git a/libraries/did/src/index.ts b/libraries/did/src/index.ts index 2eae90c..bb0bcef 100644 --- a/libraries/did/src/index.ts +++ b/libraries/did/src/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + export * from './did-ethr-factory'; export * from './did-key-factory'; export * from './json-web-key'; diff --git a/libraries/did/src/json-web-key.ts b/libraries/did/src/json-web-key.ts index 9fcd1d7..3d60986 100644 --- a/libraries/did/src/json-web-key.ts +++ b/libraries/did/src/json-web-key.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + /** * Copied from Decentralized Identity Foundation (DIF) did-resolver because it is not exported from the package * https://github.com/decentralized-identity/did-resolver/blob/d732d6c18d9c5be8d3b810897cf05074f38788eb/src/resolver.ts#L73 diff --git a/libraries/webkms/.eslintrc.js b/libraries/webkms/.eslintrc.js index 6d9ce01..67a7b5c 100644 --- a/libraries/webkms/.eslintrc.js +++ b/libraries/webkms/.eslintrc.js @@ -1,13 +1,18 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = { parserOptions: { tsconfigRootDir: __dirname, - project: 'tsconfig.json', + project: 'tsconfig.json' }, extends: ['@energyweb'], env: { es2021: true, node: true, - jest: true, + jest: true }, - ignorePatterns: ['.eslintrc.js'], + ignorePatterns: ['.eslintrc.js'] }; diff --git a/libraries/webkms/src/generate-key.ts b/libraries/webkms/src/generate-key.ts index b8a630b..6e028ff 100644 --- a/libraries/webkms/src/generate-key.ts +++ b/libraries/webkms/src/generate-key.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + import { IKeyDescription } from './key-description'; /** diff --git a/libraries/webkms/src/index.ts b/libraries/webkms/src/index.ts index 968929f..69918a9 100644 --- a/libraries/webkms/src/index.ts +++ b/libraries/webkms/src/index.ts @@ -1,2 +1,7 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + export * from './key-description'; export * from './generate-key'; diff --git a/libraries/webkms/src/key-description.ts b/libraries/webkms/src/key-description.ts index ae948d5..44e6a46 100644 --- a/libraries/webkms/src/key-description.ts +++ b/libraries/webkms/src/key-description.ts @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + /** * An interface representing webkms key description https://w3c-ccg.github.io/webkms/#getkeydescription-options-code-lt-map-gt-code- */ diff --git a/tests/e2e/.eslintrc.js b/tests/e2e/.eslintrc.js index d6f5dd6..e5c28c3 100644 --- a/tests/e2e/.eslintrc.js +++ b/tests/e2e/.eslintrc.js @@ -1,3 +1,8 @@ +/* + * Copyright 2021 - 2023 Energy Web Foundation + * SPDX-License-Identifier: Apache-2.0 + */ + module.exports = { parser: '@typescript-eslint/parser', parserOptions: { diff --git a/tests/e2e/src/main-suite.e2e-spec.ts b/tests/e2e/src/main-suite.e2e-spec.ts index c14f6e9..044b869 100644 --- a/tests/e2e/src/main-suite.e2e-spec.ts +++ b/tests/e2e/src/main-suite.e2e-spec.ts @@ -1,18 +1,6 @@ /* * Copyright 2021 - 2023 Energy Web Foundation - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * SPDX-License-Identifier: Apache-2.0 */ import { AppModule as VcApiAppModule } from '@energyweb/ssi-vc-api';