@globus/sdk 1.0.0-alpha → 1.2.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +3 -0
- package/{src/index.ts → esm/index.d.ts} +1 -5
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +50 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/core/authorization.d.ts +30 -0
- package/esm/lib/core/authorization.d.ts.map +1 -0
- package/esm/lib/core/authorization.js +87 -0
- package/esm/lib/core/authorization.js.map +1 -0
- package/esm/lib/core/consent.d.ts +6 -0
- package/esm/lib/core/consent.d.ts.map +1 -0
- package/esm/lib/core/consent.js +27 -0
- package/esm/lib/core/consent.js.map +1 -0
- package/esm/lib/core/errors.d.ts +5 -0
- package/esm/lib/core/errors.d.ts.map +1 -0
- package/esm/lib/core/errors.js +9 -0
- package/esm/lib/core/errors.js.map +1 -0
- package/esm/lib/core/fetch.d.ts +7 -0
- package/esm/lib/core/fetch.d.ts.map +1 -0
- package/esm/lib/core/fetch.js +23 -0
- package/esm/lib/core/fetch.js.map +1 -0
- package/esm/lib/core/global.d.ts +38 -0
- package/esm/lib/core/global.d.ts.map +1 -0
- package/esm/lib/core/global.js +92 -0
- package/esm/lib/core/global.js.map +1 -0
- package/esm/lib/core/internals/fetch.d.ts +2 -0
- package/esm/lib/core/internals/fetch.d.ts.map +1 -0
- package/{src/lib/core/internals/fetch.ts → esm/lib/core/internals/fetch.js} +1 -0
- package/esm/lib/core/internals/fetch.js.map +1 -0
- package/esm/lib/core/storage/index.d.ts +25 -0
- package/esm/lib/core/storage/index.d.ts.map +1 -0
- package/esm/lib/core/storage/index.js +38 -0
- package/esm/lib/core/storage/index.js.map +1 -0
- package/esm/lib/core/storage/local-storage.d.ts +8 -0
- package/esm/lib/core/storage/local-storage.d.ts.map +1 -0
- package/esm/lib/core/storage/local-storage.js +16 -0
- package/esm/lib/core/storage/local-storage.js.map +1 -0
- package/esm/lib/core/storage/memory.d.ts +9 -0
- package/esm/lib/core/storage/memory.d.ts.map +1 -0
- package/esm/lib/core/storage/memory.js +21 -0
- package/esm/lib/core/storage/memory.js.map +1 -0
- package/esm/lib/core/url.d.ts +31 -0
- package/esm/lib/core/url.d.ts.map +1 -0
- package/esm/lib/core/url.js +54 -0
- package/esm/lib/core/url.js.map +1 -0
- package/esm/lib/services/auth/config.d.ts +4 -0
- package/esm/lib/services/auth/config.d.ts.map +1 -0
- package/esm/lib/services/auth/config.js +10 -0
- package/esm/lib/services/auth/config.js.map +1 -0
- package/esm/lib/services/auth/index.d.ts +21 -0
- package/esm/lib/services/auth/index.d.ts.map +1 -0
- package/esm/lib/services/auth/index.js +20 -0
- package/esm/lib/services/auth/index.js.map +1 -0
- package/esm/lib/services/auth/types.d.ts +15 -0
- package/esm/lib/services/auth/types.d.ts.map +1 -0
- package/esm/lib/services/auth/types.js +2 -0
- package/esm/lib/services/auth/types.js.map +1 -0
- package/esm/lib/services/flows/config.d.ts +14 -0
- package/esm/lib/services/flows/config.d.ts.map +1 -0
- package/esm/lib/services/flows/config.js +20 -0
- package/esm/lib/services/flows/config.js.map +1 -0
- package/{src/lib/services/flows/index.ts → esm/lib/services/flows/index.d.ts} +2 -3
- package/esm/lib/services/flows/index.d.ts.map +1 -0
- package/esm/lib/services/flows/index.js +17 -0
- package/esm/lib/services/flows/index.js.map +1 -0
- package/esm/lib/services/flows/service/flows.d.ts +17 -0
- package/esm/lib/services/flows/service/flows.d.ts.map +1 -0
- package/esm/lib/services/flows/service/flows.js +27 -0
- package/esm/lib/services/flows/service/flows.js.map +1 -0
- package/esm/lib/services/flows/service/runs.d.ts +10 -0
- package/esm/lib/services/flows/service/runs.d.ts.map +1 -0
- package/esm/lib/services/flows/service/runs.js +14 -0
- package/esm/lib/services/flows/service/runs.js.map +1 -0
- package/esm/lib/services/globus-connect-server/client.d.ts +3461 -0
- package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/client.js +50 -0
- package/esm/lib/services/globus-connect-server/client.js.map +1 -0
- package/esm/lib/services/globus-connect-server/index.d.ts +47 -0
- package/esm/lib/services/globus-connect-server/index.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/index.js +26 -0
- package/esm/lib/services/globus-connect-server/index.js.map +1 -0
- package/esm/lib/services/globus-connect-server/service/collections.d.ts +29 -0
- package/esm/lib/services/globus-connect-server/service/collections.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/service/collections.js +20 -0
- package/esm/lib/services/globus-connect-server/service/collections.js.map +1 -0
- package/esm/lib/services/globus-connect-server/service/endpoint.d.ts +7 -0
- package/esm/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/service/endpoint.js +11 -0
- package/esm/lib/services/globus-connect-server/service/endpoint.js.map +1 -0
- package/esm/lib/services/globus-connect-server/service/roles.d.ts +33 -0
- package/esm/lib/services/globus-connect-server/service/roles.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/service/roles.js +36 -0
- package/esm/lib/services/globus-connect-server/service/roles.js.map +1 -0
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts +27 -0
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/service/storage-gateways.js +22 -0
- package/esm/lib/services/globus-connect-server/service/storage-gateways.js.map +1 -0
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts +20 -0
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/service/user-credentials.js +20 -0
- package/esm/lib/services/globus-connect-server/service/user-credentials.js.map +1 -0
- package/esm/lib/services/globus-connect-server/service/versioning.d.ts +8 -0
- package/esm/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -0
- package/esm/lib/services/globus-connect-server/service/versioning.js +12 -0
- package/esm/lib/services/globus-connect-server/service/versioning.js.map +1 -0
- package/esm/lib/services/groups/config.d.ts +11 -0
- package/esm/lib/services/groups/config.d.ts.map +1 -0
- package/esm/lib/services/groups/config.js +17 -0
- package/esm/lib/services/groups/config.js.map +1 -0
- package/{src/lib/services/groups/index.ts → esm/lib/services/groups/index.d.ts} +2 -4
- package/esm/lib/services/groups/index.d.ts.map +1 -0
- package/esm/lib/services/groups/index.js +19 -0
- package/esm/lib/services/groups/index.js.map +1 -0
- package/esm/lib/services/groups/service/groups.d.ts +28 -0
- package/esm/lib/services/groups/service/groups.d.ts.map +1 -0
- package/esm/lib/services/groups/service/groups.js +22 -0
- package/esm/lib/services/groups/service/groups.js.map +1 -0
- package/esm/lib/services/groups/service/membership.d.ts +14 -0
- package/esm/lib/services/groups/service/membership.d.ts.map +1 -0
- package/esm/lib/services/groups/service/membership.js +14 -0
- package/esm/lib/services/groups/service/membership.js.map +1 -0
- package/esm/lib/services/groups/service/policies.d.ts +7 -0
- package/esm/lib/services/groups/service/policies.d.ts.map +1 -0
- package/esm/lib/services/groups/service/policies.js +11 -0
- package/esm/lib/services/groups/service/policies.js.map +1 -0
- package/esm/lib/services/search/config.d.ts +12 -0
- package/esm/lib/services/search/config.d.ts.map +1 -0
- package/esm/lib/services/search/config.js +18 -0
- package/esm/lib/services/search/config.js.map +1 -0
- package/{src/lib/services/search/index.ts → esm/lib/services/search/index.d.ts} +2 -3
- package/esm/lib/services/search/index.d.ts.map +1 -0
- package/esm/lib/services/search/index.js +15 -0
- package/esm/lib/services/search/index.js.map +1 -0
- package/esm/lib/services/search/service/query.d.ts +24 -0
- package/esm/lib/services/search/service/query.d.ts.map +1 -0
- package/esm/lib/services/search/service/query.js +15 -0
- package/esm/lib/services/search/service/query.js.map +1 -0
- package/esm/lib/services/shared.d.ts +7 -0
- package/esm/lib/services/shared.d.ts.map +1 -0
- package/esm/lib/services/shared.js +8 -0
- package/esm/lib/services/shared.js.map +1 -0
- package/esm/lib/services/transfer/config.d.ts +4 -0
- package/esm/lib/services/transfer/config.d.ts.map +1 -0
- package/esm/lib/services/transfer/config.js +10 -0
- package/esm/lib/services/transfer/config.js.map +1 -0
- package/{src/lib/services/transfer/index.ts → esm/lib/services/transfer/index.d.ts} +2 -3
- package/esm/lib/services/transfer/index.d.ts.map +1 -0
- package/esm/lib/services/transfer/index.js +21 -0
- package/esm/lib/services/transfer/index.js.map +1 -0
- package/esm/lib/services/transfer/service/endpoint-search.d.ts +18 -0
- package/esm/lib/services/transfer/service/endpoint-search.d.ts.map +1 -0
- package/esm/lib/services/transfer/service/endpoint-search.js +23 -0
- package/esm/lib/services/transfer/service/endpoint-search.js.map +1 -0
- package/esm/lib/services/transfer/service/endpoint.d.ts +5 -0
- package/esm/lib/services/transfer/service/endpoint.d.ts.map +1 -0
- package/esm/lib/services/transfer/service/endpoint.js +11 -0
- package/esm/lib/services/transfer/service/endpoint.js.map +1 -0
- package/esm/lib/services/transfer/service/file-operations.d.ts +63 -0
- package/esm/lib/services/transfer/service/file-operations.d.ts.map +1 -0
- package/esm/lib/services/transfer/service/file-operations.js +50 -0
- package/esm/lib/services/transfer/service/file-operations.js.map +1 -0
- package/esm/lib/services/transfer/service/task-submission.d.ts +30 -0
- package/esm/lib/services/transfer/service/task-submission.d.ts.map +1 -0
- package/esm/lib/services/transfer/service/task-submission.js +30 -0
- package/esm/lib/services/transfer/service/task-submission.js.map +1 -0
- package/esm/lib/services/transfer/shared.d.ts +3 -0
- package/esm/lib/services/transfer/shared.d.ts.map +1 -0
- package/esm/lib/services/transfer/shared.js +10 -0
- package/esm/lib/services/transfer/shared.js.map +1 -0
- package/esm/lib/services/transfer/types.d.ts +43 -0
- package/esm/lib/services/transfer/types.d.ts.map +1 -0
- package/esm/lib/services/transfer/types.js +2 -0
- package/esm/lib/services/transfer/types.js.map +1 -0
- package/esm/lib/services/types.d.ts +44 -0
- package/esm/lib/services/types.d.ts.map +1 -0
- package/esm/lib/services/types.js +2 -0
- package/esm/lib/services/types.js.map +1 -0
- package/esm/package.json +3 -0
- package/package.json +10 -8
- package/tsconfig.cjs.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/umd/globus.production.js +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/dist/umd/globus.production.js +0 -1
- 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/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/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/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/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/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/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 → cjs}/index.d.ts +0 -0
- /package/{dist/esm → cjs}/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/index.js +0 -0
- /package/{dist/esm → cjs}/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/authorization.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/authorization.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/authorization.js +0 -0
- /package/{dist/esm → cjs}/lib/core/authorization.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/consent.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/consent.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/consent.js +0 -0
- /package/{dist/esm → cjs}/lib/core/consent.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/errors.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/errors.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/errors.js +0 -0
- /package/{dist/esm → cjs}/lib/core/errors.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/fetch.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/fetch.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/fetch.js +0 -0
- /package/{dist/esm → cjs}/lib/core/fetch.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/global.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/global.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/global.js +0 -0
- /package/{dist/esm → cjs}/lib/core/global.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/internals/fetch.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/internals/fetch.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/internals/fetch.js +0 -0
- /package/{dist/esm → cjs}/lib/core/internals/fetch.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/index.js +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/local-storage.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/local-storage.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/local-storage.js +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/local-storage.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/memory.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/memory.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/memory.js +0 -0
- /package/{dist/esm → cjs}/lib/core/storage/memory.js.map +0 -0
- /package/{dist/esm → cjs}/lib/core/url.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/core/url.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/core/url.js +0 -0
- /package/{dist/esm → cjs}/lib/core/url.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/config.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/config.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/config.js +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/config.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/index.js +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/types.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/types.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/types.js +0 -0
- /package/{dist/esm → cjs}/lib/services/auth/types.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/config.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/config.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/config.js +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/config.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/index.js +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/flows.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/flows.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/flows.js +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/flows.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/runs.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/runs.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/runs.js +0 -0
- /package/{dist/esm → cjs}/lib/services/flows/service/runs.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/client.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/client.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/client.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/client.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/index.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/collections.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/collections.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/collections.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/collections.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/endpoint.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/endpoint.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/endpoint.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/endpoint.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/roles.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/roles.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/roles.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/roles.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/storage-gateways.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/storage-gateways.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/storage-gateways.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/user-credentials.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/user-credentials.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/user-credentials.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/user-credentials.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/versioning.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/versioning.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/versioning.js +0 -0
- /package/{dist/esm → cjs}/lib/services/globus-connect-server/service/versioning.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/config.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/config.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/config.js +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/config.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/index.js +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/groups.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/groups.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/groups.js +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/groups.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/membership.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/membership.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/membership.js +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/membership.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/policies.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/policies.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/policies.js +0 -0
- /package/{dist/esm → cjs}/lib/services/groups/service/policies.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/search/config.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/search/config.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/search/config.js +0 -0
- /package/{dist/esm → cjs}/lib/services/search/config.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/search/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/search/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/search/index.js +0 -0
- /package/{dist/esm → cjs}/lib/services/search/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/search/service/query.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/search/service/query.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/search/service/query.js +0 -0
- /package/{dist/esm → cjs}/lib/services/search/service/query.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/shared.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/shared.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/shared.js +0 -0
- /package/{dist/esm → cjs}/lib/services/shared.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/config.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/config.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/config.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/config.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/index.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/index.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/index.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/index.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint-search.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint-search.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint-search.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint-search.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/endpoint.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/file-operations.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/file-operations.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/file-operations.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/file-operations.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/task-submission.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/task-submission.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/task-submission.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/service/task-submission.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/shared.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/shared.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/shared.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/shared.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/types.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/types.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/types.js +0 -0
- /package/{dist/esm → cjs}/lib/services/transfer/types.js.map +0 -0
- /package/{dist/esm → cjs}/lib/services/types.d.ts +0 -0
- /package/{dist/esm → cjs}/lib/services/types.d.ts.map +0 -0
- /package/{dist/esm → cjs}/lib/services/types.js +0 -0
- /package/{dist/esm → cjs}/lib/services/types.js.map +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Environment } from "../../core/global";
|
|
2
|
-
|
|
3
|
-
export const ID = "GROUPS";
|
|
4
|
-
export const HOSTS: Partial<Record<Environment, string>> = {
|
|
5
|
-
sandbox: "groups.api.sandbox.globuscs.info",
|
|
6
|
-
production: "groups.api.globus.org",
|
|
7
|
-
staging: "groups.api.staging.globuscs.info",
|
|
8
|
-
integration: "groups.api.integration.globuscs.info",
|
|
9
|
-
test: "groups.api.test.globuscs.info",
|
|
10
|
-
preview: "groups.api.preview.globuscs.info",
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/api/groups/#scopes
|
|
15
|
-
*/
|
|
16
|
-
export const SCOPES = {
|
|
17
|
-
ALL: "urn:globus:auth:scope:groups.api.globus.org:all",
|
|
18
|
-
VIEW_MY:
|
|
19
|
-
"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership",
|
|
20
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ID, SCOPES } from "../config";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
JSONFetchResponse,
|
|
7
|
-
ServiceMethod,
|
|
8
|
-
ServiceMethodDynamicSegments,
|
|
9
|
-
} from "../../types";
|
|
10
|
-
import type { operations, components } from "@globus/types/groups";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @see https://groups.api.globus.org/redoc#tag/groups/operation/get_my_groups_and_memberships_v2_groups_my_groups_get
|
|
14
|
-
*/
|
|
15
|
-
export const getMyGroups = function (
|
|
16
|
-
options = {},
|
|
17
|
-
sdkOptions?
|
|
18
|
-
): Promise<
|
|
19
|
-
JSONFetchResponse<
|
|
20
|
-
operations["get_my_groups_and_memberships_v2_groups_my_groups_get"]["responses"]["200"]["content"]["application/json"]
|
|
21
|
-
>
|
|
22
|
-
> {
|
|
23
|
-
return fetchWithScope(
|
|
24
|
-
SCOPES.ALL,
|
|
25
|
-
build(ID, `/v2/groups/my_groups`, {
|
|
26
|
-
search: options.query,
|
|
27
|
-
}),
|
|
28
|
-
{
|
|
29
|
-
...sdkOptions?.fetch?.options,
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
} satisfies ServiceMethod<{
|
|
33
|
-
query?: {
|
|
34
|
-
/**
|
|
35
|
-
* @todo This should probably be replaced with a more specific type for the method's accepted query parameters once available.
|
|
36
|
-
*/
|
|
37
|
-
statuses?: components["schemas"]["StatusEnum"][];
|
|
38
|
-
};
|
|
39
|
-
}>;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @see https://groups.api.globus.org/redoc#tag/groups/operation/get_group_v2_groups__group_id__get
|
|
43
|
-
*/
|
|
44
|
-
export const get = function (
|
|
45
|
-
group_id,
|
|
46
|
-
options = {},
|
|
47
|
-
sdkOptions?
|
|
48
|
-
): Promise<
|
|
49
|
-
JSONFetchResponse<
|
|
50
|
-
operations["get_group_v2_groups__group_id__get"]["responses"]["200"]["content"]["application/json"]
|
|
51
|
-
>
|
|
52
|
-
> {
|
|
53
|
-
return fetchWithScope(
|
|
54
|
-
SCOPES.ALL,
|
|
55
|
-
build(ID, `/v2/groups/${group_id}`, {
|
|
56
|
-
search: options.query,
|
|
57
|
-
}),
|
|
58
|
-
{
|
|
59
|
-
...sdkOptions?.fetch?.options,
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
63
|
-
operations["get_group_v2_groups__group_id__get"]["parameters"]["path"]["group_id"],
|
|
64
|
-
{
|
|
65
|
-
query?: operations["get_group_v2_groups__group_id__get"]["parameters"]["query"];
|
|
66
|
-
}
|
|
67
|
-
>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ID, SCOPES } from "../config";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
JSONFetchResponse,
|
|
7
|
-
ServiceMethodDynamicSegments,
|
|
8
|
-
} from "../../types";
|
|
9
|
-
import type { operations } from "@globus/types/groups";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Perform actions on members of the group.
|
|
13
|
-
* @see https://groups.api.globus.org/redoc#tag/groups/operation/group_membership_post_actions_v2_groups__group_id__post
|
|
14
|
-
*/
|
|
15
|
-
export const act = function (
|
|
16
|
-
group_id,
|
|
17
|
-
options,
|
|
18
|
-
sdkOptions?
|
|
19
|
-
): Promise<
|
|
20
|
-
JSONFetchResponse<
|
|
21
|
-
operations["group_membership_post_actions_v2_groups__group_id__post"]["responses"]["200"]["content"]["application/json"]
|
|
22
|
-
>
|
|
23
|
-
> {
|
|
24
|
-
if (!options?.payload) throw new Error("payload is required.");
|
|
25
|
-
return fetchWithScope(
|
|
26
|
-
SCOPES.ALL,
|
|
27
|
-
build(ID, `/v2/groups/${group_id}/policies`),
|
|
28
|
-
{
|
|
29
|
-
method: "POST",
|
|
30
|
-
body: JSON.stringify(options.payload),
|
|
31
|
-
...sdkOptions?.fetch?.options,
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
35
|
-
operations["update_group_v2_groups__group_id__put"]["parameters"]["path"]["group_id"],
|
|
36
|
-
{
|
|
37
|
-
payload: operations["group_membership_post_actions_v2_groups__group_id__post"]["requestBody"]["content"]["application/json"];
|
|
38
|
-
}
|
|
39
|
-
>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ID, SCOPES } from "../config";
|
|
2
|
-
import { build } from "../../../core/url";
|
|
3
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
JSONFetchResponse,
|
|
7
|
-
ServiceMethodDynamicSegments,
|
|
8
|
-
} from "../../types";
|
|
9
|
-
import type { operations } from "@globus/types/groups";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @see https://groups.api.globus.org/redoc#tag/groups/operation/get_policies_v2_groups__group_id__policies_get
|
|
13
|
-
*/
|
|
14
|
-
export const get = function (
|
|
15
|
-
group_id,
|
|
16
|
-
_options?,
|
|
17
|
-
sdkOptions?
|
|
18
|
-
): Promise<
|
|
19
|
-
JSONFetchResponse<
|
|
20
|
-
operations["get_policies_v2_groups__group_id__policies_get"]["responses"]["200"]["content"]["application/json"]
|
|
21
|
-
>
|
|
22
|
-
> {
|
|
23
|
-
return fetchWithScope(
|
|
24
|
-
SCOPES.ALL,
|
|
25
|
-
build(ID, `/v2/groups/${group_id}/policies`),
|
|
26
|
-
{
|
|
27
|
-
...sdkOptions?.fetch?.options,
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
31
|
-
operations["get_policies_v2_groups__group_id__policies_get"]["parameters"]["path"]["group_id"],
|
|
32
|
-
never
|
|
33
|
-
>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createStorage } from "../../../../lib/core/storage";
|
|
2
|
-
import { query } from "..";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
describe("search – query", () => {
|
|
7
|
-
test("get", async () => {
|
|
8
|
-
createStorage("memory");
|
|
9
|
-
const result = await query.get("524de2f6-d1a6-4b49-9286-d8dccb4196ae", {
|
|
10
|
-
query: {
|
|
11
|
-
q: "test",
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
const {
|
|
15
|
-
req: { url, method, headers },
|
|
16
|
-
} = (await result.json()) as MirroredRequest;
|
|
17
|
-
expect({
|
|
18
|
-
url,
|
|
19
|
-
method,
|
|
20
|
-
headers,
|
|
21
|
-
}).toMatchInlineSnapshot(`
|
|
22
|
-
{
|
|
23
|
-
"headers": {
|
|
24
|
-
"accept": "*/*",
|
|
25
|
-
"accept-encoding": "gzip,deflate",
|
|
26
|
-
"connection": "close",
|
|
27
|
-
"host": "search.api.globus.org",
|
|
28
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
29
|
-
},
|
|
30
|
-
"method": "GET",
|
|
31
|
-
"url": "https://search.api.globus.org/v1/index/524de2f6-d1a6-4b49-9286-d8dccb4196ae/search?q=test",
|
|
32
|
-
}
|
|
33
|
-
`);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Environment } from "../../core/global";
|
|
2
|
-
|
|
3
|
-
export const ID = "SEARCH";
|
|
4
|
-
export const HOSTS: Partial<Record<Environment, string>> = {
|
|
5
|
-
sandbox: "search.api.sandbox.globuscs.info",
|
|
6
|
-
production: "search.api.globus.org",
|
|
7
|
-
staging: "search.api.staging.globuscs.info",
|
|
8
|
-
integration: "search.api.integration.globuscs.info",
|
|
9
|
-
test: "search.api.test.globuscs.info",
|
|
10
|
-
preview: "search.api.preview.globus.org",
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/api/search/api_usage/#scopes
|
|
15
|
-
*/
|
|
16
|
-
export const SCOPES = {
|
|
17
|
-
ALL: "urn:globus:auth:scope:search.api.globus.org:all",
|
|
18
|
-
INGEST: "urn:globus:auth:scope:search.api.globus.org:ingest",
|
|
19
|
-
SEARCH: "urn:globus:auth:scope:search.api.globus.org:search",
|
|
20
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { build } from "../../../core/url";
|
|
2
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
3
|
-
|
|
4
|
-
import type { ServiceMethodDynamicSegments } from "../../types";
|
|
5
|
-
|
|
6
|
-
import { ID, SCOPES } from "../config";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @param index_id The UUID of the index to query.
|
|
10
|
-
*
|
|
11
|
-
* @see https://docs.globus.org/api/search/reference/get_query/
|
|
12
|
-
*/
|
|
13
|
-
export const get = function (index_id, options?, sdkOptions?) {
|
|
14
|
-
return fetchWithScope(
|
|
15
|
-
SCOPES.SEARCH,
|
|
16
|
-
build(ID, `/v1/index/${index_id}/search`, {
|
|
17
|
-
search: options?.query,
|
|
18
|
-
}),
|
|
19
|
-
{
|
|
20
|
-
...sdkOptions?.fetch?.options,
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
24
|
-
string,
|
|
25
|
-
{
|
|
26
|
-
/**
|
|
27
|
-
* @see https://docs.globus.org/api/search/reference/get_query/#parameters
|
|
28
|
-
*/
|
|
29
|
-
query?: {
|
|
30
|
-
q: string;
|
|
31
|
-
offset?: `${number}`;
|
|
32
|
-
limit?: `${number}`;
|
|
33
|
-
advanced?: "true" | "false";
|
|
34
|
-
bypass_visible_to?: "true" | "false";
|
|
35
|
-
result_format_version?: string;
|
|
36
|
-
filter_principal_sets?: string;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { endpointSearch } from "..";
|
|
2
|
-
import { createStorage } from "../../../../lib/core/storage";
|
|
3
|
-
|
|
4
|
-
import type { MirroredRequest } from "../../../../../mocks/handlers";
|
|
5
|
-
|
|
6
|
-
test("endpointSearch", async () => {
|
|
7
|
-
createStorage("memory");
|
|
8
|
-
const result = await endpointSearch({
|
|
9
|
-
query: {
|
|
10
|
-
filter_fulltext: "my search string",
|
|
11
|
-
limit: 10,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
const {
|
|
15
|
-
req: { url, method, headers },
|
|
16
|
-
} = (await result.json()) as MirroredRequest;
|
|
17
|
-
expect({
|
|
18
|
-
url,
|
|
19
|
-
method,
|
|
20
|
-
headers,
|
|
21
|
-
}).toMatchInlineSnapshot(`
|
|
22
|
-
{
|
|
23
|
-
"headers": {
|
|
24
|
-
"accept": "*/*",
|
|
25
|
-
"accept-encoding": "gzip,deflate",
|
|
26
|
-
"connection": "close",
|
|
27
|
-
"host": "transfer.api.globusonline.org",
|
|
28
|
-
"user-agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
|
|
29
|
-
},
|
|
30
|
-
"method": "GET",
|
|
31
|
-
"url": "https://transfer.api.globusonline.org/v0.10/endpoint_search?filter_fulltext=my+search+string&limit=10",
|
|
32
|
-
}
|
|
33
|
-
`);
|
|
34
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import serviceTestSuite from "../../../../__utils__/service-test-suite";
|
|
2
|
-
import { endpoint } from "..";
|
|
3
|
-
|
|
4
|
-
const ENDPOINT = "c591c905-2674-4227-9d31-1ff9485945a7";
|
|
5
|
-
|
|
6
|
-
serviceTestSuite("transfer", "endpoint", (fetch) => {
|
|
7
|
-
test("get", async () => {
|
|
8
|
-
await endpoint.get(ENDPOINT);
|
|
9
|
-
expect(fetch).toHaveBeenCalled();
|
|
10
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
11
|
-
`https://transfer.api.globusonline.org/v0.10/endpoint/${ENDPOINT}`,
|
|
12
|
-
{
|
|
13
|
-
headers: {},
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import serviceTestSuite from "../../../../__utils__/service-test-suite";
|
|
2
|
-
import { fileOperations } from "..";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* random endpoint-like identifier (uuid)
|
|
6
|
-
*/
|
|
7
|
-
const ENDPOINT = "c591c905-2674-4227-9d31-1ff9485945a7";
|
|
8
|
-
|
|
9
|
-
serviceTestSuite("transfer", "file-operations", (fetch) => {
|
|
10
|
-
test("mkdir", async () => {
|
|
11
|
-
await fileOperations.mkdir(ENDPOINT, {
|
|
12
|
-
payload: {
|
|
13
|
-
path: "/~/new-directory",
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
expect(fetch).toHaveBeenCalled();
|
|
17
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
18
|
-
`https://transfer.api.globusonline.org/v0.10/operation/endpoint/${ENDPOINT}/mkdir`,
|
|
19
|
-
expect.objectContaining({
|
|
20
|
-
body: expect.stringMatching(
|
|
21
|
-
'{"DATA_TYPE":"mkdir","path":"/~/new-directory"}'
|
|
22
|
-
) as unknown,
|
|
23
|
-
headers: { "Content-Type": "application/json" },
|
|
24
|
-
method: "POST",
|
|
25
|
-
})
|
|
26
|
-
);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
test("rename", async () => {
|
|
30
|
-
await fileOperations.rename(ENDPOINT, {
|
|
31
|
-
payload: {
|
|
32
|
-
old_path: "/~/old-directory",
|
|
33
|
-
new_path: "/new-path",
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
expect(fetch).toHaveBeenCalled();
|
|
37
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
38
|
-
`https://transfer.api.globusonline.org/v0.10/operation/endpoint/${ENDPOINT}/rename`,
|
|
39
|
-
expect.objectContaining({
|
|
40
|
-
body: expect.stringMatching(
|
|
41
|
-
'{"DATA_TYPE":"rename","old_path":"/~/old-directory","new_path":"/new-path"}'
|
|
42
|
-
) as unknown,
|
|
43
|
-
headers: {
|
|
44
|
-
"Content-Type": "application/json",
|
|
45
|
-
},
|
|
46
|
-
method: "POST",
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
test("symlink", async () => {
|
|
52
|
-
await fileOperations.symlink(ENDPOINT, {
|
|
53
|
-
payload: {
|
|
54
|
-
symlink_target: "/~/some/project/myfile.txt",
|
|
55
|
-
path: "/~/quick_link.txt",
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
expect(fetch).toHaveBeenCalled();
|
|
59
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
60
|
-
`https://transfer.api.globusonline.org/v0.10/operation/endpoint/${ENDPOINT}/symlink`,
|
|
61
|
-
expect.objectContaining({
|
|
62
|
-
body: expect.stringMatching(
|
|
63
|
-
'{"DATA_TYPE":"symlink","symlink_target":"/~/some/project/myfile.txt","path":"/~/quick_link.txt"}'
|
|
64
|
-
) as unknown,
|
|
65
|
-
headers: {
|
|
66
|
-
"Content-Type": "application/json",
|
|
67
|
-
},
|
|
68
|
-
method: "POST",
|
|
69
|
-
})
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
test("ls", async () => {
|
|
74
|
-
await fileOperations.ls(ENDPOINT, {
|
|
75
|
-
query: {
|
|
76
|
-
path: "/~/",
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
expect(fetch).toHaveBeenCalled();
|
|
80
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
81
|
-
`https://transfer.api.globusonline.org/v0.10/operation/endpoint/${ENDPOINT}/ls?path=%2F%7E%2F`,
|
|
82
|
-
{
|
|
83
|
-
headers: {},
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
});
|
|
87
|
-
});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import serviceTestSuite from "../../../../__utils__/service-test-suite";
|
|
2
|
-
import { taskSubmission } from "..";
|
|
3
|
-
|
|
4
|
-
serviceTestSuite("transfer", "task-submission", (fetch) => {
|
|
5
|
-
test("submissionId", async () => {
|
|
6
|
-
await taskSubmission.submissionId();
|
|
7
|
-
expect(fetch).toHaveBeenCalled();
|
|
8
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
9
|
-
`https://transfer.api.globusonline.org/v0.10/submission_id`,
|
|
10
|
-
{
|
|
11
|
-
headers: {},
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
test("submitDelete", async () => {
|
|
17
|
-
const payload = {
|
|
18
|
-
endpoint: "e434fe90-591f-40d9-8d34-3016b6237046",
|
|
19
|
-
submission_id: "65d1dc8c-5ebb-487e-8990-e5a25e3cf1d4",
|
|
20
|
-
DATA: [{ DATA_TYPE: "delete_item", path: "/" }],
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
await taskSubmission.submitDelete({
|
|
24
|
-
payload,
|
|
25
|
-
});
|
|
26
|
-
expect(fetch).toHaveBeenCalled();
|
|
27
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
28
|
-
`https://transfer.api.globusonline.org/v0.10/delete`,
|
|
29
|
-
expect.objectContaining({
|
|
30
|
-
body: expect.stringContaining(`"DATA_TYPE":"delete"`) as unknown,
|
|
31
|
-
headers: expect.objectContaining({
|
|
32
|
-
"Content-Type": "application/json",
|
|
33
|
-
}) as unknown,
|
|
34
|
-
method: "POST",
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
test("submitTransfer", async () => {
|
|
40
|
-
await taskSubmission.submitTransfer({
|
|
41
|
-
payload: {},
|
|
42
|
-
});
|
|
43
|
-
expect(fetch).toHaveBeenCalled();
|
|
44
|
-
expect(fetch).toHaveBeenCalledWith(
|
|
45
|
-
`https://transfer.api.globusonline.org/v0.10/transfer`,
|
|
46
|
-
expect.objectContaining({
|
|
47
|
-
body: expect.stringContaining(`"DATA_TYPE":"transfer"`) as unknown,
|
|
48
|
-
headers: expect.objectContaining({
|
|
49
|
-
"Content-Type": "application/json",
|
|
50
|
-
}) as unknown,
|
|
51
|
-
method: "POST",
|
|
52
|
-
})
|
|
53
|
-
);
|
|
54
|
-
});
|
|
55
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Environment } from "../../core/global";
|
|
2
|
-
|
|
3
|
-
export const ID = "TRANSFER";
|
|
4
|
-
export const HOSTS: Partial<Record<Environment, string>> = {
|
|
5
|
-
sandbox: "transfer.sandbox.globuscs.info",
|
|
6
|
-
production: "transfer.api.globusonline.org",
|
|
7
|
-
staging: "transfer.api.staging.globuscs.info",
|
|
8
|
-
integration: "transfer.api.integration.globuscs.info",
|
|
9
|
-
test: "transfer.api.test.globuscs.info",
|
|
10
|
-
preview: "transfer.api.preview.globus.org",
|
|
11
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { build } from "../../../core/url";
|
|
2
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
3
|
-
|
|
4
|
-
import type { SDKOptions } from "../../../services/types";
|
|
5
|
-
|
|
6
|
-
import { ID } from "../config";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Get a list of endpoints matching the search filters in a given search scope.
|
|
10
|
-
* @see https://docs.globus.org/api/transfer/endpoint_search/#endpoint_search
|
|
11
|
-
*/
|
|
12
|
-
export const endpointSearch = function (
|
|
13
|
-
/**
|
|
14
|
-
* @see https://docs.globus.org/api/transfer/endpoint_search/#query_parameters
|
|
15
|
-
*/
|
|
16
|
-
options?: {
|
|
17
|
-
/**
|
|
18
|
-
* @todo This type needs to be converted to a record and this method updated
|
|
19
|
-
* to `satisfies` `ServiceMethod`.
|
|
20
|
-
*/
|
|
21
|
-
query?: Globus.Transfer.EndpointSearchQuery;
|
|
22
|
-
},
|
|
23
|
-
sdkOptions?: SDKOptions
|
|
24
|
-
) {
|
|
25
|
-
return fetchWithScope(
|
|
26
|
-
"urn:globus:auth:scope:transfer.api.globus.org:all",
|
|
27
|
-
build(ID, `/v0.10/endpoint_search`, {
|
|
28
|
-
/**
|
|
29
|
-
* Since the exported type used here is an `interface`, we effectivley have to
|
|
30
|
-
* "seal" the type, otherwise the compiler will complain about potentially mismatching index types.
|
|
31
|
-
*/
|
|
32
|
-
search: options?.query as Readonly<Globus.Transfer.EndpointSearchQuery>,
|
|
33
|
-
}),
|
|
34
|
-
sdkOptions?.fetch?.options
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default endpointSearch;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { build } from "../../../core/url";
|
|
2
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
3
|
-
|
|
4
|
-
import { ID } from "../config";
|
|
5
|
-
|
|
6
|
-
import type {
|
|
7
|
-
ServiceMethodDynamicSegments,
|
|
8
|
-
JSONFetchResponse,
|
|
9
|
-
} from "../../../services/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Fetch an endpoint by its UUID.
|
|
13
|
-
*/
|
|
14
|
-
export const get = function (endpoint_xid, _options?, sdkOptions?) {
|
|
15
|
-
return fetchWithScope(
|
|
16
|
-
"urn:globus:auth:scope:transfer.api.globus.org:all",
|
|
17
|
-
build(ID, `/v0.10/endpoint/${endpoint_xid}`),
|
|
18
|
-
{
|
|
19
|
-
...sdkOptions?.fetch?.options,
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
23
|
-
string,
|
|
24
|
-
never,
|
|
25
|
-
JSONFetchResponse<Globus.Transfer.EndpointDocument>
|
|
26
|
-
>;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { build } from "../../../core/url";
|
|
2
|
-
import { fetchWithScope } from "../../../core/fetch";
|
|
3
|
-
import { HTTP_METHODS } from "../../shared";
|
|
4
|
-
|
|
5
|
-
import type { ServiceMethodDynamicSegments } from "../../types";
|
|
6
|
-
|
|
7
|
-
import { getHeadersForService } from "../shared";
|
|
8
|
-
import { ID } from "../config";
|
|
9
|
-
|
|
10
|
-
import type { Transfer } from "../types";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* List the contents of the directory at the specified path on an endpoint’s filesystem.
|
|
14
|
-
* The endpoint must be activated before performing this operation.
|
|
15
|
-
*
|
|
16
|
-
* @see https://docs.globus.org/api/transfer/file_operations/#list_directory_contents
|
|
17
|
-
*/
|
|
18
|
-
export const ls = function (endpoint_xid, options?, sdkOptions?) {
|
|
19
|
-
return fetchWithScope(
|
|
20
|
-
"urn:globus:auth:scope:transfer.api.globus.org:all",
|
|
21
|
-
build(ID, `/v0.10/operation/endpoint/${endpoint_xid}/ls`, {
|
|
22
|
-
search: options?.query,
|
|
23
|
-
}),
|
|
24
|
-
sdkOptions?.fetch?.options
|
|
25
|
-
);
|
|
26
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
27
|
-
string,
|
|
28
|
-
{
|
|
29
|
-
query?: Transfer["DirectoryListingQuery"];
|
|
30
|
-
}
|
|
31
|
-
>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Create a directory at the specified path on an endpoint filesystem.
|
|
35
|
-
* The endpoint must be activated before performing this operation.
|
|
36
|
-
*
|
|
37
|
-
* @see https://docs.globus.org/api/transfer/file_operations/#make_directory
|
|
38
|
-
*/
|
|
39
|
-
export const mkdir = function (endpoint_xid, options, sdkOptions?) {
|
|
40
|
-
return fetchWithScope(
|
|
41
|
-
"urn:globus:auth:scope:transfer.api.globus.org:all",
|
|
42
|
-
build(ID, `/v0.10/operation/endpoint/${endpoint_xid}/mkdir`),
|
|
43
|
-
{
|
|
44
|
-
method: HTTP_METHODS.POST,
|
|
45
|
-
body: JSON.stringify({
|
|
46
|
-
DATA_TYPE: "mkdir",
|
|
47
|
-
...options?.payload,
|
|
48
|
-
}),
|
|
49
|
-
headers: getHeadersForService(HTTP_METHODS.POST),
|
|
50
|
-
...sdkOptions?.fetch?.options,
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
54
|
-
string,
|
|
55
|
-
{
|
|
56
|
-
payload: Omit<Transfer["Request"]["Mkdir"], "DATA_TYPE">;
|
|
57
|
-
}
|
|
58
|
-
>;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Rename or move a file, directory, or symlink on an endpoint filesystem.
|
|
62
|
-
* If the object is a symlink, the symlink itself is renamed, not its target
|
|
63
|
-
* The endpoint must be activated before performing this operation.
|
|
64
|
-
* When moving to a different parent directory, the parent directory of the new path must already exist.
|
|
65
|
-
*
|
|
66
|
-
* @see https://docs.globus.org/api/transfer/file_operations/#rename
|
|
67
|
-
*/
|
|
68
|
-
export const rename = function (endpoint_xid, options, sdkOptions?) {
|
|
69
|
-
return fetchWithScope(
|
|
70
|
-
"urn:globus:auth:scope:transfer.api.globus.org:all",
|
|
71
|
-
build(ID, `/v0.10/operation/endpoint/${endpoint_xid}/rename`),
|
|
72
|
-
{
|
|
73
|
-
method: HTTP_METHODS.POST,
|
|
74
|
-
body: JSON.stringify({
|
|
75
|
-
DATA_TYPE: "rename",
|
|
76
|
-
...options?.payload,
|
|
77
|
-
}),
|
|
78
|
-
headers: getHeadersForService(HTTP_METHODS.POST),
|
|
79
|
-
...sdkOptions?.fetch?.options,
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
83
|
-
string,
|
|
84
|
-
{
|
|
85
|
-
payload: Omit<Transfer["Request"]["Rename"], "DATA_TYPE">;
|
|
86
|
-
}
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Create a directory at the specified path on an endpoint filesystem.
|
|
91
|
-
* The endpoint must be activated before performing this operation.
|
|
92
|
-
*
|
|
93
|
-
* @see https://docs.globus.org/api/transfer/file_operations/#symlink
|
|
94
|
-
*/
|
|
95
|
-
export const symlink = function (endpoint_xid, options, sdkOptions?) {
|
|
96
|
-
return fetchWithScope(
|
|
97
|
-
"urn:globus:auth:scope:transfer.api.globus.org:all",
|
|
98
|
-
build(ID, `/v0.10/operation/endpoint/${endpoint_xid}/symlink`),
|
|
99
|
-
{
|
|
100
|
-
method: HTTP_METHODS.POST,
|
|
101
|
-
body: JSON.stringify({
|
|
102
|
-
DATA_TYPE: "symlink",
|
|
103
|
-
...options?.payload,
|
|
104
|
-
}),
|
|
105
|
-
headers: getHeadersForService(HTTP_METHODS.POST),
|
|
106
|
-
...sdkOptions?.fetch?.options,
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
} satisfies ServiceMethodDynamicSegments<
|
|
110
|
-
string,
|
|
111
|
-
{
|
|
112
|
-
payload: Omit<Transfer["Request"]["Symlink"], "DATA_TYPE">;
|
|
113
|
-
}
|
|
114
|
-
>;
|