@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.
Files changed (410) hide show
  1. package/lib/cjs/client.d.ts +3 -4
  2. package/lib/cjs/client.js +4 -5
  3. package/lib/cjs/client.js.map +1 -1
  4. package/lib/cjs/commands/{command/base.d.ts → base.d.ts} +3 -3
  5. package/lib/cjs/commands/base.js.map +1 -0
  6. package/lib/cjs/commands/codec.js.map +1 -0
  7. package/lib/cjs/commands/{command/command.d.ts → command.d.ts} +2 -1
  8. package/lib/cjs/commands/command.js.map +1 -0
  9. package/lib/{esm/commands/command → cjs/commands}/create-table.d.ts +3 -3
  10. package/lib/cjs/commands/{command/create-table.js → create-table.js} +6 -2
  11. package/lib/cjs/commands/create-table.js.map +1 -0
  12. package/lib/{esm/commands/command → cjs/commands}/delete-item.d.ts +3 -3
  13. package/lib/cjs/commands/{command/delete-item.js → delete-item.js} +6 -2
  14. package/lib/cjs/commands/delete-item.js.map +1 -0
  15. package/lib/cjs/commands/{command/delete-table.d.ts → delete-table.d.ts} +2 -2
  16. package/lib/cjs/commands/{command/delete-table.js → delete-table.js} +6 -2
  17. package/lib/cjs/commands/delete-table.js.map +1 -0
  18. package/lib/cjs/commands/expressions/index.js +0 -6
  19. package/lib/cjs/commands/expressions/index.js.map +1 -1
  20. package/lib/cjs/commands/{command/get-item.d.ts → get-item.d.ts} +3 -3
  21. package/lib/cjs/commands/{command/get-item.js → get-item.js} +6 -2
  22. package/lib/cjs/commands/get-item.js.map +1 -0
  23. package/lib/cjs/commands/index.d.ts +14 -2
  24. package/lib/cjs/commands/index.js +20 -1
  25. package/lib/cjs/commands/index.js.map +1 -1
  26. package/lib/cjs/commands/inputs/condition-check.d.ts +15 -0
  27. package/lib/cjs/commands/inputs/condition-check.js +19 -0
  28. package/lib/cjs/commands/inputs/condition-check.js.map +1 -0
  29. package/lib/{esm/commands/command → cjs/commands}/inputs/create-table.d.ts +6 -2
  30. package/lib/cjs/commands/{command/inputs → inputs}/create-table.js +4 -1
  31. package/lib/cjs/commands/inputs/create-table.js.map +1 -0
  32. package/lib/cjs/commands/{command/inputs → inputs}/delete-item.d.ts +7 -3
  33. package/lib/cjs/commands/{command/inputs → inputs}/delete-item.js +4 -1
  34. package/lib/cjs/commands/inputs/delete-item.js.map +1 -0
  35. package/lib/cjs/commands/inputs/delete-table.d.ts +9 -0
  36. package/lib/cjs/commands/{command/inputs → inputs}/delete-table.js +4 -1
  37. package/lib/cjs/commands/inputs/delete-table.js.map +1 -0
  38. package/lib/{esm/commands/command → cjs/commands}/inputs/get-item.d.ts +6 -2
  39. package/lib/cjs/commands/{command/inputs → inputs}/get-item.js +4 -1
  40. package/lib/cjs/commands/inputs/get-item.js.map +1 -0
  41. package/lib/cjs/commands/inputs/index.d.ts +10 -0
  42. package/lib/cjs/commands/inputs/index.js +27 -0
  43. package/lib/cjs/commands/inputs/index.js.map +1 -0
  44. package/lib/cjs/commands/{command/inputs → inputs}/lib.d.ts +3 -3
  45. package/lib/cjs/commands/{command/inputs → inputs}/lib.js +2 -2
  46. package/lib/cjs/commands/inputs/lib.js.map +1 -0
  47. package/lib/{esm/commands/command → cjs/commands}/inputs/put-item.d.ts +7 -3
  48. package/lib/cjs/commands/{command/inputs → inputs}/put-item.js +4 -1
  49. package/lib/cjs/commands/inputs/put-item.js.map +1 -0
  50. package/lib/{esm/commands/command → cjs/commands}/inputs/query.d.ts +7 -3
  51. package/lib/cjs/commands/{command/inputs → inputs}/query.js +4 -1
  52. package/lib/cjs/commands/inputs/query.js.map +1 -0
  53. package/lib/{esm/commands/command → cjs/commands}/inputs/update-item.d.ts +6 -3
  54. package/lib/cjs/commands/{command/inputs → inputs}/update-item.js +7 -4
  55. package/lib/cjs/commands/inputs/update-item.js.map +1 -0
  56. package/lib/cjs/commands/{command/inputs → inputs}/update-time-to-live.d.ts +5 -1
  57. package/lib/cjs/commands/{command/inputs → inputs}/update-time-to-live.js +4 -1
  58. package/lib/cjs/commands/inputs/update-time-to-live.js.map +1 -0
  59. package/lib/cjs/commands/inputs/write-transaction.d.ts +20 -0
  60. package/lib/cjs/commands/inputs/write-transaction.js +41 -0
  61. package/lib/cjs/commands/inputs/write-transaction.js.map +1 -0
  62. package/lib/cjs/commands/outputs/create-table.d.ts +7 -0
  63. package/lib/cjs/commands/outputs/create-table.js +10 -0
  64. package/lib/cjs/commands/outputs/create-table.js.map +1 -0
  65. package/lib/cjs/commands/outputs/delete-item.d.ts +10 -0
  66. package/lib/cjs/commands/{command/outputs → outputs}/delete-item.js +4 -1
  67. package/lib/cjs/commands/outputs/delete-item.js.map +1 -0
  68. package/lib/cjs/commands/outputs/delete-table.d.ts +7 -0
  69. package/lib/cjs/commands/outputs/delete-table.js +10 -0
  70. package/lib/cjs/commands/outputs/delete-table.js.map +1 -0
  71. package/lib/cjs/commands/outputs/get-item.d.ts +10 -0
  72. package/lib/cjs/commands/outputs/get-item.js +11 -0
  73. package/lib/cjs/commands/outputs/get-item.js.map +1 -0
  74. package/lib/cjs/commands/outputs/index.d.ts +9 -0
  75. package/lib/cjs/commands/outputs/index.js +26 -0
  76. package/lib/cjs/commands/outputs/index.js.map +1 -0
  77. package/lib/cjs/commands/outputs/lib.js.map +1 -0
  78. package/lib/cjs/commands/outputs/put-item.d.ts +10 -0
  79. package/lib/cjs/commands/outputs/put-item.js +11 -0
  80. package/lib/cjs/commands/outputs/put-item.js.map +1 -0
  81. package/lib/cjs/commands/outputs/query.d.ts +13 -0
  82. package/lib/cjs/commands/{command/outputs → outputs}/query.js +4 -1
  83. package/lib/cjs/commands/outputs/query.js.map +1 -0
  84. package/lib/cjs/commands/outputs/update-item.d.ts +7 -0
  85. package/lib/cjs/commands/outputs/update-item.js +10 -0
  86. package/lib/cjs/commands/outputs/update-item.js.map +1 -0
  87. package/lib/cjs/commands/outputs/update-time-to-live.d.ts +7 -0
  88. package/lib/cjs/commands/outputs/update-time-to-live.js +10 -0
  89. package/lib/cjs/commands/outputs/update-time-to-live.js.map +1 -0
  90. package/lib/cjs/commands/outputs/write-transaction.d.ts +7 -0
  91. package/lib/cjs/commands/outputs/write-transaction.js +10 -0
  92. package/lib/cjs/commands/outputs/write-transaction.js.map +1 -0
  93. package/lib/{esm/commands/command → cjs/commands}/put-item.d.ts +3 -3
  94. package/lib/cjs/commands/{command/put-item.js → put-item.js} +6 -2
  95. package/lib/cjs/commands/put-item.js.map +1 -0
  96. package/lib/cjs/commands/{command/query.d.ts → query.d.ts} +3 -3
  97. package/lib/cjs/commands/{command/query.js → query.js} +6 -2
  98. package/lib/cjs/commands/query.js.map +1 -0
  99. package/lib/{esm/commands/command → cjs/commands}/update-item.d.ts +3 -3
  100. package/lib/cjs/commands/{command/update-item.js → update-item.js} +6 -2
  101. package/lib/cjs/commands/update-item.js.map +1 -0
  102. package/lib/cjs/commands/{command/update-time-to-live.d.ts → update-time-to-live.d.ts} +2 -2
  103. package/lib/cjs/commands/{command/update-time-to-live.js → update-time-to-live.js} +6 -2
  104. package/lib/cjs/commands/update-time-to-live.js.map +1 -0
  105. package/lib/cjs/commands/write-transaction.d.ts +6 -28
  106. package/lib/cjs/commands/write-transaction.js +12 -67
  107. package/lib/cjs/commands/write-transaction.js.map +1 -1
  108. package/lib/cjs/index.d.ts +1 -1
  109. package/lib/cjs/index.js +1 -1
  110. package/lib/cjs/index.js.map +1 -1
  111. package/lib/cjs/{utils.js → lib.js} +1 -1
  112. package/lib/cjs/lib.js.map +1 -0
  113. package/lib/esm/client.d.ts +3 -4
  114. package/lib/esm/client.js +5 -6
  115. package/lib/esm/client.js.map +1 -1
  116. package/lib/esm/commands/{command/base.d.ts → base.d.ts} +3 -3
  117. package/lib/esm/commands/base.js.map +1 -0
  118. package/lib/esm/commands/codec.js.map +1 -0
  119. package/lib/esm/commands/{command/command.d.ts → command.d.ts} +2 -1
  120. package/lib/esm/commands/command.js.map +1 -0
  121. package/lib/{cjs/commands/command → esm/commands}/create-table.d.ts +3 -3
  122. package/lib/esm/commands/create-table.js +17 -0
  123. package/lib/esm/commands/create-table.js.map +1 -0
  124. package/lib/{cjs/commands/command → esm/commands}/delete-item.d.ts +3 -3
  125. package/lib/esm/commands/delete-item.js +17 -0
  126. package/lib/esm/commands/delete-item.js.map +1 -0
  127. package/lib/esm/commands/{command/delete-table.d.ts → delete-table.d.ts} +2 -2
  128. package/lib/esm/commands/delete-table.js +17 -0
  129. package/lib/esm/commands/delete-table.js.map +1 -0
  130. package/lib/esm/commands/expressions/index.js +0 -6
  131. package/lib/esm/commands/expressions/index.js.map +1 -1
  132. package/lib/esm/commands/{command/get-item.d.ts → get-item.d.ts} +3 -3
  133. package/lib/esm/commands/get-item.js +17 -0
  134. package/lib/esm/commands/get-item.js.map +1 -0
  135. package/lib/esm/commands/index.d.ts +14 -2
  136. package/lib/esm/commands/index.js +10 -1
  137. package/lib/esm/commands/index.js.map +1 -1
  138. package/lib/esm/commands/inputs/condition-check.d.ts +15 -0
  139. package/lib/esm/commands/inputs/condition-check.js +16 -0
  140. package/lib/esm/commands/inputs/condition-check.js.map +1 -0
  141. package/lib/{cjs/commands/command → esm/commands}/inputs/create-table.d.ts +6 -2
  142. package/lib/esm/commands/{command/inputs → inputs}/create-table.js +4 -1
  143. package/lib/esm/commands/inputs/create-table.js.map +1 -0
  144. package/lib/esm/commands/{command/inputs → inputs}/delete-item.d.ts +7 -3
  145. package/lib/esm/commands/{command/inputs → inputs}/delete-item.js +4 -1
  146. package/lib/esm/commands/inputs/delete-item.js.map +1 -0
  147. package/lib/esm/commands/inputs/delete-table.d.ts +9 -0
  148. package/lib/esm/commands/inputs/delete-table.js +9 -0
  149. package/lib/esm/commands/inputs/delete-table.js.map +1 -0
  150. package/lib/{cjs/commands/command → esm/commands}/inputs/get-item.d.ts +6 -2
  151. package/lib/esm/commands/inputs/get-item.js +11 -0
  152. package/lib/esm/commands/inputs/get-item.js.map +1 -0
  153. package/lib/esm/commands/inputs/index.d.ts +10 -0
  154. package/lib/esm/commands/inputs/index.js +11 -0
  155. package/lib/esm/commands/inputs/index.js.map +1 -0
  156. package/lib/esm/commands/{command/inputs → inputs}/lib.d.ts +3 -3
  157. package/lib/esm/commands/{command/inputs → inputs}/lib.js +2 -2
  158. package/lib/esm/commands/inputs/lib.js.map +1 -0
  159. package/lib/{cjs/commands/command → esm/commands}/inputs/put-item.d.ts +7 -3
  160. package/lib/esm/commands/{command/inputs → inputs}/put-item.js +4 -1
  161. package/lib/esm/commands/inputs/put-item.js.map +1 -0
  162. package/lib/{cjs/commands/command → esm/commands}/inputs/query.d.ts +7 -3
  163. package/lib/esm/commands/{command/inputs → inputs}/query.js +4 -1
  164. package/lib/esm/commands/inputs/query.js.map +1 -0
  165. package/lib/{cjs/commands/command → esm/commands}/inputs/update-item.d.ts +6 -3
  166. package/lib/esm/commands/{command/inputs → inputs}/update-item.js +7 -4
  167. package/lib/esm/commands/inputs/update-item.js.map +1 -0
  168. package/lib/esm/commands/{command/inputs → inputs}/update-time-to-live.d.ts +5 -1
  169. package/lib/esm/commands/{command/inputs → inputs}/update-time-to-live.js +4 -1
  170. package/lib/esm/commands/inputs/update-time-to-live.js.map +1 -0
  171. package/lib/esm/commands/inputs/write-transaction.d.ts +20 -0
  172. package/lib/esm/commands/inputs/write-transaction.js +38 -0
  173. package/lib/esm/commands/inputs/write-transaction.js.map +1 -0
  174. package/lib/esm/commands/outputs/create-table.d.ts +7 -0
  175. package/lib/esm/commands/outputs/create-table.js +7 -0
  176. package/lib/esm/commands/outputs/create-table.js.map +1 -0
  177. package/lib/esm/commands/outputs/delete-item.d.ts +10 -0
  178. package/lib/esm/commands/{command/outputs → outputs}/delete-item.js +4 -1
  179. package/lib/esm/commands/outputs/delete-item.js.map +1 -0
  180. package/lib/esm/commands/outputs/delete-table.d.ts +7 -0
  181. package/lib/esm/commands/outputs/delete-table.js +7 -0
  182. package/lib/esm/commands/outputs/delete-table.js.map +1 -0
  183. package/lib/esm/commands/outputs/get-item.d.ts +10 -0
  184. package/lib/esm/commands/outputs/get-item.js +8 -0
  185. package/lib/esm/commands/outputs/get-item.js.map +1 -0
  186. package/lib/esm/commands/outputs/index.d.ts +9 -0
  187. package/lib/esm/commands/outputs/index.js +10 -0
  188. package/lib/esm/commands/outputs/index.js.map +1 -0
  189. package/lib/esm/commands/outputs/lib.js.map +1 -0
  190. package/lib/esm/commands/outputs/put-item.d.ts +10 -0
  191. package/lib/esm/commands/outputs/put-item.js +8 -0
  192. package/lib/esm/commands/outputs/put-item.js.map +1 -0
  193. package/lib/esm/commands/outputs/query.d.ts +13 -0
  194. package/lib/esm/commands/{command/outputs → outputs}/query.js +4 -1
  195. package/lib/esm/commands/outputs/query.js.map +1 -0
  196. package/lib/esm/commands/outputs/update-item.d.ts +7 -0
  197. package/lib/esm/commands/outputs/update-item.js +7 -0
  198. package/lib/esm/commands/outputs/update-item.js.map +1 -0
  199. package/lib/esm/commands/outputs/update-time-to-live.d.ts +7 -0
  200. package/lib/esm/commands/outputs/update-time-to-live.js +7 -0
  201. package/lib/esm/commands/outputs/update-time-to-live.js.map +1 -0
  202. package/lib/esm/commands/outputs/write-transaction.d.ts +7 -0
  203. package/lib/esm/commands/outputs/write-transaction.js +7 -0
  204. package/lib/esm/commands/outputs/write-transaction.js.map +1 -0
  205. package/lib/{cjs/commands/command → esm/commands}/put-item.d.ts +3 -3
  206. package/lib/esm/commands/put-item.js +17 -0
  207. package/lib/esm/commands/put-item.js.map +1 -0
  208. package/lib/esm/commands/{command/query.d.ts → query.d.ts} +3 -3
  209. package/lib/esm/commands/{command/query.js → query.js} +6 -2
  210. package/lib/esm/commands/query.js.map +1 -0
  211. package/lib/{cjs/commands/command → esm/commands}/update-item.d.ts +3 -3
  212. package/lib/esm/commands/update-item.js +17 -0
  213. package/lib/esm/commands/update-item.js.map +1 -0
  214. package/lib/esm/commands/{command/update-time-to-live.d.ts → update-time-to-live.d.ts} +2 -2
  215. package/lib/esm/commands/update-time-to-live.js +17 -0
  216. package/lib/esm/commands/update-time-to-live.js.map +1 -0
  217. package/lib/esm/commands/write-transaction.d.ts +6 -28
  218. package/lib/esm/commands/write-transaction.js +13 -68
  219. package/lib/esm/commands/write-transaction.js.map +1 -1
  220. package/lib/esm/index.d.ts +1 -1
  221. package/lib/esm/index.js +1 -1
  222. package/lib/esm/index.js.map +1 -1
  223. package/lib/esm/{utils.js → lib.js} +1 -1
  224. package/lib/esm/lib.js.map +1 -0
  225. package/package.json +1 -1
  226. package/lib/cjs/commands/command/base.js.map +0 -1
  227. package/lib/cjs/commands/command/codecs/codec.js.map +0 -1
  228. package/lib/cjs/commands/command/codecs/create-table.d.ts +0 -6
  229. package/lib/cjs/commands/command/codecs/create-table.js +0 -10
  230. package/lib/cjs/commands/command/codecs/create-table.js.map +0 -1
  231. package/lib/cjs/commands/command/codecs/delete-item.d.ts +0 -6
  232. package/lib/cjs/commands/command/codecs/delete-item.js +0 -10
  233. package/lib/cjs/commands/command/codecs/delete-item.js.map +0 -1
  234. package/lib/cjs/commands/command/codecs/delete-table.d.ts +0 -6
  235. package/lib/cjs/commands/command/codecs/delete-table.js +0 -10
  236. package/lib/cjs/commands/command/codecs/delete-table.js.map +0 -1
  237. package/lib/cjs/commands/command/codecs/get-item.d.ts +0 -5
  238. package/lib/cjs/commands/command/codecs/get-item.js +0 -10
  239. package/lib/cjs/commands/command/codecs/get-item.js.map +0 -1
  240. package/lib/cjs/commands/command/codecs/put-item.d.ts +0 -5
  241. package/lib/cjs/commands/command/codecs/put-item.js +0 -10
  242. package/lib/cjs/commands/command/codecs/put-item.js.map +0 -1
  243. package/lib/cjs/commands/command/codecs/query.d.ts +0 -6
  244. package/lib/cjs/commands/command/codecs/query.js +0 -10
  245. package/lib/cjs/commands/command/codecs/query.js.map +0 -1
  246. package/lib/cjs/commands/command/codecs/update-item.d.ts +0 -6
  247. package/lib/cjs/commands/command/codecs/update-item.js +0 -10
  248. package/lib/cjs/commands/command/codecs/update-item.js.map +0 -1
  249. package/lib/cjs/commands/command/codecs/update-time-to-live.d.ts +0 -6
  250. package/lib/cjs/commands/command/codecs/update-time-to-live.js +0 -10
  251. package/lib/cjs/commands/command/codecs/update-time-to-live.js.map +0 -1
  252. package/lib/cjs/commands/command/command.js.map +0 -1
  253. package/lib/cjs/commands/command/create-table.js.map +0 -1
  254. package/lib/cjs/commands/command/delete-item.js.map +0 -1
  255. package/lib/cjs/commands/command/delete-table.js.map +0 -1
  256. package/lib/cjs/commands/command/get-item.js.map +0 -1
  257. package/lib/cjs/commands/command/index.d.ts +0 -12
  258. package/lib/cjs/commands/command/index.js +0 -37
  259. package/lib/cjs/commands/command/index.js.map +0 -1
  260. package/lib/cjs/commands/command/inputs/create-table.js.map +0 -1
  261. package/lib/cjs/commands/command/inputs/delete-item.js.map +0 -1
  262. package/lib/cjs/commands/command/inputs/delete-table.d.ts +0 -5
  263. package/lib/cjs/commands/command/inputs/delete-table.js.map +0 -1
  264. package/lib/cjs/commands/command/inputs/get-item.js.map +0 -1
  265. package/lib/cjs/commands/command/inputs/index.d.ts +0 -8
  266. package/lib/cjs/commands/command/inputs/index.js +0 -3
  267. package/lib/cjs/commands/command/inputs/index.js.map +0 -1
  268. package/lib/cjs/commands/command/inputs/lib.js.map +0 -1
  269. package/lib/cjs/commands/command/inputs/put-item.js.map +0 -1
  270. package/lib/cjs/commands/command/inputs/query.js.map +0 -1
  271. package/lib/cjs/commands/command/inputs/update-item.js.map +0 -1
  272. package/lib/cjs/commands/command/inputs/update-time-to-live.js.map +0 -1
  273. package/lib/cjs/commands/command/outputs/create-table.d.ts +0 -3
  274. package/lib/cjs/commands/command/outputs/create-table.js +0 -7
  275. package/lib/cjs/commands/command/outputs/create-table.js.map +0 -1
  276. package/lib/cjs/commands/command/outputs/delete-item.d.ts +0 -6
  277. package/lib/cjs/commands/command/outputs/delete-item.js.map +0 -1
  278. package/lib/cjs/commands/command/outputs/delete-table.d.ts +0 -3
  279. package/lib/cjs/commands/command/outputs/delete-table.js +0 -7
  280. package/lib/cjs/commands/command/outputs/delete-table.js.map +0 -1
  281. package/lib/cjs/commands/command/outputs/get-item.d.ts +0 -6
  282. package/lib/cjs/commands/command/outputs/get-item.js +0 -7
  283. package/lib/cjs/commands/command/outputs/get-item.js.map +0 -1
  284. package/lib/cjs/commands/command/outputs/index.d.ts +0 -8
  285. package/lib/cjs/commands/command/outputs/index.js +0 -3
  286. package/lib/cjs/commands/command/outputs/index.js.map +0 -1
  287. package/lib/cjs/commands/command/outputs/lib.js.map +0 -1
  288. package/lib/cjs/commands/command/outputs/put-item.d.ts +0 -6
  289. package/lib/cjs/commands/command/outputs/put-item.js +0 -7
  290. package/lib/cjs/commands/command/outputs/put-item.js.map +0 -1
  291. package/lib/cjs/commands/command/outputs/query.d.ts +0 -9
  292. package/lib/cjs/commands/command/outputs/query.js.map +0 -1
  293. package/lib/cjs/commands/command/outputs/update-item.d.ts +0 -3
  294. package/lib/cjs/commands/command/outputs/update-item.js +0 -7
  295. package/lib/cjs/commands/command/outputs/update-item.js.map +0 -1
  296. package/lib/cjs/commands/command/outputs/update-time-to-live.d.ts +0 -3
  297. package/lib/cjs/commands/command/outputs/update-time-to-live.js +0 -7
  298. package/lib/cjs/commands/command/outputs/update-time-to-live.js.map +0 -1
  299. package/lib/cjs/commands/command/put-item.js.map +0 -1
  300. package/lib/cjs/commands/command/query.js.map +0 -1
  301. package/lib/cjs/commands/command/update-item.js.map +0 -1
  302. package/lib/cjs/commands/command/update-time-to-live.js.map +0 -1
  303. package/lib/cjs/commands/types.d.ts +0 -4
  304. package/lib/cjs/commands/types.js +0 -3
  305. package/lib/cjs/commands/types.js.map +0 -1
  306. package/lib/cjs/utils.js.map +0 -1
  307. package/lib/esm/commands/command/base.js.map +0 -1
  308. package/lib/esm/commands/command/codecs/codec.js.map +0 -1
  309. package/lib/esm/commands/command/codecs/create-table.d.ts +0 -6
  310. package/lib/esm/commands/command/codecs/create-table.js +0 -7
  311. package/lib/esm/commands/command/codecs/create-table.js.map +0 -1
  312. package/lib/esm/commands/command/codecs/delete-item.d.ts +0 -6
  313. package/lib/esm/commands/command/codecs/delete-item.js +0 -7
  314. package/lib/esm/commands/command/codecs/delete-item.js.map +0 -1
  315. package/lib/esm/commands/command/codecs/delete-table.d.ts +0 -6
  316. package/lib/esm/commands/command/codecs/delete-table.js +0 -7
  317. package/lib/esm/commands/command/codecs/delete-table.js.map +0 -1
  318. package/lib/esm/commands/command/codecs/get-item.d.ts +0 -5
  319. package/lib/esm/commands/command/codecs/get-item.js +0 -7
  320. package/lib/esm/commands/command/codecs/get-item.js.map +0 -1
  321. package/lib/esm/commands/command/codecs/put-item.d.ts +0 -5
  322. package/lib/esm/commands/command/codecs/put-item.js +0 -7
  323. package/lib/esm/commands/command/codecs/put-item.js.map +0 -1
  324. package/lib/esm/commands/command/codecs/query.d.ts +0 -6
  325. package/lib/esm/commands/command/codecs/query.js +0 -7
  326. package/lib/esm/commands/command/codecs/query.js.map +0 -1
  327. package/lib/esm/commands/command/codecs/update-item.d.ts +0 -6
  328. package/lib/esm/commands/command/codecs/update-item.js +0 -7
  329. package/lib/esm/commands/command/codecs/update-item.js.map +0 -1
  330. package/lib/esm/commands/command/codecs/update-time-to-live.d.ts +0 -6
  331. package/lib/esm/commands/command/codecs/update-time-to-live.js +0 -7
  332. package/lib/esm/commands/command/codecs/update-time-to-live.js.map +0 -1
  333. package/lib/esm/commands/command/command.js.map +0 -1
  334. package/lib/esm/commands/command/create-table.js +0 -13
  335. package/lib/esm/commands/command/create-table.js.map +0 -1
  336. package/lib/esm/commands/command/delete-item.js +0 -13
  337. package/lib/esm/commands/command/delete-item.js.map +0 -1
  338. package/lib/esm/commands/command/delete-table.js +0 -13
  339. package/lib/esm/commands/command/delete-table.js.map +0 -1
  340. package/lib/esm/commands/command/get-item.js +0 -13
  341. package/lib/esm/commands/command/get-item.js.map +0 -1
  342. package/lib/esm/commands/command/index.d.ts +0 -12
  343. package/lib/esm/commands/command/index.js +0 -12
  344. package/lib/esm/commands/command/index.js.map +0 -1
  345. package/lib/esm/commands/command/inputs/create-table.js.map +0 -1
  346. package/lib/esm/commands/command/inputs/delete-item.js.map +0 -1
  347. package/lib/esm/commands/command/inputs/delete-table.d.ts +0 -5
  348. package/lib/esm/commands/command/inputs/delete-table.js +0 -6
  349. package/lib/esm/commands/command/inputs/delete-table.js.map +0 -1
  350. package/lib/esm/commands/command/inputs/get-item.js +0 -8
  351. package/lib/esm/commands/command/inputs/get-item.js.map +0 -1
  352. package/lib/esm/commands/command/inputs/index.d.ts +0 -8
  353. package/lib/esm/commands/command/inputs/index.js +0 -2
  354. package/lib/esm/commands/command/inputs/index.js.map +0 -1
  355. package/lib/esm/commands/command/inputs/lib.js.map +0 -1
  356. package/lib/esm/commands/command/inputs/put-item.js.map +0 -1
  357. package/lib/esm/commands/command/inputs/query.js.map +0 -1
  358. package/lib/esm/commands/command/inputs/update-item.js.map +0 -1
  359. package/lib/esm/commands/command/inputs/update-time-to-live.js.map +0 -1
  360. package/lib/esm/commands/command/outputs/create-table.d.ts +0 -3
  361. package/lib/esm/commands/command/outputs/create-table.js +0 -4
  362. package/lib/esm/commands/command/outputs/create-table.js.map +0 -1
  363. package/lib/esm/commands/command/outputs/delete-item.d.ts +0 -6
  364. package/lib/esm/commands/command/outputs/delete-item.js.map +0 -1
  365. package/lib/esm/commands/command/outputs/delete-table.d.ts +0 -3
  366. package/lib/esm/commands/command/outputs/delete-table.js +0 -4
  367. package/lib/esm/commands/command/outputs/delete-table.js.map +0 -1
  368. package/lib/esm/commands/command/outputs/get-item.d.ts +0 -6
  369. package/lib/esm/commands/command/outputs/get-item.js +0 -3
  370. package/lib/esm/commands/command/outputs/get-item.js.map +0 -1
  371. package/lib/esm/commands/command/outputs/index.d.ts +0 -8
  372. package/lib/esm/commands/command/outputs/index.js +0 -2
  373. package/lib/esm/commands/command/outputs/index.js.map +0 -1
  374. package/lib/esm/commands/command/outputs/lib.js.map +0 -1
  375. package/lib/esm/commands/command/outputs/put-item.d.ts +0 -6
  376. package/lib/esm/commands/command/outputs/put-item.js +0 -3
  377. package/lib/esm/commands/command/outputs/put-item.js.map +0 -1
  378. package/lib/esm/commands/command/outputs/query.d.ts +0 -9
  379. package/lib/esm/commands/command/outputs/query.js.map +0 -1
  380. package/lib/esm/commands/command/outputs/update-item.d.ts +0 -3
  381. package/lib/esm/commands/command/outputs/update-item.js +0 -4
  382. package/lib/esm/commands/command/outputs/update-item.js.map +0 -1
  383. package/lib/esm/commands/command/outputs/update-time-to-live.d.ts +0 -3
  384. package/lib/esm/commands/command/outputs/update-time-to-live.js +0 -4
  385. package/lib/esm/commands/command/outputs/update-time-to-live.js.map +0 -1
  386. package/lib/esm/commands/command/put-item.js +0 -13
  387. package/lib/esm/commands/command/put-item.js.map +0 -1
  388. package/lib/esm/commands/command/query.js.map +0 -1
  389. package/lib/esm/commands/command/update-item.js +0 -13
  390. package/lib/esm/commands/command/update-item.js.map +0 -1
  391. package/lib/esm/commands/command/update-time-to-live.js +0 -13
  392. package/lib/esm/commands/command/update-time-to-live.js.map +0 -1
  393. package/lib/esm/commands/types.d.ts +0 -4
  394. package/lib/esm/commands/types.js +0 -2
  395. package/lib/esm/commands/types.js.map +0 -1
  396. package/lib/esm/utils.js.map +0 -1
  397. /package/lib/cjs/commands/{command/base.js → base.js} +0 -0
  398. /package/lib/cjs/commands/{command/codecs/codec.d.ts → codec.d.ts} +0 -0
  399. /package/lib/cjs/commands/{command/codecs/codec.js → codec.js} +0 -0
  400. /package/lib/cjs/commands/{command/command.js → command.js} +0 -0
  401. /package/lib/cjs/commands/{command/outputs → outputs}/lib.d.ts +0 -0
  402. /package/lib/cjs/commands/{command/outputs → outputs}/lib.js +0 -0
  403. /package/lib/cjs/{utils.d.ts → lib.d.ts} +0 -0
  404. /package/lib/esm/commands/{command/base.js → base.js} +0 -0
  405. /package/lib/esm/commands/{command/codecs/codec.d.ts → codec.d.ts} +0 -0
  406. /package/lib/esm/commands/{command/codecs/codec.js → codec.js} +0 -0
  407. /package/lib/esm/commands/{command/command.js → command.js} +0 -0
  408. /package/lib/esm/commands/{command/outputs → outputs}/lib.d.ts +0 -0
  409. /package/lib/esm/commands/{command/outputs → outputs}/lib.js +0 -0
  410. /package/lib/esm/{utils.d.ts → lib.d.ts} +0 -0
@@ -1,5 +1,8 @@
1
1
  import { intoExpressionComponents } from "./lib.js";
2
- export function encode(input) {
2
+ export const DeleteItemInput = {
3
+ encode,
4
+ };
5
+ function encode(input) {
3
6
  const result = {
4
7
  TableName: input.table,
5
8
  Key: input.key,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../src/commands/inputs/delete-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAcpD,MAAM,CAAC,MAAM,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,wBAAwB,CAC5D,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,9 @@
1
+ export const DeleteTableInput = {
2
+ encode,
3
+ };
4
+ function encode(input) {
5
+ return {
6
+ TableName: input.name,
7
+ };
8
+ }
9
+ //# sourceMappingURL=delete-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-table.js","sourceRoot":"","sources":["../../../../src/commands/inputs/delete-table.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,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 "../../../types.js";
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 function encode<K extends KeyAttributes = KeyAttributes>(input: GetItemInput<K>): GetCommandInput;
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,11 @@
1
+ export const GetItemInput = {
2
+ encode,
3
+ };
4
+ function encode(input) {
5
+ const key = input.key;
6
+ return {
7
+ TableName: input.table,
8
+ Key: key,
9
+ };
10
+ }
11
+ //# sourceMappingURL=get-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../../src/commands/inputs/get-item.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,MAAM,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,11 @@
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";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
@@ -1,6 +1,6 @@
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";
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,5 +1,5 @@
1
- import { AttributeNames, AttributeValues, } from "../../attributes/index.js";
2
- import { conditionExpression } from "../../expressions/condition/expression.js";
1
+ import { AttributeNames, AttributeValues, } from "../attributes/index.js";
2
+ import { conditionExpression } from "../expressions/condition/expression.js";
3
3
  export function intoExpressionComponents(condition) {
4
4
  const names = AttributeNames.create();
5
5
  const values = AttributeValues.create();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../../src/commands/inputs/lib.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,GAGhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAG7E,MAAM,UAAU,wBAAwB,CAAC,SAA0B;IAKjE,MAAM,KAAK,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC;IACxC,MAAM,UAAU,GAAG,mBAAmB,CAAC,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 "../../../types.js";
3
- import type { ConditionParams } from "../../expressions/index.js";
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 function encode<T extends Attributes = Attributes>(input: PutItemInput<T>): PutCommandInput;
15
+ export declare const PutItemInput: {
16
+ encode: typeof encode;
17
+ };
18
+ declare function encode<T extends Attributes = Attributes>(input: PutItemInput<T>): PutCommandInput;
19
+ export {};
@@ -1,5 +1,8 @@
1
1
  import { intoExpressionComponents } from "./lib.js";
2
- export function encode(input) {
2
+ export const PutItemInput = {
3
+ encode,
4
+ };
5
+ function encode(input) {
3
6
  const result = {
4
7
  TableName: input.table,
5
8
  Item: input.item,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"put-item.js","sourceRoot":"","sources":["../../../../src/commands/inputs/put-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAgBpD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,KAAsB;IAEtB,MAAM,MAAM,GAAoB;QAC9B,SAAS,EAAE,KAAK,CAAC,KAAK;QACtB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,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,wBAAwB,CAC5D,KAAK,CAAC,SAAS,CAChB,CAAC;IAEF,OAAO;QACL,GAAG,MAAM;QACT,mBAAmB,EAAE,UAAU;QAC/B,wBAAwB,EAAE,KAAK;QAC/B,yBAAyB,EAAE,MAAM;KAClC,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { QueryCommandInput } from "@aws-sdk/lib-dynamodb";
2
- import type { KeyAttributes } from "../../../types.js";
3
- import type { KeyConditionExpression } from "../../expressions/index.js";
2
+ import type { KeyAttributes } from "../../types.js";
3
+ import type { KeyConditionExpression } from "../expressions/index.js";
4
4
  export type QueryInput<K extends KeyAttributes = KeyAttributes> = {
5
5
  table: string;
6
6
  index?: string;
@@ -10,4 +10,8 @@ export type QueryInput<K extends KeyAttributes = KeyAttributes> = {
10
10
  limit?: number;
11
11
  scanIndexForward?: boolean;
12
12
  };
13
- export declare function encode<K extends KeyAttributes = KeyAttributes>(input: QueryInput<K>): QueryCommandInput;
13
+ export declare const QueryInput: {
14
+ encode: typeof encode;
15
+ };
16
+ declare function encode<K extends KeyAttributes = KeyAttributes>(input: QueryInput<K>): QueryCommandInput;
17
+ export {};
@@ -1,5 +1,8 @@
1
1
  import { intoExpressionComponents } from "./lib.js";
2
- export function encode(input) {
2
+ export const QueryInput = {
3
+ encode,
4
+ };
5
+ function encode(input) {
3
6
  const { table, index, condition, consistentRead, exclusiveStartKey, limit, scanIndexForward, } = input;
4
7
  const { expression, names, values } = intoExpressionComponents(condition);
5
8
  return {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/commands/inputs/query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAYpD,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,KAAoB;IAEpB,MAAM,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,gBAAgB,GACjB,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAC1E,OAAO;QACL,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;QAChB,cAAc,EAAE,cAAc;QAC9B,sBAAsB,EAAE,UAAU;QAClC,wBAAwB,EAAE,KAAK;QAC/B,yBAAyB,EAAE,MAAM;QACjC,iBAAiB,EAAE,iBAAiB;QACpC,KAAK,EAAE,KAAK;QACZ,gBAAgB,EAAE,gBAAgB;KACnC,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { UpdateCommandInput as NativeUpdateCommandInput } from "@aws-sdk/lib-dynamodb";
2
2
  import type { WithRequired } from "@infra-blocks/types";
3
- import type { KeyAttributes } from "../../../types.js";
4
- import { type ConditionParams, type UpdateExpressionParams } from "../../expressions/index.js";
3
+ import type { KeyAttributes } from "../../types.js";
4
+ import { type ConditionParams, type UpdateExpressionParams } from "../expressions/index.js";
5
5
  type UpdateCommandInput = WithRequired<NativeUpdateCommandInput, "UpdateExpression">;
6
6
  export interface UpdateItemInput<K extends KeyAttributes = KeyAttributes> {
7
7
  table: string;
@@ -9,5 +9,8 @@ export interface UpdateItemInput<K extends KeyAttributes = KeyAttributes> {
9
9
  update: UpdateExpressionParams;
10
10
  condition?: ConditionParams;
11
11
  }
12
- export declare function encode<K extends KeyAttributes = KeyAttributes>(input: UpdateItemInput<K>): UpdateCommandInput;
12
+ export declare const UpdateItemInput: {
13
+ encode: typeof encode;
14
+ };
15
+ declare function encode<K extends KeyAttributes = KeyAttributes>(input: UpdateItemInput<K>): UpdateCommandInput;
13
16
  export {};
@@ -1,7 +1,10 @@
1
- import { AttributeNames, AttributeValues } from "../../attributes/index.js";
2
- import { conditionExpression } from "../../expressions/condition/expression.js";
3
- import { UpdateExpression, } from "../../expressions/index.js";
4
- export function encode(input) {
1
+ import { AttributeNames, AttributeValues } from "../attributes/index.js";
2
+ import { conditionExpression } from "../expressions/condition/expression.js";
3
+ import { UpdateExpression, } from "../expressions/index.js";
4
+ export const UpdateItemInput = {
5
+ encode,
6
+ };
7
+ function encode(input) {
5
8
  const { table, key, condition, update } = input;
6
9
  const names = AttributeNames.create();
7
10
  const values = AttributeValues.create();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-item.js","sourceRoot":"","sources":["../../../../src/commands/inputs/update-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAEL,gBAAgB,GAEjB,MAAM,yBAAyB,CAAC;AAuBjC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,KAAyB;IAEzB,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEhD,MAAM,KAAK,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC;IACxC,MAAM,MAAM,GAAuB;QACjC,SAAS,EAAE,KAAK;QAChB,GAAG,EAAE,GAAG;QACR,gBAAgB,EAAE,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC;YACxD,KAAK;YACL,MAAM;SACP,CAAC;KACH,CAAC;IAEF,gFAAgF;IAChF,sCAAsC;IACtC,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,wBAAwB,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAAC;QAC3D,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;QAC7D,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,mFAAmF;IACnF,aAAa;IACb,MAAM,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;QACpE,KAAK;QACL,MAAM;KACP,CAAC,CAAC;IACH,MAAM,CAAC,wBAAwB,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC3D,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;IAC7D,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -4,4 +4,8 @@ export interface UpdateTimeToLiveInput {
4
4
  attribute: string;
5
5
  enabled: boolean;
6
6
  }
7
- export declare function encode(input: UpdateTimeToLiveInput): UpdateTimeToLiveCommandInput;
7
+ export declare const UpdateTimeToLiveInput: {
8
+ encode: typeof encode;
9
+ };
10
+ declare function encode(input: UpdateTimeToLiveInput): UpdateTimeToLiveCommandInput;
11
+ export {};
@@ -1,4 +1,7 @@
1
- export function encode(input) {
1
+ export const UpdateTimeToLiveInput = {
2
+ encode,
3
+ };
4
+ function encode(input) {
2
5
  return {
3
6
  TableName: input.table,
4
7
  TimeToLiveSpecification: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-time-to-live.js","sourceRoot":"","sources":["../../../../src/commands/inputs/update-time-to-live.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,KAA4B;IAC1C,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,KAAK;QACtB,uBAAuB,EAAE;YACvB,aAAa,EAAE,KAAK,CAAC,SAAS;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { TransactWriteCommandInput } from "@aws-sdk/lib-dynamodb";
2
+ import { ConditionCheckInput } from "./condition-check.js";
3
+ import { DeleteItemInput } from "./delete-item.js";
4
+ import { PutItemInput } from "./put-item.js";
5
+ import { UpdateItemInput } from "./update-item.js";
6
+ export type WriteTransactionWrite = {
7
+ put: PutItemInput;
8
+ } | {
9
+ update: UpdateItemInput;
10
+ } | {
11
+ delete: DeleteItemInput;
12
+ } | {
13
+ conditionCheck: ConditionCheckInput;
14
+ };
15
+ export type WriteTransactionInput = {
16
+ writes: WriteTransactionWrite[];
17
+ };
18
+ export declare const WriteTransactionInput: {
19
+ encode(input: WriteTransactionInput): TransactWriteCommandInput;
20
+ };
@@ -0,0 +1,38 @@
1
+ import { unreachable } from "@infra-blocks/types";
2
+ import { ConditionCheckInput } from "./condition-check.js";
3
+ import { DeleteItemInput } from "./delete-item.js";
4
+ import { PutItemInput } from "./put-item.js";
5
+ import { UpdateItemInput } from "./update-item.js";
6
+ export const WriteTransactionInput = {
7
+ encode(input) {
8
+ return {
9
+ TransactItems: input.writes.map(WriteTransactionWrite.encode),
10
+ };
11
+ },
12
+ };
13
+ const WriteTransactionWrite = {
14
+ encode(write) {
15
+ if ("put" in write) {
16
+ return {
17
+ Put: PutItemInput.encode(write.put),
18
+ };
19
+ }
20
+ if ("update" in write) {
21
+ return {
22
+ Update: UpdateItemInput.encode(write.update),
23
+ };
24
+ }
25
+ if ("delete" in write) {
26
+ return {
27
+ Delete: DeleteItemInput.encode(write.delete),
28
+ };
29
+ }
30
+ if ("conditionCheck" in write) {
31
+ return {
32
+ ConditionCheck: ConditionCheckInput.encode(write.conditionCheck),
33
+ };
34
+ }
35
+ unreachable(write);
36
+ },
37
+ };
38
+ //# sourceMappingURL=write-transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-transaction.js","sourceRoot":"","sources":["../../../../src/commands/inputs/write-transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAanD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,CAAC,KAA4B;QACjC,OAAO;YACL,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,MAAM,CAAC;SAC9D,CAAC;IACJ,CAAC;CACF,CAAC;AAMF,MAAM,qBAAqB,GAAG;IAC5B,MAAM,CAAC,KAA4B;QACjC,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;YACnB,OAAO;gBACL,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;aACpC,CAAC;QACJ,CAAC;QACD,IAAI,QAAQ,IAAI,KAAK,EAAE,CAAC;YACtB,OAAO;gBACL,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;aAC7C,CAAC;QACJ,CAAC;QACD,IAAI,QAAQ,IAAI,KAAK,EAAE,CAAC;YACtB,OAAO;gBACL,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;aAC7C,CAAC;QACJ,CAAC;QACD,IAAI,gBAAgB,IAAI,KAAK,EAAE,CAAC;YAC9B,OAAO;gBACL,cAAc,EAAE,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC;aACjE,CAAC;QACJ,CAAC;QACD,WAAW,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { CreateTableCommandOutput } from "@aws-sdk/client-dynamodb";
2
+ export type CreateTableOutput = Record<string, never>;
3
+ export declare const CreateTableOutput: {
4
+ decode: typeof decode;
5
+ };
6
+ declare function decode(_: CreateTableCommandOutput): CreateTableOutput;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export const CreateTableOutput = {
2
+ decode,
3
+ };
4
+ function decode(_) {
5
+ return {};
6
+ }
7
+ //# sourceMappingURL=create-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-table.js","sourceRoot":"","sources":["../../../../src/commands/outputs/create-table.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,CAA2B;IACzC,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { DeleteCommandOutput } from "@aws-sdk/lib-dynamodb";
2
+ import type { Attributes } from "../../types.js";
3
+ export type DeleteItemOutput<T extends Attributes = Attributes> = {
4
+ item?: T;
5
+ };
6
+ export declare const DeleteItemOutput: {
7
+ decode: typeof decode;
8
+ };
9
+ declare function decode<T extends Attributes = Attributes>(output: DeleteCommandOutput): DeleteItemOutput<T>;
10
+ export {};
@@ -1,4 +1,7 @@
1
- export function decode(output) {
1
+ export const DeleteItemOutput = {
2
+ decode,
3
+ };
4
+ function decode(output) {
2
5
  // TODO: use maybeSet
3
6
  const result = {};
4
7
  if (output.Attributes != null) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../src/commands/outputs/delete-item.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,MAA2B;IAE3B,qBAAqB;IACrB,MAAM,MAAM,GAAiC,EAAE,CAAC;IAChD,IAAI,MAAM,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;QAC9B,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,UAAe,CAAC;IACvC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { DeleteTableCommandOutput } from "@aws-sdk/client-dynamodb";
2
+ export type DeleteTableOutput = Record<string, never>;
3
+ export declare const DeleteTableOutput: {
4
+ decode: typeof decode;
5
+ };
6
+ declare function decode(_: DeleteTableCommandOutput): DeleteTableOutput;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export const DeleteTableOutput = {
2
+ decode,
3
+ };
4
+ function decode(_) {
5
+ return {};
6
+ }
7
+ //# sourceMappingURL=delete-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-table.js","sourceRoot":"","sources":["../../../../src/commands/outputs/delete-table.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,CAA2B;IACzC,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { GetCommandOutput } from "@aws-sdk/lib-dynamodb";
2
+ import type { Attributes } from "../../types.js";
3
+ export type GetItemOutput<T extends Attributes = Attributes> = {
4
+ item?: T;
5
+ };
6
+ export declare const GetItemOutput: {
7
+ decode: typeof decode;
8
+ };
9
+ declare function decode<T extends Attributes = Attributes>(output: GetCommandOutput): GetItemOutput<T>;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { maybeSet } from "./lib.js";
2
+ export const GetItemOutput = {
3
+ decode,
4
+ };
5
+ function decode(output) {
6
+ return maybeSet({}, "item", output, "Item");
7
+ }
8
+ //# sourceMappingURL=get-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../../src/commands/outputs/get-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,MAAwB;IAExB,OAAO,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from "./create-table.js";
2
+ export * from "./delete-item.js";
3
+ export * from "./delete-table.js";
4
+ export * from "./get-item.js";
5
+ export * from "./put-item.js";
6
+ export * from "./query.js";
7
+ export * from "./update-item.js";
8
+ export * from "./update-time-to-live.js";
9
+ export * from "./write-transaction.js";
@@ -0,0 +1,10 @@
1
+ export * from "./create-table.js";
2
+ export * from "./delete-item.js";
3
+ export * from "./delete-table.js";
4
+ export * from "./get-item.js";
5
+ export * from "./put-item.js";
6
+ export * from "./query.js";
7
+ export * from "./update-item.js";
8
+ export * from "./update-time-to-live.js";
9
+ export * from "./write-transaction.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/outputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../../src/commands/outputs/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,UAAU,QAAQ,CAOtB,GAAM,EACN,MAAU,EACV,MAAS,EACT,SAAa,EACb,SAA+B;IAE/B,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;QAC9B,MAAM,QAAQ,GACZ,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC;AACtB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { PutCommandOutput } from "@aws-sdk/lib-dynamodb";
2
+ import type { Attributes } from "../../types.js";
3
+ export type PutItemOutput<T extends Attributes = Attributes> = {
4
+ item?: T;
5
+ };
6
+ export declare const PutItemOutput: {
7
+ decode: typeof decode;
8
+ };
9
+ declare function decode<T extends Attributes = Attributes>(output: PutCommandOutput): PutItemOutput<T>;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { maybeSet } from "./lib.js";
2
+ export const PutItemOutput = {
3
+ decode,
4
+ };
5
+ function decode(output) {
6
+ return maybeSet({}, "item", output, "Attributes");
7
+ }
8
+ //# sourceMappingURL=put-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"put-item.js","sourceRoot":"","sources":["../../../../src/commands/outputs/put-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKpC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CACb,MAAwB;IAExB,OAAO,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { QueryCommandOutput } from "@aws-sdk/lib-dynamodb";
2
+ import type { Attributes, KeyAttributes } from "../../index.js";
3
+ export type QueryOutput<T extends Attributes = Attributes, K extends KeyAttributes = KeyAttributes> = {
4
+ count: number;
5
+ items: Array<T>;
6
+ scannedCount: number;
7
+ lastEvaluatedKey?: K;
8
+ };
9
+ export declare const QueryOutput: {
10
+ decode: typeof decode;
11
+ };
12
+ declare function decode<T extends Attributes = Attributes, K extends KeyAttributes = KeyAttributes>(output: QueryCommandOutput): QueryOutput<T, K>;
13
+ export {};
@@ -1,5 +1,8 @@
1
1
  import { trusted } from "@infra-blocks/types";
2
- export function decode(output) {
2
+ export const QueryOutput = {
3
+ decode,
4
+ };
5
+ function decode(output) {
3
6
  const items = (output.Items ?? []);
4
7
  return trusted({
5
8
  items,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/commands/outputs/query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAa9C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAGb,MAA0B;IAC1B,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAa,CAAC;IAC/C,OAAO,OAAO,CAAC;QACb,KAAK;QACL,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,YAAY,EAAE,MAAM,CAAC,YAAY;KAClC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { UpdateItemCommandOutput } from "@aws-sdk/client-dynamodb";
2
+ export type UpdateItemOutput = Record<string, never>;
3
+ export declare const UpdateItemOutput: {
4
+ decode: typeof decode;
5
+ };
6
+ declare function decode(_: UpdateItemCommandOutput): UpdateItemOutput;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export const UpdateItemOutput = {
2
+ decode,
3
+ };
4
+ function decode(_) {
5
+ return {};
6
+ }
7
+ //# sourceMappingURL=update-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-item.js","sourceRoot":"","sources":["../../../../src/commands/outputs/update-item.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,CAA0B;IACxC,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { UpdateTimeToLiveCommandOutput } from "@aws-sdk/client-dynamodb";
2
+ export type UpdateTimeToLiveOutput = Record<string, never>;
3
+ export declare const UpdateTimeToLiveOutput: {
4
+ decode: typeof decode;
5
+ };
6
+ declare function decode(_: UpdateTimeToLiveCommandOutput): UpdateTimeToLiveOutput;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export const UpdateTimeToLiveOutput = {
2
+ decode,
3
+ };
4
+ function decode(_) {
5
+ return {};
6
+ }
7
+ //# sourceMappingURL=update-time-to-live.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-time-to-live.js","sourceRoot":"","sources":["../../../../src/commands/outputs/update-time-to-live.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,CAAgC;IAC9C,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { TransactWriteCommandOutput } from "@aws-sdk/lib-dynamodb";
2
+ export type WriteTransactionOutput = Record<string, never>;
3
+ export declare const WriteTransactionOutput: {
4
+ decode: typeof decode;
5
+ };
6
+ declare function decode(_: TransactWriteCommandOutput): WriteTransactionOutput;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export const WriteTransactionOutput = {
2
+ decode,
3
+ };
4
+ function decode(_) {
5
+ return {};
6
+ }
7
+ //# sourceMappingURL=write-transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-transaction.js","sourceRoot":"","sources":["../../../../src/commands/outputs/write-transaction.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM;CACP,CAAC;AAEF,SAAS,MAAM,CAAC,CAA6B;IAC3C,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { PutCommand } from "@aws-sdk/lib-dynamodb";
2
- import type { Attributes } from "../../types.js";
2
+ import type { Attributes } from "../types.js";
3
3
  import { AbstractCommand } from "./base.js";
4
- import type { PutItemInput } from "./inputs/put-item.js";
5
- import type { PutItemOutput } from "./outputs/put-item.js";
4
+ import { PutItemInput } from "./inputs/index.js";
5
+ import { PutItemOutput } from "./outputs/index.js";
6
6
  export declare class PutItem<T extends Attributes = Attributes> extends AbstractCommand<PutItemInput<T>, PutItemOutput<T>, PutCommand> {
7
7
  constructor(input: PutItemInput<T>);
8
8
  }
@@ -0,0 +1,17 @@
1
+ import { PutCommand } from "@aws-sdk/lib-dynamodb";
2
+ import { AbstractCommand } from "./base.js";
3
+ import { PutItemInput } from "./inputs/index.js";
4
+ import { PutItemOutput } from "./outputs/index.js";
5
+ export class PutItem extends AbstractCommand {
6
+ constructor(input) {
7
+ super({
8
+ input,
9
+ codec: {
10
+ encode: PutItemInput.encode,
11
+ decode: PutItemOutput.decode,
12
+ },
13
+ command: PutCommand,
14
+ });
15
+ }
16
+ }
17
+ //# sourceMappingURL=put-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"put-item.js","sourceRoot":"","sources":["../../../src/commands/put-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,OAA2C,SAAQ,eAI/D;IACC,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"}