@vankyle/storage-kysely 0.2.0 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mappers/blob-reference-row.mapper.d.ts +1 -1
- package/dist/mappers/blob-row.mapper.d.ts +1 -1
- package/dist/mappers/file-row.mapper.d.ts +1 -1
- package/dist/mappers/file-version-row.mapper.d.ts +1 -1
- package/dist/mappers/upload-session-row.mapper.d.ts +1 -1
- package/dist/mappers/uploaded-part-row.mapper.d.ts +1 -1
- package/dist/metadata/kysely-metadata-store.d.ts +1 -1
- package/dist/metadata/stores/kysely-blob-store.d.ts +2 -2
- package/dist/metadata/stores/kysely-blob-store.js +1 -1
- package/dist/metadata/stores/kysely-file-store.d.ts +2 -2
- package/dist/metadata/stores/kysely-file-store.js +1 -1
- package/dist/metadata/stores/kysely-upload-session-store.d.ts +2 -2
- package/dist/metadata/stores/kysely-upload-session-store.js +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BlobReference } from "@vankyle
|
|
1
|
+
import type { BlobReference } from "@vankyle/storage-core";
|
|
2
2
|
import type { Selectable } from "kysely";
|
|
3
3
|
import type { BlobReferencesTable } from "../schema/database.js";
|
|
4
4
|
type BlobReferenceRow = Selectable<BlobReferencesTable>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileVersion } from "@vankyle
|
|
1
|
+
import type { FileVersion } from "@vankyle/storage-core";
|
|
2
2
|
import type { Selectable } from "kysely";
|
|
3
3
|
import type { FileVersionsTable } from "../schema/database.js";
|
|
4
4
|
type FileVersionRow = Selectable<FileVersionsTable>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UploadSession } from "@vankyle
|
|
1
|
+
import type { UploadSession } from "@vankyle/storage-core";
|
|
2
2
|
import type { Selectable } from "kysely";
|
|
3
3
|
import type { UploadSessionsTable } from "../schema/database.js";
|
|
4
4
|
type UploadSessionRow = Selectable<UploadSessionsTable>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UploadedPart } from "@vankyle
|
|
1
|
+
import type { UploadedPart } from "@vankyle/storage-core";
|
|
2
2
|
import type { Selectable } from "kysely";
|
|
3
3
|
import type { UploadedPartsTable } from "../schema/database.js";
|
|
4
4
|
type UploadedPartRow = Selectable<UploadedPartsTable>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Kysely } from "kysely";
|
|
2
|
-
import type { IMetadataStore } from "@vankyle
|
|
2
|
+
import type { IMetadataStore } from "@vankyle/storage-core";
|
|
3
3
|
import type { StorageDatabase } from "../schema/database.js";
|
|
4
4
|
import { KyselyUploadSessionStore } from "./stores/kysely-upload-session-store.js";
|
|
5
5
|
import { KyselyBlobStore } from "./stores/kysely-blob-store.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Kysely } from "kysely";
|
|
2
|
-
import type { IBlobStore, CreateBlobInput, UpdateBlobInput, CreateBlobReferenceInput } from "@vankyle
|
|
3
|
-
import type { Blob, BlobReference, StorageProvider } from "@vankyle
|
|
2
|
+
import type { IBlobStore, CreateBlobInput, UpdateBlobInput, CreateBlobReferenceInput } from "@vankyle/storage-core";
|
|
3
|
+
import type { Blob, BlobReference, StorageProvider } from "@vankyle/storage-core";
|
|
4
4
|
import type { StorageDatabase } from "../../schema/database.js";
|
|
5
5
|
export declare class KyselyBlobStore implements IBlobStore {
|
|
6
6
|
private readonly db;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlobStatus } from "@vankyle
|
|
1
|
+
import { BlobStatus } from "@vankyle/storage-core";
|
|
2
2
|
import { blobRowToModel } from "../../mappers/blob-row.mapper.js";
|
|
3
3
|
import { blobReferenceRowToModel } from "../../mappers/blob-reference-row.mapper.js";
|
|
4
4
|
export class KyselyBlobStore {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Kysely } from "kysely";
|
|
2
|
-
import type { IFileStore, CreateFileInput, UpdateFileInput, CreateFileVersionInput } from "@vankyle
|
|
3
|
-
import type { File, FileVersion } from "@vankyle
|
|
2
|
+
import type { IFileStore, CreateFileInput, UpdateFileInput, CreateFileVersionInput } from "@vankyle/storage-core";
|
|
3
|
+
import type { File, FileVersion } from "@vankyle/storage-core";
|
|
4
4
|
import type { StorageDatabase } from "../../schema/database.js";
|
|
5
5
|
export declare class KyselyFileStore implements IFileStore {
|
|
6
6
|
private readonly db;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileStatus } from "@vankyle
|
|
1
|
+
import { FileStatus } from "@vankyle/storage-core";
|
|
2
2
|
import { fileRowToModel } from "../../mappers/file-row.mapper.js";
|
|
3
3
|
import { fileVersionRowToModel } from "../../mappers/file-version-row.mapper.js";
|
|
4
4
|
export class KyselyFileStore {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Kysely } from "kysely";
|
|
2
|
-
import type { IUploadSessionStore, CreateUploadSessionInput, UpdateUploadSessionInput, CreateUploadedPartInput } from "@vankyle
|
|
3
|
-
import type { UploadSession, UploadedPart } from "@vankyle
|
|
2
|
+
import type { IUploadSessionStore, CreateUploadSessionInput, UpdateUploadSessionInput, CreateUploadedPartInput } from "@vankyle/storage-core";
|
|
3
|
+
import type { UploadSession, UploadedPart } from "@vankyle/storage-core";
|
|
4
4
|
import type { StorageDatabase } from "../../schema/database.js";
|
|
5
5
|
export declare class KyselyUploadSessionStore implements IUploadSessionStore {
|
|
6
6
|
private readonly db;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UploadSessionStatus } from "@vankyle
|
|
1
|
+
import { UploadSessionStatus } from "@vankyle/storage-core";
|
|
2
2
|
import { uploadSessionRowToModel } from "../../mappers/upload-session-row.mapper.js";
|
|
3
3
|
import { uploadedPartRowToModel } from "../../mappers/uploaded-part-row.mapper.js";
|
|
4
4
|
export class KyselyUploadSessionStore {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vankyle/storage-kysely",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Kysely-based SQL metadata store for vankyle-storage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"homepage": "https://github.com/Vankyle-Hub/storage-ts",
|
|
32
32
|
"packageManager": "pnpm@10.28.2",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@vankyle/storage-core": "0.2.
|
|
35
|
-
"@vankyle/storage-shared": "0.2.
|
|
36
|
-
"kysely": "^0.28.
|
|
34
|
+
"@vankyle/storage-core": "0.2.4",
|
|
35
|
+
"@vankyle/storage-shared": "0.2.4",
|
|
36
|
+
"kysely": "^0.28.12"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|