@izara_project/izara-core-library-dynamodb 1.0.1 → 1.0.3

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/index.js ADDED
@@ -0,0 +1,52 @@
1
+ /*
2
+ Copyright (C) 2021 Sven Mason <http://izara.io>
3
+
4
+ This program is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU Affero General Public License as
6
+ published by the Free Software Foundation, either version 3 of the
7
+ License, or (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU Affero General Public License for more details.
13
+
14
+ You should have received a copy of the GNU Affero General Public License
15
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+ */
17
+
18
+ 'use strict';
19
+
20
+ // Import the Dynamodb shared library functions
21
+ const dynamodbSharedLib = require('./src/DynamodbSharedLib');
22
+
23
+ // Export all the functions
24
+ module.exports = {
25
+ // Table name functions
26
+ tableName: dynamodbSharedLib.tableName,
27
+
28
+ // Data conversion helpers
29
+ arrayToStringSet: dynamodbSharedLib.arrayToStringSet,
30
+ stringSetToArray: dynamodbSharedLib.stringSetToArray,
31
+
32
+ // Query building functions
33
+ processLogicalElements: dynamodbSharedLib.processLogicalElements,
34
+
35
+ // CRUD operations
36
+ getItem: dynamodbSharedLib.getItem,
37
+ query: dynamodbSharedLib.query,
38
+ queryResults: dynamodbSharedLib.queryResults,
39
+ putItem: dynamodbSharedLib.putItem,
40
+ updateItem: dynamodbSharedLib.updateItem,
41
+ deleteItem: dynamodbSharedLib.deleteItem,
42
+
43
+ // Batch and transaction operations
44
+ transactWriteItems: dynamodbSharedLib.transactWriteItems,
45
+ batchDeleteItems: dynamodbSharedLib.batchDeleteItems,
46
+ batchPutItems: dynamodbSharedLib.batchPutItems,
47
+
48
+ // Helper functions
49
+ QueryElementConditionalCheckStringSetEquals: dynamodbSharedLib.QueryElementConditionalCheckStringSetEquals,
50
+ generateNotExistLogicalElements: dynamodbSharedLib.generateNotExistLogicalElements,
51
+ refractorAttributesToComplex: dynamodbSharedLib.refractorAttributesToComplex
52
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-dynamodb",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Connecting with AWS DynamoDB Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,16 +20,12 @@
20
20
  "testEnvironment": "node"
21
21
  },
22
22
  "dependencies": {
23
- "@aws-sdk/client-lambda": "^3.731.1",
24
- "@aws-sdk/client-s3": "^3.731.1",
25
- "@aws-sdk/crc64-nvme-crt": "^3.731.0",
26
- "@izara_project/izara-core-library-core": "^1.0.14",
27
- "@izara_project/izara-core-library-external-request": "^1.0.17",
23
+ "@aws-sdk/client-dynamodb": "^3.758.0",
24
+ "@aws-sdk/lib-dynamodb": "^3.758.0",
25
+ "@aws-sdk/util-dynamodb": "^3.758.0",
26
+ "@izara_project/izara-core-library-core": "^1.0.15",
28
27
  "@izara_project/izara-core-library-logger": "^1.0.6",
29
- "@izara_project/izara-shared": "^1.0.109",
30
- "glob": "^11.0.0",
31
- "lodash": "^4.17.21",
32
- "object-hash": "^3.0.0",
33
- "read-yaml-file": "^2.1.0"
28
+ "@izara_project/izara-core-library-service-schemas": "^1.0.39",
29
+ "lodash.clonedeep": "^4.5.0"
34
30
  }
35
- }
31
+ }