@lowdefy/connection-google-sheets 4.0.0-alpha.6 → 4.0.0-alpha.7

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.
Files changed (35) hide show
  1. package/dist/connections/GoogleSheet/GoogleSheet.js +2 -3
  2. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendMany.js +8 -2
  3. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/schema.js +56 -0
  4. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/GoogleSheetAppendOne.js +8 -2
  5. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/schema.js +49 -0
  6. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/GoogleSheetDeleteOne.js +8 -2
  7. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/schema.js +56 -0
  8. package/dist/connections/GoogleSheet/GoogleSheetGetMany/GoogleSheetGetMany.js +8 -2
  9. package/dist/connections/GoogleSheet/GoogleSheetGetMany/schema.js +57 -0
  10. package/dist/connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOne.js +8 -2
  11. package/dist/connections/GoogleSheet/GoogleSheetGetOne/schema.js +50 -0
  12. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateMany.js +8 -2
  13. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/schema.js +72 -0
  14. package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOne.js +8 -2
  15. package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/schema.js +79 -0
  16. package/dist/connections/GoogleSheet/mingoAggregation.js +17 -11
  17. package/dist/connections/GoogleSheet/mingoFilter.js +1 -1
  18. package/dist/connections/GoogleSheet/schema.js +110 -0
  19. package/dist/{connections/GoogleSheet/GoogleSheetGetOne/index.js → connections.js} +1 -10
  20. package/dist/{connections/GoogleSheet/GoogleSheetUpdateOne/index.js → types.js} +6 -10
  21. package/package.json +12 -11
  22. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendManySchema.json +0 -40
  23. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/index.js +0 -24
  24. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/GoogleSheetAppendOneSchema.json +0 -33
  25. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/index.js +0 -24
  26. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/GoogleSheetDeleteOneSchema.json +0 -40
  27. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/index.js +0 -24
  28. package/dist/connections/GoogleSheet/GoogleSheetGetMany/GoogleSheetGetManySchema.json +0 -43
  29. package/dist/connections/GoogleSheet/GoogleSheetGetMany/index.js +0 -24
  30. package/dist/connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOneSchema.json +0 -36
  31. package/dist/connections/GoogleSheet/GoogleSheetSchema.json +0 -88
  32. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateManySchema.json +0 -55
  33. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/index.js +0 -24
  34. package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOneSchema.json +0 -62
  35. package/dist/index.js +0 -7
@@ -0,0 +1,110 @@
1
+ /*
2
+ Copyright 2020-2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ $schema: 'http://json-schema.org/draft-07/schema#',
17
+ title: 'Lowdefy Connection Schema - GoogleSheet',
18
+ type: 'object',
19
+ required: [
20
+ 'spreadsheetId'
21
+ ],
22
+ properties: {
23
+ apiKey: {
24
+ type: 'string',
25
+ description: 'API key for your google project.',
26
+ errorMessage: {
27
+ type: 'GoogleSheet connection property "apiKey" should be a string.'
28
+ }
29
+ },
30
+ client_email: {
31
+ type: 'string',
32
+ description: 'The email of your service account.',
33
+ errorMessage: {
34
+ type: 'GoogleSheet connection property "client_email" should be a string.'
35
+ }
36
+ },
37
+ private_key: {
38
+ type: 'string',
39
+ description: 'The private key for your service account.',
40
+ errorMessage: {
41
+ type: 'GoogleSheet connection property "private_key" should be a string.'
42
+ }
43
+ },
44
+ sheetId: {
45
+ type: 'string',
46
+ description: 'The ID of the worksheet. Can be found in the URL as the "gid" parameter. One of "sheetId" or "sheetIndex" is required.',
47
+ errorMessage: {
48
+ type: 'GoogleSheet connection property "sheetId" should be a string.'
49
+ }
50
+ },
51
+ sheetIndex: {
52
+ type: 'number',
53
+ description: 'The position of the worksheet as they appear in the Google sheets UI. Starts from 0. One of "sheetId" or "sheetIndex" is required.',
54
+ errorMessage: {
55
+ type: 'GoogleSheet connection property "sheetIndex" should be a number.'
56
+ }
57
+ },
58
+ spreadsheetId: {
59
+ type: 'string',
60
+ description: 'document ID from the URL of the spreadsheet.',
61
+ errorMessage: {
62
+ type: 'GoogleSheet connection property "spreadsheetId" should be a string.'
63
+ }
64
+ },
65
+ columnTypes: {
66
+ type: 'object',
67
+ description: 'Define types for columns in the spreadsheet.',
68
+ patternProperties: {
69
+ '^.*$': {
70
+ type: 'string',
71
+ enum: [
72
+ 'string',
73
+ 'number',
74
+ 'boolean',
75
+ 'date',
76
+ 'json'
77
+ ],
78
+ errorMessage: {
79
+ enum: 'GoogleSheet connection property "{{ instancePath }}" should be one of "string", "number", "boolean", "date", or "json".'
80
+ }
81
+ }
82
+ },
83
+ errorMessage: {
84
+ type: 'GoogleSheet connection property "columnTypes" should be an object.'
85
+ }
86
+ },
87
+ read: {
88
+ type: 'boolean',
89
+ default: true,
90
+ description: 'Allow reads from the spreadsheet.',
91
+ errorMessage: {
92
+ type: 'GoogleSheet connection property "read" should be a boolean.'
93
+ }
94
+ },
95
+ write: {
96
+ type: 'boolean',
97
+ default: false,
98
+ description: 'Allow writes to the spreadsheet.',
99
+ errorMessage: {
100
+ type: 'GoogleSheet connection property "write" should be a boolean.'
101
+ }
102
+ }
103
+ },
104
+ errorMessage: {
105
+ type: 'GoogleSheet connection properties should be an object.',
106
+ required: {
107
+ spreadsheetId: 'GoogleSheet connection should have required property "spreadsheetId".'
108
+ }
109
+ }
110
+ };
@@ -12,13 +12,4 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ export default {
16
- import: {
17
- path: 'connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOne.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOneSchema.json'
19
- },
20
- meta: {
21
- checkRead: true,
22
- checkWrite: false
23
- }
24
- };
15
+ */ export { default as GoogleSheet } from './connections/GoogleSheet/GoogleSheet.js';
@@ -1,4 +1,4 @@
1
- /*
1
+ /* eslint-disable import/namespace */ /*
2
2
  Copyright 2020-2021 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,13 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ export default {
16
- import: {
17
- path: 'connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOne.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOneSchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
15
+ */ import * as connections from './connections.js';
16
+ export default {
17
+ connections: Object.keys(connections),
18
+ requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)
19
+ ).flat()
24
20
  };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@lowdefy/connection-google-sheets",
3
- "version": "4.0.0-alpha.6",
3
+ "version": "4.0.0-alpha.7",
4
4
  "licence": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
7
7
  "keywords": [
8
8
  "lowdefy",
9
- "lowdefy connection"
9
+ "lowdefy connection",
10
+ "lowdefy plugin"
10
11
  ],
11
12
  "bugs": {
12
13
  "url": "https://github.com/lowdefy/lowdefy/issues"
@@ -27,8 +28,8 @@
27
28
  },
28
29
  "type": "module",
29
30
  "exports": {
30
- ".": "./dist/index.js",
31
- "./connections/*": "./dist/connections/*"
31
+ "./connections": "./dist/connections.js",
32
+ "./types": "./dist/types.js"
32
33
  },
33
34
  "files": [
34
35
  "dist/*"
@@ -41,20 +42,20 @@
41
42
  "test": "jest --coverage"
42
43
  },
43
44
  "dependencies": {
44
- "@lowdefy/helpers": "4.0.0-alpha.6",
45
- "google-spreadsheet": "3.1.15",
46
- "mingo": "^4.4.1",
45
+ "@lowdefy/helpers": "4.0.0-alpha.7",
46
+ "google-spreadsheet": "3.2.0",
47
+ "mingo": "6.0.4",
47
48
  "moment": "2.29.1"
48
49
  },
49
50
  "devDependencies": {
50
- "@lowdefy/ajv": "4.0.0-alpha.6",
51
+ "@lowdefy/ajv": "4.0.0-alpha.7",
51
52
  "@swc/cli": "0.1.55",
52
- "@swc/core": "1.2.130",
53
+ "@swc/core": "1.2.135",
53
54
  "@swc/jest": "0.2.17",
54
- "jest": "27.3.1"
55
+ "jest": "27.5.1"
55
56
  },
56
57
  "publishConfig": {
57
58
  "access": "public"
58
59
  },
59
- "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
60
+ "gitHead": "52ec14639d00de910cf9b8ab25bf933ca891cff5"
60
61
  }
@@ -1,40 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetAppendMany",
4
- "type": "object",
5
- "required": ["rows"],
6
- "properties": {
7
- "rows": {
8
- "type": "array",
9
- "description": "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.",
10
- "errorMessage": {
11
- "type": "GoogleSheetAppendMany request property \"rows\" should be an array."
12
- },
13
- "items": {
14
- "type": "object",
15
- "description": "The row to insert into the sheet. An object where keys are the column names and values are the values to insert.",
16
- "errorMessage": {
17
- "type": "GoogleSheetAppendMany request property \"rows\" should be an array of objects."
18
- }
19
- }
20
- },
21
- "options": {
22
- "type": "object",
23
- "properties": {
24
- "raw": {
25
- "type": "boolean",
26
- "description": "Store raw values instead of converting as if typed into the sheets UI.",
27
- "errorMessage": {
28
- "type": "GoogleSheetAppendMany request property \"options.raw\" should be a boolean."
29
- }
30
- }
31
- }
32
- }
33
- },
34
- "errorMessage": {
35
- "type": "GoogleSheetAppendMany request properties should be an object.",
36
- "required": {
37
- "rows": "GoogleSheetAppendMany request should have required property \"rows\"."
38
- }
39
- }
40
- }
@@ -1,24 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ export default {
16
- import: {
17
- path: 'connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendMany.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendManySchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetAppendOne",
4
- "type": "object",
5
- "required": ["row"],
6
- "properties": {
7
- "row": {
8
- "type": "object",
9
- "description": "The row to insert into the sheet. An object where keys are the column names and values are the values to insert.",
10
- "errorMessage": {
11
- "type": "GoogleSheetAppendOne request property \"row\" should be an object."
12
- }
13
- },
14
- "options": {
15
- "type": "object",
16
- "properties": {
17
- "raw": {
18
- "type": "boolean",
19
- "description": "Store raw values instead of converting as if typed into the sheets UI.",
20
- "errorMessage": {
21
- "type": "GoogleSheetAppendOne request property \"options.raw\" should be a boolean."
22
- }
23
- }
24
- }
25
- }
26
- },
27
- "errorMessage": {
28
- "type": "GoogleSheetAppendOne request properties should be an object.",
29
- "required": {
30
- "row": "GoogleSheetAppendOne request should have required property \"row\"."
31
- }
32
- }
33
- }
@@ -1,24 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ export default {
16
- import: {
17
- path: 'connections/GoogleSheet/GoogleSheetAppendOneSchema/GoogleSheetAppendOne.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetAppendOneSchema/GoogleSheetAppendOneSchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
@@ -1,40 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetDeleteOne",
4
- "type": "object",
5
- "required": ["filter"],
6
- "properties": {
7
- "filter": {
8
- "type": "object",
9
- "description": "A MongoDB query expression to filter the data. The first row matched by the filter will be deleted.",
10
- "errorMessage": {
11
- "type": "GoogleSheetDeleteOne request property \"filter\" should be an object."
12
- }
13
- },
14
- "options": {
15
- "type": "object",
16
- "properties": {
17
- "limit": {
18
- "type": "number",
19
- "description": "The maximum number of rows to fetch.",
20
- "errorMessage": {
21
- "type": "GoogleSheetDeleteOne request property \"options.limit\" should be a number."
22
- }
23
- },
24
- "skip": {
25
- "type": "number",
26
- "description": "The number of rows to skip from the top of the sheet.",
27
- "errorMessage": {
28
- "type": "GoogleSheetDeleteOne request property \"options.skip\" should be a number."
29
- }
30
- }
31
- }
32
- }
33
- },
34
- "errorMessage": {
35
- "type": "GoogleSheetDeleteOne request properties should be an object.",
36
- "required": {
37
- "filter": "GoogleSheetDeleteOne request should have required property \"filter\"."
38
- }
39
- }
40
- }
@@ -1,24 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ export default {
16
- import: {
17
- path: 'connections/GoogleSheet/GoogleSheetDeleteOneSchema/GoogleSheetDeleteOne.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetDeleteOneSchema/GoogleSheetDeleteOneSchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
@@ -1,43 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetGetMany",
4
- "type": "object",
5
- "properties": {
6
- "filter": {
7
- "type": "object",
8
- "description": "A MongoDB query expression to filter the data.",
9
- "errorMessage": {
10
- "type": "GoogleSheetGetMany request property \"filter\" should be an object."
11
- }
12
- },
13
- "pipeline": {
14
- "type": "array",
15
- "description": "A MongoDB aggregation pipeline to transform the data.",
16
- "errorMessage": {
17
- "type": "GoogleSheetGetMany request property \"pipeline\" should be an array."
18
- }
19
- },
20
- "options": {
21
- "type": "object",
22
- "properties": {
23
- "limit": {
24
- "type": "number",
25
- "description": "The maximum number of rows to fetch.",
26
- "errorMessage": {
27
- "type": "GoogleSheetGetMany request property \"options.limit\" should be a number."
28
- }
29
- },
30
- "skip": {
31
- "type": "number",
32
- "description": "The number of rows to skip from the top of the sheet.",
33
- "errorMessage": {
34
- "type": "GoogleSheetGetMany request property \"options.skip\" should be a number."
35
- }
36
- }
37
- }
38
- }
39
- },
40
- "errorMessage": {
41
- "type": "GoogleSheetGetMany request properties should be an object."
42
- }
43
- }
@@ -1,24 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ export default {
16
- import: {
17
- path: 'connections/GoogleSheet/GoogleSheetGetManySchema/GoogleSheetGetMany.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetGetManySchema/GoogleSheetGetManySchema.json'
19
- },
20
- meta: {
21
- checkRead: true,
22
- checkWrite: false
23
- }
24
- };
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetGetOne",
4
- "type": "object",
5
- "properties": {
6
- "filter": {
7
- "type": "object",
8
- "description": "A MongoDB query expression to filter the data.",
9
- "errorMessage": {
10
- "type": "GoogleSheetGetOne request property \"filter\" should be an object."
11
- }
12
- },
13
- "options": {
14
- "type": "object",
15
- "properties": {
16
- "limit": {
17
- "type": "number",
18
- "description": "The maximum number of rows to fetch.",
19
- "errorMessage": {
20
- "type": "GoogleSheetGetOne request property \"options.limit\" should be a number."
21
- }
22
- },
23
- "skip": {
24
- "type": "number",
25
- "description": "The number of rows to skip from the top of the sheet.",
26
- "errorMessage": {
27
- "type": "GoogleSheetGetOne request property \"options.skip\" should be a number."
28
- }
29
- }
30
- }
31
- }
32
- },
33
- "errorMessage": {
34
- "type": "GoogleSheetGetOne request properties should be an object."
35
- }
36
- }
@@ -1,88 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Connection Schema - GoogleSheet",
4
- "type": "object",
5
- "required": ["spreadsheetId"],
6
- "properties": {
7
- "apiKey": {
8
- "type": "string",
9
- "description": "API key for your google project.",
10
- "errorMessage": {
11
- "type": "GoogleSheet connection property \"apiKey\" should be a string."
12
- }
13
- },
14
- "client_email": {
15
- "type": "string",
16
- "description": "The email of your service account.",
17
- "errorMessage": {
18
- "type": "GoogleSheet connection property \"client_email\" should be a string."
19
- }
20
- },
21
- "private_key": {
22
- "type": "string",
23
- "description": "The private key for your service account.",
24
- "errorMessage": {
25
- "type": "GoogleSheet connection property \"private_key\" should be a string."
26
- }
27
- },
28
- "sheetId": {
29
- "type": "string",
30
- "description": "The ID of the worksheet. Can be found in the URL as the \"gid\" parameter. One of \"sheetId\" or \"sheetIndex\" is required.",
31
- "errorMessage": {
32
- "type": "GoogleSheet connection property \"sheetId\" should be a string."
33
- }
34
- },
35
- "sheetIndex": {
36
- "type": "number",
37
- "description": "The position of the worksheet as they appear in the Google sheets UI. Starts from 0. One of \"sheetId\" or \"sheetIndex\" is required.",
38
- "errorMessage": {
39
- "type": "GoogleSheet connection property \"sheetIndex\" should be a number."
40
- }
41
- },
42
- "spreadsheetId": {
43
- "type": "string",
44
- "description": "document ID from the URL of the spreadsheet.",
45
- "errorMessage": {
46
- "type": "GoogleSheet connection property \"spreadsheetId\" should be a string."
47
- }
48
- },
49
- "columnTypes": {
50
- "type": "object",
51
- "description": "Define types for columns in the spreadsheet.",
52
- "patternProperties": {
53
- "^.*$": {
54
- "type": "string",
55
- "enum": ["string", "number", "boolean", "date", "json"],
56
- "errorMessage": {
57
- "enum": "GoogleSheet connection property \"{{ instancePath }}\" should be one of \"string\", \"number\", \"boolean\", \"date\", or \"json\"."
58
- }
59
- }
60
- },
61
- "errorMessage": {
62
- "type": "GoogleSheet connection property \"columnTypes\" should be an object."
63
- }
64
- },
65
- "read": {
66
- "type": "boolean",
67
- "default": true,
68
- "description": "Allow reads from the spreadsheet.",
69
- "errorMessage": {
70
- "type": "GoogleSheet connection property \"read\" should be a boolean."
71
- }
72
- },
73
- "write": {
74
- "type": "boolean",
75
- "default": false,
76
- "description": "Allow writes to the spreadsheet.",
77
- "errorMessage": {
78
- "type": "GoogleSheet connection property \"write\" should be a boolean."
79
- }
80
- }
81
- },
82
- "errorMessage": {
83
- "type": "GoogleSheet connection properties should be an object.",
84
- "required": {
85
- "spreadsheetId": "GoogleSheet connection should have required property \"spreadsheetId\"."
86
- }
87
- }
88
- }
@@ -1,55 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetUpdateMany",
4
- "type": "object",
5
- "required": ["update", "filter"],
6
- "properties": {
7
- "filter": {
8
- "type": "object",
9
- "description": "A MongoDB query expression to filter the data. All rows matched by the filter will be updated.",
10
- "errorMessage": {
11
- "type": "GoogleSheetUpdateMany request property \"filter\" should be an object."
12
- }
13
- },
14
- "update": {
15
- "type": "object",
16
- "description": "The update to apply to the row. An object where keys are the column names and values are the updated values.",
17
- "errorMessage": {
18
- "type": "GoogleSheetUpdateMany request property \"update\" should be an object."
19
- }
20
- },
21
- "options": {
22
- "type": "object",
23
- "properties": {
24
- "limit": {
25
- "type": "number",
26
- "description": "The maximum number of rows to fetch.",
27
- "errorMessage": {
28
- "type": "GoogleSheetUpdateMany request property \"options.limit\" should be a number."
29
- }
30
- },
31
- "raw": {
32
- "type": "boolean",
33
- "description": "Store raw values instead of converting as if typed into the sheets UI.",
34
- "errorMessage": {
35
- "type": "GoogleSheetUpdateMany request property \"options.raw\" should be a boolean."
36
- }
37
- },
38
- "skip": {
39
- "type": "number",
40
- "description": "The number of rows to skip from the top of the sheet.",
41
- "errorMessage": {
42
- "type": "GoogleSheetUpdateMany request property \"options.skip\" should be a number."
43
- }
44
- }
45
- }
46
- }
47
- },
48
- "errorMessage": {
49
- "type": "GoogleSheetUpdateMany request properties should be an object.",
50
- "required": {
51
- "filter": "GoogleSheetUpdateMany request should have required property \"filter\".",
52
- "update": "GoogleSheetUpdateMany request should have required property \"update\"."
53
- }
54
- }
55
- }