@milaboratories/pl-drivers 1.2.35 → 1.3.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/dist/clients/download.d.ts +5 -2
- package/dist/clients/download.d.ts.map +1 -1
- package/dist/clients/helpers.d.ts +2 -2
- package/dist/clients/helpers.d.ts.map +1 -1
- package/dist/drivers/helpers/ls_list_entry.d.ts +8 -13
- package/dist/drivers/helpers/ls_list_entry.d.ts.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.d.ts +6 -8
- package/dist/drivers/helpers/ls_storage_entry.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts +40 -12
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/types.d.ts +80 -0
- package/dist/drivers/types.d.ts.map +1 -0
- package/dist/drivers/upload.d.ts +18 -26
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/helpers/validate.d.ts +2 -0
- package/dist/helpers/validate.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +943 -918
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/clients/download.test.ts +5 -14
- package/src/clients/download.ts +13 -5
- package/src/clients/helpers.ts +13 -43
- package/src/drivers/download_blob.test.ts +4 -4
- package/src/drivers/helpers/ls_list_entry.test.ts +5 -7
- package/src/drivers/helpers/ls_list_entry.ts +31 -36
- package/src/drivers/helpers/ls_storage_entry.ts +18 -62
- package/src/drivers/logs.test.ts +3 -3
- package/src/drivers/ls.test.ts +112 -30
- package/src/drivers/ls.ts +233 -83
- package/src/drivers/types.ts +41 -0
- package/src/drivers/upload.test.ts +43 -82
- package/src/drivers/upload.ts +59 -111
- package/src/helpers/validate.ts +6 -0
- package/src/index.ts +3 -0
|
@@ -6,6 +6,7 @@ import { Dispatcher } from 'undici';
|
|
|
6
6
|
import { DownloadAPI_GetDownloadURL_HTTPHeader, DownloadAPI_GetDownloadURL_Response } from '../proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol';
|
|
7
7
|
import { ResourceInfo } from '@milaboratories/pl-tree';
|
|
8
8
|
import { DownloadResponse } from '../helpers/download';
|
|
9
|
+
import { LocalStorageProjection } from '../drivers/types';
|
|
9
10
|
export declare class UnknownStorageError extends Error {
|
|
10
11
|
}
|
|
11
12
|
export declare class WrongLocalFileUrl extends Error {
|
|
@@ -16,10 +17,12 @@ export declare class ClientDownload {
|
|
|
16
17
|
readonly grpcTransport: GrpcTransport;
|
|
17
18
|
readonly httpClient: Dispatcher;
|
|
18
19
|
readonly logger: MiLogger;
|
|
19
|
-
private readonly localStorageIdsToRoot;
|
|
20
20
|
readonly grpcClient: DownloadClient;
|
|
21
21
|
private readonly downloadHelper;
|
|
22
|
-
|
|
22
|
+
private readonly localStorageIdsToRoot;
|
|
23
|
+
constructor(grpcTransport: GrpcTransport, httpClient: Dispatcher, logger: MiLogger,
|
|
24
|
+
/** Pl storages available locally */
|
|
25
|
+
localProjections: LocalStorageProjection[]);
|
|
23
26
|
close(): void;
|
|
24
27
|
getUrl({ id, type }: ResourceInfo, options?: RpcOptions, signal?: AbortSignal): Promise<DownloadAPI_GetDownloadURL_Response>;
|
|
25
28
|
downloadBlob(info: ResourceInfo, options?: RpcOptions, signal?: AbortSignal): Promise<DownloadResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/clients/download.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,yFAAyF,CAAC;AACzH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC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,IAAI,EAAE,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,UAAU,EACpB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,mCAAmC,CAAC;IAUzC,YAAY,CAChB,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,UAAU,EACpB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,gBAAgB,CAAC;IAc5B,OAAO,CAAC,OAAO,CAAoD;IAE7D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAuB5D;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,qCAAqC,EAAE,GAC/C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExB"}
|
|
@@ -5,8 +5,8 @@ import { ClientLogs } from './logs';
|
|
|
5
5
|
import { ClientProgress } from './progress';
|
|
6
6
|
import { ClientUpload } from './upload';
|
|
7
7
|
import { ClientLs } from './ls_api';
|
|
8
|
-
|
|
9
|
-
export declare function createDownloadClient(logger: MiLogger, client: PlClient,
|
|
8
|
+
import { LocalStorageProjection } from '../drivers/types';
|
|
9
|
+
export declare function createDownloadClient(logger: MiLogger, client: PlClient, localProjections: LocalStorageProjection[]): ClientDownload;
|
|
10
10
|
export declare function createLogsClient(client: PlClient, logger: MiLogger): ClientLogs;
|
|
11
11
|
export declare function createUploadProgressClient(client: PlClient, logger: MiLogger): ClientProgress;
|
|
12
12
|
export declare function createUploadBlobClient(client: PlClient, logger: MiLogger): ClientUpload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/clients/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/clients/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,sBAAsB,EAAE,kBAO3C;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,cAMlE;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,kBAM5E;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,gBAMxE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,YAMrE"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { MiLogger, Signer } from '@milaboratories/ts-helpers';
|
|
2
2
|
import { Timestamp } from '../../proto/google/protobuf/timestamp';
|
|
3
3
|
import { Dirent, Stats } from 'node:fs';
|
|
4
|
+
import { ImportFileHandleIndexData, ImportFileHandleUploadData } from '../types';
|
|
4
5
|
import * as sdk from '@milaboratories/pl-model-common';
|
|
5
6
|
/** A duck-typing interface for grpc results. */
|
|
6
7
|
export interface ListResponse {
|
|
7
8
|
items: ListItem[];
|
|
8
9
|
delimiter: string;
|
|
9
10
|
}
|
|
11
|
+
/** @deprecated */
|
|
10
12
|
export interface ListItem {
|
|
11
13
|
isDir: boolean;
|
|
12
14
|
name: string;
|
|
@@ -15,31 +17,24 @@ export interface ListItem {
|
|
|
15
17
|
size: bigint;
|
|
16
18
|
directory: string;
|
|
17
19
|
}
|
|
18
|
-
/**
|
|
20
|
+
/** @deprecated */
|
|
19
21
|
export declare function toLsEntries(info: {
|
|
20
22
|
storageName: string;
|
|
21
23
|
list: ListResponse;
|
|
22
24
|
signer: Signer;
|
|
23
25
|
remote: boolean;
|
|
24
26
|
}): sdk.ListFilesResult;
|
|
27
|
+
/** @deprecated */
|
|
25
28
|
export declare function toFileHandle(info: {
|
|
26
29
|
storageName: string;
|
|
27
30
|
item: ListItem;
|
|
28
31
|
signer: Signer;
|
|
29
32
|
remote: boolean;
|
|
30
33
|
}): sdk.ImportFileHandle;
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
pathSignature: string;
|
|
36
|
-
/** File size in bytes */
|
|
37
|
-
sizeBytes: string;
|
|
38
|
-
/** Modification time unix timestamp in seconds */
|
|
39
|
-
modificationTime: string;
|
|
40
|
-
};
|
|
41
|
-
export declare function createUploadHandle(localPath: string, signer: Signer, sizeBytes: bigint, modificationTimeSeconds: bigint): sdk.ImportFileHandleUpload;
|
|
42
|
-
export declare function fromFileHandle(handle: sdk.ImportFileHandle): any;
|
|
34
|
+
export declare function createIndexImportHandle(storageName: string, path: string): sdk.ImportFileHandleIndex;
|
|
35
|
+
export declare function createUploadImportHandle(localPath: string, signer: Signer, sizeBytes: bigint, modificationTimeSeconds: bigint): sdk.ImportFileHandleUpload;
|
|
36
|
+
export declare function parseUploadHandle(handle: sdk.ImportFileHandleUpload): ImportFileHandleUploadData;
|
|
37
|
+
export declare function parseIndexHandle(handle: sdk.ImportFileHandleIndex): ImportFileHandleIndexData;
|
|
43
38
|
export declare function toListItem(logger: MiLogger, info: {
|
|
44
39
|
directory: string;
|
|
45
40
|
fullName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls_list_entry.d.ts","sourceRoot":"","sources":["../../../src/drivers/helpers/ls_list_entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAExC,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"ls_list_entry.d.ts","sourceRoot":"","sources":["../../../src/drivers/helpers/ls_list_entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEjF,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,kBAAkB;AAClB,MAAM,WAAW,QAAQ;IACvB,KAA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,CAiBtB"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import { ResourceId, ResourceType } from '@milaboratories/pl-client';
|
|
2
2
|
import * as sdk from '@milaboratories/pl-model-common';
|
|
3
|
-
/**
|
|
4
|
-
* Converts local and remote storages to StorageEntries.
|
|
5
|
-
*/
|
|
6
|
-
export declare function toStorageEntry(locals: Record<string, string>, remotes: Record<string, ResourceId>): sdk.StorageEntry[];
|
|
7
3
|
export type StorageHandleData = RemoteStorageHandleData | LocalStorageHandleData;
|
|
8
4
|
/**
|
|
9
5
|
* Gets a storage handle and gives an underlying data from it.
|
|
10
6
|
*/
|
|
11
|
-
export declare function
|
|
7
|
+
export declare function parseStorageHandle(handle: sdk.StorageHandle): StorageHandleData;
|
|
12
8
|
export type LocalStorageHandleData = {
|
|
13
|
-
|
|
9
|
+
isRemote: false;
|
|
14
10
|
name: string;
|
|
15
|
-
|
|
11
|
+
rootPath: string;
|
|
16
12
|
};
|
|
17
13
|
export declare function isLocalStorageHandle(handle: sdk.StorageHandle): handle is sdk.StorageHandleLocal;
|
|
14
|
+
export declare function createLocalStorageHandle(name: string, path: string): sdk.StorageHandleLocal;
|
|
18
15
|
export type RemoteStorageHandleData = {
|
|
19
|
-
|
|
16
|
+
isRemote: true;
|
|
20
17
|
name: string;
|
|
21
18
|
id: ResourceId;
|
|
22
19
|
type: ResourceType;
|
|
23
20
|
};
|
|
24
21
|
export declare function isRemoteStorageHandle(handle: sdk.StorageHandle): handle is sdk.StorageHandleRemote;
|
|
22
|
+
export declare function createRemoteStorageHandle(name: string, rId: ResourceId): sdk.StorageHandleRemote;
|
|
25
23
|
//# sourceMappingURL=ls_storage_entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls_storage_entry.d.ts","sourceRoot":"","sources":["../../../src/drivers/helpers/ls_storage_entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"ls_storage_entry.d.ts","sourceRoot":"","sources":["../../../src/drivers/helpers/ls_storage_entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAsB,UAAU,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzF,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,sBAAsB,CAAC;AAEjF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,GAAG,iBAAiB,CAQ/E;AAMD,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,IAAI,GAAG,CAAC,kBAAkB,CAEhG;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,kBAAkB,CAE3F;AAmBD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,UAAU,CAAC;IACf,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAIF,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,GAAG,CAAC,aAAa,GACxB,MAAM,IAAI,GAAG,CAAC,mBAAmB,CAEnC;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,GAAG,GAAG,CAAC,mBAAmB,CAEhG"}
|
package/dist/drivers/ls.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PlClient } from '@milaboratories/pl-client';
|
|
2
2
|
import { MiLogger, Signer } from '@milaboratories/ts-helpers';
|
|
3
|
-
import {
|
|
3
|
+
import { LocalImportFileHandle, OpenDialogOps, OpenMultipleFilesResponse, OpenSingleFileResponse, TableRange } from '@milaboratories/pl-model-common';
|
|
4
|
+
import { LocalStorageProjection } from './types';
|
|
4
5
|
import * as sdk from '@milaboratories/pl-model-common';
|
|
5
6
|
/**
|
|
6
7
|
* Extends public and safe SDK's driver API with methods used internally in the middle
|
|
@@ -8,23 +9,50 @@ import * as sdk from '@milaboratories/pl-model-common';
|
|
|
8
9
|
*/
|
|
9
10
|
export interface InternalLsDriver extends sdk.LsDriver {
|
|
10
11
|
/**
|
|
11
|
-
* Given local path, generates well
|
|
12
|
+
* Given local path, generates well-structured and signed upload handle.
|
|
12
13
|
* To be used in tests and in implementation of the native file selection UI API.
|
|
13
14
|
* */
|
|
14
|
-
getLocalFileHandle(localPath: string): Promise<sdk.
|
|
15
|
+
getLocalFileHandle(localPath: string): Promise<sdk.LocalImportFileHandle>;
|
|
15
16
|
}
|
|
17
|
+
export type OpenFileDialogCallback = (multipleFiles: boolean, ops?: OpenDialogOps) => Promise<undefined | string[]>;
|
|
18
|
+
/** Allows to add parts of local FS as virtual storages, presenting homogeneous API to UI */
|
|
19
|
+
export type VirtualLocalStorageSpec = {
|
|
20
|
+
/** Virtual storage ID, must not intersect with other storage ids */
|
|
21
|
+
readonly name: string;
|
|
22
|
+
/** Local path to "chroot" the API in */
|
|
23
|
+
readonly root: string;
|
|
24
|
+
/** Used as hint to UI controls to, set as initial path during browsing */
|
|
25
|
+
readonly initialPath: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function DefaultVirtualLocalStorages(): VirtualLocalStorageSpec[];
|
|
16
28
|
export declare class LsDriver implements InternalLsDriver {
|
|
17
29
|
private readonly logger;
|
|
18
|
-
private readonly
|
|
19
|
-
|
|
30
|
+
private readonly lsClient;
|
|
31
|
+
/** Pl storage id, to resource id. The resource id can be used to make LS GRPC calls to. */
|
|
32
|
+
private readonly storageIdToResourceId;
|
|
20
33
|
private readonly signer;
|
|
21
|
-
|
|
22
|
-
private
|
|
23
|
-
|
|
24
|
-
|
|
34
|
+
/** Virtual storages by name */
|
|
35
|
+
private readonly virtualStoragesMap;
|
|
36
|
+
/** Local projections by storageId */
|
|
37
|
+
private readonly localProjectionsMap;
|
|
38
|
+
private readonly openFileDialogCallback;
|
|
39
|
+
private constructor();
|
|
40
|
+
getLocalFileContent(file: LocalImportFileHandle, range?: TableRange): Promise<Uint8Array>;
|
|
41
|
+
getLocalFileSize(file: LocalImportFileHandle): Promise<number>;
|
|
42
|
+
showOpenMultipleFilesDialog(ops?: OpenDialogOps): Promise<OpenMultipleFilesResponse>;
|
|
43
|
+
showOpenSingleFileDialog(ops?: OpenDialogOps): Promise<OpenSingleFileResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Resolves local handle to local file path.
|
|
46
|
+
*
|
|
47
|
+
* @param handle handle to be resolved
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
private tryResolveLocalFileHandle;
|
|
51
|
+
getLocalFileHandle(localPath: string): Promise<sdk.ImportFileHandle & LocalImportFileHandle>;
|
|
25
52
|
getStorageList(): Promise<sdk.StorageEntry[]>;
|
|
26
|
-
listFiles(storageHandle: sdk.StorageHandle,
|
|
27
|
-
|
|
28
|
-
|
|
53
|
+
listFiles(storageHandle: sdk.StorageHandle, fullPath: string): Promise<sdk.ListFilesResult>;
|
|
54
|
+
static init(logger: MiLogger, client: PlClient, signer: Signer, virtualStorages: VirtualLocalStorageSpec[],
|
|
55
|
+
/** Pl storages available locally */
|
|
56
|
+
localProjections: LocalStorageProjection[], openFileDialogCallback: OpenFileDialogCallback): Promise<LsDriver>;
|
|
29
57
|
}
|
|
30
58
|
//# sourceMappingURL=ls.d.ts.map
|
package/dist/drivers/ls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../src/drivers/ls.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ls.d.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;IACnC,qCAAqC;IACrC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IAVzC,OAAO;IAaM,mBAAmB,CAC9B,IAAI,EAAE,qBAAqB,EAC3B,KAAK,CAAC,EAAE,UAAU,GACjB,OAAO,CAAC,UAAU,CAAC;IAMT,gBAAgB,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;IAM9D,2BAA2B,CACtC,GAAG,CAAC,EAAE,aAAa,GAClB,OAAO,CAAC,yBAAyB,CAAC;IAQxB,wBAAwB,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAQ3F;;;;;OAKG;YACW,yBAAyB;IA0B1B,kBAAkB,CAC7B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,GAAG,CAAC,gBAAgB,GAAG,qBAAqB,CAAC;IA+B3C,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IAe7C,SAAS,CACpB,aAAa,EAAE,GAAG,CAAC,aAAa,EAChC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;WA0CX,IAAI,CACtB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,uBAAuB,EAAE;IAC1C,oCAAoC;IACpC,gBAAgB,EAAE,sBAAsB,EAAE,EAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,OAAO,CAAC,QAAQ,CAAC;CA8BrB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ImportFileHandleUploadData: z.ZodObject<{
|
|
3
|
+
/** Local file path, to take data for upload */
|
|
4
|
+
localPath: z.ZodString;
|
|
5
|
+
/** Path signature, to check this data was generated by us */
|
|
6
|
+
pathSignature: z.ZodString;
|
|
7
|
+
/** File size in bytes */
|
|
8
|
+
sizeBytes: z.ZodString;
|
|
9
|
+
/** Modification time unix timestamp in seconds */
|
|
10
|
+
modificationTime: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
localPath: string;
|
|
13
|
+
pathSignature: string;
|
|
14
|
+
sizeBytes: string;
|
|
15
|
+
modificationTime: string;
|
|
16
|
+
}, {
|
|
17
|
+
localPath: string;
|
|
18
|
+
pathSignature: string;
|
|
19
|
+
sizeBytes: string;
|
|
20
|
+
modificationTime: string;
|
|
21
|
+
}>;
|
|
22
|
+
export type ImportFileHandleUploadData = z.infer<typeof ImportFileHandleUploadData>;
|
|
23
|
+
export declare const ImportFileHandleIndexData: z.ZodObject<{
|
|
24
|
+
/** Pl storage id */
|
|
25
|
+
storageId: z.ZodString;
|
|
26
|
+
/** Path inside storage */
|
|
27
|
+
path: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
path: string;
|
|
30
|
+
storageId: string;
|
|
31
|
+
}, {
|
|
32
|
+
path: string;
|
|
33
|
+
storageId: string;
|
|
34
|
+
}>;
|
|
35
|
+
export type ImportFileHandleIndexData = z.infer<typeof ImportFileHandleIndexData>;
|
|
36
|
+
export declare const ImportFileHandleData: z.ZodUnion<[z.ZodObject<{
|
|
37
|
+
/** Local file path, to take data for upload */
|
|
38
|
+
localPath: z.ZodString;
|
|
39
|
+
/** Path signature, to check this data was generated by us */
|
|
40
|
+
pathSignature: z.ZodString;
|
|
41
|
+
/** File size in bytes */
|
|
42
|
+
sizeBytes: z.ZodString;
|
|
43
|
+
/** Modification time unix timestamp in seconds */
|
|
44
|
+
modificationTime: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
localPath: string;
|
|
47
|
+
pathSignature: string;
|
|
48
|
+
sizeBytes: string;
|
|
49
|
+
modificationTime: string;
|
|
50
|
+
}, {
|
|
51
|
+
localPath: string;
|
|
52
|
+
pathSignature: string;
|
|
53
|
+
sizeBytes: string;
|
|
54
|
+
modificationTime: string;
|
|
55
|
+
}>, z.ZodObject<{
|
|
56
|
+
/** Pl storage id */
|
|
57
|
+
storageId: z.ZodString;
|
|
58
|
+
/** Path inside storage */
|
|
59
|
+
path: z.ZodString;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
path: string;
|
|
62
|
+
storageId: string;
|
|
63
|
+
}, {
|
|
64
|
+
path: string;
|
|
65
|
+
storageId: string;
|
|
66
|
+
}>]>;
|
|
67
|
+
export type ImportFileHandleData = z.infer<typeof ImportFileHandleData>;
|
|
68
|
+
/** Defines which storages from pl are available via local paths */
|
|
69
|
+
export type LocalStorageProjection = {
|
|
70
|
+
/** Pl storage id */
|
|
71
|
+
readonly storageId: string;
|
|
72
|
+
/**
|
|
73
|
+
* Local path, the storage is mounted at.
|
|
74
|
+
*
|
|
75
|
+
* Empty string means that this storage accepts absolute paths, and operates inside the same OS.
|
|
76
|
+
* This matches the behaviour how pl interprets FS storage config.
|
|
77
|
+
* */
|
|
78
|
+
readonly localPath: string;
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/drivers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;IACrC,+CAA+C;;IAE/C,6DAA6D;;IAE7D,yBAAyB;;IAEzB,kDAAkD;;;;;;;;;;;;EAElD,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF,eAAO,MAAM,yBAAyB;IACpC,oBAAoB;;IAEpB,0BAA0B;;;;;;;;EAE1B,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,oBAAoB;IAnB/B,+CAA+C;;IAE/C,6DAA6D;;IAE7D,yBAAyB;;IAEzB,kDAAkD;;;;;;;;;;;;;IAMlD,oBAAoB;;IAEpB,0BAA0B;;;;;;;;IAQ1B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,mEAAmE;AACnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,oBAAoB;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;;;SAKK;IACL,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
package/dist/drivers/upload.d.ts
CHANGED
|
@@ -2,43 +2,37 @@ import { ComputableCtx, Computable } from '@milaboratories/computable';
|
|
|
2
2
|
import { MiLogger, Signer } from '@milaboratories/ts-helpers';
|
|
3
3
|
import { ClientProgress } from '../clients/progress';
|
|
4
4
|
import { ClientUpload } from '../clients/upload';
|
|
5
|
-
import { InferSnapshot, PlTreeEntry, ResourceSnapshotSchema } from '@milaboratories/pl-tree';
|
|
5
|
+
import { InferSnapshot, PlTreeEntry, PlTreeEntryAccessor, PlTreeNodeAccessor, ResourceSnapshotSchema } from '@milaboratories/pl-tree';
|
|
6
6
|
import { PollingOps } from './helpers/polling_ops';
|
|
7
|
-
import {
|
|
7
|
+
import { ZodObject, ZodString, ZodTypeAny } from 'zod';
|
|
8
8
|
import * as sdk from '@milaboratories/pl-model-common';
|
|
9
9
|
/** Options from BlobUpload resource that have to be passed to getProgress. */
|
|
10
|
-
declare const UploadOptsSchema: z.ZodObject<{
|
|
11
|
-
localPath: z.ZodString;
|
|
12
|
-
pathSignature: z.ZodString;
|
|
13
|
-
modificationTime: z.ZodString;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
localPath: string;
|
|
16
|
-
pathSignature: string;
|
|
17
|
-
modificationTime: string;
|
|
18
|
-
}, {
|
|
19
|
-
localPath: string;
|
|
20
|
-
pathSignature: string;
|
|
21
|
-
modificationTime: string;
|
|
22
|
-
}>;
|
|
23
|
-
export type UploadOpts = z.infer<typeof UploadOptsSchema>;
|
|
24
10
|
/** ResourceSnapshot that can be passed to GetProgressID */
|
|
25
|
-
export declare const UploadResourceSnapshot: ResourceSnapshotSchema<
|
|
26
|
-
localPath:
|
|
27
|
-
pathSignature:
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
export declare const UploadResourceSnapshot: ResourceSnapshotSchema<ZodObject<{
|
|
12
|
+
localPath: ZodString;
|
|
13
|
+
pathSignature: ZodString;
|
|
14
|
+
sizeBytes: ZodString;
|
|
15
|
+
modificationTime: ZodString;
|
|
16
|
+
}, "strip", ZodTypeAny, {
|
|
30
17
|
localPath: string;
|
|
31
18
|
pathSignature: string;
|
|
19
|
+
sizeBytes: string;
|
|
32
20
|
modificationTime: string;
|
|
33
21
|
}, {
|
|
34
22
|
localPath: string;
|
|
35
23
|
pathSignature: string;
|
|
24
|
+
sizeBytes: string;
|
|
36
25
|
modificationTime: string;
|
|
37
|
-
}>,
|
|
26
|
+
}>, {
|
|
38
27
|
readonly blob: false;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
export declare const IndexResourceSnapshot: ResourceSnapshotSchema<undefined, {
|
|
39
30
|
readonly incarnation: false;
|
|
40
31
|
}, undefined>;
|
|
41
32
|
export type UploadResourceSnapshot = InferSnapshot<typeof UploadResourceSnapshot>;
|
|
33
|
+
export type IndexResourceSnapshot = InferSnapshot<typeof IndexResourceSnapshot>;
|
|
34
|
+
export type ImportResourceSnapshot = UploadResourceSnapshot | IndexResourceSnapshot;
|
|
35
|
+
export declare function makeBlobImportSnapshot(entryOrAccessor: PlTreeEntry | PlTreeNodeAccessor | PlTreeEntryAccessor, ctx: ComputableCtx): ImportResourceSnapshot;
|
|
42
36
|
export type UploadDriverOps = PollingOps & {
|
|
43
37
|
/** How much parts of a file can be multipart-uploaded to S3 at once. */
|
|
44
38
|
nConcurrentPartUploads: number;
|
|
@@ -62,8 +56,8 @@ export declare class UploadDriver {
|
|
|
62
56
|
private readonly hooks;
|
|
63
57
|
constructor(logger: MiLogger, signer: Signer, clientBlob: ClientUpload, clientProgress: ClientProgress, opts?: UploadDriverOps);
|
|
64
58
|
/** Returns a progress id and schedules an upload task if it's necessary. */
|
|
65
|
-
getProgressId(
|
|
66
|
-
getProgressId(
|
|
59
|
+
getProgressId(handleResource: ImportResourceSnapshot | PlTreeEntry): Computable<sdk.ImportProgress>;
|
|
60
|
+
getProgressId(handleResource: ImportResourceSnapshot | PlTreeEntry, ctx: ComputableCtx): sdk.ImportProgress;
|
|
67
61
|
private getProgressIdNoCtx;
|
|
68
62
|
/** Decrement counters for the file and remove an uploading if counter == 0. */
|
|
69
63
|
private release;
|
|
@@ -82,6 +76,4 @@ export declare class UploadDriver {
|
|
|
82
76
|
private mainLoop;
|
|
83
77
|
private getAllNotDoneProgresses;
|
|
84
78
|
}
|
|
85
|
-
export declare function importToUploadOpts(res: UploadResourceSnapshot): UploadOpts;
|
|
86
|
-
export {};
|
|
87
79
|
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/drivers/upload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/drivers/upload.ts"],"names":[],"mappings":";AAEA,OAAO,EAGL,aAAa,EACb,UAAU,EAEX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,QAAQ,EAIR,MAAM,EACP,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAkB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAiD,MAAM,mBAAmB,CAAC;AAChG,OAAO,EACL,aAAa,EAIb,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAEnB,MAAM,yBAA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AW,GACnD,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;IACjC,aAAa,CACX,cAAc,EAAE,sBAAsB,GAAG,WAAW,EACpD,GAAG,EAAE,aAAa,GACjB,GAAG,CAAC,cAAc;IAuBrB,OAAO,CAAC,kBAAkB;IAoC1B,+EAA+E;YACjE,OAAO;IAQrB,iDAAiD;IACpC,UAAU;IAIvB,OAAO,CAAC,oBAAoB,CAA0B;IAEtD,OAAO,CAAC,mBAAmB;IAI3B,2BAA2B;IAC3B,OAAO,CAAC,aAAa;IAKrB,2BAA2B;IAC3B,OAAO,CAAC,YAAY;IAIpB,yDAAyD;IACzD,OAAO,CAAC,WAAW,CAAS;IAC5B,iCAAiC;IACjC,OAAO,CAAC,WAAW,CAAwC;YAE7C,QAAQ;IAwBtB,OAAO,CAAC,uBAAuB;CAKhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/helpers/validate.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAGlD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,4 +12,6 @@ export * from './drivers/download_url';
|
|
|
12
12
|
export * from './drivers/ls';
|
|
13
13
|
export * from './drivers/helpers/helpers';
|
|
14
14
|
export * from './drivers/helpers/polling_ops';
|
|
15
|
+
export * from './drivers/types';
|
|
16
|
+
export { validateAbsolute } from './helpers/validate';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAElC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAElC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|