Skip to content
Snippets Groups Projects
Unverified Commit a94c050f authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

fix: format

parent d1827131
Branches core-dtos-b
No related tags found
No related merge requests found
Pipeline #67433 waiting for manual action with stages
in 18 minutes and 53 seconds
Showing
with 17 additions and 50 deletions
......@@ -37,7 +37,7 @@ export class EventHandlerService {
constructor(private readonly agentService: AgentService) {}
async handle<T>(event: CloudEventDto<T>) {
let data: any;
let data;
let dto;
switch (event.type) {
case CONNECTION_CREATE:
......
......@@ -10,11 +10,7 @@ import {
ProofEventTypes,
ProofStateChangedEvent,
} from "@aries-framework/core";
import {
MessageRecordDto,
makeEvent,
MESSAGE_MAKE,
} from "@ocm-engine/dtos";
import { MessageRecordDto, makeEvent, MESSAGE_MAKE } from "@ocm-engine/dtos";
import { IConfAgent } from "@ocm-engine/config";
import { ConfigService } from "@nestjs/config";
import {
......
......@@ -19,13 +19,7 @@ import {
SchemaNotCreatedError,
SchemaNotFoundError,
} from "@ocm-engine/dtos";
import {
AutoAcceptProof,
ConnectionRecord,
CredentialState,
JsonEncoder,
ProofState,
} from "@aries-framework/core";
import { CredentialState, ProofState } from "@aries-framework/core";
import { AnonCredsRequestedAttribute } from "@aries-framework/anoncreds";
import { uuid } from "@aries-framework/core/build/utils/uuid";
import { waitForProofExchangeRecordSubject } from "../agent.utils";
......
import { IsDateString, IsNotEmpty, IsString } from "class-validator";
import { IsNotEmpty, IsString } from "class-validator";
import { BaseRecordDto } from "./base.record.dto";
export class ConnectionRecordDto extends BaseRecordDto {
@IsNotEmpty()
@IsString()
......@@ -21,4 +20,4 @@ export class ConnectionRecordDto extends BaseRecordDto {
@IsString()
outOfBandId?: string;
}
\ No newline at end of file
}
import { IsNotEmpty, IsString } from "class-validator";
import { BaseRecordDto } from "./base.record.dto";
export class CreddefRecordDto extends BaseRecordDto {
@IsNotEmpty()
@IsString()
schemaId: string;
......
import {
IsArray,
IsNotEmpty,
IsString,
ValidateNested,
} from "class-validator";
import { IsArray, IsNotEmpty, IsString, ValidateNested } from "class-validator";
import { Type } from "class-transformer";
import { IssueCredentialAttributes } from "../requests/issue.credential.request.dto";
import { BaseRecordDto } from "./base.record.dto";
export class CredentialRecordDto extends BaseRecordDto {
@IsNotEmpty()
@IsString()
......
import {
IsDateString,
IsNotEmpty,
IsString
} from "class-validator";
import { IsNotEmpty, IsString } from "class-validator";
import { BaseRecordDto } from "./base.record.dto";
export class ProofRecordDto extends BaseRecordDto {
@IsString()
connectionId?: string;
......
import {
ArrayMinSize,
IsNotEmpty,
ValidateNested,
IsString,
Matches,
} from "class-validator";
import { ArrayMinSize, IsNotEmpty, IsString, Matches } from "class-validator";
export class CreateSchemaRequestDto {
//@example "my test schema"
......
import { IsNotEmpty, IsString } from "class-validator";
export class CredentialReqDto {
//@example cf8395a5-9a53-4e06-8a5d-04e0fc00ca04
@IsNotEmpty()
@IsString()
credentialRecordId: string;
}
\ No newline at end of file
}
import { IsNotEmpty, IsString } from "class-validator";
export class IdReqDto {
@IsNotEmpty()
@IsString()
......
......@@ -7,4 +7,4 @@ export class SchemaNotFoundError extends Error {
Error.captureStackTrace(this, SchemaNotFoundError);
}
}
}
\ No newline at end of file
}
......@@ -48,18 +48,18 @@ export const CRED_EVENTS: CredentialEvent[] = [
CRED_OFFER_ACCEPT,
];
export type ProofEvent =
| "proofs.list"
| "proofs.accept"
| "proofs.issue"
export type ProofEvent =
| "proofs.list"
| "proofs.accept"
| "proofs.issue"
| "proofs.get"
| "proofs.decline"
| "proofs.decline";
export const PROOF_LIST = "proofs.list";
export const PROOF_GET = "proofs.get"
export const PROOF_GET = "proofs.get";
export const PROOF_ACCEPT = "proofs.accept";
export const PROOF_ISSUE = "proofs.issue";
export const PROOF_DECLINE = "proofs.decline"
export const PROOF_DECLINE = "proofs.decline";
export const PROOF_EVENTS: ProofEvent[] = [
PROOF_ACCEPT,
......
export * from "./dtos.module";
export * from "./dtos/generics/connection.record.dto";
export * from "./dtos/generics/creddef.record.dto";
export * from "./dtos/generics/credential.record.dto";
......
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