Skip to content

Commit

Permalink
Develop To QA (#602)
Browse files Browse the repository at this point in the history
* feat: support multiple did methods (#589)

* feat: support multiple did methods

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: removed the commented code

Signed-off-by: tipusinghaw <[email protected]>

* fix: removed commented code

Signed-off-by: tipusinghaw <[email protected]>

* fix: removed commented code agent-service

Signed-off-by: tipusinghaw <[email protected]>

* fix: removed commented code agent-service

Signed-off-by: tipusinghaw <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: tipusinghaw <[email protected]>
Co-authored-by: tipusinghaw <[email protected]>

* fix: refactored tables

Signed-off-by: bhavanakarwade <[email protected]>

* fix: reafctored json data

Signed-off-by: bhavanakarwade <[email protected]>

* feat:add reuse connection

Signed-off-by: pallavicoder <[email protected]>

* fix: refactored tables (#592)

* fix: refactored tables

Signed-off-by: bhavanakarwade <[email protected]>

* fix: reafctored json data

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* fix:changed validation message

Signed-off-by: pallavicoder <[email protected]>

* worked on the POST API of refresh token

Signed-off-by: Nishad <[email protected]>

* fix: an incorrect message appears when delete the ecosystem invitation which is already deleted

Signed-off-by: pranalidhanavade <[email protected]>

* fix: schema id validations

Signed-off-by: bhavanakarwade <[email protected]>

* feat: dedicated agent spin up

Signed-off-by: bhavanakarwade <[email protected]>

* fix: schema validation

Signed-off-by: bhavanakarwade <[email protected]>

* fix: schema validations

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: tipusinghaw <[email protected]>
Signed-off-by: pallavicoder <[email protected]>
Signed-off-by: Nishad <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Co-authored-by: bhavanakarwade <[email protected]>
Co-authored-by: tipusinghaw <[email protected]>
Co-authored-by: bhavanakarwade <[email protected]>
Co-authored-by: pallavicoder <[email protected]>
Co-authored-by: pallavighule <[email protected]>
Co-authored-by: pranalidhanavade <[email protected]>
Co-authored-by: pranalidhanavade <[email protected]>
Co-authored-by: Shashank Kulkarni <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
9 people committed Sep 11, 2024
1 parent bef216a commit a49127f
Show file tree
Hide file tree
Showing 26 changed files with 753 additions and 791 deletions.
49 changes: 4 additions & 45 deletions apps/agent-service/src/agent-service.controller.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
import { Controller } from '@nestjs/common';
import { MessagePattern } from '@nestjs/microservices';
import { AgentServiceService } from './agent-service.service';
import {
IAgentStatus,
IConnectionDetails,
IUserRequestInterface,
ISendProofRequestPayload,
IAgentSpinUpSatus,
IGetCredDefAgentRedirection,
IGetSchemaAgentRedirection,
IAgentSpinupDto,
IIssuanceCreateOffer,
ITenantCredDef,
ITenantDto,
ITenantSchema,
IOutOfBandCredentialOffer,
IAgentProofRequest,
IDidCreate,
IWallet,
ITenantRecord,
ICreateConnectionInvitation,
IStoreAgent,
IAgentConfigure
} from './interface/agent-service.interface';
import { IAgentStatus, IConnectionDetails, IUserRequestInterface, ISendProofRequestPayload, IAgentSpinUpSatus, IGetCredDefAgentRedirection, IGetSchemaAgentRedirection, IAgentSpinupDto, IIssuanceCreateOffer, ITenantCredDef, ITenantDto, ITenantSchema, IOutOfBandCredentialOffer, IProofPresentation, IAgentProofRequest, IPresentation, IDidCreate, IWallet, ITenantRecord } from './interface/agent-service.interface';
import { user } from '@prisma/client';
import { InvitationMessage } from '@credebl/common/interfaces/agent-service.interface';
import { AgentSpinUpStatus } from '@credebl/enum/enum';
Expand Down Expand Up @@ -61,7 +40,7 @@ export class AgentServiceController {
}

@MessagePattern({ cmd: 'create-wallet' })
async createWallet(payload: { createWalletDto: IWallet, user: IUserRequestInterface }): Promise<ITenantRecord> {
async createWallet(payload: { createWalletDto: IWallet, user: IUserRequestInterface}): Promise<ITenantRecord> {
return this.agentServiceService.createWallet(payload.createWalletDto);
}

Expand Down Expand Up @@ -269,29 +248,9 @@ export class AgentServiceController {
}

@MessagePattern({ cmd: 'polygon-create-keys' })
async createSecp256k1KeyPair(payload: { orgId: string }): Promise<object> {
async createSecp256k1KeyPair(payload: {orgId: string}): Promise<object> {
return this.agentServiceService.createSecp256k1KeyPair(payload.orgId);
}

@MessagePattern({ cmd: 'agent-create-connection-invitation' })
async createConnectionInvitation(payload: {
url: string,
orgId: string,
connectionPayload: ICreateConnectionInvitation,
}): Promise<object> {
return this.agentServiceService.createConnectionInvitation(payload.url, payload.orgId, payload.connectionPayload);
}

/**
* Configure the agent by organization
* @param payload
* @returns Get agent status
*/
@MessagePattern({ cmd: 'agent-configure' })
async agentConfigure(payload: {
agentConfigureDto: IAgentConfigure,
user: IUserRequestInterface,
}): Promise<IStoreAgent> {
return this.agentServiceService.agentConfigure(payload.agentConfigureDto, payload.user);
}
}

Loading

0 comments on commit a49127f

Please sign in to comment.