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

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 (38) hide show
  1. package/dist/connections/GoogleSheet/GoogleSheet.js +3 -4
  2. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendMany.js +9 -3
  3. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/schema.js +56 -0
  4. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/GoogleSheetAppendOne.js +9 -3
  5. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/schema.js +49 -0
  6. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/GoogleSheetDeleteOne.js +9 -3
  7. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/schema.js +56 -0
  8. package/dist/connections/GoogleSheet/GoogleSheetGetMany/GoogleSheetGetMany.js +9 -3
  9. package/dist/connections/GoogleSheet/GoogleSheetGetMany/schema.js +57 -0
  10. package/dist/connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOne.js +9 -3
  11. package/dist/connections/GoogleSheet/GoogleSheetGetOne/schema.js +50 -0
  12. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateMany.js +9 -3
  13. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/schema.js +72 -0
  14. package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOne.js +9 -3
  15. package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/schema.js +79 -0
  16. package/dist/connections/GoogleSheet/cleanRows.js +1 -1
  17. package/dist/connections/GoogleSheet/getSheet.js +1 -1
  18. package/dist/connections/GoogleSheet/mingoAggregation.js +18 -12
  19. package/dist/connections/GoogleSheet/mingoFilter.js +2 -2
  20. package/dist/connections/GoogleSheet/schema.js +110 -0
  21. package/dist/connections/GoogleSheet/transformTypes.js +1 -1
  22. package/dist/{connections/GoogleSheet/GoogleSheetGetOne/index.js → connections.js} +2 -11
  23. package/dist/{connections/GoogleSheet/GoogleSheetUpdateOne/index.js → types.js} +7 -11
  24. package/package.json +12 -11
  25. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendManySchema.json +0 -40
  26. package/dist/connections/GoogleSheet/GoogleSheetAppendMany/index.js +0 -24
  27. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/GoogleSheetAppendOneSchema.json +0 -33
  28. package/dist/connections/GoogleSheet/GoogleSheetAppendOne/index.js +0 -24
  29. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/GoogleSheetDeleteOneSchema.json +0 -40
  30. package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/index.js +0 -24
  31. package/dist/connections/GoogleSheet/GoogleSheetGetMany/GoogleSheetGetManySchema.json +0 -43
  32. package/dist/connections/GoogleSheet/GoogleSheetGetMany/index.js +0 -24
  33. package/dist/connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOneSchema.json +0 -36
  34. package/dist/connections/GoogleSheet/GoogleSheetSchema.json +0 -88
  35. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateManySchema.json +0 -55
  36. package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/index.js +0 -24
  37. package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOneSchema.json +0 -62
  38. package/dist/index.js +0 -7
@@ -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
- }
@@ -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/GoogleSheetUpdateMany/GoogleSheetUpdateMany.js',
18
- schema: 'connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateManySchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
@@ -1,62 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - GoogleSheetUpdateOne",
4
- "type": "object",
5
- "required": ["update", "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 updated.",
10
- "errorMessage": {
11
- "type": "GoogleSheetUpdateOne 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": "GoogleSheetUpdateOne 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": "GoogleSheetUpdateOne 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": "GoogleSheetUpdateOne 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": "GoogleSheetUpdateOne request property \"options.skip\" should be a number."
43
- }
44
- },
45
- "upsert": {
46
- "type": "boolean",
47
- "description": "Insert the row if no rows are matched by the filter.",
48
- "errorMessage": {
49
- "type": "GoogleSheetUpdateOne request property \"options.upsert\" should be a boolean."
50
- }
51
- }
52
- }
53
- }
54
- },
55
- "errorMessage": {
56
- "type": "GoogleSheetUpdateOne request properties should be an object.",
57
- "required": {
58
- "filter": "GoogleSheetUpdateOne request should have required property \"filter\".",
59
- "update": "GoogleSheetUpdateOne request should have required property \"update\"."
60
- }
61
- }
62
- }
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- import GoogleSheet from './connections/GoogleSheet/GoogleSheet.js';
2
- export const connections = {
3
- GoogleSheet
4
- };
5
- export default {
6
- connections
7
- };