@globus/sdk 0.1.9-alpha.0 → 0.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +28 -12
  2. package/dist/commonjs/src/index.d.ts +4 -0
  3. package/dist/commonjs/src/index.d.ts.map +1 -1
  4. package/dist/commonjs/src/index.js +5 -1
  5. package/dist/commonjs/src/index.js.map +1 -1
  6. package/dist/commonjs/src/lib/core/url.d.ts +12 -0
  7. package/dist/commonjs/src/lib/core/url.d.ts.map +1 -1
  8. package/dist/commonjs/src/lib/core/url.js +12 -0
  9. package/dist/commonjs/src/lib/core/url.js.map +1 -1
  10. package/dist/commonjs/src/lib/services/globus-connect-server/client.d.ts +37 -0
  11. package/dist/commonjs/src/lib/services/globus-connect-server/client.d.ts.map +1 -0
  12. package/dist/commonjs/src/lib/services/globus-connect-server/client.js +37 -0
  13. package/dist/commonjs/src/lib/services/globus-connect-server/client.js.map +1 -0
  14. package/dist/commonjs/src/lib/services/globus-connect-server/index.d.ts +41 -6
  15. package/dist/commonjs/src/lib/services/globus-connect-server/index.d.ts.map +1 -1
  16. package/dist/commonjs/src/lib/services/globus-connect-server/index.js +18 -12
  17. package/dist/commonjs/src/lib/services/globus-connect-server/index.js.map +1 -1
  18. package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.d.ts +11 -0
  19. package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.d.ts.map +1 -0
  20. package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.js +26 -0
  21. package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.js.map +1 -0
  22. package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.d.ts +1 -1
  23. package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
  24. package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.js +2 -4
  25. package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -1
  26. package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.d.ts +1 -1
  27. package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -1
  28. package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.js +3 -5
  29. package/dist/commonjs/src/lib/services/globus-connect-server/service/versioning.js.map +1 -1
  30. package/dist/commonjs/src/lib/services/types.d.ts +2 -3
  31. package/dist/commonjs/src/lib/services/types.d.ts.map +1 -1
  32. package/dist/commonjs/tsconfig.cjs.tsbuildinfo +1 -1
  33. package/dist/src/index.d.ts +4 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/index.js +5 -0
  36. package/dist/src/index.js.map +1 -1
  37. package/dist/src/lib/core/url.d.ts +12 -0
  38. package/dist/src/lib/core/url.d.ts.map +1 -1
  39. package/dist/src/lib/core/url.js +12 -0
  40. package/dist/src/lib/core/url.js.map +1 -1
  41. package/dist/src/lib/services/globus-connect-server/client.d.ts +37 -0
  42. package/dist/src/lib/services/globus-connect-server/client.d.ts.map +1 -0
  43. package/dist/src/lib/services/globus-connect-server/client.js +33 -0
  44. package/dist/src/lib/services/globus-connect-server/client.js.map +1 -0
  45. package/dist/src/lib/services/globus-connect-server/index.d.ts +41 -6
  46. package/dist/src/lib/services/globus-connect-server/index.d.ts.map +1 -1
  47. package/dist/src/lib/services/globus-connect-server/index.js +19 -15
  48. package/dist/src/lib/services/globus-connect-server/index.js.map +1 -1
  49. package/dist/src/lib/services/globus-connect-server/service/collections.d.ts +11 -0
  50. package/dist/src/lib/services/globus-connect-server/service/collections.d.ts.map +1 -0
  51. package/dist/src/lib/services/globus-connect-server/service/collections.js +23 -0
  52. package/dist/src/lib/services/globus-connect-server/service/collections.js.map +1 -0
  53. package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts +1 -1
  54. package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
  55. package/dist/src/lib/services/globus-connect-server/service/endpoint.js +2 -4
  56. package/dist/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -1
  57. package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts +1 -1
  58. package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -1
  59. package/dist/src/lib/services/globus-connect-server/service/versioning.js +2 -4
  60. package/dist/src/lib/services/globus-connect-server/service/versioning.js.map +1 -1
  61. package/dist/src/lib/services/types.d.ts +2 -3
  62. package/dist/src/lib/services/types.d.ts.map +1 -1
  63. package/dist/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +5 -6
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://github.com/globusonline/globus-js/actions/workflows/test-sdk.yml/badge.svg)
1
+ ![@globus/sdk - test](https://github.com/globusonline/globus-js/actions/workflows/test-sdk.yml/badge.svg?branch=main)
2
2
 
3
3
  The Globus SDK for JavaScript provides first class TypeScript support and makes it easy to call Globus services using idiomatic JavaScript APIs to build Node.js and web applications.
4
4
 
@@ -6,25 +6,41 @@ The Globus SDK for JavaScript provides first class TypeScript support and makes
6
6
  - [@globus/sdk API Documentation](https://globus-jb.s3.amazonaws.com/@globus/sdk/index.html)
7
7
 
8
8
 
9
+ ## Installation
10
+
11
+ If you are not using Typescript, you can install the SDK with the following command:
12
+
13
+ ```sh
14
+ npm install @globus/sdk
15
+ ```
16
+
17
+ ### Typescript
18
+
19
+ `@globus/sdk` is written in Typescript and includes type definitions for it's internal types, Globus platform types (i.e. API responses) are provided by the `@globus/types` package and must be installed separately.
20
+
21
+ ```sh
22
+ npm install @globus/sdk @globus/types
23
+ ```
24
+
9
25
  ## Supported Platforms
10
26
 
11
27
  ### Node.js
12
28
 
13
29
  Our goal is to support all Active LTS [Node.js releases](https://nodejs.org/en/about/releases/). We intend to support all Maintenance LTS versions until their official end-of-life.
14
30
 
15
- | Version | |
16
- |------------|---------|
17
- | Node.js 14 | ✅ |
18
- | Node.js 16 | ✅ |
19
- | Node.js 18 | ✅ |
31
+ | Version | | |
32
+ |------------|---------|-------|
33
+ | Node.js 14 | ✅ | **⚠️** Node.js 14 support is expected to be removed before v1.0.0 (EOL) |
34
+ | Node.js 16 | ✅ ||
35
+ | Node.js 18 | ✅ ||
20
36
 
21
37
  ### Browser Support
22
38
 
23
39
  Officially, the SDK supports widely adopted evergreen browsers: Edge, Chrome, Safari and Firefox.
24
40
 
25
- | Browser | Version |
26
- |---------|---------|
27
- | Google Chrome | |
28
- | Mozilla Firefox | |
29
- | Microsoft Edge | |
30
- | Apple Safari | |
41
+ | Browser | Version |
42
+ |-----------------|---------|
43
+ | Google Chrome | |
44
+ | Mozilla Firefox | |
45
+ | Microsoft Edge | |
46
+ | Apple Safari | |
@@ -1,6 +1,10 @@
1
+ /**
2
+ * @module @globus/sdk
3
+ */
1
4
  export * from "./lib/sdk";
2
5
  export * as authorization from "./lib/core/authorization";
3
6
  export * as auth from "./lib/services/auth";
4
7
  export * as transfer from "./lib/services/transfer";
5
8
  export * as search from "./lib/services/search";
9
+ export * as gcs from "./lib/services/globus-connect-server";
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC"}
@@ -1,4 +1,7 @@
1
1
  "use strict";
2
+ /**
3
+ * @module @globus/sdk
4
+ */
2
5
  /// <reference types="@globus/types" />
3
6
  /// <reference types="@globus/types/auth" />
4
7
  /// <reference types="@globus/types/transfer" />
@@ -17,10 +20,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
20
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
21
  };
19
22
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
23
+ exports.gcs = exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
21
24
  __exportStar(require("./lib/sdk"), exports);
22
25
  exports.authorization = require("./lib/core/authorization");
23
26
  exports.auth = require("./lib/services/auth");
24
27
  exports.transfer = require("./lib/services/transfer");
25
28
  exports.search = require("./lib/services/search");
29
+ exports.gcs = require("./lib/services/globus-connect-server");
26
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,4CAA4C;AAC5C,gDAAgD;;;;;;;;;;;;;;;;;AAEhD,4CAA0B;AAC1B,4DAA0D;AAC1D,8CAA4C;AAC5C,sDAAoD;AACpD,kDAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,uCAAuC;AACvC,4CAA4C;AAC5C,gDAAgD;;;;;;;;;;;;;;;;;AAEhD,4CAA0B;AAC1B,4DAA0D;AAC1D,8CAA4C;AAC5C,sDAAoD;AACpD,kDAAgD;AAChD,8DAA4D"}
@@ -1,6 +1,18 @@
1
1
  import { Environment } from "./global";
2
2
  import type { Service } from "./global";
3
+ /**
4
+ * Return the base URL for a service (based on the environment).
5
+ * @param service The service to build the URL for.
6
+ * @param path The path to the resource.
7
+ * @param environment The environment to use.
8
+ */
3
9
  export declare function getServiceURL(service: Service, path?: string, environment?: Environment): URL;
10
+ /**
11
+ * Build a URL for a service.
12
+ * @param service The service to build the URL for.
13
+ * @param path The path to the resource.
14
+ * @param options Additional options for the URL.
15
+ */
4
16
  export declare function build(service: Service, path: string, options?: {
5
17
  search?: ConstructorParameters<typeof URLSearchParams>[0];
6
18
  }): string;
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED,wBAAgB,KAAK,CACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D,UAQF"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D,UAQF"}
@@ -2,11 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.build = exports.getServiceURL = void 0;
4
4
  const global_1 = require("./global");
5
+ /**
6
+ * Return the base URL for a service (based on the environment).
7
+ * @param service The service to build the URL for.
8
+ * @param path The path to the resource.
9
+ * @param environment The environment to use.
10
+ */
5
11
  function getServiceURL(service, path = "", environment = (0, global_1.getEnvironment)()) {
6
12
  const base = (0, global_1.getServiceBaseUrl)(service, environment);
7
13
  return new URL(path, base);
8
14
  }
9
15
  exports.getServiceURL = getServiceURL;
16
+ /**
17
+ * Build a URL for a service.
18
+ * @param service The service to build the URL for.
19
+ * @param path The path to the resource.
20
+ * @param options Additional options for the URL.
21
+ */
10
22
  function build(service, path, options) {
11
23
  const url = getServiceURL(service, path);
12
24
  if (options && options.search) {
@@ -1 +1 @@
1
- {"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAG1E,SAAgB,aAAa,CAC3B,OAAgB,EAChB,IAAI,GAAG,EAAE,EACT,cAA2B,IAAA,uBAAc,GAAE;IAE3C,MAAM,IAAI,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAPD,sCAOC;AAED,SAAgB,KAAK,CACnB,OAAgB,EAChB,IAAY,EACZ,OAEC;IAED,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAbD,sBAaC"}
1
+ {"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAG1E;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,OAAgB,EAChB,IAAI,GAAG,EAAE,EACT,cAA2B,IAAA,uBAAc,GAAE;IAE3C,MAAM,IAAI,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAPD,sCAOC;AAED;;;;;GAKG;AACH,SAAgB,KAAK,CACnB,OAAgB,EAChB,IAAY,EACZ,OAEC;IAED,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAbD,sBAaC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @module Client - Globus Connect Server Manager API
3
+ * @category Client
4
+ * @description A wrapper around the Globus Connect Server Manager API that binds various Globus Connect Server resources
5
+ * to a single configuration object (GCSConfiguration).
6
+ *
7
+ * @example
8
+ * import { getClient } from "@globus/sdk/lib/services/globus-connect-server/client";
9
+ *
10
+ * const client = getClient({
11
+ * host: "https://fa5e.bd7c.data.globus.org",
12
+ * endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
13
+ * });
14
+ *
15
+ * const result = await client.endpoint.get();
16
+ */
17
+ import { type GCSConfiguration } from ".";
18
+ /**
19
+ * Create a Globus Connect Server Manager client. This client is used to
20
+ * create a SDK context that is bound to a specific Globus Connect Server.
21
+ */
22
+ export declare function getClient(configuration: GCSConfiguration): {
23
+ configuration: GCSConfiguration;
24
+ endpoint: {
25
+ get: (_parameters?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
26
+ };
27
+ versioning: {
28
+ get: (_parameters?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
29
+ };
30
+ collections: {
31
+ get: (collection_id: string, parameters?: {
32
+ include?: "private_policies"[] | undefined;
33
+ } | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
34
+ getAll: (_parameters?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<Response>;
35
+ };
36
+ };
37
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,GAAG,CAAC;AA2B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB;;;;;;;;;;;;;;EAcxD"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getClient = void 0;
4
+ const collections = require("./service/collections");
5
+ const endpoint = require("./service/endpoint");
6
+ const versioning = require("./service/endpoint");
7
+ /**
8
+ * Bind arguments to a method (partial application).
9
+ * @param method The method arguments will be bound to.
10
+ * @param bound The arguments to bind to the method.
11
+ */
12
+ function bind(method, ...bound) {
13
+ return function (...args) {
14
+ return method(...bound, ...args);
15
+ };
16
+ }
17
+ /**
18
+ * Create a Globus Connect Server Manager client. This client is used to
19
+ * create a SDK context that is bound to a specific Globus Connect Server.
20
+ */
21
+ function getClient(configuration) {
22
+ return {
23
+ configuration,
24
+ endpoint: {
25
+ get: bind(endpoint.get, configuration),
26
+ },
27
+ versioning: {
28
+ get: bind(versioning.get, configuration),
29
+ },
30
+ collections: {
31
+ get: bind(collections.get, configuration),
32
+ getAll: bind(collections.getAll, configuration),
33
+ },
34
+ };
35
+ }
36
+ exports.getClient = getClient;
37
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/client.ts"],"names":[],"mappings":";;;AAkBA,qDAAqD;AACrD,+CAA+C;AAC/C,iDAAiD;AASjD;;;;GAIG;AACH,SAAS,IAAI,CACX,MAAS,EACT,GAAG,KAAW;IAEd,OAAO,UAAU,GAAG,IAAsC;QACxD,OAAO,MAAM,CAAC,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,aAA+B;IACvD,OAAO;QACL,aAAa;QACb,QAAQ,EAAE;YACR,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;SACvC;QACD,UAAU,EAAE;YACV,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,aAAa,CAAC;SACzC;QACD,WAAW,EAAE;YACX,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,aAAa,CAAC;YACzC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC;SAChD;KACF,CAAC;AACJ,CAAC;AAdD,8BAcC"}
@@ -1,13 +1,48 @@
1
1
  /**
2
- * @description A wrapper around the Globus Flows service.
2
+ * @description A wrapper around the Globus Connect Server Manager API.
3
3
  * @category Service
4
4
  * @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
5
5
  * @module
6
6
  */
7
- import { build as _build } from "../../core/url";
8
- type BuildParameters = Parameters<typeof _build>;
9
- export declare function getRequiredScopes(): string;
10
- export declare function build(path: BuildParameters[1], options: BuildParameters[2]): string;
11
- export * as versioning from "./service/versioning";
7
+ /// <reference types="@globus/types" />
8
+ import type { Segment, Options, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments } from "../types";
9
+ type BuildParameters = Parameters<typeof import("../../core/url").build>;
10
+ /**
11
+ * Service methods for the Globus Connect Server Manager API.
12
+ */
13
+ export * as collections from "./service/collections";
12
14
  export * as endpoint from "./service/endpoint";
15
+ export * as versioning from "./service/versioning";
16
+ export declare function getRequiredScopes(configuration: GCSConfiguration): string;
17
+ /**
18
+ * Build a URL for the Globus Connect Server Manager API.
19
+ * @param host The base URL for the Globus Connect Server Manager API.
20
+ * @param path The path to the resource.
21
+ * @param options Additional options for the URL.
22
+ */
23
+ export declare function build(configuration: GCSConfiguration, path: BuildParameters[1], options?: BuildParameters[2]): string;
24
+ /**
25
+ * The configuration object used by all Globus Connect Server Manager API methods.
26
+ */
27
+ export type GCSConfiguration = {
28
+ /**
29
+ * The host (base URL) for the Globus Connect Server Manager API.
30
+ * @example https://fa5e.bd7c.data.globus.org
31
+ */
32
+ host: string;
33
+ /**
34
+ * The UUID
35
+ */
36
+ endpoint_id: Globus.UUID;
37
+ };
38
+ /**
39
+ * The GCSServiceMethod type is similar to the core ServiceMethod type, but
40
+ * the first parameter is always a GCSConfiguration object.
41
+ */
42
+ export type GCSServiceMethod<O extends Options, R extends Response = Response> = (configuration: GCSConfiguration, methodOptions?: O, sdkOptions?: SDKOptions) => ReturnType<ServiceMethod<O, R>>;
43
+ /**
44
+ * The GCSServiceMethodDynamicSegments type is similar to the core ServiceMethodDynamicSegments type, but
45
+ * the first parameter is always a GCSConfiguration object.
46
+ */
47
+ export type GCSServiceMethodDynamicSegments<S extends Segment, O extends Options, R extends Response = Response> = (configuration: GCSConfiguration, segments: S, methodOptions?: O, sdkOptions?: SDKOptions) => ReturnType<ServiceMethodDynamicSegments<S, O, R>>;
13
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjD,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAajD,wBAAgB,iBAAiB,WAEhC;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,UAO1E;AAED,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACV,aAAa,EACb,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,KAAK,eAAe,GAAG,UAAU,CAAC,cAAc,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAEzE;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,UAKhE;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,aAAa,EAAE,gBAAgB,EAC/B,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,UAQ7B;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,aAAa,CAAC,EAAE,CAAC,EACjB,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,+BAA+B,CACzC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,EACjB,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -1,26 +1,34 @@
1
1
  "use strict";
2
2
  /**
3
- * @description A wrapper around the Globus Flows service.
3
+ * @description A wrapper around the Globus Connect Server Manager API.
4
4
  * @category Service
5
5
  * @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
6
6
  * @module
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.endpoint = exports.versioning = exports.build = exports.getRequiredScopes = void 0;
9
+ exports.build = exports.getRequiredScopes = exports.versioning = exports.endpoint = exports.collections = void 0;
10
10
  /**
11
- * @todo Replace with the actual URL.
11
+ * Service methods for the Globus Connect Server Manager API.
12
12
  */
13
- const GCS_MANAGER_URL = "";
13
+ exports.collections = require("./service/collections");
14
+ exports.endpoint = require("./service/endpoint");
15
+ exports.versioning = require("./service/versioning");
14
16
  const SCOPES = {
15
- HIGH_ASSURANCE: "urn:globus:auth:scope:ENDPOINT_ID:manage_collections",
16
- NON_HIGH_ASSURANCE: "urn:globus:auth:scope:ENDPOINT_ID:manage_collections[*https://auth.globus.org/scopes/MAPPED_COLLECTION_ID/data_access]",
17
+ HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",
18
+ NON_HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]",
17
19
  };
18
- function getRequiredScopes() {
19
- return SCOPES.HIGH_ASSURANCE;
20
+ function getRequiredScopes(configuration) {
21
+ return SCOPES.HIGH_ASSURANCE.replace("<ENDPOINT_ID>", configuration.endpoint_id);
20
22
  }
21
23
  exports.getRequiredScopes = getRequiredScopes;
22
- function build(path, options) {
23
- const url = new URL(path, GCS_MANAGER_URL);
24
+ /**
25
+ * Build a URL for the Globus Connect Server Manager API.
26
+ * @param host The base URL for the Globus Connect Server Manager API.
27
+ * @param path The path to the resource.
28
+ * @param options Additional options for the URL.
29
+ */
30
+ function build(configuration, path, options) {
31
+ const url = new URL(path, configuration.host);
24
32
  if (options && options.search) {
25
33
  const search = new URLSearchParams(options.search);
26
34
  url.search = search.toString();
@@ -28,6 +36,4 @@ function build(path, options) {
28
36
  return url.toString();
29
37
  }
30
38
  exports.build = build;
31
- exports.versioning = require("./service/versioning");
32
- exports.endpoint = require("./service/endpoint");
33
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH;;GAEG;AACH,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,MAAM,GAAG;IACb,cAAc,EAAE,sDAAsD;IACtE,kBAAkB,EAChB,wHAAwH;CAC3H,CAAC;AAEF,SAAgB,iBAAiB;IAC/B,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B,CAAC;AAFD,8CAEC;AAED,SAAgB,KAAK,CAAC,IAAwB,EAAE,OAA2B;IACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAC3C,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAPD,sBAOC;AAED,qDAAmD;AACnD,iDAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAYH;;GAEG;AACH,uDAAqD;AACrD,iDAA+C;AAC/C,qDAAmD;AAEnD,MAAM,MAAM,GAAG;IACb,cAAc,EAAE,wDAAwD;IACxE,kBAAkB,EAChB,4HAA4H;CAC/H,CAAC;AAEF,SAAgB,iBAAiB,CAAC,aAA+B;IAC/D,OAAO,MAAM,CAAC,cAAc,CAAC,OAAO,CAClC,eAAe,EACf,aAAa,CAAC,WAAW,CAC1B,CAAC;AACJ,CAAC;AALD,8CAKC;AAED;;;;;GAKG;AACH,SAAgB,KAAK,CACnB,aAA+B,EAC/B,IAAwB,EACxB,OAA4B;IAE5B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAXD,sBAWC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
3
+ */
4
+ export declare const getAll: (configuration: import("../index").GCSConfiguration, _parameters?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
5
+ /**
6
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
7
+ */
8
+ export declare const get: (configuration: import("../index").GCSConfiguration, collection_id: string, parameters?: {
9
+ include?: "private_policies"[] | undefined;
10
+ } | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
11
+ //# sourceMappingURL=collections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,MAAM,+JAQgB,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,GAAG;;8FAwBf,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.get = exports.getAll = void 0;
4
+ const index_1 = require("../index");
5
+ const fetch_1 = require("../../../core/fetch");
6
+ /**
7
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
8
+ */
9
+ exports.getAll = function (configuration, _parameters, sdkOptions) {
10
+ var _a;
11
+ return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/collections`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
12
+ };
13
+ /**
14
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
15
+ */
16
+ exports.get = function (configuration, collection_id, parameters, sdkOptions) {
17
+ var _a;
18
+ const search = {};
19
+ if (parameters && "include" in parameters && parameters.include) {
20
+ search.include = parameters.include.join(",");
21
+ }
22
+ return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/collections/${collection_id}`, {
23
+ search,
24
+ }), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
25
+ };
26
+ //# sourceMappingURL=collections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AASrD;;GAEG;AACU,QAAA,MAAM,GAAG,UAAU,aAAa,EAAE,WAAY,EAAE,UAAW;;IACtE,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,kBAAkB,CAAC,oBAEnC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAAmC,CAAC;AAEpC;;GAEG;AACU,QAAA,GAAG,GAAG,UACjB,aAAa,EACb,aAAa,EACb,UAAW,EACX,UAAW;;IAEX,MAAM,MAAM,GAER,EAAE,CAAC;IACP,IAAI,UAAU,IAAI,SAAS,IAAI,UAAU,IAAI,UAAU,CAAC,OAAO,EAAE;QAC/D,MAAM,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC/C;IACD,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,oBAAoB,aAAa,EAAE,EAAE;QACxD,MAAM;KACP,CAAC,oBAEG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAGC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
3
3
  */
4
- export declare const get: (parameters?: Record<string, string> | undefined, options?: import("../../types").SDKOptions | undefined) => Promise<Response>;
4
+ export declare const get: (configuration: import("../index").GCSConfiguration, _parameters?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
5
5
  //# sourceMappingURL=endpoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,GAAG,gIAQiC,CAAC"}
1
+ {"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,GAAG,+JAQmB,CAAC"}
@@ -6,10 +6,8 @@ const fetch_1 = require("../../../core/fetch");
6
6
  /**
7
7
  * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
8
8
  */
9
- exports.get = function (parameters = {}, options) {
9
+ exports.get = function (configuration, _parameters, sdkOptions) {
10
10
  var _a;
11
- return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(), (0, index_1.build)(`/api/endpoint`, {
12
- search: parameters,
13
- }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
11
+ return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/endpoint`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
14
12
  };
15
13
  //# sourceMappingURL=endpoint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAIrD;;GAEG;AACU,QAAA,GAAG,GAAG,UAAU,UAAU,GAAG,EAAE,EAAE,OAAQ;;IACpD,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,GAAE,EACnB,IAAA,aAAK,EAAC,eAAe,EAAE;QACrB,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAiD,CAAC"}
1
+ {"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAIrD;;GAEG;AACU,QAAA,GAAG,GAAG,UAAU,aAAa,EAAE,WAAY,EAAE,UAAW;;IACnE,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,eAAe,CAAC,oBAEhC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAAmC,CAAC"}
@@ -2,5 +2,5 @@
2
2
  *
3
3
  * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
4
4
  */
5
- export declare const getAll: (parameters?: Record<string, string> | undefined, options?: import("../../types").SDKOptions | undefined) => Promise<Response>;
5
+ export declare const info: (configuration: import("../index").GCSConfiguration, _parameters?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
6
6
  //# sourceMappingURL=versioning.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,MAAM,gIAQ8B,CAAC"}
1
+ {"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,IAAI,+JAahB,CAAC"}
@@ -1,16 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAll = void 0;
3
+ exports.info = void 0;
4
4
  const index_1 = require("../index");
5
5
  const fetch_1 = require("../../../core/fetch");
6
6
  /**
7
7
  *
8
8
  * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
9
9
  */
10
- exports.getAll = function (parameters = {}, options) {
10
+ exports.info = function (configuration, _parameters, sdkOptions) {
11
11
  var _a;
12
- return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(), (0, index_1.build)(`/api/info`, {
13
- search: parameters,
14
- }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
12
+ return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, index_1.build)(configuration, `/api/info`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
15
13
  };
16
14
  //# sourceMappingURL=versioning.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"versioning.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAIrD;;;GAGG;AACU,QAAA,MAAM,GAAG,UAAU,UAAU,GAAG,EAAE,EAAE,OAAQ;;IACvD,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,GAAE,EACnB,IAAA,aAAK,EAAC,WAAW,EAAE;QACjB,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAiD,CAAC"}
1
+ {"version":3,"file":"versioning.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":";;;AAAA,oCAAoD;AACpD,+CAAqD;AAOrD;;;GAGG;AACU,QAAA,IAAI,GAAG,UAAU,aAAa,EAAE,WAAY,EAAE,UAAW;;IACpE,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,aAAK,EAAC,aAAa,EAAE,WAAW,CAAC,oBAE5B,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC"}
@@ -23,9 +23,8 @@ export type ServiceMethodOptions<Q extends Record<string, string>, P extends Rec
23
23
  query?: Record<string, any> & Q;
24
24
  payload?: Record<string, any> & P;
25
25
  };
26
- type Segment = string | Record<string, string>;
27
- type Options = Record<string, never> | Record<string, any> | ServiceMethodOptions<any, any>;
26
+ export type Segment = string | Record<string, string>;
27
+ export type Options = Record<string, never> | Record<string, any> | ServiceMethodOptions<any, any>;
28
28
  export type ServiceMethod<Options, R extends Response = Response> = (methodOptions?: Options, sdkOptions?: SDKOptions) => Promise<R>;
29
29
  export type ServiceMethodDynamicSegments<S extends Segment, O extends Options, R extends Response = Response> = (segments: S, methodOptions?: O, sdkOptions?: SDKOptions) => Promise<R>;
30
- export {};
31
30
  //# 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,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;AACD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,cAAc,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAC1C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC9B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAC9B;IACF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;CACnC,CAAC;AAEF,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC/C,KAAK,OAAO,GACR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEnC,MAAM,MAAM,aAAa,CAAC,OAAO,EAAE,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAClE,aAAa,CAAC,EAAE,OAAO,EACvB,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,MAAM,4BAA4B,CACtC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CAAC,QAAQ,EAAE,CAAC,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,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;AACD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,cAAc,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAC1C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC9B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAC9B;IACF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,OAAO,GACf,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEnC,MAAM,MAAM,aAAa,CAAC,OAAO,EAAE,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAClE,aAAa,CAAC,EAAE,OAAO,EACvB,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,MAAM,4BAA4B,CACtC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CAAC,QAAQ,EAAE,CAAC,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC"}