@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
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpdateTimeToLive = 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 UpdateTimeToLive extends base_js_1.AbstractCommand {
|
|
8
9
|
constructor(input) {
|
|
9
10
|
super({
|
|
10
11
|
input,
|
|
11
|
-
codec:
|
|
12
|
+
codec: {
|
|
13
|
+
encode: index_js_1.UpdateTimeToLiveInput.encode,
|
|
14
|
+
decode: index_js_2.UpdateTimeToLiveOutput.decode,
|
|
15
|
+
},
|
|
12
16
|
command: client_dynamodb_1.UpdateTimeToLiveCommand,
|
|
13
17
|
});
|
|
14
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-time-to-live.js","sourceRoot":"","sources":["../../../src/commands/update-time-to-live.ts"],"names":[],"mappings":";;;AAAA,8DAAmE;AACnE,uCAA4C;AAC5C,gDAA0D;AAC1D,iDAA4D;AAE5D,MAAa,gBAAiB,SAAQ,yBAIrC;IACC,YAAY,KAA4B;QACtC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,gCAAqB,CAAC,MAAM;gBACpC,MAAM,EAAE,iCAAsB,CAAC,MAAM;aACtC;YACD,OAAO,EAAE,yCAAuB;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAfD,4CAeC"}
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
import { TransactWriteCommand
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
table: string;
|
|
8
|
-
key: Attributes;
|
|
9
|
-
condition: ConditionParams;
|
|
10
|
-
};
|
|
11
|
-
export type WriteTransactionAction = {
|
|
12
|
-
put: PutItemInput;
|
|
13
|
-
} | {
|
|
14
|
-
update: UpdateItemInput;
|
|
15
|
-
} | {
|
|
16
|
-
delete: DeleteItemInput;
|
|
17
|
-
} | {
|
|
18
|
-
conditionCheck: ConditionCheckParams;
|
|
19
|
-
};
|
|
20
|
-
export interface WriteTransactionParams {
|
|
21
|
-
writes: WriteTransactionAction[];
|
|
22
|
-
}
|
|
23
|
-
export declare class WriteTransaction implements Command<TransactWriteCommandInput, TransactWriteCommand> {
|
|
24
|
-
private readonly writes;
|
|
25
|
-
private constructor();
|
|
26
|
-
toAwsCommandInput(): TransactWriteCommandInput;
|
|
27
|
-
toAwsCommand(): TransactWriteCommand;
|
|
28
|
-
static from(params: WriteTransactionParams): WriteTransaction;
|
|
1
|
+
import { TransactWriteCommand } from "@aws-sdk/lib-dynamodb";
|
|
2
|
+
import { AbstractCommand } from "./base.js";
|
|
3
|
+
import { WriteTransactionInput } from "./inputs/index.js";
|
|
4
|
+
import { WriteTransactionOutput } from "./outputs/index.js";
|
|
5
|
+
export declare class WriteTransaction extends AbstractCommand<WriteTransactionInput, WriteTransactionOutput, TransactWriteCommand> {
|
|
6
|
+
constructor(input: WriteTransactionInput);
|
|
29
7
|
}
|
|
@@ -2,74 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WriteTransaction = void 0;
|
|
4
4
|
const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// Ask the expression to stringify itself, applying the substitutions by itself.
|
|
18
|
-
const expression = (0, expression_js_1.conditionExpression)(condition).stringify({
|
|
19
|
-
names,
|
|
20
|
-
values,
|
|
5
|
+
const base_js_1 = require("./base.js");
|
|
6
|
+
const index_js_1 = require("./inputs/index.js");
|
|
7
|
+
const index_js_2 = require("./outputs/index.js");
|
|
8
|
+
class WriteTransaction extends base_js_1.AbstractCommand {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super({
|
|
11
|
+
input,
|
|
12
|
+
codec: {
|
|
13
|
+
encode: index_js_1.WriteTransactionInput.encode,
|
|
14
|
+
decode: index_js_2.WriteTransactionOutput.decode,
|
|
15
|
+
},
|
|
16
|
+
command: lib_dynamodb_1.TransactWriteCommand,
|
|
21
17
|
});
|
|
22
|
-
return {
|
|
23
|
-
TableName: table,
|
|
24
|
-
Key: key,
|
|
25
|
-
ConditionExpression: expression,
|
|
26
|
-
ExpressionAttributeNames: names.getSubstitutions(),
|
|
27
|
-
ExpressionAttributeValues: values.getSubstitutions(),
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const WriteTransactionAction = {
|
|
32
|
-
toAwsCommandInput(write) {
|
|
33
|
-
if ("put" in write) {
|
|
34
|
-
return {
|
|
35
|
-
Put: put_item_js_1.PutItemCodec.encode(write.put),
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
if ("update" in write) {
|
|
39
|
-
return {
|
|
40
|
-
Update: update_item_js_1.UpdateItemCodec.encode(write.update),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
if ("delete" in write) {
|
|
44
|
-
return {
|
|
45
|
-
Delete: delete_item_js_1.DeleteItemCodec.encode(write.delete),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
if ("conditionCheck" in write) {
|
|
49
|
-
return {
|
|
50
|
-
ConditionCheck: ConditionCheck.toAwsCommandInput(write.conditionCheck),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
(0, types_1.unreachable)(write);
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
// TODO: static tuple typing on result. I.e, if the first item is a put, the first result should be a put output you feel?.
|
|
57
|
-
class WriteTransaction {
|
|
58
|
-
writes;
|
|
59
|
-
constructor(params) {
|
|
60
|
-
const { writes } = params;
|
|
61
|
-
this.writes = writes;
|
|
62
|
-
}
|
|
63
|
-
toAwsCommandInput() {
|
|
64
|
-
return {
|
|
65
|
-
TransactItems: this.writes.map(WriteTransactionAction.toAwsCommandInput),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
toAwsCommand() {
|
|
69
|
-
return new lib_dynamodb_1.TransactWriteCommand(this.toAwsCommandInput());
|
|
70
|
-
}
|
|
71
|
-
static from(params) {
|
|
72
|
-
return new WriteTransaction(params);
|
|
73
18
|
}
|
|
74
19
|
}
|
|
75
20
|
exports.WriteTransaction = WriteTransaction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-transaction.js","sourceRoot":"","sources":["../../../src/commands/write-transaction.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"write-transaction.js","sourceRoot":"","sources":["../../../src/commands/write-transaction.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,uCAA4C;AAC5C,gDAA0D;AAC1D,iDAA4D;AAE5D,MAAa,gBAAiB,SAAQ,yBAIrC;IACC,YAAY,KAA4B;QACtC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,gCAAqB,CAAC,MAAM;gBACpC,MAAM,EAAE,iCAAsB,CAAC,MAAM;aACtC;YACD,OAAO,EAAE,mCAAoB;SAC9B,CAAC,CAAC;IACL,CAAC;CACF;AAfD,4CAeC"}
|
package/lib/cjs/index.d.ts
CHANGED
package/lib/cjs/index.js
CHANGED
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./client.js"), exports);
|
|
19
19
|
__exportStar(require("./commands/index.js"), exports);
|
|
20
20
|
__exportStar(require("./error.js"), exports);
|
|
21
|
+
__exportStar(require("./lib.js"), exports);
|
|
21
22
|
__exportStar(require("./native-client-errors.js"), exports);
|
|
22
23
|
__exportStar(require("./types.js"), exports);
|
|
23
|
-
__exportStar(require("./utils.js"), exports);
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAA2D;AAC3D,8CAA4B;AAC5B,sDAAoC;AACpC,6CAA2B;AAC3B,4DAA0C;AAC1C,6CAA2B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAA2D;AAC3D,8CAA4B;AAC5B,sDAAoC;AACpC,6CAA2B;AAC3B,2CAAyB;AACzB,4DAA0C;AAC1C,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":";;AAaA,8BAEC;AAfD;;;;;;;;;;;;GAYG;AACH,SAAgB,SAAS,CAAC,IAAU;IAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
package/lib/esm/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/esm/client.js
CHANGED
|
@@ -3,8 +3,7 @@ import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
|
|
|
3
3
|
import { NullLogger } from "@infra-blocks/null-logger";
|
|
4
4
|
import { retry } from "@infra-blocks/retry";
|
|
5
5
|
import { trusted } from "@infra-blocks/types";
|
|
6
|
-
import { CreateTable, DeleteItem, DeleteTable, GetItem, PutItem, Query, UpdateItem, UpdateTimeToLive, } from "./commands/index.js";
|
|
7
|
-
import { WriteTransaction, } from "./commands/write-transaction.js";
|
|
6
|
+
import { CreateTable, DeleteItem, DeleteTable, GetItem, PutItem, Query, UpdateItem, UpdateTimeToLive, WriteTransaction, } from "./commands/index.js";
|
|
8
7
|
import { TooManyItemsException } from "./error.js";
|
|
9
8
|
/**
|
|
10
9
|
* Wrapper class around the {@link DynamoDBDocumentClient} that provides added functionality,
|
|
@@ -253,15 +252,15 @@ export class DynamoDbClient {
|
|
|
253
252
|
/**
|
|
254
253
|
* Executes a write transaction using the TransactWriteItems API.
|
|
255
254
|
*
|
|
256
|
-
* @param
|
|
255
|
+
* @param input - The parameters describing the transaction.
|
|
257
256
|
*
|
|
258
257
|
* @see https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html
|
|
259
258
|
*/
|
|
260
|
-
async writeTransaction(
|
|
259
|
+
async writeTransaction(input) {
|
|
261
260
|
if (this.logger.isDebugEnabled()) {
|
|
262
|
-
this.logger.debug("transactWriteItems(%s)", JSON.stringify(
|
|
261
|
+
this.logger.debug("transactWriteItems(%s)", JSON.stringify(input));
|
|
263
262
|
}
|
|
264
|
-
|
|
263
|
+
return this.send(new WriteTransaction(input));
|
|
265
264
|
}
|
|
266
265
|
/**
|
|
267
266
|
* Alias for the {@link putItem} method.
|
package/lib/esm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7E,OAAO,EAAE,sBAAsB,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E,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,cAAc,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,MAAM,CAAC,MAAqB;QACjC,MAAM,CAAC,GAAG,MAAM,IAAI,EAAE,CAAC;QACvB,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QACrB,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,sBAAsB,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"}
|
|
@@ -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,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AA6B9C,gBAAgB;AAChB,MAAM,OAAgB,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,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IACnD,CAAC;CACF"}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreateTableCommand } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { AbstractCommand } from "./base.js";
|
|
3
|
+
import { CreateTableInput } from "./inputs/index.js";
|
|
4
|
+
import { CreateTableOutput } from "./outputs/index.js";
|
|
5
|
+
export class CreateTable extends AbstractCommand {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super({
|
|
8
|
+
input,
|
|
9
|
+
codec: {
|
|
10
|
+
encode: CreateTableInput.encode,
|
|
11
|
+
decode: CreateTableOutput.decode,
|
|
12
|
+
},
|
|
13
|
+
command: CreateTableCommand,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=create-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-table.js","sourceRoot":"","sources":["../../../src/commands/create-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,OAAO,WAEX,SAAQ,eAIT;IACC,YAAY,KAA2B;QACrC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,gBAAgB,CAAC,MAAM;gBAC/B,MAAM,EAAE,iBAAiB,CAAC,MAAM;aACjC;YACD,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeleteCommand } from "@aws-sdk/lib-dynamodb";
|
|
2
|
+
import { AbstractCommand } from "./base.js";
|
|
3
|
+
import { DeleteItemInput } from "./inputs/index.js";
|
|
4
|
+
import { DeleteItemOutput } from "./outputs/index.js";
|
|
5
|
+
export class DeleteItem extends AbstractCommand {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super({
|
|
8
|
+
input,
|
|
9
|
+
codec: {
|
|
10
|
+
encode: DeleteItemInput.encode,
|
|
11
|
+
decode: DeleteItemOutput.decode,
|
|
12
|
+
},
|
|
13
|
+
command: DeleteCommand,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=delete-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../src/commands/delete-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,OAAO,UAGX,SAAQ,eAIT;IACC,YAAY,KAAyB;QACnC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,eAAe,CAAC,MAAM;gBAC9B,MAAM,EAAE,gBAAgB,CAAC,MAAM;aAChC;YACD,OAAO,EAAE,aAAa;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeleteTableCommand } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { AbstractCommand } from "./base.js";
|
|
3
|
+
import { DeleteTableInput } from "./inputs/index.js";
|
|
4
|
+
import { DeleteTableOutput } from "./outputs/index.js";
|
|
5
|
+
export class DeleteTable extends AbstractCommand {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super({
|
|
8
|
+
input,
|
|
9
|
+
codec: {
|
|
10
|
+
encode: DeleteTableInput.encode,
|
|
11
|
+
decode: DeleteTableOutput.decode,
|
|
12
|
+
},
|
|
13
|
+
command: DeleteTableCommand,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=delete-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-table.js","sourceRoot":"","sources":["../../../src/commands/delete-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,OAAO,WAAY,SAAQ,eAIhC;IACC,YAAY,KAAuB;QACjC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,gBAAgB,CAAC,MAAM;gBAC/B,MAAM,EAAE,iBAAiB,CAAC,MAAM;aACjC;YACD,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -2,10 +2,4 @@ export * from "./condition/index.js";
|
|
|
2
2
|
export * from "./key-condition.js";
|
|
3
3
|
export * from "./operands/index.js";
|
|
4
4
|
export * from "./update/index.js";
|
|
5
|
-
/*
|
|
6
|
-
TODO: In the expression interfaces, a slight QoL improvement would be to assume that
|
|
7
|
-
strings are attribute names by default, and other types are values by default. The user
|
|
8
|
-
always has the option to be explicit. For example, he could write:
|
|
9
|
-
`where(attribute("name")).eq(value(42))` or `where("name").eq(42)`.
|
|
10
|
-
*/
|
|
11
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/expressions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/expressions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GetCommand } from "@aws-sdk/lib-dynamodb";
|
|
2
|
+
import { AbstractCommand } from "./base.js";
|
|
3
|
+
import { GetItemInput } from "./inputs/index.js";
|
|
4
|
+
import { GetItemOutput } from "./outputs/index.js";
|
|
5
|
+
export class GetItem extends AbstractCommand {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super({
|
|
8
|
+
input,
|
|
9
|
+
codec: {
|
|
10
|
+
encode: GetItemInput.encode,
|
|
11
|
+
decode: GetItemOutput.decode,
|
|
12
|
+
},
|
|
13
|
+
command: GetCommand,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=get-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../src/commands/get-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,OAAO,OAGX,SAAQ,eAA8D;IACtE,YAAY,KAAsB;QAChC,KAAK,CAAC;YACJ,KAAK;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,YAAY,CAAC,MAAM;gBAC3B,MAAM,EAAE,aAAa,CAAC,MAAM;aAC7B;YACD,OAAO,EAAE,UAAU;SACpB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -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";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./attributes/index.js";
|
|
2
|
+
export { CreateTable } from "./create-table.js";
|
|
3
|
+
export { DeleteItem } from "./delete-item.js";
|
|
4
|
+
export { DeleteTable } from "./delete-table.js";
|
|
2
5
|
export * from "./expressions/index.js";
|
|
6
|
+
export { GetItem } from "./get-item.js";
|
|
7
|
+
export { PutItem } from "./put-item.js";
|
|
8
|
+
export { Query } from "./query.js";
|
|
9
|
+
export { UpdateItem } from "./update-item.js";
|
|
10
|
+
export { UpdateTimeToLive } from "./update-time-to-live.js";
|
|
11
|
+
export { WriteTransaction } from "./write-transaction.js";
|
|
3
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AA0BxC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -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,16 @@
|
|
|
1
|
+
import { intoExpressionComponents } from "./lib.js";
|
|
2
|
+
export const ConditionCheckInput = {
|
|
3
|
+
encode,
|
|
4
|
+
};
|
|
5
|
+
function encode(input) {
|
|
6
|
+
const { table, key, condition } = input;
|
|
7
|
+
const { expression, names, values } = intoExpressionComponents(condition);
|
|
8
|
+
return {
|
|
9
|
+
TableName: table,
|
|
10
|
+
Key: key,
|
|
11
|
+
ConditionExpression: expression,
|
|
12
|
+
ExpressionAttributeNames: names,
|
|
13
|
+
ExpressionAttributeValues: values,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# 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,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAQpD,MAAM,CAAC,MAAM,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,wBAAwB,CAAC,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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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ACzB,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 {};
|