sliftutils 1.2.1 → 1.2.3
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/.cursor/rules/api-calls.mdc +16 -0
- package/.cursor/rules/coding-styles.mdc +50 -0
- package/.cursor/rules/components.mdc +44 -0
- package/.cursor/rules/disk-collection.mdc +31 -0
- package/.cursor/rules/general-guidelines.mdc +11 -0
- package/.cursor/rules/mobx-state.mdc +33 -0
- package/.cursor/rules/styling-css.mdc +99 -0
- package/builders/setup.ts +2 -2
- package/index.d.ts +104 -15
- package/misc/zip.d.ts +2 -13
- package/misc/zip.ts +2 -104
- package/package.json +2 -2
- package/render-utils/InputLabel.d.ts +1 -2
- package/render-utils/InputLabel.tsx +1 -1
- package/storage/backblaze.d.ts +97 -0
- package/storage/backblaze.ts +915 -0
- package/yarn.lock +4 -4
- package/.cursorrules +0 -251
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
export declare class ArchivesBackblaze {
|
|
4
|
+
private config;
|
|
5
|
+
constructor(config: {
|
|
6
|
+
bucketName: string;
|
|
7
|
+
public?: boolean;
|
|
8
|
+
immutable?: boolean;
|
|
9
|
+
cacheTime?: number;
|
|
10
|
+
});
|
|
11
|
+
private bucketName;
|
|
12
|
+
private bucketId;
|
|
13
|
+
private logging;
|
|
14
|
+
enableLogging(): void;
|
|
15
|
+
private log;
|
|
16
|
+
getDebugName(): string;
|
|
17
|
+
private getBucketAPI;
|
|
18
|
+
private last503Reset;
|
|
19
|
+
private apiRetryLogic;
|
|
20
|
+
get(fileName: string, config?: {
|
|
21
|
+
range?: {
|
|
22
|
+
start: number;
|
|
23
|
+
end: number;
|
|
24
|
+
};
|
|
25
|
+
retryCount?: number;
|
|
26
|
+
}): Promise<Buffer | undefined>;
|
|
27
|
+
set(fileName: string, data: Buffer): Promise<void>;
|
|
28
|
+
del(fileName: string): Promise<void>;
|
|
29
|
+
setLargeFile(config: {
|
|
30
|
+
path: string;
|
|
31
|
+
getNextData(): Promise<Buffer | undefined>;
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
getInfo(fileName: string): Promise<{
|
|
34
|
+
writeTime: number;
|
|
35
|
+
size: number;
|
|
36
|
+
} | undefined>;
|
|
37
|
+
find(prefix: string, config?: {
|
|
38
|
+
shallow?: boolean;
|
|
39
|
+
type: "files" | "folders";
|
|
40
|
+
}): Promise<string[]>;
|
|
41
|
+
findInfo(prefix: string, config?: {
|
|
42
|
+
shallow?: boolean;
|
|
43
|
+
type: "files" | "folders";
|
|
44
|
+
}): Promise<{
|
|
45
|
+
path: string;
|
|
46
|
+
createTime: number;
|
|
47
|
+
size: number;
|
|
48
|
+
}[]>;
|
|
49
|
+
assertPathValid(path: string): Promise<void>;
|
|
50
|
+
getURL(path: string): Promise<string>;
|
|
51
|
+
getDownloadAuthorization(config: {
|
|
52
|
+
fileNamePrefix?: string;
|
|
53
|
+
validDurationInSeconds: number;
|
|
54
|
+
b2ContentDisposition?: string;
|
|
55
|
+
b2ContentLanguage?: string;
|
|
56
|
+
b2Expires?: string;
|
|
57
|
+
b2CacheControl?: string;
|
|
58
|
+
b2ContentEncoding?: string;
|
|
59
|
+
b2ContentType?: string;
|
|
60
|
+
}): Promise<{
|
|
61
|
+
bucketId: string;
|
|
62
|
+
fileNamePrefix: string;
|
|
63
|
+
authorizationToken: string;
|
|
64
|
+
}>;
|
|
65
|
+
}
|
|
66
|
+
export declare const getArchivesBackblaze: {
|
|
67
|
+
(key: string): ArchivesBackblaze;
|
|
68
|
+
clear(key: string): void;
|
|
69
|
+
clearAll(): void;
|
|
70
|
+
forceSet(key: string, value: ArchivesBackblaze): void;
|
|
71
|
+
getAllKeys(): string[];
|
|
72
|
+
get(key: string): ArchivesBackblaze | undefined;
|
|
73
|
+
};
|
|
74
|
+
export declare const getArchivesBackblazePrivateImmutable: {
|
|
75
|
+
(key: string): ArchivesBackblaze;
|
|
76
|
+
clear(key: string): void;
|
|
77
|
+
clearAll(): void;
|
|
78
|
+
forceSet(key: string, value: ArchivesBackblaze): void;
|
|
79
|
+
getAllKeys(): string[];
|
|
80
|
+
get(key: string): ArchivesBackblaze | undefined;
|
|
81
|
+
};
|
|
82
|
+
export declare const getArchivesBackblazePublicImmutable: {
|
|
83
|
+
(key: string): ArchivesBackblaze;
|
|
84
|
+
clear(key: string): void;
|
|
85
|
+
clearAll(): void;
|
|
86
|
+
forceSet(key: string, value: ArchivesBackblaze): void;
|
|
87
|
+
getAllKeys(): string[];
|
|
88
|
+
get(key: string): ArchivesBackblaze | undefined;
|
|
89
|
+
};
|
|
90
|
+
export declare const getArchivesBackblazePublic: {
|
|
91
|
+
(key: string): ArchivesBackblaze;
|
|
92
|
+
clear(key: string): void;
|
|
93
|
+
clearAll(): void;
|
|
94
|
+
forceSet(key: string, value: ArchivesBackblaze): void;
|
|
95
|
+
getAllKeys(): string[];
|
|
96
|
+
get(key: string): ArchivesBackblaze | undefined;
|
|
97
|
+
};
|