@infra-blocks/aws-dynamodb 0.60.0 → 0.61.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/client.d.ts +3 -4
- package/lib/cjs/client.js +4 -5
- package/lib/cjs/client.js.map +1 -1
- package/lib/cjs/commands/{command/base.d.ts → base.d.ts} +3 -3
- package/lib/cjs/commands/base.js.map +1 -0
- package/lib/cjs/commands/codec.js.map +1 -0
- package/lib/cjs/commands/{command/command.d.ts → command.d.ts} +2 -1
- package/lib/cjs/commands/command.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/create-table.d.ts +3 -3
- package/lib/cjs/commands/{command/create-table.js → create-table.js} +6 -2
- package/lib/cjs/commands/create-table.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/delete-item.d.ts +3 -3
- package/lib/cjs/commands/{command/delete-item.js → delete-item.js} +6 -2
- package/lib/cjs/commands/delete-item.js.map +1 -0
- package/lib/cjs/commands/{command/delete-table.d.ts → delete-table.d.ts} +2 -2
- package/lib/cjs/commands/{command/delete-table.js → delete-table.js} +6 -2
- package/lib/cjs/commands/delete-table.js.map +1 -0
- package/lib/cjs/commands/expressions/index.js +0 -6
- package/lib/cjs/commands/expressions/index.js.map +1 -1
- package/lib/cjs/commands/{command/get-item.d.ts → get-item.d.ts} +3 -3
- package/lib/cjs/commands/{command/get-item.js → get-item.js} +6 -2
- package/lib/cjs/commands/get-item.js.map +1 -0
- package/lib/cjs/commands/index.d.ts +14 -2
- package/lib/cjs/commands/index.js +20 -1
- package/lib/cjs/commands/index.js.map +1 -1
- package/lib/cjs/commands/inputs/condition-check.d.ts +15 -0
- package/lib/cjs/commands/inputs/condition-check.js +19 -0
- package/lib/cjs/commands/inputs/condition-check.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/inputs/create-table.d.ts +6 -2
- package/lib/cjs/commands/{command/inputs → inputs}/create-table.js +4 -1
- package/lib/cjs/commands/inputs/create-table.js.map +1 -0
- package/lib/cjs/commands/{command/inputs → inputs}/delete-item.d.ts +7 -3
- package/lib/cjs/commands/{command/inputs → inputs}/delete-item.js +4 -1
- package/lib/cjs/commands/inputs/delete-item.js.map +1 -0
- package/lib/cjs/commands/inputs/delete-table.d.ts +9 -0
- package/lib/cjs/commands/{command/inputs → inputs}/delete-table.js +4 -1
- package/lib/cjs/commands/inputs/delete-table.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/inputs/get-item.d.ts +6 -2
- package/lib/cjs/commands/{command/inputs → inputs}/get-item.js +4 -1
- package/lib/cjs/commands/inputs/get-item.js.map +1 -0
- package/lib/cjs/commands/inputs/index.d.ts +10 -0
- package/lib/cjs/commands/inputs/index.js +27 -0
- package/lib/cjs/commands/inputs/index.js.map +1 -0
- package/lib/cjs/commands/{command/inputs → inputs}/lib.d.ts +3 -3
- package/lib/cjs/commands/{command/inputs → inputs}/lib.js +2 -2
- package/lib/cjs/commands/inputs/lib.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/inputs/put-item.d.ts +7 -3
- package/lib/cjs/commands/{command/inputs → inputs}/put-item.js +4 -1
- package/lib/cjs/commands/inputs/put-item.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/inputs/query.d.ts +7 -3
- package/lib/cjs/commands/{command/inputs → inputs}/query.js +4 -1
- package/lib/cjs/commands/inputs/query.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/inputs/update-item.d.ts +6 -3
- package/lib/cjs/commands/{command/inputs → inputs}/update-item.js +7 -4
- package/lib/cjs/commands/inputs/update-item.js.map +1 -0
- package/lib/cjs/commands/{command/inputs → inputs}/update-time-to-live.d.ts +5 -1
- package/lib/cjs/commands/{command/inputs → inputs}/update-time-to-live.js +4 -1
- package/lib/cjs/commands/inputs/update-time-to-live.js.map +1 -0
- package/lib/cjs/commands/inputs/write-transaction.d.ts +20 -0
- package/lib/cjs/commands/inputs/write-transaction.js +41 -0
- package/lib/cjs/commands/inputs/write-transaction.js.map +1 -0
- package/lib/cjs/commands/outputs/create-table.d.ts +7 -0
- package/lib/cjs/commands/outputs/create-table.js +10 -0
- package/lib/cjs/commands/outputs/create-table.js.map +1 -0
- package/lib/cjs/commands/outputs/delete-item.d.ts +10 -0
- package/lib/cjs/commands/{command/outputs → outputs}/delete-item.js +4 -1
- package/lib/cjs/commands/outputs/delete-item.js.map +1 -0
- package/lib/cjs/commands/outputs/delete-table.d.ts +7 -0
- package/lib/cjs/commands/outputs/delete-table.js +10 -0
- package/lib/cjs/commands/outputs/delete-table.js.map +1 -0
- package/lib/cjs/commands/outputs/get-item.d.ts +10 -0
- package/lib/cjs/commands/outputs/get-item.js +11 -0
- package/lib/cjs/commands/outputs/get-item.js.map +1 -0
- package/lib/cjs/commands/outputs/index.d.ts +9 -0
- package/lib/cjs/commands/outputs/index.js +26 -0
- package/lib/cjs/commands/outputs/index.js.map +1 -0
- package/lib/cjs/commands/outputs/lib.js.map +1 -0
- package/lib/cjs/commands/outputs/put-item.d.ts +10 -0
- package/lib/cjs/commands/outputs/put-item.js +11 -0
- package/lib/cjs/commands/outputs/put-item.js.map +1 -0
- package/lib/cjs/commands/outputs/query.d.ts +13 -0
- package/lib/cjs/commands/{command/outputs → outputs}/query.js +4 -1
- package/lib/cjs/commands/outputs/query.js.map +1 -0
- package/lib/cjs/commands/outputs/update-item.d.ts +7 -0
- package/lib/cjs/commands/outputs/update-item.js +10 -0
- package/lib/cjs/commands/outputs/update-item.js.map +1 -0
- package/lib/cjs/commands/outputs/update-time-to-live.d.ts +7 -0
- package/lib/cjs/commands/outputs/update-time-to-live.js +10 -0
- package/lib/cjs/commands/outputs/update-time-to-live.js.map +1 -0
- package/lib/cjs/commands/outputs/write-transaction.d.ts +7 -0
- package/lib/cjs/commands/outputs/write-transaction.js +10 -0
- package/lib/cjs/commands/outputs/write-transaction.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/put-item.d.ts +3 -3
- package/lib/cjs/commands/{command/put-item.js → put-item.js} +6 -2
- package/lib/cjs/commands/put-item.js.map +1 -0
- package/lib/cjs/commands/{command/query.d.ts → query.d.ts} +3 -3
- package/lib/cjs/commands/{command/query.js → query.js} +6 -2
- package/lib/cjs/commands/query.js.map +1 -0
- package/lib/{esm/commands/command → cjs/commands}/update-item.d.ts +3 -3
- package/lib/cjs/commands/{command/update-item.js → update-item.js} +6 -2
- package/lib/cjs/commands/update-item.js.map +1 -0
- package/lib/cjs/commands/{command/update-time-to-live.d.ts → update-time-to-live.d.ts} +2 -2
- package/lib/cjs/commands/{command/update-time-to-live.js → update-time-to-live.js} +6 -2
- package/lib/cjs/commands/update-time-to-live.js.map +1 -0
- package/lib/cjs/commands/write-transaction.d.ts +6 -28
- package/lib/cjs/commands/write-transaction.js +12 -67
- package/lib/cjs/commands/write-transaction.js.map +1 -1
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/{utils.js → lib.js} +1 -1
- package/lib/cjs/lib.js.map +1 -0
- package/lib/esm/client.d.ts +3 -4
- package/lib/esm/client.js +5 -6
- package/lib/esm/client.js.map +1 -1
- package/lib/esm/commands/{command/base.d.ts → base.d.ts} +3 -3
- package/lib/esm/commands/base.js.map +1 -0
- package/lib/esm/commands/codec.js.map +1 -0
- package/lib/esm/commands/{command/command.d.ts → command.d.ts} +2 -1
- package/lib/esm/commands/command.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/create-table.d.ts +3 -3
- package/lib/esm/commands/create-table.js +17 -0
- package/lib/esm/commands/create-table.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/delete-item.d.ts +3 -3
- package/lib/esm/commands/delete-item.js +17 -0
- package/lib/esm/commands/delete-item.js.map +1 -0
- package/lib/esm/commands/{command/delete-table.d.ts → delete-table.d.ts} +2 -2
- package/lib/esm/commands/delete-table.js +17 -0
- package/lib/esm/commands/delete-table.js.map +1 -0
- package/lib/esm/commands/expressions/index.js +0 -6
- package/lib/esm/commands/expressions/index.js.map +1 -1
- package/lib/esm/commands/{command/get-item.d.ts → get-item.d.ts} +3 -3
- package/lib/esm/commands/get-item.js +17 -0
- package/lib/esm/commands/get-item.js.map +1 -0
- package/lib/esm/commands/index.d.ts +14 -2
- package/lib/esm/commands/index.js +10 -1
- package/lib/esm/commands/index.js.map +1 -1
- package/lib/esm/commands/inputs/condition-check.d.ts +15 -0
- package/lib/esm/commands/inputs/condition-check.js +16 -0
- package/lib/esm/commands/inputs/condition-check.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/inputs/create-table.d.ts +6 -2
- package/lib/esm/commands/{command/inputs → inputs}/create-table.js +4 -1
- package/lib/esm/commands/inputs/create-table.js.map +1 -0
- package/lib/esm/commands/{command/inputs → inputs}/delete-item.d.ts +7 -3
- package/lib/esm/commands/{command/inputs → inputs}/delete-item.js +4 -1
- package/lib/esm/commands/inputs/delete-item.js.map +1 -0
- package/lib/esm/commands/inputs/delete-table.d.ts +9 -0
- package/lib/esm/commands/inputs/delete-table.js +9 -0
- package/lib/esm/commands/inputs/delete-table.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/inputs/get-item.d.ts +6 -2
- package/lib/esm/commands/inputs/get-item.js +11 -0
- package/lib/esm/commands/inputs/get-item.js.map +1 -0
- package/lib/esm/commands/inputs/index.d.ts +10 -0
- package/lib/esm/commands/inputs/index.js +11 -0
- package/lib/esm/commands/inputs/index.js.map +1 -0
- package/lib/esm/commands/{command/inputs → inputs}/lib.d.ts +3 -3
- package/lib/esm/commands/{command/inputs → inputs}/lib.js +2 -2
- package/lib/esm/commands/inputs/lib.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/inputs/put-item.d.ts +7 -3
- package/lib/esm/commands/{command/inputs → inputs}/put-item.js +4 -1
- package/lib/esm/commands/inputs/put-item.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/inputs/query.d.ts +7 -3
- package/lib/esm/commands/{command/inputs → inputs}/query.js +4 -1
- package/lib/esm/commands/inputs/query.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/inputs/update-item.d.ts +6 -3
- package/lib/esm/commands/{command/inputs → inputs}/update-item.js +7 -4
- package/lib/esm/commands/inputs/update-item.js.map +1 -0
- package/lib/esm/commands/{command/inputs → inputs}/update-time-to-live.d.ts +5 -1
- package/lib/esm/commands/{command/inputs → inputs}/update-time-to-live.js +4 -1
- package/lib/esm/commands/inputs/update-time-to-live.js.map +1 -0
- package/lib/esm/commands/inputs/write-transaction.d.ts +20 -0
- package/lib/esm/commands/inputs/write-transaction.js +38 -0
- package/lib/esm/commands/inputs/write-transaction.js.map +1 -0
- package/lib/esm/commands/outputs/create-table.d.ts +7 -0
- package/lib/esm/commands/outputs/create-table.js +7 -0
- package/lib/esm/commands/outputs/create-table.js.map +1 -0
- package/lib/esm/commands/outputs/delete-item.d.ts +10 -0
- package/lib/esm/commands/{command/outputs → outputs}/delete-item.js +4 -1
- package/lib/esm/commands/outputs/delete-item.js.map +1 -0
- package/lib/esm/commands/outputs/delete-table.d.ts +7 -0
- package/lib/esm/commands/outputs/delete-table.js +7 -0
- package/lib/esm/commands/outputs/delete-table.js.map +1 -0
- package/lib/esm/commands/outputs/get-item.d.ts +10 -0
- package/lib/esm/commands/outputs/get-item.js +8 -0
- package/lib/esm/commands/outputs/get-item.js.map +1 -0
- package/lib/esm/commands/outputs/index.d.ts +9 -0
- package/lib/esm/commands/outputs/index.js +10 -0
- package/lib/esm/commands/outputs/index.js.map +1 -0
- package/lib/esm/commands/outputs/lib.js.map +1 -0
- package/lib/esm/commands/outputs/put-item.d.ts +10 -0
- package/lib/esm/commands/outputs/put-item.js +8 -0
- package/lib/esm/commands/outputs/put-item.js.map +1 -0
- package/lib/esm/commands/outputs/query.d.ts +13 -0
- package/lib/esm/commands/{command/outputs → outputs}/query.js +4 -1
- package/lib/esm/commands/outputs/query.js.map +1 -0
- package/lib/esm/commands/outputs/update-item.d.ts +7 -0
- package/lib/esm/commands/outputs/update-item.js +7 -0
- package/lib/esm/commands/outputs/update-item.js.map +1 -0
- package/lib/esm/commands/outputs/update-time-to-live.d.ts +7 -0
- package/lib/esm/commands/outputs/update-time-to-live.js +7 -0
- package/lib/esm/commands/outputs/update-time-to-live.js.map +1 -0
- package/lib/esm/commands/outputs/write-transaction.d.ts +7 -0
- package/lib/esm/commands/outputs/write-transaction.js +7 -0
- package/lib/esm/commands/outputs/write-transaction.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/put-item.d.ts +3 -3
- package/lib/esm/commands/put-item.js +17 -0
- package/lib/esm/commands/put-item.js.map +1 -0
- package/lib/esm/commands/{command/query.d.ts → query.d.ts} +3 -3
- package/lib/esm/commands/{command/query.js → query.js} +6 -2
- package/lib/esm/commands/query.js.map +1 -0
- package/lib/{cjs/commands/command → esm/commands}/update-item.d.ts +3 -3
- package/lib/esm/commands/update-item.js +17 -0
- package/lib/esm/commands/update-item.js.map +1 -0
- package/lib/esm/commands/{command/update-time-to-live.d.ts → update-time-to-live.d.ts} +2 -2
- package/lib/esm/commands/update-time-to-live.js +17 -0
- package/lib/esm/commands/update-time-to-live.js.map +1 -0
- package/lib/esm/commands/write-transaction.d.ts +6 -28
- package/lib/esm/commands/write-transaction.js +13 -68
- package/lib/esm/commands/write-transaction.js.map +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/{utils.js → lib.js} +1 -1
- package/lib/esm/lib.js.map +1 -0
- package/package.json +1 -1
- package/lib/cjs/commands/command/base.js.map +0 -1
- package/lib/cjs/commands/command/codecs/codec.js.map +0 -1
- package/lib/cjs/commands/command/codecs/create-table.d.ts +0 -6
- package/lib/cjs/commands/command/codecs/create-table.js +0 -10
- package/lib/cjs/commands/command/codecs/create-table.js.map +0 -1
- package/lib/cjs/commands/command/codecs/delete-item.d.ts +0 -6
- package/lib/cjs/commands/command/codecs/delete-item.js +0 -10
- package/lib/cjs/commands/command/codecs/delete-item.js.map +0 -1
- package/lib/cjs/commands/command/codecs/delete-table.d.ts +0 -6
- package/lib/cjs/commands/command/codecs/delete-table.js +0 -10
- package/lib/cjs/commands/command/codecs/delete-table.js.map +0 -1
- package/lib/cjs/commands/command/codecs/get-item.d.ts +0 -5
- package/lib/cjs/commands/command/codecs/get-item.js +0 -10
- package/lib/cjs/commands/command/codecs/get-item.js.map +0 -1
- package/lib/cjs/commands/command/codecs/put-item.d.ts +0 -5
- package/lib/cjs/commands/command/codecs/put-item.js +0 -10
- package/lib/cjs/commands/command/codecs/put-item.js.map +0 -1
- package/lib/cjs/commands/command/codecs/query.d.ts +0 -6
- package/lib/cjs/commands/command/codecs/query.js +0 -10
- package/lib/cjs/commands/command/codecs/query.js.map +0 -1
- package/lib/cjs/commands/command/codecs/update-item.d.ts +0 -6
- package/lib/cjs/commands/command/codecs/update-item.js +0 -10
- package/lib/cjs/commands/command/codecs/update-item.js.map +0 -1
- package/lib/cjs/commands/command/codecs/update-time-to-live.d.ts +0 -6
- package/lib/cjs/commands/command/codecs/update-time-to-live.js +0 -10
- package/lib/cjs/commands/command/codecs/update-time-to-live.js.map +0 -1
- package/lib/cjs/commands/command/command.js.map +0 -1
- package/lib/cjs/commands/command/create-table.js.map +0 -1
- package/lib/cjs/commands/command/delete-item.js.map +0 -1
- package/lib/cjs/commands/command/delete-table.js.map +0 -1
- package/lib/cjs/commands/command/get-item.js.map +0 -1
- package/lib/cjs/commands/command/index.d.ts +0 -12
- package/lib/cjs/commands/command/index.js +0 -37
- package/lib/cjs/commands/command/index.js.map +0 -1
- package/lib/cjs/commands/command/inputs/create-table.js.map +0 -1
- package/lib/cjs/commands/command/inputs/delete-item.js.map +0 -1
- package/lib/cjs/commands/command/inputs/delete-table.d.ts +0 -5
- package/lib/cjs/commands/command/inputs/delete-table.js.map +0 -1
- package/lib/cjs/commands/command/inputs/get-item.js.map +0 -1
- package/lib/cjs/commands/command/inputs/index.d.ts +0 -8
- package/lib/cjs/commands/command/inputs/index.js +0 -3
- package/lib/cjs/commands/command/inputs/index.js.map +0 -1
- package/lib/cjs/commands/command/inputs/lib.js.map +0 -1
- package/lib/cjs/commands/command/inputs/put-item.js.map +0 -1
- package/lib/cjs/commands/command/inputs/query.js.map +0 -1
- package/lib/cjs/commands/command/inputs/update-item.js.map +0 -1
- package/lib/cjs/commands/command/inputs/update-time-to-live.js.map +0 -1
- package/lib/cjs/commands/command/outputs/create-table.d.ts +0 -3
- package/lib/cjs/commands/command/outputs/create-table.js +0 -7
- package/lib/cjs/commands/command/outputs/create-table.js.map +0 -1
- package/lib/cjs/commands/command/outputs/delete-item.d.ts +0 -6
- package/lib/cjs/commands/command/outputs/delete-item.js.map +0 -1
- package/lib/cjs/commands/command/outputs/delete-table.d.ts +0 -3
- package/lib/cjs/commands/command/outputs/delete-table.js +0 -7
- package/lib/cjs/commands/command/outputs/delete-table.js.map +0 -1
- package/lib/cjs/commands/command/outputs/get-item.d.ts +0 -6
- package/lib/cjs/commands/command/outputs/get-item.js +0 -7
- package/lib/cjs/commands/command/outputs/get-item.js.map +0 -1
- package/lib/cjs/commands/command/outputs/index.d.ts +0 -8
- package/lib/cjs/commands/command/outputs/index.js +0 -3
- package/lib/cjs/commands/command/outputs/index.js.map +0 -1
- package/lib/cjs/commands/command/outputs/lib.js.map +0 -1
- package/lib/cjs/commands/command/outputs/put-item.d.ts +0 -6
- package/lib/cjs/commands/command/outputs/put-item.js +0 -7
- package/lib/cjs/commands/command/outputs/put-item.js.map +0 -1
- package/lib/cjs/commands/command/outputs/query.d.ts +0 -9
- package/lib/cjs/commands/command/outputs/query.js.map +0 -1
- package/lib/cjs/commands/command/outputs/update-item.d.ts +0 -3
- package/lib/cjs/commands/command/outputs/update-item.js +0 -7
- package/lib/cjs/commands/command/outputs/update-item.js.map +0 -1
- package/lib/cjs/commands/command/outputs/update-time-to-live.d.ts +0 -3
- package/lib/cjs/commands/command/outputs/update-time-to-live.js +0 -7
- package/lib/cjs/commands/command/outputs/update-time-to-live.js.map +0 -1
- package/lib/cjs/commands/command/put-item.js.map +0 -1
- package/lib/cjs/commands/command/query.js.map +0 -1
- package/lib/cjs/commands/command/update-item.js.map +0 -1
- package/lib/cjs/commands/command/update-time-to-live.js.map +0 -1
- package/lib/cjs/commands/types.d.ts +0 -4
- package/lib/cjs/commands/types.js +0 -3
- package/lib/cjs/commands/types.js.map +0 -1
- package/lib/cjs/utils.js.map +0 -1
- package/lib/esm/commands/command/base.js.map +0 -1
- package/lib/esm/commands/command/codecs/codec.js.map +0 -1
- package/lib/esm/commands/command/codecs/create-table.d.ts +0 -6
- package/lib/esm/commands/command/codecs/create-table.js +0 -7
- package/lib/esm/commands/command/codecs/create-table.js.map +0 -1
- package/lib/esm/commands/command/codecs/delete-item.d.ts +0 -6
- package/lib/esm/commands/command/codecs/delete-item.js +0 -7
- package/lib/esm/commands/command/codecs/delete-item.js.map +0 -1
- package/lib/esm/commands/command/codecs/delete-table.d.ts +0 -6
- package/lib/esm/commands/command/codecs/delete-table.js +0 -7
- package/lib/esm/commands/command/codecs/delete-table.js.map +0 -1
- package/lib/esm/commands/command/codecs/get-item.d.ts +0 -5
- package/lib/esm/commands/command/codecs/get-item.js +0 -7
- package/lib/esm/commands/command/codecs/get-item.js.map +0 -1
- package/lib/esm/commands/command/codecs/put-item.d.ts +0 -5
- package/lib/esm/commands/command/codecs/put-item.js +0 -7
- package/lib/esm/commands/command/codecs/put-item.js.map +0 -1
- package/lib/esm/commands/command/codecs/query.d.ts +0 -6
- package/lib/esm/commands/command/codecs/query.js +0 -7
- package/lib/esm/commands/command/codecs/query.js.map +0 -1
- package/lib/esm/commands/command/codecs/update-item.d.ts +0 -6
- package/lib/esm/commands/command/codecs/update-item.js +0 -7
- package/lib/esm/commands/command/codecs/update-item.js.map +0 -1
- package/lib/esm/commands/command/codecs/update-time-to-live.d.ts +0 -6
- package/lib/esm/commands/command/codecs/update-time-to-live.js +0 -7
- package/lib/esm/commands/command/codecs/update-time-to-live.js.map +0 -1
- package/lib/esm/commands/command/command.js.map +0 -1
- package/lib/esm/commands/command/create-table.js +0 -13
- package/lib/esm/commands/command/create-table.js.map +0 -1
- package/lib/esm/commands/command/delete-item.js +0 -13
- package/lib/esm/commands/command/delete-item.js.map +0 -1
- package/lib/esm/commands/command/delete-table.js +0 -13
- package/lib/esm/commands/command/delete-table.js.map +0 -1
- package/lib/esm/commands/command/get-item.js +0 -13
- package/lib/esm/commands/command/get-item.js.map +0 -1
- package/lib/esm/commands/command/index.d.ts +0 -12
- package/lib/esm/commands/command/index.js +0 -12
- package/lib/esm/commands/command/index.js.map +0 -1
- package/lib/esm/commands/command/inputs/create-table.js.map +0 -1
- package/lib/esm/commands/command/inputs/delete-item.js.map +0 -1
- package/lib/esm/commands/command/inputs/delete-table.d.ts +0 -5
- package/lib/esm/commands/command/inputs/delete-table.js +0 -6
- package/lib/esm/commands/command/inputs/delete-table.js.map +0 -1
- package/lib/esm/commands/command/inputs/get-item.js +0 -8
- package/lib/esm/commands/command/inputs/get-item.js.map +0 -1
- package/lib/esm/commands/command/inputs/index.d.ts +0 -8
- package/lib/esm/commands/command/inputs/index.js +0 -2
- package/lib/esm/commands/command/inputs/index.js.map +0 -1
- package/lib/esm/commands/command/inputs/lib.js.map +0 -1
- package/lib/esm/commands/command/inputs/put-item.js.map +0 -1
- package/lib/esm/commands/command/inputs/query.js.map +0 -1
- package/lib/esm/commands/command/inputs/update-item.js.map +0 -1
- package/lib/esm/commands/command/inputs/update-time-to-live.js.map +0 -1
- package/lib/esm/commands/command/outputs/create-table.d.ts +0 -3
- package/lib/esm/commands/command/outputs/create-table.js +0 -4
- package/lib/esm/commands/command/outputs/create-table.js.map +0 -1
- package/lib/esm/commands/command/outputs/delete-item.d.ts +0 -6
- package/lib/esm/commands/command/outputs/delete-item.js.map +0 -1
- package/lib/esm/commands/command/outputs/delete-table.d.ts +0 -3
- package/lib/esm/commands/command/outputs/delete-table.js +0 -4
- package/lib/esm/commands/command/outputs/delete-table.js.map +0 -1
- package/lib/esm/commands/command/outputs/get-item.d.ts +0 -6
- package/lib/esm/commands/command/outputs/get-item.js +0 -3
- package/lib/esm/commands/command/outputs/get-item.js.map +0 -1
- package/lib/esm/commands/command/outputs/index.d.ts +0 -8
- package/lib/esm/commands/command/outputs/index.js +0 -2
- package/lib/esm/commands/command/outputs/index.js.map +0 -1
- package/lib/esm/commands/command/outputs/lib.js.map +0 -1
- package/lib/esm/commands/command/outputs/put-item.d.ts +0 -6
- package/lib/esm/commands/command/outputs/put-item.js +0 -3
- package/lib/esm/commands/command/outputs/put-item.js.map +0 -1
- package/lib/esm/commands/command/outputs/query.d.ts +0 -9
- package/lib/esm/commands/command/outputs/query.js.map +0 -1
- package/lib/esm/commands/command/outputs/update-item.d.ts +0 -3
- package/lib/esm/commands/command/outputs/update-item.js +0 -4
- package/lib/esm/commands/command/outputs/update-item.js.map +0 -1
- package/lib/esm/commands/command/outputs/update-time-to-live.d.ts +0 -3
- package/lib/esm/commands/command/outputs/update-time-to-live.js +0 -4
- package/lib/esm/commands/command/outputs/update-time-to-live.js.map +0 -1
- package/lib/esm/commands/command/put-item.js +0 -13
- package/lib/esm/commands/command/put-item.js.map +0 -1
- package/lib/esm/commands/command/query.js.map +0 -1
- package/lib/esm/commands/command/update-item.js +0 -13
- package/lib/esm/commands/command/update-item.js.map +0 -1
- package/lib/esm/commands/command/update-time-to-live.js +0 -13
- package/lib/esm/commands/command/update-time-to-live.js.map +0 -1
- package/lib/esm/commands/types.d.ts +0 -4
- package/lib/esm/commands/types.js +0 -2
- package/lib/esm/commands/types.js.map +0 -1
- package/lib/esm/utils.js.map +0 -1
- /package/lib/cjs/commands/{command/base.js → base.js} +0 -0
- /package/lib/cjs/commands/{command/codecs/codec.d.ts → codec.d.ts} +0 -0
- /package/lib/cjs/commands/{command/codecs/codec.js → codec.js} +0 -0
- /package/lib/cjs/commands/{command/command.js → command.js} +0 -0
- /package/lib/cjs/commands/{command/outputs → outputs}/lib.d.ts +0 -0
- /package/lib/cjs/commands/{command/outputs → outputs}/lib.js +0 -0
- /package/lib/cjs/{utils.d.ts → lib.d.ts} +0 -0
- /package/lib/esm/commands/{command/base.js → base.js} +0 -0
- /package/lib/esm/commands/{command/codecs/codec.d.ts → codec.d.ts} +0 -0
- /package/lib/esm/commands/{command/codecs/codec.js → codec.js} +0 -0
- /package/lib/esm/commands/{command/command.js → command.js} +0 -0
- /package/lib/esm/commands/{command/outputs → outputs}/lib.d.ts +0 -0
- /package/lib/esm/commands/{command/outputs → outputs}/lib.js +0 -0
- /package/lib/esm/{utils.d.ts → lib.d.ts} +0 -0
package/lib/cjs/client.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import type { TranslateConfig } from "@aws-sdk/lib-dynamodb";
|
|
|
3
3
|
import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
|
|
4
4
|
import type { Logger } from "@infra-blocks/logger-interface";
|
|
5
5
|
import { type Retry, type RetryConfig } from "@infra-blocks/retry";
|
|
6
|
-
import { type CommandOutput, type CreateTableInput, type CreateTableOutput, type DeleteItemInput, type DeleteItemOutput, type DeleteTableInput, type DeleteTableOutput, type DynamoDbClientCommand, type GetItemInput, type GetItemOutput, type PutItemInput, type PutItemOutput, type QueryInput, type QueryOutput, type UpdateItemInput, type UpdateTimeToLiveInput, type UpdateTimeToLiveOutput } from "./commands/index.js";
|
|
7
|
-
import { type WriteTransactionParams } from "./commands/write-transaction.js";
|
|
6
|
+
import { type CommandOutput, type CreateTableInput, type CreateTableOutput, type DeleteItemInput, type DeleteItemOutput, type DeleteTableInput, type DeleteTableOutput, type DynamoDbClientCommand, type GetItemInput, type GetItemOutput, type PutItemInput, type PutItemOutput, type QueryInput, type QueryOutput, type UpdateItemInput, type UpdateTimeToLiveInput, type UpdateTimeToLiveOutput, type WriteTransactionInput, type WriteTransactionOutput } from "./commands/index.js";
|
|
8
7
|
import type { Attributes, KeyAttributes, KeySchema } from "./types.js";
|
|
9
8
|
/**
|
|
10
9
|
* Re-export of the native client's, renamed.
|
|
@@ -194,11 +193,11 @@ export declare class DynamoDbClient {
|
|
|
194
193
|
/**
|
|
195
194
|
* Executes a write transaction using the TransactWriteItems API.
|
|
196
195
|
*
|
|
197
|
-
* @param
|
|
196
|
+
* @param input - The parameters describing the transaction.
|
|
198
197
|
*
|
|
199
198
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html
|
|
200
199
|
*/
|
|
201
|
-
writeTransaction(
|
|
200
|
+
writeTransaction(input: WriteTransactionInput): Promise<WriteTransactionOutput>;
|
|
202
201
|
/**
|
|
203
202
|
* Alias for the {@link putItem} method.
|
|
204
203
|
*/
|
package/lib/cjs/client.js
CHANGED
|
@@ -7,7 +7,6 @@ const null_logger_1 = require("@infra-blocks/null-logger");
|
|
|
7
7
|
const retry_1 = require("@infra-blocks/retry");
|
|
8
8
|
const types_1 = require("@infra-blocks/types");
|
|
9
9
|
const index_js_1 = require("./commands/index.js");
|
|
10
|
-
const write_transaction_js_1 = require("./commands/write-transaction.js");
|
|
11
10
|
const error_js_1 = require("./error.js");
|
|
12
11
|
/**
|
|
13
12
|
* Wrapper class around the {@link DynamoDBDocumentClient} that provides added functionality,
|
|
@@ -256,15 +255,15 @@ class DynamoDbClient {
|
|
|
256
255
|
/**
|
|
257
256
|
* Executes a write transaction using the TransactWriteItems API.
|
|
258
257
|
*
|
|
259
|
-
* @param
|
|
258
|
+
* @param input - The parameters describing the transaction.
|
|
260
259
|
*
|
|
261
260
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html
|
|
262
261
|
*/
|
|
263
|
-
async writeTransaction(
|
|
262
|
+
async writeTransaction(input) {
|
|
264
263
|
if (this.logger.isDebugEnabled()) {
|
|
265
|
-
this.logger.debug("transactWriteItems(%s)", JSON.stringify(
|
|
264
|
+
this.logger.debug("transactWriteItems(%s)", JSON.stringify(input));
|
|
266
265
|
}
|
|
267
|
-
|
|
266
|
+
return this.send(new index_js_1.WriteTransaction(input));
|
|
268
267
|
}
|
|
269
268
|
/**
|
|
270
269
|
* Alias for the {@link putItem} method.
|
package/lib/cjs/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;AACA,8DAA6E;AAE7E,wDAA+D;AAE/D,2DAAuD;AACvD,+CAA0E;AAC1E,+CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;AACA,8DAA6E;AAE7E,wDAA+D;AAE/D,2DAAuD;AACvD,+CAA0E;AAC1E,+CAA8C;AAC9C,kDA6B6B;AAC7B,yCAAmD;AAuCnD;;;GAGG;AACH,MAAa,cAAc;IACR,MAAM,CAAyB;IAC/B,MAAM,CAAS;IAEhC,YAAoB,MAGnB;QACC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,WAAW,CACf,KAA2B;QAE3B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,CAAC;YACjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,sBAAW,CAAK,KAAK,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAGR,KAAyB;QACzB,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,CAAC;YACjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,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AG,qCAAsB,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QACjE,OAAO,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,CAAC;CACF;AAtXD,wCAsXC"}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* each other trolololol. Hence, we use `any` where necessary as an escape hatch to this typing nightmare.
|
|
6
6
|
*/
|
|
7
7
|
import type { CreateTableCommand, DeleteTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
|
|
8
|
-
import type { DeleteCommand, DynamoDBDocumentClient, GetCommand, PutCommand, QueryCommand, UpdateCommand } from "@aws-sdk/lib-dynamodb";
|
|
8
|
+
import type { DeleteCommand, DynamoDBDocumentClient, GetCommand, PutCommand, QueryCommand, TransactWriteCommand, UpdateCommand } from "@aws-sdk/lib-dynamodb";
|
|
9
9
|
import type { GetOutputType } from "@smithy/types";
|
|
10
|
-
import type { Codec } from "./
|
|
11
|
-
type NativeCommand = DeleteCommand | GetCommand | CreateTableCommand | DeleteTableCommand | PutCommand | QueryCommand | UpdateCommand | UpdateTimeToLiveCommand;
|
|
10
|
+
import type { Codec } from "./codec.js";
|
|
11
|
+
type NativeCommand = DeleteCommand | GetCommand | CreateTableCommand | DeleteTableCommand | PutCommand | QueryCommand | UpdateCommand | UpdateTimeToLiveCommand | TransactWriteCommand;
|
|
12
12
|
type NativeCommandCtor<C extends NativeCommand> = new (input: C["input"]) => C;
|
|
13
13
|
export type CommandOutput<C extends Command<unknown, unknown>> = Awaited<ReturnType<C["execute"]>>;
|
|
14
14
|
export type CommandInput<C extends Command<unknown, unknown>> = C["input"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/commands/base.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAgBH,+CAA8C;AA6B9C,gBAAgB;AAChB,MAAsB,eAAe;IAM1B,KAAK,CAAI;IAEC,KAAK,CAA4C;IACjD,OAAO,CAAuB;IAEjD,YAAsB,MAIrB;QACC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAA0C;QACtD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,MAAM,YAAY,GAAe,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/D,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC/C,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAc,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAA,eAAO,EAAC,aAAa,CAAC,CAAC,CAAC;IACnD,CAAC;CACF;AA7BD,0CA6BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec.js","sourceRoot":"","sources":["../../../src/commands/codec.ts"],"names":[],"mappings":""}
|
|
@@ -6,4 +6,5 @@ import type { PutItem } from "./put-item.js";
|
|
|
6
6
|
import type { Query } from "./query.js";
|
|
7
7
|
import type { UpdateItem } from "./update-item.js";
|
|
8
8
|
import type { UpdateTimeToLive } from "./update-time-to-live.js";
|
|
9
|
-
|
|
9
|
+
import type { WriteTransaction } from "./write-transaction.js";
|
|
10
|
+
export type DynamoDbClientCommand = DeleteItem | GetItem | CreateTable | DeleteTable | PutItem | Query | UpdateItem | UpdateTimeToLive | WriteTransaction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/commands/command.ts"],"names":[],"mappings":";;AAqBA,8CAA8C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CreateTableCommand } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import type { KeySchema } from "
|
|
2
|
+
import type { KeySchema } from "../types.js";
|
|
3
3
|
import { AbstractCommand } from "./base.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { CreateTableInput } from "./inputs/index.js";
|
|
5
|
+
import { CreateTableOutput } from "./outputs/index.js";
|
|
6
6
|
export declare class CreateTable<KS extends KeySchema = KeySchema> extends AbstractCommand<CreateTableInput<KS>, CreateTableOutput, CreateTableCommand> {
|
|
7
7
|
constructor(input: CreateTableInput<KS>);
|
|
8
8
|
}
|
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreateTable = void 0;
|
|
4
4
|
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
5
|
const base_js_1 = require("./base.js");
|
|
6
|
-
const
|
|
6
|
+
const index_js_1 = require("./inputs/index.js");
|
|
7
|
+
const index_js_2 = require("./outputs/index.js");
|
|
7
8
|
class CreateTable extends base_js_1.AbstractCommand {
|
|
8
9
|
constructor(input) {
|
|
9
10
|
super({
|
|
10
11
|
input,
|
|
11
|
-
codec:
|
|
12
|
+
codec: {
|
|
13
|
+
encode: index_js_1.CreateTableInput.encode,
|
|
14
|
+
decode: index_js_2.CreateTableOutput.decode,
|
|
15
|
+
},
|
|
12
16
|
command: client_dynamodb_1.CreateTableCommand,
|
|
13
17
|
});
|
|
14
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-table.js","sourceRoot":"","sources":["../../../src/commands/create-table.ts"],"names":[],"mappings":";;;AAAA,8DAA8D;AAE9D,uCAA4C;AAC5C,gDAAqD;AACrD,iDAAuD;AAEvD,MAAa,WAEX,SAAQ,yBAIT;IACC,YAAY,KAA2B;QACrC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,2BAAgB,CAAC,MAAM;gBAC/B,MAAM,EAAE,4BAAiB,CAAC,MAAM;aACjC;YACD,OAAO,EAAE,oCAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,kCAiBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DeleteCommand } from "@aws-sdk/lib-dynamodb";
|
|
2
|
-
import type { Attributes, KeyAttributes } from "
|
|
2
|
+
import type { Attributes, KeyAttributes } from "../types.js";
|
|
3
3
|
import { AbstractCommand } from "./base.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { DeleteItemInput } from "./inputs/index.js";
|
|
5
|
+
import { DeleteItemOutput } from "./outputs/index.js";
|
|
6
6
|
export declare class DeleteItem<T extends Attributes = Attributes, K extends KeyAttributes = KeyAttributes> extends AbstractCommand<DeleteItemInput<K>, DeleteItemOutput<T>, DeleteCommand> {
|
|
7
7
|
constructor(input: DeleteItemInput<K>);
|
|
8
8
|
}
|
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DeleteItem = void 0;
|
|
4
4
|
const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
|
|
5
5
|
const base_js_1 = require("./base.js");
|
|
6
|
-
const
|
|
6
|
+
const index_js_1 = require("./inputs/index.js");
|
|
7
|
+
const index_js_2 = require("./outputs/index.js");
|
|
7
8
|
class DeleteItem extends base_js_1.AbstractCommand {
|
|
8
9
|
constructor(input) {
|
|
9
10
|
super({
|
|
10
11
|
input,
|
|
11
|
-
codec:
|
|
12
|
+
codec: {
|
|
13
|
+
encode: index_js_1.DeleteItemInput.encode,
|
|
14
|
+
decode: index_js_2.DeleteItemOutput.decode,
|
|
15
|
+
},
|
|
12
16
|
command: lib_dynamodb_1.DeleteCommand,
|
|
13
17
|
});
|
|
14
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../src/commands/delete-item.ts"],"names":[],"mappings":";;;AAAA,wDAAsD;AAEtD,uCAA4C;AAC5C,gDAAoD;AACpD,iDAAsD;AAEtD,MAAa,UAGX,SAAQ,yBAIT;IACC,YAAY,KAAyB;QACnC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,0BAAe,CAAC,MAAM;gBAC9B,MAAM,EAAE,2BAAgB,CAAC,MAAM;aAChC;YACD,OAAO,EAAE,4BAAa;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,gCAkBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeleteTableCommand } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { AbstractCommand } from "./base.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { DeleteTableInput } from "./inputs/index.js";
|
|
4
|
+
import { DeleteTableOutput } from "./outputs/index.js";
|
|
5
5
|
export declare class DeleteTable extends AbstractCommand<DeleteTableInput, DeleteTableOutput, DeleteTableCommand> {
|
|
6
6
|
constructor(input: DeleteTableInput);
|
|
7
7
|
}
|
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DeleteTable = void 0;
|
|
4
4
|
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
5
|
const base_js_1 = require("./base.js");
|
|
6
|
-
const
|
|
6
|
+
const index_js_1 = require("./inputs/index.js");
|
|
7
|
+
const index_js_2 = require("./outputs/index.js");
|
|
7
8
|
class DeleteTable extends base_js_1.AbstractCommand {
|
|
8
9
|
constructor(input) {
|
|
9
10
|
super({
|
|
10
11
|
input,
|
|
11
|
-
codec:
|
|
12
|
+
codec: {
|
|
13
|
+
encode: index_js_1.DeleteTableInput.encode,
|
|
14
|
+
decode: index_js_2.DeleteTableOutput.decode,
|
|
15
|
+
},
|
|
12
16
|
command: client_dynamodb_1.DeleteTableCommand,
|
|
13
17
|
});
|
|
14
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-table.js","sourceRoot":"","sources":["../../../src/commands/delete-table.ts"],"names":[],"mappings":";;;AAAA,8DAA8D;AAC9D,uCAA4C;AAC5C,gDAAqD;AACrD,iDAAuD;AAEvD,MAAa,WAAY,SAAQ,yBAIhC;IACC,YAAY,KAAuB;QACjC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,2BAAgB,CAAC,MAAM;gBAC/B,MAAM,EAAE,4BAAiB,CAAC,MAAM;aACjC;YACD,OAAO,EAAE,oCAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF;AAfD,kCAeC"}
|
|
@@ -18,10 +18,4 @@ __exportStar(require("./condition/index.js"), exports);
|
|
|
18
18
|
__exportStar(require("./key-condition.js"), exports);
|
|
19
19
|
__exportStar(require("./operands/index.js"), exports);
|
|
20
20
|
__exportStar(require("./update/index.js"), exports);
|
|
21
|
-
/*
|
|
22
|
-
TODO: In the expression interfaces, a slight QoL improvement would be to assume that
|
|
23
|
-
strings are attribute names by default, and other types are values by default. The user
|
|
24
|
-
always has the option to be explicit. For example, he could write:
|
|
25
|
-
`where(attribute("name")).eq(value(42))` or `where("name").eq(42)`.
|
|
26
|
-
*/
|
|
27
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/expressions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,oDAAkC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/expressions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,oDAAkC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GetCommand } from "@aws-sdk/lib-dynamodb";
|
|
2
|
-
import type { Attributes, KeyAttributes } from "
|
|
2
|
+
import type { Attributes, KeyAttributes } from "../types.js";
|
|
3
3
|
import { AbstractCommand } from "./base.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { GetItemInput } from "./inputs/index.js";
|
|
5
|
+
import { GetItemOutput } from "./outputs/index.js";
|
|
6
6
|
export declare class GetItem<T extends Attributes = Attributes, K extends KeyAttributes = KeyAttributes> extends AbstractCommand<GetItemInput<K>, GetItemOutput<T>, GetCommand> {
|
|
7
7
|
constructor(input: GetItemInput<K>);
|
|
8
8
|
}
|
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetItem = void 0;
|
|
4
4
|
const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
|
|
5
5
|
const base_js_1 = require("./base.js");
|
|
6
|
-
const
|
|
6
|
+
const index_js_1 = require("./inputs/index.js");
|
|
7
|
+
const index_js_2 = require("./outputs/index.js");
|
|
7
8
|
class GetItem extends base_js_1.AbstractCommand {
|
|
8
9
|
constructor(input) {
|
|
9
10
|
super({
|
|
10
11
|
input,
|
|
11
|
-
codec:
|
|
12
|
+
codec: {
|
|
13
|
+
encode: index_js_1.GetItemInput.encode,
|
|
14
|
+
decode: index_js_2.GetItemOutput.decode,
|
|
15
|
+
},
|
|
12
16
|
command: lib_dynamodb_1.GetCommand,
|
|
13
17
|
});
|
|
14
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../src/commands/get-item.ts"],"names":[],"mappings":";;;AAAA,wDAAmD;AAEnD,uCAA4C;AAC5C,gDAAiD;AACjD,iDAAmD;AAEnD,MAAa,OAGX,SAAQ,yBAA8D;IACtE,YAAY,KAAsB;QAChC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,uBAAY,CAAC,MAAM;gBAC3B,MAAM,EAAE,wBAAa,CAAC,MAAM;aAC7B;YACD,OAAO,EAAE,yBAAU;SACpB,CAAC,CAAC;IACL,CAAC;CACF;AAdD,0BAcC"}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./attributes/index.js";
|
|
2
|
+
export type { CommandInput, CommandOutput } from "./base.js";
|
|
3
|
+
export type { DynamoDbClientCommand } from "./command.js";
|
|
4
|
+
export { CreateTable } from "./create-table.js";
|
|
5
|
+
export { DeleteItem } from "./delete-item.js";
|
|
6
|
+
export { DeleteTable } from "./delete-table.js";
|
|
2
7
|
export * from "./expressions/index.js";
|
|
3
|
-
export
|
|
8
|
+
export { GetItem } from "./get-item.js";
|
|
9
|
+
export type { ConditionCheckInput, CreateTableInput, DeleteItemInput, DeleteItemReturnValue, DeleteTableInput, GetItemInput, PutItemInput, QueryInput, UpdateItemInput, UpdateTimeToLiveInput, WriteTransactionInput, WriteTransactionWrite, } from "./inputs/index.js";
|
|
10
|
+
export type { CreateTableOutput, DeleteItemOutput, DeleteTableOutput, GetItemOutput, PutItemOutput, QueryOutput, UpdateItemOutput, UpdateTimeToLiveOutput, WriteTransactionOutput, } from "./outputs/index.js";
|
|
11
|
+
export { PutItem } from "./put-item.js";
|
|
12
|
+
export { Query } from "./query.js";
|
|
13
|
+
export { UpdateItem } from "./update-item.js";
|
|
14
|
+
export { UpdateTimeToLive } from "./update-time-to-live.js";
|
|
15
|
+
export { WriteTransaction } from "./write-transaction.js";
|
|
@@ -14,6 +14,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
exports.WriteTransaction = exports.UpdateTimeToLive = exports.UpdateItem = exports.Query = exports.PutItem = exports.GetItem = exports.DeleteTable = exports.DeleteItem = exports.CreateTable = void 0;
|
|
18
|
+
__exportStar(require("./attributes/index.js"), exports);
|
|
19
|
+
var create_table_js_1 = require("./create-table.js");
|
|
20
|
+
Object.defineProperty(exports, "CreateTable", { enumerable: true, get: function () { return create_table_js_1.CreateTable; } });
|
|
21
|
+
var delete_item_js_1 = require("./delete-item.js");
|
|
22
|
+
Object.defineProperty(exports, "DeleteItem", { enumerable: true, get: function () { return delete_item_js_1.DeleteItem; } });
|
|
23
|
+
var delete_table_js_1 = require("./delete-table.js");
|
|
24
|
+
Object.defineProperty(exports, "DeleteTable", { enumerable: true, get: function () { return delete_table_js_1.DeleteTable; } });
|
|
18
25
|
__exportStar(require("./expressions/index.js"), exports);
|
|
26
|
+
var get_item_js_1 = require("./get-item.js");
|
|
27
|
+
Object.defineProperty(exports, "GetItem", { enumerable: true, get: function () { return get_item_js_1.GetItem; } });
|
|
28
|
+
var put_item_js_1 = require("./put-item.js");
|
|
29
|
+
Object.defineProperty(exports, "PutItem", { enumerable: true, get: function () { return put_item_js_1.PutItem; } });
|
|
30
|
+
var query_js_1 = require("./query.js");
|
|
31
|
+
Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return query_js_1.Query; } });
|
|
32
|
+
var update_item_js_1 = require("./update-item.js");
|
|
33
|
+
Object.defineProperty(exports, "UpdateItem", { enumerable: true, get: function () { return update_item_js_1.UpdateItem; } });
|
|
34
|
+
var update_time_to_live_js_1 = require("./update-time-to-live.js");
|
|
35
|
+
Object.defineProperty(exports, "UpdateTimeToLive", { enumerable: true, get: function () { return update_time_to_live_js_1.UpdateTimeToLive; } });
|
|
36
|
+
var write_transaction_js_1 = require("./write-transaction.js");
|
|
37
|
+
Object.defineProperty(exports, "WriteTransaction", { enumerable: true, get: function () { return write_transaction_js_1.WriteTransaction; } });
|
|
19
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wDAAsC;AAGtC,qDAAgD;AAAvC,8GAAA,WAAW,OAAA;AACpB,mDAA8C;AAArC,4GAAA,UAAU,OAAA;AACnB,qDAAgD;AAAvC,8GAAA,WAAW,OAAA;AACpB,yDAAuC;AACvC,6CAAwC;AAA/B,sGAAA,OAAO,OAAA;AA0BhB,6CAAwC;AAA/B,sGAAA,OAAO,OAAA;AAChB,uCAAmC;AAA1B,iGAAA,KAAK,OAAA;AACd,mDAA8C;AAArC,4GAAA,UAAU,OAAA;AACnB,mEAA4D;AAAnD,0HAAA,gBAAgB,OAAA;AACzB,+DAA0D;AAAjD,wHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TransactWriteCommandInput } from "@aws-sdk/lib-dynamodb";
|
|
2
|
+
import type { UnpackedArray } from "@infra-blocks/types";
|
|
3
|
+
import type { KeyAttributes } from "../../types.js";
|
|
4
|
+
import type { ConditionParams } from "../expressions/index.js";
|
|
5
|
+
export type ConditionCheckInput<K extends KeyAttributes = KeyAttributes> = {
|
|
6
|
+
table: string;
|
|
7
|
+
key: K;
|
|
8
|
+
condition: ConditionParams;
|
|
9
|
+
};
|
|
10
|
+
export declare const ConditionCheckInput: {
|
|
11
|
+
encode: typeof encode;
|
|
12
|
+
};
|
|
13
|
+
type TransactWriteCommandConditionCheck = UnpackedArray<TransactWriteCommandInput["TransactItems"]>["ConditionCheck"];
|
|
14
|
+
declare function encode<K extends KeyAttributes = KeyAttributes>(input: ConditionCheckInput<K>): TransactWriteCommandConditionCheck;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConditionCheckInput = void 0;
|
|
4
|
+
const lib_js_1 = require("./lib.js");
|
|
5
|
+
exports.ConditionCheckInput = {
|
|
6
|
+
encode,
|
|
7
|
+
};
|
|
8
|
+
function encode(input) {
|
|
9
|
+
const { table, key, condition } = input;
|
|
10
|
+
const { expression, names, values } = (0, lib_js_1.intoExpressionComponents)(condition);
|
|
11
|
+
return {
|
|
12
|
+
TableName: table,
|
|
13
|
+
Key: key,
|
|
14
|
+
ConditionExpression: expression,
|
|
15
|
+
ExpressionAttributeNames: names,
|
|
16
|
+
ExpressionAttributeValues: values,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=condition-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condition-check.js","sourceRoot":"","sources":["../../../../src/commands/inputs/condition-check.ts"],"names":[],"mappings":";;;AAIA,qCAAoD;AAQvC,QAAA,mBAAmB,GAAG;IACjC,MAAM;CACP,CAAC;AAMF,SAAS,MAAM,CACb,KAA6B;IAE7B,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAA,iCAAwB,EAAC,SAAS,CAAC,CAAC;IAE1E,OAAO;QACL,SAAS,EAAE,KAAK;QAChB,GAAG,EAAE,GAAG;QACR,mBAAmB,EAAE,UAAU;QAC/B,wBAAwB,EAAE,KAAK;QAC/B,yBAAyB,EAAE,MAAM;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { CreateTableCommandInput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import type { KeySchema } from "
|
|
2
|
+
import type { KeySchema } from "../../types.js";
|
|
3
3
|
export interface CreateTableInput<KS extends KeySchema = KeySchema> {
|
|
4
4
|
name: string;
|
|
5
5
|
keySchema: KS;
|
|
6
6
|
gsis?: Record<string, KeySchema>;
|
|
7
7
|
lsis?: Record<string, KeySchema>;
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare const CreateTableInput: {
|
|
10
|
+
encode: typeof encode;
|
|
11
|
+
};
|
|
12
|
+
declare function encode<Def extends KeySchema = KeySchema>(input: CreateTableInput<Def>): CreateTableCommandInput;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateTableInput = void 0;
|
|
4
|
+
exports.CreateTableInput = {
|
|
5
|
+
encode,
|
|
6
|
+
};
|
|
4
7
|
function encode(input) {
|
|
5
8
|
const attributeDefinitions = new Map();
|
|
6
9
|
const primaryKeySchema = encodeKeySchema({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-table.js","sourceRoot":"","sources":["../../../../src/commands/inputs/create-table.ts"],"names":[],"mappings":";;;AAgBa,QAAA,gBAAgB,GAAG;IAC9B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,KAA4B;IAE5B,MAAM,oBAAoB,GAAkC,IAAI,GAAG,EAAE,CAAC;IACtE,MAAM,gBAAgB,GAAG,eAAe,CAAC;QACvC,oBAAoB;QACpB,GAAG,EAAE,KAAK,CAAC,SAAS;KACrB,CAAC,CAAC;IAEH,MAAM,sBAAsB,GAAG,UAAU,CAAC,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5E,MAAM,qBAAqB,GAAG,UAAU,CAAC,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3E,OAAO;QACL,oBAAoB,EAAE,CAAC,GAAG,oBAAoB,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAC3D,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;YACjB,aAAa,EAAE,IAAI;YACnB,aAAa,EAAE,IAAI;SACpB,CAAC,CACH;QACD,SAAS,EAAE,KAA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,eAAe,CAAC;YACzB,oBAAoB;YACpB,GAAG,EAAE,KAAK;SACX,CAAC,CAAC;QACH,sBAAsB,CAAC,IAAI,CAAC;YAC1B,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,EAAE;YACb,UAAU,EAAE;gBACV,cAAc,EAAE,KAAK;aACtB;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,sBAAsB,CAAC;AAChC,CAAC;AAED,SAAS,UAAU,CACjB,oBAAmD,EACnD,IAA8B;IAE9B,MAAM,qBAAqB,GAA+B,EAAE,CAAC;IAC7D,KAAK,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,CAAC;QAC5D,MAAM,EAAE,GAAG,eAAe,CAAC;YACzB,oBAAoB;YACpB,GAAG,EAAE;gBACH,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,OAAO,EAAE,KAAK,CAAC,OAAO;aACvB;SACF,CAAC,CAAC;QACH,qBAAqB,CAAC,IAAI,CAAC;YACzB,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,EAAE;YACb,UAAU,EAAE;gBACV,cAAc,EAAE,KAAK;aACtB;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeleteCommandInput } from "@aws-sdk/lib-dynamodb";
|
|
2
|
-
import type { KeyAttributes } from "
|
|
3
|
-
import type { ConditionParams } from "
|
|
2
|
+
import type { KeyAttributes } from "../../types.js";
|
|
3
|
+
import type { ConditionParams } from "../expressions/index.js";
|
|
4
4
|
export type DeleteItemReturnValue = "ALL_OLD" | "NONE";
|
|
5
5
|
export type DeleteItemInput<K extends KeyAttributes = KeyAttributes> = {
|
|
6
6
|
table: string;
|
|
@@ -9,4 +9,8 @@ export type DeleteItemInput<K extends KeyAttributes = KeyAttributes> = {
|
|
|
9
9
|
returnValues?: DeleteItemReturnValue;
|
|
10
10
|
returnValuesOnConditionCheckFailure?: DeleteItemReturnValue;
|
|
11
11
|
};
|
|
12
|
-
export declare
|
|
12
|
+
export declare const DeleteItemInput: {
|
|
13
|
+
encode: typeof encode;
|
|
14
|
+
};
|
|
15
|
+
declare function encode<K extends KeyAttributes>(input: DeleteItemInput<K>): DeleteCommandInput;
|
|
16
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DeleteItemInput = void 0;
|
|
4
4
|
const lib_js_1 = require("./lib.js");
|
|
5
|
+
exports.DeleteItemInput = {
|
|
6
|
+
encode,
|
|
7
|
+
};
|
|
5
8
|
function encode(input) {
|
|
6
9
|
const result = {
|
|
7
10
|
TableName: input.table,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../src/commands/inputs/delete-item.ts"],"names":[],"mappings":";;;AAGA,qCAAoD;AAcvC,QAAA,eAAe,GAAG;IAC7B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,KAAyB;IAEzB,MAAM,MAAM,GAAuB;QACjC,SAAS,EAAE,KAAK,CAAC,KAAK;QACtB,GAAG,EAAE,KAAK,CAAC,GAAG;KACf,CAAC;IAEF,IAAI,KAAK,CAAC,YAAY,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED,IAAI,KAAK,CAAC,mCAAmC,IAAI,IAAI,EAAE,CAAC;QACtD,MAAM,CAAC,mCAAmC;YACxC,KAAK,CAAC,mCAAmC,CAAC;IAC9C,CAAC;IAED,4FAA4F;IAC5F,qBAAqB;IACrB,IAAI,KAAK,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAA,iCAAwB,EAC5D,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO;QACL,GAAG,MAAM;QACT,mBAAmB,EAAE,UAAU;QAC/B,wBAAwB,EAAE,KAAK;QAC/B,yBAAyB,EAAE,MAAM;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DeleteTableCommandInput } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
export interface DeleteTableInput {
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const DeleteTableInput: {
|
|
6
|
+
encode: typeof encode;
|
|
7
|
+
};
|
|
8
|
+
declare function encode(input: DeleteTableInput): DeleteTableCommandInput;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-table.js","sourceRoot":"","sources":["../../../../src/commands/inputs/delete-table.ts"],"names":[],"mappings":";;;AAMa,QAAA,gBAAgB,GAAG;IAC9B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,KAAuB;IACrC,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,IAAI;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GetCommandInput } from "@aws-sdk/lib-dynamodb";
|
|
2
|
-
import type { KeyAttributes } from "
|
|
2
|
+
import type { KeyAttributes } from "../../types.js";
|
|
3
3
|
/**
|
|
4
4
|
* The input required to call the GetItem API.
|
|
5
5
|
*/
|
|
@@ -16,4 +16,8 @@ export interface GetItemInput<K extends KeyAttributes = KeyAttributes> {
|
|
|
16
16
|
*/
|
|
17
17
|
key: K;
|
|
18
18
|
}
|
|
19
|
-
export declare
|
|
19
|
+
export declare const GetItemInput: {
|
|
20
|
+
encode: typeof encode;
|
|
21
|
+
};
|
|
22
|
+
declare function encode<K extends KeyAttributes = KeyAttributes>(input: GetItemInput<K>): GetCommandInput;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../../src/commands/inputs/get-item.ts"],"names":[],"mappings":";;;AAoBa,QAAA,YAAY,GAAG;IAC1B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,KAAsB;IAEtB,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IACtB,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,KAAK;QACtB,GAAG,EAAE,GAAG;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./condition-check.js";
|
|
2
|
+
export * from "./create-table.js";
|
|
3
|
+
export * from "./delete-item.js";
|
|
4
|
+
export * from "./delete-table.js";
|
|
5
|
+
export * from "./get-item.js";
|
|
6
|
+
export * from "./put-item.js";
|
|
7
|
+
export * from "./query.js";
|
|
8
|
+
export * from "./update-item.js";
|
|
9
|
+
export * from "./update-time-to-live.js";
|
|
10
|
+
export * from "./write-transaction.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./condition-check.js"), exports);
|
|
18
|
+
__exportStar(require("./create-table.js"), exports);
|
|
19
|
+
__exportStar(require("./delete-item.js"), exports);
|
|
20
|
+
__exportStar(require("./delete-table.js"), exports);
|
|
21
|
+
__exportStar(require("./get-item.js"), exports);
|
|
22
|
+
__exportStar(require("./put-item.js"), exports);
|
|
23
|
+
__exportStar(require("./query.js"), exports);
|
|
24
|
+
__exportStar(require("./update-item.js"), exports);
|
|
25
|
+
__exportStar(require("./update-time-to-live.js"), exports);
|
|
26
|
+
__exportStar(require("./write-transaction.js"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,6CAA2B;AAC3B,mDAAiC;AACjC,2DAAyC;AACzC,yDAAuC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AttributePath, AttributeValue } from "
|
|
2
|
-
import { type PathSubstitution, type ValueSubstitution } from "
|
|
3
|
-
import type { ConditionParams } from "
|
|
1
|
+
import type { AttributePath, AttributeValue } from "../../types.js";
|
|
2
|
+
import { type PathSubstitution, type ValueSubstitution } from "../attributes/index.js";
|
|
3
|
+
import type { ConditionParams } from "../expressions/index.js";
|
|
4
4
|
export declare function intoExpressionComponents(condition: ConditionParams): {
|
|
5
5
|
expression: string;
|
|
6
6
|
names?: Record<PathSubstitution, AttributePath>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.intoExpressionComponents = intoExpressionComponents;
|
|
4
|
-
const index_js_1 = require("
|
|
5
|
-
const expression_js_1 = require("
|
|
4
|
+
const index_js_1 = require("../attributes/index.js");
|
|
5
|
+
const expression_js_1 = require("../expressions/condition/expression.js");
|
|
6
6
|
function intoExpressionComponents(condition) {
|
|
7
7
|
const names = index_js_1.AttributeNames.create();
|
|
8
8
|
const values = index_js_1.AttributeValues.create();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../../src/commands/inputs/lib.ts"],"names":[],"mappings":";;AAUA,4DAgBC;AAzBD,qDAKgC;AAChC,0EAA6E;AAG7E,SAAgB,wBAAwB,CAAC,SAA0B;IAKjE,MAAM,KAAK,GAAG,yBAAc,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,MAAM,GAAG,0BAAe,CAAC,MAAM,EAAE,CAAC;IACxC,MAAM,UAAU,GAAG,IAAA,mCAAmB,EAAC,SAAS,CAAC,CAAC,SAAS,CAAC;QAC1D,KAAK;QACL,MAAM;KACP,CAAC,CAAC;IACH,OAAO;QACL,UAAU;QACV,KAAK,EAAE,KAAK,CAAC,gBAAgB,EAAE;QAC/B,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PutCommandInput } from "@aws-sdk/lib-dynamodb";
|
|
2
|
-
import type { Attributes } from "
|
|
3
|
-
import type { ConditionParams } from "
|
|
2
|
+
import type { Attributes } from "../../types.js";
|
|
3
|
+
import type { ConditionParams } from "../expressions/index.js";
|
|
4
4
|
export type PutItemReturnValue = "ALL_OLD" | "NONE";
|
|
5
5
|
export type PutItemInput<T extends Attributes = Attributes> = {
|
|
6
6
|
table: string;
|
|
@@ -12,4 +12,8 @@ export type PutItemInput<T extends Attributes = Attributes> = {
|
|
|
12
12
|
export type PutItemResult<T extends Attributes> = {
|
|
13
13
|
item?: T;
|
|
14
14
|
};
|
|
15
|
-
export declare
|
|
15
|
+
export declare const PutItemInput: {
|
|
16
|
+
encode: typeof encode;
|
|
17
|
+
};
|
|
18
|
+
declare function encode<T extends Attributes = Attributes>(input: PutItemInput<T>): PutCommandInput;
|
|
19
|
+
export {};
|