dyno-table 2.3.3 → 2.5.0
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/builders.cjs +14 -13
- package/dist/builders.d.cts +2 -2
- package/dist/builders.d.ts +2 -2
- package/dist/builders.js +2 -1
- package/dist/{chunk-XYL43FDX.cjs → chunk-3DR6VOFW.cjs} +233 -101
- package/dist/{chunk-EODPMYPE.js → chunk-42LH2UEM.js} +45 -26
- package/dist/chunk-ELULXDSB.cjs +564 -0
- package/dist/chunk-FF7FYGDH.js +543 -0
- package/dist/{chunk-DTFJJASK.js → chunk-NYJGW3XH.js} +230 -96
- package/dist/{chunk-M5Y6JQJN.js → chunk-U6MQGB6Y.js} +239 -39
- package/dist/{chunk-KA3VPIPS.cjs → chunk-ZUBCW3LA.cjs} +58 -39
- package/dist/{chunk-3J5DY7KG.cjs → chunk-ZXM6LPRV.cjs} +259 -38
- package/dist/{conditions-D_w7vVYG.d.ts → conditions-BSAcZswY.d.ts} +1 -1
- package/dist/{conditions-CcZL0sR2.d.cts → conditions-C8bM__Pn.d.cts} +1 -1
- package/dist/conditions.d.cts +1 -1
- package/dist/conditions.d.ts +1 -1
- package/dist/entity.cjs +5 -4
- package/dist/entity.d.cts +2 -2
- package/dist/entity.d.ts +2 -2
- package/dist/entity.js +2 -1
- package/dist/{index-2cbm07Bi.d.ts → index-C9KOQdSC.d.ts} +258 -13
- package/dist/{index-DlN8G9hd.d.cts → index-Ca76PpXj.d.cts} +258 -13
- package/dist/index.cjs +178 -17
- package/dist/index.d.cts +267 -2
- package/dist/index.d.ts +267 -2
- package/dist/index.js +4 -3
- package/dist/table.cjs +4 -3
- package/dist/table.d.cts +3 -2
- package/dist/table.d.ts +3 -2
- package/dist/table.js +3 -2
- package/package.json +1 -1
|
@@ -1,7 +1,220 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as PrimaryKeyWithoutExpression, s as Path, b as Condition, c as ConditionOperator, t as PathType } from './conditions-BSAcZswY.js';
|
|
2
2
|
import { DynamoItem, TableConfig, GSINames } from './types.js';
|
|
3
3
|
import { TransactWriteCommandInput } from '@aws-sdk/lib-dynamodb';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Base error class for all dyno-table errors
|
|
7
|
+
*
|
|
8
|
+
* All custom errors in the library extend this class, allowing consumers
|
|
9
|
+
* to catch all library errors with a single catch block if needed.
|
|
10
|
+
*/
|
|
11
|
+
declare class DynoTableError extends Error {
|
|
12
|
+
/**
|
|
13
|
+
* Machine-readable error code for programmatic error handling
|
|
14
|
+
* @example "KEY_GENERATION_FAILED", "VALIDATION_ERROR", etc.
|
|
15
|
+
*/
|
|
16
|
+
readonly code: string;
|
|
17
|
+
/**
|
|
18
|
+
* Additional context about the error
|
|
19
|
+
* Contains operation-specific details like entity names, table names,
|
|
20
|
+
* expressions, conditions, and other relevant debugging information
|
|
21
|
+
*/
|
|
22
|
+
readonly context: Record<string, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* The original error that caused this error (if wrapping another error)
|
|
25
|
+
* Useful for preserving AWS SDK errors or other underlying errors
|
|
26
|
+
*/
|
|
27
|
+
readonly cause?: Error;
|
|
28
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Error for schema validation and input validation failures
|
|
32
|
+
*
|
|
33
|
+
* Thrown when user-provided data doesn't match the expected schema
|
|
34
|
+
* or when required fields are missing.
|
|
35
|
+
*/
|
|
36
|
+
declare class ValidationError extends DynoTableError {
|
|
37
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Error for DynamoDB operation failures
|
|
41
|
+
*
|
|
42
|
+
* Wraps AWS SDK errors and adds library-specific context like
|
|
43
|
+
* the operation type, table name, and generated expressions.
|
|
44
|
+
*/
|
|
45
|
+
declare class OperationError extends DynoTableError {
|
|
46
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Error for transaction-specific failures
|
|
50
|
+
*
|
|
51
|
+
* Thrown when transaction operations fail, including duplicate item
|
|
52
|
+
* detection, transaction cancellation, and other transaction-related issues.
|
|
53
|
+
*/
|
|
54
|
+
declare class TransactionError extends DynoTableError {
|
|
55
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Error for batch operation failures
|
|
59
|
+
*
|
|
60
|
+
* Thrown when batch operations fail or when batch limits are exceeded.
|
|
61
|
+
* Includes information about unprocessed items and operation details.
|
|
62
|
+
*/
|
|
63
|
+
declare class BatchError extends DynoTableError {
|
|
64
|
+
/**
|
|
65
|
+
* The type of batch operation that failed
|
|
66
|
+
*/
|
|
67
|
+
readonly operation: "write" | "read";
|
|
68
|
+
/**
|
|
69
|
+
* The items that were not processed during the batch operation
|
|
70
|
+
*/
|
|
71
|
+
readonly unprocessedItems: unknown[];
|
|
72
|
+
constructor(message: string, code: string, operation: "write" | "read", unprocessedItems?: unknown[], context?: Record<string, unknown>, cause?: Error);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Error for expression building failures
|
|
76
|
+
*
|
|
77
|
+
* Thrown when building DynamoDB expressions (condition, filter, update, etc.)
|
|
78
|
+
* fails due to invalid conditions or missing required fields.
|
|
79
|
+
*/
|
|
80
|
+
declare class ExpressionError extends DynoTableError {
|
|
81
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Error for table/index configuration issues
|
|
85
|
+
*
|
|
86
|
+
* Thrown when there are problems with table configuration,
|
|
87
|
+
* such as missing GSIs or invalid index references.
|
|
88
|
+
*/
|
|
89
|
+
declare class ConfigurationError extends DynoTableError {
|
|
90
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Base error for all entity-related errors
|
|
94
|
+
*
|
|
95
|
+
* Parent class for entity-specific errors like key generation
|
|
96
|
+
* and index generation failures.
|
|
97
|
+
*/
|
|
98
|
+
declare class EntityError extends DynoTableError {
|
|
99
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Error for primary key generation failures
|
|
103
|
+
*
|
|
104
|
+
* Thrown when generating entity primary keys fails due to missing
|
|
105
|
+
* attributes or invalid key formats.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```typescript
|
|
109
|
+
* try {
|
|
110
|
+
* await userRepo.create({ name: "John" }).execute();
|
|
111
|
+
* } catch (error) {
|
|
112
|
+
* if (error instanceof KeyGenerationError) {
|
|
113
|
+
* console.error("Failed to generate key");
|
|
114
|
+
* console.error("Entity:", error.context.entityName);
|
|
115
|
+
* console.error("Required attributes:", error.context.requiredAttributes);
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
declare class KeyGenerationError extends EntityError {
|
|
121
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Error for index key generation failures
|
|
125
|
+
*
|
|
126
|
+
* Thrown when generating secondary index keys fails due to missing
|
|
127
|
+
* attributes or when trying to update readonly indexes without forcing.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* try {
|
|
132
|
+
* await orderRepo.update({ id: "123" }, { status: "shipped" }).execute();
|
|
133
|
+
* } catch (error) {
|
|
134
|
+
* if (error instanceof IndexGenerationError) {
|
|
135
|
+
* console.error("Index failed:", error.context.indexName);
|
|
136
|
+
* console.error("Suggestion:", error.context.suggestion);
|
|
137
|
+
* }
|
|
138
|
+
* }
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
declare class IndexGenerationError extends EntityError {
|
|
142
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Error for entity schema validation failures
|
|
146
|
+
*
|
|
147
|
+
* Thrown when entity data doesn't pass schema validation.
|
|
148
|
+
* Includes validation issues and the entity context.
|
|
149
|
+
*/
|
|
150
|
+
declare class EntityValidationError extends ValidationError {
|
|
151
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, cause?: Error);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Error codes used throughout the library
|
|
155
|
+
*
|
|
156
|
+
* These codes allow for programmatic error handling and can be used
|
|
157
|
+
* to implement retry logic, user-friendly error messages, etc.
|
|
158
|
+
*/
|
|
159
|
+
declare const ErrorCodes: {
|
|
160
|
+
readonly KEY_GENERATION_FAILED: "KEY_GENERATION_FAILED";
|
|
161
|
+
readonly KEY_MISSING_ATTRIBUTES: "KEY_MISSING_ATTRIBUTES";
|
|
162
|
+
readonly KEY_INVALID_FORMAT: "KEY_INVALID_FORMAT";
|
|
163
|
+
readonly INDEX_GENERATION_FAILED: "INDEX_GENERATION_FAILED";
|
|
164
|
+
readonly INDEX_MISSING_ATTRIBUTES: "INDEX_MISSING_ATTRIBUTES";
|
|
165
|
+
readonly INDEX_NOT_FOUND: "INDEX_NOT_FOUND";
|
|
166
|
+
readonly INDEX_READONLY_UPDATE_FAILED: "INDEX_READONLY_UPDATE_FAILED";
|
|
167
|
+
readonly INDEX_UNDEFINED_VALUES: "INDEX_UNDEFINED_VALUES";
|
|
168
|
+
readonly ENTITY_VALIDATION_FAILED: "ENTITY_VALIDATION_FAILED";
|
|
169
|
+
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "ASYNC_VALIDATION_NOT_SUPPORTED";
|
|
170
|
+
readonly QUERY_INPUT_VALIDATION_FAILED: "QUERY_INPUT_VALIDATION_FAILED";
|
|
171
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
172
|
+
readonly VALIDATION_FAILED: "VALIDATION_FAILED";
|
|
173
|
+
readonly SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
|
|
174
|
+
readonly INVALID_PARAMETER: "INVALID_PARAMETER";
|
|
175
|
+
readonly MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD";
|
|
176
|
+
readonly UNDEFINED_VALUE: "UNDEFINED_VALUE";
|
|
177
|
+
readonly EXPRESSION_MISSING_ATTRIBUTE: "EXPRESSION_MISSING_ATTRIBUTE";
|
|
178
|
+
readonly EXPRESSION_MISSING_VALUE: "EXPRESSION_MISSING_VALUE";
|
|
179
|
+
readonly EXPRESSION_INVALID_CONDITION: "EXPRESSION_INVALID_CONDITION";
|
|
180
|
+
readonly EXPRESSION_EMPTY_ARRAY: "EXPRESSION_EMPTY_ARRAY";
|
|
181
|
+
readonly EXPRESSION_UNKNOWN_TYPE: "EXPRESSION_UNKNOWN_TYPE";
|
|
182
|
+
readonly EXPRESSION_INVALID: "EXPRESSION_INVALID";
|
|
183
|
+
readonly EXPRESSION_INVALID_OPERATOR: "EXPRESSION_INVALID_OPERATOR";
|
|
184
|
+
readonly QUERY_FAILED: "QUERY_FAILED";
|
|
185
|
+
readonly SCAN_FAILED: "SCAN_FAILED";
|
|
186
|
+
readonly GET_FAILED: "GET_FAILED";
|
|
187
|
+
readonly PUT_FAILED: "PUT_FAILED";
|
|
188
|
+
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
189
|
+
readonly UPDATE_FAILED: "UPDATE_FAILED";
|
|
190
|
+
readonly BATCH_GET_FAILED: "BATCH_GET_FAILED";
|
|
191
|
+
readonly BATCH_WRITE_FAILED: "BATCH_WRITE_FAILED";
|
|
192
|
+
readonly NO_UPDATE_ACTIONS: "NO_UPDATE_ACTIONS";
|
|
193
|
+
readonly CONDITIONAL_CHECK_FAILED: "CONDITIONAL_CHECK_FAILED";
|
|
194
|
+
readonly TRANSACTION_FAILED: "TRANSACTION_FAILED";
|
|
195
|
+
readonly TRANSACTION_DUPLICATE_ITEM: "TRANSACTION_DUPLICATE_ITEM";
|
|
196
|
+
readonly TRANSACTION_EMPTY: "TRANSACTION_EMPTY";
|
|
197
|
+
readonly TRANSACTION_UNSUPPORTED_TYPE: "TRANSACTION_UNSUPPORTED_TYPE";
|
|
198
|
+
readonly TRANSACTION_ITEM_LIMIT: "TRANSACTION_ITEM_LIMIT";
|
|
199
|
+
readonly TRANSACTION_CANCELLED: "TRANSACTION_CANCELLED";
|
|
200
|
+
readonly BATCH_EMPTY: "BATCH_EMPTY";
|
|
201
|
+
readonly BATCH_UNSUPPORTED_TYPE: "BATCH_UNSUPPORTED_TYPE";
|
|
202
|
+
readonly BATCH_UNPROCESSED_ITEMS: "BATCH_UNPROCESSED_ITEMS";
|
|
203
|
+
readonly BATCH_SIZE_EXCEEDED: "BATCH_SIZE_EXCEEDED";
|
|
204
|
+
readonly GSI_NOT_FOUND: "GSI_NOT_FOUND";
|
|
205
|
+
readonly SORT_KEY_REQUIRED: "SORT_KEY_REQUIRED";
|
|
206
|
+
readonly SORT_KEY_NOT_DEFINED: "SORT_KEY_NOT_DEFINED";
|
|
207
|
+
readonly PRIMARY_KEY_MISSING: "PRIMARY_KEY_MISSING";
|
|
208
|
+
readonly INVALID_CHUNK_SIZE: "INVALID_CHUNK_SIZE";
|
|
209
|
+
readonly CONDITION_REQUIRED: "CONDITION_REQUIRED";
|
|
210
|
+
readonly CONDITION_GENERATION_FAILED: "CONDITION_GENERATION_FAILED";
|
|
211
|
+
readonly PK_EXTRACTION_FAILED: "PK_EXTRACTION_FAILED";
|
|
212
|
+
readonly CONFIGURATION_INVALID: "CONFIGURATION_INVALID";
|
|
213
|
+
readonly CONFIGURATION_MISSING_SORT_KEY: "CONFIGURATION_MISSING_SORT_KEY";
|
|
214
|
+
readonly CONFIGURATION_INVALID_GSI: "CONFIGURATION_INVALID_GSI";
|
|
215
|
+
};
|
|
216
|
+
type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
|
|
217
|
+
|
|
5
218
|
type BatchWriteOperation<T extends Record<string, unknown>> = {
|
|
6
219
|
type: "put";
|
|
7
220
|
item: T;
|
|
@@ -141,6 +354,7 @@ interface BaseBuilderInterface<T extends DynamoItem, TConfig extends TableConfig
|
|
|
141
354
|
getLimit(): number | undefined;
|
|
142
355
|
startFrom(lastEvaluatedKey: DynamoItem): B;
|
|
143
356
|
execute(): Promise<ResultIterator<T, TConfig>>;
|
|
357
|
+
findOne(): Promise<T | undefined>;
|
|
144
358
|
}
|
|
145
359
|
/**
|
|
146
360
|
* Interface for the QueryBuilder class to be used by Paginator
|
|
@@ -246,6 +460,8 @@ declare class GetBuilder<T extends DynamoItem> {
|
|
|
246
460
|
private readonly params;
|
|
247
461
|
private options;
|
|
248
462
|
private selectedFields;
|
|
463
|
+
private includeIndexAttributes;
|
|
464
|
+
private readonly indexAttributeNames;
|
|
249
465
|
/**
|
|
250
466
|
* Creates a new GetBuilder instance.
|
|
251
467
|
*
|
|
@@ -253,7 +469,7 @@ declare class GetBuilder<T extends DynamoItem> {
|
|
|
253
469
|
* @param key - Primary key of the item to retrieve
|
|
254
470
|
* @param tableName - Name of the DynamoDB table
|
|
255
471
|
*/
|
|
256
|
-
constructor(executor: GetExecutor<T>, key: PrimaryKeyWithoutExpression, tableName: string);
|
|
472
|
+
constructor(executor: GetExecutor<T>, key: PrimaryKeyWithoutExpression, tableName: string, indexAttributeNames?: string[]);
|
|
257
473
|
/**
|
|
258
474
|
* Specifies which attributes to return in the get results.
|
|
259
475
|
*
|
|
@@ -275,6 +491,11 @@ declare class GetBuilder<T extends DynamoItem> {
|
|
|
275
491
|
* @returns The builder instance for method chaining
|
|
276
492
|
*/
|
|
277
493
|
select<K extends Path<T>>(fields: K | K[]): GetBuilder<T>;
|
|
494
|
+
/**
|
|
495
|
+
* Ensures index attributes are included in the result.
|
|
496
|
+
* By default, index attributes are removed from get responses.
|
|
497
|
+
*/
|
|
498
|
+
includeIndexes(): GetBuilder<T>;
|
|
278
499
|
/**
|
|
279
500
|
* Sets whether to use strongly consistent reads for the get operation.
|
|
280
501
|
* Use this method when you need:
|
|
@@ -337,6 +558,8 @@ declare class GetBuilder<T extends DynamoItem> {
|
|
|
337
558
|
* Converts the builder configuration to a DynamoDB command
|
|
338
559
|
*/
|
|
339
560
|
private toDynamoCommand;
|
|
561
|
+
private addIndexAttributesToSelection;
|
|
562
|
+
private omitIndexAttributes;
|
|
340
563
|
/**
|
|
341
564
|
* Executes the get operation against DynamoDB.
|
|
342
565
|
*
|
|
@@ -386,14 +609,6 @@ type BatchGetExecutor = (keys: Array<PrimaryKeyWithoutExpression>) => Promise<{
|
|
|
386
609
|
items: DynamoItem[];
|
|
387
610
|
unprocessedKeys: PrimaryKeyWithoutExpression[];
|
|
388
611
|
}>;
|
|
389
|
-
/**
|
|
390
|
-
* Error class for batch operation failures
|
|
391
|
-
*/
|
|
392
|
-
declare class BatchError extends Error {
|
|
393
|
-
readonly operation: "write" | "read";
|
|
394
|
-
readonly cause?: Error;
|
|
395
|
-
constructor(message: string, operation: "write" | "read", cause?: Error);
|
|
396
|
-
}
|
|
397
612
|
/**
|
|
398
613
|
* Result structure for batch operations
|
|
399
614
|
*/
|
|
@@ -848,7 +1063,7 @@ declare class TransactionBuilder {
|
|
|
848
1063
|
* @returns The transaction builder for method chaining
|
|
849
1064
|
* @throws {Error} If a duplicate item is detected in the transaction
|
|
850
1065
|
*/
|
|
851
|
-
update<
|
|
1066
|
+
update<_T extends DynamoItem>(tableName: string, key: PrimaryKeyWithoutExpression, updateExpression: string, expressionAttributeNames?: Record<string, string>, expressionAttributeValues?: Record<string, unknown>, condition?: Condition): this;
|
|
852
1067
|
/**
|
|
853
1068
|
* Adds a pre-configured update operation to the transaction.
|
|
854
1069
|
*
|
|
@@ -1971,6 +2186,26 @@ declare abstract class FilterBuilder<T extends DynamoItem, TConfig extends Table
|
|
|
1971
2186
|
* their specific execution logic.
|
|
1972
2187
|
*/
|
|
1973
2188
|
abstract execute(): Promise<ResultIterator<T, TConfig>>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Executes the operation and returns the first matching item, if any.
|
|
2191
|
+
*
|
|
2192
|
+
* This helper:
|
|
2193
|
+
* - Applies an internal limit of 1
|
|
2194
|
+
* - Streams results until a match is found or there are no more pages
|
|
2195
|
+
* - Avoids mutating the current builder by using a clone
|
|
2196
|
+
*
|
|
2197
|
+
* @example
|
|
2198
|
+
* ```typescript
|
|
2199
|
+
* const latest = await table
|
|
2200
|
+
* .query(eq("moduleId", moduleId))
|
|
2201
|
+
* .useIndex("module-version-index")
|
|
2202
|
+
* .sortDescending()
|
|
2203
|
+
* .findOne();
|
|
2204
|
+
* ```
|
|
2205
|
+
*
|
|
2206
|
+
* @returns The first matching item, or undefined if none found
|
|
2207
|
+
*/
|
|
2208
|
+
findOne(): Promise<T | undefined>;
|
|
1974
2209
|
}
|
|
1975
2210
|
|
|
1976
2211
|
/**
|
|
@@ -2033,7 +2268,9 @@ declare class QueryBuilder<T extends DynamoItem, TConfig extends TableConfig = T
|
|
|
2033
2268
|
private readonly keyCondition;
|
|
2034
2269
|
protected options: QueryOptions;
|
|
2035
2270
|
protected readonly executor: QueryExecutor<T>;
|
|
2036
|
-
|
|
2271
|
+
private includeIndexAttributes;
|
|
2272
|
+
private readonly indexAttributeNames;
|
|
2273
|
+
constructor(executor: QueryExecutor<T>, keyCondition: Condition, indexAttributeNames?: string[]);
|
|
2037
2274
|
/**
|
|
2038
2275
|
* Sets the maximum number of items to return from the query.
|
|
2039
2276
|
*
|
|
@@ -2099,6 +2336,12 @@ declare class QueryBuilder<T extends DynamoItem, TConfig extends TableConfig = T
|
|
|
2099
2336
|
* @returns The builder instance for method chaining
|
|
2100
2337
|
*/
|
|
2101
2338
|
sortDescending(): this;
|
|
2339
|
+
/**
|
|
2340
|
+
* Ensures index attributes are included in the result.
|
|
2341
|
+
* By default, index attributes are removed from query responses.
|
|
2342
|
+
*/
|
|
2343
|
+
includeIndexes(): this;
|
|
2344
|
+
select<K extends Path<T>>(fields: K | K[]): this;
|
|
2102
2345
|
/**
|
|
2103
2346
|
* Creates a deep clone of this QueryBuilder instance.
|
|
2104
2347
|
*
|
|
@@ -2173,6 +2416,8 @@ declare class QueryBuilder<T extends DynamoItem, TConfig extends TableConfig = T
|
|
|
2173
2416
|
* @returns A promise that resolves to a ResultGenerator that behaves like an array
|
|
2174
2417
|
*/
|
|
2175
2418
|
execute(): Promise<ResultIterator<T, TConfig>>;
|
|
2419
|
+
private addIndexAttributesToSelection;
|
|
2420
|
+
private omitIndexAttributes;
|
|
2176
2421
|
}
|
|
2177
2422
|
|
|
2178
2423
|
/**
|
|
@@ -2794,4 +3039,4 @@ declare class ScanBuilder<T extends DynamoItem, TConfig extends TableConfig = Ta
|
|
|
2794
3039
|
execute(): Promise<ResultIterator<T, TConfig>>;
|
|
2795
3040
|
}
|
|
2796
3041
|
|
|
2797
|
-
export { BatchBuilder as B, ConditionCheckBuilder as C, DeleteBuilder as D, FilterBuilder as F, GetBuilder as G, PutBuilder as P, QueryBuilder as Q, ResultIterator as R, ScanBuilder as S, TransactionBuilder as T, UpdateBuilder as U,
|
|
3042
|
+
export { BatchBuilder as B, ConditionCheckBuilder as C, DeleteBuilder as D, ExpressionError as E, FilterBuilder as F, GetBuilder as G, IndexGenerationError as I, KeyGenerationError as K, OperationError as O, PutBuilder as P, QueryBuilder as Q, ResultIterator as R, ScanBuilder as S, TransactionBuilder as T, UpdateBuilder as U, ValidationError as V, type TransactionOptions as a, type BatchWriteOperation as b, BatchError as c, ConfigurationError as d, EntityValidationError as e, TransactionError as f, DynoTableError as g, EntityError as h, type BatchResult as i, type DeleteOptions as j, type PutOptions as k, type QueryOptions as l, type UpdateOptions as m, ErrorCodes as n, type ErrorCode as o, type UpdateCommandParams as p, Paginator as q, type DeleteCommandParams as r, type PutCommandParams as s, type ConditionCheckCommandParams as t, type BaseBuilderInterface as u, type QueryBuilderInterface as v, type ScanBuilderInterface as w, type FilterBuilderInterface as x, type PaginationResult as y, type TransactionItem as z };
|