Skip to main content

Class: RemoveServiceEndpointCommand

Hierarchy

  • BaseCommand

    RemoveServiceEndpointCommand

Constructors

constructor

new RemoveServiceEndpointCommand(stores, events)

Parameters

NameType
storesNamedRegistry
eventsNamedRegistry

Inherited from

BaseCommand.constructor

Defined in

node_modules/klayr-framework/dist-node/modules/base_command.d.ts:9

Properties

config

config: DidModuleConfig

Defined in

packages/klayr-did-module/src/commands/remove_service_endpoint_command.ts:13


events

Protected events: NamedRegistry

Inherited from

BaseCommand.events

Defined in

node_modules/klayr-framework/dist-node/modules/base_command.d.ts:6


schema

schema: Object = utils.schema.removeServiceEndpointCommandSchema

Type declaration

NameType
$idstring
properties{ endpointId: { dataType: string ; fieldNumber: number } ; signature: { dataType: string ; fieldNumber: number } ; signer: { dataType: string ; fieldNumber: number } ; target: { dataType: string ; fieldNumber: number } }
properties.endpointId{ dataType: string ; fieldNumber: number }
properties.endpointId.dataTypestring
properties.endpointId.fieldNumbernumber
properties.signature{ dataType: string ; fieldNumber: number }
properties.signature.dataTypestring
properties.signature.fieldNumbernumber
properties.signer{ dataType: string ; fieldNumber: number }
properties.signer.dataTypestring
properties.signer.fieldNumbernumber
properties.target{ dataType: string ; fieldNumber: number }
properties.target.dataTypestring
properties.target.fieldNumbernumber
requiredstring[]
typestring

Overrides

BaseCommand.schema

Defined in

packages/klayr-did-module/src/commands/remove_service_endpoint_command.ts:12


stores

Protected stores: NamedRegistry

Inherited from

BaseCommand.stores

Defined in

node_modules/klayr-framework/dist-node/modules/base_command.d.ts:5

Accessors

name

get name(): string

Returns

string

Inherited from

BaseCommand.name

Defined in

node_modules/klayr-framework/dist-node/modules/base_command.d.ts:8

Methods

execute

execute(_context): Promise<void>

Parameters

NameType
_contextCommandExecuteContext<RemoveServiceEndpointParam>

Returns

Promise<void>

Overrides

BaseCommand.execute

Defined in

packages/klayr-did-module/src/commands/remove_service_endpoint_command.ts:26


init

init(_moduleConfig): Promise<void>

Parameters

NameType
_moduleConfigDidModuleConfig

Returns

Promise<void>

Defined in

packages/klayr-did-module/src/commands/remove_service_endpoint_command.ts:16


verify

verify(_context): Promise<VerificationResult>

Parameters

NameType
_contextCommandVerifyContext<RemoveServiceEndpointParam>

Returns

Promise<VerificationResult>

Overrides

BaseCommand.verify

Defined in

packages/klayr-did-module/src/commands/remove_service_endpoint_command.ts:22