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

Commit

Permalink
fix: package exports in new schemas package.
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Jan 7, 2024
1 parent f1cc604 commit 7071fa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/database/tests/pluto.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import IndexDb from "../../indexdb/src";
import { createLevelDBStorage } from '../../leveldb/src'

import * as Fixtures from "./fixtures";
import { Database, LinkSecretColletion, LinkSecretMethods, PrivateKeyMethods } from "../src";
import LinkSecretSchema, { LinkSecretMethodTypes, LinkSecretSchemaType, LinkSecretStaticMethods } from "../src/schemas/LinkSecret";
import { Database } from "../src";
import { PrivateKeyMethods, LinkSecretSchemaType, LinkSecretMethodTypes, LinkSecretMethods, LinkSecretSchema } from "@pluto-encrypted/schemas";

const {
AnonCredsCredential,
Expand Down
14 changes: 2 additions & 12 deletions packages/schemas/src/schemas/LinkSecret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface LinkSecretSchemaType {
readonly secret: string
}

const LinkSecretSchema: Schema<LinkSecretSchemaType> = {
export const LinkSecretSchema: Schema<LinkSecretSchemaType> = {
version: 0,
primaryKey: 'name',
type: 'object',
Expand All @@ -33,14 +33,9 @@ export interface LinkSecretMethodTypes extends KeyFunctionMap {
toDomainLinkSecret: (this: LinkSecretDocument) => SDK.Domain.Anoncreds.LinkSecret
}

export interface LinkSecretStaticMethodTypes extends KeyFunctionMap {
hola: (demo: boolean) => void
}

export type LinkSecretColletion = RxCollection<
LinkSecretSchemaType,
LinkSecretMethodTypes,
LinkSecretStaticMethodTypes
LinkSecretMethodTypes
>

export const LinkSecretMethods: LinkSecretMethodTypes = {
Expand All @@ -49,10 +44,5 @@ export const LinkSecretMethods: LinkSecretMethodTypes = {
}
}

export const LinkSecretStaticMethods: LinkSecretStaticMethodTypes = {
hola: function (demo: boolean): void {
throw new Error('Function not implemented.')
}
}

export default LinkSecretSchema

0 comments on commit 7071fa2

Please sign in to comment.