@globus/sdk 1.7.0-alpha → 1.8.0-alpha
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/cjs/lib/core/url.d.ts +2 -1
- package/cjs/lib/core/url.d.ts.map +1 -1
- package/cjs/lib/core/url.js +2 -2
- package/cjs/lib/core/url.js.map +1 -1
- package/cjs/lib/services/globus-connect-server/client.d.ts +7 -0
- package/cjs/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/index.d.ts +5 -3
- package/cjs/lib/services/globus-connect-server/index.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/collections.d.ts +2 -0
- package/cjs/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/endpoint.d.ts +2 -0
- package/cjs/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/roles.d.ts +2 -0
- package/cjs/lib/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.d.ts +2 -0
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/user-credentials.d.ts +1 -0
- package/cjs/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/cjs/lib/services/shared.d.ts.map +1 -1
- package/cjs/lib/services/shared.js +1 -1
- package/cjs/lib/services/shared.js.map +1 -1
- package/cjs/lib/services/transfer/service/endpoint-search.d.ts +2 -1
- package/cjs/lib/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/cjs/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/cjs/lib/services/types.d.ts +15 -11
- package/cjs/lib/services/types.d.ts.map +1 -1
- package/esm/lib/core/url.d.ts +2 -1
- package/esm/lib/core/url.d.ts.map +1 -1
- package/esm/lib/core/url.js +2 -2
- package/esm/lib/core/url.js.map +1 -1
- package/esm/lib/services/globus-connect-server/client.d.ts +7 -0
- package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/index.d.ts +5 -3
- package/esm/lib/services/globus-connect-server/index.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/collections.d.ts +2 -0
- package/esm/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/endpoint.d.ts +2 -0
- package/esm/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/roles.d.ts +2 -0
- package/esm/lib/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts +2 -0
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts +1 -0
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/esm/lib/services/shared.d.ts.map +1 -1
- package/esm/lib/services/shared.js +1 -1
- package/esm/lib/services/shared.js.map +1 -1
- package/esm/lib/services/transfer/service/endpoint-search.d.ts +2 -1
- package/esm/lib/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/esm/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/esm/lib/services/types.d.ts +15 -11
- package/esm/lib/services/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/umd/globus.production.js +1 -1
package/cjs/lib/core/url.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Environment } from "./global";
|
|
2
2
|
import type { Service } from "./global";
|
|
3
3
|
import type { GCSConfiguration } from "../services/globus-connect-server";
|
|
4
|
+
import { SDKOptions } from "../services/types";
|
|
4
5
|
/**
|
|
5
6
|
* Return the base URL for a service (based on the environment).
|
|
6
7
|
* @param service The service to build the URL for.
|
|
@@ -17,7 +18,7 @@ export declare function getServiceURL(service: Service, path?: string, environme
|
|
|
17
18
|
*/
|
|
18
19
|
export declare function build(serviceOrConfiguration: Service | GCSConfiguration, path: string, options?: {
|
|
19
20
|
search?: Parameters<typeof stringifyParameters>[0];
|
|
20
|
-
}): string;
|
|
21
|
+
}, sdkOptions?: SDKOptions): string;
|
|
21
22
|
/**
|
|
22
23
|
* An extremely simplified parameter serializer based on our current needs.
|
|
23
24
|
*
|
|
@@ -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;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
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;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CACnB,sBAAsB,EAAE,OAAO,GAAG,gBAAgB,EAClD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;CACpD,EACD,UAAU,CAAC,EAAE,UAAU,UAYxB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE;IAC9C,CAAC,GAAG,EAAE,MAAM,GACR,MAAM,GACN,MAAM,GACN,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GACzC,IAAI,GACJ,SAAS,CAAC;CACf,UAaA"}
|
package/cjs/lib/core/url.js
CHANGED
|
@@ -20,13 +20,13 @@ exports.getServiceURL = getServiceURL;
|
|
|
20
20
|
* @param path The path to the resource.
|
|
21
21
|
* @param options Additional options for the URL.
|
|
22
22
|
*/
|
|
23
|
-
function build(serviceOrConfiguration, path, options) {
|
|
23
|
+
function build(serviceOrConfiguration, path, options, sdkOptions) {
|
|
24
24
|
let url;
|
|
25
25
|
if (typeof serviceOrConfiguration === "object") {
|
|
26
26
|
url = new URL(path, serviceOrConfiguration.host);
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
|
-
url = getServiceURL(serviceOrConfiguration, path);
|
|
29
|
+
url = getServiceURL(serviceOrConfiguration, path, sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.environment);
|
|
30
30
|
}
|
|
31
31
|
if (options && options.search) {
|
|
32
32
|
url.search = stringifyParameters(options.search);
|
package/cjs/lib/core/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAK1E;;;;;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;;;;;;GAMG;AACH,SAAgB,KAAK,CACnB,sBAAkD,EAClD,IAAY,EACZ,OAEC,EACD,UAAuB;IAEvB,IAAI,GAAG,CAAC;IACR,IAAI,OAAO,sBAAsB,KAAK,QAAQ,EAAE;QAC9C,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC;KAClD;SAAM;QACL,GAAG,GAAG,aAAa,CAAC,sBAAsB,EAAE,IAAI,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,CAAC,CAAC;KAC5E;IACD,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,GAAG,CAAC,MAAM,GAAG,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;KAClD;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAlBD,sBAkBC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,UAOnC;IACC,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACxB;;eAEG;YACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SAClC;aAAM,IAAI,KAAK,KAAK,SAAS,EAAE;YAC9B,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;SAChC;KACF;IACD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC;AApBD,kDAoBC"}
|
|
@@ -113,6 +113,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
113
113
|
query?: {
|
|
114
114
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
115
115
|
} | undefined;
|
|
116
|
+
headers?: import("../types").Headers | undefined;
|
|
116
117
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
117
118
|
code?: "success" | undefined;
|
|
118
119
|
data?: ({
|
|
@@ -879,6 +880,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
879
880
|
query?: {
|
|
880
881
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
881
882
|
} | undefined;
|
|
883
|
+
headers?: import("../types").Headers | undefined;
|
|
882
884
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
883
885
|
code?: "success" | undefined;
|
|
884
886
|
data?: ({
|
|
@@ -2402,6 +2404,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2402
2404
|
query?: {
|
|
2403
2405
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2404
2406
|
} | undefined;
|
|
2407
|
+
headers?: import("../types").Headers | undefined;
|
|
2405
2408
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2406
2409
|
code?: "success" | undefined;
|
|
2407
2410
|
data?: {
|
|
@@ -2505,6 +2508,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2505
2508
|
query?: {
|
|
2506
2509
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2507
2510
|
} | undefined;
|
|
2511
|
+
headers?: import("../types").Headers | undefined;
|
|
2508
2512
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2509
2513
|
code?: "success" | undefined;
|
|
2510
2514
|
data?: ({
|
|
@@ -2940,6 +2944,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2940
2944
|
query?: {
|
|
2941
2945
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2942
2946
|
} | undefined;
|
|
2947
|
+
headers?: import("../types").Headers | undefined;
|
|
2943
2948
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2944
2949
|
code?: "success" | undefined;
|
|
2945
2950
|
data?: ({
|
|
@@ -3396,6 +3401,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
3396
3401
|
query?: {
|
|
3397
3402
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
3398
3403
|
} | undefined;
|
|
3404
|
+
headers?: import("../types").Headers | undefined;
|
|
3399
3405
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
3400
3406
|
code?: "success" | undefined;
|
|
3401
3407
|
data?: {
|
|
@@ -3427,6 +3433,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
3427
3433
|
query?: {
|
|
3428
3434
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
3429
3435
|
} | undefined;
|
|
3436
|
+
headers?: import("../types").Headers | undefined;
|
|
3430
3437
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
3431
3438
|
code?: "success" | undefined;
|
|
3432
3439
|
data?: {
|
|
@@ -1 +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;AA8B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB
|
|
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;AA8B1C;;;GAGG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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BxD"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="@globus/types" />
|
|
8
|
-
import type { Segment, ServiceMethodOptions, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments,
|
|
8
|
+
import type { Segment, ServiceMethodOptions, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments, BaseServiceMethodOptions } from "../types";
|
|
9
9
|
/**
|
|
10
10
|
* Service methods for the Globus Connect Server Manager API.
|
|
11
11
|
*/
|
|
@@ -35,13 +35,15 @@ export type GCSConfiguration = {
|
|
|
35
35
|
* the first parameter is always a GCSConfiguration object.
|
|
36
36
|
*/
|
|
37
37
|
export type GCSServiceMethod<O extends ServiceMethodOptions, R extends Response = Response> = (configuration: GCSConfiguration, methodOptions?: O & {
|
|
38
|
-
query?:
|
|
38
|
+
query?: BaseServiceMethodOptions["query"];
|
|
39
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
39
40
|
}, sdkOptions?: SDKOptions) => ReturnType<ServiceMethod<O, R>>;
|
|
40
41
|
/**
|
|
41
42
|
* The GCSServiceMethodDynamicSegments type is similar to the core ServiceMethodDynamicSegments type, but
|
|
42
43
|
* the first parameter is always a GCSConfiguration object.
|
|
43
44
|
*/
|
|
44
45
|
export type GCSServiceMethodDynamicSegments<S extends Segment, O extends ServiceMethodOptions, R extends Response = Response> = (configuration: GCSConfiguration, segments: S, methodOptions?: O & {
|
|
45
|
-
query?:
|
|
46
|
+
query?: BaseServiceMethodOptions["query"];
|
|
47
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
46
48
|
}, sdkOptions?: SDKOptions) => ReturnType<ServiceMethodDynamicSegments<S, O, R>>;
|
|
47
49
|
//# 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;;AAEH,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,4BAA4B,EAC5B,
|
|
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,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,UAKhE;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,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,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,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
13
13
|
query?: {
|
|
14
14
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
15
15
|
} | undefined;
|
|
16
|
+
headers?: import("../../types").Headers | undefined;
|
|
16
17
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listCollections"]["responses"]["200"]["content"]["application/json"]>>;
|
|
17
18
|
/**
|
|
18
19
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
@@ -25,5 +26,6 @@ export declare const get: (configuration: import("../index").GCSConfiguration, c
|
|
|
25
26
|
query?: {
|
|
26
27
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
27
28
|
} | undefined;
|
|
29
|
+
headers?: import("../../types").Headers | undefined;
|
|
28
30
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["getCollection"]["responses"]["200"]["content"]["application/json"]>>;
|
|
29
31
|
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACjF,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;8EAKb,QACD,kBACE,UAAU,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/E,CAgBF,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const update: (configuration: import("../index").GCSConfiguration
|
|
|
13
13
|
query?: {
|
|
14
14
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
15
15
|
} | undefined;
|
|
16
|
+
headers?: import("../../types").Headers | undefined;
|
|
16
17
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["putEndpoint"]["responses"]["200"]["content"]["application/json"]>>;
|
|
17
18
|
/**
|
|
18
19
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#patchEndpoint
|
|
@@ -29,5 +30,6 @@ export declare const patch: (configuration: import("../index").GCSConfiguration,
|
|
|
29
30
|
query?: {
|
|
30
31
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
31
32
|
} | undefined;
|
|
33
|
+
headers?: import("../../types").Headers | undefined;
|
|
32
34
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["patchEndpoint"]["responses"]["200"]["content"]["application/json"]>>;
|
|
33
35
|
//# 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":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,GAAG,0IAIb,QACD,kBACE,UAAU,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7E,CAWgC,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,MAAM;aAoBR,UAAU,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,GAAG,0IAIb,QACD,kBACE,UAAU,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7E,CAWgC,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,MAAM;aAoBR,UAAU,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;8EAhB/E,QACD,kBACE,UAAU,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7E,CAcD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK;IAoBhB;;;;;OAKG;aAEC,UAAU,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,GACzE,OAAO,MAAM,EAAE,OAAO,CAAC;;;;;;8EAxB1B,QACD,kBACE,UAAU,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/E,CAsBD,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
11
11
|
query?: {
|
|
12
12
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
headers?: import("../../types").Headers | undefined;
|
|
14
15
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listRoles"]["responses"]["200"]["content"]["application/json"]>>;
|
|
15
16
|
/**
|
|
16
17
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#getRole
|
|
@@ -29,5 +30,6 @@ export declare const create: (configuration: import("../index").GCSConfiguration
|
|
|
29
30
|
query?: {
|
|
30
31
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
31
32
|
} | undefined;
|
|
33
|
+
headers?: import("../../types").Headers | undefined;
|
|
32
34
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["postRoles"]["responses"]["200"]["content"]["application/json"]>>;
|
|
33
35
|
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/roles.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/roles.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC3E,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,2JAKb,QACD,kBACE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACzE,CAcF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,2JAKhB,QACD,kBACE,UAAU,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC5E,CAeF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;aAoBR,UAAU,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;8EAhB7E,QACD,kBACE,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC3E,CAcD,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
11
11
|
query?: {
|
|
12
12
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
headers?: import("../../types").Headers | undefined;
|
|
14
15
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listStorageGateways"]["responses"]["200"]["content"]["application/json"]>>;
|
|
15
16
|
/**
|
|
16
17
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#getStorageGateway
|
|
@@ -23,5 +24,6 @@ export declare const get: (configuration: import("../index").GCSConfiguration, s
|
|
|
23
24
|
query?: {
|
|
24
25
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
25
26
|
} | undefined;
|
|
27
|
+
headers?: import("../../types").Headers | undefined;
|
|
26
28
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["getStorageGateway"]["responses"]["200"]["content"]["application/json"]>>;
|
|
27
29
|
//# sourceMappingURL=storage-gateways.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-gateways.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/storage-gateways.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"storage-gateways.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/storage-gateways.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,qBAAqB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACrF,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;8EAKb,QACD,kBACE,UAAU,CAAC,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACnF,CAgBF,CAAC"}
|
|
@@ -12,6 +12,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
12
12
|
query?: {
|
|
13
13
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
14
14
|
} | undefined;
|
|
15
|
+
headers?: import("../../types").Headers | undefined;
|
|
15
16
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listUserCredentials"]["responses"]["200"]["content"]["application/json"]>>;
|
|
16
17
|
/**
|
|
17
18
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#getUserCredential
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/user-credentials.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"user-credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/user-credentials.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,qBAAqB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACrF,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,sKAKb,QACD,kBACE,UAAU,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/E,CAcF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;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@ function serviceRequest(config, options, sdkOptions) {
|
|
|
37
37
|
var _a, _b, _c;
|
|
38
38
|
return (0, fetch_1.fetchWithScope)(config.scope, (0, url_1.build)(config.service, config.path, {
|
|
39
39
|
search: options === null || options === void 0 ? void 0 : options.query,
|
|
40
|
-
}), Object.assign(Object.assign({ method: config.method, body: (options === null || options === void 0 ? void 0 : options.payload) ? JSON.stringify(options.payload) : undefined }, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options), {
|
|
40
|
+
}, sdkOptions), Object.assign(Object.assign({ method: config.method, body: (options === null || options === void 0 ? void 0 : options.payload) ? JSON.stringify(options.payload) : undefined }, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options), {
|
|
41
41
|
/**
|
|
42
42
|
* Merge the headers from the options and SDK options.
|
|
43
43
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAC/C,qCAAoC;AAMpC,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,cAAc,CAC5B,MAAyB,EACzB,OAA8B,EAC9B,UAAuB;;IAEvB,OAAO,IAAA,sBAAc,EACnB,MAAM,CAAC,KAAK,EACZ,IAAA,WAAK,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAC/C,qCAAoC;AAMpC,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,cAAc,CAC5B,MAAyB,EACzB,OAA8B,EAC9B,UAAuB;;IAEvB,OAAO,IAAA,sBAAc,EACnB,MAAM,CAAC,KAAK,EACZ,IAAA,WAAK,EACH,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,IAAI,EACX;QACE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;KACvB,EACD,UAAU,CACX,gCAEC,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,IAAI,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,IACjE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO;QAC7B;;WAEG;QACH,OAAO,kCACF,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,GAKhB,MAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,0CAAE,OAAO,KAG3C,CAAC;AACJ,CAAC;AAhCD,wCAgCC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// <reference types="@globus/types/transfer" />
|
|
4
4
|
/// <reference types="@globus/types/transfer" />
|
|
5
5
|
/// <reference types="@globus/types/search" />
|
|
6
|
-
import type { SDKOptions } from "../../../services/types";
|
|
6
|
+
import type { BaseServiceMethodOptions, SDKOptions } from "../../../services/types";
|
|
7
7
|
/**
|
|
8
8
|
* Get a list of endpoints matching the search filters in a given search scope.
|
|
9
9
|
* @see https://docs.globus.org/api/transfer/endpoint_search/#endpoint_search
|
|
@@ -14,6 +14,7 @@ export declare const endpointSearch: (options?: {
|
|
|
14
14
|
* to `satisfies` `ServiceMethod`.
|
|
15
15
|
*/
|
|
16
16
|
query?: Globus.Transfer.EndpointSearchQuery;
|
|
17
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
17
18
|
}, sdkOptions?: SDKOptions) => Promise<Response>;
|
|
18
19
|
export default endpointSearch;
|
|
19
20
|
//# sourceMappingURL=endpoint-search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-search.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;;;AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"endpoint-search.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;;;AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,UAAU,EACX,MAAM,yBAAyB,CAAC;AAIjC;;;GAGG;AACH,eAAO,MAAM,cAAc,aAIf;IACR;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,QAAQ,CAAC,mBAAmB,CAAC;IAC5C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,eACY,UAAU,sBAmBxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-search.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;
|
|
1
|
+
{"version":3,"file":"endpoint-search.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAO9C,sCAA+B;AAE/B;;;GAGG;AACI,MAAM,cAAc,GAAG;AAC5B;;GAEG;AACH,OAOC,EACD,UAAuB;IAEvB,MAAM,qBAAqB,mCACtB,OAAO;QACV;;;WAGG;QACH,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAsD,GACvE,CAAC;IACF,OAAO,IAAA,uBAAc,EACnB;QACE,OAAO,EAAE,WAAE;QACX,KAAK,EAAE,mDAAmD;QAC1D,IAAI,EAAE,wBAAwB;KAC/B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,cAAc,kBA+BzB;AAEF,kBAAe,sBAAc,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { FetchOverrides } from "../core/fetch";
|
|
2
1
|
import { stringifyParameters } from "../core/url";
|
|
2
|
+
import { ENVIRONMENTS } from "../core/global";
|
|
3
|
+
import type { FetchOverrides } from "../core/fetch";
|
|
3
4
|
export interface JSONFetchResponse<Res> extends Response {
|
|
4
5
|
json(): Promise<Res>;
|
|
5
6
|
}
|
|
6
7
|
export type SDKOptions = {
|
|
8
|
+
environment?: (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];
|
|
7
9
|
fetch?: {
|
|
8
10
|
options: FetchOverrides;
|
|
9
11
|
};
|
|
@@ -29,12 +31,9 @@ export type ServiceMethodResponse = {
|
|
|
29
31
|
* Our `stringifyParameters` function defines what types of query parameters
|
|
30
32
|
* can actually be serialized as part of the URL.
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
type UnknownQueryParameters = Parameters<typeof stringifyParameters>[0];
|
|
33
35
|
export type Headers = Record<string, string>;
|
|
34
|
-
|
|
35
|
-
* Our standard options type for service methods.
|
|
36
|
-
*/
|
|
37
|
-
export type ServiceMethodOptions = {
|
|
36
|
+
export type BaseServiceMethodOptions = {
|
|
38
37
|
/**
|
|
39
38
|
* Query parmeters to send with the request.
|
|
40
39
|
*/
|
|
@@ -47,14 +46,19 @@ export type ServiceMethodOptions = {
|
|
|
47
46
|
* The headers to send with the request.
|
|
48
47
|
*/
|
|
49
48
|
headers?: Headers;
|
|
50
|
-
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Our standard options type for service methods.
|
|
52
|
+
*/
|
|
53
|
+
export type ServiceMethodOptions = BaseServiceMethodOptions | undefined | never;
|
|
51
54
|
export type Segment = string | Record<string, string>;
|
|
52
55
|
export type ServiceMethod<O extends ServiceMethodOptions, R extends Response = Response> = (methodOptions?: O & {
|
|
53
|
-
query?:
|
|
54
|
-
headers?:
|
|
56
|
+
query?: BaseServiceMethodOptions["query"];
|
|
57
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
55
58
|
}, sdkOptions?: SDKOptions) => Promise<R>;
|
|
56
59
|
export type ServiceMethodDynamicSegments<S extends Segment, O extends ServiceMethodOptions, R extends Response = Response> = (segments: S, methodOptions?: O & {
|
|
57
|
-
query?:
|
|
58
|
-
headers?:
|
|
60
|
+
query?: BaseServiceMethodOptions["query"];
|
|
61
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
59
62
|
}, sdkOptions?: SDKOptions) => Promise<R>;
|
|
63
|
+
export {};
|
|
60
64
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,WAAW,iBAAiB,CAAC,GAAG,CAAE,SAAQ,QAAQ;IACtD,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;IAC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,CAAC,CAAC,CAAC;AAEhB,MAAM,MAAM,4BAA4B,CACtC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
package/esm/lib/core/url.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Environment } from "./global";
|
|
2
2
|
import type { Service } from "./global";
|
|
3
3
|
import type { GCSConfiguration } from "../services/globus-connect-server";
|
|
4
|
+
import { SDKOptions } from "../services/types";
|
|
4
5
|
/**
|
|
5
6
|
* Return the base URL for a service (based on the environment).
|
|
6
7
|
* @param service The service to build the URL for.
|
|
@@ -17,7 +18,7 @@ export declare function getServiceURL(service: Service, path?: string, environme
|
|
|
17
18
|
*/
|
|
18
19
|
export declare function build(serviceOrConfiguration: Service | GCSConfiguration, path: string, options?: {
|
|
19
20
|
search?: Parameters<typeof stringifyParameters>[0];
|
|
20
|
-
}): string;
|
|
21
|
+
}, sdkOptions?: SDKOptions): string;
|
|
21
22
|
/**
|
|
22
23
|
* An extremely simplified parameter serializer based on our current needs.
|
|
23
24
|
*
|
|
@@ -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;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
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;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CACnB,sBAAsB,EAAE,OAAO,GAAG,gBAAgB,EAClD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;CACpD,EACD,UAAU,CAAC,EAAE,UAAU,UAYxB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE;IAC9C,CAAC,GAAG,EAAE,MAAM,GACR,MAAM,GACN,MAAM,GACN,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GACzC,IAAI,GACJ,SAAS,CAAC;CACf,UAaA"}
|
package/esm/lib/core/url.js
CHANGED
|
@@ -16,13 +16,13 @@ export function getServiceURL(service, path = "", environment = getEnvironment()
|
|
|
16
16
|
* @param path The path to the resource.
|
|
17
17
|
* @param options Additional options for the URL.
|
|
18
18
|
*/
|
|
19
|
-
export function build(serviceOrConfiguration, path, options) {
|
|
19
|
+
export function build(serviceOrConfiguration, path, options, sdkOptions) {
|
|
20
20
|
let url;
|
|
21
21
|
if (typeof serviceOrConfiguration === "object") {
|
|
22
22
|
url = new URL(path, serviceOrConfiguration.host);
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
|
-
url = getServiceURL(serviceOrConfiguration, path);
|
|
25
|
+
url = getServiceURL(serviceOrConfiguration, path, sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.environment);
|
|
26
26
|
}
|
|
27
27
|
if (options && options.search) {
|
|
28
28
|
url.search = stringifyParameters(options.search);
|
package/esm/lib/core/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAe,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAe,MAAM,UAAU,CAAC;AAK1E;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAgB,EAChB,IAAI,GAAG,EAAE,EACT,cAA2B,cAAc,EAAE;IAE3C,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,KAAK,CACnB,sBAAkD,EAClD,IAAY,EACZ,OAEC,EACD,UAAuB;IAEvB,IAAI,GAAG,CAAC;IACR,IAAI,OAAO,sBAAsB,KAAK,QAAQ,EAAE;QAC9C,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC;KAClD;SAAM;QACL,GAAG,GAAG,aAAa,CAAC,sBAAsB,EAAE,IAAI,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,CAAC,CAAC;KAC5E;IACD,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,GAAG,CAAC,MAAM,GAAG,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;KAClD;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAOnC;IACC,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACxB;;eAEG;YACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SAClC;aAAM,IAAI,KAAK,KAAK,SAAS,EAAE;YAC9B,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;SAChC;KACF;IACD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -113,6 +113,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
113
113
|
query?: {
|
|
114
114
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
115
115
|
} | undefined;
|
|
116
|
+
headers?: import("../types").Headers | undefined;
|
|
116
117
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
117
118
|
code?: "success" | undefined;
|
|
118
119
|
data?: ({
|
|
@@ -879,6 +880,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
879
880
|
query?: {
|
|
880
881
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
881
882
|
} | undefined;
|
|
883
|
+
headers?: import("../types").Headers | undefined;
|
|
882
884
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
883
885
|
code?: "success" | undefined;
|
|
884
886
|
data?: ({
|
|
@@ -2402,6 +2404,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2402
2404
|
query?: {
|
|
2403
2405
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2404
2406
|
} | undefined;
|
|
2407
|
+
headers?: import("../types").Headers | undefined;
|
|
2405
2408
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2406
2409
|
code?: "success" | undefined;
|
|
2407
2410
|
data?: {
|
|
@@ -2505,6 +2508,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2505
2508
|
query?: {
|
|
2506
2509
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2507
2510
|
} | undefined;
|
|
2511
|
+
headers?: import("../types").Headers | undefined;
|
|
2508
2512
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2509
2513
|
code?: "success" | undefined;
|
|
2510
2514
|
data?: ({
|
|
@@ -2940,6 +2944,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2940
2944
|
query?: {
|
|
2941
2945
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2942
2946
|
} | undefined;
|
|
2947
|
+
headers?: import("../types").Headers | undefined;
|
|
2943
2948
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2944
2949
|
code?: "success" | undefined;
|
|
2945
2950
|
data?: ({
|
|
@@ -3396,6 +3401,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
3396
3401
|
query?: {
|
|
3397
3402
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
3398
3403
|
} | undefined;
|
|
3404
|
+
headers?: import("../types").Headers | undefined;
|
|
3399
3405
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
3400
3406
|
code?: "success" | undefined;
|
|
3401
3407
|
data?: {
|
|
@@ -3427,6 +3433,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
3427
3433
|
query?: {
|
|
3428
3434
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
3429
3435
|
} | undefined;
|
|
3436
|
+
headers?: import("../types").Headers | undefined;
|
|
3430
3437
|
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
3431
3438
|
code?: "success" | undefined;
|
|
3432
3439
|
data?: {
|
|
@@ -1 +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;AA8B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB
|
|
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;AA8B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BxD"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="@globus/types" />
|
|
8
|
-
import type { Segment, ServiceMethodOptions, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments,
|
|
8
|
+
import type { Segment, ServiceMethodOptions, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments, BaseServiceMethodOptions } from "../types";
|
|
9
9
|
/**
|
|
10
10
|
* Service methods for the Globus Connect Server Manager API.
|
|
11
11
|
*/
|
|
@@ -35,13 +35,15 @@ export type GCSConfiguration = {
|
|
|
35
35
|
* the first parameter is always a GCSConfiguration object.
|
|
36
36
|
*/
|
|
37
37
|
export type GCSServiceMethod<O extends ServiceMethodOptions, R extends Response = Response> = (configuration: GCSConfiguration, methodOptions?: O & {
|
|
38
|
-
query?:
|
|
38
|
+
query?: BaseServiceMethodOptions["query"];
|
|
39
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
39
40
|
}, sdkOptions?: SDKOptions) => ReturnType<ServiceMethod<O, R>>;
|
|
40
41
|
/**
|
|
41
42
|
* The GCSServiceMethodDynamicSegments type is similar to the core ServiceMethodDynamicSegments type, but
|
|
42
43
|
* the first parameter is always a GCSConfiguration object.
|
|
43
44
|
*/
|
|
44
45
|
export type GCSServiceMethodDynamicSegments<S extends Segment, O extends ServiceMethodOptions, R extends Response = Response> = (configuration: GCSConfiguration, segments: S, methodOptions?: O & {
|
|
45
|
-
query?:
|
|
46
|
+
query?: BaseServiceMethodOptions["query"];
|
|
47
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
46
48
|
}, sdkOptions?: SDKOptions) => ReturnType<ServiceMethodDynamicSegments<S, O, R>>;
|
|
47
49
|
//# 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;;AAEH,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,4BAA4B,EAC5B,
|
|
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,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,UAKhE;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,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,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,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
13
13
|
query?: {
|
|
14
14
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
15
15
|
} | undefined;
|
|
16
|
+
headers?: import("../../types").Headers | undefined;
|
|
16
17
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listCollections"]["responses"]["200"]["content"]["application/json"]>>;
|
|
17
18
|
/**
|
|
18
19
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
@@ -25,5 +26,6 @@ export declare const get: (configuration: import("../index").GCSConfiguration, c
|
|
|
25
26
|
query?: {
|
|
26
27
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
27
28
|
} | undefined;
|
|
29
|
+
headers?: import("../../types").Headers | undefined;
|
|
28
30
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["getCollection"]["responses"]["200"]["content"]["application/json"]>>;
|
|
29
31
|
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACjF,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;8EAKb,QACD,kBACE,UAAU,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/E,CAgBF,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const update: (configuration: import("../index").GCSConfiguration
|
|
|
13
13
|
query?: {
|
|
14
14
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
15
15
|
} | undefined;
|
|
16
|
+
headers?: import("../../types").Headers | undefined;
|
|
16
17
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["putEndpoint"]["responses"]["200"]["content"]["application/json"]>>;
|
|
17
18
|
/**
|
|
18
19
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#patchEndpoint
|
|
@@ -29,5 +30,6 @@ export declare const patch: (configuration: import("../index").GCSConfiguration,
|
|
|
29
30
|
query?: {
|
|
30
31
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
31
32
|
} | undefined;
|
|
33
|
+
headers?: import("../../types").Headers | undefined;
|
|
32
34
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["patchEndpoint"]["responses"]["200"]["content"]["application/json"]>>;
|
|
33
35
|
//# 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":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,GAAG,0IAIb,QACD,kBACE,UAAU,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7E,CAWgC,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,MAAM;aAoBR,UAAU,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,GAAG,0IAIb,QACD,kBACE,UAAU,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7E,CAWgC,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,MAAM;aAoBR,UAAU,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;8EAhB/E,QACD,kBACE,UAAU,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7E,CAcD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK;IAoBhB;;;;;OAKG;aAEC,UAAU,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,GACzE,OAAO,MAAM,EAAE,OAAO,CAAC;;;;;;8EAxB1B,QACD,kBACE,UAAU,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/E,CAsBD,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
11
11
|
query?: {
|
|
12
12
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
headers?: import("../../types").Headers | undefined;
|
|
14
15
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listRoles"]["responses"]["200"]["content"]["application/json"]>>;
|
|
15
16
|
/**
|
|
16
17
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#getRole
|
|
@@ -29,5 +30,6 @@ export declare const create: (configuration: import("../index").GCSConfiguration
|
|
|
29
30
|
query?: {
|
|
30
31
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
31
32
|
} | undefined;
|
|
33
|
+
headers?: import("../../types").Headers | undefined;
|
|
32
34
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["postRoles"]["responses"]["200"]["content"]["application/json"]>>;
|
|
33
35
|
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/roles.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/roles.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC3E,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,2JAKb,QACD,kBACE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACzE,CAcF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,2JAKhB,QACD,kBACE,UAAU,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC5E,CAeF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;aAoBR,UAAU,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;8EAhB7E,QACD,kBACE,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC3E,CAcD,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
11
11
|
query?: {
|
|
12
12
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
headers?: import("../../types").Headers | undefined;
|
|
14
15
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listStorageGateways"]["responses"]["200"]["content"]["application/json"]>>;
|
|
15
16
|
/**
|
|
16
17
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#getStorageGateway
|
|
@@ -23,5 +24,6 @@ export declare const get: (configuration: import("../index").GCSConfiguration, s
|
|
|
23
24
|
query?: {
|
|
24
25
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
25
26
|
} | undefined;
|
|
27
|
+
headers?: import("../../types").Headers | undefined;
|
|
26
28
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["getStorageGateway"]["responses"]["200"]["content"]["application/json"]>>;
|
|
27
29
|
//# sourceMappingURL=storage-gateways.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-gateways.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/storage-gateways.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"storage-gateways.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/storage-gateways.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,qBAAqB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACrF,CAaD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;8EAKb,QACD,kBACE,UAAU,CAAC,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACnF,CAgBF,CAAC"}
|
|
@@ -12,6 +12,7 @@ export declare const getAll: (configuration: import("../index").GCSConfiguration
|
|
|
12
12
|
query?: {
|
|
13
13
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
14
14
|
} | undefined;
|
|
15
|
+
headers?: import("../../types").Headers | undefined;
|
|
15
16
|
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listUserCredentials"]["responses"]["200"]["content"]["application/json"]>>;
|
|
16
17
|
/**
|
|
17
18
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#getUserCredential
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/user-credentials.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"user-credentials.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/user-credentials.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa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version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,UAAU,CAAC,EAAE,UAAU,qBA6BxB"}
|
|
@@ -34,7 +34,7 @@ export function serviceRequest(config, options, sdkOptions) {
|
|
|
34
34
|
var _a, _b, _c;
|
|
35
35
|
return fetchWithScope(config.scope, build(config.service, config.path, {
|
|
36
36
|
search: options === null || options === void 0 ? void 0 : options.query,
|
|
37
|
-
}), Object.assign(Object.assign({ method: config.method, body: (options === null || options === void 0 ? void 0 : options.payload) ? JSON.stringify(options.payload) : undefined }, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options), {
|
|
37
|
+
}, sdkOptions), Object.assign(Object.assign({ method: config.method, body: (options === null || options === void 0 ? void 0 : options.payload) ? JSON.stringify(options.payload) : undefined }, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options), {
|
|
38
38
|
/**
|
|
39
39
|
* Merge the headers from the options and SDK options.
|
|
40
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMpC,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAyB,EACzB,OAA8B,EAC9B,UAAuB;;IAEvB,OAAO,cAAc,CACnB,MAAM,CAAC,KAAK,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMpC,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAyB,EACzB,OAA8B,EAC9B,UAAuB;;IAEvB,OAAO,cAAc,CACnB,MAAM,CAAC,KAAK,EACZ,KAAK,CACH,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,IAAI,EACX;QACE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;KACvB,EACD,UAAU,CACX,gCAEC,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,IAAI,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,IACjE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO;QAC7B;;WAEG;QACH,OAAO,kCACF,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,GAKhB,MAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,0CAAE,OAAO,KAG3C,CAAC;AACJ,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// <reference types="@globus/types/transfer" />
|
|
4
4
|
/// <reference types="@globus/types/transfer" />
|
|
5
5
|
/// <reference types="@globus/types/search" />
|
|
6
|
-
import type { SDKOptions } from "../../../services/types";
|
|
6
|
+
import type { BaseServiceMethodOptions, SDKOptions } from "../../../services/types";
|
|
7
7
|
/**
|
|
8
8
|
* Get a list of endpoints matching the search filters in a given search scope.
|
|
9
9
|
* @see https://docs.globus.org/api/transfer/endpoint_search/#endpoint_search
|
|
@@ -14,6 +14,7 @@ export declare const endpointSearch: (options?: {
|
|
|
14
14
|
* to `satisfies` `ServiceMethod`.
|
|
15
15
|
*/
|
|
16
16
|
query?: Globus.Transfer.EndpointSearchQuery;
|
|
17
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
17
18
|
}, sdkOptions?: SDKOptions) => Promise<Response>;
|
|
18
19
|
export default endpointSearch;
|
|
19
20
|
//# sourceMappingURL=endpoint-search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-search.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;;;AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"endpoint-search.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":";;;;;AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,UAAU,EACX,MAAM,yBAAyB,CAAC;AAIjC;;;GAGG;AACH,eAAO,MAAM,cAAc,aAIf;IACR;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,QAAQ,CAAC,mBAAmB,CAAC;IAC5C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,eACY,UAAU,sBAmBxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-search.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"endpoint-search.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAE/B;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;AAC5B;;GAEG;AACH,OAOC,EACD,UAAuB;IAEvB,MAAM,qBAAqB,mCACtB,OAAO;QACV;;;WAGG;QACH,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAsD,GACvE,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,mDAAmD;QAC1D,IAAI,EAAE,wBAAwB;KAC/B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { FetchOverrides } from "../core/fetch";
|
|
2
1
|
import { stringifyParameters } from "../core/url";
|
|
2
|
+
import { ENVIRONMENTS } from "../core/global";
|
|
3
|
+
import type { FetchOverrides } from "../core/fetch";
|
|
3
4
|
export interface JSONFetchResponse<Res> extends Response {
|
|
4
5
|
json(): Promise<Res>;
|
|
5
6
|
}
|
|
6
7
|
export type SDKOptions = {
|
|
8
|
+
environment?: (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];
|
|
7
9
|
fetch?: {
|
|
8
10
|
options: FetchOverrides;
|
|
9
11
|
};
|
|
@@ -29,12 +31,9 @@ export type ServiceMethodResponse = {
|
|
|
29
31
|
* Our `stringifyParameters` function defines what types of query parameters
|
|
30
32
|
* can actually be serialized as part of the URL.
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
type UnknownQueryParameters = Parameters<typeof stringifyParameters>[0];
|
|
33
35
|
export type Headers = Record<string, string>;
|
|
34
|
-
|
|
35
|
-
* Our standard options type for service methods.
|
|
36
|
-
*/
|
|
37
|
-
export type ServiceMethodOptions = {
|
|
36
|
+
export type BaseServiceMethodOptions = {
|
|
38
37
|
/**
|
|
39
38
|
* Query parmeters to send with the request.
|
|
40
39
|
*/
|
|
@@ -47,14 +46,19 @@ export type ServiceMethodOptions = {
|
|
|
47
46
|
* The headers to send with the request.
|
|
48
47
|
*/
|
|
49
48
|
headers?: Headers;
|
|
50
|
-
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Our standard options type for service methods.
|
|
52
|
+
*/
|
|
53
|
+
export type ServiceMethodOptions = BaseServiceMethodOptions | undefined | never;
|
|
51
54
|
export type Segment = string | Record<string, string>;
|
|
52
55
|
export type ServiceMethod<O extends ServiceMethodOptions, R extends Response = Response> = (methodOptions?: O & {
|
|
53
|
-
query?:
|
|
54
|
-
headers?:
|
|
56
|
+
query?: BaseServiceMethodOptions["query"];
|
|
57
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
55
58
|
}, sdkOptions?: SDKOptions) => Promise<R>;
|
|
56
59
|
export type ServiceMethodDynamicSegments<S extends Segment, O extends ServiceMethodOptions, R extends Response = Response> = (segments: S, methodOptions?: O & {
|
|
57
|
-
query?:
|
|
58
|
-
headers?:
|
|
60
|
+
query?: BaseServiceMethodOptions["query"];
|
|
61
|
+
headers?: BaseServiceMethodOptions["headers"];
|
|
59
62
|
}, sdkOptions?: SDKOptions) => Promise<R>;
|
|
63
|
+
export {};
|
|
60
64
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,WAAW,iBAAiB,CAAC,GAAG,CAAE,SAAQ,QAAQ;IACtD,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;IAC/D,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,cAAc,CAAC;KACzB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,E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AAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globus/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0-alpha",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Globus SDK for Javascript",
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"optional": true
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "73f87b3d3efd5506dae97bdfeec43dc567b9ff4f"
|
|
27
27
|
}
|
package/umd/globus.production.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var globus;(()=>{var e={724:function(e,t,r){var o;e.exports=(o=o||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==r.g&&r.g.crypto&&(o=r.g.crypto),!o)try{o=r(56)}catch(e){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,o=this.sigBytes,n=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<n;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(var a=0;a<n;a+=4)t[o+a>>>2]=r[a>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new u.init(t,e)}}),l=s.enc={},f=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,o=[],n=0;n<r;n++){var i=t[n>>>2]>>>24-n%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o+=2)r[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new u.init(r,t/2)}},p=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,o=[],n=0;n<r;n++){var i=t[n>>>2]>>>24-n%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new u.init(r,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,o=this._data,n=o.words,i=o.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,i);if(c){for(var f=0;f<c;f+=s)this._doProcessBlock(n,f);r=n.splice(0,c),o.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),o)},676:function(e,t,r){var o,n,i;e.exports=(o=r(724),i=(n=o).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,o=this._map;e.clamp();for(var n=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)n.push(o.charAt(s>>>6*(3-a)&63));var c=o.charAt(64);if(c)for(;n.length%4;)n.push(c);return n.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var n=0;n<r.length;n++)o[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var o=[],n=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[n>>>2]|=a<<24-n%4*8,n++}return i.create(o,n)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},876:function(e,t,r){var o;e.exports=(o=r(724),function(){if("function"==typeof ArrayBuffer){var e=o.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,o=[],n=0;n<r;n++)o[n>>>2]|=e[n]<<24-n%4*8;t.call(this,o,r)}else t.apply(this,arguments)};r.prototype=e}}(),o.lib.WordArray)},287:function(e,t,r){var o;e.exports=(o=r(724),function(e){var t=o,r=t.lib,n=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),o=2;o<=r;o++)if(!(t%o))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var o=2,n=0;n<64;)t(o)&&(n<8&&(a[n]=r(e.pow(o,.5))),c[n]=r(e.pow(o,1/3)),n++),o++}();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,o=r[0],n=r[1],i=r[2],s=r[3],a=r[4],l=r[5],f=r[6],p=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var d=u[h-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[h-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[h]=g+u[h-7]+v+u[h-16]}var b=o&n^o&i^n&i,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&f)+c[h]+u[h];p=f,f=l,l=a,a=s+w|0,s=i,i=n,n=o,o=w+(m+b)|0}r[0]=r[0]+o|0,r[1]=r[1]+n|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,o=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(o/4294967296),r[15+(n+64>>>9<<4)]=o,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),o.SHA256)},107:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(287)),i=o(r(676)),s=o(r(876)),a=function(){function e(e){this.state="",this.codeVerifier="",this.config=e}return e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,{method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,n.default)(this.getCodeVerifier());return i.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,s.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,o){return e.error?o({error:e.error}):e.state!==t.getState()?o({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=a},98:(e,t,r)=>{var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,n=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,n="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e,t,r,o=d(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=l(e),t=f(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[l(e)]},h.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},h.prototype.set=function(e,t){this.map[l(e)]=f(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,n=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(o=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];S.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,o){return new Promise((function(n,s){var c=new w(e,o);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();t.append(o,n)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new S(o,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof h?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){u.setRequestHeader(e,f(o.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",l)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=h,r.Request=w,r.Response=S),t.Headers=h,t.Request=w,t.Response=S,t.fetch=A}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=o.fetch?o:n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},56:()=>{}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{auth:()=>c,authorization:()=>u,flows:()=>S,gcs:()=>j,groups:()=>m,search:()=>g,timer:()=>I,transfer:()=>h});var e={};r.r(e),r.d(e,{HOSTS:()=>L,ID:()=>C});var t={};r.r(t),r.d(t,{HOSTS:()=>H,ID:()=>N});var n={};r.r(n),r.d(n,{HOSTS:()=>F,ID:()=>k,SCOPES:()=>M});var i={};r.r(i),r.d(i,{HOSTS:()=>$,ID:()=>G,SCOPES:()=>q});var s={};r.r(s),r.d(s,{HOSTS:()=>z,ID:()=>V,SCOPES:()=>W});var a={};r.r(a),r.d(a,{HOSTS:()=>J,ID:()=>Y});var c={};r.r(c),r.d(c,{CONFIG:()=>re,getAuthorizationEndpoint:()=>oe,getTokenEndpoint:()=>ne});var u={};r.r(u),r.d(u,{PKCEAuthorization:()=>me,incremental:()=>_e,pkce:()=>we});var l={};r.r(l),r.d(l,{ls:()=>je,mkdir:()=>Ie,rename:()=>Be,symlink:()=>Re});var f={};r.r(f),r.d(f,{submissionId:()=>Ce,submitDelete:()=>Ue,submitTransfer:()=>De});var p={};r.r(p),r.d(p,{get:()=>Le});var h={};r.r(h),r.d(h,{CONFIG:()=>Ne,endpoint:()=>p,endpointSearch:()=>Pe,fileOperations:()=>l,taskSubmission:()=>f});var d={};r.r(d),r.d(d,{get:()=>He,post:()=>ke});var g={};r.r(g),r.d(g,{CONFIG:()=>Fe,query:()=>d});var y={};r.r(y),r.d(y,{get:()=>Ge,getMyGroups:()=>Me});var v={};r.r(v),r.d(v,{get:()=>$e});var b={};r.r(b),r.d(b,{act:()=>qe});var m={};r.r(m),r.d(m,{CONFIG:()=>Ve,groups:()=>y,membership:()=>b,policies:()=>v});var w={};r.r(w),r.d(w,{destroy:()=>Ye,get:()=>We,getAll:()=>ze});var _={};r.r(_),r.d(_,{getAll:()=>Je});var S={};r.r(S),r.d(S,{CONFIG:()=>Ke,flows:()=>w,runs:()=>_});var O={};r.r(O),r.d(O,{get:()=>Qe,getAll:()=>Xe});var A={};r.r(A),r.d(A,{get:()=>Ze,patch:()=>tt,update:()=>et});var T={};r.r(T),r.d(T,{create:()=>it,get:()=>ot,getAll:()=>rt,remove:()=>nt});var E={};r.r(E),r.d(E,{get:()=>at,getAll:()=>st});var P={};r.r(P),r.d(P,{get:()=>ut,getAll:()=>ct});var x={};r.r(x),r.d(x,{info:()=>lt});var j={};r.r(j),r.d(j,{collections:()=>O,endpoint:()=>A,getRequiredScopes:()=>pt,roles:()=>T,storageGateways:()=>E,userCredentials:()=>P,versioning:()=>x});var I={};function B(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)}function R(e,t,r,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?n.call(e,r):n?n.value=r:t.set(e,r),r}r.r(I),r.d(I,{CONFIG:()=>dt,create:()=>ht}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var U=r(107),D=r.n(U);const C="AUTH",L={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},N="TRANSFER",H={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},k="FLOWS",F={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},M={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},G="GROUPS",$={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},q={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},V="SEARCH",z={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},W={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},Y="TIMER",J={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"};class K extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function X(e,t=void 0){const r="undefined"!=typeof window?window:process;let o;return o=function(e){return typeof window==typeof e}(r)?r:r.env,e in o?o[e]:t}const Q={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Z(){const e=X("GLOBUS_SDK_ENVIRONMENT",Q.PRODUCTION);if(!e||!Object.values(Q).includes(e))throw new K("GLOBUS_SDK_ENVIRONMENT",e);return e}const ee={[C]:L,[N]:H,[k]:F,[G]:$,[V]:z,[Y]:J};function te(e,t,r){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=Z()){const o=function(e,t=Z()){const r=function(e,t){return ee[e][t]}(e,t);return X(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,o)}(e,t),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;for(const[r,o]of Object.entries(e))Array.isArray(o)?t.set(r,o.join(",")):void 0!==o&&t.set(r,String(o));return t.toString()}(r.search)),o.toString()}const re=e;function oe(){return te(C,"/v2/oauth2/authorize")}function ne(){return te(C,"/v2/oauth2/token")}var ie;class se{constructor(){ie.set(this,{})}get(e){return B(this,ie,"f")[e]}set(e,t){B(this,ie,"f")[e]=t}remove(e){delete B(this,ie,"f")[e]}clear(){R(this,ie,{},"f")}}ie=new WeakMap;class ae{get(e){const t=localStorage.getItem(e);return null!==t?JSON.parse(t):null}set(e,t){localStorage.setItem(e,JSON.stringify(t))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}let ce;function ue(){if(!ce)throw Error("You must create a storage system.");return ce}function le(e){e.scope.split(" ").forEach((t=>{ue().set(t,e)}))}function fe(e){const t=ue().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}var pe,he,de,ge,ye,ve;let be;class me{constructor(e){if(pe.add(this),he.set(this,void 0),de.set(this,void 0),ge.set(this,void 0),be=function(e="memory"){if(!ce){let t;t="localStorage"===e?ae:"memory"===e?se:e,ce=new t}return ce}("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");R(this,de,Object.assign({client_id:e.client_id,authorization_endpoint:oe(),token_endpoint:ne()},e),"f"),R(this,he,B(this,pe,"m",ye).call(this),"f")}reset(){B(this,pe,"m",ve).call(this),ue().clear()}redirect(){this.reset(),window.location.replace(B(this,he,"f").authorizeUrl())}handleCodeRedirect(e={removeStateAndReplaceLocation:!0}){return t=this,r=void 0,n=function*(){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const o=yield B(this,he,"f").exchangeForAccessToken(t.toString());var n;R(this,ge,o,"f"),le(n=B(this,ge,"f")),"other_tokens"in n&&n.other_tokens.forEach(le),e.removeStateAndReplaceLocation&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t))},new((o=void 0)||(o=Promise))((function(e,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(s,a)}c((n=n.apply(t,r||[])).next())}));var t,r,o,n}hasToken(){return B(this,de,"f").requested_scopes.split(" ").every((e=>Boolean(fe(e))))}revoke(){this.reset()}}function we(e){return new me(e)}function _e(e){return new me(e)}he=new WeakMap,de=new WeakMap,ge=new WeakMap,pe=new WeakSet,ye=function(){return new(D())(B(this,de,"f"))},ve=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};var Se=r(98);const Oe=r.n(Se)();function Ae(e,t,r={}){const o=r.headers||{};if(!(null==o?void 0:o.Authorization)){const t=fe(e);t&&(o.Authorization=t)}return!(null==o?void 0:o["Content-Type"])&&(null==r?void 0:r.body)&&(o["Content-Type"]="application/json"),(null==r?void 0:r.__callable)?r.__callable(t,Object.assign(Object.assign({},r),{headers:o})):Oe(t,Object.assign(Object.assign({},r),{headers:o}))}var Te;function Ee(e,t,r){var o,n,i;return Ae(e.scope,te(e.service,e.path,{search:null==t?void 0:t.query}),Object.assign(Object.assign({method:e.method,body:(null==t?void 0:t.payload)?JSON.stringify(t.payload):void 0},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options),{headers:Object.assign(Object.assign({},null==t?void 0:t.headers),null===(i=null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options)||void 0===i?void 0:i.headers)}))}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Te||(Te={}));const Pe=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/endpoint_search"},r,t)};function xe(e){return e===Te.GET?{}:{"Content-Type":"application/json"}}const je=function(e,t,r){return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Ie=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==t?void 0:t.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Te.POST},o,r)},Be=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==t?void 0:t.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/rename`,method:Te.POST},o,r)},Re=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==t?void 0:t.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/symlink`,method:Te.POST},o,r)},Ue=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==e?void 0:e.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/delete",method:Te.POST},r,t)},De=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==e?void 0:e.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/transfer",method:Te.POST},r,t)},Ce=function(e,t){return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/submission_id"},e,t)},Le=function(e,t,r){return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/endpoint/${e}`},t,r)},Ne=t,He=function(e,t,r){return Ee({service:V,scope:W.SEARCH,path:`/v1/index/${e}/search`},t,r)},ke=function(e,t,r){return Ee({service:V,scope:W.SEARCH,path:`/v1/index/${e}/search`,method:Te.POST},t,r)},Fe=s,Me=function(e={},t){var r;return Ae(q.ALL,te(G,"/v2/groups/my_groups",{search:e.query}),Object.assign({},null===(r=null==t?void 0:t.fetch)||void 0===r?void 0:r.options))},Ge=function(e,t={},r){var o;return Ae(q.ALL,te(G,`/v2/groups/${e}`,{search:t.query}),Object.assign({},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},$e=function(e,t,r){var o;return Ae(q.ALL,te(G,`/v2/groups/${e}/policies`),Object.assign({},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},qe=function(e,t,r){var o;if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ae(q.ALL,te(G,`/v2/groups/${e}/policies`),Object.assign({method:"POST",body:JSON.stringify(t.payload)},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},Ve=i,ze=function(e,t){return Ee({service:k,scope:M.VIEW_FLOWS,path:"/flows"},e,t)},We=function(e,t,r){return Ee({service:k,scope:M.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Ye=function(e,t,r){return Ee({scope:M.MANAGE_FLOWS,service:k,path:`/flows/${e}`,method:Te.DELETE},t,r)},Je=function(e={},t){return Ee({service:k,scope:M.RUN_MANAGE,path:"/runs"},e,t)},Ke=n,Xe=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/collections"},t,r)},Qe=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/collections/${t}`},r,o)},Ze=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/endpoint"},t,r)},et=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/endpoint",method:Te.PUT},t,r)},tt=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/endpoint",method:Te.PATCH},t,r)},rt=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/roles"},t,r)},ot=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/roles/${t}`},r,o)},nt=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/roles/${t}`,method:Te.DELETE},r,o)},it=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/roles",method:Te.POST},t,r)},st=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/storage_gateways"},t,r)},at=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/storage_gateways/${t}`},r,o)},ct=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/user_credentials"},t,r)},ut=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/user_credentials/${t}`},r,o)},lt=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/info"},t,r)},ft={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function pt(e){return ft.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const ht=function(e,t){return Ee({service:Y,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Te.POST},e,t)},dt=a})(),globus=o})();
|
|
1
|
+
var globus;(()=>{var e={724:function(e,t,r){var o;e.exports=(o=o||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==r.g&&r.g.crypto&&(o=r.g.crypto),!o)try{o=r(56)}catch(e){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,o=this.sigBytes,n=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<n;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(var a=0;a<n;a+=4)t[o+a>>>2]=r[a>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new u.init(t,e)}}),l=s.enc={},f=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,o=[],n=0;n<r;n++){var i=t[n>>>2]>>>24-n%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o+=2)r[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new u.init(r,t/2)}},p=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,o=[],n=0;n<r;n++){var i=t[n>>>2]>>>24-n%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new u.init(r,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,o=this._data,n=o.words,i=o.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,i);if(c){for(var f=0;f<c;f+=s)this._doProcessBlock(n,f);r=n.splice(0,c),o.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),o)},676:function(e,t,r){var o,n,i;e.exports=(o=r(724),i=(n=o).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,o=this._map;e.clamp();for(var n=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)n.push(o.charAt(s>>>6*(3-a)&63));var c=o.charAt(64);if(c)for(;n.length%4;)n.push(c);return n.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var n=0;n<r.length;n++)o[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var o=[],n=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[n>>>2]|=a<<24-n%4*8,n++}return i.create(o,n)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},876:function(e,t,r){var o;e.exports=(o=r(724),function(){if("function"==typeof ArrayBuffer){var e=o.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,o=[],n=0;n<r;n++)o[n>>>2]|=e[n]<<24-n%4*8;t.call(this,o,r)}else t.apply(this,arguments)};r.prototype=e}}(),o.lib.WordArray)},287:function(e,t,r){var o;e.exports=(o=r(724),function(e){var t=o,r=t.lib,n=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),o=2;o<=r;o++)if(!(t%o))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var o=2,n=0;n<64;)t(o)&&(n<8&&(a[n]=r(e.pow(o,.5))),c[n]=r(e.pow(o,1/3)),n++),o++}();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,o=r[0],n=r[1],i=r[2],s=r[3],a=r[4],l=r[5],f=r[6],p=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var d=u[h-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[h-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[h]=g+u[h-7]+v+u[h-16]}var b=o&n^o&i^n&i,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&f)+c[h]+u[h];p=f,f=l,l=a,a=s+w|0,s=i,i=n,n=o,o=w+(m+b)|0}r[0]=r[0]+o|0,r[1]=r[1]+n|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,o=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(o/4294967296),r[15+(n+64>>>9<<4)]=o,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),o.SHA256)},107:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(287)),i=o(r(676)),s=o(r(876)),a=function(){function e(e){this.state="",this.codeVerifier="",this.config=e}return e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,{method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,n.default)(this.getCodeVerifier());return i.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,s.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,o){return e.error?o({error:e.error}):e.state!==t.getState()?o({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=a},98:(e,t,r)=>{var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,n=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,n="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e,t,r,o=d(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=l(e),t=f(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[l(e)]},h.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},h.prototype.set=function(e,t){this.map[l(e)]=f(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,n=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(o=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];S.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,o){return new Promise((function(n,s){var c=new w(e,o);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();t.append(o,n)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new S(o,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof h?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){u.setRequestHeader(e,f(o.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",l)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=h,r.Request=w,r.Response=S),t.Headers=h,t.Request=w,t.Response=S,t.fetch=A}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=o.fetch?o:n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},56:()=>{}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{auth:()=>c,authorization:()=>u,flows:()=>S,gcs:()=>j,groups:()=>m,search:()=>g,timer:()=>I,transfer:()=>h});var e={};r.r(e),r.d(e,{HOSTS:()=>L,ID:()=>C});var t={};r.r(t),r.d(t,{HOSTS:()=>H,ID:()=>N});var n={};r.r(n),r.d(n,{HOSTS:()=>F,ID:()=>k,SCOPES:()=>M});var i={};r.r(i),r.d(i,{HOSTS:()=>$,ID:()=>G,SCOPES:()=>q});var s={};r.r(s),r.d(s,{HOSTS:()=>z,ID:()=>V,SCOPES:()=>W});var a={};r.r(a),r.d(a,{HOSTS:()=>J,ID:()=>Y});var c={};r.r(c),r.d(c,{CONFIG:()=>re,getAuthorizationEndpoint:()=>oe,getTokenEndpoint:()=>ne});var u={};r.r(u),r.d(u,{PKCEAuthorization:()=>me,incremental:()=>_e,pkce:()=>we});var l={};r.r(l),r.d(l,{ls:()=>je,mkdir:()=>Ie,rename:()=>Be,symlink:()=>Re});var f={};r.r(f),r.d(f,{submissionId:()=>Ce,submitDelete:()=>Ue,submitTransfer:()=>De});var p={};r.r(p),r.d(p,{get:()=>Le});var h={};r.r(h),r.d(h,{CONFIG:()=>Ne,endpoint:()=>p,endpointSearch:()=>Pe,fileOperations:()=>l,taskSubmission:()=>f});var d={};r.r(d),r.d(d,{get:()=>He,post:()=>ke});var g={};r.r(g),r.d(g,{CONFIG:()=>Fe,query:()=>d});var y={};r.r(y),r.d(y,{get:()=>Ge,getMyGroups:()=>Me});var v={};r.r(v),r.d(v,{get:()=>$e});var b={};r.r(b),r.d(b,{act:()=>qe});var m={};r.r(m),r.d(m,{CONFIG:()=>Ve,groups:()=>y,membership:()=>b,policies:()=>v});var w={};r.r(w),r.d(w,{destroy:()=>Ye,get:()=>We,getAll:()=>ze});var _={};r.r(_),r.d(_,{getAll:()=>Je});var S={};r.r(S),r.d(S,{CONFIG:()=>Ke,flows:()=>w,runs:()=>_});var O={};r.r(O),r.d(O,{get:()=>Qe,getAll:()=>Xe});var A={};r.r(A),r.d(A,{get:()=>Ze,patch:()=>tt,update:()=>et});var T={};r.r(T),r.d(T,{create:()=>it,get:()=>ot,getAll:()=>rt,remove:()=>nt});var E={};r.r(E),r.d(E,{get:()=>at,getAll:()=>st});var P={};r.r(P),r.d(P,{get:()=>ut,getAll:()=>ct});var x={};r.r(x),r.d(x,{info:()=>lt});var j={};r.r(j),r.d(j,{collections:()=>O,endpoint:()=>A,getRequiredScopes:()=>pt,roles:()=>T,storageGateways:()=>E,userCredentials:()=>P,versioning:()=>x});var I={};function B(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)}function R(e,t,r,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?n.call(e,r):n?n.value=r:t.set(e,r),r}r.r(I),r.d(I,{CONFIG:()=>dt,create:()=>ht}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var U=r(107),D=r.n(U);const C="AUTH",L={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},N="TRANSFER",H={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},k="FLOWS",F={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},M={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},G="GROUPS",$={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},q={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},V="SEARCH",z={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},W={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},Y="TIMER",J={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"};class K extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function X(e,t=void 0){const r="undefined"!=typeof window?window:process;let o;return o=function(e){return typeof window==typeof e}(r)?r:r.env,e in o?o[e]:t}const Q={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Z(){const e=X("GLOBUS_SDK_ENVIRONMENT",Q.PRODUCTION);if(!e||!Object.values(Q).includes(e))throw new K("GLOBUS_SDK_ENVIRONMENT",e);return e}const ee={[C]:L,[N]:H,[k]:F,[G]:$,[V]:z,[Y]:J};function te(e,t,r,o){let n;return n="object"==typeof e?new URL(t,e.host):function(e,t="",r=Z()){const o=function(e,t=Z()){const r=function(e,t){return ee[e][t]}(e,t);return X(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,o)}(e,t,null==o?void 0:o.environment),r&&r.search&&(n.search=function(e){const t=new URLSearchParams;for(const[r,o]of Object.entries(e))Array.isArray(o)?t.set(r,o.join(",")):void 0!==o&&t.set(r,String(o));return t.toString()}(r.search)),n.toString()}const re=e;function oe(){return te(C,"/v2/oauth2/authorize")}function ne(){return te(C,"/v2/oauth2/token")}var ie;class se{constructor(){ie.set(this,{})}get(e){return B(this,ie,"f")[e]}set(e,t){B(this,ie,"f")[e]=t}remove(e){delete B(this,ie,"f")[e]}clear(){R(this,ie,{},"f")}}ie=new WeakMap;class ae{get(e){const t=localStorage.getItem(e);return null!==t?JSON.parse(t):null}set(e,t){localStorage.setItem(e,JSON.stringify(t))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}let ce;function ue(){if(!ce)throw Error("You must create a storage system.");return ce}function le(e){e.scope.split(" ").forEach((t=>{ue().set(t,e)}))}function fe(e){const t=ue().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}var pe,he,de,ge,ye,ve;let be;class me{constructor(e){if(pe.add(this),he.set(this,void 0),de.set(this,void 0),ge.set(this,void 0),be=function(e="memory"){if(!ce){let t;t="localStorage"===e?ae:"memory"===e?se:e,ce=new t}return ce}("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");R(this,de,Object.assign({client_id:e.client_id,authorization_endpoint:oe(),token_endpoint:ne()},e),"f"),R(this,he,B(this,pe,"m",ye).call(this),"f")}reset(){B(this,pe,"m",ve).call(this),ue().clear()}redirect(){this.reset(),window.location.replace(B(this,he,"f").authorizeUrl())}handleCodeRedirect(e={removeStateAndReplaceLocation:!0}){return t=this,r=void 0,n=function*(){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const o=yield B(this,he,"f").exchangeForAccessToken(t.toString());var n;R(this,ge,o,"f"),le(n=B(this,ge,"f")),"other_tokens"in n&&n.other_tokens.forEach(le),e.removeStateAndReplaceLocation&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t))},new((o=void 0)||(o=Promise))((function(e,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(s,a)}c((n=n.apply(t,r||[])).next())}));var t,r,o,n}hasToken(){return B(this,de,"f").requested_scopes.split(" ").every((e=>Boolean(fe(e))))}revoke(){this.reset()}}function we(e){return new me(e)}function _e(e){return new me(e)}he=new WeakMap,de=new WeakMap,ge=new WeakMap,pe=new WeakSet,ye=function(){return new(D())(B(this,de,"f"))},ve=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};var Se=r(98);const Oe=r.n(Se)();function Ae(e,t,r={}){const o=r.headers||{};if(!(null==o?void 0:o.Authorization)){const t=fe(e);t&&(o.Authorization=t)}return!(null==o?void 0:o["Content-Type"])&&(null==r?void 0:r.body)&&(o["Content-Type"]="application/json"),(null==r?void 0:r.__callable)?r.__callable(t,Object.assign(Object.assign({},r),{headers:o})):Oe(t,Object.assign(Object.assign({},r),{headers:o}))}var Te;function Ee(e,t,r){var o,n,i;return Ae(e.scope,te(e.service,e.path,{search:null==t?void 0:t.query},r),Object.assign(Object.assign({method:e.method,body:(null==t?void 0:t.payload)?JSON.stringify(t.payload):void 0},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options),{headers:Object.assign(Object.assign({},null==t?void 0:t.headers),null===(i=null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options)||void 0===i?void 0:i.headers)}))}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Te||(Te={}));const Pe=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/endpoint_search"},r,t)};function xe(e){return e===Te.GET?{}:{"Content-Type":"application/json"}}const je=function(e,t,r){return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Ie=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==t?void 0:t.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Te.POST},o,r)},Be=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==t?void 0:t.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/rename`,method:Te.POST},o,r)},Re=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==t?void 0:t.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/symlink`,method:Te.POST},o,r)},Ue=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==e?void 0:e.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/delete",method:Te.POST},r,t)},De=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},xe(Te.POST)),null==e?void 0:e.headers)};return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/transfer",method:Te.POST},r,t)},Ce=function(e,t){return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/submission_id"},e,t)},Le=function(e,t,r){return Ee({service:N,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/endpoint/${e}`},t,r)},Ne=t,He=function(e,t,r){return Ee({service:V,scope:W.SEARCH,path:`/v1/index/${e}/search`},t,r)},ke=function(e,t,r){return Ee({service:V,scope:W.SEARCH,path:`/v1/index/${e}/search`,method:Te.POST},t,r)},Fe=s,Me=function(e={},t){var r;return Ae(q.ALL,te(G,"/v2/groups/my_groups",{search:e.query}),Object.assign({},null===(r=null==t?void 0:t.fetch)||void 0===r?void 0:r.options))},Ge=function(e,t={},r){var o;return Ae(q.ALL,te(G,`/v2/groups/${e}`,{search:t.query}),Object.assign({},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},$e=function(e,t,r){var o;return Ae(q.ALL,te(G,`/v2/groups/${e}/policies`),Object.assign({},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},qe=function(e,t,r){var o;if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ae(q.ALL,te(G,`/v2/groups/${e}/policies`),Object.assign({method:"POST",body:JSON.stringify(t.payload)},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},Ve=i,ze=function(e,t){return Ee({service:k,scope:M.VIEW_FLOWS,path:"/flows"},e,t)},We=function(e,t,r){return Ee({service:k,scope:M.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Ye=function(e,t,r){return Ee({scope:M.MANAGE_FLOWS,service:k,path:`/flows/${e}`,method:Te.DELETE},t,r)},Je=function(e={},t){return Ee({service:k,scope:M.RUN_MANAGE,path:"/runs"},e,t)},Ke=n,Xe=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/collections"},t,r)},Qe=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/collections/${t}`},r,o)},Ze=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/endpoint"},t,r)},et=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/endpoint",method:Te.PUT},t,r)},tt=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/endpoint",method:Te.PATCH},t,r)},rt=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/roles"},t,r)},ot=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/roles/${t}`},r,o)},nt=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/roles/${t}`,method:Te.DELETE},r,o)},it=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/roles",method:Te.POST},t,r)},st=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/storage_gateways"},t,r)},at=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/storage_gateways/${t}`},r,o)},ct=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/user_credentials"},t,r)},ut=function(e,t,r,o){return Ee({service:e,scope:pt(e),path:`/api/user_credentials/${t}`},r,o)},lt=function(e,t,r){return Ee({service:e,scope:pt(e),path:"/api/info"},t,r)},ft={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function pt(e){return ft.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const ht=function(e,t){return Ee({service:Y,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Te.POST},e,t)},dt=a})(),globus=o})();
|