@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.
- package/dist/connections/GoogleSheet/GoogleSheet.js +3 -4
- package/dist/connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendMany.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetAppendMany/schema.js +56 -0
- package/dist/connections/GoogleSheet/GoogleSheetAppendOne/GoogleSheetAppendOne.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetAppendOne/schema.js +49 -0
- package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/GoogleSheetDeleteOne.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/schema.js +56 -0
- package/dist/connections/GoogleSheet/GoogleSheetGetMany/GoogleSheetGetMany.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetGetMany/schema.js +57 -0
- package/dist/connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOne.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetGetOne/schema.js +50 -0
- package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateMany.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/schema.js +72 -0
- package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOne.js +9 -3
- package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/schema.js +79 -0
- package/dist/connections/GoogleSheet/cleanRows.js +1 -1
- package/dist/connections/GoogleSheet/getSheet.js +1 -1
- package/dist/connections/GoogleSheet/mingoAggregation.js +18 -12
- package/dist/connections/GoogleSheet/mingoFilter.js +2 -2
- package/dist/connections/GoogleSheet/schema.js +110 -0
- package/dist/connections/GoogleSheet/transformTypes.js +1 -1
- package/dist/{connections/GoogleSheet/GoogleSheetGetOne/index.js → connections.js} +2 -11
- package/dist/{connections/GoogleSheet/GoogleSheetUpdateOne/index.js → types.js} +7 -11
- package/package.json +12 -11
- package/dist/connections/GoogleSheet/GoogleSheetAppendMany/GoogleSheetAppendManySchema.json +0 -40
- package/dist/connections/GoogleSheet/GoogleSheetAppendMany/index.js +0 -24
- package/dist/connections/GoogleSheet/GoogleSheetAppendOne/GoogleSheetAppendOneSchema.json +0 -33
- package/dist/connections/GoogleSheet/GoogleSheetAppendOne/index.js +0 -24
- package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/GoogleSheetDeleteOneSchema.json +0 -40
- package/dist/connections/GoogleSheet/GoogleSheetDeleteOne/index.js +0 -24
- package/dist/connections/GoogleSheet/GoogleSheetGetMany/GoogleSheetGetManySchema.json +0 -43
- package/dist/connections/GoogleSheet/GoogleSheetGetMany/index.js +0 -24
- package/dist/connections/GoogleSheet/GoogleSheetGetOne/GoogleSheetGetOneSchema.json +0 -36
- package/dist/connections/GoogleSheet/GoogleSheetSchema.json +0 -88
- package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/GoogleSheetUpdateManySchema.json +0 -55
- package/dist/connections/GoogleSheet/GoogleSheetUpdateMany/index.js +0 -24
- package/dist/connections/GoogleSheet/GoogleSheetUpdateOne/GoogleSheetUpdateOneSchema.json +0 -62
- package/dist/index.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -14,17 +14,23 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
16
|
import mingo from 'mingo';
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
// TODO: fix build to work with:
|
|
18
|
+
// import 'mingo/init/system';
|
|
19
|
+
import { useOperators, OperatorType } from 'mingo/core.js';
|
|
20
|
+
import * as accumulatorOperators from 'mingo/operators/accumulator/index.js';
|
|
21
|
+
import * as expressionOperators from 'mingo/operators/expression/index.js';
|
|
22
|
+
import * as pipelineOperators from 'mingo/operators/pipeline/index.js';
|
|
23
|
+
import * as queryOperators from 'mingo/operators/query/index.js';
|
|
24
|
+
import * as projectionOperators from 'mingo/operators/projection/index.js';
|
|
25
|
+
// "import * as" is returning different object structures when the connection is being
|
|
26
|
+
// imported in the build or when running the tests.
|
|
27
|
+
// So we check for the a default object with all the named exports, otherwise the
|
|
28
|
+
// returned object has all the named exports.
|
|
29
|
+
useOperators(OperatorType.ACCUMULATOR, accumulatorOperators.default || accumulatorOperators);
|
|
30
|
+
useOperators(OperatorType.EXPRESSION, expressionOperators.default || expressionOperators);
|
|
31
|
+
useOperators(OperatorType.PIPELINE, pipelineOperators.default || pipelineOperators);
|
|
32
|
+
useOperators(OperatorType.QUERY, queryOperators.default || queryOperators);
|
|
33
|
+
useOperators(OperatorType.PROJECTION, projectionOperators.default || projectionOperators);
|
|
28
34
|
function mingoAggregation({ input =[] , pipeline =[] }) {
|
|
29
35
|
if (!type.isArray(input)) {
|
|
30
36
|
throw new Error('Mingo aggregation error. Argument "input" should be an array.');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
-
import mingoAggregation from './mingoAggregation';
|
|
16
|
+
import mingoAggregation from './mingoAggregation.js';
|
|
17
17
|
function mingoFilter({ input =[] , filter ={} }) {
|
|
18
18
|
if (!type.isObject(filter)) {
|
|
19
19
|
throw new Error('Mingo filter error. Argument "filter" should be an object.');
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2022 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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-
|
|
1
|
+
/* eslint-disable import/namespace */ /*
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with 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
|
-
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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.
|
|
3
|
+
"version": "4.0.0-alpha.9",
|
|
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
|
-
"
|
|
31
|
-
"./
|
|
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.
|
|
45
|
-
"google-spreadsheet": "3.
|
|
46
|
-
"mingo": "
|
|
45
|
+
"@lowdefy/helpers": "4.0.0-alpha.9",
|
|
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.
|
|
51
|
+
"@lowdefy/ajv": "4.0.0-alpha.9",
|
|
51
52
|
"@swc/cli": "0.1.55",
|
|
52
|
-
"@swc/core": "1.2.
|
|
53
|
+
"@swc/core": "1.2.135",
|
|
53
54
|
"@swc/jest": "0.2.17",
|
|
54
|
-
"jest": "27.
|
|
55
|
+
"jest": "27.5.1"
|
|
55
56
|
},
|
|
56
57
|
"publishConfig": {
|
|
57
58
|
"access": "public"
|
|
58
59
|
},
|
|
59
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "98b544eca231bdcfca6c3a8601a891835d5ce571"
|
|
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
|
-
}
|