Skip to content

Module: devtools

npm install --dev @glazed/devtools

Classes

Type aliases

AddModelSchemaOptions

Ƭ AddModelSchemaOptions: Object

Type declaration

Name Type
name? string
owner? string
parent? string

Functions

createGraphQLModel

createGraphQLModel(manager): Promise<GraphQLModel>

Parameters

Name Type
manager ModelManager

Returns

Promise<GraphQLModel>


decodeDagJWS

decodeDagJWS(__namedParameters): DagJWS

Parameters

Name Type
__namedParameters EncodedDagJWS

Returns

DagJWS


decodeDagJWSResult

decodeDagJWSResult(__namedParameters): DagJWSResult

Parameters

Name Type
__namedParameters EncodedDagJWSResult

Returns

DagJWSResult


decodeModel

decodeModel(model): ManagedModel<DagJWSResult>

Parameters

Name Type
model ManagedModel<EncodedDagJWSResult>

Returns

ManagedModel<DagJWSResult>


encodeDagJWS

encodeDagJWS(__namedParameters): EncodedDagJWS

Parameters

Name Type
__namedParameters DagJWS

Returns

EncodedDagJWS


encodeDagJWSResult

encodeDagJWSResult(__namedParameters): EncodedDagJWSResult

Parameters

Name Type
__namedParameters DagJWSResult

Returns

EncodedDagJWSResult


encodeModel

encodeModel(model): ManagedModel<EncodedDagJWSResult>

Parameters

Name Type
model ManagedModel<DagJWSResult>

Returns

ManagedModel<EncodedDagJWSResult>


isSecureSchema

isSecureSchema<T>(schema): boolean

Type parameters

Name Type
T Record<string, any>

Parameters

Name Type
schema JSONSchemaType<T>

Returns

boolean


publishDataStoreSchemas

publishDataStoreSchemas(ceramic): Promise<void>

Parameters

Name Type
ceramic CeramicApi

Returns

Promise<void>


publishEncodedModel

publishEncodedModel(ceramic, model): Promise<PublishedModel>

Parameters

Name Type
ceramic CeramicApi
model EncodedManagedModel

Returns

Promise<PublishedModel>


publishModel

publishModel(ceramic, model): Promise<PublishedModel>

Parameters

Name Type
ceramic CeramicApi
model ManagedModel

Returns

Promise<PublishedModel>


streamIDToString

streamIDToString(id): string

Parameters

Name Type
id StreamRef | string

Returns

string