@marketing-sdk/google-sheets 0.1.1-experimental.0 → 0.1.1-experimental.1
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 +36 -0
- package/package.json +29 -6
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @marketing-sdk/google-sheets
|
|
2
|
+
|
|
3
|
+
Google Sheets provider client for spreadsheet values, ranges, worksheets, and batch updates.
|
|
4
|
+
|
|
5
|
+
> Status: experimental. APIs may change before a stable 1.0.0 release.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @marketing-sdk/core @marketing-sdk/google-sheets
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { GoogleSheetsClient } from '@marketing-sdk/google-sheets';
|
|
17
|
+
|
|
18
|
+
const sheets = new GoogleSheetsClient({
|
|
19
|
+
credentials: {
|
|
20
|
+
client_email: process.env.GOOGLE_SHEETS_CLIENT_EMAIL!,
|
|
21
|
+
private_key: process.env.GOOGLE_SHEETS_PRIVATE_KEY!,
|
|
22
|
+
},
|
|
23
|
+
spreadsheetId: process.env.GOOGLE_SHEETS_SPREADSHEET_ID!,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const { data, error } = await sheets.getRecords('Sheet1', { range: 'A1:E10' });
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
- [Provider docs](https://github.com/cody9swann/marketing-sdk/blob/main/docs/google-sheets.md)
|
|
32
|
+
- [Repository README](https://github.com/cody9swann/marketing-sdk#readme)
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marketing-sdk/google-sheets",
|
|
3
|
-
"version": "0.1.1-experimental.
|
|
4
|
-
"description": "Google Sheets provider for marketing-sdk",
|
|
3
|
+
"version": "0.1.1-experimental.1",
|
|
4
|
+
"description": "Google Sheets provider for @marketing-sdk",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"@marketing-sdk/core": "0.1.1-experimental.1",
|
|
22
|
+
"googleapis": "^131.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@marketing-sdk/core": ">=0.1.
|
|
25
|
+
"@marketing-sdk/core": ">=0.1.1-experimental.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "^5.3.0",
|
|
@@ -31,10 +31,33 @@
|
|
|
31
31
|
"@types/jest": "^29.5.0",
|
|
32
32
|
"@types/node": "^20.0.0"
|
|
33
33
|
},
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/cody9swann/marketing-sdk.git",
|
|
38
|
+
"directory": "packages/google-sheets"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/cody9swann/marketing-sdk/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/cody9swann/marketing-sdk#readme",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18"
|
|
46
|
+
},
|
|
47
|
+
"sideEffects": false,
|
|
48
|
+
"keywords": [
|
|
49
|
+
"marketing",
|
|
50
|
+
"sdk",
|
|
51
|
+
"typescript",
|
|
52
|
+
"google-sheets"
|
|
53
|
+
],
|
|
34
54
|
"scripts": {
|
|
35
55
|
"build": "tsc",
|
|
56
|
+
"dev": "tsc -w",
|
|
36
57
|
"test": "jest",
|
|
58
|
+
"test:watch": "jest --watch",
|
|
37
59
|
"test:coverage": "jest --coverage",
|
|
38
|
-
"typecheck": "tsc --noEmit"
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"clean": "rm -rf dist"
|
|
39
62
|
}
|
|
40
63
|
}
|