@keystrokehq/netsuite 0.1.2 → 0.1.4

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 (573) hide show
  1. package/dist/actions/async-get-job-status.cjs +3 -3
  2. package/dist/actions/async-get-job-status.cjs.map +1 -1
  3. package/dist/actions/async-get-job-status.d.cts +17 -5
  4. package/dist/actions/async-get-job-status.d.mts +17 -5
  5. package/dist/actions/async-get-job-status.mjs +3 -3
  6. package/dist/actions/async-get-job-status.mjs.map +1 -1
  7. package/dist/actions/async-get-job-task-result.cjs +2 -2
  8. package/dist/actions/async-get-job-task-result.cjs.map +1 -1
  9. package/dist/actions/async-get-job-task-result.d.cts +15 -3
  10. package/dist/actions/async-get-job-task-result.d.mts +15 -3
  11. package/dist/actions/async-get-job-task-result.mjs +2 -2
  12. package/dist/actions/async-get-job-task-result.mjs.map +1 -1
  13. package/dist/actions/async-get-job-task.cjs +1 -1
  14. package/dist/actions/async-get-job-task.cjs.map +1 -1
  15. package/dist/actions/async-get-job-task.d.cts +14 -2
  16. package/dist/actions/async-get-job-task.d.mts +14 -2
  17. package/dist/actions/async-get-job-task.mjs +1 -1
  18. package/dist/actions/async-get-job-task.mjs.map +1 -1
  19. package/dist/actions/create-customer-payment.cjs +1 -1
  20. package/dist/actions/create-customer-payment.cjs.map +1 -1
  21. package/dist/actions/create-customer-payment.d.cts +14 -2
  22. package/dist/actions/create-customer-payment.d.cts.map +1 -1
  23. package/dist/actions/create-customer-payment.d.mts +14 -2
  24. package/dist/actions/create-customer-payment.d.mts.map +1 -1
  25. package/dist/actions/create-customer-payment.mjs +1 -1
  26. package/dist/actions/create-customer-payment.mjs.map +1 -1
  27. package/dist/actions/create-customer.cjs +1 -1
  28. package/dist/actions/create-customer.cjs.map +1 -1
  29. package/dist/actions/create-customer.d.cts +14 -2
  30. package/dist/actions/create-customer.d.cts.map +1 -1
  31. package/dist/actions/create-customer.d.mts +14 -2
  32. package/dist/actions/create-customer.d.mts.map +1 -1
  33. package/dist/actions/create-customer.mjs +1 -1
  34. package/dist/actions/create-customer.mjs.map +1 -1
  35. package/dist/actions/create-employee.cjs +1 -1
  36. package/dist/actions/create-employee.cjs.map +1 -1
  37. package/dist/actions/create-employee.d.cts +14 -2
  38. package/dist/actions/create-employee.d.cts.map +1 -1
  39. package/dist/actions/create-employee.d.mts +14 -2
  40. package/dist/actions/create-employee.d.mts.map +1 -1
  41. package/dist/actions/create-employee.mjs +1 -1
  42. package/dist/actions/create-employee.mjs.map +1 -1
  43. package/dist/actions/create-invoice.cjs +1 -1
  44. package/dist/actions/create-invoice.cjs.map +1 -1
  45. package/dist/actions/create-invoice.d.cts +14 -2
  46. package/dist/actions/create-invoice.d.cts.map +1 -1
  47. package/dist/actions/create-invoice.d.mts +14 -2
  48. package/dist/actions/create-invoice.d.mts.map +1 -1
  49. package/dist/actions/create-invoice.mjs +1 -1
  50. package/dist/actions/create-invoice.mjs.map +1 -1
  51. package/dist/actions/create-item.cjs +1 -1
  52. package/dist/actions/create-item.cjs.map +1 -1
  53. package/dist/actions/create-item.d.cts +14 -2
  54. package/dist/actions/create-item.d.cts.map +1 -1
  55. package/dist/actions/create-item.d.mts +14 -2
  56. package/dist/actions/create-item.d.mts.map +1 -1
  57. package/dist/actions/create-item.mjs +1 -1
  58. package/dist/actions/create-item.mjs.map +1 -1
  59. package/dist/actions/create-journal-entry.cjs +1 -1
  60. package/dist/actions/create-journal-entry.cjs.map +1 -1
  61. package/dist/actions/create-journal-entry.d.cts +14 -2
  62. package/dist/actions/create-journal-entry.d.cts.map +1 -1
  63. package/dist/actions/create-journal-entry.d.mts +14 -2
  64. package/dist/actions/create-journal-entry.d.mts.map +1 -1
  65. package/dist/actions/create-journal-entry.mjs +1 -1
  66. package/dist/actions/create-journal-entry.mjs.map +1 -1
  67. package/dist/actions/create-jwt-client-assertion.cjs +1 -1
  68. package/dist/actions/create-jwt-client-assertion.cjs.map +1 -1
  69. package/dist/actions/create-jwt-client-assertion.d.cts +14 -2
  70. package/dist/actions/create-jwt-client-assertion.d.mts +14 -2
  71. package/dist/actions/create-jwt-client-assertion.mjs +1 -1
  72. package/dist/actions/create-jwt-client-assertion.mjs.map +1 -1
  73. package/dist/actions/create-purchase-order.cjs +2 -2
  74. package/dist/actions/create-purchase-order.cjs.map +1 -1
  75. package/dist/actions/create-purchase-order.d.cts +16 -3
  76. package/dist/actions/create-purchase-order.d.mts +16 -3
  77. package/dist/actions/create-purchase-order.mjs +2 -2
  78. package/dist/actions/create-purchase-order.mjs.map +1 -1
  79. package/dist/actions/create-record.cjs +1 -1
  80. package/dist/actions/create-record.cjs.map +1 -1
  81. package/dist/actions/create-record.d.cts +14 -2
  82. package/dist/actions/create-record.d.cts.map +1 -1
  83. package/dist/actions/create-record.d.mts +14 -2
  84. package/dist/actions/create-record.d.mts.map +1 -1
  85. package/dist/actions/create-record.mjs +1 -1
  86. package/dist/actions/create-record.mjs.map +1 -1
  87. package/dist/actions/create-sales-order.cjs +2 -2
  88. package/dist/actions/create-sales-order.cjs.map +1 -1
  89. package/dist/actions/create-sales-order.d.cts +16 -3
  90. package/dist/actions/create-sales-order.d.mts +16 -3
  91. package/dist/actions/create-sales-order.mjs +2 -2
  92. package/dist/actions/create-sales-order.mjs.map +1 -1
  93. package/dist/actions/create-vendor-bill.cjs +1 -1
  94. package/dist/actions/create-vendor-bill.cjs.map +1 -1
  95. package/dist/actions/create-vendor-bill.d.cts +14 -2
  96. package/dist/actions/create-vendor-bill.d.cts.map +1 -1
  97. package/dist/actions/create-vendor-bill.d.mts +14 -2
  98. package/dist/actions/create-vendor-bill.d.mts.map +1 -1
  99. package/dist/actions/create-vendor-bill.mjs +1 -1
  100. package/dist/actions/create-vendor-bill.mjs.map +1 -1
  101. package/dist/actions/create-vendor.cjs +1 -1
  102. package/dist/actions/create-vendor.cjs.map +1 -1
  103. package/dist/actions/create-vendor.d.cts +14 -2
  104. package/dist/actions/create-vendor.d.cts.map +1 -1
  105. package/dist/actions/create-vendor.d.mts +14 -2
  106. package/dist/actions/create-vendor.d.mts.map +1 -1
  107. package/dist/actions/create-vendor.mjs +1 -1
  108. package/dist/actions/create-vendor.mjs.map +1 -1
  109. package/dist/actions/delete-customer-payment.cjs +1 -1
  110. package/dist/actions/delete-customer-payment.cjs.map +1 -1
  111. package/dist/actions/delete-customer-payment.d.cts +14 -2
  112. package/dist/actions/delete-customer-payment.d.mts +14 -2
  113. package/dist/actions/delete-customer-payment.mjs +1 -1
  114. package/dist/actions/delete-customer-payment.mjs.map +1 -1
  115. package/dist/actions/delete-customer.cjs +1 -1
  116. package/dist/actions/delete-customer.cjs.map +1 -1
  117. package/dist/actions/delete-customer.d.cts +14 -2
  118. package/dist/actions/delete-customer.d.mts +14 -2
  119. package/dist/actions/delete-customer.mjs +1 -1
  120. package/dist/actions/delete-customer.mjs.map +1 -1
  121. package/dist/actions/delete-employee.cjs +1 -1
  122. package/dist/actions/delete-employee.cjs.map +1 -1
  123. package/dist/actions/delete-employee.d.cts +14 -2
  124. package/dist/actions/delete-employee.d.mts +14 -2
  125. package/dist/actions/delete-employee.mjs +1 -1
  126. package/dist/actions/delete-employee.mjs.map +1 -1
  127. package/dist/actions/delete-invoice.cjs +1 -1
  128. package/dist/actions/delete-invoice.cjs.map +1 -1
  129. package/dist/actions/delete-invoice.d.cts +14 -2
  130. package/dist/actions/delete-invoice.d.mts +14 -2
  131. package/dist/actions/delete-invoice.mjs +1 -1
  132. package/dist/actions/delete-invoice.mjs.map +1 -1
  133. package/dist/actions/delete-item-fulfillment.cjs +1 -1
  134. package/dist/actions/delete-item-fulfillment.cjs.map +1 -1
  135. package/dist/actions/delete-item-fulfillment.d.cts +14 -2
  136. package/dist/actions/delete-item-fulfillment.d.mts +14 -2
  137. package/dist/actions/delete-item-fulfillment.mjs +1 -1
  138. package/dist/actions/delete-item-fulfillment.mjs.map +1 -1
  139. package/dist/actions/delete-item-receipt.cjs +1 -1
  140. package/dist/actions/delete-item-receipt.cjs.map +1 -1
  141. package/dist/actions/delete-item-receipt.d.cts +14 -2
  142. package/dist/actions/delete-item-receipt.d.mts +14 -2
  143. package/dist/actions/delete-item-receipt.mjs +1 -1
  144. package/dist/actions/delete-item-receipt.mjs.map +1 -1
  145. package/dist/actions/delete-item.cjs +1 -1
  146. package/dist/actions/delete-item.cjs.map +1 -1
  147. package/dist/actions/delete-item.d.cts +14 -2
  148. package/dist/actions/delete-item.d.mts +14 -2
  149. package/dist/actions/delete-item.mjs +1 -1
  150. package/dist/actions/delete-item.mjs.map +1 -1
  151. package/dist/actions/delete-journal-entry.cjs +1 -1
  152. package/dist/actions/delete-journal-entry.cjs.map +1 -1
  153. package/dist/actions/delete-journal-entry.d.cts +14 -2
  154. package/dist/actions/delete-journal-entry.d.mts +14 -2
  155. package/dist/actions/delete-journal-entry.mjs +1 -1
  156. package/dist/actions/delete-journal-entry.mjs.map +1 -1
  157. package/dist/actions/delete-purchase-order.cjs +1 -1
  158. package/dist/actions/delete-purchase-order.cjs.map +1 -1
  159. package/dist/actions/delete-purchase-order.d.cts +14 -2
  160. package/dist/actions/delete-purchase-order.d.mts +14 -2
  161. package/dist/actions/delete-purchase-order.mjs +1 -1
  162. package/dist/actions/delete-purchase-order.mjs.map +1 -1
  163. package/dist/actions/delete-sales-order.cjs +1 -1
  164. package/dist/actions/delete-sales-order.cjs.map +1 -1
  165. package/dist/actions/delete-sales-order.d.cts +14 -2
  166. package/dist/actions/delete-sales-order.d.mts +14 -2
  167. package/dist/actions/delete-sales-order.mjs +1 -1
  168. package/dist/actions/delete-sales-order.mjs.map +1 -1
  169. package/dist/actions/delete-vendor-payment.cjs +1 -1
  170. package/dist/actions/delete-vendor-payment.cjs.map +1 -1
  171. package/dist/actions/delete-vendor-payment.d.cts +14 -2
  172. package/dist/actions/delete-vendor-payment.d.mts +14 -2
  173. package/dist/actions/delete-vendor-payment.mjs +1 -1
  174. package/dist/actions/delete-vendor-payment.mjs.map +1 -1
  175. package/dist/actions/execute-dataset.cjs +2 -2
  176. package/dist/actions/execute-dataset.cjs.map +1 -1
  177. package/dist/actions/execute-dataset.d.cts +15 -3
  178. package/dist/actions/execute-dataset.d.mts +15 -3
  179. package/dist/actions/execute-dataset.mjs +2 -2
  180. package/dist/actions/execute-dataset.mjs.map +1 -1
  181. package/dist/actions/get-customer-payment.cjs +2 -2
  182. package/dist/actions/get-customer-payment.cjs.map +1 -1
  183. package/dist/actions/get-customer-payment.d.cts +15 -3
  184. package/dist/actions/get-customer-payment.d.mts +15 -3
  185. package/dist/actions/get-customer-payment.mjs +2 -2
  186. package/dist/actions/get-customer-payment.mjs.map +1 -1
  187. package/dist/actions/get-customer.cjs +2 -2
  188. package/dist/actions/get-customer.cjs.map +1 -1
  189. package/dist/actions/get-customer.d.cts +15 -3
  190. package/dist/actions/get-customer.d.mts +15 -3
  191. package/dist/actions/get-customer.mjs +2 -2
  192. package/dist/actions/get-customer.mjs.map +1 -1
  193. package/dist/actions/get-datacenter-urls.cjs +1 -1
  194. package/dist/actions/get-datacenter-urls.cjs.map +1 -1
  195. package/dist/actions/get-datacenter-urls.d.cts +14 -2
  196. package/dist/actions/get-datacenter-urls.d.mts +14 -2
  197. package/dist/actions/get-datacenter-urls.mjs +1 -1
  198. package/dist/actions/get-datacenter-urls.mjs.map +1 -1
  199. package/dist/actions/get-employee.cjs +2 -2
  200. package/dist/actions/get-employee.cjs.map +1 -1
  201. package/dist/actions/get-employee.d.cts +15 -3
  202. package/dist/actions/get-employee.d.mts +15 -3
  203. package/dist/actions/get-employee.mjs +2 -2
  204. package/dist/actions/get-employee.mjs.map +1 -1
  205. package/dist/actions/get-governance-limits.cjs +1 -1
  206. package/dist/actions/get-governance-limits.cjs.map +1 -1
  207. package/dist/actions/get-governance-limits.d.cts +14 -2
  208. package/dist/actions/get-governance-limits.d.cts.map +1 -1
  209. package/dist/actions/get-governance-limits.d.mts +14 -2
  210. package/dist/actions/get-governance-limits.d.mts.map +1 -1
  211. package/dist/actions/get-governance-limits.mjs +1 -1
  212. package/dist/actions/get-governance-limits.mjs.map +1 -1
  213. package/dist/actions/get-invoice.cjs +2 -2
  214. package/dist/actions/get-invoice.cjs.map +1 -1
  215. package/dist/actions/get-invoice.d.cts +15 -3
  216. package/dist/actions/get-invoice.d.mts +15 -3
  217. package/dist/actions/get-invoice.mjs +2 -2
  218. package/dist/actions/get-invoice.mjs.map +1 -1
  219. package/dist/actions/get-item-fulfillment.cjs +2 -2
  220. package/dist/actions/get-item-fulfillment.cjs.map +1 -1
  221. package/dist/actions/get-item-fulfillment.d.cts +15 -3
  222. package/dist/actions/get-item-fulfillment.d.mts +15 -3
  223. package/dist/actions/get-item-fulfillment.mjs +2 -2
  224. package/dist/actions/get-item-fulfillment.mjs.map +1 -1
  225. package/dist/actions/get-item-receipt.cjs +2 -2
  226. package/dist/actions/get-item-receipt.cjs.map +1 -1
  227. package/dist/actions/get-item-receipt.d.cts +15 -3
  228. package/dist/actions/get-item-receipt.d.mts +15 -3
  229. package/dist/actions/get-item-receipt.mjs +2 -2
  230. package/dist/actions/get-item-receipt.mjs.map +1 -1
  231. package/dist/actions/get-item.cjs +2 -2
  232. package/dist/actions/get-item.cjs.map +1 -1
  233. package/dist/actions/get-item.d.cts +15 -3
  234. package/dist/actions/get-item.d.mts +15 -3
  235. package/dist/actions/get-item.mjs +2 -2
  236. package/dist/actions/get-item.mjs.map +1 -1
  237. package/dist/actions/get-journal-entry.cjs +2 -2
  238. package/dist/actions/get-journal-entry.cjs.map +1 -1
  239. package/dist/actions/get-journal-entry.d.cts +15 -3
  240. package/dist/actions/get-journal-entry.d.mts +15 -3
  241. package/dist/actions/get-journal-entry.mjs +2 -2
  242. package/dist/actions/get-journal-entry.mjs.map +1 -1
  243. package/dist/actions/get-purchase-order.cjs +2 -2
  244. package/dist/actions/get-purchase-order.cjs.map +1 -1
  245. package/dist/actions/get-purchase-order.d.cts +15 -3
  246. package/dist/actions/get-purchase-order.d.mts +15 -3
  247. package/dist/actions/get-purchase-order.mjs +2 -2
  248. package/dist/actions/get-purchase-order.mjs.map +1 -1
  249. package/dist/actions/get-record-metadata.cjs +1 -1
  250. package/dist/actions/get-record-metadata.cjs.map +1 -1
  251. package/dist/actions/get-record-metadata.d.cts +14 -2
  252. package/dist/actions/get-record-metadata.d.mts +14 -2
  253. package/dist/actions/get-record-metadata.mjs +1 -1
  254. package/dist/actions/get-record-metadata.mjs.map +1 -1
  255. package/dist/actions/get-reference-select-field.cjs +2 -2
  256. package/dist/actions/get-reference-select-field.cjs.map +1 -1
  257. package/dist/actions/get-reference-select-field.d.cts +15 -3
  258. package/dist/actions/get-reference-select-field.d.mts +15 -3
  259. package/dist/actions/get-reference-select-field.mjs +2 -2
  260. package/dist/actions/get-reference-select-field.mjs.map +1 -1
  261. package/dist/actions/get-sales-order.cjs +2 -2
  262. package/dist/actions/get-sales-order.cjs.map +1 -1
  263. package/dist/actions/get-sales-order.d.cts +15 -3
  264. package/dist/actions/get-sales-order.d.mts +15 -3
  265. package/dist/actions/get-sales-order.mjs +2 -2
  266. package/dist/actions/get-sales-order.mjs.map +1 -1
  267. package/dist/actions/get-server-time.cjs +1 -1
  268. package/dist/actions/get-server-time.cjs.map +1 -1
  269. package/dist/actions/get-server-time.d.cts +14 -2
  270. package/dist/actions/get-server-time.d.cts.map +1 -1
  271. package/dist/actions/get-server-time.d.mts +14 -2
  272. package/dist/actions/get-server-time.d.mts.map +1 -1
  273. package/dist/actions/get-server-time.mjs +1 -1
  274. package/dist/actions/get-server-time.mjs.map +1 -1
  275. package/dist/actions/get-sublist-collection.cjs +2 -2
  276. package/dist/actions/get-sublist-collection.cjs.map +1 -1
  277. package/dist/actions/get-sublist-collection.d.cts +15 -3
  278. package/dist/actions/get-sublist-collection.d.mts +15 -3
  279. package/dist/actions/get-sublist-collection.mjs +2 -2
  280. package/dist/actions/get-sublist-collection.mjs.map +1 -1
  281. package/dist/actions/get-sublist-line.cjs +2 -2
  282. package/dist/actions/get-sublist-line.cjs.map +1 -1
  283. package/dist/actions/get-sublist-line.d.cts +15 -3
  284. package/dist/actions/get-sublist-line.d.mts +15 -3
  285. package/dist/actions/get-sublist-line.mjs +2 -2
  286. package/dist/actions/get-sublist-line.mjs.map +1 -1
  287. package/dist/actions/get-subrecord.cjs +2 -2
  288. package/dist/actions/get-subrecord.cjs.map +1 -1
  289. package/dist/actions/get-subrecord.d.cts +15 -3
  290. package/dist/actions/get-subrecord.d.mts +15 -3
  291. package/dist/actions/get-subrecord.mjs +2 -2
  292. package/dist/actions/get-subrecord.mjs.map +1 -1
  293. package/dist/actions/get-vendor-bill.cjs +2 -2
  294. package/dist/actions/get-vendor-bill.cjs.map +1 -1
  295. package/dist/actions/get-vendor-bill.d.cts +15 -3
  296. package/dist/actions/get-vendor-bill.d.mts +15 -3
  297. package/dist/actions/get-vendor-bill.mjs +2 -2
  298. package/dist/actions/get-vendor-bill.mjs.map +1 -1
  299. package/dist/actions/get-vendor-payment.cjs +2 -2
  300. package/dist/actions/get-vendor-payment.cjs.map +1 -1
  301. package/dist/actions/get-vendor-payment.d.cts +15 -3
  302. package/dist/actions/get-vendor-payment.d.mts +15 -3
  303. package/dist/actions/get-vendor-payment.mjs +2 -2
  304. package/dist/actions/get-vendor-payment.mjs.map +1 -1
  305. package/dist/actions/get-vendor.cjs +2 -2
  306. package/dist/actions/get-vendor.cjs.map +1 -1
  307. package/dist/actions/get-vendor.d.cts +15 -3
  308. package/dist/actions/get-vendor.d.mts +15 -3
  309. package/dist/actions/get-vendor.mjs +2 -2
  310. package/dist/actions/get-vendor.mjs.map +1 -1
  311. package/dist/actions/list-customer-payments.cjs +3 -3
  312. package/dist/actions/list-customer-payments.cjs.map +1 -1
  313. package/dist/actions/list-customer-payments.d.cts +17 -5
  314. package/dist/actions/list-customer-payments.d.mts +17 -5
  315. package/dist/actions/list-customer-payments.mjs +3 -3
  316. package/dist/actions/list-customer-payments.mjs.map +1 -1
  317. package/dist/actions/list-datasets.cjs +4 -4
  318. package/dist/actions/list-datasets.cjs.map +1 -1
  319. package/dist/actions/list-datasets.d.cts +17 -5
  320. package/dist/actions/list-datasets.d.mts +17 -5
  321. package/dist/actions/list-datasets.mjs +4 -4
  322. package/dist/actions/list-datasets.mjs.map +1 -1
  323. package/dist/actions/list-employees.cjs +3 -3
  324. package/dist/actions/list-employees.cjs.map +1 -1
  325. package/dist/actions/list-employees.d.cts +17 -5
  326. package/dist/actions/list-employees.d.mts +17 -5
  327. package/dist/actions/list-employees.mjs +3 -3
  328. package/dist/actions/list-employees.mjs.map +1 -1
  329. package/dist/actions/list-integrations.cjs +2 -2
  330. package/dist/actions/list-integrations.cjs.map +1 -1
  331. package/dist/actions/list-integrations.d.cts +15 -3
  332. package/dist/actions/list-integrations.d.mts +15 -3
  333. package/dist/actions/list-integrations.mjs +2 -2
  334. package/dist/actions/list-integrations.mjs.map +1 -1
  335. package/dist/actions/list-invoices.cjs +3 -3
  336. package/dist/actions/list-invoices.cjs.map +1 -1
  337. package/dist/actions/list-invoices.d.cts +17 -5
  338. package/dist/actions/list-invoices.d.mts +17 -5
  339. package/dist/actions/list-invoices.mjs +3 -3
  340. package/dist/actions/list-invoices.mjs.map +1 -1
  341. package/dist/actions/list-item-fulfillments.cjs +3 -3
  342. package/dist/actions/list-item-fulfillments.cjs.map +1 -1
  343. package/dist/actions/list-item-fulfillments.d.cts +17 -5
  344. package/dist/actions/list-item-fulfillments.d.mts +17 -5
  345. package/dist/actions/list-item-fulfillments.mjs +3 -3
  346. package/dist/actions/list-item-fulfillments.mjs.map +1 -1
  347. package/dist/actions/list-item-receipts.cjs +3 -3
  348. package/dist/actions/list-item-receipts.cjs.map +1 -1
  349. package/dist/actions/list-item-receipts.d.cts +17 -5
  350. package/dist/actions/list-item-receipts.d.mts +17 -5
  351. package/dist/actions/list-item-receipts.mjs +3 -3
  352. package/dist/actions/list-item-receipts.mjs.map +1 -1
  353. package/dist/actions/list-journal-entries.cjs +3 -3
  354. package/dist/actions/list-journal-entries.cjs.map +1 -1
  355. package/dist/actions/list-journal-entries.d.cts +17 -5
  356. package/dist/actions/list-journal-entries.d.mts +17 -5
  357. package/dist/actions/list-journal-entries.mjs +3 -3
  358. package/dist/actions/list-journal-entries.mjs.map +1 -1
  359. package/dist/actions/list-metadata-catalog.cjs +3 -3
  360. package/dist/actions/list-metadata-catalog.cjs.map +1 -1
  361. package/dist/actions/list-metadata-catalog.d.cts +16 -4
  362. package/dist/actions/list-metadata-catalog.d.mts +16 -4
  363. package/dist/actions/list-metadata-catalog.mjs +3 -3
  364. package/dist/actions/list-metadata-catalog.mjs.map +1 -1
  365. package/dist/actions/list-purchase-orders.cjs +3 -3
  366. package/dist/actions/list-purchase-orders.cjs.map +1 -1
  367. package/dist/actions/list-purchase-orders.d.cts +17 -5
  368. package/dist/actions/list-purchase-orders.d.mts +17 -5
  369. package/dist/actions/list-purchase-orders.mjs +3 -3
  370. package/dist/actions/list-purchase-orders.mjs.map +1 -1
  371. package/dist/actions/list-records.cjs +3 -3
  372. package/dist/actions/list-records.cjs.map +1 -1
  373. package/dist/actions/list-records.d.cts +17 -5
  374. package/dist/actions/list-records.d.mts +17 -5
  375. package/dist/actions/list-records.mjs +3 -3
  376. package/dist/actions/list-records.mjs.map +1 -1
  377. package/dist/actions/list-sales-orders.cjs +3 -3
  378. package/dist/actions/list-sales-orders.cjs.map +1 -1
  379. package/dist/actions/list-sales-orders.d.cts +17 -5
  380. package/dist/actions/list-sales-orders.d.mts +17 -5
  381. package/dist/actions/list-sales-orders.mjs +3 -3
  382. package/dist/actions/list-sales-orders.mjs.map +1 -1
  383. package/dist/actions/list-vendor-payments.cjs +3 -3
  384. package/dist/actions/list-vendor-payments.cjs.map +1 -1
  385. package/dist/actions/list-vendor-payments.d.cts +17 -5
  386. package/dist/actions/list-vendor-payments.d.mts +17 -5
  387. package/dist/actions/list-vendor-payments.mjs +3 -3
  388. package/dist/actions/list-vendor-payments.mjs.map +1 -1
  389. package/dist/actions/o-auth2-authorize-account-domain.cjs +1 -1
  390. package/dist/actions/o-auth2-authorize-account-domain.cjs.map +1 -1
  391. package/dist/actions/o-auth2-authorize-account-domain.d.cts +14 -2
  392. package/dist/actions/o-auth2-authorize-account-domain.d.mts +14 -2
  393. package/dist/actions/o-auth2-authorize-account-domain.mjs +1 -1
  394. package/dist/actions/o-auth2-authorize-account-domain.mjs.map +1 -1
  395. package/dist/actions/o-auth2-authorize-system-domain.cjs +1 -1
  396. package/dist/actions/o-auth2-authorize-system-domain.cjs.map +1 -1
  397. package/dist/actions/o-auth2-authorize-system-domain.d.cts +14 -2
  398. package/dist/actions/o-auth2-authorize-system-domain.d.mts +14 -2
  399. package/dist/actions/o-auth2-authorize-system-domain.mjs +1 -1
  400. package/dist/actions/o-auth2-authorize-system-domain.mjs.map +1 -1
  401. package/dist/actions/o-auth2-logout.cjs +1 -1
  402. package/dist/actions/o-auth2-logout.cjs.map +1 -1
  403. package/dist/actions/o-auth2-logout.d.cts +14 -2
  404. package/dist/actions/o-auth2-logout.d.mts +14 -2
  405. package/dist/actions/o-auth2-logout.mjs +1 -1
  406. package/dist/actions/o-auth2-logout.mjs.map +1 -1
  407. package/dist/actions/o-auth2-revoke-refresh-token.cjs +1 -1
  408. package/dist/actions/o-auth2-revoke-refresh-token.cjs.map +1 -1
  409. package/dist/actions/o-auth2-revoke-refresh-token.d.cts +14 -2
  410. package/dist/actions/o-auth2-revoke-refresh-token.d.mts +14 -2
  411. package/dist/actions/o-auth2-revoke-refresh-token.mjs +1 -1
  412. package/dist/actions/o-auth2-revoke-refresh-token.mjs.map +1 -1
  413. package/dist/actions/o-auth2-token-authorization-code.cjs +1 -1
  414. package/dist/actions/o-auth2-token-authorization-code.cjs.map +1 -1
  415. package/dist/actions/o-auth2-token-authorization-code.d.cts +14 -2
  416. package/dist/actions/o-auth2-token-authorization-code.d.mts +14 -2
  417. package/dist/actions/o-auth2-token-authorization-code.mjs +1 -1
  418. package/dist/actions/o-auth2-token-authorization-code.mjs.map +1 -1
  419. package/dist/actions/o-auth2-token-client-credentials.cjs +1 -1
  420. package/dist/actions/o-auth2-token-client-credentials.cjs.map +1 -1
  421. package/dist/actions/o-auth2-token-client-credentials.d.cts +14 -2
  422. package/dist/actions/o-auth2-token-client-credentials.d.mts +14 -2
  423. package/dist/actions/o-auth2-token-client-credentials.mjs +1 -1
  424. package/dist/actions/o-auth2-token-client-credentials.mjs.map +1 -1
  425. package/dist/actions/o-auth2-token-refresh.cjs +1 -1
  426. package/dist/actions/o-auth2-token-refresh.cjs.map +1 -1
  427. package/dist/actions/o-auth2-token-refresh.d.cts +14 -2
  428. package/dist/actions/o-auth2-token-refresh.d.mts +14 -2
  429. package/dist/actions/o-auth2-token-refresh.mjs +1 -1
  430. package/dist/actions/o-auth2-token-refresh.mjs.map +1 -1
  431. package/dist/actions/oauth2-get-jwks-keys.cjs +2 -2
  432. package/dist/actions/oauth2-get-jwks-keys.cjs.map +1 -1
  433. package/dist/actions/oauth2-get-jwks-keys.d.cts +15 -3
  434. package/dist/actions/oauth2-get-jwks-keys.d.cts.map +1 -1
  435. package/dist/actions/oauth2-get-jwks-keys.d.mts +15 -3
  436. package/dist/actions/oauth2-get-jwks-keys.d.mts.map +1 -1
  437. package/dist/actions/oauth2-get-jwks-keys.mjs +2 -2
  438. package/dist/actions/oauth2-get-jwks-keys.mjs.map +1 -1
  439. package/dist/actions/run-suiteql-query.cjs +2 -2
  440. package/dist/actions/run-suiteql-query.cjs.map +1 -1
  441. package/dist/actions/run-suiteql-query.d.cts +16 -4
  442. package/dist/actions/run-suiteql-query.d.mts +16 -4
  443. package/dist/actions/run-suiteql-query.mjs +2 -2
  444. package/dist/actions/run-suiteql-query.mjs.map +1 -1
  445. package/dist/actions/transform-record.cjs +1 -1
  446. package/dist/actions/transform-record.cjs.map +1 -1
  447. package/dist/actions/transform-record.d.cts +14 -2
  448. package/dist/actions/transform-record.d.cts.map +1 -1
  449. package/dist/actions/transform-record.d.mts +14 -2
  450. package/dist/actions/transform-record.d.mts.map +1 -1
  451. package/dist/actions/transform-record.mjs +1 -1
  452. package/dist/actions/transform-record.mjs.map +1 -1
  453. package/dist/actions/update-customer-payment.cjs +1 -1
  454. package/dist/actions/update-customer-payment.cjs.map +1 -1
  455. package/dist/actions/update-customer-payment.d.cts +14 -2
  456. package/dist/actions/update-customer-payment.d.cts.map +1 -1
  457. package/dist/actions/update-customer-payment.d.mts +14 -2
  458. package/dist/actions/update-customer-payment.d.mts.map +1 -1
  459. package/dist/actions/update-customer-payment.mjs +1 -1
  460. package/dist/actions/update-customer-payment.mjs.map +1 -1
  461. package/dist/actions/update-customer.cjs +1 -1
  462. package/dist/actions/update-customer.cjs.map +1 -1
  463. package/dist/actions/update-customer.d.cts +14 -2
  464. package/dist/actions/update-customer.d.cts.map +1 -1
  465. package/dist/actions/update-customer.d.mts +14 -2
  466. package/dist/actions/update-customer.d.mts.map +1 -1
  467. package/dist/actions/update-customer.mjs +1 -1
  468. package/dist/actions/update-customer.mjs.map +1 -1
  469. package/dist/actions/update-employee.cjs +1 -1
  470. package/dist/actions/update-employee.cjs.map +1 -1
  471. package/dist/actions/update-employee.d.cts +14 -2
  472. package/dist/actions/update-employee.d.cts.map +1 -1
  473. package/dist/actions/update-employee.d.mts +14 -2
  474. package/dist/actions/update-employee.d.mts.map +1 -1
  475. package/dist/actions/update-employee.mjs +1 -1
  476. package/dist/actions/update-employee.mjs.map +1 -1
  477. package/dist/actions/update-invoice.cjs +1 -1
  478. package/dist/actions/update-invoice.cjs.map +1 -1
  479. package/dist/actions/update-invoice.d.cts +14 -2
  480. package/dist/actions/update-invoice.d.cts.map +1 -1
  481. package/dist/actions/update-invoice.d.mts +14 -2
  482. package/dist/actions/update-invoice.d.mts.map +1 -1
  483. package/dist/actions/update-invoice.mjs +1 -1
  484. package/dist/actions/update-invoice.mjs.map +1 -1
  485. package/dist/actions/update-item-fulfillment.cjs +1 -1
  486. package/dist/actions/update-item-fulfillment.cjs.map +1 -1
  487. package/dist/actions/update-item-fulfillment.d.cts +14 -2
  488. package/dist/actions/update-item-fulfillment.d.cts.map +1 -1
  489. package/dist/actions/update-item-fulfillment.d.mts +14 -2
  490. package/dist/actions/update-item-fulfillment.d.mts.map +1 -1
  491. package/dist/actions/update-item-fulfillment.mjs +1 -1
  492. package/dist/actions/update-item-fulfillment.mjs.map +1 -1
  493. package/dist/actions/update-item-receipt.cjs +1 -1
  494. package/dist/actions/update-item-receipt.cjs.map +1 -1
  495. package/dist/actions/update-item-receipt.d.cts +14 -2
  496. package/dist/actions/update-item-receipt.d.cts.map +1 -1
  497. package/dist/actions/update-item-receipt.d.mts +14 -2
  498. package/dist/actions/update-item-receipt.d.mts.map +1 -1
  499. package/dist/actions/update-item-receipt.mjs +1 -1
  500. package/dist/actions/update-item-receipt.mjs.map +1 -1
  501. package/dist/actions/update-item.cjs +1 -1
  502. package/dist/actions/update-item.cjs.map +1 -1
  503. package/dist/actions/update-item.d.cts +14 -2
  504. package/dist/actions/update-item.d.cts.map +1 -1
  505. package/dist/actions/update-item.d.mts +14 -2
  506. package/dist/actions/update-item.d.mts.map +1 -1
  507. package/dist/actions/update-item.mjs +1 -1
  508. package/dist/actions/update-item.mjs.map +1 -1
  509. package/dist/actions/update-journal-entry.cjs +1 -1
  510. package/dist/actions/update-journal-entry.cjs.map +1 -1
  511. package/dist/actions/update-journal-entry.d.cts +14 -2
  512. package/dist/actions/update-journal-entry.d.cts.map +1 -1
  513. package/dist/actions/update-journal-entry.d.mts +14 -2
  514. package/dist/actions/update-journal-entry.d.mts.map +1 -1
  515. package/dist/actions/update-journal-entry.mjs +1 -1
  516. package/dist/actions/update-journal-entry.mjs.map +1 -1
  517. package/dist/actions/update-purchase-order.cjs +1 -1
  518. package/dist/actions/update-purchase-order.cjs.map +1 -1
  519. package/dist/actions/update-purchase-order.d.cts +14 -2
  520. package/dist/actions/update-purchase-order.d.cts.map +1 -1
  521. package/dist/actions/update-purchase-order.d.mts +14 -2
  522. package/dist/actions/update-purchase-order.d.mts.map +1 -1
  523. package/dist/actions/update-purchase-order.mjs +1 -1
  524. package/dist/actions/update-purchase-order.mjs.map +1 -1
  525. package/dist/actions/update-sales-order.cjs +1 -1
  526. package/dist/actions/update-sales-order.cjs.map +1 -1
  527. package/dist/actions/update-sales-order.d.cts +14 -2
  528. package/dist/actions/update-sales-order.d.cts.map +1 -1
  529. package/dist/actions/update-sales-order.d.mts +14 -2
  530. package/dist/actions/update-sales-order.d.mts.map +1 -1
  531. package/dist/actions/update-sales-order.mjs +1 -1
  532. package/dist/actions/update-sales-order.mjs.map +1 -1
  533. package/dist/actions/update-vendor-bill.cjs +1 -1
  534. package/dist/actions/update-vendor-bill.cjs.map +1 -1
  535. package/dist/actions/update-vendor-bill.d.cts +14 -2
  536. package/dist/actions/update-vendor-bill.d.cts.map +1 -1
  537. package/dist/actions/update-vendor-bill.d.mts +14 -2
  538. package/dist/actions/update-vendor-bill.d.mts.map +1 -1
  539. package/dist/actions/update-vendor-bill.mjs +1 -1
  540. package/dist/actions/update-vendor-bill.mjs.map +1 -1
  541. package/dist/actions/update-vendor-payment.cjs +1 -1
  542. package/dist/actions/update-vendor-payment.cjs.map +1 -1
  543. package/dist/actions/update-vendor-payment.d.cts +14 -2
  544. package/dist/actions/update-vendor-payment.d.cts.map +1 -1
  545. package/dist/actions/update-vendor-payment.d.mts +14 -2
  546. package/dist/actions/update-vendor-payment.d.mts.map +1 -1
  547. package/dist/actions/update-vendor-payment.mjs +1 -1
  548. package/dist/actions/update-vendor-payment.mjs.map +1 -1
  549. package/dist/actions/update-vendor.cjs +1 -1
  550. package/dist/actions/update-vendor.cjs.map +1 -1
  551. package/dist/actions/update-vendor.d.cts +14 -2
  552. package/dist/actions/update-vendor.d.cts.map +1 -1
  553. package/dist/actions/update-vendor.d.mts +14 -2
  554. package/dist/actions/update-vendor.d.mts.map +1 -1
  555. package/dist/actions/update-vendor.mjs +1 -1
  556. package/dist/actions/update-vendor.mjs.map +1 -1
  557. package/dist/actions/upsert-record-by-external-id.cjs +1 -1
  558. package/dist/actions/upsert-record-by-external-id.cjs.map +1 -1
  559. package/dist/actions/upsert-record-by-external-id.d.cts +14 -2
  560. package/dist/actions/upsert-record-by-external-id.d.cts.map +1 -1
  561. package/dist/actions/upsert-record-by-external-id.d.mts +14 -2
  562. package/dist/actions/upsert-record-by-external-id.d.mts.map +1 -1
  563. package/dist/actions/upsert-record-by-external-id.mjs +1 -1
  564. package/dist/actions/upsert-record-by-external-id.mjs.map +1 -1
  565. package/dist/app.cjs +5 -2
  566. package/dist/app.cjs.map +1 -1
  567. package/dist/app.d.cts +9 -1
  568. package/dist/app.d.cts.map +1 -1
  569. package/dist/app.d.mts +9 -1
  570. package/dist/app.d.mts.map +1 -1
  571. package/dist/app.mjs +3 -1
  572. package/dist/app.mjs.map +1 -1
  573. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-journal-entry.mjs","names":[],"sources":["../../src/actions/create-journal-entry.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateJournalEntryInput = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"JSON object matching NetSuite Journal Entry metadata; include all mandatory fields.\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided.\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Warning\"]).describe(\"Controls strictness for property name validation.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls strictness for property value validation.\").optional(),\n}).describe(\"Request model for creating a NetSuite Journal Entry record.\");\nexport const NetsuiteCreateJournalEntryOutput = z.object({\n location: z.string().describe(\"URL of the created Journal Entry record or async job status.\").nullable().optional(),\n \"Preference-Applied\": z.string().describe(\"Echoes 'respond-async' when async creation is requested.\").nullable().optional(),\n}).describe(\"Response model for creating a Journal Entry record.\");\n\nexport const netsuiteCreateJournalEntry = action(\"NETSUITE_CREATE_JOURNAL_ENTRY\", {\n slug: \"netsuite-create-journal-entry\",\n name: \"Create Journal Entry\",\n description: \"Tool to create a new journal entry record. Use when posting balanced debits and credits to the general ledger.\",\n input: NetsuiteCreateJournalEntryInput,\n output: NetsuiteCreateJournalEntryOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF;EACtI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7G,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACvI,qCAAqC,EAAE,KAAK;GAAC;GAAS;GAAW;EAAgB,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC3J,sCAAsC,EAAE,KAAK;GAAC;GAAS;GAAW;EAAc,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,6DAUH;CACP,QAV8C,EAAE,OAAO;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-journal-entry.mjs","names":[],"sources":["../../src/actions/create-journal-entry.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateJournalEntryInput = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"JSON object matching NetSuite Journal Entry metadata; include all mandatory fields.\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided.\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Warning\"]).describe(\"Controls strictness for property name validation.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls strictness for property value validation.\").optional(),\n}).describe(\"Request model for creating a NetSuite Journal Entry record.\");\nexport const NetsuiteCreateJournalEntryOutput = z.object({\n location: z.string().describe(\"URL of the created Journal Entry record or async job status.\").nullable().optional(),\n \"Preference-Applied\": z.string().describe(\"Echoes 'respond-async' when async creation is requested.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a Journal Entry record.\");\n\nexport const netsuiteCreateJournalEntry = action(\"NETSUITE_CREATE_JOURNAL_ENTRY\", {\n slug: \"netsuite-create-journal-entry\",\n name: \"Create Journal Entry\",\n description: \"Tool to create a new journal entry record. Use when posting balanced debits and credits to the general ledger.\",\n input: NetsuiteCreateJournalEntryInput,\n output: NetsuiteCreateJournalEntryOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF;EACtI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7G,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACvI,qCAAqC,EAAE,KAAK;GAAC;GAAS;GAAW;EAAgB,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC3J,sCAAsC,EAAE,KAAK;GAAC;GAAS;GAAW;EAAc,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,6DAUH;CACP,QAV8C,EAAE,OAAO;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -11,7 +11,7 @@ const NetsuiteCreateJwtClientAssertionInput = zod.z.object({
11
11
  certificate_id: zod.z.string().describe("Certificate ID to set as JWT header 'kid'. If omitted, taken from metadata consumer_id.").optional(),
12
12
  private_key_pem: zod.z.string().describe("RSA private key in PEM format used to sign the JWT with PS256. If omitted, taken from metadata consumer_secret.").optional()
13
13
  });
14
- const NetsuiteCreateJwtClientAssertionOutput = zod.z.object({ client_assertion: zod.z.string().describe("Signed JWT client assertion in compact form.").nullable() });
14
+ const NetsuiteCreateJwtClientAssertionOutput = zod.z.object({ client_assertion: zod.z.string().describe("Signed JWT client assertion in compact form.").nullable() }).passthrough();
15
15
  const netsuiteCreateJwtClientAssertion = require_action.action("NETSUITE_CREATE_JWT_CLIENT_ASSERTION", {
16
16
  slug: "netsuite-create-jwt-client-assertion",
17
17
  name: "Create JWT Client Assertion",
@@ -1 +1 @@
1
- {"version":3,"file":"create-jwt-client-assertion.cjs","names":["z","action"],"sources":["../../src/actions/create-jwt-client-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateJwtClientAssertionInput = z.object({\n alg: z.string().describe(\"Signing algorithm to use. Defaults to PS256. Supported: PS256 (RSA-PSS), RS256 (RSA), HS256 (HMAC).\").optional(),\n aud: z.string().describe(\"Audience for the JWT assertion. Defaults to the NetSuite OAuth2 token endpoint for your account.\").optional(),\n exp: z.number().int().describe(\"Expiration time as Unix timestamp (seconds). Must be no more than 3600 seconds after iat. Defaults to iat + 300.\").optional(),\n iat: z.number().int().describe(\"Issued-at time as Unix timestamp (seconds). Defaults to current time.\").optional(),\n scope: z.string().describe(\"Comma-separated list of scopes for the JWT assertion. Allowed values: restlets, rest_webservices, suite_analytics.\"),\n client_id: z.string().describe(\"Integration client ID (Application ID) to use as JWT issuer (iss). If omitted, taken from metadata.\").optional(),\n certificate_id: z.string().describe(\"Certificate ID to set as JWT header 'kid'. If omitted, taken from metadata consumer_id.\").optional(),\n private_key_pem: z.string().describe(\"RSA private key in PEM format used to sign the JWT with PS256. If omitted, taken from metadata consumer_secret.\").optional(),\n});\nexport const NetsuiteCreateJwtClientAssertionOutput = z.object({\n client_assertion: z.string().describe(\"Signed JWT client assertion in compact form.\").nullable(),\n});\n\nexport const netsuiteCreateJwtClientAssertion = action(\"NETSUITE_CREATE_JWT_CLIENT_ASSERTION\", {\n slug: \"netsuite-create-jwt-client-assertion\",\n name: \"Create JWT Client Assertion\",\n description: \"Tool to build a JWT client assertion for NetSuite OAuth2 client credentials. Use before exchanging for an access token.\",\n input: NetsuiteCreateJwtClientAssertionInput,\n output: NetsuiteCreateJwtClientAssertionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACzI,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACtI,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC5J,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAC/I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC/I,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACxI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AACnK,CAAC;AACD,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACjG,CAAC;AAED,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-jwt-client-assertion.cjs","names":["z","action"],"sources":["../../src/actions/create-jwt-client-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateJwtClientAssertionInput = z.object({\n alg: z.string().describe(\"Signing algorithm to use. Defaults to PS256. Supported: PS256 (RSA-PSS), RS256 (RSA), HS256 (HMAC).\").optional(),\n aud: z.string().describe(\"Audience for the JWT assertion. Defaults to the NetSuite OAuth2 token endpoint for your account.\").optional(),\n exp: z.number().int().describe(\"Expiration time as Unix timestamp (seconds). Must be no more than 3600 seconds after iat. Defaults to iat + 300.\").optional(),\n iat: z.number().int().describe(\"Issued-at time as Unix timestamp (seconds). Defaults to current time.\").optional(),\n scope: z.string().describe(\"Comma-separated list of scopes for the JWT assertion. Allowed values: restlets, rest_webservices, suite_analytics.\"),\n client_id: z.string().describe(\"Integration client ID (Application ID) to use as JWT issuer (iss). If omitted, taken from metadata.\").optional(),\n certificate_id: z.string().describe(\"Certificate ID to set as JWT header 'kid'. If omitted, taken from metadata consumer_id.\").optional(),\n private_key_pem: z.string().describe(\"RSA private key in PEM format used to sign the JWT with PS256. If omitted, taken from metadata consumer_secret.\").optional(),\n});\nexport const NetsuiteCreateJwtClientAssertionOutput = z.object({\n client_assertion: z.string().describe(\"Signed JWT client assertion in compact form.\").nullable(),\n}).passthrough();\n\nexport const netsuiteCreateJwtClientAssertion = action(\"NETSUITE_CREATE_JWT_CLIENT_ASSERTION\", {\n slug: \"netsuite-create-jwt-client-assertion\",\n name: \"Create JWT Client Assertion\",\n description: \"Tool to build a JWT client assertion for NetSuite OAuth2 client credentials. Use before exchanging for an access token.\",\n input: NetsuiteCreateJwtClientAssertionInput,\n output: NetsuiteCreateJwtClientAssertionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACzI,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACtI,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC5J,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAC/I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC/I,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACxI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AACnK,CAAC;AACD,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,7 +13,7 @@ declare const NetsuiteCreateJwtClientAssertionInput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const NetsuiteCreateJwtClientAssertionOutput: z.ZodObject<{
15
15
  client_assertion: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>;
16
+ }, z.core.$loose>;
17
17
  declare const netsuiteCreateJwtClientAssertion: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  scope: string;
19
19
  alg?: string | undefined;
@@ -23,7 +23,19 @@ declare const netsuiteCreateJwtClientAssertion: import("@keystrokehq/action").Wo
23
23
  client_id?: string | undefined;
24
24
  certificate_id?: string | undefined;
25
25
  private_key_pem?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
27
+ connectionId: z.ZodString;
28
+ entityId: z.ZodString;
29
+ instanceId: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ accessToken: z.ZodString;
32
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
33
+ connectionId: z.ZodString;
34
+ entityId: z.ZodString;
35
+ instanceId: z.ZodString;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ accessToken: z.ZodString;
38
+ }, z.core.$strip>>]>;
27
39
  //#endregion
28
40
  export { netsuiteCreateJwtClientAssertion };
29
41
  //# sourceMappingURL=create-jwt-client-assertion.d.cts.map
@@ -13,7 +13,7 @@ declare const NetsuiteCreateJwtClientAssertionInput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const NetsuiteCreateJwtClientAssertionOutput: z.ZodObject<{
15
15
  client_assertion: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>;
16
+ }, z.core.$loose>;
17
17
  declare const netsuiteCreateJwtClientAssertion: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  scope: string;
19
19
  alg?: string | undefined;
@@ -23,7 +23,19 @@ declare const netsuiteCreateJwtClientAssertion: import("@keystrokehq/action").Wo
23
23
  client_id?: string | undefined;
24
24
  certificate_id?: string | undefined;
25
25
  private_key_pem?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
27
+ connectionId: z.ZodString;
28
+ entityId: z.ZodString;
29
+ instanceId: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ accessToken: z.ZodString;
32
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
33
+ connectionId: z.ZodString;
34
+ entityId: z.ZodString;
35
+ instanceId: z.ZodString;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ accessToken: z.ZodString;
38
+ }, z.core.$strip>>]>;
27
39
  //#endregion
28
40
  export { netsuiteCreateJwtClientAssertion };
29
41
  //# sourceMappingURL=create-jwt-client-assertion.d.mts.map
@@ -14,7 +14,7 @@ const netsuiteCreateJwtClientAssertion = action("NETSUITE_CREATE_JWT_CLIENT_ASSE
14
14
  certificate_id: z.string().describe("Certificate ID to set as JWT header 'kid'. If omitted, taken from metadata consumer_id.").optional(),
15
15
  private_key_pem: z.string().describe("RSA private key in PEM format used to sign the JWT with PS256. If omitted, taken from metadata consumer_secret.").optional()
16
16
  }),
17
- output: z.object({ client_assertion: z.string().describe("Signed JWT client assertion in compact form.").nullable() })
17
+ output: z.object({ client_assertion: z.string().describe("Signed JWT client assertion in compact form.").nullable() }).passthrough()
18
18
  });
19
19
  //#endregion
20
20
  export { netsuiteCreateJwtClientAssertion };
@@ -1 +1 @@
1
- {"version":3,"file":"create-jwt-client-assertion.mjs","names":[],"sources":["../../src/actions/create-jwt-client-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateJwtClientAssertionInput = z.object({\n alg: z.string().describe(\"Signing algorithm to use. Defaults to PS256. Supported: PS256 (RSA-PSS), RS256 (RSA), HS256 (HMAC).\").optional(),\n aud: z.string().describe(\"Audience for the JWT assertion. Defaults to the NetSuite OAuth2 token endpoint for your account.\").optional(),\n exp: z.number().int().describe(\"Expiration time as Unix timestamp (seconds). Must be no more than 3600 seconds after iat. Defaults to iat + 300.\").optional(),\n iat: z.number().int().describe(\"Issued-at time as Unix timestamp (seconds). Defaults to current time.\").optional(),\n scope: z.string().describe(\"Comma-separated list of scopes for the JWT assertion. Allowed values: restlets, rest_webservices, suite_analytics.\"),\n client_id: z.string().describe(\"Integration client ID (Application ID) to use as JWT issuer (iss). If omitted, taken from metadata.\").optional(),\n certificate_id: z.string().describe(\"Certificate ID to set as JWT header 'kid'. If omitted, taken from metadata consumer_id.\").optional(),\n private_key_pem: z.string().describe(\"RSA private key in PEM format used to sign the JWT with PS256. If omitted, taken from metadata consumer_secret.\").optional(),\n});\nexport const NetsuiteCreateJwtClientAssertionOutput = z.object({\n client_assertion: z.string().describe(\"Signed JWT client assertion in compact form.\").nullable(),\n});\n\nexport const netsuiteCreateJwtClientAssertion = action(\"NETSUITE_CREATE_JWT_CLIENT_ASSERTION\", {\n slug: \"netsuite-create-jwt-client-assertion\",\n name: \"Create JWT Client Assertion\",\n description: \"Tool to build a JWT client assertion for NetSuite OAuth2 client credentials. Use before exchanging for an access token.\",\n input: NetsuiteCreateJwtClientAssertionInput,\n output: NetsuiteCreateJwtClientAssertionOutput,\n});\n"],"mappings":";;AAkBA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACzI,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACtI,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC5J,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EAC/I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC/I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACxI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACnK,CASS;CACP,QAToD,EAAE,OAAO,EAC7D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACjG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-jwt-client-assertion.mjs","names":[],"sources":["../../src/actions/create-jwt-client-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateJwtClientAssertionInput = z.object({\n alg: z.string().describe(\"Signing algorithm to use. Defaults to PS256. Supported: PS256 (RSA-PSS), RS256 (RSA), HS256 (HMAC).\").optional(),\n aud: z.string().describe(\"Audience for the JWT assertion. Defaults to the NetSuite OAuth2 token endpoint for your account.\").optional(),\n exp: z.number().int().describe(\"Expiration time as Unix timestamp (seconds). Must be no more than 3600 seconds after iat. Defaults to iat + 300.\").optional(),\n iat: z.number().int().describe(\"Issued-at time as Unix timestamp (seconds). Defaults to current time.\").optional(),\n scope: z.string().describe(\"Comma-separated list of scopes for the JWT assertion. Allowed values: restlets, rest_webservices, suite_analytics.\"),\n client_id: z.string().describe(\"Integration client ID (Application ID) to use as JWT issuer (iss). If omitted, taken from metadata.\").optional(),\n certificate_id: z.string().describe(\"Certificate ID to set as JWT header 'kid'. If omitted, taken from metadata consumer_id.\").optional(),\n private_key_pem: z.string().describe(\"RSA private key in PEM format used to sign the JWT with PS256. If omitted, taken from metadata consumer_secret.\").optional(),\n});\nexport const NetsuiteCreateJwtClientAssertionOutput = z.object({\n client_assertion: z.string().describe(\"Signed JWT client assertion in compact form.\").nullable(),\n}).passthrough();\n\nexport const netsuiteCreateJwtClientAssertion = action(\"NETSUITE_CREATE_JWT_CLIENT_ASSERTION\", {\n slug: \"netsuite-create-jwt-client-assertion\",\n name: \"Create JWT Client Assertion\",\n description: \"Tool to build a JWT client assertion for NetSuite OAuth2 client credentials. Use before exchanging for an access token.\",\n input: NetsuiteCreateJwtClientAssertionInput,\n output: NetsuiteCreateJwtClientAssertionOutput,\n});\n"],"mappings":";;AAkBA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACzI,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACtI,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC5J,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EAC/I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC/I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACxI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACnK,CASS;CACP,QAToD,EAAE,OAAO,EAC7D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -8,7 +8,7 @@ const NetsuiteCreatePurchaseOrderInput = zod.z.object({
8
8
  taxCode: zod.z.object({ id: zod.z.string().describe("Internal ID of the referenced record") }).describe("Reference to another NetSuite record by internal ID.").optional(),
9
9
  quantity: zod.z.number().describe("Quantity to order (must be non-negative)"),
10
10
  description: zod.z.string().describe("Line description").optional()
11
- }).describe("A single line item on the purchase order.")).describe("List of line items to include on the purchase order") }).describe("Container for purchase order line items"),
11
+ }).passthrough().describe("A single line item on the purchase order.")).describe("List of line items to include on the purchase order") }).describe("Container for purchase order line items"),
12
12
  memo: zod.z.string().describe("Header memo for the purchase order").optional(),
13
13
  Prefer: zod.z.string().describe("Use 'respond-async' to run the create operation asynchronously").optional(),
14
14
  entity: zod.z.object({ id: zod.z.string().describe("Internal ID of the referenced record") }).describe("Vendor record reference"),
@@ -31,7 +31,7 @@ const NetsuiteCreatePurchaseOrderInput = zod.z.object({
31
31
  const NetsuiteCreatePurchaseOrderOutput = zod.z.object({
32
32
  location: zod.z.string().describe("URL of the created Purchase Order record or async job status").nullable().optional(),
33
33
  preference_applied: zod.z.string().describe("Echoes 'respond-async' when async creation is requested").nullable().optional()
34
- }).describe("Response model for creating a Purchase Order record.");
34
+ }).passthrough().describe("Response model for creating a Purchase Order record.");
35
35
  const netsuiteCreatePurchaseOrder = require_action.action("NETSUITE_CREATE_PURCHASE_ORDER", {
36
36
  slug: "netsuite-create-purchase-order",
37
37
  name: "Create Purchase Order",
@@ -1 +1 @@
1
- {"version":3,"file":"create-purchase-order.cjs","names":["z","action"],"sources":["../../src/actions/create-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreatePurchaseOrderInput = z.object({\n item: z.object({\n items: z.array(z.object({\n item: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to the item being ordered\"),\n rate: z.number().describe(\"Rate or price per unit for the item\").optional(),\n taxCode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n quantity: z.number().describe(\"Quantity to order (must be non-negative)\"),\n description: z.string().describe(\"Line description\").optional(),\n}).describe(\"A single line item on the purchase order.\")).describe(\"List of line items to include on the purchase order\"),\n}).describe(\"Container for purchase order line items\"),\n memo: z.string().describe(\"Header memo for the purchase order\").optional(),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously\").optional(),\n entity: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Vendor record reference\"),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided\").optional(),\n location: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n tranDate: z.string().describe(\"Transaction date in YYYY-MM-DD format\").optional(),\n customForm: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Warning\"]).describe(\"Controls strictness for property name validation\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls strictness for property value validation\").optional(),\n}).describe(\"Request model for creating a NetSuite Purchase Order record.\");\nexport const NetsuiteCreatePurchaseOrderOutput = z.object({\n location: z.string().describe(\"URL of the created Purchase Order record or async job status\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested\").nullable().optional(),\n}).describe(\"Response model for creating a Purchase Order record.\");\n\nexport const netsuiteCreatePurchaseOrder = action(\"NETSUITE_CREATE_PURCHASE_ORDER\", {\n slug: \"netsuite-create-purchase-order\",\n name: \"Create Purchase Order\",\n description: \"Tool to create a new purchase order record. Use when you need to submit a purchase order to a vendor.\",\n input: NetsuiteCreatePurchaseOrderInput,\n output: NetsuiteCreatePurchaseOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,EACf,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,qCAAqC;EAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAChE,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,qDAAqD,EACxH,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnD,MAAMA,IAAA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AAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-purchase-order.cjs","names":["z","action"],"sources":["../../src/actions/create-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreatePurchaseOrderInput = z.object({\n item: z.object({\n items: z.array(z.object({\n item: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to the item being ordered\"),\n rate: z.number().describe(\"Rate or price per unit for the item\").optional(),\n taxCode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n quantity: z.number().describe(\"Quantity to order (must be non-negative)\"),\n description: z.string().describe(\"Line description\").optional(),\n}).passthrough().describe(\"A single line item on the purchase order.\")).describe(\"List of line items to include on the purchase order\"),\n}).describe(\"Container for purchase order line items\"),\n memo: z.string().describe(\"Header memo for the purchase order\").optional(),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously\").optional(),\n entity: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Vendor record reference\"),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided\").optional(),\n location: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n tranDate: z.string().describe(\"Transaction date in YYYY-MM-DD format\").optional(),\n customForm: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Warning\"]).describe(\"Controls strictness for property name validation\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls strictness for property value validation\").optional(),\n}).describe(\"Request model for creating a NetSuite Purchase Order record.\");\nexport const NetsuiteCreatePurchaseOrderOutput = z.object({\n location: z.string().describe(\"URL of the created Purchase Order record or async job status\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a Purchase Order record.\");\n\nexport const netsuiteCreatePurchaseOrder = action(\"NETSUITE_CREATE_PURCHASE_ORDER\", {\n slug: \"netsuite-create-purchase-order\",\n name: \"Create Purchase Order\",\n description: \"Tool to create a new purchase order record. Use when you need to submit a purchase order to a vendor.\",\n input: NetsuiteCreatePurchaseOrderInput,\n output: NetsuiteCreatePurchaseOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,EACf,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,qCAAqC;EAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,SAASA,IAAAA,EAAE,OAAO,EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAChE,CAAC,CAAC,CAA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AAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,7 +13,7 @@ declare const NetsuiteCreatePurchaseOrderInput: z.ZodObject<{
13
13
  }, z.core.$strip>>;
14
14
  quantity: z.ZodNumber;
15
15
  description: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  }, z.core.$strip>;
18
18
  memo: z.ZodOptional<z.ZodString>;
19
19
  Prefer: z.ZodOptional<z.ZodString>;
@@ -43,10 +43,11 @@ declare const NetsuiteCreatePurchaseOrderInput: z.ZodObject<{
43
43
  declare const NetsuiteCreatePurchaseOrderOutput: z.ZodObject<{
44
44
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  preference_applied: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- }, z.core.$strip>;
46
+ }, z.core.$loose>;
47
47
  declare const netsuiteCreatePurchaseOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
48
48
  item: {
49
49
  items: {
50
+ [x: string]: unknown;
50
51
  item: {
51
52
  id: string;
52
53
  };
@@ -74,7 +75,19 @@ declare const netsuiteCreatePurchaseOrder: import("@keystrokehq/action").Workflo
74
75
  "X-NetSuite-Idempotency-Key"?: string | undefined;
75
76
  "X-NetSuite-PropertyNameValidation"?: "Error" | "Warning" | "Ignore Warning" | undefined;
76
77
  "X-NetSuite-PropertyValueValidation"?: "Error" | "Warning" | "Ignore Error" | undefined;
77
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
78
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
79
+ connectionId: z.ZodString;
80
+ entityId: z.ZodString;
81
+ instanceId: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ accessToken: z.ZodString;
84
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
85
+ connectionId: z.ZodString;
86
+ entityId: z.ZodString;
87
+ instanceId: z.ZodString;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ accessToken: z.ZodString;
90
+ }, z.core.$strip>>]>;
78
91
  //#endregion
79
92
  export { netsuiteCreatePurchaseOrder };
80
93
  //# sourceMappingURL=create-purchase-order.d.cts.map
@@ -13,7 +13,7 @@ declare const NetsuiteCreatePurchaseOrderInput: z.ZodObject<{
13
13
  }, z.core.$strip>>;
14
14
  quantity: z.ZodNumber;
15
15
  description: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  }, z.core.$strip>;
18
18
  memo: z.ZodOptional<z.ZodString>;
19
19
  Prefer: z.ZodOptional<z.ZodString>;
@@ -43,10 +43,11 @@ declare const NetsuiteCreatePurchaseOrderInput: z.ZodObject<{
43
43
  declare const NetsuiteCreatePurchaseOrderOutput: z.ZodObject<{
44
44
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  preference_applied: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- }, z.core.$strip>;
46
+ }, z.core.$loose>;
47
47
  declare const netsuiteCreatePurchaseOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
48
48
  item: {
49
49
  items: {
50
+ [x: string]: unknown;
50
51
  item: {
51
52
  id: string;
52
53
  };
@@ -74,7 +75,19 @@ declare const netsuiteCreatePurchaseOrder: import("@keystrokehq/action").Workflo
74
75
  "X-NetSuite-Idempotency-Key"?: string | undefined;
75
76
  "X-NetSuite-PropertyNameValidation"?: "Error" | "Warning" | "Ignore Warning" | undefined;
76
77
  "X-NetSuite-PropertyValueValidation"?: "Error" | "Warning" | "Ignore Error" | undefined;
77
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
78
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
79
+ connectionId: z.ZodString;
80
+ entityId: z.ZodString;
81
+ instanceId: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ accessToken: z.ZodString;
84
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
85
+ connectionId: z.ZodString;
86
+ entityId: z.ZodString;
87
+ instanceId: z.ZodString;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ accessToken: z.ZodString;
90
+ }, z.core.$strip>>]>;
78
91
  //#endregion
79
92
  export { netsuiteCreatePurchaseOrder };
80
93
  //# sourceMappingURL=create-purchase-order.d.mts.map
@@ -11,7 +11,7 @@ const netsuiteCreatePurchaseOrder = action("NETSUITE_CREATE_PURCHASE_ORDER", {
11
11
  taxCode: z.object({ id: z.string().describe("Internal ID of the referenced record") }).describe("Reference to another NetSuite record by internal ID.").optional(),
12
12
  quantity: z.number().describe("Quantity to order (must be non-negative)"),
13
13
  description: z.string().describe("Line description").optional()
14
- }).describe("A single line item on the purchase order.")).describe("List of line items to include on the purchase order") }).describe("Container for purchase order line items"),
14
+ }).passthrough().describe("A single line item on the purchase order.")).describe("List of line items to include on the purchase order") }).describe("Container for purchase order line items"),
15
15
  memo: z.string().describe("Header memo for the purchase order").optional(),
16
16
  Prefer: z.string().describe("Use 'respond-async' to run the create operation asynchronously").optional(),
17
17
  entity: z.object({ id: z.string().describe("Internal ID of the referenced record") }).describe("Vendor record reference"),
@@ -34,7 +34,7 @@ const netsuiteCreatePurchaseOrder = action("NETSUITE_CREATE_PURCHASE_ORDER", {
34
34
  output: z.object({
35
35
  location: z.string().describe("URL of the created Purchase Order record or async job status").nullable().optional(),
36
36
  preference_applied: z.string().describe("Echoes 'respond-async' when async creation is requested").nullable().optional()
37
- }).describe("Response model for creating a Purchase Order record.")
37
+ }).passthrough().describe("Response model for creating a Purchase Order record.")
38
38
  });
39
39
  //#endregion
40
40
  export { netsuiteCreatePurchaseOrder };
@@ -1 +1 @@
1
- {"version":3,"file":"create-purchase-order.mjs","names":[],"sources":["../../src/actions/create-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreatePurchaseOrderInput = z.object({\n item: z.object({\n items: z.array(z.object({\n item: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to the item being ordered\"),\n rate: z.number().describe(\"Rate or price per unit for the item\").optional(),\n taxCode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n quantity: z.number().describe(\"Quantity to order (must be non-negative)\"),\n description: z.string().describe(\"Line description\").optional(),\n}).describe(\"A single line item on the purchase order.\")).describe(\"List of line items to include on the purchase order\"),\n}).describe(\"Container for purchase order line items\"),\n memo: z.string().describe(\"Header memo for the purchase order\").optional(),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously\").optional(),\n entity: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Vendor record reference\"),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided\").optional(),\n location: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n tranDate: z.string().describe(\"Transaction date in YYYY-MM-DD format\").optional(),\n customForm: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Warning\"]).describe(\"Controls strictness for property name validation\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls strictness for property value validation\").optional(),\n}).describe(\"Request model for creating a NetSuite Purchase Order record.\");\nexport const NetsuiteCreatePurchaseOrderOutput = z.object({\n location: z.string().describe(\"URL of the created Purchase Order record or async job status\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested\").nullable().optional(),\n}).describe(\"Response model for creating a Purchase Order record.\");\n\nexport const netsuiteCreatePurchaseOrder = action(\"NETSUITE_CREATE_PURCHASE_ORDER\", {\n slug: \"netsuite-create-purchase-order\",\n name: \"Create Purchase Order\",\n description: \"Tool to create a new purchase order record. Use when you need to submit a purchase order to a vendor.\",\n input: NetsuiteCreatePurchaseOrderInput,\n output: NetsuiteCreatePurchaseOrderOutput,\n});\n"],"mappings":";;AAwCA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxC8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,qCAAqC;GAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAC1E,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;GACxE,aAAa,EAAE,OAAO,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S;EAClH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-purchase-order.mjs","names":[],"sources":["../../src/actions/create-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreatePurchaseOrderInput = z.object({\n item: z.object({\n items: z.array(z.object({\n item: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to the item being ordered\"),\n rate: z.number().describe(\"Rate or price per unit for the item\").optional(),\n taxCode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n quantity: z.number().describe(\"Quantity to order (must be non-negative)\"),\n description: z.string().describe(\"Line description\").optional(),\n}).passthrough().describe(\"A single line item on the purchase order.\")).describe(\"List of line items to include on the purchase order\"),\n}).describe(\"Container for purchase order line items\"),\n memo: z.string().describe(\"Header memo for the purchase order\").optional(),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously\").optional(),\n entity: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Vendor record reference\"),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided\").optional(),\n location: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n tranDate: z.string().describe(\"Transaction date in YYYY-MM-DD format\").optional(),\n customForm: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Warning\"]).describe(\"Controls strictness for property name validation\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls strictness for property value validation\").optional(),\n}).describe(\"Request model for creating a NetSuite Purchase Order record.\");\nexport const NetsuiteCreatePurchaseOrderOutput = z.object({\n location: z.string().describe(\"URL of the created Purchase Order record or async job status\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a Purchase Order record.\");\n\nexport const netsuiteCreatePurchaseOrder = action(\"NETSUITE_CREATE_PURCHASE_ORDER\", {\n slug: \"netsuite-create-purchase-order\",\n name: \"Create Purchase Order\",\n description: \"Tool to create a new purchase order record. Use when you need to submit a purchase order to a vendor.\",\n input: NetsuiteCreatePurchaseOrderInput,\n output: NetsuiteCreatePurchaseOrderOutput,\n});\n"],"mappings":";;AAwCA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxC8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,qCAAqC;GAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAC1E,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;GACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,qDAAqD,EACtI,CAAC,CAAC,CAAC,SAAS,yCAAyC;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AAC"}
@@ -22,7 +22,7 @@ const NetsuiteCreateRecordOutput = zod.z.object({
22
22
  location: zod.z.string().describe("Full URL of the created record or async job status endpoint.").nullable().optional(),
23
23
  record_id: zod.z.string().describe("Internal ID of the newly created record, extracted from location URL. Use this ID to reference the record in subsequent operations.").nullable().optional(),
24
24
  preference_applied: zod.z.string().describe("Echoes 'respond-async' when async creation is requested.").nullable().optional()
25
- }).describe("Response model for creating a record.");
25
+ }).passthrough().describe("Response model for creating a record.");
26
26
  const netsuiteCreateRecord = require_action.action("NETSUITE_CREATE_RECORD", {
27
27
  slug: "netsuite-create-record",
28
28
  name: "Create Record",
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.cjs","names":["z","action"],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateRecordInput = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Record data as a JSON object. Must include all required fields for the record type. Use GET_RECORD_METADATA to discover required fields and schema. Common fields: companyname/firstname+lastname (for entities), subsidiary reference (often required).\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided.\").optional(),\n record_type: z.string().describe(\"Record type identifier (e.g., 'customer', 'vendor', 'salesorder', 'invoice', 'employee', 'item'). For custom records, use 'customrecord_<scriptId>' format.\"),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for unrecognized property names: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid names.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for invalid property values: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid values.\").optional(),\n}).describe(\"Request model for creating a new NetSuite record of any type.\");\nexport const NetsuiteCreateRecordOutput = z.object({\n location: z.string().describe(\"Full URL of the created record or async job status endpoint.\").nullable().optional(),\n record_id: z.string().describe(\"Internal ID of the newly created record, extracted from location URL. Use this ID to reference the record in subsequent operations.\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested.\").nullable().optional(),\n}).describe(\"Response model for creating a record.\");\n\nexport const netsuiteCreateRecord = action(\"NETSUITE_CREATE_RECORD\", {\n slug: \"netsuite-create-record\",\n name: \"Create Record\",\n description: \"Creates a new NetSuite record of any type (customer, vendor, invoice, sales order, etc.). Use this action when you need to create any type of record in NetSuite. Provide the record type identifier and a JSON body with all required fields. Consider using GET_RECORD_METADATA first to discover required fields and valid values. Supports both synchronous (immediate) and asynchronous (background) creation. Returns the new record's ID and location URL. Limitations: Does not support subrecord creation or bulk operations (use dedicated bulk actions instead).\",\n input: NetsuiteCreateRecordInput,\n output: NetsuiteCreateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0PAA0P;CAC3S,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CAC9L,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACvI,qCAAqCA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACvR,sCAAsCA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;AACvR,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1L,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-record.cjs","names":["z","action"],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateRecordInput = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Record data as a JSON object. Must include all required fields for the record type. Use GET_RECORD_METADATA to discover required fields and schema. Common fields: companyname/firstname+lastname (for entities), subsidiary reference (often required).\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided.\").optional(),\n record_type: z.string().describe(\"Record type identifier (e.g., 'customer', 'vendor', 'salesorder', 'invoice', 'employee', 'item'). For custom records, use 'customrecord_<scriptId>' format.\"),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for unrecognized property names: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid names.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for invalid property values: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid values.\").optional(),\n}).describe(\"Request model for creating a new NetSuite record of any type.\");\nexport const NetsuiteCreateRecordOutput = z.object({\n location: z.string().describe(\"Full URL of the created record or async job status endpoint.\").nullable().optional(),\n record_id: z.string().describe(\"Internal ID of the newly created record, extracted from location URL. Use this ID to reference the record in subsequent operations.\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a record.\");\n\nexport const netsuiteCreateRecord = action(\"NETSUITE_CREATE_RECORD\", {\n slug: \"netsuite-create-record\",\n name: \"Create Record\",\n description: \"Creates a new NetSuite record of any type (customer, vendor, invoice, sales order, etc.). Use this action when you need to create any type of record in NetSuite. Provide the record type identifier and a JSON body with all required fields. Consider using GET_RECORD_METADATA first to discover required fields and valid values. Supports both synchronous (immediate) and asynchronous (background) creation. Returns the new record's ID and location URL. Limitations: Does not support subrecord creation or bulk operations (use dedicated bulk actions instead).\",\n input: NetsuiteCreateRecordInput,\n output: NetsuiteCreateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0PAA0P;CAC3S,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CAC9L,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACvI,qCAAqCA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACvR,sCAAsCA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;AACvR,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1L,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -22,7 +22,7 @@ declare const NetsuiteCreateRecordOutput: z.ZodObject<{
22
22
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  record_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  preference_applied: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const netsuiteCreateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  body: Record<string, unknown>;
28
28
  record_type: string;
@@ -31,7 +31,19 @@ declare const netsuiteCreateRecord: import("@keystrokehq/action").WorkflowAction
31
31
  "X-NetSuite-Idempotency-Key"?: string | undefined;
32
32
  "X-NetSuite-PropertyNameValidation"?: "error" | "ignore" | "warning" | undefined;
33
33
  "X-NetSuite-PropertyValueValidation"?: "error" | "ignore" | "warning" | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ accessToken: z.ZodString;
40
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
41
+ connectionId: z.ZodString;
42
+ entityId: z.ZodString;
43
+ instanceId: z.ZodString;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ accessToken: z.ZodString;
46
+ }, z.core.$strip>>]>;
35
47
  //#endregion
36
48
  export { netsuiteCreateRecord };
37
49
  //# sourceMappingURL=create-record.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.d.cts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;QAM/B,MAAA"}
1
+ {"version":3,"file":"create-record.d.cts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -22,7 +22,7 @@ declare const NetsuiteCreateRecordOutput: z.ZodObject<{
22
22
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  record_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  preference_applied: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const netsuiteCreateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  body: Record<string, unknown>;
28
28
  record_type: string;
@@ -31,7 +31,19 @@ declare const netsuiteCreateRecord: import("@keystrokehq/action").WorkflowAction
31
31
  "X-NetSuite-Idempotency-Key"?: string | undefined;
32
32
  "X-NetSuite-PropertyNameValidation"?: "error" | "ignore" | "warning" | undefined;
33
33
  "X-NetSuite-PropertyValueValidation"?: "error" | "ignore" | "warning" | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ accessToken: z.ZodString;
40
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
41
+ connectionId: z.ZodString;
42
+ entityId: z.ZodString;
43
+ instanceId: z.ZodString;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ accessToken: z.ZodString;
46
+ }, z.core.$strip>>]>;
35
47
  //#endregion
36
48
  export { netsuiteCreateRecord };
37
49
  //# sourceMappingURL=create-record.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.d.mts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;QAM/B,MAAA"}
1
+ {"version":3,"file":"create-record.d.mts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -25,7 +25,7 @@ const netsuiteCreateRecord = action("NETSUITE_CREATE_RECORD", {
25
25
  location: z.string().describe("Full URL of the created record or async job status endpoint.").nullable().optional(),
26
26
  record_id: z.string().describe("Internal ID of the newly created record, extracted from location URL. Use this ID to reference the record in subsequent operations.").nullable().optional(),
27
27
  preference_applied: z.string().describe("Echoes 'respond-async' when async creation is requested.").nullable().optional()
28
- }).describe("Response model for creating a record.")
28
+ }).passthrough().describe("Response model for creating a record.")
29
29
  });
30
30
  //#endregion
31
31
  export { netsuiteCreateRecord };
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.mjs","names":[],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateRecordInput = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Record data as a JSON object. Must include all required fields for the record type. Use GET_RECORD_METADATA to discover required fields and schema. Common fields: companyname/firstname+lastname (for entities), subsidiary reference (often required).\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided.\").optional(),\n record_type: z.string().describe(\"Record type identifier (e.g., 'customer', 'vendor', 'salesorder', 'invoice', 'employee', 'item'). For custom records, use 'customrecord_<scriptId>' format.\"),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for unrecognized property names: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid names.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for invalid property values: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid values.\").optional(),\n}).describe(\"Request model for creating a new NetSuite record of any type.\");\nexport const NetsuiteCreateRecordOutput = z.object({\n location: z.string().describe(\"Full URL of the created record or async job status endpoint.\").nullable().optional(),\n record_id: z.string().describe(\"Internal ID of the newly created record, extracted from location URL. Use this ID to reference the record in subsequent operations.\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested.\").nullable().optional(),\n}).describe(\"Response model for creating a record.\");\n\nexport const netsuiteCreateRecord = action(\"NETSUITE_CREATE_RECORD\", {\n slug: \"netsuite-create-record\",\n name: \"Create Record\",\n description: \"Creates a new NetSuite record of any type (customer, vendor, invoice, sales order, etc.). Use this action when you need to create any type of record in NetSuite. Provide the record type identifier and a JSON body with all required fields. Consider using GET_RECORD_METADATA first to discover required fields and valid values. Supports both synchronous (immediate) and asynchronous (background) creation. Returns the new record's ID and location URL. Limitations: Does not support subrecord creation or bulk operations (use dedicated bulk actions instead).\",\n input: NetsuiteCreateRecordInput,\n output: NetsuiteCreateRecordOutput,\n});\n"],"mappings":";;AAmBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0PAA0P;EAC3S,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;EAC9L,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACvI,qCAAqC,EAAE,KAAK;GAAC;GAAU;GAAW;EAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;EACvR,sCAAsC,EAAE,KAAK;GAAC;GAAU;GAAW;EAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvR,CAAC,CAAC,CAAC,SAAS,+DAWH;CACP,QAXwC,EAAE,OAAO;EACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1L,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-record.mjs","names":[],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateRecordInput = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Record data as a JSON object. Must include all required fields for the record type. Use GET_RECORD_METADATA to discover required fields and schema. Common fields: companyname/firstname+lastname (for entities), subsidiary reference (often required).\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided.\").optional(),\n record_type: z.string().describe(\"Record type identifier (e.g., 'customer', 'vendor', 'salesorder', 'invoice', 'employee', 'item'). For custom records, use 'customrecord_<scriptId>' format.\"),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for unrecognized property names: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid names.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"ignore\", \"warning\", \"error\"]).describe(\"Controls validation level for invalid property values: 'error' (reject request), 'warning' (accept but warn), 'ignore' (silently accept). Default behavior rejects invalid values.\").optional(),\n}).describe(\"Request model for creating a new NetSuite record of any type.\");\nexport const NetsuiteCreateRecordOutput = z.object({\n location: z.string().describe(\"Full URL of the created record or async job status endpoint.\").nullable().optional(),\n record_id: z.string().describe(\"Internal ID of the newly created record, extracted from location URL. Use this ID to reference the record in subsequent operations.\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a record.\");\n\nexport const netsuiteCreateRecord = action(\"NETSUITE_CREATE_RECORD\", {\n slug: \"netsuite-create-record\",\n name: \"Create Record\",\n description: \"Creates a new NetSuite record of any type (customer, vendor, invoice, sales order, etc.). Use this action when you need to create any type of record in NetSuite. Provide the record type identifier and a JSON body with all required fields. Consider using GET_RECORD_METADATA first to discover required fields and valid values. Supports both synchronous (immediate) and asynchronous (background) creation. Returns the new record's ID and location URL. Limitations: Does not support subrecord creation or bulk operations (use dedicated bulk actions instead).\",\n input: NetsuiteCreateRecordInput,\n output: NetsuiteCreateRecordOutput,\n});\n"],"mappings":";;AAmBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0PAA0P;EAC3S,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;EAC9L,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACvI,qCAAqC,EAAE,KAAK;GAAC;GAAU;GAAW;EAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;EACvR,sCAAsC,EAAE,KAAK;GAAC;GAAU;GAAW;EAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvR,CAAC,CAAC,CAAC,SAAS,+DAWH;CACP,QAXwC,EAAE,OAAO;EACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1L,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -10,7 +10,7 @@ const NetsuiteCreateSalesOrderInput = zod.z.object({
10
10
  quantity: zod.z.number().describe("Quantity to order (must be non-negative)"),
11
11
  taxRate1: zod.z.number().describe("Tax rate as a decimal (e.g., 0.16 for 16%). Optional if taxcode is provided.").optional(),
12
12
  description: zod.z.string().describe("Line item description or additional notes").optional()
13
- }).describe("A single line item on the sales order.")).describe("List of line items to include on the sales order") }).describe("Container for sales order line items. Must include at least one item with quantity and pricing."),
13
+ }).passthrough().describe("A single line item on the sales order.")).describe("List of line items to include on the sales order") }).describe("Container for sales order line items. Must include at least one item with quantity and pricing."),
14
14
  memo: zod.z.string().describe("Header memo for the sales order").optional(),
15
15
  Prefer: zod.z.string().describe("Use 'respond-async' to run the create operation asynchronously").optional(),
16
16
  entity: zod.z.object({ id: zod.z.string().describe("Internal ID of the referenced record") }).describe("Customer record reference (internal ID required)"),
@@ -35,7 +35,7 @@ const NetsuiteCreateSalesOrderInput = zod.z.object({
35
35
  const NetsuiteCreateSalesOrderOutput = zod.z.object({
36
36
  location: zod.z.string().describe("URL of the created Sales Order record or async job status").nullable().optional(),
37
37
  preference_applied: zod.z.string().describe("Echoes 'respond-async' when async creation is requested").nullable().optional()
38
- }).describe("Response model for creating a Sales Order record.");
38
+ }).passthrough().describe("Response model for creating a Sales Order record.");
39
39
  const netsuiteCreateSalesOrder = require_action.action("NETSUITE_CREATE_SALES_ORDER", {
40
40
  slug: "netsuite-create-sales-order",
41
41
  name: "Create Sales Order",
@@ -1 +1 @@
1
- {"version":3,"file":"create-sales-order.cjs","names":["z","action"],"sources":["../../src/actions/create-sales-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateSalesOrderInput = z.object({\n item: z.object({\n items: z.array(z.object({\n item: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to the item being ordered (internal ID required)\"),\n rate: z.number().describe(\"Unit price per item. Required unless item has default pricing. Must be non-negative.\").optional(),\n amount: z.number().describe(\"Total line amount. Alternative to specifying rate. Calculated as quantity * rate if not provided. Must be non-negative.\").optional(),\n taxcode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n quantity: z.number().describe(\"Quantity to order (must be non-negative)\"),\n taxRate1: z.number().describe(\"Tax rate as a decimal (e.g., 0.16 for 16%). Optional if taxcode is provided.\").optional(),\n description: z.string().describe(\"Line item description or additional notes\").optional(),\n}).describe(\"A single line item on the sales order.\")).describe(\"List of line items to include on the sales order\"),\n}).describe(\"Container for sales order line items. Must include at least one item with quantity and pricing.\"),\n memo: z.string().describe(\"Header memo for the sales order\").optional(),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously\").optional(),\n entity: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Customer record reference (internal ID required)\"),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided\").optional(),\n tranDate: z.string().describe(\"Transaction date in YYYY-MM-DD format\").optional(),\n promocode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n customForm: z.string().describe(\"Internal ID of the custom sales order form (determines billing behavior)\").optional(),\n orderStatus: z.enum([\"A\", \"B\"]).describe(\"Approval status: 'A' = Pending Approval, 'B' = Pending Fulfillment\").optional(),\n otherrefnum: z.string().describe(\"External reference or PO number\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore\"]).describe(\"Controls strictness for property name validation\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore\"]).describe(\"Controls strictness for property value validation\").optional(),\n}).describe(\"Request model for creating a NetSuite Sales Order record.\\n\\nRequired fields:\\n- entity: Customer (internal ID)\\n- item: Container with list of line items\\n\\nEach line item must include item ID, quantity, and pricing (rate or amount).\\nIf SuiteTax is enabled on the account, each line item must also include a taxcode.\");\nexport const NetsuiteCreateSalesOrderOutput = z.object({\n location: z.string().describe(\"URL of the created Sales Order record or async job status\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested\").nullable().optional(),\n}).describe(\"Response model for creating a Sales Order record.\");\n\nexport const netsuiteCreateSalesOrder = action(\"NETSUITE_CREATE_SALES_ORDER\", {\n slug: \"netsuite-create-sales-order\",\n name: \"Create Sales Order\",\n description: \"Tool to create a new sales order record in NetSuite. Use this when you need to submit a customer order with one or more items. Each line item requires: - item: Reference to the inventory/service item (internal ID) - quantity: Number of units to order - rate: Unit price (optional if item has default pricing) - taxcode: Tax code reference (required if SuiteTax is enabled on the account) Note: NetSuite accounts with SuiteTax enabled require tax codes for line items.\",\n input: NetsuiteCreateSalesOrderInput,\n output: NetsuiteCreateSalesOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA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"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateSalesOrderInput = z.object({\n item: z.object({\n items: z.array(z.object({\n item: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to the item being ordered (internal ID required)\"),\n rate: z.number().describe(\"Unit price per item. Required unless item has default pricing. Must be non-negative.\").optional(),\n amount: z.number().describe(\"Total line amount. Alternative to specifying rate. Calculated as quantity * rate if not provided. Must be non-negative.\").optional(),\n taxcode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n quantity: z.number().describe(\"Quantity to order (must be non-negative)\"),\n taxRate1: z.number().describe(\"Tax rate as a decimal (e.g., 0.16 for 16%). Optional if taxcode is provided.\").optional(),\n description: z.string().describe(\"Line item description or additional notes\").optional(),\n}).passthrough().describe(\"A single line item on the sales order.\")).describe(\"List of line items to include on the sales order\"),\n}).describe(\"Container for sales order line items. Must include at least one item with quantity and pricing.\"),\n memo: z.string().describe(\"Header memo for the sales order\").optional(),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously\").optional(),\n entity: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Customer record reference (internal ID required)\"),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided\").optional(),\n tranDate: z.string().describe(\"Transaction date in YYYY-MM-DD format\").optional(),\n promocode: z.object({\n id: z.string().describe(\"Internal ID of the referenced record\"),\n}).describe(\"Reference to another NetSuite record by internal ID.\").optional(),\n customForm: z.string().describe(\"Internal ID of the custom sales order form (determines billing behavior)\").optional(),\n orderStatus: z.enum([\"A\", \"B\"]).describe(\"Approval status: 'A' = Pending Approval, 'B' = Pending Fulfillment\").optional(),\n otherrefnum: z.string().describe(\"External reference or PO number\").optional(),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.enum([\"Error\", \"Warning\", \"Ignore\"]).describe(\"Controls strictness for property name validation\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore\"]).describe(\"Controls strictness for property value validation\").optional(),\n}).describe(\"Request model for creating a NetSuite Sales Order record.\\n\\nRequired fields:\\n- entity: Customer (internal ID)\\n- item: Container with list of line items\\n\\nEach line item must include item ID, quantity, and pricing (rate or amount).\\nIf SuiteTax is enabled on the account, each line item must also include a taxcode.\");\nexport const NetsuiteCreateSalesOrderOutput = z.object({\n location: z.string().describe(\"URL of the created Sales Order record or async job status\").nullable().optional(),\n preference_applied: z.string().describe(\"Echoes 'respond-async' when async creation is requested\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a Sales Order record.\");\n\nexport const netsuiteCreateSalesOrder = action(\"NETSUITE_CREATE_SALES_ORDER\", {\n slug: \"netsuite-create-sales-order\",\n name: \"Create Sales Order\",\n description: \"Tool to create a new sales order record in NetSuite. Use this when you need to submit a customer order with one or more items. Each line item requires: - item: Reference to the inventory/service item (internal ID) - quantity: Number of units to order - rate: Unit price (optional if item has default pricing) - taxcode: Tax code reference (required if SuiteTax is enabled on the account) Note: NetSuite accounts with SuiteTax enabled require tax codes for line items.\",\n input: NetsuiteCreateSalesOrderInput,\n output: NetsuiteCreateSalesOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,EACf,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EAChE,CAAC,CAAC,CAAC,SAAS,4DAA4D;EACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAy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CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvG,qCAAqCA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAClJ,sCAAsCA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,gUAAgU;AAC5U,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -15,7 +15,7 @@ declare const NetsuiteCreateSalesOrderInput: z.ZodObject<{
15
15
  quantity: z.ZodNumber;
16
16
  taxRate1: z.ZodOptional<z.ZodNumber>;
17
17
  description: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  }, z.core.$strip>;
20
20
  memo: z.ZodOptional<z.ZodString>;
21
21
  Prefer: z.ZodOptional<z.ZodString>;
@@ -48,10 +48,11 @@ declare const NetsuiteCreateSalesOrderInput: z.ZodObject<{
48
48
  declare const NetsuiteCreateSalesOrderOutput: z.ZodObject<{
49
49
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  preference_applied: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>;
51
+ }, z.core.$loose>;
52
52
  declare const netsuiteCreateSalesOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
53
53
  item: {
54
54
  items: {
55
+ [x: string]: unknown;
55
56
  item: {
56
57
  id: string;
57
58
  };
@@ -81,7 +82,19 @@ declare const netsuiteCreateSalesOrder: import("@keystrokehq/action").WorkflowAc
81
82
  "X-NetSuite-Idempotency-Key"?: string | undefined;
82
83
  "X-NetSuite-PropertyNameValidation"?: "Error" | "Warning" | "Ignore" | undefined;
83
84
  "X-NetSuite-PropertyValueValidation"?: "Error" | "Warning" | "Ignore" | undefined;
84
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
85
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
86
+ connectionId: z.ZodString;
87
+ entityId: z.ZodString;
88
+ instanceId: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ accessToken: z.ZodString;
91
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
92
+ connectionId: z.ZodString;
93
+ entityId: z.ZodString;
94
+ instanceId: z.ZodString;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ accessToken: z.ZodString;
97
+ }, z.core.$strip>>]>;
85
98
  //#endregion
86
99
  export { netsuiteCreateSalesOrder };
87
100
  //# sourceMappingURL=create-sales-order.d.cts.map
@@ -15,7 +15,7 @@ declare const NetsuiteCreateSalesOrderInput: z.ZodObject<{
15
15
  quantity: z.ZodNumber;
16
16
  taxRate1: z.ZodOptional<z.ZodNumber>;
17
17
  description: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  }, z.core.$strip>;
20
20
  memo: z.ZodOptional<z.ZodString>;
21
21
  Prefer: z.ZodOptional<z.ZodString>;
@@ -48,10 +48,11 @@ declare const NetsuiteCreateSalesOrderInput: z.ZodObject<{
48
48
  declare const NetsuiteCreateSalesOrderOutput: z.ZodObject<{
49
49
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  preference_applied: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>;
51
+ }, z.core.$loose>;
52
52
  declare const netsuiteCreateSalesOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
53
53
  item: {
54
54
  items: {
55
+ [x: string]: unknown;
55
56
  item: {
56
57
  id: string;
57
58
  };
@@ -81,7 +82,19 @@ declare const netsuiteCreateSalesOrder: import("@keystrokehq/action").WorkflowAc
81
82
  "X-NetSuite-Idempotency-Key"?: string | undefined;
82
83
  "X-NetSuite-PropertyNameValidation"?: "Error" | "Warning" | "Ignore" | undefined;
83
84
  "X-NetSuite-PropertyValueValidation"?: "Error" | "Warning" | "Ignore" | undefined;
84
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
85
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
86
+ connectionId: z.ZodString;
87
+ entityId: z.ZodString;
88
+ instanceId: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ accessToken: z.ZodString;
91
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"netsuite", z.ZodObject<{
92
+ connectionId: z.ZodString;
93
+ entityId: z.ZodString;
94
+ instanceId: z.ZodString;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ accessToken: z.ZodString;
97
+ }, z.core.$strip>>]>;
85
98
  //#endregion
86
99
  export { netsuiteCreateSalesOrder };
87
100
  //# sourceMappingURL=create-sales-order.d.mts.map