@lowdefy/connection-google-sheets 0.0.0-experimental-20251010122007 → 0.0.0-experimental-20251015143743
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/LICENSE +183 -183
- package/package.json +3 -3
- package/dist/connections/GoogleSheet/GoogleSheetAppendMany/documentation.md +0 -93
- package/dist/connections/GoogleSheet/GoogleSheetAppendOne/documentation.md +0 -79
- package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/documentation.md +0 -85
- package/dist/connections/GoogleSheet/GoogleSheetGetMany/documentation.md +0 -145
- package/dist/connections/GoogleSheet/GoogleSheetGetOne/documentation.md +0 -80
- package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/documentation.md +0 -105
- package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/documentation.md +0 -113
- package/dist/connections/GoogleSheet/documentation.md +0 -176
package/LICENSE
CHANGED
|
@@ -2,180 +2,180 @@
|
|
|
2
2
|
Version 2.0, January 2004
|
|
3
3
|
http://www.apache.org/licenses/
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
179
|
|
|
180
180
|
To apply the Apache License to your work, attach the following
|
|
181
181
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
@@ -186,16 +186,16 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
194
|
|
|
195
195
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
196
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-google-sheets",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20251015143743",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"dist/*"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
38
|
+
"@lowdefy/helpers": "0.0.0-experimental-20251015143743",
|
|
39
39
|
"google-spreadsheet": "3.3.0",
|
|
40
40
|
"mingo": "6.4.9",
|
|
41
41
|
"moment": "2.29.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "28.1.3",
|
|
45
|
-
"@lowdefy/ajv": "0.0.0-experimental-
|
|
45
|
+
"@lowdefy/ajv": "0.0.0-experimental-20251015143743",
|
|
46
46
|
"@swc/cli": "0.1.63",
|
|
47
47
|
"@swc/core": "1.3.99",
|
|
48
48
|
"@swc/jest": "0.2.29",
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetAppendMany
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetAppendMany` request inserts an array of documents as rows in a Google Sheet.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `rows: object[]`: __Required__ - The rows to insert into the sheet. An an array of objects where keys are the column names and values are the values to insert.
|
|
12
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
13
|
-
- `raw: boolean`: Store raw values instead of converting as if typed into the sheets UI.
|
|
14
|
-
|
|
15
|
-
</DESCRIPTION>
|
|
16
|
-
|
|
17
|
-
<CONNECTION>
|
|
18
|
-
GoogleSheet
|
|
19
|
-
</CONNECTION>
|
|
20
|
-
|
|
21
|
-
<SCHEMA>
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
export default {
|
|
25
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
26
|
-
title: 'Lowdefy Request Schema - GoogleSheetAppendMany',
|
|
27
|
-
type: 'object',
|
|
28
|
-
required: ['rows'],
|
|
29
|
-
properties: {
|
|
30
|
-
rows: {
|
|
31
|
-
type: 'array',
|
|
32
|
-
description:
|
|
33
|
-
'The rows to insert into the sheet. An an array of objects where keys are the column names and values are the values to insert.',
|
|
34
|
-
errorMessage: {
|
|
35
|
-
type: 'GoogleSheetAppendMany request property "rows" should be an array.',
|
|
36
|
-
},
|
|
37
|
-
items: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
description:
|
|
40
|
-
'The row to insert into the sheet. An object where keys are the column names and values are the values to insert.',
|
|
41
|
-
errorMessage: {
|
|
42
|
-
type: 'GoogleSheetAppendMany request property "rows" should be an array of objects.',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
options: {
|
|
47
|
-
type: 'object',
|
|
48
|
-
properties: {
|
|
49
|
-
raw: {
|
|
50
|
-
type: 'boolean',
|
|
51
|
-
description: 'Store raw values instead of converting as if typed into the sheets UI.',
|
|
52
|
-
errorMessage: {
|
|
53
|
-
type: 'GoogleSheetAppendMany request property "options.raw" should be a boolean.',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
errorMessage: {
|
|
60
|
-
type: 'GoogleSheetAppendMany request properties should be an object.',
|
|
61
|
-
required: {
|
|
62
|
-
rows: 'GoogleSheetAppendMany request should have required property "rows".',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
</SCHEMA>
|
|
69
|
-
|
|
70
|
-
<EXAMPLES>
|
|
71
|
-
|
|
72
|
-
### Insert a list of rows
|
|
73
|
-
|
|
74
|
-
```yaml
|
|
75
|
-
requests:
|
|
76
|
-
- id: append_rows
|
|
77
|
-
type: GoogleSheetAppendMany
|
|
78
|
-
connectionId: google_sheets
|
|
79
|
-
properties:
|
|
80
|
-
rows:
|
|
81
|
-
- name: D.Va
|
|
82
|
-
role: Tank
|
|
83
|
-
- name: Tracer
|
|
84
|
-
role: Damage
|
|
85
|
-
- name: Genji
|
|
86
|
-
role: Damage
|
|
87
|
-
- name: Reinhart
|
|
88
|
-
role: Tank
|
|
89
|
-
- name: Mercy
|
|
90
|
-
role: Support
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
</EXAMPLES>
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetAppendOne
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetAppendOne` request inserts a documents as a row in a Google Sheet.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `row: object`: __Required__ - The row to insert into the sheet. An object where keys are the column names and values are the values to insert.
|
|
12
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
13
|
-
- `raw: boolean`: Store raw values instead of converting as if typed into the sheets UI.
|
|
14
|
-
|
|
15
|
-
</DESCRIPTION>
|
|
16
|
-
|
|
17
|
-
<CONNECTION>
|
|
18
|
-
GoogleSheet
|
|
19
|
-
</CONNECTION>
|
|
20
|
-
|
|
21
|
-
<SCHEMA>
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
export default {
|
|
25
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
26
|
-
title: 'Lowdefy Request Schema - GoogleSheetAppendOne',
|
|
27
|
-
type: 'object',
|
|
28
|
-
required: ['row'],
|
|
29
|
-
properties: {
|
|
30
|
-
row: {
|
|
31
|
-
type: 'object',
|
|
32
|
-
description:
|
|
33
|
-
'The row to insert into the sheet. An object where keys are the column names and values are the values to insert.',
|
|
34
|
-
errorMessage: {
|
|
35
|
-
type: 'GoogleSheetAppendOne request property "row" should be an object.',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
options: {
|
|
39
|
-
type: 'object',
|
|
40
|
-
properties: {
|
|
41
|
-
raw: {
|
|
42
|
-
type: 'boolean',
|
|
43
|
-
description: 'Store raw values instead of converting as if typed into the sheets UI.',
|
|
44
|
-
errorMessage: {
|
|
45
|
-
type: 'GoogleSheetAppendOne request property "options.raw" should be a boolean.',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
errorMessage: {
|
|
52
|
-
type: 'GoogleSheetAppendOne request properties should be an object.',
|
|
53
|
-
required: {
|
|
54
|
-
row: 'GoogleSheetAppendOne request should have required property "row".',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
</SCHEMA>
|
|
61
|
-
|
|
62
|
-
<EXAMPLES>
|
|
63
|
-
|
|
64
|
-
### Insert a single row
|
|
65
|
-
|
|
66
|
-
```yaml
|
|
67
|
-
requests:
|
|
68
|
-
- id: insert_dva
|
|
69
|
-
type: GoogleSheetAppendOne
|
|
70
|
-
connectionId: google_sheets
|
|
71
|
-
properties:
|
|
72
|
-
row:
|
|
73
|
-
name: D.Va
|
|
74
|
-
role: Tank
|
|
75
|
-
real_name: Hana Song
|
|
76
|
-
age: 19
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
</EXAMPLES>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetDeleteOne
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetDeleteOne` request deletes a row from a Google Sheet. It deletes the first row matched by the filter, written as a MongoDB query expression.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `filter: object`: __Required__ - A MongoDB query expression to filter the data. The first row matched by the filter will be deleted.
|
|
12
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
13
|
-
- `limit: number`: The maximum number of rows to fetch.
|
|
14
|
-
- `skip: number`: The number of rows to skip from the top of the sheet.
|
|
15
|
-
|
|
16
|
-
</DESCRIPTION>
|
|
17
|
-
|
|
18
|
-
<CONNECTION>
|
|
19
|
-
GoogleSheet
|
|
20
|
-
</CONNECTION>
|
|
21
|
-
|
|
22
|
-
<SCHEMA>
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
export default {
|
|
26
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
27
|
-
title: 'Lowdefy Request Schema - GoogleSheetDeleteOne',
|
|
28
|
-
type: 'object',
|
|
29
|
-
required: ['filter'],
|
|
30
|
-
properties: {
|
|
31
|
-
filter: {
|
|
32
|
-
type: 'object',
|
|
33
|
-
description:
|
|
34
|
-
'A MongoDB query expression to filter the data. The first row matched by the filter will be deleted.',
|
|
35
|
-
errorMessage: {
|
|
36
|
-
type: 'GoogleSheetDeleteOne request property "filter" should be an object.',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
options: {
|
|
40
|
-
type: 'object',
|
|
41
|
-
properties: {
|
|
42
|
-
limit: {
|
|
43
|
-
type: 'number',
|
|
44
|
-
description: 'The maximum number of rows to fetch.',
|
|
45
|
-
errorMessage: {
|
|
46
|
-
type: 'GoogleSheetDeleteOne request property "options.limit" should be a number.',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
skip: {
|
|
50
|
-
type: 'number',
|
|
51
|
-
description: 'The number of rows to skip from the top of the sheet.',
|
|
52
|
-
errorMessage: {
|
|
53
|
-
type: 'GoogleSheetDeleteOne request property "options.skip" should be a number.',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
errorMessage: {
|
|
60
|
-
type: 'GoogleSheetDeleteOne request properties should be an object.',
|
|
61
|
-
required: {
|
|
62
|
-
filter: 'GoogleSheetDeleteOne request should have required property "filter".',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
</SCHEMA>
|
|
69
|
-
|
|
70
|
-
<EXAMPLES>
|
|
71
|
-
|
|
72
|
-
### Delete the row where name is "Hanzo"
|
|
73
|
-
|
|
74
|
-
```yaml
|
|
75
|
-
requests:
|
|
76
|
-
- id: delete_hanzo
|
|
77
|
-
type: GoogleSheetDeleteOne
|
|
78
|
-
connectionId: google_sheets
|
|
79
|
-
properties:
|
|
80
|
-
filter:
|
|
81
|
-
name:
|
|
82
|
-
$eq: Hanzo
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
</EXAMPLES>
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetGetMany
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetGetMany` request fetches a number of rows from the spreadsheet. The `limit` and `skip` options can be used to control which documents are read from the spreadsheet. The filter or pipeline options can then be used to filter or transform the fetched data.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `filter: object`: A MongoDB query expression to filter the data.
|
|
12
|
-
- `pipeline: object[]`: A MongoDB aggregation pipeline to transform the data.
|
|
13
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
14
|
-
- `limit: number`: The maximum number of rows to fetch.
|
|
15
|
-
- `skip: number`: The number of rows to skip from the top of the sheet.
|
|
16
|
-
|
|
17
|
-
</DESCRIPTION>
|
|
18
|
-
|
|
19
|
-
<CONNECTION>
|
|
20
|
-
GoogleSheet
|
|
21
|
-
</CONNECTION>
|
|
22
|
-
|
|
23
|
-
<SCHEMA>
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
export default {
|
|
27
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
28
|
-
title: 'Lowdefy Request Schema - GoogleSheetGetMany',
|
|
29
|
-
type: 'object',
|
|
30
|
-
properties: {
|
|
31
|
-
filter: {
|
|
32
|
-
type: 'object',
|
|
33
|
-
description: 'A MongoDB query expression to filter the data.',
|
|
34
|
-
errorMessage: {
|
|
35
|
-
type: 'GoogleSheetGetMany request property "filter" should be an object.',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
pipeline: {
|
|
39
|
-
type: 'array',
|
|
40
|
-
description: 'A MongoDB aggregation pipeline to transform the data.',
|
|
41
|
-
errorMessage: {
|
|
42
|
-
type: 'GoogleSheetGetMany request property "pipeline" should be an array.',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
options: {
|
|
46
|
-
type: 'object',
|
|
47
|
-
properties: {
|
|
48
|
-
limit: {
|
|
49
|
-
type: 'number',
|
|
50
|
-
description: 'The maximum number of rows to fetch.',
|
|
51
|
-
errorMessage: {
|
|
52
|
-
type: 'GoogleSheetGetMany request property "options.limit" should be a number.',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
skip: {
|
|
56
|
-
type: 'number',
|
|
57
|
-
description: 'The number of rows to skip from the top of the sheet.',
|
|
58
|
-
errorMessage: {
|
|
59
|
-
type: 'GoogleSheetGetMany request property "options.skip" should be a number.',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
errorMessage: {
|
|
66
|
-
type: 'GoogleSheetGetMany request properties should be an object.',
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
</SCHEMA>
|
|
72
|
-
|
|
73
|
-
<EXAMPLES>
|
|
74
|
-
|
|
75
|
-
### Get the first 10 rows
|
|
76
|
-
|
|
77
|
-
```yaml
|
|
78
|
-
requests:
|
|
79
|
-
- id: get_10_rows
|
|
80
|
-
type: GoogleSheetGetMany
|
|
81
|
-
connectionId: google_sheets
|
|
82
|
-
properties:
|
|
83
|
-
options:
|
|
84
|
-
limit: 10
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Pagination using limit and skip
|
|
88
|
-
|
|
89
|
-
```yaml
|
|
90
|
-
requests:
|
|
91
|
-
- id: get_10_rows
|
|
92
|
-
type: GoogleSheetGetMany
|
|
93
|
-
connectionId: google_sheets
|
|
94
|
-
payload:
|
|
95
|
-
page_size:
|
|
96
|
-
_state: page_size
|
|
97
|
-
page_number:
|
|
98
|
-
_state: page_number
|
|
99
|
-
properties:
|
|
100
|
-
options:
|
|
101
|
-
skip:
|
|
102
|
-
_product:
|
|
103
|
-
- _payload: page_size
|
|
104
|
-
- _subtract:
|
|
105
|
-
- _payload: page_number
|
|
106
|
-
- 1
|
|
107
|
-
limit:
|
|
108
|
-
_payload: page_size
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Get all records where age is greater than 25
|
|
112
|
-
|
|
113
|
-
```yaml
|
|
114
|
-
requests:
|
|
115
|
-
- id: get_10_rows
|
|
116
|
-
type: GoogleSheetGetMany
|
|
117
|
-
connectionId: google_sheets
|
|
118
|
-
properties:
|
|
119
|
-
filter:
|
|
120
|
-
age:
|
|
121
|
-
$gt: 25
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
### Use an aggregation pipeline to aggregate data
|
|
125
|
-
|
|
126
|
-
```yaml
|
|
127
|
-
requests:
|
|
128
|
-
- id: get_10_rows
|
|
129
|
-
type: GoogleSheetGetMany
|
|
130
|
-
connectionId: google_sheets
|
|
131
|
-
properties:
|
|
132
|
-
pipeline:
|
|
133
|
-
- $group:
|
|
134
|
-
_id: $region
|
|
135
|
-
score:
|
|
136
|
-
$avg: $score
|
|
137
|
-
- $project:
|
|
138
|
-
_id: 0
|
|
139
|
-
region: $_id
|
|
140
|
-
score: 1
|
|
141
|
-
- $sort:
|
|
142
|
-
score: 1
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
</EXAMPLES>
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetGetOne
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetGetOne` request fetches a single rows from the spreadsheet. The `limit` and `skip` options can be used to control which documents are read from the spreadsheet. The filter option can then be used to filter or select which row is returned.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `filter: object`: A MongoDB query expression to filter the data.
|
|
12
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
13
|
-
- `limit: number`: The maximum number of rows to fetch.
|
|
14
|
-
- `skip: number`: The number of rows to skip from the top of the sheet.
|
|
15
|
-
|
|
16
|
-
</DESCRIPTION>
|
|
17
|
-
|
|
18
|
-
<CONNECTION>
|
|
19
|
-
GoogleSheet
|
|
20
|
-
</CONNECTION>
|
|
21
|
-
|
|
22
|
-
<SCHEMA>
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
export default {
|
|
26
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
27
|
-
title: 'Lowdefy Request Schema - GoogleSheetGetOne',
|
|
28
|
-
type: 'object',
|
|
29
|
-
properties: {
|
|
30
|
-
filter: {
|
|
31
|
-
type: 'object',
|
|
32
|
-
description: 'A MongoDB query expression to filter the data.',
|
|
33
|
-
errorMessage: {
|
|
34
|
-
type: 'GoogleSheetGetOne request property "filter" should be an object.',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
options: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
properties: {
|
|
40
|
-
limit: {
|
|
41
|
-
type: 'number',
|
|
42
|
-
description: 'The maximum number of rows to fetch.',
|
|
43
|
-
errorMessage: {
|
|
44
|
-
type: 'GoogleSheetGetOne request property "options.limit" should be a number.',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
skip: {
|
|
48
|
-
type: 'number',
|
|
49
|
-
description: 'The number of rows to skip from the top of the sheet.',
|
|
50
|
-
errorMessage: {
|
|
51
|
-
type: 'GoogleSheetGetOne request property "options.skip" should be a number.',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
errorMessage: {
|
|
58
|
-
type: 'GoogleSheetGetOne request properties should be an object.',
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
</SCHEMA>
|
|
64
|
-
|
|
65
|
-
<EXAMPLES>
|
|
66
|
-
|
|
67
|
-
### Get row where name is "Zarya"
|
|
68
|
-
|
|
69
|
-
```yaml
|
|
70
|
-
requests:
|
|
71
|
-
- id: get_10_rows
|
|
72
|
-
type: GoogleSheetGetOne
|
|
73
|
-
connectionId: google_sheets
|
|
74
|
-
properties:
|
|
75
|
-
filter:
|
|
76
|
-
name:
|
|
77
|
-
$eq: Zarya
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
</EXAMPLES>
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetUpdateMany
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetUpdateMany` request updates all the rows matched by the filter.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `filter: object`: A MongoDB query expression to filter the data. . All rows matched by the filter will be updated.
|
|
12
|
-
- `update: object`: The update to apply to the row. An object where keys are the column names and values are the updated values.
|
|
13
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
14
|
-
- `limit: number`: The maximum number of rows to fetch.
|
|
15
|
-
- `raw: boolean`: Store raw values instead of converting as if typed into the sheets UI.
|
|
16
|
-
- `skip: number`: The number of rows to skip from the top of the sheet.
|
|
17
|
-
|
|
18
|
-
</DESCRIPTION>
|
|
19
|
-
|
|
20
|
-
<CONNECTION>
|
|
21
|
-
GoogleSheet
|
|
22
|
-
</CONNECTION>
|
|
23
|
-
|
|
24
|
-
<SCHEMA>
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
export default {
|
|
28
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
29
|
-
title: 'Lowdefy Request Schema - GoogleSheetUpdateMany',
|
|
30
|
-
type: 'object',
|
|
31
|
-
required: ['update', 'filter'],
|
|
32
|
-
properties: {
|
|
33
|
-
filter: {
|
|
34
|
-
type: 'object',
|
|
35
|
-
description:
|
|
36
|
-
'A MongoDB query expression to filter the data. All rows matched by the filter will be updated.',
|
|
37
|
-
errorMessage: {
|
|
38
|
-
type: 'GoogleSheetUpdateMany request property "filter" should be an object.',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
update: {
|
|
42
|
-
type: 'object',
|
|
43
|
-
description:
|
|
44
|
-
'The update to apply to the row. An object where keys are the column names and values are the updated values.',
|
|
45
|
-
errorMessage: {
|
|
46
|
-
type: 'GoogleSheetUpdateMany request property "update" should be an object.',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
options: {
|
|
50
|
-
type: 'object',
|
|
51
|
-
properties: {
|
|
52
|
-
limit: {
|
|
53
|
-
type: 'number',
|
|
54
|
-
description: 'The maximum number of rows to fetch.',
|
|
55
|
-
errorMessage: {
|
|
56
|
-
type: 'GoogleSheetUpdateMany request property "options.limit" should be a number.',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
raw: {
|
|
60
|
-
type: 'boolean',
|
|
61
|
-
description: 'Store raw values instead of converting as if typed into the sheets UI.',
|
|
62
|
-
errorMessage: {
|
|
63
|
-
type: 'GoogleSheetUpdateMany request property "options.raw" should be a boolean.',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
skip: {
|
|
67
|
-
type: 'number',
|
|
68
|
-
description: 'The number of rows to skip from the top of the sheet.',
|
|
69
|
-
errorMessage: {
|
|
70
|
-
type: 'GoogleSheetUpdateMany request property "options.skip" should be a number.',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
errorMessage: {
|
|
77
|
-
type: 'GoogleSheetUpdateMany request properties should be an object.',
|
|
78
|
-
required: {
|
|
79
|
-
filter: 'GoogleSheetUpdateMany request should have required property "filter".',
|
|
80
|
-
update: 'GoogleSheetUpdateMany request should have required property "update".',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
</SCHEMA>
|
|
87
|
-
|
|
88
|
-
<EXAMPLES>
|
|
89
|
-
|
|
90
|
-
### Update all rows where age is less than 18
|
|
91
|
-
|
|
92
|
-
```yaml
|
|
93
|
-
requests:
|
|
94
|
-
- id: get_10_rows
|
|
95
|
-
type: GoogleSheetUpdateMany
|
|
96
|
-
connectionId: google_sheets
|
|
97
|
-
properties:
|
|
98
|
-
filter:
|
|
99
|
-
age:
|
|
100
|
-
$lt: 18
|
|
101
|
-
update:
|
|
102
|
-
minor: true
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
</EXAMPLES>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheetUpdateOne
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheetUpdateOne` request updates the first row matched by the filter.
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- `filter: object`: A MongoDB query expression to filter the data. . The first row matched by the filter will be updated.
|
|
12
|
-
- `update: object`: The update to apply to the row. An object where keys are the column names and values are the updated values.
|
|
13
|
-
- `options: object`: Optional settings. Supported settings are:
|
|
14
|
-
- `limit: number`: The maximum number of rows to fetch.
|
|
15
|
-
- `raw: boolean`: Store raw values instead of converting as if typed into the sheets UI.
|
|
16
|
-
- `skip: number`: The number of rows to skip from the top of the sheet.
|
|
17
|
-
- `upsert: boolean`: Insert the row if no rows are matched by the filter.
|
|
18
|
-
|
|
19
|
-
</DESCRIPTION>
|
|
20
|
-
|
|
21
|
-
<CONNECTION>
|
|
22
|
-
GoogleSheet
|
|
23
|
-
</CONNECTION>
|
|
24
|
-
|
|
25
|
-
<SCHEMA>
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
export default {
|
|
29
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
30
|
-
title: 'Lowdefy Request Schema - GoogleSheetUpdateOne',
|
|
31
|
-
type: 'object',
|
|
32
|
-
required: ['update', 'filter'],
|
|
33
|
-
properties: {
|
|
34
|
-
filter: {
|
|
35
|
-
type: 'object',
|
|
36
|
-
description:
|
|
37
|
-
'A MongoDB query expression to filter the data. The first row matched by the filter will be updated.',
|
|
38
|
-
errorMessage: {
|
|
39
|
-
type: 'GoogleSheetUpdateOne request property "filter" should be an object.',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
update: {
|
|
43
|
-
type: 'object',
|
|
44
|
-
description:
|
|
45
|
-
'The update to apply to the row. An object where keys are the column names and values are the updated values.',
|
|
46
|
-
errorMessage: {
|
|
47
|
-
type: 'GoogleSheetUpdateOne request property "update" should be an object.',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
options: {
|
|
51
|
-
type: 'object',
|
|
52
|
-
properties: {
|
|
53
|
-
limit: {
|
|
54
|
-
type: 'number',
|
|
55
|
-
description: 'The maximum number of rows to fetch.',
|
|
56
|
-
errorMessage: {
|
|
57
|
-
type: 'GoogleSheetUpdateOne request property "options.limit" should be a number.',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
raw: {
|
|
61
|
-
type: 'boolean',
|
|
62
|
-
description: 'Store raw values instead of converting as if typed into the sheets UI.',
|
|
63
|
-
errorMessage: {
|
|
64
|
-
type: 'GoogleSheetUpdateOne request property "options.raw" should be a boolean.',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
skip: {
|
|
68
|
-
type: 'number',
|
|
69
|
-
description: 'The number of rows to skip from the top of the sheet.',
|
|
70
|
-
errorMessage: {
|
|
71
|
-
type: 'GoogleSheetUpdateOne request property "options.skip" should be a number.',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
upsert: {
|
|
75
|
-
type: 'boolean',
|
|
76
|
-
description: 'Insert the row if no rows are matched by the filter.',
|
|
77
|
-
errorMessage: {
|
|
78
|
-
type: 'GoogleSheetUpdateOne request property "options.upsert" should be a boolean.',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
errorMessage: {
|
|
85
|
-
type: 'GoogleSheetUpdateOne request properties should be an object.',
|
|
86
|
-
required: {
|
|
87
|
-
filter: 'GoogleSheetUpdateOne request should have required property "filter".',
|
|
88
|
-
update: 'GoogleSheetUpdateOne request should have required property "update".',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
</SCHEMA>
|
|
95
|
-
|
|
96
|
-
<EXAMPLES>
|
|
97
|
-
|
|
98
|
-
### Update the row for "Doomfist"
|
|
99
|
-
|
|
100
|
-
```yaml
|
|
101
|
-
requests:
|
|
102
|
-
- id: get_10_rows
|
|
103
|
-
type: GoogleSheetUpdateOne
|
|
104
|
-
connectionId: google_sheets
|
|
105
|
-
properties:
|
|
106
|
-
filter:
|
|
107
|
-
name:
|
|
108
|
-
$eq: Doomfist
|
|
109
|
-
update:
|
|
110
|
-
overpowered: true
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
</EXAMPLES>
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
<TITLE>
|
|
2
|
-
GoogleSheet
|
|
3
|
-
</TITLE>
|
|
4
|
-
|
|
5
|
-
<DESCRIPTION>
|
|
6
|
-
|
|
7
|
-
The `GoogleSheet` connection offers the flexibility to connect to Google Sheets using either an API key or a service account. While an API key is suitable for read-only access to public sheets, most applications will benefit more from using a service account, which offers broader capabilities. For detailed instructions on creating a service account, you can refer to the [Google Sheets API Quickstart Guide](https://developers.google.com/sheets/api/quickstart/js) and the [Google Workspace Guide on Creating a Project](https://developers.google.com/workspace/guides/create-project).
|
|
8
|
-
|
|
9
|
-
This connection refers to the entire document as the `spreadsheet`, and the individual sheets in the document as `sheets`. The spreadsheet is identified by it's `spreadsheetId`, and sheets can either be identified by their `sheetId` or their `index` (position in the document starting from 0).
|
|
10
|
-
|
|
11
|
-
When a sheet is accessed in a browser the url either looks like:
|
|
12
|
-
`https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit#gid={sheetId}`
|
|
13
|
-
|
|
14
|
-
The `GoogleSheet` connection works with sheets as a row based data store. Each row is a data record, and a header row needs to be present to define the column names. This header needs to be created in the Google Sheets web interface. Types can be specified for any of the columns in the sheet. If a type is not specified, the value will be read as a string. The `json` type will stringify a object as JSON before saving it, and parse it again when reading.
|
|
15
|
-
|
|
16
|
-
### Properties
|
|
17
|
-
|
|
18
|
-
- `apiKey: string`: API key for your google project.
|
|
19
|
-
- `client_email: string`: The email address of your service account.
|
|
20
|
-
- `private_key: string`: The private key for your service account. Base64 encode the string if you have issues with the newline characters in the string.
|
|
21
|
-
- `sheetId: string`: The ID of the worksheet. Can be found in the URL as the "gid" parameter. One of `sheetId` or `sheetIndex` is required.
|
|
22
|
-
- `sheetIndex: number`: The position of the worksheet as they appear in the Google sheets UI. Starts from 0. One of `sheetId` or `sheetIndex` is required.
|
|
23
|
-
- `spreadsheetId: string`: __Required__ - The document ID from the URL of the spreadsheet.
|
|
24
|
-
- `columnTypes: object`: An object that defines the data types for each column. Each key should be the column name, and the value should be one of: `string`, `number`, `boolean`, `date`, or `json`.
|
|
25
|
-
- `read: boolean`: Default: `true` - Allow read operations like find on the sheet.
|
|
26
|
-
- `write: boolean`: Default: `false` - Allow write operations like update on the sheet.
|
|
27
|
-
|
|
28
|
-
</DESCRIPTION>
|
|
29
|
-
|
|
30
|
-
<REQUESTS>
|
|
31
|
-
|
|
32
|
-
- GoogleSheetAppendMany
|
|
33
|
-
- GoogleSheetAppendOne
|
|
34
|
-
- GoogleSheetDeleteOne
|
|
35
|
-
- GoogleSheetGetMany
|
|
36
|
-
- GoogleSheetGetOne
|
|
37
|
-
- GoogleSheetUpdateMany
|
|
38
|
-
- GoogleSheetUpdateOne
|
|
39
|
-
|
|
40
|
-
</REQUESTS>
|
|
41
|
-
|
|
42
|
-
<SCHEMA>
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
export default {
|
|
46
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
47
|
-
title: 'Lowdefy Connection Schema - GoogleSheet',
|
|
48
|
-
type: 'object',
|
|
49
|
-
required: ['spreadsheetId'],
|
|
50
|
-
properties: {
|
|
51
|
-
apiKey: {
|
|
52
|
-
type: 'string',
|
|
53
|
-
description: 'API key for your google project.',
|
|
54
|
-
errorMessage: {
|
|
55
|
-
type: 'GoogleSheet connection property "apiKey" should be a string.',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
client_email: {
|
|
59
|
-
type: 'string',
|
|
60
|
-
description: 'The email of your service account.',
|
|
61
|
-
errorMessage: {
|
|
62
|
-
type: 'GoogleSheet connection property "client_email" should be a string.',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
private_key: {
|
|
66
|
-
type: 'string',
|
|
67
|
-
description: 'The private key for your service account.',
|
|
68
|
-
errorMessage: {
|
|
69
|
-
type: 'GoogleSheet connection property "private_key" should be a string.',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
sheetId: {
|
|
73
|
-
type: 'string',
|
|
74
|
-
description:
|
|
75
|
-
'The ID of the worksheet. Can be found in the URL as the "gid" parameter. One of "sheetId" or "sheetIndex" is required.',
|
|
76
|
-
errorMessage: {
|
|
77
|
-
type: 'GoogleSheet connection property "sheetId" should be a string.',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
sheetIndex: {
|
|
81
|
-
type: 'number',
|
|
82
|
-
description:
|
|
83
|
-
'The position of the worksheet as they appear in the Google sheets UI. Starts from 0. One of "sheetId" or "sheetIndex" is required.',
|
|
84
|
-
errorMessage: {
|
|
85
|
-
type: 'GoogleSheet connection property "sheetIndex" should be a number.',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
spreadsheetId: {
|
|
89
|
-
type: 'string',
|
|
90
|
-
description: 'document ID from the URL of the spreadsheet.',
|
|
91
|
-
errorMessage: {
|
|
92
|
-
type: 'GoogleSheet connection property "spreadsheetId" should be a string.',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
columnTypes: {
|
|
96
|
-
type: 'object',
|
|
97
|
-
description: 'Define types for columns in the spreadsheet.',
|
|
98
|
-
patternProperties: {
|
|
99
|
-
'^.*$': {
|
|
100
|
-
type: 'string',
|
|
101
|
-
enum: ['string', 'number', 'boolean', 'date', 'json'],
|
|
102
|
-
errorMessage: {
|
|
103
|
-
enum: 'GoogleSheet connection property "{{ instancePath }}" should be one of "string", "number", "boolean", "date", or "json".',
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
errorMessage: {
|
|
108
|
-
type: 'GoogleSheet connection property "columnTypes" should be an object.',
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
read: {
|
|
112
|
-
type: 'boolean',
|
|
113
|
-
default: true,
|
|
114
|
-
description: 'Allow reads from the spreadsheet.',
|
|
115
|
-
errorMessage: {
|
|
116
|
-
type: 'GoogleSheet connection property "read" should be a boolean.',
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
write: {
|
|
120
|
-
type: 'boolean',
|
|
121
|
-
default: false,
|
|
122
|
-
description: 'Allow writes to the spreadsheet.',
|
|
123
|
-
errorMessage: {
|
|
124
|
-
type: 'GoogleSheet connection property "write" should be a boolean.',
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
errorMessage: {
|
|
129
|
-
type: 'GoogleSheet connection properties should be an object.',
|
|
130
|
-
required: {
|
|
131
|
-
spreadsheetId: 'GoogleSheet connection should have required property "spreadsheetId".',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
</SCHEMA>
|
|
138
|
-
|
|
139
|
-
<EXAMPLES>
|
|
140
|
-
|
|
141
|
-
### Read only access to first sheet in a public spreadsheet
|
|
142
|
-
|
|
143
|
-
```yaml
|
|
144
|
-
connections:
|
|
145
|
-
- id: public_sheet
|
|
146
|
-
type: GoogleSheet
|
|
147
|
-
properties:
|
|
148
|
-
apiKey:
|
|
149
|
-
_secret: GOOGLE_SHEETS_API_KEY
|
|
150
|
-
sheetIndex: 0
|
|
151
|
-
spreadsheetId: ubQsWYNGRUq0gFB1sAp2r9oYE19lZ8yGA1T6y0yBoLPW
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
### Access with a service account, with defined types
|
|
155
|
-
|
|
156
|
-
```yaml
|
|
157
|
-
connections:
|
|
158
|
-
- id: my_sheet
|
|
159
|
-
type: GoogleSheet
|
|
160
|
-
properties:
|
|
161
|
-
client_email:
|
|
162
|
-
_secret: GOOGLE_SHEETS_CLIENT_EMAIL
|
|
163
|
-
private_key:
|
|
164
|
-
_base64.decode:
|
|
165
|
-
_secret: GOOGLE_SHEETS_PRIVATE_KEY
|
|
166
|
-
sheetId: '1199545345'
|
|
167
|
-
spreadsheetId: ubQsWYNGRUq0gFB1sAp2r9oYE19lZ8yGA1T6y0yBoLPW
|
|
168
|
-
columnTypes:
|
|
169
|
-
name: string
|
|
170
|
-
age: number
|
|
171
|
-
birthday: date
|
|
172
|
-
subscribed: boolean
|
|
173
|
-
address: json
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
</EXAMPLES>
|