@vankyle/storage-azure 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/metadata/cosmos-metadata-store.d.ts +1 -1
- package/dist/metadata/mappers/blob-doc.mapper.d.ts +2 -2
- package/dist/metadata/mappers/file-doc.mapper.d.ts +2 -2
- package/dist/metadata/mappers/upload-session-doc.mapper.d.ts +2 -2
- package/dist/metadata/stores/cosmos-blob-store.d.ts +2 -2
- package/dist/metadata/stores/cosmos-blob-store.js +1 -1
- package/dist/metadata/stores/cosmos-file-store.d.ts +2 -2
- package/dist/metadata/stores/cosmos-file-store.js +1 -1
- package/dist/metadata/stores/cosmos-upload-session-store.d.ts +2 -2
- package/dist/metadata/stores/cosmos-upload-session-store.js +1 -1
- package/dist/storage/azure-blob-storage.d.ts +1 -1
- package/dist/storage/azure-blob-storage.js +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Container } from "@azure/cosmos";
|
|
2
|
-
import type { IMetadataStore } from "@vankyle
|
|
2
|
+
import type { IMetadataStore } from "@vankyle/storage-core";
|
|
3
3
|
import type { CosmosMetadataOptions } from "../types/cosmos-options.js";
|
|
4
4
|
import { CosmosUploadSessionStore } from "./stores/cosmos-upload-session-store.js";
|
|
5
5
|
import { CosmosBlobStore } from "./stores/cosmos-blob-store.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JsonObject } from "@vankyle
|
|
2
|
-
import type { Blob, BlobReference } from "@vankyle
|
|
1
|
+
import type { JsonObject } from "@vankyle/storage-shared";
|
|
2
|
+
import type { Blob, BlobReference } from "@vankyle/storage-core";
|
|
3
3
|
export interface BlobDoc {
|
|
4
4
|
id: string;
|
|
5
5
|
type: "blob";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JsonObject } from "@vankyle
|
|
2
|
-
import type { File, FileVersion } from "@vankyle
|
|
1
|
+
import type { JsonObject } from "@vankyle/storage-shared";
|
|
2
|
+
import type { File, FileVersion } from "@vankyle/storage-core";
|
|
3
3
|
export interface FileDoc {
|
|
4
4
|
id: string;
|
|
5
5
|
type: "file";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JsonObject } from "@vankyle
|
|
2
|
-
import type { UploadSession, UploadedPart } from "@vankyle
|
|
1
|
+
import type { JsonObject } from "@vankyle/storage-shared";
|
|
2
|
+
import type { UploadSession, UploadedPart } from "@vankyle/storage-core";
|
|
3
3
|
export interface UploadSessionDoc {
|
|
4
4
|
id: string;
|
|
5
5
|
type: "upload-session";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Container } from "@azure/cosmos";
|
|
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
|
export declare class CosmosBlobStore implements IBlobStore {
|
|
5
5
|
private readonly container;
|
|
6
6
|
constructor(container: Container);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Container } from "@azure/cosmos";
|
|
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
|
export declare class CosmosFileStore implements IFileStore {
|
|
5
5
|
private readonly container;
|
|
6
6
|
constructor(container: Container);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Container } from "@azure/cosmos";
|
|
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
|
export declare class CosmosUploadSessionStore implements IUploadSessionStore {
|
|
5
5
|
private readonly container;
|
|
6
6
|
constructor(container: Container);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UploadSessionStatus } from "@vankyle
|
|
1
|
+
import { UploadSessionStatus } from "@vankyle/storage-core";
|
|
2
2
|
import { uploadSessionDocToModel, uploadedPartDocToModel, } from "../mappers/upload-session-doc.mapper.js";
|
|
3
3
|
export class CosmosUploadSessionStore {
|
|
4
4
|
container;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IStorage, type StorageCapabilities, type PutObjectInput, type PutObjectResult, type GetObjectInput, type GetObjectResult, type HeadObjectInput, type HeadObjectResult, type DeleteObjectInput, type InitUploadSessionInput, type InitUploadSessionResult, type UploadPartInput, type UploadPartResult, type CompleteUploadSessionInput, type CompleteUploadSessionResult, type AbortUploadSessionInput, type CreateReadUrlInput, type CreatePutUrlInput, type SignedAccess } from "@vankyle
|
|
1
|
+
import { type IStorage, type StorageCapabilities, type PutObjectInput, type PutObjectResult, type GetObjectInput, type GetObjectResult, type HeadObjectInput, type HeadObjectResult, type DeleteObjectInput, type InitUploadSessionInput, type InitUploadSessionResult, type UploadPartInput, type UploadPartResult, type CompleteUploadSessionInput, type CompleteUploadSessionResult, type AbortUploadSessionInput, type CreateReadUrlInput, type CreatePutUrlInput, type SignedAccess } from "@vankyle/storage-core";
|
|
2
2
|
import type { AzureBlobStorageOptions } from "../types/azure-options.js";
|
|
3
3
|
export declare class AzureBlobStorage implements IStorage {
|
|
4
4
|
readonly provider: "azure-blob";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlobServiceClient, StorageSharedKeyCredential, generateBlobSASQueryParameters, BlobSASPermissions } from "@azure/storage-blob";
|
|
2
|
-
import { StorageProvider, generateId, } from "@vankyle
|
|
3
|
-
import { StorageError, StorageObjectNotFoundError, } from "@vankyle
|
|
2
|
+
import { StorageProvider, generateId, } from "@vankyle/storage-core";
|
|
3
|
+
import { StorageError, StorageObjectNotFoundError, } from "@vankyle/storage-shared";
|
|
4
4
|
const DEFAULT_EXPIRES_IN = 3600;
|
|
5
5
|
export class AzureBlobStorage {
|
|
6
6
|
provider = StorageProvider.AzureBlob;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vankyle/storage-azure",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Azure Blob Storage and Cosmos DB adapters for vankyle-storage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
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.
|
|
35
|
-
"@vankyle/storage-shared": "0.
|
|
34
|
+
"@vankyle/storage-core": "0.2.4",
|
|
35
|
+
"@vankyle/storage-shared": "0.2.4",
|
|
36
36
|
"@azure/storage-blob": "^12.31.0",
|
|
37
37
|
"@azure/cosmos": "^4.9.1"
|
|
38
38
|
},
|