Skip to content
Snippets Groups Projects
Commit 057f55f0 authored by Steffen Schulze's avatar Steffen Schulze
Browse files

Merge branch 'main' into 'main'

Project house-keeping, refactoring and reorganizing

See merge request eclipse/xfsc/ocm/ocm-engine!8
parents ff4c37c0 1b303a06
No related branches found
No related tags found
No related merge requests found
Showing
with 222 additions and 200 deletions
...@@ -3,10 +3,10 @@ import { IsString, IsNotEmpty } from 'class-validator'; ...@@ -3,10 +3,10 @@ import { IsString, IsNotEmpty } from 'class-validator';
export default class CredentialStateDto { export default class CredentialStateDto {
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
id: string; public id: string;
@IsNotEmpty() @IsNotEmpty()
metadata: { public metadata: {
'_internal/indyCredential': { '_internal/indyCredential': {
credentialDefinitionId: string; credentialDefinitionId: string;
schemaId: string; schemaId: string;
...@@ -15,17 +15,17 @@ export default class CredentialStateDto { ...@@ -15,17 +15,17 @@ export default class CredentialStateDto {
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
credDefId: string; public credDefId: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
state: string; public state: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
threadId: string; public threadId: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
connectionId: string; public connectionId: string;
} }
import { ApiProperty } from '@nestjs/swagger'; import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator'; import { IsNotEmpty, IsString } from 'class-validator';
export default class CredentialTypeDto { export default class CredentialTypeDto {
@IsString() @IsString()
id?: string; public id?: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
type: string; public type: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
schemaId: string; public schemaId: string;
} }
// eslint-disable-next-line max-classes-per-file
import { ApiProperty } from '@nestjs/swagger'; import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator'; import { IsString, IsNotEmpty } from 'class-validator';
...@@ -6,33 +5,33 @@ class CredentialPreviewAttributes { ...@@ -6,33 +5,33 @@ class CredentialPreviewAttributes {
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
name: string; public name: string;
@IsString() @IsString()
@ApiProperty() @ApiProperty()
value: string; public value: string;
} }
export default class OfferCredentialDto { export default class OfferCredentialDto {
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
connectionId: string; public connectionId: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
credentialDefinitionId: string; public credentialDefinitionId: string;
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
comment: string; public comment: string;
@ApiProperty({ type: [CredentialPreviewAttributes] }) @ApiProperty({ type: [CredentialPreviewAttributes] })
attributes: CredentialPreviewAttributes[]; public attributes: CredentialPreviewAttributes[];
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@ApiProperty() @ApiProperty()
autoAcceptCredential: string; public autoAcceptCredential: string;
} }
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment