@muhgholy/next-drive 4.2.0 → 4.4.0
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/README.md +18 -33
- package/dist/{chunk-RGE7EYMF.js → chunk-5CAP2MNG.js} +391 -181
- package/dist/chunk-5CAP2MNG.js.map +1 -0
- package/dist/{chunk-CFLH4TCQ.cjs → chunk-TA6L5FYG.cjs} +3 -22
- package/dist/chunk-TA6L5FYG.cjs.map +1 -0
- package/dist/{chunk-T43C7MQ6.js → chunk-TMSG5WJZ.js} +4 -22
- package/dist/chunk-TMSG5WJZ.js.map +1 -0
- package/dist/{chunk-OGVU5UBC.cjs → chunk-ZNXH3LYN.cjs} +402 -192
- package/dist/chunk-ZNXH3LYN.cjs.map +1 -0
- package/dist/client/components/dialog.d.ts.map +1 -1
- package/dist/client/components/drive/explorer.d.ts.map +1 -1
- package/dist/client/components/drive/file-grid.d.ts.map +1 -1
- package/dist/client/context.d.ts +2 -9
- package/dist/client/context.d.ts.map +1 -1
- package/dist/client/hooks/useUpload.d.ts +1 -1
- package/dist/client/hooks/useUpload.d.ts.map +1 -1
- package/dist/client/index.cjs +118 -118
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +15 -15
- package/dist/client/index.js.map +1 -1
- package/dist/client/utils.d.ts +2 -9
- package/dist/client/utils.d.ts.map +1 -1
- package/dist/server/config.d.ts +1 -1
- package/dist/server/config.d.ts.map +1 -1
- package/dist/server/controllers/drive.d.ts +0 -2
- package/dist/server/controllers/drive.d.ts.map +1 -1
- package/dist/server/express.cjs +12 -12
- package/dist/server/express.cjs.map +1 -1
- package/dist/server/express.d.ts +2 -2
- package/dist/server/express.d.ts.map +1 -1
- package/dist/server/express.js +3 -3
- package/dist/server/express.js.map +1 -1
- package/dist/server/index.cjs +15 -19
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/providers/google.d.ts.map +1 -1
- package/dist/server/providers/local.d.ts.map +1 -1
- package/dist/server/utils/ffmpeg.d.ts +7 -13
- package/dist/server/utils/ffmpeg.d.ts.map +1 -1
- package/dist/server/utils/folderValidation.d.ts +12 -6
- package/dist/server/utils/folderValidation.d.ts.map +1 -1
- package/dist/server/utils/imageConvert.d.ts +7 -14
- package/dist/server/utils/imageConvert.d.ts.map +1 -1
- package/dist/server/utils/metadata.d.ts +4 -22
- package/dist/server/utils/metadata.d.ts.map +1 -1
- package/dist/server/utils/migration.d.ts +2 -0
- package/dist/server/utils/migration.d.ts.map +1 -0
- package/dist/server/utils.d.ts +0 -1
- package/dist/server/utils.d.ts.map +1 -1
- package/dist/server/zod/schemas.d.ts +2 -8
- package/dist/server/zod/schemas.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +0 -2
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/lib/database/storage/account.d.ts +1 -1
- package/dist/types/lib/database/storage/account.d.ts.map +1 -1
- package/dist/types/server/config.d.ts +0 -5
- package/dist/types/server/config.d.ts.map +1 -1
- package/dist/types/server/express.d.ts +1 -5
- package/dist/types/server/express.d.ts.map +1 -1
- package/dist/types/server/index.d.ts +2 -0
- package/dist/types/server/index.d.ts.map +1 -1
- package/dist/types/server/metadata.d.ts +11 -0
- package/dist/types/server/metadata.d.ts.map +1 -0
- package/dist/types/server/migration.d.ts +6 -0
- package/dist/types/server/migration.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-CFLH4TCQ.cjs.map +0 -1
- package/dist/chunk-OGVU5UBC.cjs.map +0 -1
- package/dist/chunk-RGE7EYMF.js.map +0 -1
- package/dist/chunk-T43C7MQ6.js.map +0 -1
package/dist/client/utils.d.ts
CHANGED
|
@@ -5,13 +5,6 @@ import type { ReactNode } from 'react';
|
|
|
5
5
|
export declare const getFileIcon: (mime: string, isFolder: boolean, className?: string) => ReactNode;
|
|
6
6
|
export declare const matchesMimeFilter: (mime: string, isFolder: boolean, filter?: string) => boolean;
|
|
7
7
|
export declare const getAcceptString: (filter?: string) => string | undefined;
|
|
8
|
-
import type { TDriveFile
|
|
9
|
-
export declare const driveCreateUrl: (driveFile: TDriveFile, apiEndpoint: string
|
|
10
|
-
quality?: TImageQuality;
|
|
11
|
-
format?: TImageFormat;
|
|
12
|
-
}) => string;
|
|
13
|
-
export declare const driveCreateSrcSet: (driveFile: TDriveFile, apiEndpoint: string, format?: TImageFormat) => {
|
|
14
|
-
srcSet: string;
|
|
15
|
-
sizes: string;
|
|
16
|
-
};
|
|
8
|
+
import type { TDriveFile } from '../types/client';
|
|
9
|
+
export declare const driveCreateUrl: (driveFile: TDriveFile, apiEndpoint: string) => string;
|
|
17
10
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,iBAAY,KAAG,MAOzD,CAAC;AAEF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,kBAA2B,KAAG,SAU1F,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,SAAS,MAAM,KAAG,OA4EpF,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,iBAAY,KAAG,MAOzD,CAAC;AAEF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,kBAA2B,KAAG,SAU1F,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,SAAS,MAAM,KAAG,OA4EpF,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,cAAc,GAAI,WAAW,UAAU,EAAE,aAAa,MAAM,KAAG,MAO3E,CAAC"}
|
package/dist/server/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextApiRequest } from 'next';
|
|
2
2
|
import type { TDriveConfiguration, TDriveConfigInformation } from '../types/server';
|
|
3
|
-
export declare const driveConfiguration: (config: TDriveConfiguration) => TDriveConfiguration
|
|
3
|
+
export declare const driveConfiguration: (config: TDriveConfiguration) => Promise<TDriveConfiguration>;
|
|
4
4
|
export declare const getDriveConfig: () => TDriveConfiguration;
|
|
5
5
|
export declare const getDriveInformation: (req: NextApiRequest) => Promise<TDriveConfigInformation>;
|
|
6
6
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/server/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/server/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAQnF,eAAO,MAAM,kBAAkB,GAAU,QAAQ,mBAAmB,KAAG,OAAO,CAAC,mBAAmB,CAoDjG,CAAC;AAGF,eAAO,MAAM,cAAc,QAAO,mBAGjC,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAAU,KAAK,cAAc,KAAG,OAAO,CAAC,uBAAuB,CAgB9F,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import formidable from 'formidable';
|
|
2
1
|
import type { Readable } from 'stream';
|
|
3
2
|
import type { IDatabaseDriveDocument } from '../../server/database/mongoose/schema/drive';
|
|
4
3
|
import type { TDatabaseDrive } from '../../types/lib/database/drive';
|
|
@@ -68,7 +67,6 @@ export declare const driveFilePath: (file: string | IDatabaseDriveDocument | TDa
|
|
|
68
67
|
size: number;
|
|
69
68
|
provider: string;
|
|
70
69
|
}>>;
|
|
71
|
-
export declare const processChunk: (drive: any, chunkFile: formidable.File | formidable.File[] | undefined, chunkIndex: number, totalChunks: number, STORAGE_PATH: string) => Promise<void>;
|
|
72
70
|
/**
|
|
73
71
|
* List files and folders in a specific directory.
|
|
74
72
|
* @param options - List options including owner key, folderId, limit, and afterId for pagination
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../../src/server/controllers/drive.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../../src/server/controllers/drive.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC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
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkZNXH3LYN_cjs = require('../chunk-ZNXH3LYN.cjs');
|
|
4
|
+
require('../chunk-TA6L5FYG.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/express.ts
|
|
7
|
-
var driveAPIHandlerExpress =
|
|
8
|
-
var driveConfigurationExpress =
|
|
7
|
+
var driveAPIHandlerExpress = chunkZNXH3LYN_cjs.driveAPIHandler;
|
|
8
|
+
var driveConfigurationExpress = chunkZNXH3LYN_cjs.driveConfiguration;
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "driveDelete", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkZNXH3LYN_cjs.driveDelete; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "driveFilePath", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkZNXH3LYN_cjs.driveFilePath; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkZNXH3LYN_cjs.driveFileSchemaZod; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkZNXH3LYN_cjs.driveGetUrl; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "driveList", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkZNXH3LYN_cjs.driveList; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "driveReadFile", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkZNXH3LYN_cjs.driveReadFile; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "driveUpload", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkZNXH3LYN_cjs.driveUpload; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkZNXH3LYN_cjs.getDriveConfig; }
|
|
41
41
|
});
|
|
42
42
|
exports.driveAPIHandlerExpress = driveAPIHandlerExpress;
|
|
43
43
|
exports.driveConfigurationExpress = driveConfigurationExpress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/server/express.ts"],"names":["driveAPIHandler","driveConfiguration"],"mappings":";;;;;;AASO,IAAM,sBAAA,GAAyBA;AAI/B,IAAM,yBAAA,GAA4BC","file":"express.cjs","sourcesContent":["// ** Express Adapter for next-drive\r\n// ** Provides Express-compatible types for the drive API handler and configuration\r\nimport type { Request, Response } from 'express';\r\nimport type { TDriveConfigurationExpress } from '@/types/server/express';\r\n\r\nimport { driveAPIHandler, driveConfiguration } from '@/server/index';\r\n\r\n// ** Express API Handler\r\n// ** Type-cast wrapper that allows Express Request/Response to be used with the core handler\r\nexport const driveAPIHandlerExpress = driveAPIHandler as unknown as (req: Request, res: Response) => Promise<void>;\r\n\r\n// ** Express Configuration\r\n// ** Type-cast wrapper that accepts Express Request in the information callback\r\nexport const driveConfigurationExpress = driveConfiguration as unknown as (config: TDriveConfigurationExpress) => TDriveConfigurationExpress
|
|
1
|
+
{"version":3,"sources":["../../src/server/express.ts"],"names":["driveAPIHandler","driveConfiguration"],"mappings":";;;;;;AASO,IAAM,sBAAA,GAAyBA;AAI/B,IAAM,yBAAA,GAA4BC","file":"express.cjs","sourcesContent":["// ** Express Adapter for next-drive\r\n// ** Provides Express-compatible types for the drive API handler and configuration\r\nimport type { Request, Response } from 'express';\r\nimport type { TDriveConfigurationExpress } from '@/types/server/express';\r\n\r\nimport { driveAPIHandler, driveConfiguration } from '@/server/index';\r\n\r\n// ** Express API Handler\r\n// ** Type-cast wrapper that allows Express Request/Response to be used with the core handler\r\nexport const driveAPIHandlerExpress = driveAPIHandler as unknown as (req: Request, res: Response) => Promise<void>;\r\n\r\n// ** Express Configuration\r\n// ** Type-cast wrapper that accepts Express Request in the information callback\r\nexport const driveConfigurationExpress = driveConfiguration as unknown as (config: TDriveConfigurationExpress) => Promise<TDriveConfigurationExpress>;\r\n\r\n// ** Re-export utilities that work with any framework\r\nexport { driveGetUrl, driveReadFile, driveFilePath, driveUpload, driveDelete, driveList } from '@/server/controllers/drive';\r\nexport { driveFileSchemaZod } from '@/server/zod/schemas';\r\nexport { getDriveConfig } from '@/server/config';\r\n\r\n// ** Re-export types\r\nexport type { TDriveConfigurationExpress, TDriveConfigInformation } from '@/types/server/express';\r\nexport type { TDriveFile, TDriveInformation } from '@/types/client';\r\n"]}
|
package/dist/server/express.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Request, Response } from 'express';
|
|
2
2
|
import type { TDriveConfigurationExpress } from '../types/server/express';
|
|
3
3
|
export declare const driveAPIHandlerExpress: (req: Request, res: Response) => Promise<void>;
|
|
4
|
-
export declare const driveConfigurationExpress: (config: TDriveConfigurationExpress) => TDriveConfigurationExpress
|
|
4
|
+
export declare const driveConfigurationExpress: (config: TDriveConfigurationExpress) => Promise<TDriveConfigurationExpress>;
|
|
5
5
|
export { driveGetUrl, driveReadFile, driveFilePath, driveUpload, driveDelete, driveList } from '../server/controllers/drive';
|
|
6
6
|
export { driveFileSchemaZod } from '../server/zod/schemas';
|
|
7
7
|
export { getDriveConfig } from '../server/config';
|
|
8
8
|
export type { TDriveConfigurationExpress, TDriveConfigInformation } from '../types/server/express';
|
|
9
|
-
export type { TDriveFile, TDriveInformation
|
|
9
|
+
export type { TDriveFile, TDriveInformation } from '../types/client';
|
|
10
10
|
//# sourceMappingURL=express.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/server/express.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAMzE,eAAO,MAAM,sBAAsB,EAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAInH,eAAO,MAAM,yBAAyB,EAAoC,CAAC,MAAM,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/server/express.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAMzE,eAAO,MAAM,sBAAsB,EAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAInH,eAAO,MAAM,yBAAyB,EAAoC,CAAC,MAAM,EAAE,0BAA0B,KAAK,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAGtJ,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5H,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,YAAY,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAClG,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/server/express.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { driveAPIHandler, driveConfiguration } from '../chunk-
|
|
2
|
-
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { driveAPIHandler, driveConfiguration } from '../chunk-5CAP2MNG.js';
|
|
2
|
+
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-5CAP2MNG.js';
|
|
3
|
+
import '../chunk-TMSG5WJZ.js';
|
|
4
4
|
|
|
5
5
|
// src/server/express.ts
|
|
6
6
|
var driveAPIHandlerExpress = driveAPIHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/server/express.ts"],"names":[],"mappings":";;;;;AASO,IAAM,sBAAA,GAAyB;AAI/B,IAAM,yBAAA,GAA4B","file":"express.js","sourcesContent":["// ** Express Adapter for next-drive\r\n// ** Provides Express-compatible types for the drive API handler and configuration\r\nimport type { Request, Response } from 'express';\r\nimport type { TDriveConfigurationExpress } from '@/types/server/express';\r\n\r\nimport { driveAPIHandler, driveConfiguration } from '@/server/index';\r\n\r\n// ** Express API Handler\r\n// ** Type-cast wrapper that allows Express Request/Response to be used with the core handler\r\nexport const driveAPIHandlerExpress = driveAPIHandler as unknown as (req: Request, res: Response) => Promise<void>;\r\n\r\n// ** Express Configuration\r\n// ** Type-cast wrapper that accepts Express Request in the information callback\r\nexport const driveConfigurationExpress = driveConfiguration as unknown as (config: TDriveConfigurationExpress) => TDriveConfigurationExpress
|
|
1
|
+
{"version":3,"sources":["../../src/server/express.ts"],"names":[],"mappings":";;;;;AASO,IAAM,sBAAA,GAAyB;AAI/B,IAAM,yBAAA,GAA4B","file":"express.js","sourcesContent":["// ** Express Adapter for next-drive\r\n// ** Provides Express-compatible types for the drive API handler and configuration\r\nimport type { Request, Response } from 'express';\r\nimport type { TDriveConfigurationExpress } from '@/types/server/express';\r\n\r\nimport { driveAPIHandler, driveConfiguration } from '@/server/index';\r\n\r\n// ** Express API Handler\r\n// ** Type-cast wrapper that allows Express Request/Response to be used with the core handler\r\nexport const driveAPIHandlerExpress = driveAPIHandler as unknown as (req: Request, res: Response) => Promise<void>;\r\n\r\n// ** Express Configuration\r\n// ** Type-cast wrapper that accepts Express Request in the information callback\r\nexport const driveConfigurationExpress = driveConfiguration as unknown as (config: TDriveConfigurationExpress) => Promise<TDriveConfigurationExpress>;\r\n\r\n// ** Re-export utilities that work with any framework\r\nexport { driveGetUrl, driveReadFile, driveFilePath, driveUpload, driveDelete, driveList } from '@/server/controllers/drive';\r\nexport { driveFileSchemaZod } from '@/server/zod/schemas';\r\nexport { getDriveConfig } from '@/server/config';\r\n\r\n// ** Re-export types\r\nexport type { TDriveConfigurationExpress, TDriveConfigInformation } from '@/types/server/express';\r\nexport type { TDriveFile, TDriveInformation } from '@/types/client';\r\n"]}
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,65 +1,61 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkZNXH3LYN_cjs = require('../chunk-ZNXH3LYN.cjs');
|
|
4
|
+
var chunkTA6L5FYG_cjs = require('../chunk-TA6L5FYG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "driveAPIHandler", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkZNXH3LYN_cjs.driveAPIHandler; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "driveConfiguration", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZNXH3LYN_cjs.driveConfiguration; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "driveDelete", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZNXH3LYN_cjs.driveDelete; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "driveFilePath", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZNXH3LYN_cjs.driveFilePath; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZNXH3LYN_cjs.driveFileSchemaZod; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZNXH3LYN_cjs.driveGetUrl; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "driveInfo", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZNXH3LYN_cjs.driveInfo; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "driveList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkZNXH3LYN_cjs.driveList; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "driveReadFile", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkZNXH3LYN_cjs.driveReadFile; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "driveUpload", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkZNXH3LYN_cjs.driveUpload; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkZNXH3LYN_cjs.getDriveConfig; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "getDriveInformation", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, "driveCreateSrcSet", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () { return chunkCFLH4TCQ_cjs.driveCreateSrcSet; }
|
|
54
|
+
get: function () { return chunkZNXH3LYN_cjs.getDriveInformation; }
|
|
59
55
|
});
|
|
60
56
|
Object.defineProperty(exports, "driveCreateUrl", {
|
|
61
57
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkTA6L5FYG_cjs.driveCreateUrl; }
|
|
63
59
|
});
|
|
64
60
|
//# sourceMappingURL=index.cjs.map
|
|
65
61
|
//# sourceMappingURL=index.cjs.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const driveAPIHandler: (req: NextApiRequest, res: NextApiResponse
|
|
|
4
4
|
export { driveConfiguration, getDriveConfig, getDriveInformation };
|
|
5
5
|
export { driveGetUrl, driveReadFile, driveFilePath, driveUpload, driveDelete, driveList, driveInfo } from '../server/controllers/drive';
|
|
6
6
|
export { driveFileSchemaZod } from '../server/zod/schemas';
|
|
7
|
-
export { driveCreateUrl
|
|
8
|
-
export type { TDriveFile, TDriveInformation
|
|
7
|
+
export { driveCreateUrl } from '../client/utils';
|
|
8
|
+
export type { TDriveFile, TDriveInformation } from '../types/client';
|
|
9
9
|
export type * from '../types/server';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAQ5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AA8F1F,eAAO,MAAM,eAAe,GAAU,KAAK,cAAc,EAAE,KAAK,eAAe,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAQ5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AA8F1F,eAAO,MAAM,eAAe,GAAU,KAAK,cAAc,EAAE,KAAK,eAAe,KAAG,OAAO,CAAC,IAAI,CA0wB7F,CAAC;AAGF,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvI,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACpE,mBAAmB,gBAAgB,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { driveAPIHandler, driveConfiguration, driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveInfo, driveList, driveReadFile, driveUpload, getDriveConfig, getDriveInformation } from '../chunk-
|
|
2
|
-
export {
|
|
1
|
+
export { driveAPIHandler, driveConfiguration, driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveInfo, driveList, driveReadFile, driveUpload, getDriveConfig, getDriveInformation } from '../chunk-5CAP2MNG.js';
|
|
2
|
+
export { driveCreateUrl } from '../chunk-TMSG5WJZ.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/server/providers/google.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/server/providers/google.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAe,MAAM,wBAAwB,CAAC;AAuC5E,eAAO,MAAM,mBAAmB,EAAE,gBAmlBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/server/providers/local.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK/D,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/server/providers/local.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK/D,eAAO,MAAM,oBAAoB,EAAE,gBA4PlC,CAAC"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
duration: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Get video metadata using ffprobe
|
|
12
|
-
*/
|
|
13
|
-
export declare function getVideoMetadata(filePath: string): Promise<VideoMetadata | null>;
|
|
1
|
+
import type { TVideoMetadata } from '../../types/server/metadata';
|
|
2
|
+
export declare const extractVideoFrame: (props: Readonly<{
|
|
3
|
+
sourcePath: string;
|
|
4
|
+
outputPath: string;
|
|
5
|
+
size: number;
|
|
6
|
+
}>) => Promise<boolean>;
|
|
7
|
+
export declare const getVideoMetadata: (filePath: string) => Promise<TVideoMetadata | null>;
|
|
14
8
|
//# sourceMappingURL=ffmpeg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ffmpeg.d.ts","sourceRoot":"","sources":["../../../src/server/utils/ffmpeg.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ffmpeg.d.ts","sourceRoot":"","sources":["../../../src/server/utils/ffmpeg.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,eAAO,MAAM,iBAAiB,GAAI,OAAO,QAAQ,CAAC;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC,KAAG,OAAO,CAAC,OAAO,CA+BnB,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAsBhF,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
1
|
+
export declare const isDescendantOf: (props: Readonly<{
|
|
2
|
+
folderId: string;
|
|
3
|
+
ancestorId: string;
|
|
4
|
+
owner: Record<string, unknown> | null;
|
|
5
|
+
maxDepth?: number;
|
|
6
|
+
}>) => Promise<boolean>;
|
|
7
|
+
export declare const checkCircularReference: (props: Readonly<{
|
|
8
|
+
itemIds: string[];
|
|
9
|
+
targetId: string | null;
|
|
10
|
+
owner: Record<string, unknown> | null;
|
|
11
|
+
}>) => Promise<{
|
|
3
12
|
hasCircular: boolean;
|
|
4
|
-
message?:
|
|
5
|
-
} | {
|
|
6
|
-
hasCircular: boolean;
|
|
7
|
-
message: string;
|
|
13
|
+
message?: string;
|
|
8
14
|
}>;
|
|
9
15
|
//# sourceMappingURL=folderValidation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderValidation.d.ts","sourceRoot":"","sources":["../../../src/server/utils/folderValidation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"folderValidation.d.ts","sourceRoot":"","sources":["../../../src/server/utils/folderValidation.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,GAAU,OAAO,QAAQ,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,KAAG,OAAO,CAAC,OAAO,CAoBnB,CAAC;AAGF,eAAO,MAAM,sBAAsB,GAAU,OAAO,QAAQ,CAAC;IACzD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACzC,CAAC,KAAG,OAAO,CAAC;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAwBtD,CAAC"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
export declare function convertAndServeImage(sourcePath: string, sourceMime: string, quality: string, format: string, storagePath: string, fileId: string, res: NextApiResponse): Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* Generate a thumbnail for an image or video
|
|
12
|
-
* @returns true if successful, false if unsupported type
|
|
13
|
-
*/
|
|
14
|
-
export declare function generateThumbnail(sourcePath: string, outputPath: string, sourceMime: string, size: number): Promise<boolean>;
|
|
1
|
+
export declare const isImageMimeType: (mime: string) => boolean;
|
|
2
|
+
export declare const generateThumbnail: (props: Readonly<{
|
|
3
|
+
sourcePath: string;
|
|
4
|
+
outputPath: string;
|
|
5
|
+
sourceMime: string;
|
|
6
|
+
size: number;
|
|
7
|
+
}>) => Promise<boolean>;
|
|
15
8
|
//# sourceMappingURL=imageConvert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageConvert.d.ts","sourceRoot":"","sources":["../../../src/server/utils/imageConvert.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imageConvert.d.ts","sourceRoot":"","sources":["../../../src/server/utils/imageConvert.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAG9C,CAAC;AAMF,eAAO,MAAM,iBAAiB,GAAU,OAAO,QAAQ,CAAC;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC,KAAG,OAAO,CAAC,OAAO,CAoCnB,CAAC"}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare
|
|
5
|
-
export interface ImageMetadata {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
exif?: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Extract image metadata using Sharp
|
|
12
|
-
*/
|
|
13
|
-
export declare function extractImageMetadata(filePath: string): Promise<ImageMetadata | null>;
|
|
14
|
-
export interface VideoMetadata {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
duration: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Extract video metadata using ffprobe
|
|
21
|
-
*/
|
|
22
|
-
export declare function extractVideoMetadata(filePath: string): Promise<VideoMetadata | null>;
|
|
1
|
+
import type { TImageMetadata, TVideoMetadata } from '../../types/server/metadata';
|
|
2
|
+
export declare const computeFileHash: (filePath: string) => Promise<string>;
|
|
3
|
+
export declare const extractImageMetadata: (filePath: string) => Promise<TImageMetadata | null>;
|
|
4
|
+
export declare const extractVideoMetadata: (filePath: string) => Promise<TVideoMetadata | null>;
|
|
23
5
|
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/server/utils/metadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/server/utils/metadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9E,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CAShE,CAAC;AAiBF,eAAO,MAAM,oBAAoB,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAY1F,CAAC;AAKF,eAAO,MAAM,oBAAoB,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAQ1F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../../src/server/utils/migration.ts"],"names":[],"mappings":"AAoMA,eAAO,MAAM,aAAa,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CA8CrE,CAAA"}
|
package/dist/server/utils.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const QUALITY_MAP: Record<string, number>;
|
|
2
1
|
export declare const isImageMimeType: (mime: string) => boolean;
|
|
3
2
|
export declare const validateMimeType: (mime: string, allowedTypes: string[]) => boolean;
|
|
4
3
|
export declare const computeFileHash: (filePath: string) => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/server/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/server/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAA8F,CAAC;AAE9I,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,cAAc,MAAM,EAAE,KAAG,OAUvE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CAO3D,CAAC;AAEP,eAAO,MAAM,oBAAoB,GAAU,UAAU,MAAM;;;;;;SAO1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAM9C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,KAAG,OAInG,CAAC"}
|
|
@@ -58,17 +58,11 @@ export declare const listQuerySchema: z.ZodObject<{
|
|
|
58
58
|
export declare const serveQuerySchema: z.ZodObject<{
|
|
59
59
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
60
60
|
token: z.ZodOptional<z.ZodString>;
|
|
61
|
-
q: z.ZodOptional<z.ZodEnum<["ultralow", "low", "medium", "high", "normal"]>>;
|
|
62
|
-
format: z.ZodOptional<z.ZodEnum<["webp", "jpeg", "png"]>>;
|
|
63
61
|
}, "strip", z.ZodTypeAny, {
|
|
64
62
|
id: string;
|
|
65
|
-
q?: "ultralow" | "low" | "medium" | "high" | "normal" | undefined;
|
|
66
|
-
format?: "webp" | "jpeg" | "png" | undefined;
|
|
67
63
|
token?: string | undefined;
|
|
68
64
|
}, {
|
|
69
65
|
id: string;
|
|
70
|
-
q?: "ultralow" | "low" | "medium" | "high" | "normal" | undefined;
|
|
71
|
-
format?: "webp" | "jpeg" | "png" | undefined;
|
|
72
66
|
token?: string | undefined;
|
|
73
67
|
}>;
|
|
74
68
|
export declare const thumbnailQuerySchema: z.ZodObject<{
|
|
@@ -77,11 +71,11 @@ export declare const thumbnailQuerySchema: z.ZodObject<{
|
|
|
77
71
|
token: z.ZodOptional<z.ZodString>;
|
|
78
72
|
}, "strip", z.ZodTypeAny, {
|
|
79
73
|
id: string;
|
|
80
|
-
size: "
|
|
74
|
+
size: "small" | "medium" | "large";
|
|
81
75
|
token?: string | undefined;
|
|
82
76
|
}, {
|
|
83
77
|
id: string;
|
|
84
|
-
size?: "
|
|
78
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
85
79
|
token?: string | undefined;
|
|
86
80
|
}>;
|
|
87
81
|
export declare const renameBodySchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/server/zod/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,QAAA,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAgBxC,CAAC;AAGF,QAAA,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MAG3C,CAAC;AAWF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/server/zod/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,QAAA,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAgBxC,CAAC;AAGF,QAAA,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MAG3C,CAAC;AAWF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxB,CAAC;AAGP,eAAO,MAAM,eAAe;;;;;;;;;;;;EAU1B,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;EAGzB,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAc5B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAGH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAGnC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -35,8 +35,6 @@ export type TDriveInformation = {
|
|
|
35
35
|
createdAt: Date;
|
|
36
36
|
trashedAt?: Date | null;
|
|
37
37
|
};
|
|
38
|
-
export type TImageQuality = 'ultralow' | 'low' | 'medium' | 'high' | 'normal';
|
|
39
|
-
export type TImageFormat = 'webp' | 'jpeg' | 'png';
|
|
40
38
|
export { driveFileSchemaZod } from '../../schemas';
|
|
41
39
|
export type TDrivePathItem = {
|
|
42
40
|
id: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/client/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACtD,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAA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GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAC;IAChF,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../src/types/lib/database/storage/account.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../src/types/lib/database/storage/account.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,+BAA+B,GAAG;IAC1C,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxC,CAAC;CACL,CAAC;AAGF,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,SAAS,EAAE,IAAI,CAAC;CACnB,CAAC"}
|
|
@@ -19,10 +19,6 @@ export type TDriveSecurityConfig = {
|
|
|
19
19
|
retentionDays: number;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export type TDriveImageConfig = {
|
|
23
|
-
formats: Array<'webp' | 'jpeg' | 'png'>;
|
|
24
|
-
qualities: Array<'ultralow' | 'low' | 'medium' | 'high' | 'normal'>;
|
|
25
|
-
};
|
|
26
22
|
export type TDriveStorageConfig = {
|
|
27
23
|
path: string;
|
|
28
24
|
google?: {
|
|
@@ -43,7 +39,6 @@ export type TDriveCorsConfig = {
|
|
|
43
39
|
type TDriveConfigurationBase = {
|
|
44
40
|
database: TDriveDatabase;
|
|
45
41
|
storage: TDriveStorageConfig;
|
|
46
|
-
image?: TDriveImageConfig;
|
|
47
42
|
cors?: TDriveCorsConfig;
|
|
48
43
|
apiUrl: string;
|
|
49
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/types/server/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG3C,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AAGxC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAG3C,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACpC,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC,CAAC;AAGF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/types/server/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG3C,MAAM,MAA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IACxB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,KAAK,yBAAyB,GAAG,uBAAuB,GAAG;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,WAAW,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC9E,CAAC;AAGF,KAAK,uBAAuB,GAAG,uBAAuB,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC/E,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GAAG,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Request } from 'express';
|
|
2
|
-
export type { TDriveConfigInformation, TDriveSecurityConfig,
|
|
2
|
+
export type { TDriveConfigInformation, TDriveSecurityConfig, TDriveStorageConfig, TDriveDatabase, TDriveCorsConfig, TDriveMode } from './config';
|
|
3
3
|
type TDriveConfigurationExpressBase = {
|
|
4
4
|
database: 'MONGOOSE';
|
|
5
5
|
storage: {
|
|
@@ -10,10 +10,6 @@ type TDriveConfigurationExpressBase = {
|
|
|
10
10
|
redirectUri: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
image?: {
|
|
14
|
-
formats: Array<'webp' | 'jpeg' | 'png'>;
|
|
15
|
-
qualities: Array<'ultralow' | 'low' | 'medium' | 'high' | 'normal'>;
|
|
16
|
-
};
|
|
17
13
|
cors?: {
|
|
18
14
|
enabled: boolean;
|
|
19
15
|
origins?: string | string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../src/types/server/express.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MA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