@globus/sdk 0.1.8-alpha.0 → 0.2.0-alpha.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 +28 -12
- package/dist/commonjs/src/index.d.ts +4 -0
- package/dist/commonjs/src/index.d.ts.map +1 -1
- package/dist/commonjs/src/index.js +8 -1
- package/dist/commonjs/src/index.js.map +1 -1
- package/dist/commonjs/src/lib/core/url.d.ts +12 -0
- package/dist/commonjs/src/lib/core/url.d.ts.map +1 -1
- package/dist/commonjs/src/lib/core/url.js +12 -0
- package/dist/commonjs/src/lib/core/url.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/client.d.ts +37 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/client.d.ts.map +1 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/client.js +37 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/client.js.map +1 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/index.d.ts +41 -6
- package/dist/commonjs/src/lib/services/globus-connect-server/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/index.js +18 -12
- package/dist/commonjs/src/lib/services/globus-connect-server/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.d.ts +11 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.d.ts.map +1 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.js +26 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.js.map +1 -0
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.d.ts +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.js +2 -4
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.d.ts +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.js +3 -5
- package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/endpoint-search.d.ts +3 -0
- package/dist/commonjs/src/lib/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.d.ts +12 -4
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.d.ts +3 -3
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.js +0 -1
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/types.d.ts +43 -0
- package/dist/commonjs/src/lib/services/transfer/types.d.ts.map +1 -0
- package/dist/commonjs/src/lib/services/transfer/types.js +3 -0
- package/dist/commonjs/src/lib/services/transfer/types.js.map +1 -0
- package/dist/commonjs/src/lib/services/types.d.ts +2 -3
- package/dist/commonjs/src/lib/services/types.d.ts.map +1 -1
- package/dist/commonjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/core/url.d.ts +12 -0
- package/dist/src/lib/core/url.d.ts.map +1 -1
- package/dist/src/lib/core/url.js +12 -0
- package/dist/src/lib/core/url.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/client.d.ts +37 -0
- package/dist/src/lib/services/globus-connect-server/client.d.ts.map +1 -0
- package/dist/src/lib/services/globus-connect-server/client.js +33 -0
- package/dist/src/lib/services/globus-connect-server/client.js.map +1 -0
- package/dist/src/lib/services/globus-connect-server/index.d.ts +41 -6
- package/dist/src/lib/services/globus-connect-server/index.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/index.js +19 -15
- package/dist/src/lib/services/globus-connect-server/index.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/collections.d.ts +11 -0
- package/dist/src/lib/services/globus-connect-server/service/collections.d.ts.map +1 -0
- package/dist/src/lib/services/globus-connect-server/service/collections.js +23 -0
- package/dist/src/lib/services/globus-connect-server/service/collections.js.map +1 -0
- package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts +1 -1
- package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/endpoint.js +2 -4
- package/dist/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts +1 -1
- package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/versioning.js +2 -4
- package/dist/src/lib/services/globus-connect-server/service/versioning.js.map +1 -1
- package/dist/src/lib/services/transfer/service/endpoint-search.d.ts +3 -0
- package/dist/src/lib/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/file-operations.d.ts +12 -4
- package/dist/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/file-operations.js.map +1 -1
- package/dist/src/lib/services/transfer/service/task-submission.d.ts +3 -3
- package/dist/src/lib/services/transfer/service/task-submission.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/task-submission.js +0 -1
- package/dist/src/lib/services/transfer/service/task-submission.js.map +1 -1
- package/dist/src/lib/services/transfer/types.d.ts +43 -0
- package/dist/src/lib/services/transfer/types.d.ts.map +1 -0
- package/dist/src/lib/services/transfer/types.js +2 -0
- package/dist/src/lib/services/transfer/types.js.map +1 -0
- package/dist/src/lib/services/types.d.ts +2 -3
- package/dist/src/lib/services/types.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
The Globus SDK for JavaScript provides first class TypeScript support and makes it easy to call Globus services using idiomatic JavaScript APIs to build Node.js and web applications.
|
|
4
4
|
|
|
@@ -6,25 +6,41 @@ The Globus SDK for JavaScript provides first class TypeScript support and makes
|
|
|
6
6
|
- [@globus/sdk API Documentation](https://globus-jb.s3.amazonaws.com/@globus/sdk/index.html)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
If you are not using Typescript, you can install the SDK with the following command:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @globus/sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Typescript
|
|
18
|
+
|
|
19
|
+
`@globus/sdk` is written in Typescript and includes type definitions for it's internal types, Globus platform types (i.e. API responses) are provided by the `@globus/types` package and must be installed separately.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install @globus/sdk @globus/types
|
|
23
|
+
```
|
|
24
|
+
|
|
9
25
|
## Supported Platforms
|
|
10
26
|
|
|
11
27
|
### Node.js
|
|
12
28
|
|
|
13
29
|
Our goal is to support all Active LTS [Node.js releases](https://nodejs.org/en/about/releases/). We intend to support all Maintenance LTS versions until their official end-of-life.
|
|
14
30
|
|
|
15
|
-
| Version | |
|
|
16
|
-
|
|
17
|
-
| Node.js 14 | ✅ |
|
|
18
|
-
| Node.js 16 | ✅
|
|
19
|
-
| Node.js 18 | ✅
|
|
31
|
+
| Version | | |
|
|
32
|
+
|------------|---------|-------|
|
|
33
|
+
| Node.js 14 | ✅ | **⚠️** Node.js 14 support is expected to be removed before v1.0.0 (EOL) |
|
|
34
|
+
| Node.js 16 | ✅ ||
|
|
35
|
+
| Node.js 18 | ✅ ||
|
|
20
36
|
|
|
21
37
|
### Browser Support
|
|
22
38
|
|
|
23
39
|
Officially, the SDK supports widely adopted evergreen browsers: Edge, Chrome, Safari and Firefox.
|
|
24
40
|
|
|
25
|
-
| Browser
|
|
26
|
-
|
|
27
|
-
| Google Chrome
|
|
28
|
-
| Mozilla Firefox |
|
|
29
|
-
| Microsoft Edge
|
|
30
|
-
| Apple Safari
|
|
41
|
+
| Browser | Version |
|
|
42
|
+
|-----------------|---------|
|
|
43
|
+
| Google Chrome | |
|
|
44
|
+
| Mozilla Firefox | |
|
|
45
|
+
| Microsoft Edge | |
|
|
46
|
+
| Apple Safari | |
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module @globus/sdk
|
|
3
|
+
*/
|
|
1
4
|
export * from "./lib/sdk";
|
|
2
5
|
export * as authorization from "./lib/core/authorization";
|
|
3
6
|
export * as auth from "./lib/services/auth";
|
|
4
7
|
export * as transfer from "./lib/services/transfer";
|
|
5
8
|
export * as search from "./lib/services/search";
|
|
9
|
+
export * as gcs from "./lib/services/globus-connect-server";
|
|
6
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module @globus/sdk
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="@globus/types" />
|
|
6
|
+
/// <reference types="@globus/types/auth" />
|
|
7
|
+
/// <reference types="@globus/types/transfer" />
|
|
2
8
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
9
|
if (k2 === undefined) k2 = k;
|
|
4
10
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,10 +20,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
20
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
21
|
};
|
|
16
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
|
|
23
|
+
exports.gcs = exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
|
|
18
24
|
__exportStar(require("./lib/sdk"), exports);
|
|
19
25
|
exports.authorization = require("./lib/core/authorization");
|
|
20
26
|
exports.auth = require("./lib/services/auth");
|
|
21
27
|
exports.transfer = require("./lib/services/transfer");
|
|
22
28
|
exports.search = require("./lib/services/search");
|
|
29
|
+
exports.gcs = require("./lib/services/globus-connect-server");
|
|
23
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,uCAAuC;AACvC,4CAA4C;AAC5C,gDAAgD;;;;;;;;;;;;;;;;;AAEhD,4CAA0B;AAC1B,4DAA0D;AAC1D,8CAA4C;AAC5C,sDAAoD;AACpD,kDAAgD;AAChD,8DAA4D"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { Environment } from "./global";
|
|
2
2
|
import type { Service } from "./global";
|
|
3
|
+
/**
|
|
4
|
+
* Return the base URL for a service (based on the environment).
|
|
5
|
+
* @param service The service to build the URL for.
|
|
6
|
+
* @param path The path to the resource.
|
|
7
|
+
* @param environment The environment to use.
|
|
8
|
+
*/
|
|
3
9
|
export declare function getServiceURL(service: Service, path?: string, environment?: Environment): URL;
|
|
10
|
+
/**
|
|
11
|
+
* Build a URL for a service.
|
|
12
|
+
* @param service The service to build the URL for.
|
|
13
|
+
* @param path The path to the resource.
|
|
14
|
+
* @param options Additional options for the URL.
|
|
15
|
+
*/
|
|
4
16
|
export declare function build(service: Service, path: string, options?: {
|
|
5
17
|
search?: ConstructorParameters<typeof URLSearchParams>[0];
|
|
6
18
|
}): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED,wBAAgB,KAAK,CACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D,UAQF"}
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D,UAQF"}
|
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.build = exports.getServiceURL = void 0;
|
|
4
4
|
const global_1 = require("./global");
|
|
5
|
+
/**
|
|
6
|
+
* Return the base URL for a service (based on the environment).
|
|
7
|
+
* @param service The service to build the URL for.
|
|
8
|
+
* @param path The path to the resource.
|
|
9
|
+
* @param environment The environment to use.
|
|
10
|
+
*/
|
|
5
11
|
function getServiceURL(service, path = "", environment = (0, global_1.getEnvironment)()) {
|
|
6
12
|
const base = (0, global_1.getServiceBaseUrl)(service, environment);
|
|
7
13
|
return new URL(path, base);
|
|
8
14
|
}
|
|
9
15
|
exports.getServiceURL = getServiceURL;
|
|
16
|
+
/**
|
|
17
|
+
* Build a URL for a service.
|
|
18
|
+
* @param service The service to build the URL for.
|
|
19
|
+
* @param path The path to the resource.
|
|
20
|
+
* @param options Additional options for the URL.
|
|
21
|
+
*/
|
|
10
22
|
function build(service, path, options) {
|
|
11
23
|
const url = getServiceURL(service, path);
|
|
12
24
|
if (options && options.search) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAG1E,SAAgB,aAAa,CAC3B,OAAgB,EAChB,IAAI,GAAG,EAAE,EACT,cAA2B,IAAA,uBAAc,GAAE;IAE3C,MAAM,IAAI,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAPD,sCAOC;AAED,SAAgB,KAAK,CACnB,OAAgB,EAChB,IAAY,EACZ,OAEC;IAED,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAbD,sBAaC"}
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAG1E;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,OAAgB,EAChB,IAAI,GAAG,EAAE,EACT,cAA2B,IAAA,uBAAc,GAAE;IAE3C,MAAM,IAAI,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAPD,sCAOC;AAED;;;;;GAKG;AACH,SAAgB,KAAK,CACnB,OAAgB,EAChB,IAAY,EACZ,OAEC;IAED,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAbD,sBAaC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Client - Globus Connect Server Manager API
|
|
3
|
+
* @category Client
|
|
4
|
+
* @description A wrapper around the Globus Connect Server Manager API that binds various Globus Connect Server resources
|
|
5
|
+
* to a single configuration object (GCSConfiguration).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { getClient } from "@globus/sdk/lib/services/globus-connect-server/client";
|
|
9
|
+
*
|
|
10
|
+
* const client = getClient({
|
|
11
|
+
* host: "https://fa5e.bd7c.data.globus.org",
|
|
12
|
+
* endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
13
|
+
* });
|
|
14
|
+
*
|
|
15
|
+
* const result = await client.endpoint.get();
|
|
16
|
+
*/
|
|
17
|
+
import { type GCSConfiguration } from ".";
|
|
18
|
+
/**
|
|
19
|
+
* Create a Globus Connect Server Manager client. This client is used to
|
|
20
|
+
* create a SDK context that is bound to a specific Globus Connect Server.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getClient(configuration: GCSConfiguration): {
|
|
23
|
+
configuration: GCSConfiguration;
|
|
24
|
+
endpoint: {
|
|
25
|
+
get: (_parameters?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
|
|
26
|
+
};
|
|
27
|
+
versioning: {
|
|
28
|
+
get: (_parameters?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
|
|
29
|
+
};
|
|
30
|
+
collections: {
|
|
31
|
+
get: (collection_id: string, parameters?: {
|
|
32
|
+
include?: "private_policies"[] | undefined;
|
|
33
|
+
} | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
|
|
34
|
+
getAll: (_parameters?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,GAAG,CAAC;AA2B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB;;;;;;;;;;;;;;EAcxD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClient = void 0;
|
|
4
|
+
const collections = require("./service/collections");
|
|
5
|
+
const endpoint = require("./service/endpoint");
|
|
6
|
+
const versioning = require("./service/endpoint");
|
|
7
|
+
/**
|
|
8
|
+
* Bind arguments to a method (partial application).
|
|
9
|
+
* @param method The method arguments will be bound to.
|
|
10
|
+
* @param bound The arguments to bind to the method.
|
|
11
|
+
*/
|
|
12
|
+
function bind(method, ...bound) {
|
|
13
|
+
return function (...args) {
|
|
14
|
+
return method(...bound, ...args);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create a Globus Connect Server Manager client. This client is used to
|
|
19
|
+
* create a SDK context that is bound to a specific Globus Connect Server.
|
|
20
|
+
*/
|
|
21
|
+
function getClient(configuration) {
|
|
22
|
+
return {
|
|
23
|
+
configuration,
|
|
24
|
+
endpoint: {
|
|
25
|
+
get: bind(endpoint.get, configuration),
|
|
26
|
+
},
|
|
27
|
+
versioning: {
|
|
28
|
+
get: bind(versioning.get, configuration),
|
|
29
|
+
},
|
|
30
|
+
collections: {
|
|
31
|
+
get: bind(collections.get, configuration),
|
|
32
|
+
getAll: bind(collections.getAll, configuration),
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.getClient = getClient;
|
|
37
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/client.ts"],"names":[],"mappings":";;;AAkBA,qDAAqD;AACrD,+CAA+C;AAC/C,iDAAiD;AASjD;;;;GAIG;AACH,SAAS,IAAI,CACX,MAAS,EACT,GAAG,KAAW;IAEd,OAAO,UAAU,GAAG,IAAsC;QACxD,OAAO,MAAM,CAAC,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,aAA+B;IACvD,OAAO;QACL,aAAa;QACb,QAAQ,EAAE;YACR,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;SACvC;QACD,UAAU,EAAE;YACV,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,aAAa,CAAC;SACzC;QACD,WAAW,EAAE;YACX,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,aAAa,CAAC;YACzC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC;SAChD;KACF,CAAC;AACJ,CAAC;AAdD,8BAcC"}
|
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @description A wrapper around the Globus
|
|
2
|
+
* @description A wrapper around the Globus Connect Server Manager API.
|
|
3
3
|
* @category Service
|
|
4
4
|
* @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
/// <reference types="@globus/types" />
|
|
8
|
+
import type { Segment, Options, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments } from "../types";
|
|
9
|
+
type BuildParameters = Parameters<typeof import("../../core/url").build>;
|
|
10
|
+
/**
|
|
11
|
+
* Service methods for the Globus Connect Server Manager API.
|
|
12
|
+
*/
|
|
13
|
+
export * as collections from "./service/collections";
|
|
12
14
|
export * as endpoint from "./service/endpoint";
|
|
15
|
+
export * as versioning from "./service/versioning";
|
|
16
|
+
export declare function getRequiredScopes(configuration: GCSConfiguration): string;
|
|
17
|
+
/**
|
|
18
|
+
* Build a URL for the Globus Connect Server Manager API.
|
|
19
|
+
* @param host The base URL for the Globus Connect Server Manager API.
|
|
20
|
+
* @param path The path to the resource.
|
|
21
|
+
* @param options Additional options for the URL.
|
|
22
|
+
*/
|
|
23
|
+
export declare function build(configuration: GCSConfiguration, path: BuildParameters[1], options?: BuildParameters[2]): string;
|
|
24
|
+
/**
|
|
25
|
+
* The configuration object used by all Globus Connect Server Manager API methods.
|
|
26
|
+
*/
|
|
27
|
+
export type GCSConfiguration = {
|
|
28
|
+
/**
|
|
29
|
+
* The host (base URL) for the Globus Connect Server Manager API.
|
|
30
|
+
* @example https://fa5e.bd7c.data.globus.org
|
|
31
|
+
*/
|
|
32
|
+
host: string;
|
|
33
|
+
/**
|
|
34
|
+
* The UUID
|
|
35
|
+
*/
|
|
36
|
+
endpoint_id: Globus.UUID;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The GCSServiceMethod type is similar to the core ServiceMethod type, but
|
|
40
|
+
* the first parameter is always a GCSConfiguration object.
|
|
41
|
+
*/
|
|
42
|
+
export type GCSServiceMethod<O extends Options, R extends Response = Response> = (configuration: GCSConfiguration, methodOptions?: O, sdkOptions?: SDKOptions) => ReturnType<ServiceMethod<O, R>>;
|
|
43
|
+
/**
|
|
44
|
+
* The GCSServiceMethodDynamicSegments type is similar to the core ServiceMethodDynamicSegments type, but
|
|
45
|
+
* the first parameter is always a GCSConfiguration object.
|
|
46
|
+
*/
|
|
47
|
+
export type GCSServiceMethodDynamicSegments<S extends Segment, O extends Options, R extends Response = Response> = (configuration: GCSConfiguration, segments: S, methodOptions?: O, sdkOptions?: SDKOptions) => ReturnType<ServiceMethodDynamicSegments<S, O, R>>;
|
|
13
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACV,aAAa,EACb,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,KAAK,eAAe,GAAG,UAAU,CAAC,cAAc,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAEzE;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,UAKhE;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,aAAa,EAAE,gBAAgB,EAC/B,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,UAQ7B;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,aAAa,CAAC,EAAE,CAAC,EACjB,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,+BAA+B,CACzC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,EACjB,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* @description A wrapper around the Globus
|
|
3
|
+
* @description A wrapper around the Globus Connect Server Manager API.
|
|
4
4
|
* @category Service
|
|
5
5
|
* @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.build = exports.getRequiredScopes = exports.versioning = exports.endpoint = exports.collections = void 0;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Service methods for the Globus Connect Server Manager API.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
exports.collections = require("./service/collections");
|
|
14
|
+
exports.endpoint = require("./service/endpoint");
|
|
15
|
+
exports.versioning = require("./service/versioning");
|
|
14
16
|
const SCOPES = {
|
|
15
|
-
HIGH_ASSURANCE: "urn:globus:auth:scope
|
|
16
|
-
NON_HIGH_ASSURANCE: "urn:globus:auth:scope
|
|
17
|
+
HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",
|
|
18
|
+
NON_HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]",
|
|
17
19
|
};
|
|
18
|
-
function getRequiredScopes() {
|
|
19
|
-
return SCOPES.HIGH_ASSURANCE;
|
|
20
|
+
function getRequiredScopes(configuration) {
|
|
21
|
+
return SCOPES.HIGH_ASSURANCE.replace("<ENDPOINT_ID>", configuration.endpoint_id);
|
|
20
22
|
}
|
|
21
23
|
exports.getRequiredScopes = getRequiredScopes;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Build a URL for the Globus Connect Server Manager API.
|
|
26
|
+
* @param host The base URL for the Globus Connect Server Manager API.
|
|
27
|
+
* @param path The path to the resource.
|
|
28
|
+
* @param options Additional options for the URL.
|
|
29
|
+
*/
|
|
30
|
+
function build(configuration, path, options) {
|
|
31
|
+
const url = new URL(path, configuration.host);
|
|
24
32
|
if (options && options.search) {
|
|
25
33
|
const search = new URLSearchParams(options.search);
|
|
26
34
|
url.search = search.toString();
|
|
@@ -28,6 +36,4 @@ function build(path, options) {
|
|
|
28
36
|
return url.toString();
|
|
29
37
|
}
|
|
30
38
|
exports.build = build;
|
|
31
|
-
exports.versioning = require("./service/versioning");
|
|
32
|
-
exports.endpoint = require("./service/endpoint");
|
|
33
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAYH;;GAEG;AACH,uDAAqD;AACrD,iDAA+C;AAC/C,qDAAmD;AAEnD,MAAM,MAAM,GAAG;IACb,cAAc,EAAE,wDAAwD;IACxE,kBAAkB,EAChB,4HAA4H;CAC/H,CAAC;AAEF,SAAgB,iBAAiB,CAAC,aAA+B;IAC/D,OAAO,MAAM,CAAC,cAAc,CAAC,OAAO,CAClC,eAAe,EACf,aAAa,CAAC,WAAW,CAC1B,CAAC;AACJ,CAAC;AALD,8CAKC;AAED;;;;;GAKG;AACH,SAAgB,KAAK,CACnB,aAA+B,EAC/B,IAAwB,EACxB,OAA4B;IAE5B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAXD,sBAWC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
|
|
3
|
+
*/
|
|
4
|
+
export declare const getAll: (configuration: import("../index").GCSConfiguration, _parameters?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
5
|
+
/**
|
|
6
|
+
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
7
|
+
*/
|
|
8
|
+
export declare const get: (configuration: import("../index").GCSConfiguration, collection_id: string, parameters?: {
|
|
9
|
+
include?: "private_policies"[] | undefined;
|
|
10
|
+
} | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
11
|
+
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,MAAM,+JAQgB,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,GAAG;;8FAwBf,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.get = exports.getAll = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
const fetch_1 = require("../../../core/fetch");
|
|
6
|
+
/**
|
|
7
|
+
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
|
|
8
|
+
*/
|
|
9
|
+
exports.getAll = function (configuration, _parameters, sdkOptions) {
|
|
10
|
+
var _a;
|
|
11
|
+
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/collections`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
15
|
+
*/
|
|
16
|
+
exports.get = function (configuration, collection_id, parameters, sdkOptions) {
|
|
17
|
+
var _a;
|
|
18
|
+
const search = {};
|
|
19
|
+
if (parameters && "include" in parameters && parameters.include) {
|
|
20
|
+
search.include = parameters.include.join(",");
|
|
21
|
+
}
|
|
22
|
+
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/collections/${collection_id}`, {
|
|
23
|
+
search,
|
|
24
|
+
}), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AASrD;;GAEG;AACU,QAAA,MAAM,GAAG,UAAU,aAAa,EAAE,WAAY,EAAE,UAAW;;IACtE,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,kBAAkB,CAAC,oBAEnC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAAmC,CAAC;AAEpC;;GAEG;AACU,QAAA,GAAG,GAAG,UACjB,aAAa,EACb,aAAa,EACb,UAAW,EACX,UAAW;;IAEX,MAAM,MAAM,GAER,EAAE,CAAC;IACP,IAAI,UAAU,IAAI,SAAS,IAAI,UAAU,IAAI,UAAU,CAAC,OAAO,EAAE;QAC/D,MAAM,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC/C;IACD,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,oBAAoB,aAAa,EAAE,EAAE;QACxD,MAAM;KACP,CAAC,oBAEG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAGC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
|
|
3
3
|
*/
|
|
4
|
-
export declare const get: (
|
|
4
|
+
export declare const get: (configuration: import("../index").GCSConfiguration, _parameters?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
5
5
|
//# sourceMappingURL=endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,GAAG,+JAQmB,CAAC"}
|
|
@@ -6,10 +6,8 @@ const fetch_1 = require("../../../core/fetch");
|
|
|
6
6
|
/**
|
|
7
7
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
|
|
8
8
|
*/
|
|
9
|
-
exports.get = function (
|
|
9
|
+
exports.get = function (configuration, _parameters, sdkOptions) {
|
|
10
10
|
var _a;
|
|
11
|
-
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(), (0, index_1.build)(`/api/endpoint
|
|
12
|
-
search: parameters,
|
|
13
|
-
}), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
|
|
11
|
+
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/endpoint`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
14
12
|
};
|
|
15
13
|
//# sourceMappingURL=endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAIrD;;GAEG;AACU,QAAA,GAAG,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAIrD;;GAEG;AACU,QAAA,GAAG,GAAG,UAAU,aAAa,EAAE,WAAY,EAAE,UAAW;;IACnE,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,eAAe,CAAC,oBAEhC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAAmC,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
*
|
|
3
3
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const info: (configuration: import("../index").GCSConfiguration, _parameters?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
6
6
|
//# sourceMappingURL=versioning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,IAAI,+JAahB,CAAC"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.info = void 0;
|
|
4
4
|
const index_1 = require("../index");
|
|
5
5
|
const fetch_1 = require("../../../core/fetch");
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.info = function (configuration, _parameters, sdkOptions) {
|
|
11
11
|
var _a;
|
|
12
|
-
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(), (0, index_1.build)(`/api/info
|
|
13
|
-
search: parameters,
|
|
14
|
-
}), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
|
|
12
|
+
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/info`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
15
13
|
};
|
|
16
14
|
//# sourceMappingURL=versioning.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;
|
|
1
|
+
{"version":3,"file":"versioning.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAOrD;;;GAGG;AACU,QAAA,IAAI,GAAG,UAAU,aAAa,EAAE,WAAY,EAAE,UAAW;;IACpE,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,WAAW,CAAC,oBAE5B,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-search.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,cAAc,gBAIZ,OAAO,QAAQ,CAAC,mBAAmB,0FAkBY,CAAC;AAE/D,eAAe,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"endpoint-search.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;AAOA;;GAEG;AACH,eAAO,MAAM,cAAc,gBAIZ,OAAO,QAAQ,CAAC,mBAAmB,0FAkBY,CAAC;AAE/D,eAAe,cAAc,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import type { Transfer } from "../types";
|
|
1
2
|
/**
|
|
2
3
|
* List the contents of the directory at the specified path on an endpoint’s filesystem.
|
|
3
4
|
* The endpoint must be activated before performing this operation.
|
|
4
5
|
*
|
|
5
6
|
* @see https://docs.globus.org/api/transfer/file_operations/#list_directory_contents
|
|
6
7
|
*/
|
|
7
|
-
export declare const ls: (endpoint_xid: string, parameters?:
|
|
8
|
+
export declare const ls: (endpoint_xid: string, parameters?: {
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
show_hidden?: "true" | "false" | undefined;
|
|
11
|
+
limit?: `${number}` | undefined;
|
|
12
|
+
offset?: `${number}` | undefined;
|
|
13
|
+
orderby?: string | undefined;
|
|
14
|
+
filter?: string | undefined;
|
|
15
|
+
} | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
8
16
|
/**
|
|
9
17
|
* Create a directory at the specified path on an endpoint filesystem.
|
|
10
18
|
* The endpoint must be activated before performing this operation.
|
|
@@ -12,7 +20,7 @@ export declare const ls: (endpoint_xid: string, parameters?: Globus.Transfer.Dir
|
|
|
12
20
|
* @see https://docs.globus.org/api/transfer/file_operations/#make_directory
|
|
13
21
|
*/
|
|
14
22
|
export declare const mkdir: (endpoint_xid: string, options: {
|
|
15
|
-
payload: Omit<
|
|
23
|
+
payload: Omit<Transfer["Request"]["Mkdir"], "DATA_TYPE">;
|
|
16
24
|
} | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
17
25
|
/**
|
|
18
26
|
* Rename or move a file, directory, or symlink on an endpoint filesystem.
|
|
@@ -23,7 +31,7 @@ export declare const mkdir: (endpoint_xid: string, options: {
|
|
|
23
31
|
* @see https://docs.globus.org/api/transfer/file_operations/#rename
|
|
24
32
|
*/
|
|
25
33
|
export declare const rename: (endpoint_xid: string, options: {
|
|
26
|
-
payload: Omit<
|
|
34
|
+
payload: Omit<Transfer["Request"]["Rename"], "DATA_TYPE">;
|
|
27
35
|
} | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
28
36
|
/**
|
|
29
37
|
* Create a directory at the specified path on an endpoint filesystem.
|
|
@@ -32,6 +40,6 @@ export declare const rename: (endpoint_xid: string, options: {
|
|
|
32
40
|
* @see https://docs.globus.org/api/transfer/file_operations/#symlink
|
|
33
41
|
*/
|
|
34
42
|
export declare const symlink: (endpoint_xid: string, options: {
|
|
35
|
-
payload: Omit<
|
|
43
|
+
payload: Omit<Transfer["Request"]["Symlink"], "DATA_TYPE">;
|
|
36
44
|
} | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
|
|
37
45
|
//# sourceMappingURL=file-operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-operations.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,eAAO,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"file-operations.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,EAAE;;;;;;;8FAWd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;aAmBL,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;8FAE3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;aAmBN,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;8FAE5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO;aAmBP,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC;8FAE7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-operations.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,+CAAqD;AACrD,yCAA4C;AAI5C,sCAAiD;AACjD,sCAA+B;
|
|
1
|
+
{"version":3,"file":"file-operations.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,+CAAqD;AACrD,yCAA4C;AAI5C,sCAAiD;AACjD,sCAA+B;AAI/B;;;;;GAKG;AACU,QAAA,EAAE,GAAG,UAAU,YAAY,EAAE,UAAW,EAAE,UAAW;;IAChE,OAAO,IAAA,sBAAc,EACnB,mDAAmD,EACnD,IAAA,WAAK,EAAC,WAAE,EAAE,6BAA6B,YAAY,KAAK,EAAE;QACxD,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,CAC3B,CAAC;AACJ,CAGC,CAAC;AAEF;;;;;GAKG;AACU,QAAA,KAAK,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;;IAC/D,MAAM,OAAO,mBACX,SAAS,EAAE,OAAO,IACf,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB,CAAC;IAEF,OAAO,IAAA,sBAAc,EACnB,mDAAmD,EACnD,IAAA,WAAK,EAAC,WAAE,EAAE,6BAA6B,YAAY,QAAQ,CAAC,kBAE1D,MAAM,EAAE,qBAAY,CAAC,IAAI,EACzB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAC7B,OAAO,EAAE,IAAA,6BAAoB,EAAC,qBAAY,CAAC,IAAI,CAAC,IAC7C,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;;;GAOG;AACU,QAAA,MAAM,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;;IAChE,MAAM,OAAO,mBACX,SAAS,EAAE,QAAQ,IAChB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB,CAAC;IAEF,OAAO,IAAA,sBAAc,EACnB,mDAAmD,EACnD,IAAA,WAAK,EAAC,WAAE,EAAE,6BAA6B,YAAY,SAAS,CAAC,kBAE3D,MAAM,EAAE,qBAAY,CAAC,IAAI,EACzB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAC7B,OAAO,EAAE,IAAA,6BAAoB,EAAC,qBAAY,CAAC,IAAI,CAAC,IAC7C,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;GAKG;AACU,QAAA,OAAO,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;;IACjE,MAAM,OAAO,mBACX,SAAS,EAAE,SAAS,IACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB,CAAC;IAEF,OAAO,IAAA,sBAAc,EACnB,mDAAmD,EACnD,IAAA,WAAK,EAAC,WAAE,EAAE,6BAA6B,YAAY,UAAU,CAAC,kBAE5D,MAAM,EAAE,qBAAY,CAAC,IAAI,EACzB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAC7B,OAAO,EAAE,IAAA,6BAAoB,EAAC,qBAAY,CAAC,IAAI,CAAC,IAC7C,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SDKOptions, ServiceMethod } from "../../types";
|
|
2
|
-
import "../types
|
|
2
|
+
import type { Transfer } from "../types";
|
|
3
3
|
/**
|
|
4
4
|
* Submit a delete task. A delete submission contains a single endpoint and a
|
|
5
5
|
* list of paths to delete.
|
|
@@ -7,10 +7,10 @@ import "../types.d.ts";
|
|
|
7
7
|
* @see https://docs.globus.org/api/transfer/task_submit/#submit_delete_task
|
|
8
8
|
*/
|
|
9
9
|
export declare const submitDelete: ServiceMethod<{
|
|
10
|
-
payload: Omit<
|
|
10
|
+
payload: Omit<Transfer["Request"]["Delete"], "DATA_TYPE">;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const submitTransfer: ServiceMethod<{
|
|
13
|
-
payload: Omit<
|
|
13
|
+
payload: Omit<Transfer["Request"]["Transfer"], "DATA_TYPE">;
|
|
14
14
|
}>;
|
|
15
15
|
/**
|
|
16
16
|
* Get a submission id, required when submitting transfer and delete tasks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-submission.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK7D,OAAO,
|
|
1
|
+
{"version":3,"file":"task-submission.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC;IACvC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,CAAC;CAC3D,CAgBA,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IACzC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC;CAC7D,CAcA,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,UAAU,qBAQhD"}
|