@infra-blocks/aws-dynamodb 0.19.0 → 0.20.0-alpha.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/attributes/values.d.ts +13 -5
- package/lib/cjs/commands/attributes/values.js +13 -5
- package/lib/cjs/commands/attributes/values.js.map +1 -1
- package/lib/cjs/commands/expressions/condition.d.ts +1 -1
- package/lib/cjs/commands/expressions/condition.js +2 -2
- package/lib/cjs/commands/expressions/condition.js.map +1 -1
- package/lib/cjs/commands/expressions/index.d.ts +1 -1
- package/lib/cjs/commands/expressions/index.js +1 -1
- package/lib/cjs/commands/expressions/index.js.map +1 -1
- package/lib/cjs/commands/expressions/operands/index.d.ts +3 -0
- package/lib/cjs/commands/expressions/operands/index.js +20 -0
- package/lib/cjs/commands/expressions/operands/index.js.map +1 -0
- package/lib/cjs/commands/expressions/operands/name.d.ts +27 -0
- package/lib/cjs/commands/expressions/operands/name.js +33 -0
- package/lib/cjs/commands/expressions/operands/name.js.map +1 -0
- package/lib/cjs/commands/expressions/operands/type.d.ts +12 -0
- package/lib/cjs/commands/expressions/operands/type.js +3 -0
- package/lib/cjs/commands/expressions/operands/type.js.map +1 -0
- package/lib/cjs/commands/expressions/operands/value.d.ts +27 -0
- package/lib/cjs/commands/expressions/operands/value.js +33 -0
- package/lib/cjs/commands/expressions/operands/value.js.map +1 -0
- package/lib/cjs/commands/expressions/update.d.ts +35 -13
- package/lib/cjs/commands/expressions/update.js +54 -16
- package/lib/cjs/commands/expressions/update.js.map +1 -1
- package/lib/cjs/types.d.ts +11 -1
- package/lib/esm/commands/attributes/values.d.ts +13 -5
- package/lib/esm/commands/attributes/values.js +13 -5
- package/lib/esm/commands/attributes/values.js.map +1 -1
- package/lib/esm/commands/expressions/condition.d.ts +1 -1
- package/lib/esm/commands/expressions/condition.js +1 -1
- package/lib/esm/commands/expressions/condition.js.map +1 -1
- package/lib/esm/commands/expressions/index.d.ts +1 -1
- package/lib/esm/commands/expressions/index.js +1 -1
- package/lib/esm/commands/expressions/index.js.map +1 -1
- package/lib/esm/commands/expressions/operands/index.d.ts +3 -0
- package/lib/esm/commands/expressions/operands/index.js +4 -0
- package/lib/esm/commands/expressions/operands/index.js.map +1 -0
- package/lib/esm/commands/expressions/operands/name.d.ts +27 -0
- package/lib/esm/commands/expressions/operands/name.js +28 -0
- package/lib/esm/commands/expressions/operands/name.js.map +1 -0
- package/lib/esm/commands/expressions/operands/type.d.ts +12 -0
- package/lib/esm/commands/expressions/operands/type.js +2 -0
- package/lib/esm/commands/expressions/operands/type.js.map +1 -0
- package/lib/esm/commands/expressions/operands/value.d.ts +27 -0
- package/lib/esm/commands/expressions/operands/value.js +28 -0
- package/lib/esm/commands/expressions/operands/value.js.map +1 -0
- package/lib/esm/commands/expressions/update.d.ts +35 -13
- package/lib/esm/commands/expressions/update.js +48 -12
- package/lib/esm/commands/expressions/update.js.map +1 -1
- package/lib/esm/types.d.ts +11 -1
- package/package.json +1 -1
- package/lib/cjs/commands/expressions/operands.d.ts +0 -28
- package/lib/cjs/commands/expressions/operands.js +0 -34
- package/lib/cjs/commands/expressions/operands.js.map +0 -1
- package/lib/esm/commands/expressions/operands.d.ts +0 -28
- package/lib/esm/commands/expressions/operands.js +0 -27
- package/lib/esm/commands/expressions/operands.js.map +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AttributeOperand = exports.ValueOperand = void 0;
|
|
4
|
-
exports.value = value;
|
|
5
|
-
exports.attribute = attribute;
|
|
6
|
-
class ValueOperand {
|
|
7
|
-
value;
|
|
8
|
-
constructor(value) {
|
|
9
|
-
this.value = value;
|
|
10
|
-
}
|
|
11
|
-
substitute(params) {
|
|
12
|
-
const { values } = params;
|
|
13
|
-
return values.substitute(this.value).toString();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ValueOperand = ValueOperand;
|
|
17
|
-
function value(value) {
|
|
18
|
-
return new ValueOperand(value);
|
|
19
|
-
}
|
|
20
|
-
class AttributeOperand {
|
|
21
|
-
path;
|
|
22
|
-
constructor(path) {
|
|
23
|
-
this.path = path;
|
|
24
|
-
}
|
|
25
|
-
substitute(params) {
|
|
26
|
-
const { names } = params;
|
|
27
|
-
return names.substitute(this.path);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.AttributeOperand = AttributeOperand;
|
|
31
|
-
function attribute(path) {
|
|
32
|
-
return new AttributeOperand(path);
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=operands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operands.js","sourceRoot":"","sources":["../../../../src/commands/expressions/operands.ts"],"names":[],"mappings":";;;AAgCA,sBAIC;AAkBD,8BAEC;AAxCD,MAAa,YAAY;IACN,KAAK,CAAI;IAE1B,YAAY,KAAQ;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,UAAU,CAAC,MAGV;QACC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;IAClD,CAAC;CACF;AAdD,oCAcC;AAED,SAAgB,KAAK,CACnB,KAAqB;IAErB,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,MAAa,gBAAgB;IACV,IAAI,CAAgB;IAErC,YAAY,IAAmB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,UAAU,CAAC,MAGV;QACC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACzB,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAdD,4CAcC;AAED,SAAgB,SAAS,CAAC,IAAmB;IAC3C,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { AttributePath, AttributeValue } from "../../types.js";
|
|
2
|
-
import type { AttributeNames } from "../attributes/names.js";
|
|
3
|
-
import type { AttributeValues } from "../attributes/values.js";
|
|
4
|
-
export type Operand<T extends AttributeValue = AttributeValue> = AttributeOperand | ValueOperand<T>;
|
|
5
|
-
export interface IOperand {
|
|
6
|
-
substitute(params: {
|
|
7
|
-
names: AttributeNames;
|
|
8
|
-
values: AttributeValues;
|
|
9
|
-
}): string;
|
|
10
|
-
}
|
|
11
|
-
export declare class ValueOperand<T extends AttributeValue> implements IOperand {
|
|
12
|
-
private readonly value;
|
|
13
|
-
constructor(value: T);
|
|
14
|
-
substitute(params: {
|
|
15
|
-
names: AttributeNames;
|
|
16
|
-
values: AttributeValues;
|
|
17
|
-
}): string;
|
|
18
|
-
}
|
|
19
|
-
export declare function value<T extends AttributeValue = AttributeValue>(value: AttributeValue): ValueOperand<T>;
|
|
20
|
-
export declare class AttributeOperand implements IOperand {
|
|
21
|
-
private readonly path;
|
|
22
|
-
constructor(path: AttributePath);
|
|
23
|
-
substitute(params: {
|
|
24
|
-
names: AttributeNames;
|
|
25
|
-
values: AttributeValues;
|
|
26
|
-
}): string;
|
|
27
|
-
}
|
|
28
|
-
export declare function attribute(path: AttributePath): AttributeOperand;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export class ValueOperand {
|
|
2
|
-
value;
|
|
3
|
-
constructor(value) {
|
|
4
|
-
this.value = value;
|
|
5
|
-
}
|
|
6
|
-
substitute(params) {
|
|
7
|
-
const { values } = params;
|
|
8
|
-
return values.substitute(this.value).toString();
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export function value(value) {
|
|
12
|
-
return new ValueOperand(value);
|
|
13
|
-
}
|
|
14
|
-
export class AttributeOperand {
|
|
15
|
-
path;
|
|
16
|
-
constructor(path) {
|
|
17
|
-
this.path = path;
|
|
18
|
-
}
|
|
19
|
-
substitute(params) {
|
|
20
|
-
const { names } = params;
|
|
21
|
-
return names.substitute(this.path);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export function attribute(path) {
|
|
25
|
-
return new AttributeOperand(path);
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=operands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operands.js","sourceRoot":"","sources":["../../../../src/commands/expressions/operands.ts"],"names":[],"mappings":"AAgBA,MAAM,OAAO,YAAY;IACN,KAAK,CAAI;IAE1B,YAAY,KAAQ;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,UAAU,CAAC,MAGV;QACC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;IAClD,CAAC;CACF;AAED,MAAM,UAAU,KAAK,CACnB,KAAqB;IAErB,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,OAAO,gBAAgB;IACV,IAAI,CAAgB;IAErC,YAAY,IAAmB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,UAAU,CAAC,MAGV;QACC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACzB,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAED,MAAM,UAAU,SAAS,CAAC,IAAmB;IAC3C,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC"}
|