@infra-blocks/aws-dynamodb 0.65.0 → 0.66.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/lib/cjs/commands/expressions/condition/comparisons/between.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/between.js +7 -7
- package/lib/cjs/commands/expressions/condition/comparisons/between.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/equals.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/equals.js +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/equals.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/greater-than-or-equals.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/greater-than-or-equals.js +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/greater-than-or-equals.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/greater-than.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/greater-than.js +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/greater-than.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/in.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/in.js +9 -9
- package/lib/cjs/commands/expressions/condition/comparisons/in.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/lower-than-or-equals.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/lower-than-or-equals.js +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/lower-than-or-equals.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/lower-than.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/lower-than.js +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/lower-than.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/comparisons/not-equals.d.ts +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/not-equals.js +5 -5
- package/lib/cjs/commands/expressions/condition/comparisons/not-equals.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/condition-comparison.d.ts +12 -12
- package/lib/cjs/commands/expressions/condition/condition-comparison.js +29 -29
- package/lib/cjs/commands/expressions/condition/condition-comparison.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/condition.d.ts +3 -3
- package/lib/cjs/commands/expressions/condition/condition.js +4 -4
- package/lib/cjs/commands/expressions/condition/condition.js.map +1 -1
- package/lib/cjs/commands/expressions/condition/index.d.ts +2 -2
- package/lib/cjs/commands/expressions/condition/logic.d.ts +4 -4
- package/lib/cjs/commands/expressions/condition/logic.js.map +1 -1
- package/lib/cjs/commands/expressions/key-condition.d.ts +2 -2
- package/lib/cjs/commands/expressions/projection.d.ts +5 -5
- package/lib/cjs/commands/expressions/projection.js +7 -8
- package/lib/cjs/commands/expressions/projection.js.map +1 -1
- package/lib/cjs/commands/expressions/update/expression.d.ts +2 -2
- package/lib/cjs/commands/expressions/update/expression.js.map +1 -1
- package/lib/cjs/commands/index.d.ts +1 -1
- package/lib/cjs/commands/inputs/condition-check.d.ts +2 -2
- package/lib/cjs/commands/inputs/condition-check.js.map +1 -1
- package/lib/cjs/commands/inputs/delete-item.d.ts +2 -2
- package/lib/cjs/commands/inputs/delete-item.js.map +1 -1
- package/lib/cjs/commands/inputs/get-item.d.ts +2 -2
- package/lib/cjs/commands/inputs/get-item.js.map +1 -1
- package/lib/cjs/commands/inputs/put-item.d.ts +2 -2
- package/lib/cjs/commands/inputs/put-item.js.map +1 -1
- package/lib/cjs/commands/inputs/query.d.ts +3 -3
- package/lib/cjs/commands/inputs/update-item.d.ts +3 -3
- package/lib/esm/commands/expressions/condition/comparisons/between.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/between.js +6 -6
- package/lib/esm/commands/expressions/condition/comparisons/between.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/equals.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/equals.js +4 -4
- package/lib/esm/commands/expressions/condition/comparisons/equals.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/greater-than-or-equals.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/greater-than-or-equals.js +4 -4
- package/lib/esm/commands/expressions/condition/comparisons/greater-than-or-equals.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/greater-than.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/greater-than.js +4 -4
- package/lib/esm/commands/expressions/condition/comparisons/greater-than.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/in.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/in.js +8 -8
- package/lib/esm/commands/expressions/condition/comparisons/in.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/lower-than-or-equals.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/lower-than-or-equals.js +4 -4
- package/lib/esm/commands/expressions/condition/comparisons/lower-than-or-equals.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/lower-than.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/lower-than.js +4 -4
- package/lib/esm/commands/expressions/condition/comparisons/lower-than.js.map +1 -1
- package/lib/esm/commands/expressions/condition/comparisons/not-equals.d.ts +5 -5
- package/lib/esm/commands/expressions/condition/comparisons/not-equals.js +4 -4
- package/lib/esm/commands/expressions/condition/comparisons/not-equals.js.map +1 -1
- package/lib/esm/commands/expressions/condition/condition-comparison.d.ts +12 -12
- package/lib/esm/commands/expressions/condition/condition-comparison.js +36 -36
- package/lib/esm/commands/expressions/condition/condition-comparison.js.map +1 -1
- package/lib/esm/commands/expressions/condition/condition.d.ts +3 -3
- package/lib/esm/commands/expressions/condition/condition.js +5 -5
- package/lib/esm/commands/expressions/condition/condition.js.map +1 -1
- package/lib/esm/commands/expressions/condition/index.d.ts +2 -2
- package/lib/esm/commands/expressions/condition/logic.d.ts +4 -4
- package/lib/esm/commands/expressions/condition/logic.js.map +1 -1
- package/lib/esm/commands/expressions/key-condition.d.ts +2 -2
- package/lib/esm/commands/expressions/projection.d.ts +5 -5
- package/lib/esm/commands/expressions/projection.js +7 -8
- package/lib/esm/commands/expressions/projection.js.map +1 -1
- package/lib/esm/commands/expressions/update/expression.d.ts +2 -2
- package/lib/esm/commands/expressions/update/expression.js.map +1 -1
- package/lib/esm/commands/index.d.ts +1 -1
- package/lib/esm/commands/inputs/condition-check.d.ts +2 -2
- package/lib/esm/commands/inputs/condition-check.js.map +1 -1
- package/lib/esm/commands/inputs/delete-item.d.ts +2 -2
- package/lib/esm/commands/inputs/delete-item.js.map +1 -1
- package/lib/esm/commands/inputs/get-item.d.ts +2 -2
- package/lib/esm/commands/inputs/get-item.js +1 -1
- package/lib/esm/commands/inputs/get-item.js.map +1 -1
- package/lib/esm/commands/inputs/put-item.d.ts +2 -2
- package/lib/esm/commands/inputs/put-item.js.map +1 -1
- package/lib/esm/commands/inputs/query.d.ts +3 -3
- package/lib/esm/commands/inputs/update-item.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { ComparableOperand } from "./operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type BetweenInput = [
|
|
6
6
|
ComparableOperand,
|
|
7
7
|
"BETWEEN",
|
|
8
8
|
ComparableOperand,
|
|
9
9
|
"AND",
|
|
10
10
|
ComparableOperand
|
|
11
11
|
];
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function isBetweenInput(value: ConditionComparisonInput): value is BetweenInput;
|
|
13
13
|
export type Between = ExpressionFormatter & Brand<"Between">;
|
|
14
14
|
export declare const Between: {
|
|
15
15
|
/**
|
|
@@ -17,12 +17,12 @@ export declare const Between: {
|
|
|
17
17
|
*
|
|
18
18
|
* Both bounds are inclusive, meaning that the returned condition corresponds to `lower <= lhs <= upper`.
|
|
19
19
|
*
|
|
20
|
-
* @param
|
|
20
|
+
* @param input - The parameters of the `BETWEEN` comparison. The first element contains the left-hand side operand,
|
|
21
21
|
* the third element contains the lower inclusive bound, and the fifth element contains the upper inclusive bound.
|
|
22
22
|
*
|
|
23
23
|
* @returns A {@link Between} that evaluates to true if this operand is within the provided bounds.
|
|
24
24
|
*
|
|
25
25
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
26
26
|
*/
|
|
27
|
-
from(
|
|
27
|
+
from(input: BetweenInput): Between;
|
|
28
28
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Between = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isBetweenInput = isBetweenInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const expression_js_1 = require("../../expression.js");
|
|
7
7
|
const operand_js_1 = require("../operand.js");
|
|
8
|
-
function
|
|
8
|
+
function isBetweenInput(value) {
|
|
9
9
|
return value[1] === "BETWEEN" && value[3] === "AND";
|
|
10
10
|
}
|
|
11
11
|
exports.Between = {
|
|
@@ -14,17 +14,17 @@ exports.Between = {
|
|
|
14
14
|
*
|
|
15
15
|
* Both bounds are inclusive, meaning that the returned condition corresponds to `lower <= lhs <= upper`.
|
|
16
16
|
*
|
|
17
|
-
* @param
|
|
17
|
+
* @param input - The parameters of the `BETWEEN` comparison. The first element contains the left-hand side operand,
|
|
18
18
|
* the third element contains the lower inclusive bound, and the fifth element contains the upper inclusive bound.
|
|
19
19
|
*
|
|
20
20
|
* @returns A {@link Between} that evaluates to true if this operand is within the provided bounds.
|
|
21
21
|
*
|
|
22
22
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
23
23
|
*/
|
|
24
|
-
from(
|
|
25
|
-
const lhs = operand_js_1.ConditionOperand.normalize(
|
|
26
|
-
const lower = operand_js_1.ConditionOperand.normalize(
|
|
27
|
-
const upper = operand_js_1.ConditionOperand.normalize(
|
|
24
|
+
from(input) {
|
|
25
|
+
const lhs = operand_js_1.ConditionOperand.normalize(input[0]);
|
|
26
|
+
const lower = operand_js_1.ConditionOperand.normalize(input[2]);
|
|
27
|
+
const upper = operand_js_1.ConditionOperand.normalize(input[4]);
|
|
28
28
|
return (0, types_1.trusted)(expression_js_1.ExpressionFormatter.from(({ names, values }) => `${lhs.substitute({ names, values })} BETWEEN ${lower.substitute({ names, values })} AND ${upper.substitute({ names, values })}`));
|
|
29
29
|
},
|
|
30
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"between.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/between.ts"],"names":[],"mappings":";;;AAcA,
|
|
1
|
+
{"version":3,"file":"between.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/between.ts"],"names":[],"mappings":";;;AAcA,wCAIC;AAlBD,+CAA0D;AAC1D,uDAA0D;AAE1D,8CAAiD;AAWjD,SAAgB,cAAc,CAC5B,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC;AACtD,CAAC;AAIY,QAAA,OAAO,GAAG;IACrB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAmB;QACtB,MAAM,GAAG,GAAG,6BAAgB,CAAC,SAAS,CAAkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,MAAM,KAAK,GAAG,6BAAgB,CAAC,SAAS,CAAkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,MAAM,KAAK,GAAG,6BAAgB,CAAC,SAAS,CAAkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEpE,OAAO,IAAA,eAAO,EACZ,mCAAmB,CAAC,IAAI,CACtB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CACpB,GAAG,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,YAAY,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,QAAQ,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,CACnI,CACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import type { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { RawConditionOperand } from "../operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type EqualsInput = [RawConditionOperand, "=", RawConditionOperand];
|
|
6
6
|
export type Equals = ExpressionFormatter & Brand<"Equals">;
|
|
7
7
|
export declare const Equals: {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `=` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `=` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* and the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns An {@link Equals} that evaluates to true if this operand is equal to the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
18
|
+
from(input: EqualsInput): Equals;
|
|
19
19
|
};
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function isEqualsInput(value: ConditionComparisonInput): value is EqualsInput;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Equals = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isEqualsInput = isEqualsInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const binary_js_1 = require("./binary.js");
|
|
7
7
|
exports.Equals = {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `=` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `=` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* and the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns An {@link Equals} that evaluates to true if this operand is equal to the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
19
|
-
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(
|
|
18
|
+
from(input) {
|
|
19
|
+
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function isEqualsInput(value) {
|
|
23
23
|
return value[1] === "=";
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=equals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/equals.ts"],"names":[],"mappings":";;;AA0BA,
|
|
1
|
+
{"version":3,"file":"equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/equals.ts"],"names":[],"mappings":";;;AA0BA,sCAIC;AA9BD,+CAA0D;AAI1D,2CAA8C;AAMjC,QAAA,MAAM,GAAG;IACpB;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAkB;QACrB,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAC,KAAK,CAAC,CAAC,CAAC;IACzC,CAAC;CACF,CAAC;AAEF,SAAgB,aAAa,CAC3B,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAC1B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import type { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { ComparableOperand } from "./operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type GreaterThanOrEqualsInput = [
|
|
6
6
|
ComparableOperand,
|
|
7
7
|
">=",
|
|
8
8
|
ComparableOperand
|
|
@@ -12,13 +12,13 @@ export declare const GreaterThanOrEquals: {
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns a condition that uses the `>=` operator.
|
|
14
14
|
*
|
|
15
|
-
* @param
|
|
15
|
+
* @param input - The parameters of the `>=` comparison. The first element contains the left-hand side operand,
|
|
16
16
|
* the third element contains the right-hand side operand.
|
|
17
17
|
*
|
|
18
18
|
* @returns A {@link GreaterThanOrEquals} that evaluates to true if this operand is greater than or equal to the provided one.
|
|
19
19
|
*
|
|
20
20
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
21
21
|
*/
|
|
22
|
-
from(
|
|
22
|
+
from(input: GreaterThanOrEqualsInput): GreaterThanOrEquals;
|
|
23
23
|
};
|
|
24
|
-
export declare function
|
|
24
|
+
export declare function isGreaterThanOrEqualsInput(value: ConditionComparisonInput): value is GreaterThanOrEqualsInput;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GreaterThanOrEquals = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isGreaterThanOrEqualsInput = isGreaterThanOrEqualsInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const binary_js_1 = require("./binary.js");
|
|
7
7
|
exports.GreaterThanOrEquals = {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `>=` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `>=` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link GreaterThanOrEquals} that evaluates to true if this operand is greater than or equal to the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
19
|
-
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(
|
|
18
|
+
from(input) {
|
|
19
|
+
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function isGreaterThanOrEqualsInput(value) {
|
|
23
23
|
return value[1] === ">=";
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=greater-than-or-equals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater-than-or-equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/greater-than-or-equals.ts"],"names":[],"mappings":";;;AA+BA,
|
|
1
|
+
{"version":3,"file":"greater-than-or-equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/greater-than-or-equals.ts"],"names":[],"mappings":";;;AA+BA,gEAIC;AAnCD,+CAA0D;AAG1D,2CAA8C;AAYjC,QAAA,mBAAmB,GAAG;IACjC;;;;;;;;;OASG;IACH,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;CACF,CAAC;AAEF,SAAgB,0BAA0B,CACxC,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import type { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { ComparableOperand } from "./operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type GreaterThanInput = [ComparableOperand, ">", ComparableOperand];
|
|
6
6
|
export type GreaterThan = ExpressionFormatter & Brand<"GreaterThan">;
|
|
7
7
|
export declare const GreatThan: {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `>` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `>` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link GreaterThan} that evaluates to true if this operand is greater than the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
18
|
+
from(input: GreaterThanInput): GreaterThan;
|
|
19
19
|
};
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function isGreaterThanInput(value: ConditionComparisonInput): value is GreaterThanInput;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GreatThan = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isGreaterThanInput = isGreaterThanInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const binary_js_1 = require("./binary.js");
|
|
7
7
|
exports.GreatThan = {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `>` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `>` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link GreaterThan} that evaluates to true if this operand is greater than the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
19
|
-
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(
|
|
18
|
+
from(input) {
|
|
19
|
+
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function isGreaterThanInput(value) {
|
|
23
23
|
return value[1] === ">";
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=greater-than.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater-than.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/greater-than.ts"],"names":[],"mappings":";;;AA0BA,
|
|
1
|
+
{"version":3,"file":"greater-than.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/greater-than.ts"],"names":[],"mappings":";;;AA0BA,gDAIC;AA9BD,+CAA0D;AAG1D,2CAA8C;AAOjC,QAAA,SAAS,GAAG;IACvB;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAuB;QAC1B,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;CACF,CAAC;AAEF,SAAgB,kBAAkB,CAChC,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAC1B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { ComparableOperand } from "./operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type InInput = [ComparableOperand, "IN", ComparableOperand[]];
|
|
6
6
|
export type In = ExpressionFormatter & Brand<"In">;
|
|
7
7
|
export declare const In: {
|
|
8
8
|
/**
|
|
@@ -10,13 +10,13 @@ export declare const In: {
|
|
|
10
10
|
*
|
|
11
11
|
* This function throws if the list of elements to compared against is empty or exceeds 100 elements.
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
13
|
+
* @param input - The parameters of the `IN` comparison. The first element contains the left-hand side operand,
|
|
14
14
|
* the third element contains the list of elements to compare against.
|
|
15
15
|
*
|
|
16
16
|
* @returns An {@link In} that evaluates to true if this operand is equal to any of the provided ones.
|
|
17
17
|
*
|
|
18
18
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
19
19
|
*/
|
|
20
|
-
from(
|
|
20
|
+
from(input: InInput): In;
|
|
21
21
|
};
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function isInInput(value: ConditionComparisonInput): value is InInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.In = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isInInput = isInInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const expression_js_1 = require("../../expression.js");
|
|
7
7
|
const operand_js_1 = require("../operand.js");
|
|
@@ -11,23 +11,23 @@ exports.In = {
|
|
|
11
11
|
*
|
|
12
12
|
* This function throws if the list of elements to compared against is empty or exceeds 100 elements.
|
|
13
13
|
*
|
|
14
|
-
* @param
|
|
14
|
+
* @param input - The parameters of the `IN` comparison. The first element contains the left-hand side operand,
|
|
15
15
|
* the third element contains the list of elements to compare against.
|
|
16
16
|
*
|
|
17
17
|
* @returns An {@link In} that evaluates to true if this operand is equal to any of the provided ones.
|
|
18
18
|
*
|
|
19
19
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
20
20
|
*/
|
|
21
|
-
from(
|
|
21
|
+
from(input) {
|
|
22
22
|
// TODO: unit test those limits
|
|
23
|
-
if (
|
|
23
|
+
if (input[2].length === 0) {
|
|
24
24
|
throw new Error("the IN operator requires at least one operand.");
|
|
25
25
|
}
|
|
26
|
-
if (
|
|
27
|
-
throw new Error(`up to 100 operands are support for the IN operator, got ${
|
|
26
|
+
if (input[2].length > 100) {
|
|
27
|
+
throw new Error(`up to 100 operands are support for the IN operator, got ${input[2].length}`);
|
|
28
28
|
}
|
|
29
|
-
const element = operand_js_1.ConditionOperand.normalize(
|
|
30
|
-
const elements =
|
|
29
|
+
const element = operand_js_1.ConditionOperand.normalize(input[0]);
|
|
30
|
+
const elements = input[2].map((operand_js_1.ConditionOperand.normalize));
|
|
31
31
|
return (0, types_1.trusted)(expression_js_1.ExpressionFormatter.from(({ names, values }) => {
|
|
32
32
|
const elementsString = elements
|
|
33
33
|
.map((operand) => operand.substitute({ names, values }))
|
|
@@ -36,7 +36,7 @@ exports.In = {
|
|
|
36
36
|
}));
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
|
-
function
|
|
39
|
+
function isInInput(value) {
|
|
40
40
|
return value[1] === "IN";
|
|
41
41
|
}
|
|
42
42
|
//# sourceMappingURL=in.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/in.ts"],"names":[],"mappings":";;;AAgDA,
|
|
1
|
+
{"version":3,"file":"in.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/in.ts"],"names":[],"mappings":";;;AAgDA,8BAEC;AAlDD,+CAA0D;AAC1D,uDAA0D;AAG1D,8CAAiD;AAOpC,QAAA,EAAE,GAAG;IAChB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAc;QACjB,+BAA+B;QAC/B,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACpE,CAAC;QACD,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CACb,2DAA2D,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAC7E,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,6BAAgB,CAAC,SAAS,CAAkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACtE,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA,6BAAgB,CAAC,SAA0B,CAAA,CAAC,CAAC;QAC3E,OAAO,IAAA,eAAO,EACZ,mCAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;YAC7C,MAAM,cAAc,GAAG,QAAQ;iBAC5B,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAE,OAAmB,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;iBACpE,IAAI,CAAC,GAAG,CAAC,CAAC;YACb,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,QAAQ,cAAc,GAAG,CAAC;QAC3E,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,SAAgB,SAAS,CAAC,KAA+B;IACvD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import type { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { ComparableOperand } from "./operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type LowerThanOrEqualsInput = [
|
|
6
6
|
ComparableOperand,
|
|
7
7
|
"<=",
|
|
8
8
|
ComparableOperand
|
|
@@ -12,13 +12,13 @@ export declare const LowerThanOrEquals: {
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns a condition that uses the `<=` operator.
|
|
14
14
|
*
|
|
15
|
-
* @param
|
|
15
|
+
* @param input - The parameters of the `<=` comparison. The first element contains the left-hand side operand,
|
|
16
16
|
* the third element contains the right-hand side operand.
|
|
17
17
|
*
|
|
18
18
|
* @returns A {@link LowerThanOrEquals} that evaluates to true if this operand is lower than or equal to the provided one.
|
|
19
19
|
*
|
|
20
20
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
21
21
|
*/
|
|
22
|
-
from(
|
|
22
|
+
from(input: LowerThanOrEqualsInput): LowerThanOrEquals;
|
|
23
23
|
};
|
|
24
|
-
export declare function
|
|
24
|
+
export declare function isLowerThanOrEqualsInput(value: ConditionComparisonInput): value is LowerThanOrEqualsInput;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LowerThanOrEquals = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isLowerThanOrEqualsInput = isLowerThanOrEqualsInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const binary_js_1 = require("./binary.js");
|
|
7
7
|
exports.LowerThanOrEquals = {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `<=` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `<=` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link LowerThanOrEquals} that evaluates to true if this operand is lower than or equal to the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
19
|
-
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(
|
|
18
|
+
from(input) {
|
|
19
|
+
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function isLowerThanOrEqualsInput(value) {
|
|
23
23
|
return value[1] === "<=";
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=lower-than-or-equals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lower-than-or-equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/lower-than-or-equals.ts"],"names":[],"mappings":";;;AA+BA,
|
|
1
|
+
{"version":3,"file":"lower-than-or-equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/lower-than-or-equals.ts"],"names":[],"mappings":";;;AA+BA,4DAIC;AAnCD,+CAA0D;AAG1D,2CAA8C;AAYjC,QAAA,iBAAiB,GAAG;IAC/B;;;;;;;;;OASG;IACH,IAAI,CAAC,KAA6B;QAChC,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;CACF,CAAC;AAEF,SAAgB,wBAAwB,CACtC,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import type { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { ComparableOperand } from "./operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type LowerThanInput = [ComparableOperand, "<", ComparableOperand];
|
|
6
6
|
export type LowerThan = ExpressionFormatter & Brand<"LowerThan">;
|
|
7
7
|
export declare const LowerThan: {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `<` operator
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `<` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link LowerThan} that evaluates to true if this operand is lower than the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
18
|
+
from(input: LowerThanInput): LowerThan;
|
|
19
19
|
};
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function isLowerThanInput(value: ConditionComparisonInput): value is LowerThanInput;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LowerThan = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isLowerThanInput = isLowerThanInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const binary_js_1 = require("./binary.js");
|
|
7
7
|
exports.LowerThan = {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `<` operator
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `<` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link LowerThan} that evaluates to true if this operand is lower than the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
19
|
-
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(
|
|
18
|
+
from(input) {
|
|
19
|
+
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function isLowerThanInput(value) {
|
|
23
23
|
return value[1] === "<";
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=lower-than.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lower-than.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/lower-than.ts"],"names":[],"mappings":";;;AA0BA,
|
|
1
|
+
{"version":3,"file":"lower-than.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/lower-than.ts"],"names":[],"mappings":";;;AA0BA,4CAIC;AA9BD,+CAA0D;AAG1D,2CAA8C;AAOjC,QAAA,SAAS,GAAG;IACvB;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAqB;QACxB,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;CACF,CAAC;AAEF,SAAgB,gBAAgB,CAC9B,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAC1B,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { type Brand } from "@infra-blocks/types";
|
|
2
2
|
import type { ExpressionFormatter } from "../../expression.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConditionComparisonInput } from "../condition-comparison.js";
|
|
4
4
|
import type { RawConditionOperand } from "../operand.js";
|
|
5
|
-
export type
|
|
5
|
+
export type NotEqualsInput = [RawConditionOperand, "<>", RawConditionOperand];
|
|
6
6
|
export type NotEquals = ExpressionFormatter & Brand<"NotEquals">;
|
|
7
7
|
export declare const NotEquals: {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `<>` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `<>` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link NotEquals} that evaluates to true if this operand is not equal to the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
18
|
+
from(input: NotEqualsInput): NotEquals;
|
|
19
19
|
};
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function isNotEqualsInput(value: ConditionComparisonInput): value is NotEqualsInput;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotEquals = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isNotEqualsInput = isNotEqualsInput;
|
|
5
5
|
const types_1 = require("@infra-blocks/types");
|
|
6
6
|
const binary_js_1 = require("./binary.js");
|
|
7
7
|
exports.NotEquals = {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a condition that uses the `<>` operator.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param input - The parameters of the `<>` comparison. The first element contains the left-hand side operand,
|
|
12
12
|
* the third element contains the right-hand side operand.
|
|
13
13
|
*
|
|
14
14
|
* @returns A {@link NotEquals} that evaluates to true if this operand is not equal to the provided one.
|
|
15
15
|
*
|
|
16
16
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html#Expressions.OperatorsAndFunctions.Comparators
|
|
17
17
|
*/
|
|
18
|
-
from(
|
|
19
|
-
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(
|
|
18
|
+
from(input) {
|
|
19
|
+
return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function isNotEqualsInput(value) {
|
|
23
23
|
return value[1] === "<>";
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=not-equals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not-equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/not-equals.ts"],"names":[],"mappings":";;;AA0BA,
|
|
1
|
+
{"version":3,"file":"not-equals.js","sourceRoot":"","sources":["../../../../../../src/commands/expressions/condition/comparisons/not-equals.ts"],"names":[],"mappings":";;;AA0BA,4CAIC;AA9BD,+CAA0D;AAI1D,2CAA8C;AAMjC,QAAA,SAAS,GAAG;IACvB;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAqB;QACxB,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAC,KAAK,CAAC,CAAC,CAAC;IACzC,CAAC;CACF,CAAC;AAEF,SAAgB,gBAAgB,CAC9B,KAA+B;IAE/B,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Between, type
|
|
2
|
-
import { Equals, type
|
|
3
|
-
import { type GreaterThan, type
|
|
4
|
-
import { GreaterThanOrEquals, type
|
|
5
|
-
import { In, type
|
|
6
|
-
import { LowerThan, type
|
|
7
|
-
import { LowerThanOrEquals, type
|
|
8
|
-
import { NotEquals, type
|
|
9
|
-
import type {
|
|
10
|
-
export type
|
|
1
|
+
import { Between, type BetweenInput } from "./comparisons/between.js";
|
|
2
|
+
import { Equals, type EqualsInput } from "./comparisons/equals.js";
|
|
3
|
+
import { type GreaterThan, type GreaterThanInput } from "./comparisons/greater-than.js";
|
|
4
|
+
import { GreaterThanOrEquals, type GreaterThanOrEqualsInput } from "./comparisons/greater-than-or-equals.js";
|
|
5
|
+
import { In, type InInput } from "./comparisons/in.js";
|
|
6
|
+
import { LowerThan, type LowerThanInput } from "./comparisons/lower-than.js";
|
|
7
|
+
import { LowerThanOrEquals, type LowerThanOrEqualsInput } from "./comparisons/lower-than-or-equals.js";
|
|
8
|
+
import { NotEquals, type NotEqualsInput } from "./comparisons/not-equals.js";
|
|
9
|
+
import type { ConditionInput } from "./condition.js";
|
|
10
|
+
export type ConditionComparisonInput = BetweenInput | EqualsInput | GreaterThanInput | GreaterThanOrEqualsInput | InInput | LowerThanInput | LowerThanOrEqualsInput | NotEqualsInput;
|
|
11
11
|
export type ConditionComparison = Between | Equals | GreaterThan | GreaterThanOrEquals | In | LowerThan | LowerThanOrEquals | NotEquals;
|
|
12
12
|
export declare const ConditionComparison: {
|
|
13
|
-
from(
|
|
13
|
+
from(input: ConditionComparisonInput): ConditionComparison;
|
|
14
14
|
};
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function isConditionComparisonInput(input: ConditionInput): input is ConditionComparisonInput;
|