@fnndsc/cumin 3.30.5 → 3.31.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/cache/checkpointWatch.d.ts +36 -0
- package/dist/cache/checkpointWatch.js +83 -0
- package/dist/cache/checkpointWatch.js.map +1 -0
- package/dist/cache/index.d.ts +1 -1
- package/dist/cache/index.js +4 -1
- package/dist/cache/index.js.map +1 -1
- package/dist/cache/listCache.d.ts +54 -2
- package/dist/cache/listCache.js +120 -24
- package/dist/cache/listCache.js.map +1 -1
- package/dist/cache/listCheckpoint.d.ts +5 -8
- package/dist/cache/listCheckpoint.js +17 -28
- package/dist/cache/listCheckpoint.js.map +1 -1
- package/dist/cache/listingInvalidation.js +11 -6
- package/dist/cache/listingInvalidation.js.map +1 -1
- package/dist/cache/procCache.d.ts +11 -0
- package/dist/cache/procCache.js +26 -1
- package/dist/cache/procCache.js.map +1 -1
- package/dist/cache/procCheckpoint.d.ts +11 -6
- package/dist/cache/procCheckpoint.js +280 -86
- package/dist/cache/procCheckpoint.js.map +1 -1
- package/dist/cache/queryIndex.d.ts +11 -0
- package/dist/cache/queryIndex.js +38 -2
- package/dist/cache/queryIndex.js.map +1 -1
- package/dist/cache/queryIndexCheckpoint.d.ts +32 -0
- package/dist/cache/queryIndexCheckpoint.js +180 -30
- package/dist/cache/queryIndexCheckpoint.js.map +1 -1
- package/dist/chrisapi/adapter.d.ts +266 -37
- package/dist/chrisapi/adapter.js +577 -116
- package/dist/chrisapi/adapter.js.map +1 -1
- package/dist/chrisapi/contract.d.ts +20 -20
- package/dist/chrisapi/contract.js +213 -60
- package/dist/chrisapi/contract.js.map +1 -1
- package/dist/chrisapi/cubeRequest.d.ts +198 -0
- package/dist/chrisapi/cubeRequest.js +345 -0
- package/dist/chrisapi/cubeRequest.js.map +1 -0
- package/dist/chrisapi/shape.d.ts +186 -0
- package/dist/chrisapi/shape.js +274 -0
- package/dist/chrisapi/shape.js.map +1 -0
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/compute/computeResources.d.ts +3 -0
- package/dist/compute/computeResources.js +5 -3
- package/dist/compute/computeResources.js.map +1 -1
- package/dist/config/config.d.ts +14 -0
- package/dist/config/config.js +6 -3
- package/dist/config/config.js.map +1 -1
- package/dist/connect/chrisConnection.d.ts +116 -6
- package/dist/connect/chrisConnection.js +418 -74
- package/dist/connect/chrisConnection.js.map +1 -1
- package/dist/connect/identityEpoch.d.ts +263 -0
- package/dist/connect/identityEpoch.js +414 -0
- package/dist/connect/identityEpoch.js.map +1 -0
- package/dist/connect/loginFailure.js +39 -22
- package/dist/connect/loginFailure.js.map +1 -1
- package/dist/context/chrisContext.js +36 -30
- package/dist/context/chrisContext.js.map +1 -1
- package/dist/error/errorStack.d.ts +1 -1
- package/dist/error/errorStack.js +1 -2
- package/dist/error/errorStack.js.map +1 -1
- package/dist/feeds/chrisAccess.d.ts +7 -2
- package/dist/feeds/chrisAccess.js +20 -7
- package/dist/feeds/chrisAccess.js.map +1 -1
- package/dist/feeds/chrisFeed.d.ts +8 -10
- package/dist/feeds/chrisFeed.js +27 -57
- package/dist/feeds/chrisFeed.js.map +1 -1
- package/dist/feeds/chrisTags.d.ts +1 -1
- package/dist/feeds/chrisTags.js +66 -24
- package/dist/feeds/chrisTags.js.map +1 -1
- package/dist/filebrowser/chrisFileBrowser.d.ts +0 -1
- package/dist/filebrowser/chrisFileBrowser.js +3 -5
- package/dist/filebrowser/chrisFileBrowser.js.map +1 -1
- package/dist/filebrowser/chrisFiles.d.ts +0 -1
- package/dist/filebrowser/chrisFiles.js +3 -4
- package/dist/filebrowser/chrisFiles.js.map +1 -1
- package/dist/filebrowser/chrisPACS.d.ts +4 -4
- package/dist/filebrowser/chrisPACS.js +10 -33
- package/dist/filebrowser/chrisPACS.js.map +1 -1
- package/dist/filebrowser/chrisPipeline.js +10 -45
- package/dist/filebrowser/chrisPipeline.js.map +1 -1
- package/dist/groups/chrisGroups.d.ts +3 -0
- package/dist/groups/chrisGroups.js +20 -8
- package/dist/groups/chrisGroups.js.map +1 -1
- package/dist/index.d.ts +7 -8
- package/dist/index.js +18 -28
- package/dist/index.js.map +1 -1
- package/dist/io/chrisIO.d.ts +81 -42
- package/dist/io/chrisIO.js +176 -325
- package/dist/io/chrisIO.js.map +1 -1
- package/dist/io/holderClient.d.ts +248 -0
- package/dist/io/holderClient.js +289 -0
- package/dist/io/holderClient.js.map +1 -0
- package/dist/io/holderFolder.d.ts +151 -0
- package/dist/io/holderFolder.js +311 -0
- package/dist/io/holderFolder.js.map +1 -0
- package/dist/io/holderIO.d.ts +258 -0
- package/dist/io/holderIO.js +557 -0
- package/dist/io/holderIO.js.map +1 -0
- package/dist/io/holderRequest.d.ts +299 -0
- package/dist/io/holderRequest.js +447 -0
- package/dist/io/holderRequest.js.map +1 -0
- package/dist/io/holderUpload.d.ts +62 -0
- package/dist/io/holderUpload.js +81 -0
- package/dist/io/holderUpload.js.map +1 -0
- package/dist/io/io.d.ts +12 -0
- package/dist/io/io.js.map +1 -1
- package/dist/io/localUpload.d.ts +59 -0
- package/dist/io/localUpload.js +150 -0
- package/dist/io/localUpload.js.map +1 -0
- package/dist/io/node_io.d.ts +16 -0
- package/dist/io/node_io.js +72 -0
- package/dist/io/node_io.js.map +1 -1
- package/dist/io/streamWatch.js +2 -2
- package/dist/io/streamWatch.js.map +1 -1
- package/dist/io/transferPool.d.ts +150 -0
- package/dist/io/transferPool.js +196 -0
- package/dist/io/transferPool.js.map +1 -0
- package/dist/pacs/chrisPACS.d.ts +3 -9
- package/dist/pacs/chrisPACS.js +102 -61
- package/dist/pacs/chrisPACS.js.map +1 -1
- package/dist/pacs/queryIndexSweep.d.ts +0 -9
- package/dist/pacs/queryIndexSweep.js +45 -41
- package/dist/pacs/queryIndexSweep.js.map +1 -1
- package/dist/path/chrisPath.d.ts +8 -3
- package/dist/path/chrisPath.js +10 -9
- package/dist/path/chrisPath.js.map +1 -1
- package/dist/pipelines/chrisPipeline.d.ts +28 -5
- package/dist/pipelines/chrisPipeline.js +270 -94
- package/dist/pipelines/chrisPipeline.js.map +1 -1
- package/dist/pipelines/pipelineMemo.d.ts +0 -16
- package/dist/pipelines/pipelineMemo.js +0 -27
- package/dist/pipelines/pipelineMemo.js.map +1 -1
- package/dist/plugins/chrisPlugins.d.ts +9 -5
- package/dist/plugins/chrisPlugins.js +97 -58
- package/dist/plugins/chrisPlugins.js.map +1 -1
- package/dist/resources/chrisObjContext.d.ts +7 -11
- package/dist/resources/chrisObjContext.js +7 -42
- package/dist/resources/chrisObjContext.js.map +1 -1
- package/dist/resources/chrisResources.d.ts +186 -74
- package/dist/resources/chrisResources.js +421 -117
- package/dist/resources/chrisResources.js.map +1 -1
- package/dist/resources/resourceShapes.d.ts +109 -0
- package/dist/resources/resourceShapes.js +22 -0
- package/dist/resources/resourceShapes.js.map +1 -0
- package/dist/users/chrisUsers.d.ts +4 -1
- package/dist/users/chrisUsers.js +6 -2
- package/dist/users/chrisUsers.js.map +1 -1
- package/dist/utils/keypair.js +21 -10
- package/dist/utils/keypair.js.map +1 -1
- package/package.json +15 -3
- package/dist/activities/chrisActivity.d.ts +0 -19
- package/dist/activities/chrisActivity.js +0 -29
- package/dist/activities/chrisActivity.js.map +0 -1
- package/dist/jobs/chrisJob.d.ts +0 -43
- package/dist/jobs/chrisJob.js +0 -174
- package/dist/jobs/chrisJob.js.map +0 -1
- package/dist/jobs/index.d.ts +0 -7
- package/dist/jobs/index.js +0 -24
- package/dist/jobs/index.js.map +0 -1
- package/dist/jobs/jobMonitor.d.ts +0 -46
- package/dist/jobs/jobMonitor.js +0 -102
- package/dist/jobs/jobMonitor.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chrisGroups.js","sourceRoot":"","sources":["../../src/groups/chrisGroups.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"chrisGroups.js","sourceRoot":"","sources":["../../src/groups/chrisGroups.ts"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G;AACI,KAAK,UAAU,mBAAmB,CAAC,OAAe;IACvD,OAAO,IAAI,eAAe,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AACvD,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,aAAa,CACjC,OAAe,EACf,QAAgB;IAEhB,OAAO,IAAI,eAAe,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,gBAAgB,CAAC,OAAe,EAAE,QAAgB;IACtE,OAAO,IAAI,eAAe,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./feeds/chrisFeed";
|
|
|
15
15
|
export * from "./feeds/chrisTags";
|
|
16
16
|
export * from "./feeds/chrisAccess";
|
|
17
17
|
export * from "./connect/chrisConnection";
|
|
18
|
+
export * from "./connect/identityEpoch";
|
|
18
19
|
export * from "./connect/loginFailure";
|
|
19
20
|
export * from "./context/chrisContext";
|
|
20
21
|
export * from "./plugins/chrisPlugins";
|
|
@@ -33,7 +34,11 @@ export * from "./filebrowser/chrisFiles";
|
|
|
33
34
|
export * from "./filebrowser/chrisPACS";
|
|
34
35
|
export * from "./filebrowser/chrisPipeline";
|
|
35
36
|
export * from "./io/chrisIO";
|
|
37
|
+
export { itemHref_matches, itemHref_refusal, itemUrl_build, type ActGuard, type DeleteAnswer, type StoreHolder, type StoreKind } from "./io/holderIO";
|
|
38
|
+
export { HolderClient } from "./io/holderClient";
|
|
39
|
+
export { type FolderAsset, type FolderOpening, type FolderPosted, type FreshFolder } from "./io/holderFolder";
|
|
36
40
|
export * from "./io/streamWatch";
|
|
41
|
+
export * from "./io/transferPool";
|
|
37
42
|
export * from "./net/requestLedger";
|
|
38
43
|
export * from "./io/io";
|
|
39
44
|
export * from "./io/node_io";
|
|
@@ -52,7 +57,8 @@ export * from "./groups/chrisGroups";
|
|
|
52
57
|
export * from "./pluginmetas/chrisPluginMetas";
|
|
53
58
|
export * from "./workflows/chrisWorkflows";
|
|
54
59
|
export * from "./output/runtimeOutput";
|
|
55
|
-
export { listData_get, itemData_get, items_get, client_adminPluginUpload, type PluginAdminSource } from "./chrisapi/adapter";
|
|
60
|
+
export { listData_get, itemData_get, items_get, client_adminPluginUpload, authToken_get, apiRoot_parse, type PluginAdminSource } from "./chrisapi/adapter";
|
|
61
|
+
export { shape_build, shape_object, shape_nullable, rows_check, ShapeError, type Shape, type ShapeField, type FieldKind, type FieldSpec, type RowsOf } from "./chrisapi/shape";
|
|
56
62
|
export { pace_get, pace_note, pace_reset, pace_isPageMethod, PACE_WINDOW, type CubePace } from "./chrisapi/pace";
|
|
57
63
|
export { feedsPage_get, publicFeedsPage_get, pluginInstancesPage_get, pluginInstance_get, plugin_find, pluginsPage_get, pluginParameters_drain, pipeline_get, pipelineSourceFilesPage_get, pipelineSourceFiles_drain, downloadToken_create, listPages_walk, listPages_walkWindowed, type WindowedPageWalkOptions, listPages_drain, collectionPage_wrap, } from "./chrisapi/contract";
|
|
58
64
|
export type { ListPage, PageWalkOptions, PageWalkStep, FeedData, PluginInstanceData, InstanceParameterData, DownloadToken, PluginInstanceHandle, PipelineHandle, PluginPipingItem, PluginPipingData, PipingDefaultParameterData, PipelineSourceFileData, PluginParameterData, ComputeResourceData, PluginHandle, PluginData, PluginFound, } from "./chrisapi/contract";
|
|
@@ -76,10 +82,3 @@ export interface ChrisPluginSummary {
|
|
|
76
82
|
id?: number;
|
|
77
83
|
name?: string;
|
|
78
84
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Gets the ChRIS version from the given URL.
|
|
81
|
-
*
|
|
82
|
-
* @param url - The URL of the ChRIS instance.
|
|
83
|
-
* @returns A Promise resolving to the version string.
|
|
84
|
-
*/
|
|
85
|
-
export declare function chrisVersion_get(url: string): Promise<string>;
|
package/dist/index.js
CHANGED
|
@@ -24,8 +24,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24
24
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.collectionPage_wrap = exports.listPages_drain = exports.listPages_walkWindowed = exports.listPages_walk = exports.downloadToken_create = exports.pipelineSourceFiles_drain = exports.pipelineSourceFilesPage_get = exports.pipeline_get = exports.pluginParameters_drain = exports.pluginsPage_get = exports.plugin_find = exports.pluginInstance_get = exports.pluginInstancesPage_get = exports.publicFeedsPage_get = exports.feedsPage_get = exports.PACE_WINDOW = exports.pace_isPageMethod = exports.pace_reset = exports.pace_note = exports.pace_get = exports.client_adminPluginUpload = exports.items_get = exports.itemData_get = exports.listData_get = void 0;
|
|
28
|
-
exports.chrisVersion_get = chrisVersion_get;
|
|
27
|
+
exports.collectionPage_wrap = exports.listPages_drain = exports.listPages_walkWindowed = exports.listPages_walk = exports.downloadToken_create = exports.pipelineSourceFiles_drain = exports.pipelineSourceFilesPage_get = exports.pipeline_get = exports.pluginParameters_drain = exports.pluginsPage_get = exports.plugin_find = exports.pluginInstance_get = exports.pluginInstancesPage_get = exports.publicFeedsPage_get = exports.feedsPage_get = exports.PACE_WINDOW = exports.pace_isPageMethod = exports.pace_reset = exports.pace_note = exports.pace_get = exports.ShapeError = exports.rows_check = exports.shape_nullable = exports.shape_object = exports.shape_build = exports.apiRoot_parse = exports.authToken_get = exports.client_adminPluginUpload = exports.items_get = exports.itemData_get = exports.listData_get = exports.HolderClient = exports.itemUrl_build = exports.itemHref_refusal = exports.itemHref_matches = void 0;
|
|
29
28
|
__exportStar(require("./"), exports);
|
|
30
29
|
__exportStar(require("./error/errorStack"), exports);
|
|
31
30
|
__exportStar(require("./config/config"), exports);
|
|
@@ -33,6 +32,7 @@ __exportStar(require("./feeds/chrisFeed"), exports);
|
|
|
33
32
|
__exportStar(require("./feeds/chrisTags"), exports);
|
|
34
33
|
__exportStar(require("./feeds/chrisAccess"), exports);
|
|
35
34
|
__exportStar(require("./connect/chrisConnection"), exports);
|
|
35
|
+
__exportStar(require("./connect/identityEpoch"), exports);
|
|
36
36
|
__exportStar(require("./connect/loginFailure"), exports);
|
|
37
37
|
__exportStar(require("./context/chrisContext"), exports);
|
|
38
38
|
__exportStar(require("./plugins/chrisPlugins"), exports);
|
|
@@ -51,7 +51,14 @@ __exportStar(require("./filebrowser/chrisFiles"), exports);
|
|
|
51
51
|
__exportStar(require("./filebrowser/chrisPACS"), exports);
|
|
52
52
|
__exportStar(require("./filebrowser/chrisPipeline"), exports);
|
|
53
53
|
__exportStar(require("./io/chrisIO"), exports);
|
|
54
|
+
var holderIO_1 = require("./io/holderIO");
|
|
55
|
+
Object.defineProperty(exports, "itemHref_matches", { enumerable: true, get: function () { return holderIO_1.itemHref_matches; } });
|
|
56
|
+
Object.defineProperty(exports, "itemHref_refusal", { enumerable: true, get: function () { return holderIO_1.itemHref_refusal; } });
|
|
57
|
+
Object.defineProperty(exports, "itemUrl_build", { enumerable: true, get: function () { return holderIO_1.itemUrl_build; } });
|
|
58
|
+
var holderClient_1 = require("./io/holderClient");
|
|
59
|
+
Object.defineProperty(exports, "HolderClient", { enumerable: true, get: function () { return holderClient_1.HolderClient; } });
|
|
54
60
|
__exportStar(require("./io/streamWatch"), exports);
|
|
61
|
+
__exportStar(require("./io/transferPool"), exports);
|
|
55
62
|
__exportStar(require("./net/requestLedger"), exports);
|
|
56
63
|
__exportStar(require("./io/io"), exports);
|
|
57
64
|
__exportStar(require("./io/node_io"), exports);
|
|
@@ -76,6 +83,15 @@ Object.defineProperty(exports, "listData_get", { enumerable: true, get: function
|
|
|
76
83
|
Object.defineProperty(exports, "itemData_get", { enumerable: true, get: function () { return adapter_1.itemData_get; } });
|
|
77
84
|
Object.defineProperty(exports, "items_get", { enumerable: true, get: function () { return adapter_1.items_get; } });
|
|
78
85
|
Object.defineProperty(exports, "client_adminPluginUpload", { enumerable: true, get: function () { return adapter_1.client_adminPluginUpload; } });
|
|
86
|
+
Object.defineProperty(exports, "authToken_get", { enumerable: true, get: function () { return adapter_1.authToken_get; } });
|
|
87
|
+
Object.defineProperty(exports, "apiRoot_parse", { enumerable: true, get: function () { return adapter_1.apiRoot_parse; } });
|
|
88
|
+
// What an answer must look like before it is used as its type: each of the three readers above takes one.
|
|
89
|
+
var shape_1 = require("./chrisapi/shape");
|
|
90
|
+
Object.defineProperty(exports, "shape_build", { enumerable: true, get: function () { return shape_1.shape_build; } });
|
|
91
|
+
Object.defineProperty(exports, "shape_object", { enumerable: true, get: function () { return shape_1.shape_object; } });
|
|
92
|
+
Object.defineProperty(exports, "shape_nullable", { enumerable: true, get: function () { return shape_1.shape_nullable; } });
|
|
93
|
+
Object.defineProperty(exports, "rows_check", { enumerable: true, get: function () { return shape_1.rows_check; } });
|
|
94
|
+
Object.defineProperty(exports, "ShapeError", { enumerable: true, get: function () { return shape_1.ShapeError; } });
|
|
79
95
|
var pace_1 = require("./chrisapi/pace");
|
|
80
96
|
Object.defineProperty(exports, "pace_get", { enumerable: true, get: function () { return pace_1.pace_get; } });
|
|
81
97
|
Object.defineProperty(exports, "pace_note", { enumerable: true, get: function () { return pace_1.pace_note; } });
|
|
@@ -100,30 +116,4 @@ Object.defineProperty(exports, "listPages_walk", { enumerable: true, get: functi
|
|
|
100
116
|
Object.defineProperty(exports, "listPages_walkWindowed", { enumerable: true, get: function () { return contract_1.listPages_walkWindowed; } });
|
|
101
117
|
Object.defineProperty(exports, "listPages_drain", { enumerable: true, get: function () { return contract_1.listPages_drain; } });
|
|
102
118
|
Object.defineProperty(exports, "collectionPage_wrap", { enumerable: true, get: function () { return contract_1.collectionPage_wrap; } });
|
|
103
|
-
/**
|
|
104
|
-
* Gets the ChRIS version from the given URL.
|
|
105
|
-
*
|
|
106
|
-
* @param url - The URL of the ChRIS instance.
|
|
107
|
-
* @returns A Promise resolving to the version string.
|
|
108
|
-
*/
|
|
109
|
-
async function chrisVersion_get(url) {
|
|
110
|
-
const version = "1.0.0";
|
|
111
|
-
// const client = Client.getClient(url);
|
|
112
|
-
// const version = await client.getVersion();
|
|
113
|
-
return version;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Main entry point for the module when run directly.
|
|
117
|
-
*/
|
|
118
|
-
async function main() {
|
|
119
|
-
console.log("In main...");
|
|
120
|
-
}
|
|
121
|
-
// Only run the main function if this file is being run directly
|
|
122
|
-
// Use CommonJS check for main module
|
|
123
|
-
if (require.main === module) {
|
|
124
|
-
main().catch((error) => {
|
|
125
|
-
console.error("An error occurred:", error);
|
|
126
|
-
process.exit(1);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
119
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;AAEH,qCAAmB;AACnB,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,4DAA0C;AAC1C,0DAAwC;AACxC,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,mEAAiD;AACjD,6DAA2C;AAC3C,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,6DAA2C;AAC3C,iEAA+C;AAC/C,8DAA4C;AAC5C,yEAAuD;AACvD,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC;AACzC,0DAAwC;AACxC,8DAA4C;AAC5C,+CAA6B;AAC7B,0CAAsJ;AAA7I,4GAAA,gBAAgB,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,yGAAA,aAAa,OAAA;AAC1D,kDAA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;AACf,+GAAA,mBAAmB,OAAA"}
|
package/dist/io/chrisIO.d.ts
CHANGED
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
+
import { HolderClient } from "./holderClient.js";
|
|
10
|
+
import { type UploadReceipt } from "./holderUpload.js";
|
|
11
|
+
import { type LocalFileStore } from "./localUpload.js";
|
|
9
12
|
import { type Client } from "../chrisapi/adapter.js";
|
|
10
13
|
import { IStorageProvider } from "./io.js";
|
|
11
14
|
import { Result } from "../utils/result.js";
|
|
15
|
+
export type { UploadReceipt } from "./holderUpload.js";
|
|
16
|
+
export type { LocalFileStore } from "./localUpload.js";
|
|
12
17
|
export declare class ChrisIO {
|
|
13
18
|
private _chrisFolder;
|
|
14
|
-
private _client;
|
|
15
19
|
private storageProvider;
|
|
16
20
|
constructor();
|
|
17
21
|
/**
|
|
@@ -50,22 +54,27 @@ export declare class ChrisIO {
|
|
|
50
54
|
*
|
|
51
55
|
* @param client - The connected ChRIS client.
|
|
52
56
|
* @param fileId - The file id from a folder listing.
|
|
53
|
-
* @returns The file resource, or
|
|
57
|
+
* @returns The file resource, or none with the status CUBE refused the lookup with.
|
|
54
58
|
*/
|
|
55
59
|
private downloadableFile_get;
|
|
56
60
|
/**
|
|
57
|
-
* Asks CUBE directly what it answers for a file id
|
|
61
|
+
* Asks CUBE directly what it answers for a file id, as the same user the
|
|
62
|
+
* lookup was made as: with that lookup's own client's address and token,
|
|
63
|
+
* never the connection's current ones (which are another user's inside a
|
|
64
|
+
* `sudo`, and after someone else has connected), at CUBE's own address
|
|
65
|
+
* for the file, following no redirect.
|
|
58
66
|
*
|
|
67
|
+
* @param client - The client the lookup was made with.
|
|
59
68
|
* @param fileId - The file the lookup could not resolve.
|
|
60
69
|
* @returns The HTTP status, or null when it could not be asked.
|
|
61
70
|
*/
|
|
62
71
|
private fileStatus_probe;
|
|
63
|
-
/** HTTP status of the most recent failed file lookup, when CUBE gave one. */
|
|
64
|
-
private lastFileRefusal;
|
|
65
72
|
/**
|
|
66
73
|
* Explains why a file lookup came back empty, in CUBE's own terms.
|
|
67
74
|
*
|
|
68
75
|
* @param fileId - The file the operator asked for.
|
|
76
|
+
* @param refusal - The status CUBE refused that lookup with, when it gave one.
|
|
77
|
+
* @param reason - Why the lookup was refused when CUBE gave no status.
|
|
69
78
|
* @returns A sentence naming what CUBE actually answered.
|
|
70
79
|
*/
|
|
71
80
|
private fileRefusal_describe;
|
|
@@ -84,21 +93,37 @@ export declare class ChrisIO {
|
|
|
84
93
|
/**
|
|
85
94
|
* Downloads a file from ChRIS by its ID.
|
|
86
95
|
* @param fileId - The ID of the file to download.
|
|
96
|
+
* @param bound - The client an act was bound to, read on instead of the session's now.
|
|
87
97
|
* @returns A Promise resolving to a Buffer of the file content, or null on failure.
|
|
88
98
|
*/
|
|
89
|
-
file_download(fileId: number): Promise<Buffer | null>;
|
|
99
|
+
file_download(fileId: number, bound?: Client): Promise<Buffer | null>;
|
|
90
100
|
/**
|
|
91
|
-
* Uploads a file
|
|
101
|
+
* Uploads a file and answers what CUBE stored, without touching it after.
|
|
92
102
|
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
103
|
+
* A caller that goes on to act on the file (to move it, or to delete it)
|
|
104
|
+
* needs to know which file it is: its id, and the path it actually landed
|
|
105
|
+
* at, which is not always the one asked (CUBE may suffix the name). The
|
|
106
|
+
* name is never changed back here.
|
|
95
107
|
*
|
|
96
|
-
* @param fileBlob - The file content
|
|
97
|
-
* @param uploadDir - The
|
|
98
|
-
* @param filename - The name
|
|
99
|
-
* @returns
|
|
108
|
+
* @param fileBlob - The file content.
|
|
109
|
+
* @param uploadDir - The ChRIS folder to upload into.
|
|
110
|
+
* @param filename - The name asked for.
|
|
111
|
+
* @returns The stored file's id and path, or Err with the reason stacked
|
|
112
|
+
* when the upload failed or CUBE's answer names no usable id or path.
|
|
100
113
|
*/
|
|
101
|
-
|
|
114
|
+
file_uploadReceipted(fileBlob: Blob, uploadDir: string, filename: string): Promise<Result<UploadReceipt>>;
|
|
115
|
+
/**
|
|
116
|
+
* Where a file is now, asked of CUBE by the file's id.
|
|
117
|
+
*
|
|
118
|
+
* After a move whose reply was lost, the move may or may not have
|
|
119
|
+
* happened; this is how a caller finds out before it undoes anything.
|
|
120
|
+
*
|
|
121
|
+
* @param fileId - The file's id.
|
|
122
|
+
* @returns The file's path with a leading slash; null when CUBE says the
|
|
123
|
+
* file is not there (404); Err when CUBE could not be asked or would
|
|
124
|
+
* not say, which is neither.
|
|
125
|
+
*/
|
|
126
|
+
file_locate(fileId: number): Promise<Result<string | null>>;
|
|
102
127
|
/**
|
|
103
128
|
* Deletes one file by its id, without listing anything.
|
|
104
129
|
*
|
|
@@ -111,25 +136,13 @@ export declare class ChrisIO {
|
|
|
111
136
|
* @returns Ok(true) when the file is gone, Err when the server refused.
|
|
112
137
|
*/
|
|
113
138
|
file_deleteById(fileId: number): Promise<Result<boolean>>;
|
|
114
|
-
/**
|
|
115
|
-
* Whether a path is free to be written to.
|
|
116
|
-
*
|
|
117
|
-
* Asked by exact name rather than by listing the folder: one request, and
|
|
118
|
-
* it still answers when the folder's own listing is broken. Anything the
|
|
119
|
-
* server will not answer counts as occupied.
|
|
120
|
-
*
|
|
121
|
-
* @param client - The connected client.
|
|
122
|
-
* @param wanted - The path a write wants, without a leading slash.
|
|
123
|
-
* @param mine - The path the just-uploaded file currently occupies, which
|
|
124
|
-
* is not a collision with itself.
|
|
125
|
-
* @returns True when nothing else holds the path.
|
|
126
|
-
*/
|
|
127
|
-
private path_isFree;
|
|
128
139
|
/**
|
|
129
140
|
* Creates a new folder in ChRIS at the specified path.
|
|
130
141
|
*
|
|
131
142
|
* @param folderPath - The path where the folder should be created.
|
|
132
|
-
* @returns
|
|
143
|
+
* @returns Ok(true) when CUBE's answer names the folder made, Ok(false)
|
|
144
|
+
* when CUBE said it was there already; Err on error, and when a folder
|
|
145
|
+
* is there after a post CUBE did not answer (who made it is not known).
|
|
133
146
|
*
|
|
134
147
|
* @example
|
|
135
148
|
* ```typescript
|
|
@@ -163,25 +176,51 @@ export declare class ChrisIO {
|
|
|
163
176
|
timeoutMs?: number;
|
|
164
177
|
}): Promise<Result<boolean>>;
|
|
165
178
|
/**
|
|
166
|
-
*
|
|
179
|
+
* The session's client now, bound for acting on what a proof named
|
|
180
|
+
* ({@link HolderClient}): every act and every question after it goes to
|
|
181
|
+
* that one client, and the binding says whether it is still the
|
|
182
|
+
* session's, which a caller asks before it changes anything.
|
|
183
|
+
*
|
|
184
|
+
* @returns The binding, or Err with the reason stacked when no client is connected.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```ts
|
|
188
|
+
* const acts: Result<HolderClient> = await chrisIO.holderClient_bind();
|
|
189
|
+
* if (acts.ok && await acts.value.current_is()) await acts.value.folder_deleteById(7);
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
holderClient_bind(): Promise<Result<HolderClient>>;
|
|
193
|
+
/**
|
|
194
|
+
* Moves (renames) a file in ChRIS by updating its path, on the
|
|
195
|
+
* session's client ({@link fileById_move}: the current rename field
|
|
196
|
+
* first, the older one only when CUBE says it does not read the first).
|
|
197
|
+
*
|
|
167
198
|
* @param fileId - The file ID.
|
|
168
199
|
* @param destPath - The target path including filename.
|
|
169
|
-
* @
|
|
200
|
+
* @param recheck - Asked before the second spelling is tried, when given:
|
|
201
|
+
* whether the move may still be made (the file where it was, the
|
|
202
|
+
* destination free). False stops the move.
|
|
203
|
+
* @returns Ok(true) when CUBE accepted the move; Err otherwise, which
|
|
204
|
+
* does not say the file stayed where it was.
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* ```ts
|
|
208
|
+
* const moved: Result<boolean> = await chrisIO.file_moveById(41, '/home/ada/b.txt');
|
|
209
|
+
* ```
|
|
170
210
|
*/
|
|
171
|
-
file_moveById(fileId: number, destPath: string): Promise<Result<boolean>>;
|
|
211
|
+
file_moveById(fileId: number, destPath: string, recheck?: () => Promise<boolean>): Promise<Result<boolean>>;
|
|
172
212
|
/**
|
|
173
|
-
*
|
|
213
|
+
* Walks a local directory or file for an upload, each file handed to the
|
|
214
|
+
* caller's store (never posted here): {@link localPath_upload}, on the
|
|
215
|
+
* storage provider this IO was given.
|
|
216
|
+
*
|
|
174
217
|
* @param localPath - The path on the local filesystem.
|
|
175
|
-
* @param remotePath - The destination path on ChRIS
|
|
176
|
-
*
|
|
177
|
-
* @
|
|
178
|
-
|
|
179
|
-
uploadLocalPath(localPath: string, remotePath: string): Promise<boolean>;
|
|
180
|
-
/**
|
|
181
|
-
* Performs a dummy upload for testing purposes.
|
|
182
|
-
* @returns A Promise resolving to true on success, or null if client is missing.
|
|
218
|
+
* @param remotePath - The destination path on ChRIS: a directory lands under it by its own name (`cp -r`).
|
|
219
|
+
* @param store - Stores one file's content at its ChRIS path; false (its reason stacked) when it did not.
|
|
220
|
+
* @param folderName - The name a directory lands under; null for its contents in the destination itself.
|
|
221
|
+
* @returns True when every file was stored; false otherwise (stacked).
|
|
183
222
|
*/
|
|
184
|
-
|
|
223
|
+
uploadLocalPath(localPath: string, remotePath: string, store: LocalFileStore, folderName?: string | null): Promise<boolean>;
|
|
185
224
|
}
|
|
186
225
|
/**
|
|
187
226
|
* Global ChRIS IO instance.
|