@lowdefy/connection-mongodb 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 (43) hide show
  1. package/dist/connections/MongoDBCollection/MongoDBAggregation/MongoDBAggregation.js +9 -3
  2. package/dist/connections/MongoDBCollection/MongoDBAggregation/schema.js +42 -0
  3. package/dist/connections/MongoDBCollection/MongoDBCollection.js +3 -4
  4. package/dist/connections/MongoDBCollection/MongoDBDeleteMany/MongoDBDeleteMany.js +11 -4
  5. package/dist/connections/MongoDBCollection/MongoDBDeleteMany/schema.js +42 -0
  6. package/dist/connections/MongoDBCollection/MongoDBDeleteOne/MongoDBDeleteOne.js +11 -4
  7. package/dist/connections/MongoDBCollection/MongoDBDeleteOne/schema.js +42 -0
  8. package/dist/connections/MongoDBCollection/MongoDBFind/MongoDBFind.js +9 -3
  9. package/dist/connections/MongoDBCollection/MongoDBFind/schema.js +42 -0
  10. package/dist/connections/MongoDBCollection/MongoDBFindOne/MongoDBFindOne.js +9 -3
  11. package/dist/connections/MongoDBCollection/MongoDBFindOne/schema.js +42 -0
  12. package/dist/connections/MongoDBCollection/MongoDBInsertMany/MongoDBInsertMany.js +12 -6
  13. package/dist/connections/MongoDBCollection/MongoDBInsertMany/schema.js +48 -0
  14. package/dist/connections/MongoDBCollection/MongoDBInsertOne/MongoDBInsertOne.js +12 -7
  15. package/dist/connections/MongoDBCollection/MongoDBInsertOne/schema.js +42 -0
  16. package/dist/connections/MongoDBCollection/MongoDBUpdateMany/MongoDBUpdateMany.js +9 -3
  17. package/dist/connections/MongoDBCollection/MongoDBUpdateMany/schema.js +56 -0
  18. package/dist/connections/MongoDBCollection/MongoDBUpdateOne/MongoDBUpdateOne.js +9 -3
  19. package/dist/connections/MongoDBCollection/MongoDBUpdateOne/schema.js +56 -0
  20. package/dist/connections/MongoDBCollection/getCollection.js +1 -1
  21. package/dist/connections/MongoDBCollection/schema.js +69 -0
  22. package/dist/connections/MongoDBCollection/serialize.js +5 -5
  23. package/dist/{connections/MongoDBCollection/MongoDBFind/index.js → connections.js} +2 -11
  24. package/dist/{connections/MongoDBCollection/MongoDBFindOne/index.js → types.js} +7 -11
  25. package/package.json +12 -11
  26. package/dist/connections/MongoDBCollection/MongoDBAggregation/MongoDBAggregationSchema.json +0 -26
  27. package/dist/connections/MongoDBCollection/MongoDBAggregation/index.js +0 -24
  28. package/dist/connections/MongoDBCollection/MongoDBCollectionSchema.json +0 -52
  29. package/dist/connections/MongoDBCollection/MongoDBDeleteMany/MongoDBDeleteManySchema.json +0 -26
  30. package/dist/connections/MongoDBCollection/MongoDBDeleteMany/index.js +0 -24
  31. package/dist/connections/MongoDBCollection/MongoDBDeleteOne/MongoDBDeleteOneSchema.json +0 -26
  32. package/dist/connections/MongoDBCollection/MongoDBDeleteOne/index.js +0 -24
  33. package/dist/connections/MongoDBCollection/MongoDBFind/MongoDBFindSchema.json +0 -26
  34. package/dist/connections/MongoDBCollection/MongoDBFindOne/MongoDBFindOneSchema.json +0 -26
  35. package/dist/connections/MongoDBCollection/MongoDBInsertMany/MongoDBInsertManySchema.json +0 -32
  36. package/dist/connections/MongoDBCollection/MongoDBInsertMany/index.js +0 -24
  37. package/dist/connections/MongoDBCollection/MongoDBInsertOne/MongoDBInsertOneSchema.json +0 -26
  38. package/dist/connections/MongoDBCollection/MongoDBInsertOne/index.js +0 -24
  39. package/dist/connections/MongoDBCollection/MongoDBUpdateMany/MongoDBUpdateManySchema.json +0 -36
  40. package/dist/connections/MongoDBCollection/MongoDBUpdateMany/index.js +0 -24
  41. package/dist/connections/MongoDBCollection/MongoDBUpdateOne/MongoDBUpdateOneSchema.json +0 -36
  42. package/dist/connections/MongoDBCollection/MongoDBUpdateOne/index.js +0 -24
  43. package/dist/index.js +0 -7
@@ -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/MongoDBCollection/MongoDBInsertOne/MongoDBInsertOne.js',
18
- schema: 'connections/MongoDBCollection/MongoDBInsertOne/MongoDBInsertOneSchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - MongoDBUpdateMany",
4
- "type": "object",
5
- "required": ["filter", "update"],
6
- "properties": {
7
- "filter": {
8
- "type": "object",
9
- "description": "The filter used to select the documents to update.",
10
- "errorMessage": {
11
- "type": "MongoDBUpdateMany request property \"filter\" should be an object."
12
- }
13
- },
14
- "update": {
15
- "type": ["object", "array"],
16
- "description": "The update operations to be applied to the documents.",
17
- "errorMessage": {
18
- "type": "MongoDBUpdateMany request property \"update\" should be an object."
19
- }
20
- },
21
- "options": {
22
- "type": "object",
23
- "description": "Optional settings.",
24
- "errorMessage": {
25
- "type": "MongoDBUpdateMany request property \"options\" should be an object."
26
- }
27
- }
28
- },
29
- "errorMessage": {
30
- "type": "MongoDBUpdateMany request properties should be an object.",
31
- "required": {
32
- "filter": "MongoDBUpdateMany request should have required property \"filter\".",
33
- "update": "MongoDBUpdateMany request should have required property \"update\"."
34
- }
35
- }
36
- }
@@ -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/MongoDBCollection/MongoDBUpdateMany/MongoDBUpdateMany.js',
18
- schema: 'connections/MongoDBCollection/MongoDBUpdateMany/MongoDBUpdateManySchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Lowdefy Request Schema - MongoDBUpdateOne",
4
- "type": "object",
5
- "required": ["filter", "update"],
6
- "properties": {
7
- "filter": {
8
- "type": "object",
9
- "description": "The filter used to select the document to update.",
10
- "errorMessage": {
11
- "type": "MongoDBUpdateOne request property \"filter\" should be an object."
12
- }
13
- },
14
- "update": {
15
- "type": ["object", "array"],
16
- "description": "The update operations to be applied to the document.",
17
- "errorMessage": {
18
- "type": "MongoDBUpdateOne request property \"update\" should be an object."
19
- }
20
- },
21
- "options": {
22
- "type": "object",
23
- "description": "Optional settings.",
24
- "errorMessage": {
25
- "type": "MongoDBUpdateOne request property \"options\" should be an object."
26
- }
27
- }
28
- },
29
- "errorMessage": {
30
- "type": "MongoDBUpdateOne request properties should be an object.",
31
- "required": {
32
- "filter": "MongoDBUpdateOne request should have required property \"filter\".",
33
- "update": "MongoDBUpdateOne request should have required property \"update\"."
34
- }
35
- }
36
- }
@@ -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/MongoDBCollection/MongoDBUpdateOne/MongoDBUpdateOne.js',
18
- schema: 'connections/MongoDBCollection/MongoDBUpdateOne/MongoDBUpdateOneSchema.json'
19
- },
20
- meta: {
21
- checkRead: false,
22
- checkWrite: true
23
- }
24
- };
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- import MongoDBCollection from './connections/MongoDBCollection/MongoDBCollection.js';
2
- export const connections = {
3
- MongoDBCollection
4
- };
5
- export default {
6
- connections
7
- };