From 7071fa283fa1462eb8c6cc6f5b6e28221f9dd7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Ribo=CC=81=20Labrador?= Date: Sun, 7 Jan 2024 14:26:07 +0100 Subject: [PATCH] fix: package exports in new schemas package. --- packages/database/tests/pluto.test.ts | 4 ++-- packages/schemas/src/schemas/LinkSecret.ts | 14 ++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/packages/database/tests/pluto.test.ts b/packages/database/tests/pluto.test.ts index 4f7daa3a..6d44036c 100644 --- a/packages/database/tests/pluto.test.ts +++ b/packages/database/tests/pluto.test.ts @@ -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, diff --git a/packages/schemas/src/schemas/LinkSecret.ts b/packages/schemas/src/schemas/LinkSecret.ts index c9d10bb6..060ac5e8 100644 --- a/packages/schemas/src/schemas/LinkSecret.ts +++ b/packages/schemas/src/schemas/LinkSecret.ts @@ -7,7 +7,7 @@ export interface LinkSecretSchemaType { readonly secret: string } -const LinkSecretSchema: Schema = { +export const LinkSecretSchema: Schema = { version: 0, primaryKey: 'name', type: 'object', @@ -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 = { @@ -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