daf-data-store
Advanced tools
Comparing version 2.3.11 to 2.3.15
@@ -50,1 +50,2 @@ import { Message } from 'daf-core'; | ||
} | ||
//# sourceMappingURL=data-store.d.ts.map |
import { DataStore } from './data-store'; | ||
interface Context { | ||
export interface Context { | ||
dataStore: DataStore; | ||
@@ -69,2 +69,69 @@ } | ||
export declare const typeDefs = "\n extend type Query {\n identity(did: ID!): Identity\n identities(dids: [ID!]): [Identity]\n messages(sender: ID, reveiver: ID, threadId: String, limit: Int): [Message]\n message(id: ID!): Message!\n credentials(iss: ID, sub: ID): [VerifiableClaim]\n credential(id:ID!): VerifiableClaim!\n }\n\n extend type Mutation {\n deleteMessage(hash: ID!): Boolean\n }\n\n extend type Identity {\n shortId: String\n firstName: String\n lastName: String\n profileImage: String\n url: String\n description: String\n interactionCount: Int!\n messagesSent: [Message]\n messagesReceived: [Message]\n messagesAll: [Message]\n credentialsIssued: [VerifiableClaim]\n credentialsReceived: [VerifiableClaim]\n credentialsAll: [VerifiableClaim]\n }\n \n extend type Message {\n vc: [VerifiableClaim]\n }\n\n type VerifiableClaim {\n hash: ID!\n rowId: String!\n iss: Identity!\n sub: Identity!\n json: String!\n jwt: String!\n nbf: Int\n iat: Int\n exp: Int\n fields: [VerifiableClaimField]\n inMessages: [Message]\n }\n\n type VerifiableClaimField {\n rowId: String!\n hash: ID!\n parentHash: ID!\n iss: Identity!\n sub: Identity!\n type: String!\n value: String!\n isObj: Boolean!\n }\n\n"; | ||
export {}; | ||
declare const _default: { | ||
resolvers: { | ||
Message: { | ||
vc: (message: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
metaData: (message: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
thread: (message: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
}; | ||
VerifiableClaim: { | ||
fields: (vc: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
inMessages: (vc: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
}; | ||
Identity: { | ||
shortId: (identity: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
firstName: (identity: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
lastName: (identity: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
profileImage: (identity: any, {}: {}, { dataStore }: Context) => Promise<string>; | ||
url: (identity: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
description: (identity: any, {}: {}, { dataStore }: Context) => Promise<any>; | ||
interactionCount: (identity: any, { did }: { | ||
did: string; | ||
}, { dataStore }: Context) => Promise<any>; | ||
credentialsIssued: (identity: any, args: any, { dataStore }: Context) => Promise<any>; | ||
credentialsReceived: (identity: any, args: any, { dataStore }: Context) => Promise<any>; | ||
credentialsAll: (identity: any, args: any, { dataStore }: Context) => Promise<any>; | ||
messagesSent: (identity: any, args: any, { dataStore }: Context) => Promise<any>; | ||
messagesReceived: (identity: any, args: any, { dataStore }: Context) => Promise<any>; | ||
messagesAll: (identity: any, args: any, { dataStore }: Context) => Promise<any>; | ||
}; | ||
Query: { | ||
identity: (_: any, { did }: { | ||
did: string; | ||
}, { dataStore }: Context) => Promise<{ | ||
did: string; | ||
}>; | ||
identities: (_: any, { dids }: { | ||
dids: string[]; | ||
}, { dataStore }: Context) => Promise<{ | ||
did: string; | ||
}[] | { | ||
did: any; | ||
}[]>; | ||
messages: (_: any, { sender, receiver, threadId, limit, }: { | ||
sender: string; | ||
receiver: string; | ||
threadId: string; | ||
limit: number; | ||
}, { dataStore }: Context) => Promise<any>; | ||
message: (_: any, { id }: { | ||
id: string; | ||
}, { dataStore }: Context) => Promise<any>; | ||
credentials: (_: any, { iss, sub }: { | ||
iss: string; | ||
sub: string; | ||
}, { dataStore }: Context) => Promise<any>; | ||
credential: (_: any, { id }: { | ||
id: string; | ||
}, { dataStore }: Context) => Promise<any>; | ||
}; | ||
Mutation: { | ||
deleteMessage: (_: any, { id }: { | ||
id: string; | ||
}, { dataStore }: Context) => Promise<any>; | ||
}; | ||
}; | ||
typeDefs: string; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=graphql.d.ts.map |
@@ -265,2 +265,6 @@ "use strict"; | ||
exports.typeDefs = "\n extend type Query {\n identity(did: ID!): Identity\n identities(dids: [ID!]): [Identity]\n messages(sender: ID, reveiver: ID, threadId: String, limit: Int): [Message]\n message(id: ID!): Message!\n credentials(iss: ID, sub: ID): [VerifiableClaim]\n credential(id:ID!): VerifiableClaim!\n }\n\n extend type Mutation {\n deleteMessage(hash: ID!): Boolean\n }\n\n extend type Identity {\n shortId: String\n firstName: String\n lastName: String\n profileImage: String\n url: String\n description: String\n interactionCount: Int!\n messagesSent: [Message]\n messagesReceived: [Message]\n messagesAll: [Message]\n credentialsIssued: [VerifiableClaim]\n credentialsReceived: [VerifiableClaim]\n credentialsAll: [VerifiableClaim]\n }\n \n extend type Message {\n vc: [VerifiableClaim]\n }\n\n type VerifiableClaim {\n hash: ID!\n rowId: String!\n iss: Identity!\n sub: Identity!\n json: String!\n jwt: String!\n nbf: Int\n iat: Int\n exp: Int\n fields: [VerifiableClaimField]\n inMessages: [Message]\n }\n\n type VerifiableClaimField {\n rowId: String!\n hash: ID!\n parentHash: ID!\n iss: Identity!\n sub: Identity!\n type: String!\n value: String!\n isObj: Boolean!\n }\n\n"; | ||
exports.default = { | ||
resolvers: exports.resolvers, | ||
typeDefs: exports.typeDefs, | ||
}; | ||
//# sourceMappingURL=graphql.js.map |
export { DataStore } from './data-store'; | ||
import * as Gql from './graphql'; | ||
import * as Types from './types'; | ||
export { Types, Gql }; | ||
export { DbDriver, Migration, Identity, VerifiableClaim, VerifiableClaimField } from './types'; | ||
import Gql from './graphql'; | ||
export { Gql }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
@@ -12,6 +8,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DataStore = data_store_1.DataStore; | ||
var Gql = __importStar(require("./graphql")); | ||
exports.Gql = Gql; | ||
var Types = __importStar(require("./types")); | ||
exports.Types = Types; | ||
var graphql_1 = __importDefault(require("./graphql")); | ||
exports.Gql = graphql_1.default; | ||
//# sourceMappingURL=index.js.map |
import { Migration } from '../types'; | ||
export declare const initial: Migration; | ||
//# sourceMappingURL=001.initial.d.ts.map |
import { Migration } from '../types'; | ||
export declare const second: Migration; | ||
//# sourceMappingURL=002.second.d.ts.map |
import { DbDriver } from '../types'; | ||
export declare const insertLastMigrationId: (db: DbDriver, id: number) => Promise<any>; | ||
export declare const runMigrations: (db: DbDriver) => Promise<void>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -40,1 +40,2 @@ export interface DbDriver { | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -6,2 +6,14 @@ # Change Log | ||
## [2.3.15](https://github.com/uport-project/daf/compare/v2.3.14...v2.3.15) (2020-03-02) | ||
### Bug Fixes | ||
* GQL export ([eacc969](https://github.com/uport-project/daf/commit/eacc9697e87bbf6a91db8d9bd5195aea096a13c4)) | ||
* Typescript types ([72c1899](https://github.com/uport-project/daf/commit/72c18993ddba6a7a75ae8397e6549cdd29dccb31)) | ||
## [2.3.11](https://github.com/uport-project/daf/compare/v2.3.10...v2.3.11) (2020-02-25) | ||
@@ -8,0 +20,0 @@ |
{ | ||
"name": "daf-data-store", | ||
"description": "DID Agent Framework Data Store", | ||
"version": "2.3.11", | ||
"version": "2.3.15", | ||
"main": "build/index.js", | ||
@@ -12,3 +12,3 @@ "types": "build/index.d.ts", | ||
"blakejs": "^1.1.0", | ||
"daf-core": "^2.3.10", | ||
"daf-core": "^2.3.15", | ||
"debug": "^4.1.1", | ||
@@ -31,3 +31,3 @@ "sql-bricks-sqlite": "^0.1.0" | ||
"keywords": [], | ||
"gitHead": "3d3cbf375d2ee5e81d3c35b60abb2fe656e79332" | ||
"gitHead": "2af44b98932255b1448f36c5118583c19d33af83" | ||
} |
import { DataStore } from './data-store' | ||
interface Context { | ||
export interface Context { | ||
dataStore: DataStore | ||
@@ -160,1 +160,5 @@ } | ||
` | ||
export default { | ||
resolvers, | ||
typeDefs, | ||
} |
export { DataStore } from './data-store' | ||
import * as Gql from './graphql' | ||
import * as Types from './types' | ||
export { Types, Gql } | ||
export { DbDriver, Migration, Identity, VerifiableClaim, VerifiableClaimField } from './types' | ||
import Gql from './graphql' | ||
export { Gql } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
152340
40
2335
Updateddaf-core@^2.3.15