idea-aws 4.0.0 → 4.0.1

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.
@@ -50,7 +50,7 @@ export declare class DynamoDB {
50
50
  * Get an item of a DynamoDB table.
51
51
  * @param params the params to apply to DynamoDB's function
52
52
  */
53
- get(params: DDB.GetCommandInput): Promise<Record<string, any>>;
53
+ get(params: DDB.GetCommandInput): Promise<any>;
54
54
  /**
55
55
  * Put an item in a DynamoDB table.
56
56
  * @param params the params to apply to DynamoDB's function
@@ -72,7 +72,7 @@ export declare class DynamoDB {
72
72
  * @param keys the keys of the objects to retrieve
73
73
  * @param ignoreErr if set, ignore the errors and continue the bulk op.
74
74
  */
75
- batchGet(table: string, keys: Record<string, AttributeValue>[], ignoreErr?: boolean): Promise<Record<string, any>[]>;
75
+ batchGet(table: string, keys: Record<string, AttributeValue>[], ignoreErr?: boolean): Promise<any[]>;
76
76
  protected batchGetHelper(table: string, keys: Record<string, AttributeValue>[], resultElements: Record<string, any>[], ignoreErr: boolean, currentChunk?: number, chunkSize?: number): Promise<Record<string, any>[]>;
77
77
  /**
78
78
  * Put an array of items in a DynamoDB table, avoiding the limits of DynamoDB's BatchWriteItem.
@@ -96,12 +96,12 @@ export declare class DynamoDB {
96
96
  * Query a DynamoDB table, avoiding the limits of DynamoDB's Query.
97
97
  * @param params the params to apply to DynamoDB's function
98
98
  */
99
- query(params: DDB.QueryCommandInput): Promise<Record<string, any>[]>;
99
+ query(params: DDB.QueryCommandInput): Promise<any[]>;
100
100
  /**
101
101
  * Scan a DynamoDB table, avoiding the limits of DynamoDB's Query.
102
102
  * @param params the params to apply to DynamoDB's function
103
103
  */
104
- scan(params: DDB.ScanCommandInput): Promise<Record<string, any>[]>;
104
+ scan(params: DDB.ScanCommandInput): Promise<any[]>;
105
105
  protected queryScanHelper(params: DDB.QueryCommandInput | DDB.ScanCommandInput, items: Record<string, any>[], isQuery: boolean): Promise<Record<string, any>[]>;
106
106
  /**
107
107
  * Query a DynamoDB table in the traditional way (no pagination or data mapping).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-aws",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "AWS wrappers to use in IDEA's back-ends",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",