next-tinacms-azure 0.0.0-ed3db71-20250205054832

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.
@@ -0,0 +1,21 @@
1
+ /**
2
+
3
+ */
4
+ interface MediaListErrorConfig {
5
+ title: string;
6
+ message: string;
7
+ docsLink: string;
8
+ }
9
+ declare class MediaListError extends Error {
10
+ ERR_TYPE: string;
11
+ title: string;
12
+ docsLink: string;
13
+ constructor(config: MediaListErrorConfig);
14
+ }
15
+ export declare const E_DEFAULT: MediaListError;
16
+ export declare const E_UNAUTHORIZED: MediaListError;
17
+ export declare const E_CONFIG: MediaListError;
18
+ export declare const E_KEY_FAIL: MediaListError;
19
+ export declare const E_BAD_ROUTE: MediaListError;
20
+ export declare const interpretErrorMessage: (message: string) => MediaListError;
21
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { AzureBlobStorageConfig } from './types';
2
+ import { type NextRequest, NextResponse } from 'next/server';
3
+ type RouteParams = {
4
+ params: {
5
+ media: string[];
6
+ };
7
+ };
8
+ export declare const createMediaHandlers: (config: AzureBlobStorageConfig) => {
9
+ GET(req: NextRequest): Promise<NextResponse<unknown>>;
10
+ POST(req: NextRequest): Promise<NextResponse<unknown>>;
11
+ DELETE(req: NextRequest, context?: RouteParams): Promise<NextResponse<unknown>>;
12
+ };
13
+ export {};