@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.
Files changed (102) hide show
  1. package/lib/cjs/commands/expressions/condition/comparisons/between.d.ts +5 -5
  2. package/lib/cjs/commands/expressions/condition/comparisons/between.js +7 -7
  3. package/lib/cjs/commands/expressions/condition/comparisons/between.js.map +1 -1
  4. package/lib/cjs/commands/expressions/condition/comparisons/equals.d.ts +5 -5
  5. package/lib/cjs/commands/expressions/condition/comparisons/equals.js +5 -5
  6. package/lib/cjs/commands/expressions/condition/comparisons/equals.js.map +1 -1
  7. package/lib/cjs/commands/expressions/condition/comparisons/greater-than-or-equals.d.ts +5 -5
  8. package/lib/cjs/commands/expressions/condition/comparisons/greater-than-or-equals.js +5 -5
  9. package/lib/cjs/commands/expressions/condition/comparisons/greater-than-or-equals.js.map +1 -1
  10. package/lib/cjs/commands/expressions/condition/comparisons/greater-than.d.ts +5 -5
  11. package/lib/cjs/commands/expressions/condition/comparisons/greater-than.js +5 -5
  12. package/lib/cjs/commands/expressions/condition/comparisons/greater-than.js.map +1 -1
  13. package/lib/cjs/commands/expressions/condition/comparisons/in.d.ts +5 -5
  14. package/lib/cjs/commands/expressions/condition/comparisons/in.js +9 -9
  15. package/lib/cjs/commands/expressions/condition/comparisons/in.js.map +1 -1
  16. package/lib/cjs/commands/expressions/condition/comparisons/lower-than-or-equals.d.ts +5 -5
  17. package/lib/cjs/commands/expressions/condition/comparisons/lower-than-or-equals.js +5 -5
  18. package/lib/cjs/commands/expressions/condition/comparisons/lower-than-or-equals.js.map +1 -1
  19. package/lib/cjs/commands/expressions/condition/comparisons/lower-than.d.ts +5 -5
  20. package/lib/cjs/commands/expressions/condition/comparisons/lower-than.js +5 -5
  21. package/lib/cjs/commands/expressions/condition/comparisons/lower-than.js.map +1 -1
  22. package/lib/cjs/commands/expressions/condition/comparisons/not-equals.d.ts +5 -5
  23. package/lib/cjs/commands/expressions/condition/comparisons/not-equals.js +5 -5
  24. package/lib/cjs/commands/expressions/condition/comparisons/not-equals.js.map +1 -1
  25. package/lib/cjs/commands/expressions/condition/condition-comparison.d.ts +12 -12
  26. package/lib/cjs/commands/expressions/condition/condition-comparison.js +29 -29
  27. package/lib/cjs/commands/expressions/condition/condition-comparison.js.map +1 -1
  28. package/lib/cjs/commands/expressions/condition/condition.d.ts +3 -3
  29. package/lib/cjs/commands/expressions/condition/condition.js +4 -4
  30. package/lib/cjs/commands/expressions/condition/condition.js.map +1 -1
  31. package/lib/cjs/commands/expressions/condition/index.d.ts +2 -2
  32. package/lib/cjs/commands/expressions/condition/logic.d.ts +4 -4
  33. package/lib/cjs/commands/expressions/condition/logic.js.map +1 -1
  34. package/lib/cjs/commands/expressions/key-condition.d.ts +2 -2
  35. package/lib/cjs/commands/expressions/projection.d.ts +5 -5
  36. package/lib/cjs/commands/expressions/projection.js +7 -8
  37. package/lib/cjs/commands/expressions/projection.js.map +1 -1
  38. package/lib/cjs/commands/expressions/update/expression.d.ts +2 -2
  39. package/lib/cjs/commands/expressions/update/expression.js.map +1 -1
  40. package/lib/cjs/commands/index.d.ts +1 -1
  41. package/lib/cjs/commands/inputs/condition-check.d.ts +2 -2
  42. package/lib/cjs/commands/inputs/condition-check.js.map +1 -1
  43. package/lib/cjs/commands/inputs/delete-item.d.ts +2 -2
  44. package/lib/cjs/commands/inputs/delete-item.js.map +1 -1
  45. package/lib/cjs/commands/inputs/get-item.d.ts +2 -2
  46. package/lib/cjs/commands/inputs/get-item.js.map +1 -1
  47. package/lib/cjs/commands/inputs/put-item.d.ts +2 -2
  48. package/lib/cjs/commands/inputs/put-item.js.map +1 -1
  49. package/lib/cjs/commands/inputs/query.d.ts +3 -3
  50. package/lib/cjs/commands/inputs/update-item.d.ts +3 -3
  51. package/lib/esm/commands/expressions/condition/comparisons/between.d.ts +5 -5
  52. package/lib/esm/commands/expressions/condition/comparisons/between.js +6 -6
  53. package/lib/esm/commands/expressions/condition/comparisons/between.js.map +1 -1
  54. package/lib/esm/commands/expressions/condition/comparisons/equals.d.ts +5 -5
  55. package/lib/esm/commands/expressions/condition/comparisons/equals.js +4 -4
  56. package/lib/esm/commands/expressions/condition/comparisons/equals.js.map +1 -1
  57. package/lib/esm/commands/expressions/condition/comparisons/greater-than-or-equals.d.ts +5 -5
  58. package/lib/esm/commands/expressions/condition/comparisons/greater-than-or-equals.js +4 -4
  59. package/lib/esm/commands/expressions/condition/comparisons/greater-than-or-equals.js.map +1 -1
  60. package/lib/esm/commands/expressions/condition/comparisons/greater-than.d.ts +5 -5
  61. package/lib/esm/commands/expressions/condition/comparisons/greater-than.js +4 -4
  62. package/lib/esm/commands/expressions/condition/comparisons/greater-than.js.map +1 -1
  63. package/lib/esm/commands/expressions/condition/comparisons/in.d.ts +5 -5
  64. package/lib/esm/commands/expressions/condition/comparisons/in.js +8 -8
  65. package/lib/esm/commands/expressions/condition/comparisons/in.js.map +1 -1
  66. package/lib/esm/commands/expressions/condition/comparisons/lower-than-or-equals.d.ts +5 -5
  67. package/lib/esm/commands/expressions/condition/comparisons/lower-than-or-equals.js +4 -4
  68. package/lib/esm/commands/expressions/condition/comparisons/lower-than-or-equals.js.map +1 -1
  69. package/lib/esm/commands/expressions/condition/comparisons/lower-than.d.ts +5 -5
  70. package/lib/esm/commands/expressions/condition/comparisons/lower-than.js +4 -4
  71. package/lib/esm/commands/expressions/condition/comparisons/lower-than.js.map +1 -1
  72. package/lib/esm/commands/expressions/condition/comparisons/not-equals.d.ts +5 -5
  73. package/lib/esm/commands/expressions/condition/comparisons/not-equals.js +4 -4
  74. package/lib/esm/commands/expressions/condition/comparisons/not-equals.js.map +1 -1
  75. package/lib/esm/commands/expressions/condition/condition-comparison.d.ts +12 -12
  76. package/lib/esm/commands/expressions/condition/condition-comparison.js +36 -36
  77. package/lib/esm/commands/expressions/condition/condition-comparison.js.map +1 -1
  78. package/lib/esm/commands/expressions/condition/condition.d.ts +3 -3
  79. package/lib/esm/commands/expressions/condition/condition.js +5 -5
  80. package/lib/esm/commands/expressions/condition/condition.js.map +1 -1
  81. package/lib/esm/commands/expressions/condition/index.d.ts +2 -2
  82. package/lib/esm/commands/expressions/condition/logic.d.ts +4 -4
  83. package/lib/esm/commands/expressions/condition/logic.js.map +1 -1
  84. package/lib/esm/commands/expressions/key-condition.d.ts +2 -2
  85. package/lib/esm/commands/expressions/projection.d.ts +5 -5
  86. package/lib/esm/commands/expressions/projection.js +7 -8
  87. package/lib/esm/commands/expressions/projection.js.map +1 -1
  88. package/lib/esm/commands/expressions/update/expression.d.ts +2 -2
  89. package/lib/esm/commands/expressions/update/expression.js.map +1 -1
  90. package/lib/esm/commands/index.d.ts +1 -1
  91. package/lib/esm/commands/inputs/condition-check.d.ts +2 -2
  92. package/lib/esm/commands/inputs/condition-check.js.map +1 -1
  93. package/lib/esm/commands/inputs/delete-item.d.ts +2 -2
  94. package/lib/esm/commands/inputs/delete-item.js.map +1 -1
  95. package/lib/esm/commands/inputs/get-item.d.ts +2 -2
  96. package/lib/esm/commands/inputs/get-item.js +1 -1
  97. package/lib/esm/commands/inputs/get-item.js.map +1 -1
  98. package/lib/esm/commands/inputs/put-item.d.ts +2 -2
  99. package/lib/esm/commands/inputs/put-item.js.map +1 -1
  100. package/lib/esm/commands/inputs/query.d.ts +3 -3
  101. package/lib/esm/commands/inputs/update-item.d.ts +3 -3
  102. 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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { ComparableOperand } from "./operand.js";
5
- export type BetweenParams = [
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 isBetweenParams(value: ConditionComparisonParams): value is BetweenParams;
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 params - The parameters of the `BETWEEN` comparison. The first element contains the left-hand side operand,
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(params: BetweenParams): Between;
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.isBetweenParams = isBetweenParams;
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 isBetweenParams(value) {
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 params - The parameters of the `BETWEEN` comparison. The first element contains the left-hand side operand,
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(params) {
25
- const lhs = operand_js_1.ConditionOperand.normalize(params[0]);
26
- const lower = operand_js_1.ConditionOperand.normalize(params[2]);
27
- const upper = operand_js_1.ConditionOperand.normalize(params[4]);
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,0CAIC;AAlBD,+CAA0D;AAC1D,uDAA0D;AAE1D,8CAAiD;AAWjD,SAAgB,eAAe,CAC7B,KAAgC;IAEhC,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,MAAqB;QACxB,MAAM,GAAG,GAAG,6BAAgB,CAAC,SAAS,CAAkB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,KAAK,GAAG,6BAAgB,CAAC,SAAS,CAAkB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,MAAM,KAAK,GAAG,6BAAgB,CAAC,SAAS,CAAkB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAErE,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
+ {"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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { RawConditionOperand } from "../operand.js";
5
- export type EqualsParams = [RawConditionOperand, "=", RawConditionOperand];
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 params - The parameters of the `=` comparison. The first element contains the left-hand side operand,
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(params: EqualsParams): Equals;
18
+ from(input: EqualsInput): Equals;
19
19
  };
20
- export declare function isEqualsParams(value: ConditionComparisonParams): value is EqualsParams;
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.isEqualsParams = isEqualsParams;
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 params - The parameters of the `=` comparison. The first element contains the left-hand side operand,
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(params) {
19
- return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(params));
18
+ from(input) {
19
+ return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
20
20
  },
21
21
  };
22
- function isEqualsParams(value) {
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,wCAIC;AA9BD,+CAA0D;AAI1D,2CAA8C;AAMjC,QAAA,MAAM,GAAG;IACpB;;;;;;;;;OASG;IACH,IAAI,CAAC,MAAoB;QACvB,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC;AAEF,SAAgB,cAAc,CAC5B,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAC1B,CAAC"}
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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { ComparableOperand } from "./operand.js";
5
- export type GreaterThanOrEqualsParams = [
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 params - The parameters of the `>=` comparison. The first element contains the left-hand side operand,
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(params: GreaterThanOrEqualsParams): GreaterThanOrEquals;
22
+ from(input: GreaterThanOrEqualsInput): GreaterThanOrEquals;
23
23
  };
24
- export declare function isGreaterThanOrEqualsParams(value: ConditionComparisonParams): value is GreaterThanOrEqualsParams;
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.isGreaterThanOrEqualsParams = isGreaterThanOrEqualsParams;
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 params - The parameters of the `>=` comparison. The first element contains the left-hand side operand,
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(params) {
19
- return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(params));
18
+ from(input) {
19
+ return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
20
20
  },
21
21
  };
22
- function isGreaterThanOrEqualsParams(value) {
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,kEAIC;AAnCD,+CAA0D;AAG1D,2CAA8C;AAYjC,QAAA,mBAAmB,GAAG;IACjC;;;;;;;;;OASG;IACH,IAAI,CAAC,MAAiC;QACpC,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,MAAM,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF,CAAC;AAEF,SAAgB,2BAA2B,CACzC,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { ComparableOperand } from "./operand.js";
5
- export type GreaterThanParams = [ComparableOperand, ">", ComparableOperand];
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 params - The parameters of the `>` comparison. The first element contains the left-hand side operand,
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(params: GreaterThanParams): GreaterThan;
18
+ from(input: GreaterThanInput): GreaterThan;
19
19
  };
20
- export declare function isGreaterThanParams(value: ConditionComparisonParams): value is GreaterThanParams;
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.isGreaterThanParams = isGreaterThanParams;
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 params - The parameters of the `>` comparison. The first element contains the left-hand side operand,
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(params) {
19
- return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(params));
18
+ from(input) {
19
+ return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
20
20
  },
21
21
  };
22
- function isGreaterThanParams(value) {
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,kDAIC;AA9BD,+CAA0D;AAG1D,2CAA8C;AAOjC,QAAA,SAAS,GAAG;IACvB;;;;;;;;;OASG;IACH,IAAI,CAAC,MAAyB;QAC5B,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,MAAM,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF,CAAC;AAEF,SAAgB,mBAAmB,CACjC,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAC1B,CAAC"}
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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { ComparableOperand } from "./operand.js";
5
- export type InParams = [ComparableOperand, "IN", ComparableOperand[]];
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 params - The parameters of the `IN` comparison. The first element contains the left-hand side operand,
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(params: InParams): In;
20
+ from(input: InInput): In;
21
21
  };
22
- export declare function isInParams(value: ConditionComparisonParams): value is InParams;
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.isInParams = isInParams;
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 params - The parameters of the `IN` comparison. The first element contains the left-hand side operand,
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(params) {
21
+ from(input) {
22
22
  // TODO: unit test those limits
23
- if (params[2].length === 0) {
23
+ if (input[2].length === 0) {
24
24
  throw new Error("the IN operator requires at least one operand.");
25
25
  }
26
- if (params[2].length > 100) {
27
- throw new Error(`up to 100 operands are support for the IN operator, got ${params[2].length}`);
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(params[0]);
30
- const elements = params[2].map((operand_js_1.ConditionOperand.normalize));
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 isInParams(value) {
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,gCAIC;AApDD,+CAA0D;AAC1D,uDAA0D;AAG1D,8CAAiD;AAOpC,QAAA,EAAE,GAAG;IAChB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAgB;QACnB,+BAA+B;QAC/B,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACpE,CAAC;QACD,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,2DAA2D,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAC9E,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,6BAAgB,CAAC,SAAS,CAAkB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA,6BAAgB,CAAC,SAA0B,CAAA,CAAC,CAAC;QAC5E,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,UAAU,CACxB,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { ComparableOperand } from "./operand.js";
5
- export type LowerThanOrEqualsParams = [
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 params - The parameters of the `<=` comparison. The first element contains the left-hand side operand,
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(params: LowerThanOrEqualsParams): LowerThanOrEquals;
22
+ from(input: LowerThanOrEqualsInput): LowerThanOrEquals;
23
23
  };
24
- export declare function isLowerThanOrEqualsParams(value: ConditionComparisonParams): value is LowerThanOrEqualsParams;
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.isLowerThanOrEqualsParams = isLowerThanOrEqualsParams;
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 params - The parameters of the `<=` comparison. The first element contains the left-hand side operand,
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(params) {
19
- return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(params));
18
+ from(input) {
19
+ return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
20
20
  },
21
21
  };
22
- function isLowerThanOrEqualsParams(value) {
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,8DAIC;AAnCD,+CAA0D;AAG1D,2CAA8C;AAYjC,QAAA,iBAAiB,GAAG;IAC/B;;;;;;;;;OASG;IACH,IAAI,CAAC,MAA+B;QAClC,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,MAAM,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF,CAAC;AAEF,SAAgB,yBAAyB,CACvC,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { ComparableOperand } from "./operand.js";
5
- export type LowerThanParams = [ComparableOperand, "<", ComparableOperand];
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 params - The parameters of the `<` comparison. The first element contains the left-hand side operand,
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(params: LowerThanParams): LowerThan;
18
+ from(input: LowerThanInput): LowerThan;
19
19
  };
20
- export declare function isLowerThanParams(value: ConditionComparisonParams): value is LowerThanParams;
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.isLowerThanParams = isLowerThanParams;
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 params - The parameters of the `<` comparison. The first element contains the left-hand side operand,
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(params) {
19
- return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(params));
18
+ from(input) {
19
+ return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
20
20
  },
21
21
  };
22
- function isLowerThanParams(value) {
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,8CAIC;AA9BD,+CAA0D;AAG1D,2CAA8C;AAOjC,QAAA,SAAS,GAAG;IACvB;;;;;;;;;OASG;IACH,IAAI,CAAC,MAAuB;QAC1B,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAkB,MAAM,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAC1B,CAAC"}
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 { ConditionComparisonParams } from "../condition-comparison.js";
3
+ import type { ConditionComparisonInput } from "../condition-comparison.js";
4
4
  import type { RawConditionOperand } from "../operand.js";
5
- export type NotEqualsParams = [RawConditionOperand, "<>", RawConditionOperand];
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 params - The parameters of the `<>` comparison. The first element contains the left-hand side operand,
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(params: NotEqualsParams): NotEquals;
18
+ from(input: NotEqualsInput): NotEquals;
19
19
  };
20
- export declare function isNotEqualsParams(value: ConditionComparisonParams): value is NotEqualsParams;
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.isNotEqualsParams = isNotEqualsParams;
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 params - The parameters of the `<>` comparison. The first element contains the left-hand side operand,
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(params) {
19
- return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(params));
18
+ from(input) {
19
+ return (0, types_1.trusted)((0, binary_js_1.binaryOperation)(input));
20
20
  },
21
21
  };
22
- function isNotEqualsParams(value) {
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,8CAIC;AA9BD,+CAA0D;AAI1D,2CAA8C;AAMjC,QAAA,SAAS,GAAG;IACvB;;;;;;;;;OASG;IACH,IAAI,CAAC,MAAuB;QAC1B,OAAO,IAAA,eAAO,EAAC,IAAA,2BAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,KAAgC;IAEhC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC3B,CAAC"}
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 BetweenParams } from "./comparisons/between.js";
2
- import { Equals, type EqualsParams } from "./comparisons/equals.js";
3
- import { type GreaterThan, type GreaterThanParams } from "./comparisons/greater-than.js";
4
- import { GreaterThanOrEquals, type GreaterThanOrEqualsParams } from "./comparisons/greater-than-or-equals.js";
5
- import { In, type InParams } from "./comparisons/in.js";
6
- import { LowerThan, type LowerThanParams } from "./comparisons/lower-than.js";
7
- import { LowerThanOrEquals, type LowerThanOrEqualsParams } from "./comparisons/lower-than-or-equals.js";
8
- import { NotEquals, type NotEqualsParams } from "./comparisons/not-equals.js";
9
- import type { ConditionParams } from "./condition.js";
10
- export type ConditionComparisonParams = BetweenParams | EqualsParams | GreaterThanParams | GreaterThanOrEqualsParams | InParams | LowerThanParams | LowerThanOrEqualsParams | NotEqualsParams;
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(params: ConditionComparisonParams): ConditionComparison;
13
+ from(input: ConditionComparisonInput): ConditionComparison;
14
14
  };
15
- export declare function isConditionComparisonParams(params: ConditionParams): params is ConditionComparisonParams;
15
+ export declare function isConditionComparisonInput(input: ConditionInput): input is ConditionComparisonInput;