@zero-transfer/google-drive 0.1.0-alpha.0 → 0.1.2
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/README.md +29 -15
- package/dist/index.cjs +4 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +2 -2
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
# @zero-transfer/google-drive
|
|
2
2
|
|
|
3
|
-
Google Drive provider
|
|
4
|
-
|
|
5
|
-
> **Alpha umbrella package.** This package currently re-exports the entire
|
|
6
|
-
> [`@zero-transfer/sdk`](https://www.npmjs.com/package/@zero-transfer/sdk)
|
|
7
|
-
> public surface. Future releases will narrow this package to only its
|
|
8
|
-
> dedicated subset (see the
|
|
9
|
-
> [ZeroTransfer remake plan](https://github.com/tonywied17/zero-transfer/blob/main/zero-transfer-remake.md#future-monorepo-shape)).
|
|
10
|
-
> If you want every provider in one install today, depend on
|
|
11
|
-
> `@zero-transfer/sdk` directly.
|
|
3
|
+
> Google Drive provider with OAuth, folder paths, and md5 checksums.
|
|
12
4
|
|
|
13
5
|
## Install
|
|
14
6
|
|
|
@@ -16,17 +8,39 @@ Google Drive provider for ZeroTransfer.
|
|
|
16
8
|
npm install @zero-transfer/google-drive
|
|
17
9
|
```
|
|
18
10
|
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
Google Drive provider over OAuth bearer tokens — paginated folder listings from a configurable root folder id, ranged downloads via `alt=media`, single-shot multipart uploads, and `md5Checksum` exposed as both `uniqueId` and `checksum`.
|
|
14
|
+
|
|
19
15
|
## Usage
|
|
20
16
|
|
|
21
17
|
```ts
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
const client = createTransferClient();
|
|
18
|
+
import { createGoogleDriveProviderFactory } from "@zero-transfer/google-drive";
|
|
25
19
|
```
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
## Public surface
|
|
22
|
+
|
|
23
|
+
This package narrows [`@zero-transfer/sdk`](https://www.npmjs.com/package/@zero-transfer/sdk) to **2** exports. Every symbol is re-exported from the SDK; the table below links into the full API reference:
|
|
24
|
+
|
|
25
|
+
| Symbol | Kind | Notes |
|
|
26
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------------------ |
|
|
27
|
+
| [`createGoogleDriveProviderFactory`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createGoogleDriveProviderFactory.md) | Function | See API reference. |
|
|
28
|
+
| [`GoogleDriveProviderOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/GoogleDriveProviderOptions.md) | Interface | See API reference. |
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
| Example | What it shows |
|
|
33
|
+
| -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
|
|
34
|
+
| [`examples/multi-cloud-orchestration.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/multi-cloud-orchestration.ts) | Multi-cloud orchestration showcase. |
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
- [Scope page](https://github.com/tonywied17/zero-transfer/blob/main/docs/scopes/google-drive.md)
|
|
39
|
+
- [Top-level README](https://github.com/tonywied17/zero-transfer/blob/main/README.md)
|
|
40
|
+
- [Full API reference](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/README.md)
|
|
41
|
+
- [Capability matrix](https://github.com/tonywied17/zero-transfer/blob/main/README.md#capability-matrix)
|
|
42
|
+
- [Examples](https://github.com/tonywied17/zero-transfer/tree/main/examples)
|
|
29
43
|
|
|
30
44
|
## License
|
|
31
45
|
|
|
32
|
-
MIT © Tony Wiedman
|
|
46
|
+
MIT © [Tony Wiedman](https://github.com/tonywied17)
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
// AUTO-GENERATED
|
|
1
|
+
// AUTO-GENERATED. Edit scripts/scope-manifest.mjs and re-run packages:generate.
|
|
2
2
|
"use strict";
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const sdk = require("@zero-transfer/sdk");
|
|
5
|
+
Object.defineProperty(exports, "createGoogleDriveProviderFactory", { enumerable: true, get: () => sdk["createGoogleDriveProviderFactory"] });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
// AUTO-GENERATED
|
|
2
|
-
export
|
|
1
|
+
// AUTO-GENERATED. Edit scripts/scope-manifest.mjs and re-run packages:generate.
|
|
2
|
+
export { createGoogleDriveProviderFactory } from "@zero-transfer/sdk";
|
|
3
|
+
export type { GoogleDriveProviderOptions } from "@zero-transfer/sdk";
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// AUTO-GENERATED
|
|
2
|
-
export
|
|
1
|
+
// AUTO-GENERATED. Edit scripts/scope-manifest.mjs and re-run packages:generate.
|
|
2
|
+
export { createGoogleDriveProviderFactory } from "@zero-transfer/sdk";
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zero-transfer/google-drive",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Google Drive provider
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Google Drive provider with OAuth, folder paths, and md5 checksums.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zero-transfer",
|
|
7
7
|
"google-drive",
|
|
8
|
+
"google-drive",
|
|
8
9
|
"google",
|
|
9
10
|
"drive"
|
|
10
11
|
],
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"bugs": {
|
|
35
36
|
"url": "https://github.com/tonywied17/zero-transfer/issues"
|
|
36
37
|
},
|
|
37
|
-
"homepage": "https://github.com/tonywied17/zero-transfer#readme",
|
|
38
|
+
"homepage": "https://github.com/tonywied17/zero-transfer/tree/main/packages/google-drive#readme",
|
|
38
39
|
"engines": {
|
|
39
40
|
"node": ">=20.0.0"
|
|
40
41
|
},
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"access": "public"
|
|
45
46
|
},
|
|
46
47
|
"sideEffects": false,
|
|
47
|
-
"
|
|
48
|
-
"@zero-transfer/sdk": "0.1.
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@zero-transfer/sdk": "0.1.2"
|
|
49
50
|
}
|
|
50
51
|
}
|