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.
@@ -1,7 +1,220 @@
1
- import { c as PrimaryKeyWithoutExpression, s as Path, a as Condition, b as ConditionOperator, t as PathType } from './conditions-CcZL0sR2.cjs';
1
+ import { P as PrimaryKeyWithoutExpression, s as Path, b as Condition, c as ConditionOperator, t as PathType } from './conditions-C8bM__Pn.cjs';
2
2
  import { DynamoItem, TableConfig, GSINames } from './types.cjs';
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<T extends DynamoItem>(tableName: string, key: PrimaryKeyWithoutExpression, updateExpression: string, expressionAttributeNames?: Record<string, string>, expressionAttributeValues?: Record<string, unknown>, condition?: Condition): this;
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
- constructor(executor: QueryExecutor<T>, keyCondition: Condition);
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, BatchError as a, type BatchResult as b, type DeleteOptions as c, type PutOptions as d, type QueryOptions as e, type TransactionOptions as f, type UpdateOptions as g, type BatchWriteOperation as h, type UpdateCommandParams as i, Paginator as j, type DeleteCommandParams as k, type PutCommandParams as l, type ConditionCheckCommandParams as m, type BaseBuilderInterface as n, type QueryBuilderInterface as o, type ScanBuilderInterface as p, type FilterBuilderInterface as q, type PaginationResult as r, type TransactionItem as s };
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 };
package/dist/index.cjs CHANGED
@@ -1,28 +1,113 @@
1
1
  'use strict';
2
2
 
3
- var chunkKA3VPIPS_cjs = require('./chunk-KA3VPIPS.cjs');
4
- var chunk3J5DY7KG_cjs = require('./chunk-3J5DY7KG.cjs');
3
+ var chunkZUBCW3LA_cjs = require('./chunk-ZUBCW3LA.cjs');
4
+ var chunkZXM6LPRV_cjs = require('./chunk-ZXM6LPRV.cjs');
5
5
  var chunkPB7BBCZO_cjs = require('./chunk-PB7BBCZO.cjs');
6
- var chunkXYL43FDX_cjs = require('./chunk-XYL43FDX.cjs');
6
+ var chunk3DR6VOFW_cjs = require('./chunk-3DR6VOFW.cjs');
7
+ var chunkELULXDSB_cjs = require('./chunk-ELULXDSB.cjs');
7
8
  var chunk7UJJ7JXM_cjs = require('./chunk-7UJJ7JXM.cjs');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "Table", {
12
13
  enumerable: true,
13
- get: function () { return chunkKA3VPIPS_cjs.Table; }
14
+ get: function () { return chunkZUBCW3LA_cjs.Table; }
14
15
  });
15
16
  Object.defineProperty(exports, "createIndex", {
16
17
  enumerable: true,
17
- get: function () { return chunk3J5DY7KG_cjs.createIndex; }
18
+ get: function () { return chunkZXM6LPRV_cjs.createIndex; }
18
19
  });
19
20
  Object.defineProperty(exports, "createQueries", {
20
21
  enumerable: true,
21
- get: function () { return chunk3J5DY7KG_cjs.createQueries; }
22
+ get: function () { return chunkZXM6LPRV_cjs.createQueries; }
22
23
  });
23
24
  Object.defineProperty(exports, "defineEntity", {
24
25
  enumerable: true,
25
- get: function () { return chunk3J5DY7KG_cjs.defineEntity; }
26
+ get: function () { return chunkZXM6LPRV_cjs.defineEntity; }
27
+ });
28
+ Object.defineProperty(exports, "extractRequiredAttributes", {
29
+ enumerable: true,
30
+ get: function () { return chunkZXM6LPRV_cjs.extractRequiredAttributes; }
31
+ });
32
+ Object.defineProperty(exports, "formatErrorContext", {
33
+ enumerable: true,
34
+ get: function () { return chunkZXM6LPRV_cjs.formatErrorContext; }
35
+ });
36
+ Object.defineProperty(exports, "getAwsErrorCode", {
37
+ enumerable: true,
38
+ get: function () { return chunkZXM6LPRV_cjs.getAwsErrorCode; }
39
+ });
40
+ Object.defineProperty(exports, "getAwsErrorMessage", {
41
+ enumerable: true,
42
+ get: function () { return chunkZXM6LPRV_cjs.getAwsErrorMessage; }
43
+ });
44
+ Object.defineProperty(exports, "getErrorSummary", {
45
+ enumerable: true,
46
+ get: function () { return chunkZXM6LPRV_cjs.getErrorSummary; }
47
+ });
48
+ Object.defineProperty(exports, "isBatchError", {
49
+ enumerable: true,
50
+ get: function () { return chunkZXM6LPRV_cjs.isBatchError; }
51
+ });
52
+ Object.defineProperty(exports, "isConditionalCheckFailed", {
53
+ enumerable: true,
54
+ get: function () { return chunkZXM6LPRV_cjs.isConditionalCheckFailed; }
55
+ });
56
+ Object.defineProperty(exports, "isConfigurationError", {
57
+ enumerable: true,
58
+ get: function () { return chunkZXM6LPRV_cjs.isConfigurationError; }
59
+ });
60
+ Object.defineProperty(exports, "isDynoTableError", {
61
+ enumerable: true,
62
+ get: function () { return chunkZXM6LPRV_cjs.isDynoTableError; }
63
+ });
64
+ Object.defineProperty(exports, "isEntityError", {
65
+ enumerable: true,
66
+ get: function () { return chunkZXM6LPRV_cjs.isEntityError; }
67
+ });
68
+ Object.defineProperty(exports, "isEntityValidationError", {
69
+ enumerable: true,
70
+ get: function () { return chunkZXM6LPRV_cjs.isEntityValidationError; }
71
+ });
72
+ Object.defineProperty(exports, "isExpressionError", {
73
+ enumerable: true,
74
+ get: function () { return chunkZXM6LPRV_cjs.isExpressionError; }
75
+ });
76
+ Object.defineProperty(exports, "isIndexGenerationError", {
77
+ enumerable: true,
78
+ get: function () { return chunkZXM6LPRV_cjs.isIndexGenerationError; }
79
+ });
80
+ Object.defineProperty(exports, "isKeyGenerationError", {
81
+ enumerable: true,
82
+ get: function () { return chunkZXM6LPRV_cjs.isKeyGenerationError; }
83
+ });
84
+ Object.defineProperty(exports, "isOperationError", {
85
+ enumerable: true,
86
+ get: function () { return chunkZXM6LPRV_cjs.isOperationError; }
87
+ });
88
+ Object.defineProperty(exports, "isProvisionedThroughputExceeded", {
89
+ enumerable: true,
90
+ get: function () { return chunkZXM6LPRV_cjs.isProvisionedThroughputExceeded; }
91
+ });
92
+ Object.defineProperty(exports, "isRetryableError", {
93
+ enumerable: true,
94
+ get: function () { return chunkZXM6LPRV_cjs.isRetryableError; }
95
+ });
96
+ Object.defineProperty(exports, "isTransactionCanceled", {
97
+ enumerable: true,
98
+ get: function () { return chunkZXM6LPRV_cjs.isTransactionCanceled; }
99
+ });
100
+ Object.defineProperty(exports, "isTransactionError", {
101
+ enumerable: true,
102
+ get: function () { return chunkZXM6LPRV_cjs.isTransactionError; }
103
+ });
104
+ Object.defineProperty(exports, "isValidationError", {
105
+ enumerable: true,
106
+ get: function () { return chunkZXM6LPRV_cjs.isValidationError; }
107
+ });
108
+ Object.defineProperty(exports, "isValidationException", {
109
+ enumerable: true,
110
+ get: function () { return chunkZXM6LPRV_cjs.isValidationException; }
26
111
  });
27
112
  Object.defineProperty(exports, "partitionKey", {
28
113
  enumerable: true,
@@ -34,31 +119,107 @@ Object.defineProperty(exports, "sortKey", {
34
119
  });
35
120
  Object.defineProperty(exports, "BatchBuilder", {
36
121
  enumerable: true,
37
- get: function () { return chunkXYL43FDX_cjs.BatchBuilder; }
38
- });
39
- Object.defineProperty(exports, "BatchError", {
40
- enumerable: true,
41
- get: function () { return chunkXYL43FDX_cjs.BatchError; }
122
+ get: function () { return chunk3DR6VOFW_cjs.BatchBuilder; }
42
123
  });
43
124
  Object.defineProperty(exports, "DeleteBuilder", {
44
125
  enumerable: true,
45
- get: function () { return chunkXYL43FDX_cjs.DeleteBuilder; }
126
+ get: function () { return chunk3DR6VOFW_cjs.DeleteBuilder; }
46
127
  });
47
128
  Object.defineProperty(exports, "PutBuilder", {
48
129
  enumerable: true,
49
- get: function () { return chunkXYL43FDX_cjs.PutBuilder; }
130
+ get: function () { return chunk3DR6VOFW_cjs.PutBuilder; }
50
131
  });
51
132
  Object.defineProperty(exports, "QueryBuilder", {
52
133
  enumerable: true,
53
- get: function () { return chunkXYL43FDX_cjs.QueryBuilder; }
134
+ get: function () { return chunk3DR6VOFW_cjs.QueryBuilder; }
54
135
  });
55
136
  Object.defineProperty(exports, "TransactionBuilder", {
56
137
  enumerable: true,
57
- get: function () { return chunkXYL43FDX_cjs.TransactionBuilder; }
138
+ get: function () { return chunk3DR6VOFW_cjs.TransactionBuilder; }
58
139
  });
59
140
  Object.defineProperty(exports, "UpdateBuilder", {
60
141
  enumerable: true,
61
- get: function () { return chunkXYL43FDX_cjs.UpdateBuilder; }
142
+ get: function () { return chunk3DR6VOFW_cjs.UpdateBuilder; }
143
+ });
144
+ Object.defineProperty(exports, "BatchError", {
145
+ enumerable: true,
146
+ get: function () { return chunkELULXDSB_cjs.BatchError; }
147
+ });
148
+ Object.defineProperty(exports, "BatchErrors", {
149
+ enumerable: true,
150
+ get: function () { return chunkELULXDSB_cjs.BatchErrors; }
151
+ });
152
+ Object.defineProperty(exports, "ConfigurationError", {
153
+ enumerable: true,
154
+ get: function () { return chunkELULXDSB_cjs.ConfigurationError; }
155
+ });
156
+ Object.defineProperty(exports, "ConfigurationErrors", {
157
+ enumerable: true,
158
+ get: function () { return chunkELULXDSB_cjs.ConfigurationErrors; }
159
+ });
160
+ Object.defineProperty(exports, "DynoTableError", {
161
+ enumerable: true,
162
+ get: function () { return chunkELULXDSB_cjs.DynoTableError; }
163
+ });
164
+ Object.defineProperty(exports, "EntityError", {
165
+ enumerable: true,
166
+ get: function () { return chunkELULXDSB_cjs.EntityError; }
167
+ });
168
+ Object.defineProperty(exports, "EntityErrors", {
169
+ enumerable: true,
170
+ get: function () { return chunkELULXDSB_cjs.EntityErrors; }
171
+ });
172
+ Object.defineProperty(exports, "EntityValidationError", {
173
+ enumerable: true,
174
+ get: function () { return chunkELULXDSB_cjs.EntityValidationError; }
175
+ });
176
+ Object.defineProperty(exports, "ErrorCodes", {
177
+ enumerable: true,
178
+ get: function () { return chunkELULXDSB_cjs.ErrorCodes; }
179
+ });
180
+ Object.defineProperty(exports, "ExpressionError", {
181
+ enumerable: true,
182
+ get: function () { return chunkELULXDSB_cjs.ExpressionError; }
183
+ });
184
+ Object.defineProperty(exports, "ExpressionErrors", {
185
+ enumerable: true,
186
+ get: function () { return chunkELULXDSB_cjs.ExpressionErrors; }
187
+ });
188
+ Object.defineProperty(exports, "IndexErrors", {
189
+ enumerable: true,
190
+ get: function () { return chunkELULXDSB_cjs.IndexErrors; }
191
+ });
192
+ Object.defineProperty(exports, "IndexGenerationError", {
193
+ enumerable: true,
194
+ get: function () { return chunkELULXDSB_cjs.IndexGenerationError; }
195
+ });
196
+ Object.defineProperty(exports, "KeyGenerationError", {
197
+ enumerable: true,
198
+ get: function () { return chunkELULXDSB_cjs.KeyGenerationError; }
199
+ });
200
+ Object.defineProperty(exports, "OperationError", {
201
+ enumerable: true,
202
+ get: function () { return chunkELULXDSB_cjs.OperationError; }
203
+ });
204
+ Object.defineProperty(exports, "OperationErrors", {
205
+ enumerable: true,
206
+ get: function () { return chunkELULXDSB_cjs.OperationErrors; }
207
+ });
208
+ Object.defineProperty(exports, "TransactionError", {
209
+ enumerable: true,
210
+ get: function () { return chunkELULXDSB_cjs.TransactionError; }
211
+ });
212
+ Object.defineProperty(exports, "TransactionErrors", {
213
+ enumerable: true,
214
+ get: function () { return chunkELULXDSB_cjs.TransactionErrors; }
215
+ });
216
+ Object.defineProperty(exports, "ValidationError", {
217
+ enumerable: true,
218
+ get: function () { return chunkELULXDSB_cjs.ValidationError; }
219
+ });
220
+ Object.defineProperty(exports, "ValidationErrors", {
221
+ enumerable: true,
222
+ get: function () { return chunkELULXDSB_cjs.ValidationErrors; }
62
223
  });
63
224
  Object.defineProperty(exports, "and", {
64
225
  enumerable: true,