Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • eclipse/xfsc/ocm/ocm-engine
  • zdravko61/ocm-engine
  • mjuergenscg/ocm-engine
  • tsabolov/ocm-engine
  • mikesell/ocm-engine
5 results
Show changes
Showing
with 222 additions and 200 deletions
......@@ -3,10 +3,10 @@ import { IsString, IsNotEmpty } from 'class-validator';
export default class CredentialStateDto {
@IsString()
@IsNotEmpty()
id: string;
public id: string;
@IsNotEmpty()
metadata: {
public metadata: {
'_internal/indyCredential': {
credentialDefinitionId: string;
schemaId: string;
......@@ -15,17 +15,17 @@ export default class CredentialStateDto {
@IsString()
@IsNotEmpty()
credDefId: string;
public credDefId: string;
@IsString()
@IsNotEmpty()
state: string;
public state: string;
@IsString()
@IsNotEmpty()
threadId: string;
public threadId: string;
@IsString()
@IsNotEmpty()
connectionId: string;
public connectionId: string;
}
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator';
import { IsNotEmpty, IsString } from 'class-validator';
export default class CredentialTypeDto {
@IsString()
id?: string;
public id?: string;
@IsString()
@IsNotEmpty()
@ApiProperty()
type: string;
public type: string;
@IsString()
@IsNotEmpty()
@ApiProperty()
schemaId: string;
public schemaId: string;
}
// eslint-disable-next-line max-classes-per-file
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator';
......@@ -6,33 +5,33 @@ class CredentialPreviewAttributes {
@IsString()
@IsNotEmpty()
@ApiProperty()
name: string;
public name: string;
@IsString()
@ApiProperty()
value: string;
public value: string;
}
export default class OfferCredentialDto {
@IsString()
@IsNotEmpty()
@ApiProperty()
connectionId: string;
public connectionId: string;
@IsString()
@IsNotEmpty()
@ApiProperty()
credentialDefinitionId: string;
public credentialDefinitionId: string;
@IsString()
@IsNotEmpty()
@ApiProperty()
comment: string;
public comment: string;
@ApiProperty({ type: [CredentialPreviewAttributes] })
attributes: CredentialPreviewAttributes[];
public attributes: CredentialPreviewAttributes[];
@IsString()
@IsNotEmpty()
@ApiProperty()
autoAcceptCredential: string;
public autoAcceptCredential: string;
}