Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: relicensing #7

Merged
merged 4 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading