@globus/sdk 1.0.0-alpha → 1.1.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/package.json +8 -37
- package/tsconfig.tsbuildinfo +1 -0
- package/CHANGELOG.md +0 -148
- package/dist/LICENSE +0 -201
- package/dist/README.md +0 -48
- package/dist/package.json +0 -30
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -85
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/_globus_sdk.authorization.PKCEAuthorization.html +0 -202
- package/docs/functions/Client___Globus_Connect_Server_Manager_API.getClient.html +0 -212
- package/docs/functions/_globus_sdk.auth.getAuthorizationEndpoint.html +0 -67
- package/docs/functions/_globus_sdk.auth.getTokenEndpoint.html +0 -67
- package/docs/functions/_globus_sdk.authorization.incremental.html +0 -71
- package/docs/functions/_globus_sdk.authorization.pkce.html +0 -71
- package/docs/functions/_globus_sdk.flows.flows.destroy.html +0 -84
- package/docs/functions/_globus_sdk.flows.flows.get.html +0 -84
- package/docs/functions/_globus_sdk.flows.flows.getAll.html +0 -82
- package/docs/functions/_globus_sdk.flows.runs.getAll.html +0 -80
- package/docs/functions/_globus_sdk.gcs.collections.get.html +0 -92
- package/docs/functions/_globus_sdk.gcs.collections.getAll.html +0 -90
- package/docs/functions/_globus_sdk.gcs.endpoint.get.html +0 -89
- package/docs/functions/_globus_sdk.gcs.getRequiredScopes.html +0 -77
- package/docs/functions/_globus_sdk.gcs.roles.get.html +0 -92
- package/docs/functions/_globus_sdk.gcs.roles.getAll.html +0 -90
- package/docs/functions/_globus_sdk.gcs.storageGateways.get.html +0 -92
- package/docs/functions/_globus_sdk.gcs.storageGateways.getAll.html +0 -90
- package/docs/functions/_globus_sdk.gcs.userCredentials.get.html +0 -92
- package/docs/functions/_globus_sdk.gcs.userCredentials.getAll.html +0 -90
- package/docs/functions/_globus_sdk.gcs.versioning.info.html +0 -89
- package/docs/functions/_globus_sdk.groups.groups.get.html +0 -84
- package/docs/functions/_globus_sdk.groups.groups.getMyGroups.html +0 -82
- package/docs/functions/_globus_sdk.groups.membership.act.html +0 -85
- package/docs/functions/_globus_sdk.groups.policies.get.html +0 -83
- package/docs/functions/_globus_sdk.search.query.get.html +0 -84
- package/docs/functions/_globus_sdk.transfer.endpoint.get.html +0 -84
- package/docs/functions/_globus_sdk.transfer.endpointSearch.html +0 -89
- package/docs/functions/_globus_sdk.transfer.fileOperations.ls.html +0 -90
- package/docs/functions/_globus_sdk.transfer.fileOperations.mkdir.html +0 -90
- package/docs/functions/_globus_sdk.transfer.fileOperations.rename.html +0 -92
- package/docs/functions/_globus_sdk.transfer.fileOperations.symlink.html +0 -90
- package/docs/functions/_globus_sdk.transfer.taskSubmission.submissionId.html +0 -85
- package/docs/functions/_globus_sdk.transfer.taskSubmission.submitDelete.html +0 -87
- package/docs/functions/_globus_sdk.transfer.taskSubmission.submitTransfer.html +0 -81
- package/docs/index.html +0 -114
- package/docs/modules/Client___Globus_Connect_Server_Manager_API.html +0 -61
- package/docs/modules/_globus_sdk.auth.html +0 -84
- package/docs/modules/_globus_sdk.authorization.html +0 -75
- package/docs/modules/_globus_sdk.flows.flows.html +0 -75
- package/docs/modules/_globus_sdk.flows.html +0 -77
- package/docs/modules/_globus_sdk.flows.runs.html +0 -71
- package/docs/modules/_globus_sdk.gcs.collections.html +0 -84
- package/docs/modules/_globus_sdk.gcs.endpoint.html +0 -78
- package/docs/modules/_globus_sdk.gcs.html +0 -94
- package/docs/modules/_globus_sdk.gcs.roles.html +0 -80
- package/docs/modules/_globus_sdk.gcs.storageGateways.html +0 -80
- package/docs/modules/_globus_sdk.gcs.userCredentials.html +0 -80
- package/docs/modules/_globus_sdk.gcs.versioning.html +0 -78
- package/docs/modules/_globus_sdk.groups.groups.html +0 -78
- package/docs/modules/_globus_sdk.groups.html +0 -79
- package/docs/modules/_globus_sdk.groups.membership.html +0 -72
- package/docs/modules/_globus_sdk.groups.policies.html +0 -72
- package/docs/modules/_globus_sdk.html +0 -95
- package/docs/modules/_globus_sdk.search.html +0 -75
- package/docs/modules/_globus_sdk.search.query.html +0 -70
- package/docs/modules/_globus_sdk.transfer.endpoint.html +0 -73
- package/docs/modules/_globus_sdk.transfer.fileOperations.html +0 -79
- package/docs/modules/_globus_sdk.transfer.html +0 -84
- package/docs/modules/_globus_sdk.transfer.taskSubmission.html +0 -77
- package/docs/types/_globus_sdk.auth.Token.html +0 -70
- package/docs/types/_globus_sdk.auth.TokenResponse.html +0 -73
- package/docs/types/_globus_sdk.gcs.GCSConfiguration.html +0 -87
- package/docs/types/_globus_sdk.gcs.GCSServiceMethod.html +0 -96
- package/docs/types/_globus_sdk.gcs.GCSServiceMethodDynamicSegments.html +0 -100
- package/docs/variables/_globus_sdk.auth.CONFIG.html +0 -64
- package/docs/variables/_globus_sdk.flows.CONFIG.html +0 -62
- package/docs/variables/_globus_sdk.groups.CONFIG.html +0 -63
- package/docs/variables/_globus_sdk.search.CONFIG.html +0 -61
- package/docs/variables/_globus_sdk.transfer.CONFIG.html +0 -64
- package/jest.config.ts +0 -12
- package/jest.setup.ts +0 -10
- package/mocks/handlers.ts +0 -54
- package/mocks/server.ts +0 -5
- package/scripts/generate-package-json.js +0 -38
- package/scripts/openapi-types.ts +0 -50
- package/src/__utils__/service-test-suite.ts +0 -31
- package/src/index.ts +0 -47
- package/src/lib/core/__tests__/fetch.spec.ts +0 -22
- package/src/lib/core/__tests__/global.spec.ts +0 -69
- package/src/lib/core/__tests__/url.spec.ts +0 -105
- package/src/lib/core/authorization.ts +0 -113
- package/src/lib/core/consent.ts +0 -34
- package/src/lib/core/errors.ts +0 -8
- package/src/lib/core/fetch.ts +0 -38
- package/src/lib/core/global.ts +0 -128
- package/src/lib/core/internals/__mocks__/fetch.ts +0 -7
- package/src/lib/core/internals/fetch.ts +0 -2
- package/src/lib/core/storage/index.ts +0 -57
- package/src/lib/core/storage/local-storage.ts +0 -20
- package/src/lib/core/storage/memory.ts +0 -21
- package/src/lib/core/storage/storage.spec.ts +0 -30
- package/src/lib/core/url.ts +0 -73
- package/src/lib/services/auth/config.ts +0 -11
- package/src/lib/services/auth/index.ts +0 -37
- package/src/lib/services/auth/types.ts +0 -15
- package/src/lib/services/flows/__tests__/flows.spec.ts +0 -12
- package/src/lib/services/flows/__tests__/runs.spec.ts +0 -12
- package/src/lib/services/flows/config.ts +0 -26
- package/src/lib/services/flows/index.ts +0 -16
- package/src/lib/services/flows/service/flows.ts +0 -41
- package/src/lib/services/flows/service/runs.ts +0 -20
- package/src/lib/services/globus-connect-server/__tests__/client.spec.ts +0 -147
- package/src/lib/services/globus-connect-server/__tests__/collections.spec.ts +0 -73
- package/src/lib/services/globus-connect-server/__tests__/endpoint.spec.ts +0 -36
- package/src/lib/services/globus-connect-server/__tests__/roles.spec.ts +0 -151
- package/src/lib/services/globus-connect-server/__tests__/storage-gateways.spec.ts +0 -72
- package/src/lib/services/globus-connect-server/__tests__/user-credentials.spec.ts +0 -74
- package/src/lib/services/globus-connect-server/client.ts +0 -79
- package/src/lib/services/globus-connect-server/index.ts +0 -85
- package/src/lib/services/globus-connect-server/service/collections.ts +0 -63
- package/src/lib/services/globus-connect-server/service/endpoint.ts +0 -28
- package/src/lib/services/globus-connect-server/service/roles.ts +0 -113
- package/src/lib/services/globus-connect-server/service/storage-gateways.ts +0 -65
- package/src/lib/services/globus-connect-server/service/user-credentials.ts +0 -61
- package/src/lib/services/globus-connect-server/service/versioning.ts +0 -30
- package/src/lib/services/groups/__tests__/groups.spec.ts +0 -60
- package/src/lib/services/groups/__tests__/membership.spec.ts +0 -64
- package/src/lib/services/groups/__tests__/policies.spec.ts +0 -30
- package/src/lib/services/groups/config.ts +0 -20
- package/src/lib/services/groups/index.ts +0 -21
- package/src/lib/services/groups/service/groups.ts +0 -67
- package/src/lib/services/groups/service/membership.ts +0 -39
- package/src/lib/services/groups/service/policies.ts +0 -33
- package/src/lib/services/search/__tests__/query.spec.ts +0 -35
- package/src/lib/services/search/config.ts +0 -20
- package/src/lib/services/search/index.ts +0 -15
- package/src/lib/services/search/service/query.ts +0 -39
- package/src/lib/services/shared.ts +0 -6
- package/src/lib/services/transfer/__tests__/endpoint-search.spec.ts +0 -34
- package/src/lib/services/transfer/__tests__/endpoint.spec.ts +0 -17
- package/src/lib/services/transfer/__tests__/file-operations.spec.ts +0 -87
- package/src/lib/services/transfer/__tests__/task-submission.spec.ts +0 -55
- package/src/lib/services/transfer/config.ts +0 -11
- package/src/lib/services/transfer/index.ts +0 -19
- package/src/lib/services/transfer/service/endpoint-search.ts +0 -38
- package/src/lib/services/transfer/service/endpoint.ts +0 -26
- package/src/lib/services/transfer/service/file-operations.ts +0 -114
- package/src/lib/services/transfer/service/task-submission.ts +0 -68
- package/src/lib/services/transfer/shared.ts +0 -12
- package/src/lib/services/transfer/types.ts +0 -42
- package/src/lib/services/types.ts +0 -67
- package/tsconfig.json +0 -19
- package/typedoc.json +0 -10
- package/webpack.config.cjs +0 -14
- /package/{dist/esm → esm}/index.d.ts +0 -0
- /package/{dist/esm → esm}/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/index.js +0 -0
- /package/{dist/esm → esm}/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/authorization.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/authorization.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/authorization.js +0 -0
- /package/{dist/esm → esm}/lib/core/authorization.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/consent.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/consent.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/consent.js +0 -0
- /package/{dist/esm → esm}/lib/core/consent.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/errors.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/errors.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/errors.js +0 -0
- /package/{dist/esm → esm}/lib/core/errors.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/fetch.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/fetch.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/fetch.js +0 -0
- /package/{dist/esm → esm}/lib/core/fetch.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/global.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/global.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/global.js +0 -0
- /package/{dist/esm → esm}/lib/core/global.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/internals/fetch.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/internals/fetch.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/internals/fetch.js +0 -0
- /package/{dist/esm → esm}/lib/core/internals/fetch.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/storage/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/storage/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/storage/index.js +0 -0
- /package/{dist/esm → esm}/lib/core/storage/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/storage/local-storage.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/storage/local-storage.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/storage/local-storage.js +0 -0
- /package/{dist/esm → esm}/lib/core/storage/local-storage.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/storage/memory.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/storage/memory.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/storage/memory.js +0 -0
- /package/{dist/esm → esm}/lib/core/storage/memory.js.map +0 -0
- /package/{dist/esm → esm}/lib/core/url.d.ts +0 -0
- /package/{dist/esm → esm}/lib/core/url.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/core/url.js +0 -0
- /package/{dist/esm → esm}/lib/core/url.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/auth/config.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/auth/config.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/auth/config.js +0 -0
- /package/{dist/esm → esm}/lib/services/auth/config.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/auth/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/auth/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/auth/index.js +0 -0
- /package/{dist/esm → esm}/lib/services/auth/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/auth/types.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/auth/types.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/auth/types.js +0 -0
- /package/{dist/esm → esm}/lib/services/auth/types.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/config.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/flows/config.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/config.js +0 -0
- /package/{dist/esm → esm}/lib/services/flows/config.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/flows/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/index.js +0 -0
- /package/{dist/esm → esm}/lib/services/flows/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/flows.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/flows.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/flows.js +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/flows.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/runs.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/runs.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/runs.js +0 -0
- /package/{dist/esm → esm}/lib/services/flows/service/runs.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/client.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/client.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/client.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/client.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/index.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/collections.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/collections.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/collections.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/collections.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/endpoint.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/endpoint.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/endpoint.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/endpoint.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/roles.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/roles.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/roles.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/roles.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/storage-gateways.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/storage-gateways.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/storage-gateways.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/user-credentials.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/user-credentials.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/user-credentials.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/user-credentials.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/versioning.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/versioning.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/versioning.js +0 -0
- /package/{dist/esm → esm}/lib/services/globus-connect-server/service/versioning.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/config.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/groups/config.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/config.js +0 -0
- /package/{dist/esm → esm}/lib/services/groups/config.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/groups/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/index.js +0 -0
- /package/{dist/esm → esm}/lib/services/groups/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/groups.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/groups.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/groups.js +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/groups.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/membership.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/membership.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/membership.js +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/membership.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/policies.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/policies.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/policies.js +0 -0
- /package/{dist/esm → esm}/lib/services/groups/service/policies.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/search/config.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/search/config.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/search/config.js +0 -0
- /package/{dist/esm → esm}/lib/services/search/config.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/search/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/search/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/search/index.js +0 -0
- /package/{dist/esm → esm}/lib/services/search/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/search/service/query.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/search/service/query.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/search/service/query.js +0 -0
- /package/{dist/esm → esm}/lib/services/search/service/query.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/shared.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/shared.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/shared.js +0 -0
- /package/{dist/esm → esm}/lib/services/shared.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/config.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/config.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/config.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/config.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/index.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/index.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/index.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/index.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint-search.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint-search.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint-search.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint-search.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/endpoint.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/file-operations.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/file-operations.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/file-operations.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/file-operations.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/task-submission.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/task-submission.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/task-submission.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/service/task-submission.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/shared.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/shared.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/shared.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/shared.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/types.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/types.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/types.js +0 -0
- /package/{dist/esm → esm}/lib/services/transfer/types.js.map +0 -0
- /package/{dist/esm → esm}/lib/services/types.d.ts +0 -0
- /package/{dist/esm → esm}/lib/services/types.d.ts.map +0 -0
- /package/{dist/esm → esm}/lib/services/types.js +0 -0
- /package/{dist/esm → esm}/lib/services/types.js.map +0 -0
- /package/{dist/umd → umd}/globus.production.js +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../core/storage";
|
|
2
|
-
import { userCredentials } from "..";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
const GCS_HOST = "https://fa5e.bd7c.data.globus.org";
|
|
7
|
-
|
|
8
|
-
describe("gcs – user-credentials", () => {
|
|
9
|
-
createStorage("memory");
|
|
10
|
-
|
|
11
|
-
test("getAll", async () => {
|
|
12
|
-
const result = await userCredentials.getAll(
|
|
13
|
-
{
|
|
14
|
-
host: GCS_HOST,
|
|
15
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
query: {
|
|
19
|
-
include: ["all"],
|
|
20
|
-
},
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
const {
|
|
24
|
-
req: { url, method, headers },
|
|
25
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
26
|
-
expect({
|
|
27
|
-
url,
|
|
28
|
-
method,
|
|
29
|
-
headers,
|
|
30
|
-
}).toMatchInlineSnapshot(`
|
|
31
|
-
{
|
|
32
|
-
"headers": {
|
|
33
|
-
"accept": "*/*",
|
|
34
|
-
"accept-encoding": "gzip,deflate",
|
|
35
|
-
"connection": "close",
|
|
36
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
37
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
38
|
-
},
|
|
39
|
-
"method": "GET",
|
|
40
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/user_credentials?include=all",
|
|
41
|
-
}
|
|
42
|
-
`);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
test("get", async () => {
|
|
46
|
-
const result = await userCredentials.get(
|
|
47
|
-
{
|
|
48
|
-
host: GCS_HOST,
|
|
49
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
50
|
-
},
|
|
51
|
-
"some-uuid"
|
|
52
|
-
);
|
|
53
|
-
const {
|
|
54
|
-
req: { url, method, headers },
|
|
55
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
56
|
-
expect({
|
|
57
|
-
url,
|
|
58
|
-
method,
|
|
59
|
-
headers,
|
|
60
|
-
}).toMatchInlineSnapshot(`
|
|
61
|
-
{
|
|
62
|
-
"headers": {
|
|
63
|
-
"accept": "*/*",
|
|
64
|
-
"accept-encoding": "gzip,deflate",
|
|
65
|
-
"connection": "close",
|
|
66
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
67
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
68
|
-
},
|
|
69
|
-
"method": "GET",
|
|
70
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/user_credentials/some-uuid",
|
|
71
|
-
}
|
|
72
|
-
`);
|
|
73
|
-
});
|
|
74
|
-
});
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
import * as collections from "./service/collections";
|
|
20
|
-
import * as endpoint from "./service/endpoint";
|
|
21
|
-
import * as roles from "./service/roles";
|
|
22
|
-
import * as storageGateways from "./service/storage-gateways";
|
|
23
|
-
import * as userCredentials from "./service/user-credentials";
|
|
24
|
-
import * as versioning from "./service/versioning";
|
|
25
|
-
|
|
26
|
-
type TailOfTuple<T extends unknown[], Head extends unknown[]> = T extends [
|
|
27
|
-
...Head,
|
|
28
|
-
...infer Tail
|
|
29
|
-
]
|
|
30
|
-
? Tail
|
|
31
|
-
: never;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Bind arguments to a method (partial application).
|
|
35
|
-
* @param method The method arguments will be bound to.
|
|
36
|
-
* @param bound The arguments to bind to the method.
|
|
37
|
-
*/
|
|
38
|
-
function bind<M extends (...args: any[]) => ReturnType<M>, Args extends any[]>(
|
|
39
|
-
method: M,
|
|
40
|
-
...bound: Args
|
|
41
|
-
) {
|
|
42
|
-
return function (...args: TailOfTuple<Parameters<M>, Args>) {
|
|
43
|
-
return method(...bound, ...args);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Create a Globus Connect Server Manager client. This client is used to
|
|
49
|
-
* create a SDK context that is bound to a specific Globus Connect Server.
|
|
50
|
-
*/
|
|
51
|
-
export function getClient(configuration: GCSConfiguration) {
|
|
52
|
-
return {
|
|
53
|
-
configuration,
|
|
54
|
-
endpoint: {
|
|
55
|
-
get: bind(endpoint.get, configuration),
|
|
56
|
-
},
|
|
57
|
-
versioning: {
|
|
58
|
-
info: bind(versioning.info, configuration),
|
|
59
|
-
},
|
|
60
|
-
collections: {
|
|
61
|
-
get: bind(collections.get, configuration),
|
|
62
|
-
getAll: bind(collections.getAll, configuration),
|
|
63
|
-
},
|
|
64
|
-
userCredentials: {
|
|
65
|
-
get: bind(userCredentials.get, configuration),
|
|
66
|
-
getAll: bind(userCredentials.getAll, configuration),
|
|
67
|
-
},
|
|
68
|
-
storageGateways: {
|
|
69
|
-
get: bind(storageGateways.get, configuration),
|
|
70
|
-
getAll: bind(storageGateways.getAll, configuration),
|
|
71
|
-
},
|
|
72
|
-
roles: {
|
|
73
|
-
get: bind(roles.get, configuration),
|
|
74
|
-
getAll: bind(roles.getAll, configuration),
|
|
75
|
-
create: bind(roles.create, configuration),
|
|
76
|
-
remove: bind(roles.remove, configuration),
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description A wrapper around the Globus Connect Server Manager API.
|
|
3
|
-
* @group Service
|
|
4
|
-
* @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type {
|
|
9
|
-
Segment,
|
|
10
|
-
ServiceMethodOptions,
|
|
11
|
-
SDKOptions,
|
|
12
|
-
ServiceMethod,
|
|
13
|
-
ServiceMethodDynamicSegments,
|
|
14
|
-
UnknownQueryParameters,
|
|
15
|
-
} from "../types";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Service methods for the Globus Connect Server Manager API.
|
|
19
|
-
*/
|
|
20
|
-
export * as collections from "./service/collections";
|
|
21
|
-
export * as endpoint from "./service/endpoint";
|
|
22
|
-
export * as roles from "./service/roles";
|
|
23
|
-
export * as storageGateways from "./service/storage-gateways";
|
|
24
|
-
export * as userCredentials from "./service/user-credentials";
|
|
25
|
-
export * as versioning from "./service/versioning";
|
|
26
|
-
|
|
27
|
-
const SCOPES = {
|
|
28
|
-
HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",
|
|
29
|
-
NON_HIGH_ASSURANCE:
|
|
30
|
-
"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]",
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export function getRequiredScopes(configuration: GCSConfiguration) {
|
|
34
|
-
return SCOPES.HIGH_ASSURANCE.replace(
|
|
35
|
-
"<ENDPOINT_ID>",
|
|
36
|
-
configuration.endpoint_id
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The configuration object used by all Globus Connect Server Manager API methods.
|
|
42
|
-
*/
|
|
43
|
-
export type GCSConfiguration = {
|
|
44
|
-
/**
|
|
45
|
-
* The host (base URL) for the Globus Connect Server Manager API.
|
|
46
|
-
* @example https://fa5e.bd7c.data.globus.org
|
|
47
|
-
*/
|
|
48
|
-
host: string;
|
|
49
|
-
/**
|
|
50
|
-
* The UUID
|
|
51
|
-
*/
|
|
52
|
-
endpoint_id: Globus.UUID;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The GCSServiceMethod type is similar to the core ServiceMethod type, but
|
|
57
|
-
* the first parameter is always a GCSConfiguration object.
|
|
58
|
-
*/
|
|
59
|
-
export type GCSServiceMethod<
|
|
60
|
-
O extends ServiceMethodOptions,
|
|
61
|
-
R extends Response = Response
|
|
62
|
-
> = (
|
|
63
|
-
configuration: GCSConfiguration,
|
|
64
|
-
methodOptions?: O & {
|
|
65
|
-
query?: UnknownQueryParameters;
|
|
66
|
-
},
|
|
67
|
-
sdkOptions?: SDKOptions
|
|
68
|
-
) => ReturnType<ServiceMethod<O, R>>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* The GCSServiceMethodDynamicSegments type is similar to the core ServiceMethodDynamicSegments type, but
|
|
72
|
-
* the first parameter is always a GCSConfiguration object.
|
|
73
|
-
*/
|
|
74
|
-
export type GCSServiceMethodDynamicSegments<
|
|
75
|
-
S extends Segment,
|
|
76
|
-
O extends ServiceMethodOptions,
|
|
77
|
-
R extends Response = Response
|
|
78
|
-
> = (
|
|
79
|
-
configuration: GCSConfiguration,
|
|
80
|
-
segments: S,
|
|
81
|
-
methodOptions?: O & {
|
|
82
|
-
query?: UnknownQueryParameters;
|
|
83
|
-
},
|
|
84
|
-
sdkOptions?: SDKOptions
|
|
85
|
-
) => ReturnType<ServiceMethodDynamicSegments<S, O, R>>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { getRequiredScopes } from "../index";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
GCSServiceMethod,
|
|
7
|
-
GCSServiceMethodDynamicSegments,
|
|
8
|
-
} from "../index";
|
|
9
|
-
|
|
10
|
-
import type { JSONFetchResponse } from "../../types";
|
|
11
|
-
import type { operations } from "@globus/types/gcs-manager/api";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
|
|
15
|
-
*/
|
|
16
|
-
export const getAll = function (
|
|
17
|
-
configuration,
|
|
18
|
-
options?,
|
|
19
|
-
sdkOptions?
|
|
20
|
-
): Promise<
|
|
21
|
-
JSONFetchResponse<
|
|
22
|
-
operations["listCollections"]["responses"]["200"]["content"]["application/json"]
|
|
23
|
-
>
|
|
24
|
-
> {
|
|
25
|
-
return fetchWithScope(
|
|
26
|
-
getRequiredScopes(configuration),
|
|
27
|
-
build(configuration, `/api/collections`, { search: options?.query }),
|
|
28
|
-
{
|
|
29
|
-
...sdkOptions?.fetch?.options,
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
} satisfies GCSServiceMethod<{
|
|
33
|
-
query?: operations["listCollections"]["parameters"]["query"];
|
|
34
|
-
}>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
38
|
-
*/
|
|
39
|
-
export const get = function (
|
|
40
|
-
configuration,
|
|
41
|
-
collection_id,
|
|
42
|
-
options?,
|
|
43
|
-
sdkOptions?
|
|
44
|
-
): Promise<
|
|
45
|
-
JSONFetchResponse<
|
|
46
|
-
operations["getCollection"]["responses"]["200"]["content"]["application/json"]
|
|
47
|
-
>
|
|
48
|
-
> {
|
|
49
|
-
return fetchWithScope(
|
|
50
|
-
getRequiredScopes(configuration),
|
|
51
|
-
build(configuration, `/api/collections/${collection_id}`, {
|
|
52
|
-
search: options?.query,
|
|
53
|
-
}),
|
|
54
|
-
{
|
|
55
|
-
...sdkOptions?.fetch?.options,
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
} satisfies GCSServiceMethodDynamicSegments<
|
|
59
|
-
operations["getCollection"]["parameters"]["path"]["collection_id"],
|
|
60
|
-
{
|
|
61
|
-
query?: operations["getCollection"]["parameters"]["query"];
|
|
62
|
-
}
|
|
63
|
-
>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { getRequiredScopes } from "../index";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type { GCSServiceMethod } from "../index";
|
|
6
|
-
import type { JSONFetchResponse } from "../../types";
|
|
7
|
-
|
|
8
|
-
import type { operations } from "@globus/types/gcs-manager/api";
|
|
9
|
-
/**
|
|
10
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
|
|
11
|
-
*/
|
|
12
|
-
export const get = function (
|
|
13
|
-
configuration,
|
|
14
|
-
_options?,
|
|
15
|
-
sdkOptions?
|
|
16
|
-
): Promise<
|
|
17
|
-
JSONFetchResponse<
|
|
18
|
-
operations["getEndpoint"]["responses"]["200"]["content"]["application/json"]
|
|
19
|
-
>
|
|
20
|
-
> {
|
|
21
|
-
return fetchWithScope(
|
|
22
|
-
getRequiredScopes(configuration),
|
|
23
|
-
build(configuration, `/api/endpoint`),
|
|
24
|
-
{
|
|
25
|
-
...sdkOptions?.fetch?.options,
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
} satisfies GCSServiceMethod<never>;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { getRequiredScopes } from "../index";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
GCSServiceMethod,
|
|
7
|
-
GCSServiceMethodDynamicSegments,
|
|
8
|
-
} from "../index";
|
|
9
|
-
|
|
10
|
-
import type { JSONFetchResponse } from "../../types";
|
|
11
|
-
import type { operations } from "@globus/types/gcs-manager/api";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#listRoles
|
|
15
|
-
*/
|
|
16
|
-
export const getAll = function (
|
|
17
|
-
configuration,
|
|
18
|
-
options?,
|
|
19
|
-
sdkOptions?
|
|
20
|
-
): Promise<
|
|
21
|
-
JSONFetchResponse<
|
|
22
|
-
operations["listRoles"]["responses"]["200"]["content"]["application/json"]
|
|
23
|
-
>
|
|
24
|
-
> {
|
|
25
|
-
return fetchWithScope(
|
|
26
|
-
getRequiredScopes(configuration),
|
|
27
|
-
build(configuration, `/api/roles`, {
|
|
28
|
-
search: options?.query,
|
|
29
|
-
}),
|
|
30
|
-
{
|
|
31
|
-
...sdkOptions?.fetch?.options,
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
} satisfies GCSServiceMethod<{
|
|
35
|
-
query?: operations["listRoles"]["parameters"]["query"];
|
|
36
|
-
}>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#getRole
|
|
40
|
-
*/
|
|
41
|
-
export const get = function (
|
|
42
|
-
configuration,
|
|
43
|
-
role_id,
|
|
44
|
-
_options?,
|
|
45
|
-
sdkOptions?
|
|
46
|
-
): Promise<
|
|
47
|
-
JSONFetchResponse<
|
|
48
|
-
operations["getRole"]["responses"]["200"]["content"]["application/json"]
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return fetchWithScope(
|
|
52
|
-
getRequiredScopes(configuration),
|
|
53
|
-
build(configuration, `/api/roles/${role_id}`),
|
|
54
|
-
{
|
|
55
|
-
...sdkOptions?.fetch?.options,
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
} satisfies GCSServiceMethodDynamicSegments<
|
|
59
|
-
operations["getRole"]["parameters"]["path"]["role_id"],
|
|
60
|
-
never
|
|
61
|
-
>;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#deleteRole
|
|
65
|
-
*/
|
|
66
|
-
export const remove = function (
|
|
67
|
-
configuration,
|
|
68
|
-
role_id,
|
|
69
|
-
_options?,
|
|
70
|
-
sdkOptions?
|
|
71
|
-
): Promise<
|
|
72
|
-
JSONFetchResponse<
|
|
73
|
-
operations["deleteRole"]["responses"]["200"]["content"]["application/json"]
|
|
74
|
-
>
|
|
75
|
-
> {
|
|
76
|
-
return fetchWithScope(
|
|
77
|
-
getRequiredScopes(configuration),
|
|
78
|
-
build(configuration, `/api/roles/${role_id}`),
|
|
79
|
-
{
|
|
80
|
-
method: "DELETE",
|
|
81
|
-
...sdkOptions?.fetch?.options,
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
} satisfies GCSServiceMethodDynamicSegments<
|
|
85
|
-
operations["deleteRole"]["parameters"]["path"]["role_id"],
|
|
86
|
-
never
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#postRoles
|
|
91
|
-
*/
|
|
92
|
-
export const create = function (
|
|
93
|
-
configuration,
|
|
94
|
-
options,
|
|
95
|
-
sdkOptions?
|
|
96
|
-
): Promise<
|
|
97
|
-
JSONFetchResponse<
|
|
98
|
-
operations["postRoles"]["responses"]["200"]["content"]["application/json"]
|
|
99
|
-
>
|
|
100
|
-
> {
|
|
101
|
-
if (!options?.payload) throw new Error("payload is required.");
|
|
102
|
-
return fetchWithScope(
|
|
103
|
-
getRequiredScopes(configuration),
|
|
104
|
-
build(configuration, `/api/roles`),
|
|
105
|
-
{
|
|
106
|
-
method: "POST",
|
|
107
|
-
body: JSON.stringify(options.payload),
|
|
108
|
-
...sdkOptions?.fetch?.options,
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
} satisfies GCSServiceMethod<{
|
|
112
|
-
payload: operations["postRoles"]["requestBody"]["content"]["application/json"];
|
|
113
|
-
}>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { getRequiredScopes } from "../index";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
GCSServiceMethod,
|
|
7
|
-
GCSServiceMethodDynamicSegments,
|
|
8
|
-
} from "../index";
|
|
9
|
-
|
|
10
|
-
import type { JSONFetchResponse } from "../../types";
|
|
11
|
-
import type { operations } from "@globus/types/gcs-manager/api";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#listStorageGateways
|
|
15
|
-
*/
|
|
16
|
-
export const getAll = function (
|
|
17
|
-
configuration,
|
|
18
|
-
options?,
|
|
19
|
-
sdkOptions?
|
|
20
|
-
): Promise<
|
|
21
|
-
JSONFetchResponse<
|
|
22
|
-
operations["listStorageGateways"]["responses"]["200"]["content"]["application/json"]
|
|
23
|
-
>
|
|
24
|
-
> {
|
|
25
|
-
return fetchWithScope(
|
|
26
|
-
getRequiredScopes(configuration),
|
|
27
|
-
build(configuration, `/api/storage_gateways`, {
|
|
28
|
-
search: options?.query,
|
|
29
|
-
}),
|
|
30
|
-
{
|
|
31
|
-
...sdkOptions?.fetch?.options,
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
} satisfies GCSServiceMethod<{
|
|
35
|
-
query?: operations["listStorageGateways"]["parameters"]["query"];
|
|
36
|
-
}>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#getStorageGateway
|
|
40
|
-
*/
|
|
41
|
-
export const get = function (
|
|
42
|
-
configuration,
|
|
43
|
-
storage_gateway_id,
|
|
44
|
-
options?,
|
|
45
|
-
sdkOptions?
|
|
46
|
-
): Promise<
|
|
47
|
-
JSONFetchResponse<
|
|
48
|
-
operations["getStorageGateway"]["responses"]["200"]["content"]["application/json"]
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return fetchWithScope(
|
|
52
|
-
getRequiredScopes(configuration),
|
|
53
|
-
build(configuration, `/api/storage_gateways/${storage_gateway_id}`, {
|
|
54
|
-
search: options?.query,
|
|
55
|
-
}),
|
|
56
|
-
{
|
|
57
|
-
...sdkOptions?.fetch?.options,
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
} satisfies GCSServiceMethodDynamicSegments<
|
|
61
|
-
operations["getStorageGateway"]["parameters"]["path"]["storage_gateway_id"],
|
|
62
|
-
{
|
|
63
|
-
query?: operations["getStorageGateway"]["parameters"]["query"];
|
|
64
|
-
}
|
|
65
|
-
>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { getRequiredScopes } from "../index";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
GCSServiceMethod,
|
|
7
|
-
GCSServiceMethodDynamicSegments,
|
|
8
|
-
} from "../index";
|
|
9
|
-
|
|
10
|
-
import type { JSONFetchResponse } from "../../types";
|
|
11
|
-
import type { operations } from "@globus/types/gcs-manager/api";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#listUserCredentials
|
|
15
|
-
*/
|
|
16
|
-
export const getAll = function (
|
|
17
|
-
configuration,
|
|
18
|
-
options?,
|
|
19
|
-
sdkOptions?
|
|
20
|
-
): Promise<
|
|
21
|
-
JSONFetchResponse<
|
|
22
|
-
operations["listUserCredentials"]["responses"]["200"]["content"]["application/json"]
|
|
23
|
-
>
|
|
24
|
-
> {
|
|
25
|
-
return fetchWithScope(
|
|
26
|
-
getRequiredScopes(configuration),
|
|
27
|
-
build(configuration, `/api/user_credentials`, {
|
|
28
|
-
search: options?.query,
|
|
29
|
-
}),
|
|
30
|
-
{
|
|
31
|
-
...sdkOptions?.fetch?.options,
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
} satisfies GCSServiceMethod<{
|
|
35
|
-
query?: operations["listUserCredentials"]["parameters"]["query"];
|
|
36
|
-
}>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#getUserCredential
|
|
40
|
-
*/
|
|
41
|
-
export const get = function (
|
|
42
|
-
configuration,
|
|
43
|
-
user_credential_id,
|
|
44
|
-
options?,
|
|
45
|
-
sdkOptions?
|
|
46
|
-
): Promise<
|
|
47
|
-
JSONFetchResponse<
|
|
48
|
-
operations["getCollection"]["responses"]["200"]["content"]["application/json"]
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return fetchWithScope(
|
|
52
|
-
getRequiredScopes(configuration),
|
|
53
|
-
build(configuration, `/api/user_credentials/${user_credential_id}`),
|
|
54
|
-
{
|
|
55
|
-
...sdkOptions?.fetch?.options,
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
} satisfies GCSServiceMethodDynamicSegments<
|
|
59
|
-
operations["getUserCredential"]["parameters"]["path"]["user_credential_id"],
|
|
60
|
-
never
|
|
61
|
-
>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getRequiredScopes } from "../index";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type { GCSServiceMethod } from "../index";
|
|
6
|
-
import type { JSONFetchResponse } from "../../types";
|
|
7
|
-
|
|
8
|
-
import type { operations } from "@globus/types/gcs-manager/api";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
|
|
13
|
-
*/
|
|
14
|
-
export const info = function (
|
|
15
|
-
configuration,
|
|
16
|
-
_parameters?,
|
|
17
|
-
sdkOptions?
|
|
18
|
-
): Promise<
|
|
19
|
-
JSONFetchResponse<
|
|
20
|
-
operations["getInfo"]["responses"]["200"]["content"]["application/json"]
|
|
21
|
-
>
|
|
22
|
-
> {
|
|
23
|
-
return fetchWithScope(
|
|
24
|
-
getRequiredScopes(configuration),
|
|
25
|
-
build(configuration, `/api/info`),
|
|
26
|
-
{
|
|
27
|
-
...sdkOptions?.fetch?.options,
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
} satisfies GCSServiceMethod<never>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { groups } from "..";
|
|
2
|
-
import { createStorage } from "../../../core/storage";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
test("get", async () => {
|
|
7
|
-
createStorage("memory");
|
|
8
|
-
const result = await groups.get("6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9");
|
|
9
|
-
const {
|
|
10
|
-
req: { url, method, headers },
|
|
11
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
12
|
-
|
|
13
|
-
expect({
|
|
14
|
-
url,
|
|
15
|
-
method,
|
|
16
|
-
headers,
|
|
17
|
-
}).toMatchInlineSnapshot(`
|
|
18
|
-
{
|
|
19
|
-
"headers": {
|
|
20
|
-
"accept": "*/*",
|
|
21
|
-
"accept-encoding": "gzip,deflate",
|
|
22
|
-
"connection": "close",
|
|
23
|
-
"host": "groups.api.globus.org",
|
|
24
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
25
|
-
},
|
|
26
|
-
"method": "GET",
|
|
27
|
-
"url": "https://groups.api.globus.org/v2/groups/6521a0c3-ffc9-4432-9cb6-41fa8fe2e4e9",
|
|
28
|
-
}
|
|
29
|
-
`);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
test("getMyGroups", async () => {
|
|
33
|
-
createStorage("memory");
|
|
34
|
-
const result = await groups.getMyGroups({
|
|
35
|
-
query: {
|
|
36
|
-
statuses: ["active", "invited", "pending"],
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
const {
|
|
40
|
-
req: { url, method, headers },
|
|
41
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
42
|
-
|
|
43
|
-
expect({
|
|
44
|
-
url,
|
|
45
|
-
method,
|
|
46
|
-
headers,
|
|
47
|
-
}).toMatchInlineSnapshot(`
|
|
48
|
-
{
|
|
49
|
-
"headers": {
|
|
50
|
-
"accept": "*/*",
|
|
51
|
-
"accept-encoding": "gzip,deflate",
|
|
52
|
-
"connection": "close",
|
|
53
|
-
"host": "groups.api.globus.org",
|
|
54
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
55
|
-
},
|
|
56
|
-
"method": "GET",
|
|
57
|
-
"url": "https://groups.api.globus.org/v2/groups/my_groups?statuses=active%2Cinvited%2Cpending",
|
|
58
|
-
}
|
|
59
|
-
`);
|
|
60
|
-
});
|