dyno-table 2.2.0 → 2.3.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/README.md +200 -1860
- package/dist/builders.cjs +55 -0
- package/dist/builders.d.cts +4 -0
- package/dist/builders.d.ts +4 -0
- package/dist/builders.js +2 -0
- package/dist/chunk-2EWNZOUK.js +618 -0
- package/dist/chunk-2WIBY7PZ.js +46 -0
- package/dist/chunk-7UJJ7JXM.cjs +63 -0
- package/dist/chunk-DTFJJASK.js +3200 -0
- package/dist/chunk-EODPMYPE.js +558 -0
- package/dist/chunk-KA3VPIPS.cjs +560 -0
- package/dist/chunk-NTA6GDPP.cjs +622 -0
- package/dist/chunk-PB7BBCZO.cjs +32 -0
- package/dist/chunk-QVRMYGC4.js +29 -0
- package/dist/chunk-XYL43FDX.cjs +3217 -0
- package/dist/{conditions-CC3NDfUU.d.cts → conditions-CcZL0sR2.d.cts} +1 -1
- package/dist/{conditions-DD0bvyHm.d.ts → conditions-D_w7vVYG.d.ts} +1 -1
- package/dist/conditions.cjs +67 -62
- package/dist/conditions.d.cts +1 -1
- package/dist/conditions.d.ts +1 -1
- package/dist/conditions.js +1 -48
- package/dist/entity.cjs +14 -625
- package/dist/entity.d.cts +5 -13
- package/dist/entity.d.ts +5 -13
- package/dist/entity.js +2 -626
- package/dist/index-2cbm07Bi.d.ts +2797 -0
- package/dist/index-DlN8G9hd.d.cts +2797 -0
- package/dist/index.cjs +111 -4446
- package/dist/index.d.cts +3 -11
- package/dist/index.d.ts +3 -11
- package/dist/index.js +5 -4428
- package/dist/standard-schema.cjs +0 -2
- package/dist/standard-schema.js +0 -2
- package/dist/table.cjs +7 -3782
- package/dist/table.d.cts +163 -12
- package/dist/table.d.ts +163 -12
- package/dist/table.js +3 -3785
- package/dist/types.cjs +0 -2
- package/dist/types.js +0 -2
- package/dist/utils.cjs +10 -30
- package/dist/utils.js +1 -31
- package/package.json +12 -67
- package/dist/batch-builder-BPoHyN_Q.d.cts +0 -398
- package/dist/batch-builder-Cdo49C2r.d.ts +0 -398
- package/dist/builder-types-BTVhQSHI.d.cts +0 -169
- package/dist/builder-types-CzuLR4Th.d.ts +0 -169
- package/dist/builders/condition-check-builder.cjs +0 -422
- package/dist/builders/condition-check-builder.cjs.map +0 -1
- package/dist/builders/condition-check-builder.d.cts +0 -153
- package/dist/builders/condition-check-builder.d.ts +0 -153
- package/dist/builders/condition-check-builder.js +0 -420
- package/dist/builders/condition-check-builder.js.map +0 -1
- package/dist/builders/delete-builder.cjs +0 -484
- package/dist/builders/delete-builder.cjs.map +0 -1
- package/dist/builders/delete-builder.d.cts +0 -211
- package/dist/builders/delete-builder.d.ts +0 -211
- package/dist/builders/delete-builder.js +0 -482
- package/dist/builders/delete-builder.js.map +0 -1
- package/dist/builders/paginator.cjs +0 -193
- package/dist/builders/paginator.cjs.map +0 -1
- package/dist/builders/paginator.d.cts +0 -155
- package/dist/builders/paginator.d.ts +0 -155
- package/dist/builders/paginator.js +0 -191
- package/dist/builders/paginator.js.map +0 -1
- package/dist/builders/put-builder.cjs +0 -554
- package/dist/builders/put-builder.cjs.map +0 -1
- package/dist/builders/put-builder.d.cts +0 -319
- package/dist/builders/put-builder.d.ts +0 -319
- package/dist/builders/put-builder.js +0 -552
- package/dist/builders/put-builder.js.map +0 -1
- package/dist/builders/query-builder.cjs +0 -743
- package/dist/builders/query-builder.cjs.map +0 -1
- package/dist/builders/query-builder.d.cts +0 -6
- package/dist/builders/query-builder.d.ts +0 -6
- package/dist/builders/query-builder.js +0 -741
- package/dist/builders/query-builder.js.map +0 -1
- package/dist/builders/transaction-builder.cjs +0 -906
- package/dist/builders/transaction-builder.cjs.map +0 -1
- package/dist/builders/transaction-builder.d.cts +0 -464
- package/dist/builders/transaction-builder.d.ts +0 -464
- package/dist/builders/transaction-builder.js +0 -904
- package/dist/builders/transaction-builder.js.map +0 -1
- package/dist/builders/update-builder.cjs +0 -668
- package/dist/builders/update-builder.cjs.map +0 -1
- package/dist/builders/update-builder.d.cts +0 -374
- package/dist/builders/update-builder.d.ts +0 -374
- package/dist/builders/update-builder.js +0 -666
- package/dist/builders/update-builder.js.map +0 -1
- package/dist/conditions.cjs.map +0 -1
- package/dist/conditions.js.map +0 -1
- package/dist/entity.cjs.map +0 -1
- package/dist/entity.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/query-builder-CUWdavZw.d.ts +0 -477
- package/dist/query-builder-DoZzZz_c.d.cts +0 -477
- package/dist/standard-schema.cjs.map +0 -1
- package/dist/standard-schema.js.map +0 -1
- package/dist/table-CZBMkW2Z.d.ts +0 -276
- package/dist/table-f-3wsT7K.d.cts +0 -276
- package/dist/table.cjs.map +0 -1
- package/dist/table.js.map +0 -1
- package/dist/types.cjs.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -728,4 +728,4 @@ type PrimaryKeyWithoutExpression = {
|
|
|
728
728
|
sk?: string;
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
-
export { type
|
|
731
|
+
export { type ComparisonOperator as C, type ExpressionParams as E, type KeyConditionOperator as K, type LogicalOperator as L, type PrimaryKey as P, type Condition as a, type ConditionOperator as b, type PrimaryKeyWithoutExpression as c, and as d, attributeExists as e, attributeNotExists as f, beginsWith as g, between as h, contains as i, eq as j, gt as k, gte as l, inArray as m, lt as n, lte as o, ne as p, not as q, or as r, type Path as s, type PathType as t, createComparisonCondition as u };
|
|
@@ -728,4 +728,4 @@ type PrimaryKeyWithoutExpression = {
|
|
|
728
728
|
sk?: string;
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
-
export { type
|
|
731
|
+
export { type ComparisonOperator as C, type ExpressionParams as E, type KeyConditionOperator as K, type LogicalOperator as L, type PrimaryKey as P, type Condition as a, type ConditionOperator as b, type PrimaryKeyWithoutExpression as c, and as d, attributeExists as e, attributeNotExists as f, beginsWith as g, between as h, contains as i, eq as j, gt as k, gte as l, inArray as m, lt as n, lte as o, ne as p, not as q, or as r, type Path as s, type PathType as t, createComparisonCondition as u };
|
package/dist/conditions.cjs
CHANGED
|
@@ -1,65 +1,70 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
attr,
|
|
7
|
-
value
|
|
8
|
-
});
|
|
9
|
-
var eq = createComparisonCondition("eq");
|
|
10
|
-
var ne = createComparisonCondition("ne");
|
|
11
|
-
var lt = createComparisonCondition("lt");
|
|
12
|
-
var lte = createComparisonCondition("lte");
|
|
13
|
-
var gt = createComparisonCondition("gt");
|
|
14
|
-
var gte = createComparisonCondition("gte");
|
|
15
|
-
var between = (attr, lower, upper) => ({
|
|
16
|
-
type: "between",
|
|
17
|
-
attr,
|
|
18
|
-
value: [lower, upper]
|
|
19
|
-
});
|
|
20
|
-
var inArray = (attr, values) => ({
|
|
21
|
-
type: "in",
|
|
22
|
-
attr,
|
|
23
|
-
value: values
|
|
24
|
-
});
|
|
25
|
-
var beginsWith = createComparisonCondition("beginsWith");
|
|
26
|
-
var contains = createComparisonCondition("contains");
|
|
27
|
-
var attributeExists = (attr) => ({
|
|
28
|
-
type: "attributeExists",
|
|
29
|
-
attr
|
|
30
|
-
});
|
|
31
|
-
var attributeNotExists = (attr) => ({
|
|
32
|
-
type: "attributeNotExists",
|
|
33
|
-
attr
|
|
34
|
-
});
|
|
35
|
-
var and = (...conditions) => ({
|
|
36
|
-
type: "and",
|
|
37
|
-
conditions
|
|
38
|
-
});
|
|
39
|
-
var or = (...conditions) => ({
|
|
40
|
-
type: "or",
|
|
41
|
-
conditions
|
|
42
|
-
});
|
|
43
|
-
var not = (condition) => ({
|
|
44
|
-
type: "not",
|
|
45
|
-
condition
|
|
46
|
-
});
|
|
3
|
+
var chunk7UJJ7JXM_cjs = require('./chunk-7UJJ7JXM.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
47
6
|
|
|
48
|
-
exports
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
exports
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
exports
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
exports
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
7
|
+
Object.defineProperty(exports, "and", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk7UJJ7JXM_cjs.and; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "attributeExists", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk7UJJ7JXM_cjs.attributeExists; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "attributeNotExists", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunk7UJJ7JXM_cjs.attributeNotExists; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "beginsWith", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk7UJJ7JXM_cjs.beginsWith; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "between", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunk7UJJ7JXM_cjs.between; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "contains", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk7UJJ7JXM_cjs.contains; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "createComparisonCondition", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk7UJJ7JXM_cjs.createComparisonCondition; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "eq", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunk7UJJ7JXM_cjs.eq; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "gt", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunk7UJJ7JXM_cjs.gt; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "gte", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunk7UJJ7JXM_cjs.gte; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "inArray", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunk7UJJ7JXM_cjs.inArray; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "lt", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunk7UJJ7JXM_cjs.lt; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "lte", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunk7UJJ7JXM_cjs.lte; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "ne", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunk7UJJ7JXM_cjs.ne; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "not", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunk7UJJ7JXM_cjs.not; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "or", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunk7UJJ7JXM_cjs.or; }
|
|
70
|
+
});
|
package/dist/conditions.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as ComparisonOperator, a as Condition, b as ConditionOperator, E as ExpressionParams, K as KeyConditionOperator, L as LogicalOperator, P as PrimaryKey, c as PrimaryKeyWithoutExpression, d as and, e as attributeExists, f as attributeNotExists, g as beginsWith, h as between, i as contains, u as createComparisonCondition, j as eq, k as gt, l as gte, m as inArray, n as lt, o as lte, p as ne, q as not, r as or } from './conditions-CcZL0sR2.cjs';
|
|
2
2
|
import './types.cjs';
|
|
3
3
|
import '@aws-sdk/lib-dynamodb';
|
package/dist/conditions.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as ComparisonOperator, a as Condition, b as ConditionOperator, E as ExpressionParams, K as KeyConditionOperator, L as LogicalOperator, P as PrimaryKey, c as PrimaryKeyWithoutExpression, d as and, e as attributeExists, f as attributeNotExists, g as beginsWith, h as between, i as contains, u as createComparisonCondition, j as eq, k as gt, l as gte, m as inArray, n as lt, o as lte, p as ne, q as not, r as or } from './conditions-D_w7vVYG.js';
|
|
2
2
|
import './types.js';
|
|
3
3
|
import '@aws-sdk/lib-dynamodb';
|
package/dist/conditions.js
CHANGED
|
@@ -1,48 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var createComparisonCondition = (type) => (attr, value) => ({
|
|
3
|
-
type,
|
|
4
|
-
attr,
|
|
5
|
-
value
|
|
6
|
-
});
|
|
7
|
-
var eq = createComparisonCondition("eq");
|
|
8
|
-
var ne = createComparisonCondition("ne");
|
|
9
|
-
var lt = createComparisonCondition("lt");
|
|
10
|
-
var lte = createComparisonCondition("lte");
|
|
11
|
-
var gt = createComparisonCondition("gt");
|
|
12
|
-
var gte = createComparisonCondition("gte");
|
|
13
|
-
var between = (attr, lower, upper) => ({
|
|
14
|
-
type: "between",
|
|
15
|
-
attr,
|
|
16
|
-
value: [lower, upper]
|
|
17
|
-
});
|
|
18
|
-
var inArray = (attr, values) => ({
|
|
19
|
-
type: "in",
|
|
20
|
-
attr,
|
|
21
|
-
value: values
|
|
22
|
-
});
|
|
23
|
-
var beginsWith = createComparisonCondition("beginsWith");
|
|
24
|
-
var contains = createComparisonCondition("contains");
|
|
25
|
-
var attributeExists = (attr) => ({
|
|
26
|
-
type: "attributeExists",
|
|
27
|
-
attr
|
|
28
|
-
});
|
|
29
|
-
var attributeNotExists = (attr) => ({
|
|
30
|
-
type: "attributeNotExists",
|
|
31
|
-
attr
|
|
32
|
-
});
|
|
33
|
-
var and = (...conditions) => ({
|
|
34
|
-
type: "and",
|
|
35
|
-
conditions
|
|
36
|
-
});
|
|
37
|
-
var or = (...conditions) => ({
|
|
38
|
-
type: "or",
|
|
39
|
-
conditions
|
|
40
|
-
});
|
|
41
|
-
var not = (condition) => ({
|
|
42
|
-
type: "not",
|
|
43
|
-
condition
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export { and, attributeExists, attributeNotExists, beginsWith, between, contains, createComparisonCondition, eq, gt, gte, inArray, lt, lte, ne, not, or };
|
|
47
|
-
//# sourceMappingURL=conditions.js.map
|
|
48
|
-
//# sourceMappingURL=conditions.js.map
|
|
1
|
+
export { and, attributeExists, attributeNotExists, beginsWith, between, contains, createComparisonCondition, eq, gt, gte, inArray, lt, lte, ne, not, or } from './chunk-2WIBY7PZ.js';
|