Skip to content

Commit

Permalink
chore: relicensing (#7)
Browse files Browse the repository at this point in the history
* chore: adding the `.nvmrc`

* chore: updating the `LICENSE` file

* chore: upgrading license displayed when vc-api service starts

* chore: updating copyright header in files

Signed-off-by: Energy Web Foundation <[email protected]>
  • Loading branch information
artursudnik authored and jrhender committed Nov 16, 2023
1 parent 5b03ce9 commit 73731b8
Show file tree
Hide file tree
Showing 146 changed files with 544 additions and 2,371 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
876 changes: 202 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions apps/vc-api/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright 2021 - 2023 Energy Web Foundation
* SPDX-License-Identifier: Apache-2.0
*/

module.exports = {
parserOptions: {
tsconfigRootDir: __dirname,
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/scripts/write-open-api-json.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { writeFileSync } from 'fs';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { DynamicModule, MiddlewareConsumer, Module } from '@nestjs/common';
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/config/env-vars-validation-schema.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import * as Joi from 'joi';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/did.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { Test, TestingModule } from '@nestjs/testing';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/did.controller.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { BadRequestException, Body, Controller, Get, NotFoundException, Param, Post } from '@nestjs/common';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/did.module.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { Module } from '@nestjs/common';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/did.service.spec.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { Test, TestingModule } from '@nestjs/testing';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/did.service.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { DIDEthrFactory, DIDKeyFactory } from '@energyweb/ssi-did';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/dto/create-did-options.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { IsEnum, IsOptional, IsString } from 'class-validator';
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/did/dto/create-did-response.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/did/dto/json-web-key.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/did/dto/verification-method.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/entities/did-document.entity.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { Column, Entity, OneToMany } from 'typeorm';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/entities/verification-method.entity.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { DifJsonWebKey } from '@energyweb/ssi-did';
Expand Down
16 changes: 2 additions & 14 deletions apps/vc-api/src/did/types/did-method.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

export enum DidMethod {
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/dtos/bad-request-error-response.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { ApiProperty } from '@nestjs/swagger';
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/dtos/conflict-error-response.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { ApiProperty } from '@nestjs/swagger';
Expand Down
14 changes: 1 addition & 13 deletions apps/vc-api/src/dtos/internal-server-error-response.dto.ts
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
* SPDX-License-Identifier: Apache-2.0
*/

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
Expand Down
Loading

0 comments on commit 73731b8

Please sign in to comment.