@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,15 +0,0 @@
|
|
|
1
|
-
import ITokenResponse from "js-pkce/dist/ITokenResponse";
|
|
2
|
-
|
|
3
|
-
export namespace Globus.Auth {
|
|
4
|
-
export type Token = ITokenResponse & {
|
|
5
|
-
resource_server: string;
|
|
6
|
-
id_token?: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred
|
|
10
|
-
*/
|
|
11
|
-
export type TokenResponse = Token & {
|
|
12
|
-
state: string;
|
|
13
|
-
other_tokens: Token[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import serviceTestSuite from "../../../../__utils__/service-test-suite";
|
|
2
|
-
import { flows } from "..";
|
|
3
|
-
|
|
4
|
-
serviceTestSuite("flows", "flows", (fetch) => {
|
|
5
|
-
test("getAll", async () => {
|
|
6
|
-
await flows.getAll();
|
|
7
|
-
expect(fetch).toHaveBeenCalled();
|
|
8
|
-
expect(fetch).toHaveBeenCalledWith(`https://flows.globus.org/flows`, {
|
|
9
|
-
headers: {},
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import serviceTestSuite from "../../../../__utils__/service-test-suite";
|
|
2
|
-
import { runs } from "..";
|
|
3
|
-
|
|
4
|
-
serviceTestSuite("flows", "runs", (fetch) => {
|
|
5
|
-
test("getAll", async () => {
|
|
6
|
-
await runs.getAll();
|
|
7
|
-
expect(fetch).toHaveBeenCalled();
|
|
8
|
-
expect(fetch).toHaveBeenCalledWith(`https://flows.globus.org/runs`, {
|
|
9
|
-
headers: {},
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Environment } from "../../core/global";
|
|
2
|
-
|
|
3
|
-
export const ID = "FLOWS";
|
|
4
|
-
export const HOSTS: Partial<Record<Environment, string>> = {
|
|
5
|
-
sandbox: "sandbox.flows.automate.globus.org",
|
|
6
|
-
production: "flows.globus.org",
|
|
7
|
-
staging: "staging.flows.automate.globus.org",
|
|
8
|
-
integration: "integration.flows.automate.globus.org",
|
|
9
|
-
test: "test.flows.automate.globus.org",
|
|
10
|
-
preview: "preview.flows.automate.globus.org",
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/api/flows/overview/#scopes
|
|
15
|
-
*/
|
|
16
|
-
export const SCOPES = {
|
|
17
|
-
MANAGE_FLOWS:
|
|
18
|
-
"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",
|
|
19
|
-
VIEW_FLOWS:
|
|
20
|
-
"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",
|
|
21
|
-
RUN: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",
|
|
22
|
-
RUN_STATUS:
|
|
23
|
-
"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",
|
|
24
|
-
RUN_MANAGE:
|
|
25
|
-
"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage",
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description A wrapper around the Globus Flows service.
|
|
3
|
-
* @group Service
|
|
4
|
-
* @see [Globus Flows API Documentation](https://docs.globus.org/api/flows/)
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
import * as FLOWS from "./config";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @private
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export const CONFIG = FLOWS;
|
|
14
|
-
|
|
15
|
-
export * as flows from "./service/flows";
|
|
16
|
-
export * as runs from "./service/runs";
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { build } from "../../../core/url";
|
|
2
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
3
|
-
|
|
4
|
-
import type {
|
|
5
|
-
ServiceMethod,
|
|
6
|
-
ServiceMethodDynamicSegments,
|
|
7
|
-
} from "../../../services/types";
|
|
8
|
-
|
|
9
|
-
import { ID, SCOPES } from "../config";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows/get
|
|
13
|
-
*/
|
|
14
|
-
export const getAll = function (parameters = {}, options?) {
|
|
15
|
-
return fetchWithScope(
|
|
16
|
-
SCOPES.VIEW_FLOWS,
|
|
17
|
-
build(ID, `/flows`, {
|
|
18
|
-
search: parameters,
|
|
19
|
-
}),
|
|
20
|
-
options?.fetch?.options
|
|
21
|
-
);
|
|
22
|
-
} satisfies ServiceMethod<Record<string, string>>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/get
|
|
26
|
-
*/
|
|
27
|
-
export const get = function (flow_id, _parameters, sdkOptions?) {
|
|
28
|
-
return fetchWithScope(SCOPES.VIEW_FLOWS, build(ID, `/flows/${flow_id}`), {
|
|
29
|
-
...sdkOptions?.fetch?.options,
|
|
30
|
-
});
|
|
31
|
-
} satisfies ServiceMethodDynamicSegments<string, never>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/delete
|
|
35
|
-
*/
|
|
36
|
-
export const destroy = function (flow_id, _parameters?, sdkOptions?) {
|
|
37
|
-
return fetchWithScope(SCOPES.MANAGE_FLOWS, build(ID, `/flows/${flow_id}`), {
|
|
38
|
-
...sdkOptions?.fetch?.options,
|
|
39
|
-
method: "DELETE",
|
|
40
|
-
});
|
|
41
|
-
} satisfies ServiceMethodDynamicSegments<string, never>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { build } from "../../../core/url";
|
|
2
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
3
|
-
|
|
4
|
-
import type { ServiceMethod } from "../../../services/types";
|
|
5
|
-
|
|
6
|
-
import { ID, SCOPES } from "../config";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @see https://globusonline.github.io/flows/#tag/Runs/paths/~1runs/get
|
|
11
|
-
*/
|
|
12
|
-
export const getAll = function (parameters = {}, options?) {
|
|
13
|
-
return fetchWithScope(
|
|
14
|
-
SCOPES.RUN_MANAGE,
|
|
15
|
-
build(ID, `/runs`, {
|
|
16
|
-
search: parameters,
|
|
17
|
-
}),
|
|
18
|
-
options?.fetch?.options
|
|
19
|
-
);
|
|
20
|
-
} satisfies ServiceMethod<Record<string, string>>;
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../core/storage";
|
|
2
|
-
import { getClient } from "../client";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
const GCS_CONFIGURATION = {
|
|
7
|
-
host: "https://fa5e.bd7c.data.globus.org",
|
|
8
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
describe("gcs – client", () => {
|
|
12
|
-
test("can be created WITHOUT storage", async () => {
|
|
13
|
-
const client = getClient(GCS_CONFIGURATION);
|
|
14
|
-
|
|
15
|
-
const result = await client.endpoint.get(undefined, {
|
|
16
|
-
fetch: {
|
|
17
|
-
options: {
|
|
18
|
-
headers: {
|
|
19
|
-
Authorization: `Bearer SOME_TOKEN`,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
const {
|
|
25
|
-
req: { url, method, headers },
|
|
26
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
27
|
-
|
|
28
|
-
expect({
|
|
29
|
-
url,
|
|
30
|
-
method,
|
|
31
|
-
headers,
|
|
32
|
-
}).toMatchInlineSnapshot(`
|
|
33
|
-
{
|
|
34
|
-
"headers": {
|
|
35
|
-
"accept": "*/*",
|
|
36
|
-
"accept-encoding": "gzip,deflate",
|
|
37
|
-
"authorization": "Bearer SOME_TOKEN",
|
|
38
|
-
"connection": "close",
|
|
39
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
40
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
41
|
-
},
|
|
42
|
-
"method": "GET",
|
|
43
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/endpoint",
|
|
44
|
-
}
|
|
45
|
-
`);
|
|
46
|
-
|
|
47
|
-
const result2 = await client.collections.get(
|
|
48
|
-
"a-b-c-d",
|
|
49
|
-
{
|
|
50
|
-
query: {
|
|
51
|
-
include: ["private_policies"],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
fetch: {
|
|
56
|
-
options: {
|
|
57
|
-
headers: {
|
|
58
|
-
Authorization: `Bearer SOME_OTHER_TOKEN`,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
const {
|
|
66
|
-
req: { url: url2, method: method2, headers: headers2 },
|
|
67
|
-
} = (await result2.json()) as unknown as MirroredRequest;
|
|
68
|
-
|
|
69
|
-
expect({
|
|
70
|
-
url: url2,
|
|
71
|
-
method: method2,
|
|
72
|
-
headers: headers2,
|
|
73
|
-
}).toMatchInlineSnapshot(`
|
|
74
|
-
{
|
|
75
|
-
"headers": {
|
|
76
|
-
"accept": "*/*",
|
|
77
|
-
"accept-encoding": "gzip,deflate",
|
|
78
|
-
"authorization": "Bearer SOME_OTHER_TOKEN",
|
|
79
|
-
"connection": "close",
|
|
80
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
81
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
82
|
-
},
|
|
83
|
-
"method": "GET",
|
|
84
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/collections/a-b-c-d?include=private_policies",
|
|
85
|
-
}
|
|
86
|
-
`);
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
test("obtain client and call endpoint.get", async () => {
|
|
90
|
-
createStorage("memory");
|
|
91
|
-
const client = getClient(GCS_CONFIGURATION);
|
|
92
|
-
const result = await client.endpoint.get();
|
|
93
|
-
const {
|
|
94
|
-
req: { url, method, headers },
|
|
95
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
96
|
-
expect({
|
|
97
|
-
url,
|
|
98
|
-
method,
|
|
99
|
-
headers,
|
|
100
|
-
}).toMatchInlineSnapshot(`
|
|
101
|
-
{
|
|
102
|
-
"headers": {
|
|
103
|
-
"accept": "*/*",
|
|
104
|
-
"accept-encoding": "gzip,deflate",
|
|
105
|
-
"connection": "close",
|
|
106
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
107
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
108
|
-
},
|
|
109
|
-
"method": "GET",
|
|
110
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/endpoint",
|
|
111
|
-
}
|
|
112
|
-
`);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
test("obtain client and call collections.get", async () => {
|
|
116
|
-
createStorage("memory");
|
|
117
|
-
const client = getClient(GCS_CONFIGURATION);
|
|
118
|
-
const result = await client.collections.get(
|
|
119
|
-
"5e70cb38-90b4-4939-b5b7-2f502363004bs",
|
|
120
|
-
{
|
|
121
|
-
query: {
|
|
122
|
-
include: ["private_policies"],
|
|
123
|
-
},
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
const {
|
|
127
|
-
req: { url, method, headers },
|
|
128
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
129
|
-
expect({
|
|
130
|
-
url,
|
|
131
|
-
method,
|
|
132
|
-
headers,
|
|
133
|
-
}).toMatchInlineSnapshot(`
|
|
134
|
-
{
|
|
135
|
-
"headers": {
|
|
136
|
-
"accept": "*/*",
|
|
137
|
-
"accept-encoding": "gzip,deflate",
|
|
138
|
-
"connection": "close",
|
|
139
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
140
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
141
|
-
},
|
|
142
|
-
"method": "GET",
|
|
143
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/collections/5e70cb38-90b4-4939-b5b7-2f502363004bs?include=private_policies",
|
|
144
|
-
}
|
|
145
|
-
`);
|
|
146
|
-
});
|
|
147
|
-
});
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../core/storage";
|
|
2
|
-
import { collections } from "..";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
const GCS_CONFIGURATION = {
|
|
7
|
-
host: "https://fa5e.bd7c.data.globus.org",
|
|
8
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
describe("gcs – collection", () => {
|
|
12
|
-
createStorage("memory");
|
|
13
|
-
test("get", async () => {
|
|
14
|
-
const result = await collections.get(
|
|
15
|
-
GCS_CONFIGURATION,
|
|
16
|
-
"5e70cb38-90b4-4939-b5b7-2f502363004bs",
|
|
17
|
-
{
|
|
18
|
-
query: {
|
|
19
|
-
include: ["private_policies"],
|
|
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/collections/5e70cb38-90b4-4939-b5b7-2f502363004bs?include=private_policies",
|
|
41
|
-
}
|
|
42
|
-
`);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
test("getAll", async () => {
|
|
46
|
-
const result = await collections.getAll(GCS_CONFIGURATION, {
|
|
47
|
-
query: {
|
|
48
|
-
include: ["private_policies"],
|
|
49
|
-
mapped_collection_id: "2b6072ed-41d9-4082-83ea-c9ea6e00a107",
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
const {
|
|
53
|
-
req: { url, method, headers },
|
|
54
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
55
|
-
expect({
|
|
56
|
-
url,
|
|
57
|
-
method,
|
|
58
|
-
headers,
|
|
59
|
-
}).toMatchInlineSnapshot(`
|
|
60
|
-
{
|
|
61
|
-
"headers": {
|
|
62
|
-
"accept": "*/*",
|
|
63
|
-
"accept-encoding": "gzip,deflate",
|
|
64
|
-
"connection": "close",
|
|
65
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
66
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
67
|
-
},
|
|
68
|
-
"method": "GET",
|
|
69
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/collections?include=private_policies&mapped_collection_id=2b6072ed-41d9-4082-83ea-c9ea6e00a107",
|
|
70
|
-
}
|
|
71
|
-
`);
|
|
72
|
-
});
|
|
73
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../core/storage";
|
|
2
|
-
import { endpoint } from "..";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
const GCS_HOST = "https://fa5e.bd7c.data.globus.org";
|
|
7
|
-
|
|
8
|
-
describe("gcs – endpoint", () => {
|
|
9
|
-
createStorage("memory");
|
|
10
|
-
test("get", async () => {
|
|
11
|
-
const result = await endpoint.get({
|
|
12
|
-
host: GCS_HOST,
|
|
13
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
14
|
-
});
|
|
15
|
-
const {
|
|
16
|
-
req: { url, method, headers },
|
|
17
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
18
|
-
expect({
|
|
19
|
-
url,
|
|
20
|
-
method,
|
|
21
|
-
headers,
|
|
22
|
-
}).toMatchInlineSnapshot(`
|
|
23
|
-
{
|
|
24
|
-
"headers": {
|
|
25
|
-
"accept": "*/*",
|
|
26
|
-
"accept-encoding": "gzip,deflate",
|
|
27
|
-
"connection": "close",
|
|
28
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
29
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
30
|
-
},
|
|
31
|
-
"method": "GET",
|
|
32
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/endpoint",
|
|
33
|
-
}
|
|
34
|
-
`);
|
|
35
|
-
});
|
|
36
|
-
});
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../core/storage";
|
|
2
|
-
import { roles } from "..";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
const GCS_HOST = "https://fa5e.bd7c.data.globus.org";
|
|
7
|
-
|
|
8
|
-
describe("gcs – roles", () => {
|
|
9
|
-
createStorage("memory");
|
|
10
|
-
|
|
11
|
-
test("getAll", async () => {
|
|
12
|
-
const result = await roles.getAll(
|
|
13
|
-
{
|
|
14
|
-
host: GCS_HOST,
|
|
15
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
query: {
|
|
19
|
-
include: ["all_roles"],
|
|
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/roles?include=all_roles",
|
|
41
|
-
}
|
|
42
|
-
`);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
test("get", async () => {
|
|
46
|
-
const result = await roles.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/roles/some-uuid",
|
|
71
|
-
}
|
|
72
|
-
`);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
test("remove", async () => {
|
|
76
|
-
const result = await roles.remove(
|
|
77
|
-
{
|
|
78
|
-
host: GCS_HOST,
|
|
79
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
80
|
-
},
|
|
81
|
-
"some-uuid"
|
|
82
|
-
);
|
|
83
|
-
const {
|
|
84
|
-
req: { url, method, headers },
|
|
85
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
86
|
-
expect({
|
|
87
|
-
url,
|
|
88
|
-
method,
|
|
89
|
-
headers,
|
|
90
|
-
}).toMatchInlineSnapshot(`
|
|
91
|
-
{
|
|
92
|
-
"headers": {
|
|
93
|
-
"accept": "*/*",
|
|
94
|
-
"accept-encoding": "gzip,deflate",
|
|
95
|
-
"connection": "close",
|
|
96
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
97
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
98
|
-
},
|
|
99
|
-
"method": "DELETE",
|
|
100
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/roles/some-uuid",
|
|
101
|
-
}
|
|
102
|
-
`);
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
test("create", async () => {
|
|
106
|
-
const result = await roles.create(
|
|
107
|
-
{
|
|
108
|
-
host: GCS_HOST,
|
|
109
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
payload: {
|
|
113
|
-
DATA_TYPE: "role#1.0.0",
|
|
114
|
-
principal:
|
|
115
|
-
"urn:globus:auth:identity:dd7b1118-8fb0-4d92-9e28-7a3bc9cbfdf7",
|
|
116
|
-
collection: "476a00e0-0255-4397-91cb-87d054aa494a",
|
|
117
|
-
role: "activity_manager",
|
|
118
|
-
},
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
const {
|
|
122
|
-
req: { url, method, headers, json },
|
|
123
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
124
|
-
expect({
|
|
125
|
-
url,
|
|
126
|
-
method,
|
|
127
|
-
headers,
|
|
128
|
-
json,
|
|
129
|
-
}).toMatchInlineSnapshot(`
|
|
130
|
-
{
|
|
131
|
-
"headers": {
|
|
132
|
-
"accept": "*/*",
|
|
133
|
-
"accept-encoding": "gzip,deflate",
|
|
134
|
-
"connection": "close",
|
|
135
|
-
"content-length": "180",
|
|
136
|
-
"content-type": "application/json",
|
|
137
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
138
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
139
|
-
},
|
|
140
|
-
"json": {
|
|
141
|
-
"DATA_TYPE": "role#1.0.0",
|
|
142
|
-
"collection": "476a00e0-0255-4397-91cb-87d054aa494a",
|
|
143
|
-
"principal": "urn:globus:auth:identity:dd7b1118-8fb0-4d92-9e28-7a3bc9cbfdf7",
|
|
144
|
-
"role": "activity_manager",
|
|
145
|
-
},
|
|
146
|
-
"method": "POST",
|
|
147
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/roles",
|
|
148
|
-
}
|
|
149
|
-
`);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../core/storage";
|
|
2
|
-
import { storageGateways } from "..";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
const GCS_HOST = "https://fa5e.bd7c.data.globus.org";
|
|
7
|
-
|
|
8
|
-
describe("gcs – storageGateways", () => {
|
|
9
|
-
createStorage("memory");
|
|
10
|
-
|
|
11
|
-
test("getAll", async () => {
|
|
12
|
-
const result = await storageGateways.getAll(
|
|
13
|
-
{
|
|
14
|
-
host: GCS_HOST,
|
|
15
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
query: { include: ["accounts", "private_policies"] },
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
const {
|
|
22
|
-
req: { url, method, headers },
|
|
23
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
24
|
-
expect({
|
|
25
|
-
url,
|
|
26
|
-
method,
|
|
27
|
-
headers,
|
|
28
|
-
}).toMatchInlineSnapshot(`
|
|
29
|
-
{
|
|
30
|
-
"headers": {
|
|
31
|
-
"accept": "*/*",
|
|
32
|
-
"accept-encoding": "gzip,deflate",
|
|
33
|
-
"connection": "close",
|
|
34
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
35
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
36
|
-
},
|
|
37
|
-
"method": "GET",
|
|
38
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/storage_gateways?include=accounts%2Cprivate_policies",
|
|
39
|
-
}
|
|
40
|
-
`);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
test("get", async () => {
|
|
44
|
-
const result = await storageGateways.get(
|
|
45
|
-
{
|
|
46
|
-
host: GCS_HOST,
|
|
47
|
-
endpoint_id: "ac9cb54b-fc48-4824-b801-1388baf0a909",
|
|
48
|
-
},
|
|
49
|
-
"some-uuid"
|
|
50
|
-
);
|
|
51
|
-
const {
|
|
52
|
-
req: { url, method, headers },
|
|
53
|
-
} = (await result.json()) as unknown as MirroredRequest;
|
|
54
|
-
expect({
|
|
55
|
-
url,
|
|
56
|
-
method,
|
|
57
|
-
headers,
|
|
58
|
-
}).toMatchInlineSnapshot(`
|
|
59
|
-
{
|
|
60
|
-
"headers": {
|
|
61
|
-
"accept": "*/*",
|
|
62
|
-
"accept-encoding": "gzip,deflate",
|
|
63
|
-
"connection": "close",
|
|
64
|
-
"host": "fa5e.bd7c.data.globus.org",
|
|
65
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
66
|
-
},
|
|
67
|
-
"method": "GET",
|
|
68
|
-
"url": "https://fa5e.bd7c.data.globus.org/api/storage_gateways/some-uuid",
|
|
69
|
-
}
|
|
70
|
-
`);
|
|
71
|
-
});
|
|
72
|
-
});
|