Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
fix: Fix models
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Sep 30, 2023
1 parent fde97a3 commit 79f7468
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/schemas/Credential.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CredentialSchemaType, GenerateDBSchema } from "../types";
import { CredentialSchemaType, Schema } from "../types";

const CredentialSchema: GenerateDBSchema<CredentialSchemaType> = {
const CredentialSchema: Schema<CredentialSchemaType> = {
version: 0,
primaryKey: "id",
type: "object",
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/DIDPair.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DIDPairSchemaType, GenerateDBSchema } from "../types";
import { DIDPairSchemaType, Schema } from "../types";

const DIDPairSchema: GenerateDBSchema<DIDPairSchemaType> = {
const DIDPairSchema: Schema<DIDPairSchemaType> = {
version: 0,
primaryKey: "id",
type: "object",
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/Mediator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GenerateDBSchema, MediarorSchemaType } from "../types";
import { Schema, MediarorSchemaType } from "../types";

const MediatorSchema: GenerateDBSchema<MediarorSchemaType> = {
const MediatorSchema: Schema<MediarorSchemaType> = {
version: 0,
primaryKey: "id",
type: "object",
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/Message.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GenerateDBSchema, MessageSchemaType } from "../types";
import { Schema, MessageSchemaType } from "../types";

const MessageSchema: GenerateDBSchema<MessageSchemaType> = {
const MessageSchema: Schema<MessageSchemaType> = {
version: 0,
primaryKey: "id",
type: "object",
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type DIDSchemaType = NoKeys<Domain.DID, "toString"> & {
alias?: string;
did: string;
};
export type DIDPairSchemaType = Domain.DIDPair;
export type DIDPairSchemaType = Domain.DIDPair & { id: string };
export type KeySpec = {
name: string;
type: string;
Expand All @@ -29,6 +29,7 @@ export type KeySchemaType = {
};

export type MediarorSchemaType = {
id: string;
mediatorDID: string;
hostDID: string;
routingDID: string;
Expand Down

0 comments on commit 79f7468

Please sign in to comment.