@izara_project/izara-core-library-dynamodb 1.0.16 → 1.0.17

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 (2) hide show
  1. package/index.js +29 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -15,9 +15,35 @@ You should have received a copy of the GNU Affero General Public License
15
15
  along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
 
18
- // Re-export everything from DynamoDBSharedLib
19
- import dynamoDBSharedLib from './src/DynamoDBSharedLib.js';
18
+ import * as DynamoDB from './src/DynamoDBSharedLib.js';
20
19
 
21
20
  export default {
22
-
21
+ // === Table name functions ===
22
+ tableName: DynamoDB.tableName,
23
+
24
+ // === Data conversion helpers ===
25
+ arrayToStringSet: DynamoDB.arrayToStringSet,
26
+ stringSetToArray: DynamoDB.stringSetToArray,
27
+
28
+ // === CRUD operations ===
29
+ getItem: DynamoDB.getItem,
30
+ query: DynamoDB.query,
31
+ queryResults: DynamoDB.queryResults,
32
+ scan: DynamoDB.scan,
33
+ scanResults: DynamoDB.scanResults,
34
+ putItem: DynamoDB.putItem,
35
+ updateItem: DynamoDB.updateItem,
36
+ deleteItem: DynamoDB.deleteItem,
37
+
38
+ // === Batch and transaction operations ===
39
+ transactWriteItems: DynamoDB.transactWriteItems,
40
+ batchDeleteItems: DynamoDB.batchDeleteItems,
41
+ batchPutItems: DynamoDB.batchPutItems,
42
+
43
+ // === Logic & Helpers ===
44
+ processLogicalElements: DynamoDB.processLogicalElements,
45
+ QueryElementConditionalCheckStringSetEquals:
46
+ DynamoDB.QueryElementConditionalCheckStringSetEquals,
47
+ generateNotExistLogicalElements: DynamoDB.generateNotExistLogicalElements,
48
+ refractorAttributesToComplex: DynamoDB.refractorAttributesToComplex
23
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-dynamodb",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Connecting with AWS DynamoDB Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {