@muhgholy/next-drive 4.22.0 → 4.23.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.
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { Request } from 'express';
|
|
2
|
-
export type
|
|
2
|
+
export type TDriveInformationInputExpress = {
|
|
3
|
+
method: 'REQUEST';
|
|
4
|
+
req: Request;
|
|
5
|
+
} | {
|
|
6
|
+
method: 'KEY';
|
|
7
|
+
key: Record<string, unknown> | null;
|
|
8
|
+
};
|
|
9
|
+
export type TDriveConfigInformation = {
|
|
10
|
+
key: Record<string, unknown> | null;
|
|
11
|
+
storage: {
|
|
12
|
+
quotaInBytes: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
3
15
|
type TDriveConfigurationExpressBase = {
|
|
4
16
|
database: 'MONGOOSE';
|
|
5
17
|
storage: {
|
|
@@ -35,12 +47,7 @@ type TDriveConfigurationExpressNormal = TDriveConfigurationExpressBase & {
|
|
|
35
47
|
retentionDays: number;
|
|
36
48
|
};
|
|
37
49
|
};
|
|
38
|
-
information: (
|
|
39
|
-
key: Record<string, unknown> | null;
|
|
40
|
-
storage: {
|
|
41
|
-
quotaInBytes: number;
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
50
|
+
information: (input: TDriveInformationInputExpress) => Promise<TDriveConfigInformation>;
|
|
44
51
|
};
|
|
45
52
|
type TDriveConfigurationExpressRoot = TDriveConfigurationExpressBase & {
|
|
46
53
|
mode: 'ROOT';
|
|
@@ -56,12 +63,8 @@ type TDriveConfigurationExpressRoot = TDriveConfigurationExpressBase & {
|
|
|
56
63
|
retentionDays: number;
|
|
57
64
|
};
|
|
58
65
|
};
|
|
59
|
-
information?: (
|
|
60
|
-
key: Record<string, unknown> | null;
|
|
61
|
-
storage: {
|
|
62
|
-
quotaInBytes: number;
|
|
63
|
-
};
|
|
64
|
-
}>;
|
|
66
|
+
information?: (input: TDriveInformationInputExpress) => Promise<TDriveConfigInformation>;
|
|
65
67
|
};
|
|
66
68
|
export type TDriveConfigurationExpress = TDriveConfigurationExpressNormal | TDriveConfigurationExpressRoot;
|
|
69
|
+
export {};
|
|
67
70
|
//# sourceMappingURL=express.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../src/types/server/express.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,
|
|
1
|
+
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../src/types/server/express.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,MAAM,MAAM,6BAA6B,GACnC;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAG7D,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,KAAK,8BAA8B,GAAG;IAClC,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE;YACL,QAAQ,EAAE,MAAM,CAAC;YACjB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;SACvB,CAAC;KACL,CAAC;IACF,IAAI,CAAC,EAAE;QACH,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACn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
|
|
1
1
|
import type { Context } from 'hono';
|
|
2
|
-
export type
|
|
2
|
+
export type TDriveInformationInputHono = {
|
|
3
|
+
method: 'REQUEST';
|
|
4
|
+
req: Context;
|
|
5
|
+
} | {
|
|
6
|
+
method: 'KEY';
|
|
7
|
+
key: Record<string, unknown> | null;
|
|
8
|
+
};
|
|
9
|
+
export type TDriveConfigInformation = {
|
|
10
|
+
key: Record<string, unknown> | null;
|
|
11
|
+
storage: {
|
|
12
|
+
quotaInBytes: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
3
15
|
type TDriveConfigurationHonoBase = {
|
|
4
16
|
database: 'MONGOOSE';
|
|
5
17
|
storage: {
|
|
@@ -35,12 +47,7 @@ type TDriveConfigurationHonoNormal = TDriveConfigurationHonoBase & {
|
|
|
35
47
|
retentionDays: number;
|
|
36
48
|
};
|
|
37
49
|
};
|
|
38
|
-
information: (
|
|
39
|
-
key: Record<string, unknown> | null;
|
|
40
|
-
storage: {
|
|
41
|
-
quotaInBytes: number;
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
50
|
+
information: (input: TDriveInformationInputHono) => Promise<TDriveConfigInformation>;
|
|
44
51
|
};
|
|
45
52
|
type TDriveConfigurationHonoRoot = TDriveConfigurationHonoBase & {
|
|
46
53
|
mode: 'ROOT';
|
|
@@ -56,12 +63,8 @@ type TDriveConfigurationHonoRoot = TDriveConfigurationHonoBase & {
|
|
|
56
63
|
retentionDays: number;
|
|
57
64
|
};
|
|
58
65
|
};
|
|
59
|
-
information?: (
|
|
60
|
-
key: Record<string, unknown> | null;
|
|
61
|
-
storage: {
|
|
62
|
-
quotaInBytes: number;
|
|
63
|
-
};
|
|
64
|
-
}>;
|
|
66
|
+
information?: (input: TDriveInformationInputHono) => Promise<TDriveConfigInformation>;
|
|
65
67
|
};
|
|
66
68
|
export type TDriveConfigurationHono = TDriveConfigurationHonoNormal | TDriveConfigurationHonoRoot;
|
|
69
|
+
export {};
|
|
67
70
|
//# sourceMappingURL=hono.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hono.d.ts","sourceRoot":"","sources":["../../../src/types/server/hono.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,
|
|
1
|
+
{"version":3,"file":"hono.d.ts","sourceRoot":"","sources":["../../../src/types/server/hono.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,MAAM,MAAM,0BAA0B,GAChC;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAG7D,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,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE;YACL,QAAQ,EAAE,MAAM,CAAC;YACjB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;SACvB,CAAC;KACL,CAAC;IACF,IAAI,CAAC,EAAE;QACH,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,MAAM,CA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