daf-message-handler
Advanced tools
Comparing version 7.0.0-beta.29 to 7.0.0-beta.30
@@ -20,2 +20,254 @@ /// <reference types="node" /> | ||
readonly methods: IMessageHandler; | ||
readonly schema: { | ||
components: { | ||
schemas: { | ||
IHandleMessageArgs: { | ||
type: string; | ||
properties: { | ||
raw: { | ||
type: string; | ||
description: string; | ||
}; | ||
metaData: { | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
description: string; | ||
}; | ||
save: { | ||
type: string; | ||
description: string; | ||
}; | ||
}; | ||
required: string[]; | ||
description: string; | ||
}; | ||
IMetaData: { | ||
type: string; | ||
properties: { | ||
type: { | ||
type: string; | ||
description: string; | ||
}; | ||
value: { | ||
type: string; | ||
description: string; | ||
}; | ||
}; | ||
required: string[]; | ||
description: string; | ||
}; | ||
IMessage: { | ||
type: string; | ||
properties: { | ||
id: { | ||
type: string; | ||
description: string; | ||
}; | ||
type: { | ||
type: string; | ||
description: string; | ||
}; | ||
createdAt: { | ||
type: string; | ||
description: string; | ||
}; | ||
expiresAt: { | ||
type: string; | ||
description: string; | ||
}; | ||
threadId: { | ||
type: string; | ||
description: string; | ||
}; | ||
raw: { | ||
type: string; | ||
description: string; | ||
}; | ||
data: { | ||
anyOf: { | ||
type: string; | ||
}[]; | ||
description: string; | ||
}; | ||
replyTo: { | ||
type: string; | ||
items: { | ||
type: string; | ||
}; | ||
description: string; | ||
}; | ||
replyUrl: { | ||
type: string; | ||
description: string; | ||
}; | ||
from: { | ||
type: string; | ||
description: string; | ||
}; | ||
to: { | ||
type: string; | ||
description: string; | ||
}; | ||
metaData: { | ||
anyOf: ({ | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
} | { | ||
type: string; | ||
items?: undefined; | ||
})[]; | ||
description: string; | ||
}; | ||
credentials: { | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
description: string; | ||
}; | ||
presentations: { | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
description: string; | ||
}; | ||
}; | ||
required: string[]; | ||
description: string; | ||
}; | ||
VerifiableCredential: { | ||
type: string; | ||
properties: { | ||
"@context": { | ||
type: string; | ||
items: { | ||
type: string; | ||
}; | ||
}; | ||
id: { | ||
type: string; | ||
}; | ||
type: { | ||
type: string; | ||
items: { | ||
type: string; | ||
}; | ||
}; | ||
issuer: { | ||
type: string; | ||
properties: { | ||
id: { | ||
type: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
issuanceDate: { | ||
type: string; | ||
}; | ||
expirationDate: { | ||
type: string; | ||
}; | ||
credentialSubject: { | ||
type: string; | ||
properties: { | ||
id: { | ||
type: string; | ||
}; | ||
}; | ||
}; | ||
credentialStatus: { | ||
type: string; | ||
properties: { | ||
id: { | ||
type: string; | ||
}; | ||
type: { | ||
type: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
proof: { | ||
type: string; | ||
properties: { | ||
type: { | ||
type: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
required: string[]; | ||
description: string; | ||
}; | ||
VerifiablePresentation: { | ||
type: string; | ||
properties: { | ||
id: { | ||
type: string; | ||
}; | ||
holder: { | ||
type: string; | ||
}; | ||
issuanceDate: { | ||
type: string; | ||
}; | ||
expirationDate: { | ||
type: string; | ||
}; | ||
"@context": { | ||
type: string; | ||
items: { | ||
type: string; | ||
}; | ||
}; | ||
type: { | ||
type: string; | ||
items: { | ||
type: string; | ||
}; | ||
}; | ||
verifier: { | ||
type: string; | ||
items: { | ||
type: string; | ||
}; | ||
}; | ||
verifiableCredential: { | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
proof: { | ||
type: string; | ||
properties: { | ||
type: { | ||
type: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
required: string[]; | ||
description: string; | ||
}; | ||
}; | ||
methods: { | ||
handleMessage: { | ||
description: string; | ||
arguments: { | ||
$ref: string; | ||
}; | ||
returnType: { | ||
$ref: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
private messageHandler?; | ||
@@ -22,0 +274,0 @@ constructor(options: { |
@@ -69,2 +69,3 @@ "use strict"; | ||
var message_1 = require("./message"); | ||
var IMessageHandler_1 = __importDefault(require("daf-core/build/schemas/IMessageHandler")); | ||
var debug_1 = __importDefault(require("debug")); | ||
@@ -85,2 +86,3 @@ var debug = debug_1.default('daf:message-handler'); | ||
var _this = _super.call(this) || this; | ||
_this.schema = IMessageHandler_1.default; | ||
try { | ||
@@ -87,0 +89,0 @@ for (var _b = __values(options.messageHandlers), _c = _b.next(); !_c.done; _c = _b.next()) { |
@@ -6,2 +6,21 @@ # Change Log | ||
# [7.0.0-beta.30](https://github.com/uport-project/daf/compare/v7.0.0-beta.29...v7.0.0-beta.30) (2020-10-13) | ||
### Bug Fixes | ||
* Plugin schemas ([1fedaa5](https://github.com/uport-project/daf/commit/1fedaa5ed378be30cdcd76a8d241444bd2306af7)) | ||
### Features | ||
* Generating plugin schemas ([d4450cd](https://github.com/uport-project/daf/commit/d4450cd30e27ebc8bf961400b871757662e202c3)) | ||
* Removing GraphQL support ([3646aab](https://github.com/uport-project/daf/commit/3646aaba6bc72db933ceb7ddb4250bf4457902e3)) | ||
* Validating all plugin method arguments ([2c868f7](https://github.com/uport-project/daf/commit/2c868f77f297d036554ab8b30b77124c57b824da)) | ||
* Validating returnType ([c7d1ef3](https://github.com/uport-project/daf/commit/c7d1ef3bd77dd4a77cf9dcfa32a2ed8b47fe04e0)) | ||
# [7.0.0-beta.29](https://github.com/uport-project/daf/compare/v7.0.0-beta.28...v7.0.0-beta.29) (2020-10-02) | ||
@@ -8,0 +27,0 @@ |
{ | ||
"name": "daf-message-handler", | ||
"description": "DAF Message Handler", | ||
"version": "7.0.0-beta.29", | ||
"version": "7.0.0-beta.30", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"scripts": { | ||
"build": "tsc" | ||
"build": "tsc", | ||
"extract-api": "daf extractPluginApi -c ./api-extractor.json" | ||
}, | ||
"dependencies": { | ||
"daf-core": "^7.0.0-beta.29" | ||
"daf-core": "^7.0.0-beta.30" | ||
}, | ||
@@ -26,3 +27,3 @@ "devDependencies": { | ||
"keywords": [], | ||
"gitHead": "9030616e355bbe5bd66d155549b97bdc09f03425" | ||
"gitHead": "fdcf0ead02b4b9491af0f9dc4145f3249af1602a" | ||
} |
@@ -5,2 +5,3 @@ import { EventEmitter } from 'events' | ||
import { AbstractMessageHandler } from './abstract-message-handler' | ||
import schema from 'daf-core/build/schemas/IMessageHandler' | ||
@@ -25,2 +26,3 @@ import Debug from 'debug' | ||
readonly methods: IMessageHandler | ||
readonly schema = schema | ||
private messageHandler?: AbstractMessageHandler | ||
@@ -27,0 +29,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53023
760
Updateddaf-core@^7.0.0-beta.30