@keystrokehq/netsuite 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/async-get-job-status.cjs +29 -0
- package/dist/actions/async-get-job-status.cjs.map +1 -0
- package/dist/actions/async-get-job-status.d.cts +9 -0
- package/dist/actions/async-get-job-status.d.cts.map +1 -0
- package/dist/actions/async-get-job-status.d.mts +9 -0
- package/dist/actions/async-get-job-status.d.mts.map +1 -0
- package/dist/actions/async-get-job-status.mjs +28 -0
- package/dist/actions/async-get-job-status.mjs.map +1 -0
- package/dist/actions/async-get-job-task-result.cjs +22 -0
- package/dist/actions/async-get-job-task-result.cjs.map +1 -0
- package/dist/actions/async-get-job-task-result.d.cts +9 -0
- package/dist/actions/async-get-job-task-result.d.cts.map +1 -0
- package/dist/actions/async-get-job-task-result.d.mts +9 -0
- package/dist/actions/async-get-job-task-result.d.mts.map +1 -0
- package/dist/actions/async-get-job-task-result.mjs +19 -0
- package/dist/actions/async-get-job-task-result.mjs.map +1 -0
- package/dist/actions/async-get-job-task.cjs +19 -0
- package/dist/actions/async-get-job-task.cjs.map +1 -0
- package/dist/actions/async-get-job-task.d.cts +9 -0
- package/dist/actions/async-get-job-task.d.cts.map +1 -0
- package/dist/actions/async-get-job-task.d.mts +9 -0
- package/dist/actions/async-get-job-task.d.mts.map +1 -0
- package/dist/actions/async-get-job-task.mjs +16 -0
- package/dist/actions/async-get-job-task.mjs.map +1 -0
- package/dist/actions/create-customer-payment.cjs +34 -0
- package/dist/actions/create-customer-payment.cjs.map +1 -0
- package/dist/actions/create-customer-payment.d.cts +9 -0
- package/dist/actions/create-customer-payment.d.cts.map +1 -0
- package/dist/actions/create-customer-payment.d.mts +9 -0
- package/dist/actions/create-customer-payment.d.mts.map +1 -0
- package/dist/actions/create-customer-payment.mjs +31 -0
- package/dist/actions/create-customer-payment.mjs.map +1 -0
- package/dist/actions/create-customer.cjs +34 -0
- package/dist/actions/create-customer.cjs.map +1 -0
- package/dist/actions/create-customer.d.cts +9 -0
- package/dist/actions/create-customer.d.cts.map +1 -0
- package/dist/actions/create-customer.d.mts +9 -0
- package/dist/actions/create-customer.d.mts.map +1 -0
- package/dist/actions/create-customer.mjs +31 -0
- package/dist/actions/create-customer.mjs.map +1 -0
- package/dist/actions/create-employee.cjs +34 -0
- package/dist/actions/create-employee.cjs.map +1 -0
- package/dist/actions/create-employee.d.cts +9 -0
- package/dist/actions/create-employee.d.cts.map +1 -0
- package/dist/actions/create-employee.d.mts +9 -0
- package/dist/actions/create-employee.d.mts.map +1 -0
- package/dist/actions/create-employee.mjs +31 -0
- package/dist/actions/create-employee.mjs.map +1 -0
- package/dist/actions/create-invoice.cjs +34 -0
- package/dist/actions/create-invoice.cjs.map +1 -0
- package/dist/actions/create-invoice.d.cts +9 -0
- package/dist/actions/create-invoice.d.cts.map +1 -0
- package/dist/actions/create-invoice.d.mts +9 -0
- package/dist/actions/create-invoice.d.mts.map +1 -0
- package/dist/actions/create-invoice.mjs +31 -0
- package/dist/actions/create-invoice.mjs.map +1 -0
- package/dist/actions/create-item.cjs +49 -0
- package/dist/actions/create-item.cjs.map +1 -0
- package/dist/actions/create-item.d.cts +9 -0
- package/dist/actions/create-item.d.cts.map +1 -0
- package/dist/actions/create-item.d.mts +9 -0
- package/dist/actions/create-item.d.mts.map +1 -0
- package/dist/actions/create-item.mjs +46 -0
- package/dist/actions/create-item.mjs.map +1 -0
- package/dist/actions/create-journal-entry.cjs +34 -0
- package/dist/actions/create-journal-entry.cjs.map +1 -0
- package/dist/actions/create-journal-entry.d.cts +9 -0
- package/dist/actions/create-journal-entry.d.cts.map +1 -0
- package/dist/actions/create-journal-entry.d.mts +9 -0
- package/dist/actions/create-journal-entry.d.mts.map +1 -0
- package/dist/actions/create-journal-entry.mjs +31 -0
- package/dist/actions/create-journal-entry.mjs.map +1 -0
- package/dist/actions/create-jwt-client-assertion.cjs +25 -0
- package/dist/actions/create-jwt-client-assertion.cjs.map +1 -0
- package/dist/actions/create-jwt-client-assertion.d.cts +9 -0
- package/dist/actions/create-jwt-client-assertion.d.cts.map +1 -0
- package/dist/actions/create-jwt-client-assertion.d.mts +9 -0
- package/dist/actions/create-jwt-client-assertion.d.mts.map +1 -0
- package/dist/actions/create-jwt-client-assertion.mjs +22 -0
- package/dist/actions/create-jwt-client-assertion.mjs.map +1 -0
- package/dist/actions/create-purchase-order.cjs +45 -0
- package/dist/actions/create-purchase-order.cjs.map +1 -0
- package/dist/actions/create-purchase-order.d.cts +9 -0
- package/dist/actions/create-purchase-order.d.cts.map +1 -0
- package/dist/actions/create-purchase-order.d.mts +9 -0
- package/dist/actions/create-purchase-order.d.mts.map +1 -0
- package/dist/actions/create-purchase-order.mjs +42 -0
- package/dist/actions/create-purchase-order.mjs.map +1 -0
- package/dist/actions/create-record.cjs +36 -0
- package/dist/actions/create-record.cjs.map +1 -0
- package/dist/actions/create-record.d.cts +9 -0
- package/dist/actions/create-record.d.cts.map +1 -0
- package/dist/actions/create-record.d.mts +9 -0
- package/dist/actions/create-record.d.mts.map +1 -0
- package/dist/actions/create-record.mjs +33 -0
- package/dist/actions/create-record.mjs.map +1 -0
- package/dist/actions/create-sales-order.cjs +49 -0
- package/dist/actions/create-sales-order.cjs.map +1 -0
- package/dist/actions/create-sales-order.d.cts +9 -0
- package/dist/actions/create-sales-order.d.cts.map +1 -0
- package/dist/actions/create-sales-order.d.mts +9 -0
- package/dist/actions/create-sales-order.d.mts.map +1 -0
- package/dist/actions/create-sales-order.mjs +46 -0
- package/dist/actions/create-sales-order.mjs.map +1 -0
- package/dist/actions/create-vendor-bill.cjs +34 -0
- package/dist/actions/create-vendor-bill.cjs.map +1 -0
- package/dist/actions/create-vendor-bill.d.cts +9 -0
- package/dist/actions/create-vendor-bill.d.cts.map +1 -0
- package/dist/actions/create-vendor-bill.d.mts +9 -0
- package/dist/actions/create-vendor-bill.d.mts.map +1 -0
- package/dist/actions/create-vendor-bill.mjs +31 -0
- package/dist/actions/create-vendor-bill.mjs.map +1 -0
- package/dist/actions/create-vendor.cjs +34 -0
- package/dist/actions/create-vendor.cjs.map +1 -0
- package/dist/actions/create-vendor.d.cts +9 -0
- package/dist/actions/create-vendor.d.cts.map +1 -0
- package/dist/actions/create-vendor.d.mts +9 -0
- package/dist/actions/create-vendor.d.mts.map +1 -0
- package/dist/actions/create-vendor.mjs +31 -0
- package/dist/actions/create-vendor.mjs.map +1 -0
- package/dist/actions/delete-customer-payment.cjs +16 -0
- package/dist/actions/delete-customer-payment.cjs.map +1 -0
- package/dist/actions/delete-customer-payment.d.cts +9 -0
- package/dist/actions/delete-customer-payment.d.cts.map +1 -0
- package/dist/actions/delete-customer-payment.d.mts +9 -0
- package/dist/actions/delete-customer-payment.d.mts.map +1 -0
- package/dist/actions/delete-customer-payment.mjs +13 -0
- package/dist/actions/delete-customer-payment.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +16 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +13 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-employee.cjs +16 -0
- package/dist/actions/delete-employee.cjs.map +1 -0
- package/dist/actions/delete-employee.d.cts +9 -0
- package/dist/actions/delete-employee.d.cts.map +1 -0
- package/dist/actions/delete-employee.d.mts +9 -0
- package/dist/actions/delete-employee.d.mts.map +1 -0
- package/dist/actions/delete-employee.mjs +13 -0
- package/dist/actions/delete-employee.mjs.map +1 -0
- package/dist/actions/delete-invoice.cjs +16 -0
- package/dist/actions/delete-invoice.cjs.map +1 -0
- package/dist/actions/delete-invoice.d.cts +9 -0
- package/dist/actions/delete-invoice.d.cts.map +1 -0
- package/dist/actions/delete-invoice.d.mts +9 -0
- package/dist/actions/delete-invoice.d.mts.map +1 -0
- package/dist/actions/delete-invoice.mjs +13 -0
- package/dist/actions/delete-invoice.mjs.map +1 -0
- package/dist/actions/delete-item-fulfillment.cjs +25 -0
- package/dist/actions/delete-item-fulfillment.cjs.map +1 -0
- package/dist/actions/delete-item-fulfillment.d.cts +9 -0
- package/dist/actions/delete-item-fulfillment.d.cts.map +1 -0
- package/dist/actions/delete-item-fulfillment.d.mts +9 -0
- package/dist/actions/delete-item-fulfillment.d.mts.map +1 -0
- package/dist/actions/delete-item-fulfillment.mjs +22 -0
- package/dist/actions/delete-item-fulfillment.mjs.map +1 -0
- package/dist/actions/delete-item-receipt.cjs +16 -0
- package/dist/actions/delete-item-receipt.cjs.map +1 -0
- package/dist/actions/delete-item-receipt.d.cts +9 -0
- package/dist/actions/delete-item-receipt.d.cts.map +1 -0
- package/dist/actions/delete-item-receipt.d.mts +9 -0
- package/dist/actions/delete-item-receipt.d.mts.map +1 -0
- package/dist/actions/delete-item-receipt.mjs +13 -0
- package/dist/actions/delete-item-receipt.mjs.map +1 -0
- package/dist/actions/delete-item.cjs +25 -0
- package/dist/actions/delete-item.cjs.map +1 -0
- package/dist/actions/delete-item.d.cts +9 -0
- package/dist/actions/delete-item.d.cts.map +1 -0
- package/dist/actions/delete-item.d.mts +9 -0
- package/dist/actions/delete-item.d.mts.map +1 -0
- package/dist/actions/delete-item.mjs +22 -0
- package/dist/actions/delete-item.mjs.map +1 -0
- package/dist/actions/delete-journal-entry.cjs +20 -0
- package/dist/actions/delete-journal-entry.cjs.map +1 -0
- package/dist/actions/delete-journal-entry.d.cts +9 -0
- package/dist/actions/delete-journal-entry.d.cts.map +1 -0
- package/dist/actions/delete-journal-entry.d.mts +9 -0
- package/dist/actions/delete-journal-entry.d.mts.map +1 -0
- package/dist/actions/delete-journal-entry.mjs +17 -0
- package/dist/actions/delete-journal-entry.mjs.map +1 -0
- package/dist/actions/delete-purchase-order.cjs +16 -0
- package/dist/actions/delete-purchase-order.cjs.map +1 -0
- package/dist/actions/delete-purchase-order.d.cts +9 -0
- package/dist/actions/delete-purchase-order.d.cts.map +1 -0
- package/dist/actions/delete-purchase-order.d.mts +9 -0
- package/dist/actions/delete-purchase-order.d.mts.map +1 -0
- package/dist/actions/delete-purchase-order.mjs +13 -0
- package/dist/actions/delete-purchase-order.mjs.map +1 -0
- package/dist/actions/delete-sales-order.cjs +16 -0
- package/dist/actions/delete-sales-order.cjs.map +1 -0
- package/dist/actions/delete-sales-order.d.cts +9 -0
- package/dist/actions/delete-sales-order.d.cts.map +1 -0
- package/dist/actions/delete-sales-order.d.mts +9 -0
- package/dist/actions/delete-sales-order.d.mts.map +1 -0
- package/dist/actions/delete-sales-order.mjs +13 -0
- package/dist/actions/delete-sales-order.mjs.map +1 -0
- package/dist/actions/delete-vendor-payment.cjs +16 -0
- package/dist/actions/delete-vendor-payment.cjs.map +1 -0
- package/dist/actions/delete-vendor-payment.d.cts +9 -0
- package/dist/actions/delete-vendor-payment.d.cts.map +1 -0
- package/dist/actions/delete-vendor-payment.d.mts +9 -0
- package/dist/actions/delete-vendor-payment.d.mts.map +1 -0
- package/dist/actions/delete-vendor-payment.mjs +13 -0
- package/dist/actions/delete-vendor-payment.mjs.map +1 -0
- package/dist/actions/execute-dataset.cjs +31 -0
- package/dist/actions/execute-dataset.cjs.map +1 -0
- package/dist/actions/execute-dataset.d.cts +9 -0
- package/dist/actions/execute-dataset.d.cts.map +1 -0
- package/dist/actions/execute-dataset.d.mts +9 -0
- package/dist/actions/execute-dataset.d.mts.map +1 -0
- package/dist/actions/execute-dataset.mjs +30 -0
- package/dist/actions/execute-dataset.mjs.map +1 -0
- package/dist/actions/get-customer-payment.cjs +28 -0
- package/dist/actions/get-customer-payment.cjs.map +1 -0
- package/dist/actions/get-customer-payment.d.cts +9 -0
- package/dist/actions/get-customer-payment.d.cts.map +1 -0
- package/dist/actions/get-customer-payment.d.mts +9 -0
- package/dist/actions/get-customer-payment.d.mts.map +1 -0
- package/dist/actions/get-customer-payment.mjs +27 -0
- package/dist/actions/get-customer-payment.mjs.map +1 -0
- package/dist/actions/get-customer.cjs +27 -0
- package/dist/actions/get-customer.cjs.map +1 -0
- package/dist/actions/get-customer.d.cts +9 -0
- package/dist/actions/get-customer.d.cts.map +1 -0
- package/dist/actions/get-customer.d.mts +9 -0
- package/dist/actions/get-customer.d.mts.map +1 -0
- package/dist/actions/get-customer.mjs +26 -0
- package/dist/actions/get-customer.mjs.map +1 -0
- package/dist/actions/get-datacenter-urls.cjs +23 -0
- package/dist/actions/get-datacenter-urls.cjs.map +1 -0
- package/dist/actions/get-datacenter-urls.d.cts +9 -0
- package/dist/actions/get-datacenter-urls.d.cts.map +1 -0
- package/dist/actions/get-datacenter-urls.d.mts +9 -0
- package/dist/actions/get-datacenter-urls.d.mts.map +1 -0
- package/dist/actions/get-datacenter-urls.mjs +20 -0
- package/dist/actions/get-datacenter-urls.mjs.map +1 -0
- package/dist/actions/get-employee.cjs +27 -0
- package/dist/actions/get-employee.cjs.map +1 -0
- package/dist/actions/get-employee.d.cts +9 -0
- package/dist/actions/get-employee.d.cts.map +1 -0
- package/dist/actions/get-employee.d.mts +9 -0
- package/dist/actions/get-employee.d.mts.map +1 -0
- package/dist/actions/get-employee.mjs +26 -0
- package/dist/actions/get-employee.mjs.map +1 -0
- package/dist/actions/get-governance-limits.cjs +25 -0
- package/dist/actions/get-governance-limits.cjs.map +1 -0
- package/dist/actions/get-governance-limits.d.cts +9 -0
- package/dist/actions/get-governance-limits.d.cts.map +1 -0
- package/dist/actions/get-governance-limits.d.mts +9 -0
- package/dist/actions/get-governance-limits.d.mts.map +1 -0
- package/dist/actions/get-governance-limits.mjs +22 -0
- package/dist/actions/get-governance-limits.mjs.map +1 -0
- package/dist/actions/get-invoice.cjs +28 -0
- package/dist/actions/get-invoice.cjs.map +1 -0
- package/dist/actions/get-invoice.d.cts +9 -0
- package/dist/actions/get-invoice.d.cts.map +1 -0
- package/dist/actions/get-invoice.d.mts +9 -0
- package/dist/actions/get-invoice.d.mts.map +1 -0
- package/dist/actions/get-invoice.mjs +27 -0
- package/dist/actions/get-invoice.mjs.map +1 -0
- package/dist/actions/get-item-fulfillment.cjs +24 -0
- package/dist/actions/get-item-fulfillment.cjs.map +1 -0
- package/dist/actions/get-item-fulfillment.d.cts +9 -0
- package/dist/actions/get-item-fulfillment.d.cts.map +1 -0
- package/dist/actions/get-item-fulfillment.d.mts +9 -0
- package/dist/actions/get-item-fulfillment.d.mts.map +1 -0
- package/dist/actions/get-item-fulfillment.mjs +21 -0
- package/dist/actions/get-item-fulfillment.mjs.map +1 -0
- package/dist/actions/get-item-receipt.cjs +27 -0
- package/dist/actions/get-item-receipt.cjs.map +1 -0
- package/dist/actions/get-item-receipt.d.cts +9 -0
- package/dist/actions/get-item-receipt.d.cts.map +1 -0
- package/dist/actions/get-item-receipt.d.mts +9 -0
- package/dist/actions/get-item-receipt.d.mts.map +1 -0
- package/dist/actions/get-item-receipt.mjs +26 -0
- package/dist/actions/get-item-receipt.mjs.map +1 -0
- package/dist/actions/get-item.cjs +24 -0
- package/dist/actions/get-item.cjs.map +1 -0
- package/dist/actions/get-item.d.cts +9 -0
- package/dist/actions/get-item.d.cts.map +1 -0
- package/dist/actions/get-item.d.mts +9 -0
- package/dist/actions/get-item.d.mts.map +1 -0
- package/dist/actions/get-item.mjs +21 -0
- package/dist/actions/get-item.mjs.map +1 -0
- package/dist/actions/get-journal-entry.cjs +24 -0
- package/dist/actions/get-journal-entry.cjs.map +1 -0
- package/dist/actions/get-journal-entry.d.cts +9 -0
- package/dist/actions/get-journal-entry.d.cts.map +1 -0
- package/dist/actions/get-journal-entry.d.mts +9 -0
- package/dist/actions/get-journal-entry.d.mts.map +1 -0
- package/dist/actions/get-journal-entry.mjs +21 -0
- package/dist/actions/get-journal-entry.mjs.map +1 -0
- package/dist/actions/get-purchase-order.cjs +28 -0
- package/dist/actions/get-purchase-order.cjs.map +1 -0
- package/dist/actions/get-purchase-order.d.cts +9 -0
- package/dist/actions/get-purchase-order.d.cts.map +1 -0
- package/dist/actions/get-purchase-order.d.mts +9 -0
- package/dist/actions/get-purchase-order.d.mts.map +1 -0
- package/dist/actions/get-purchase-order.mjs +27 -0
- package/dist/actions/get-purchase-order.mjs.map +1 -0
- package/dist/actions/get-record-metadata.cjs +19 -0
- package/dist/actions/get-record-metadata.cjs.map +1 -0
- package/dist/actions/get-record-metadata.d.cts +9 -0
- package/dist/actions/get-record-metadata.d.cts.map +1 -0
- package/dist/actions/get-record-metadata.d.mts +9 -0
- package/dist/actions/get-record-metadata.d.mts.map +1 -0
- package/dist/actions/get-record-metadata.mjs +16 -0
- package/dist/actions/get-record-metadata.mjs.map +1 -0
- package/dist/actions/get-reference-select-field.cjs +29 -0
- package/dist/actions/get-reference-select-field.cjs.map +1 -0
- package/dist/actions/get-reference-select-field.d.cts +9 -0
- package/dist/actions/get-reference-select-field.d.cts.map +1 -0
- package/dist/actions/get-reference-select-field.d.mts +9 -0
- package/dist/actions/get-reference-select-field.d.mts.map +1 -0
- package/dist/actions/get-reference-select-field.mjs +28 -0
- package/dist/actions/get-reference-select-field.mjs.map +1 -0
- package/dist/actions/get-sales-order.cjs +23 -0
- package/dist/actions/get-sales-order.cjs.map +1 -0
- package/dist/actions/get-sales-order.d.cts +9 -0
- package/dist/actions/get-sales-order.d.cts.map +1 -0
- package/dist/actions/get-sales-order.d.mts +9 -0
- package/dist/actions/get-sales-order.d.mts.map +1 -0
- package/dist/actions/get-sales-order.mjs +20 -0
- package/dist/actions/get-sales-order.mjs.map +1 -0
- package/dist/actions/get-server-time.cjs +16 -0
- package/dist/actions/get-server-time.cjs.map +1 -0
- package/dist/actions/get-server-time.d.cts +9 -0
- package/dist/actions/get-server-time.d.cts.map +1 -0
- package/dist/actions/get-server-time.d.mts +9 -0
- package/dist/actions/get-server-time.d.mts.map +1 -0
- package/dist/actions/get-server-time.mjs +13 -0
- package/dist/actions/get-server-time.mjs.map +1 -0
- package/dist/actions/get-sublist-collection.cjs +33 -0
- package/dist/actions/get-sublist-collection.cjs.map +1 -0
- package/dist/actions/get-sublist-collection.d.cts +9 -0
- package/dist/actions/get-sublist-collection.d.cts.map +1 -0
- package/dist/actions/get-sublist-collection.d.mts +9 -0
- package/dist/actions/get-sublist-collection.d.mts.map +1 -0
- package/dist/actions/get-sublist-collection.mjs +32 -0
- package/dist/actions/get-sublist-collection.mjs.map +1 -0
- package/dist/actions/get-sublist-line.cjs +25 -0
- package/dist/actions/get-sublist-line.cjs.map +1 -0
- package/dist/actions/get-sublist-line.d.cts +9 -0
- package/dist/actions/get-sublist-line.d.cts.map +1 -0
- package/dist/actions/get-sublist-line.d.mts +9 -0
- package/dist/actions/get-sublist-line.d.mts.map +1 -0
- package/dist/actions/get-sublist-line.mjs +22 -0
- package/dist/actions/get-sublist-line.mjs.map +1 -0
- package/dist/actions/get-subrecord.cjs +27 -0
- package/dist/actions/get-subrecord.cjs.map +1 -0
- package/dist/actions/get-subrecord.d.cts +9 -0
- package/dist/actions/get-subrecord.d.cts.map +1 -0
- package/dist/actions/get-subrecord.d.mts +9 -0
- package/dist/actions/get-subrecord.d.mts.map +1 -0
- package/dist/actions/get-subrecord.mjs +26 -0
- package/dist/actions/get-subrecord.mjs.map +1 -0
- package/dist/actions/get-vendor-bill.cjs +27 -0
- package/dist/actions/get-vendor-bill.cjs.map +1 -0
- package/dist/actions/get-vendor-bill.d.cts +9 -0
- package/dist/actions/get-vendor-bill.d.cts.map +1 -0
- package/dist/actions/get-vendor-bill.d.mts +9 -0
- package/dist/actions/get-vendor-bill.d.mts.map +1 -0
- package/dist/actions/get-vendor-bill.mjs +26 -0
- package/dist/actions/get-vendor-bill.mjs.map +1 -0
- package/dist/actions/get-vendor-payment.cjs +27 -0
- package/dist/actions/get-vendor-payment.cjs.map +1 -0
- package/dist/actions/get-vendor-payment.d.cts +9 -0
- package/dist/actions/get-vendor-payment.d.cts.map +1 -0
- package/dist/actions/get-vendor-payment.d.mts +9 -0
- package/dist/actions/get-vendor-payment.d.mts.map +1 -0
- package/dist/actions/get-vendor-payment.mjs +26 -0
- package/dist/actions/get-vendor-payment.mjs.map +1 -0
- package/dist/actions/get-vendor.cjs +24 -0
- package/dist/actions/get-vendor.cjs.map +1 -0
- package/dist/actions/get-vendor.d.cts +9 -0
- package/dist/actions/get-vendor.d.cts.map +1 -0
- package/dist/actions/get-vendor.d.mts +9 -0
- package/dist/actions/get-vendor.d.mts.map +1 -0
- package/dist/actions/get-vendor.mjs +21 -0
- package/dist/actions/get-vendor.mjs.map +1 -0
- package/dist/actions/index.cjs +171 -0
- package/dist/actions/index.d.cts +86 -0
- package/dist/actions/index.d.mts +86 -0
- package/dist/actions/index.mjs +86 -0
- package/dist/actions/list-customer-payments.cjs +35 -0
- package/dist/actions/list-customer-payments.cjs.map +1 -0
- package/dist/actions/list-customer-payments.d.cts +9 -0
- package/dist/actions/list-customer-payments.d.cts.map +1 -0
- package/dist/actions/list-customer-payments.d.mts +9 -0
- package/dist/actions/list-customer-payments.d.mts.map +1 -0
- package/dist/actions/list-customer-payments.mjs +34 -0
- package/dist/actions/list-customer-payments.mjs.map +1 -0
- package/dist/actions/list-datasets.cjs +40 -0
- package/dist/actions/list-datasets.cjs.map +1 -0
- package/dist/actions/list-datasets.d.cts +9 -0
- package/dist/actions/list-datasets.d.cts.map +1 -0
- package/dist/actions/list-datasets.d.mts +9 -0
- package/dist/actions/list-datasets.d.mts.map +1 -0
- package/dist/actions/list-datasets.mjs +39 -0
- package/dist/actions/list-datasets.mjs.map +1 -0
- package/dist/actions/list-employees.cjs +35 -0
- package/dist/actions/list-employees.cjs.map +1 -0
- package/dist/actions/list-employees.d.cts +9 -0
- package/dist/actions/list-employees.d.cts.map +1 -0
- package/dist/actions/list-employees.d.mts +9 -0
- package/dist/actions/list-employees.d.mts.map +1 -0
- package/dist/actions/list-employees.mjs +34 -0
- package/dist/actions/list-employees.mjs.map +1 -0
- package/dist/actions/list-integrations.cjs +33 -0
- package/dist/actions/list-integrations.cjs.map +1 -0
- package/dist/actions/list-integrations.d.cts +9 -0
- package/dist/actions/list-integrations.d.cts.map +1 -0
- package/dist/actions/list-integrations.d.mts +9 -0
- package/dist/actions/list-integrations.d.mts.map +1 -0
- package/dist/actions/list-integrations.mjs +32 -0
- package/dist/actions/list-integrations.mjs.map +1 -0
- package/dist/actions/list-invoices.cjs +35 -0
- package/dist/actions/list-invoices.cjs.map +1 -0
- package/dist/actions/list-invoices.d.cts +9 -0
- package/dist/actions/list-invoices.d.cts.map +1 -0
- package/dist/actions/list-invoices.d.mts +9 -0
- package/dist/actions/list-invoices.d.mts.map +1 -0
- package/dist/actions/list-invoices.mjs +34 -0
- package/dist/actions/list-invoices.mjs.map +1 -0
- package/dist/actions/list-item-fulfillments.cjs +35 -0
- package/dist/actions/list-item-fulfillments.cjs.map +1 -0
- package/dist/actions/list-item-fulfillments.d.cts +9 -0
- package/dist/actions/list-item-fulfillments.d.cts.map +1 -0
- package/dist/actions/list-item-fulfillments.d.mts +9 -0
- package/dist/actions/list-item-fulfillments.d.mts.map +1 -0
- package/dist/actions/list-item-fulfillments.mjs +34 -0
- package/dist/actions/list-item-fulfillments.mjs.map +1 -0
- package/dist/actions/list-item-receipts.cjs +35 -0
- package/dist/actions/list-item-receipts.cjs.map +1 -0
- package/dist/actions/list-item-receipts.d.cts +9 -0
- package/dist/actions/list-item-receipts.d.cts.map +1 -0
- package/dist/actions/list-item-receipts.d.mts +9 -0
- package/dist/actions/list-item-receipts.d.mts.map +1 -0
- package/dist/actions/list-item-receipts.mjs +34 -0
- package/dist/actions/list-item-receipts.mjs.map +1 -0
- package/dist/actions/list-journal-entries.cjs +35 -0
- package/dist/actions/list-journal-entries.cjs.map +1 -0
- package/dist/actions/list-journal-entries.d.cts +9 -0
- package/dist/actions/list-journal-entries.d.cts.map +1 -0
- package/dist/actions/list-journal-entries.d.mts +9 -0
- package/dist/actions/list-journal-entries.d.mts.map +1 -0
- package/dist/actions/list-journal-entries.mjs +34 -0
- package/dist/actions/list-journal-entries.mjs.map +1 -0
- package/dist/actions/list-metadata-catalog.cjs +28 -0
- package/dist/actions/list-metadata-catalog.cjs.map +1 -0
- package/dist/actions/list-metadata-catalog.d.cts +9 -0
- package/dist/actions/list-metadata-catalog.d.cts.map +1 -0
- package/dist/actions/list-metadata-catalog.d.mts +9 -0
- package/dist/actions/list-metadata-catalog.d.mts.map +1 -0
- package/dist/actions/list-metadata-catalog.mjs +27 -0
- package/dist/actions/list-metadata-catalog.mjs.map +1 -0
- package/dist/actions/list-purchase-orders.cjs +35 -0
- package/dist/actions/list-purchase-orders.cjs.map +1 -0
- package/dist/actions/list-purchase-orders.d.cts +9 -0
- package/dist/actions/list-purchase-orders.d.cts.map +1 -0
- package/dist/actions/list-purchase-orders.d.mts +9 -0
- package/dist/actions/list-purchase-orders.d.mts.map +1 -0
- package/dist/actions/list-purchase-orders.mjs +34 -0
- package/dist/actions/list-purchase-orders.mjs.map +1 -0
- package/dist/actions/list-records.cjs +36 -0
- package/dist/actions/list-records.cjs.map +1 -0
- package/dist/actions/list-records.d.cts +9 -0
- package/dist/actions/list-records.d.cts.map +1 -0
- package/dist/actions/list-records.d.mts +9 -0
- package/dist/actions/list-records.d.mts.map +1 -0
- package/dist/actions/list-records.mjs +35 -0
- package/dist/actions/list-records.mjs.map +1 -0
- package/dist/actions/list-sales-orders.cjs +35 -0
- package/dist/actions/list-sales-orders.cjs.map +1 -0
- package/dist/actions/list-sales-orders.d.cts +9 -0
- package/dist/actions/list-sales-orders.d.cts.map +1 -0
- package/dist/actions/list-sales-orders.d.mts +9 -0
- package/dist/actions/list-sales-orders.d.mts.map +1 -0
- package/dist/actions/list-sales-orders.mjs +34 -0
- package/dist/actions/list-sales-orders.mjs.map +1 -0
- package/dist/actions/list-vendor-payments.cjs +35 -0
- package/dist/actions/list-vendor-payments.cjs.map +1 -0
- package/dist/actions/list-vendor-payments.d.cts +9 -0
- package/dist/actions/list-vendor-payments.d.cts.map +1 -0
- package/dist/actions/list-vendor-payments.d.mts +9 -0
- package/dist/actions/list-vendor-payments.d.mts.map +1 -0
- package/dist/actions/list-vendor-payments.mjs +34 -0
- package/dist/actions/list-vendor-payments.mjs.map +1 -0
- package/dist/actions/o-auth2-authorize-account-domain.cjs +31 -0
- package/dist/actions/o-auth2-authorize-account-domain.cjs.map +1 -0
- package/dist/actions/o-auth2-authorize-account-domain.d.cts +9 -0
- package/dist/actions/o-auth2-authorize-account-domain.d.cts.map +1 -0
- package/dist/actions/o-auth2-authorize-account-domain.d.mts +9 -0
- package/dist/actions/o-auth2-authorize-account-domain.d.mts.map +1 -0
- package/dist/actions/o-auth2-authorize-account-domain.mjs +28 -0
- package/dist/actions/o-auth2-authorize-account-domain.mjs.map +1 -0
- package/dist/actions/o-auth2-authorize-system-domain.cjs +31 -0
- package/dist/actions/o-auth2-authorize-system-domain.cjs.map +1 -0
- package/dist/actions/o-auth2-authorize-system-domain.d.cts +9 -0
- package/dist/actions/o-auth2-authorize-system-domain.d.cts.map +1 -0
- package/dist/actions/o-auth2-authorize-system-domain.d.mts +9 -0
- package/dist/actions/o-auth2-authorize-system-domain.d.mts.map +1 -0
- package/dist/actions/o-auth2-authorize-system-domain.mjs +28 -0
- package/dist/actions/o-auth2-authorize-system-domain.mjs.map +1 -0
- package/dist/actions/o-auth2-logout.cjs +20 -0
- package/dist/actions/o-auth2-logout.cjs.map +1 -0
- package/dist/actions/o-auth2-logout.d.cts +9 -0
- package/dist/actions/o-auth2-logout.d.cts.map +1 -0
- package/dist/actions/o-auth2-logout.d.mts +9 -0
- package/dist/actions/o-auth2-logout.d.mts.map +1 -0
- package/dist/actions/o-auth2-logout.mjs +17 -0
- package/dist/actions/o-auth2-logout.mjs.map +1 -0
- package/dist/actions/o-auth2-revoke-refresh-token.cjs +23 -0
- package/dist/actions/o-auth2-revoke-refresh-token.cjs.map +1 -0
- package/dist/actions/o-auth2-revoke-refresh-token.d.cts +9 -0
- package/dist/actions/o-auth2-revoke-refresh-token.d.cts.map +1 -0
- package/dist/actions/o-auth2-revoke-refresh-token.d.mts +9 -0
- package/dist/actions/o-auth2-revoke-refresh-token.d.mts.map +1 -0
- package/dist/actions/o-auth2-revoke-refresh-token.mjs +20 -0
- package/dist/actions/o-auth2-revoke-refresh-token.mjs.map +1 -0
- package/dist/actions/o-auth2-token-authorization-code.cjs +29 -0
- package/dist/actions/o-auth2-token-authorization-code.cjs.map +1 -0
- package/dist/actions/o-auth2-token-authorization-code.d.cts +9 -0
- package/dist/actions/o-auth2-token-authorization-code.d.cts.map +1 -0
- package/dist/actions/o-auth2-token-authorization-code.d.mts +9 -0
- package/dist/actions/o-auth2-token-authorization-code.d.mts.map +1 -0
- package/dist/actions/o-auth2-token-authorization-code.mjs +26 -0
- package/dist/actions/o-auth2-token-authorization-code.mjs.map +1 -0
- package/dist/actions/o-auth2-token-client-credentials.cjs +25 -0
- package/dist/actions/o-auth2-token-client-credentials.cjs.map +1 -0
- package/dist/actions/o-auth2-token-client-credentials.d.cts +9 -0
- package/dist/actions/o-auth2-token-client-credentials.d.cts.map +1 -0
- package/dist/actions/o-auth2-token-client-credentials.d.mts +9 -0
- package/dist/actions/o-auth2-token-client-credentials.d.mts.map +1 -0
- package/dist/actions/o-auth2-token-client-credentials.mjs +22 -0
- package/dist/actions/o-auth2-token-client-credentials.mjs.map +1 -0
- package/dist/actions/o-auth2-token-refresh.cjs +26 -0
- package/dist/actions/o-auth2-token-refresh.cjs.map +1 -0
- package/dist/actions/o-auth2-token-refresh.d.cts +9 -0
- package/dist/actions/o-auth2-token-refresh.d.cts.map +1 -0
- package/dist/actions/o-auth2-token-refresh.d.mts +9 -0
- package/dist/actions/o-auth2-token-refresh.d.mts.map +1 -0
- package/dist/actions/o-auth2-token-refresh.mjs +23 -0
- package/dist/actions/o-auth2-token-refresh.mjs.map +1 -0
- package/dist/actions/oauth2-get-jwks-keys.cjs +26 -0
- package/dist/actions/oauth2-get-jwks-keys.cjs.map +1 -0
- package/dist/actions/oauth2-get-jwks-keys.d.cts +9 -0
- package/dist/actions/oauth2-get-jwks-keys.d.cts.map +1 -0
- package/dist/actions/oauth2-get-jwks-keys.d.mts +9 -0
- package/dist/actions/oauth2-get-jwks-keys.d.mts.map +1 -0
- package/dist/actions/oauth2-get-jwks-keys.mjs +25 -0
- package/dist/actions/oauth2-get-jwks-keys.mjs.map +1 -0
- package/dist/actions/run-suiteql-query.cjs +32 -0
- package/dist/actions/run-suiteql-query.cjs.map +1 -0
- package/dist/actions/run-suiteql-query.d.cts +9 -0
- package/dist/actions/run-suiteql-query.d.cts.map +1 -0
- package/dist/actions/run-suiteql-query.d.mts +9 -0
- package/dist/actions/run-suiteql-query.d.mts.map +1 -0
- package/dist/actions/run-suiteql-query.mjs +31 -0
- package/dist/actions/run-suiteql-query.mjs.map +1 -0
- package/dist/actions/transform-record.cjs +29 -0
- package/dist/actions/transform-record.cjs.map +1 -0
- package/dist/actions/transform-record.d.cts +9 -0
- package/dist/actions/transform-record.d.cts.map +1 -0
- package/dist/actions/transform-record.d.mts +9 -0
- package/dist/actions/transform-record.d.mts.map +1 -0
- package/dist/actions/transform-record.mjs +26 -0
- package/dist/actions/transform-record.mjs.map +1 -0
- package/dist/actions/update-customer-payment.cjs +34 -0
- package/dist/actions/update-customer-payment.cjs.map +1 -0
- package/dist/actions/update-customer-payment.d.cts +9 -0
- package/dist/actions/update-customer-payment.d.cts.map +1 -0
- package/dist/actions/update-customer-payment.d.mts +9 -0
- package/dist/actions/update-customer-payment.d.mts.map +1 -0
- package/dist/actions/update-customer-payment.mjs +31 -0
- package/dist/actions/update-customer-payment.mjs.map +1 -0
- package/dist/actions/update-customer.cjs +34 -0
- package/dist/actions/update-customer.cjs.map +1 -0
- package/dist/actions/update-customer.d.cts +9 -0
- package/dist/actions/update-customer.d.cts.map +1 -0
- package/dist/actions/update-customer.d.mts +9 -0
- package/dist/actions/update-customer.d.mts.map +1 -0
- package/dist/actions/update-customer.mjs +31 -0
- package/dist/actions/update-customer.mjs.map +1 -0
- package/dist/actions/update-employee.cjs +36 -0
- package/dist/actions/update-employee.cjs.map +1 -0
- package/dist/actions/update-employee.d.cts +9 -0
- package/dist/actions/update-employee.d.cts.map +1 -0
- package/dist/actions/update-employee.d.mts +9 -0
- package/dist/actions/update-employee.d.mts.map +1 -0
- package/dist/actions/update-employee.mjs +33 -0
- package/dist/actions/update-employee.mjs.map +1 -0
- package/dist/actions/update-invoice.cjs +34 -0
- package/dist/actions/update-invoice.cjs.map +1 -0
- package/dist/actions/update-invoice.d.cts +9 -0
- package/dist/actions/update-invoice.d.cts.map +1 -0
- package/dist/actions/update-invoice.d.mts +9 -0
- package/dist/actions/update-invoice.d.mts.map +1 -0
- package/dist/actions/update-invoice.mjs +31 -0
- package/dist/actions/update-invoice.mjs.map +1 -0
- package/dist/actions/update-item-fulfillment.cjs +36 -0
- package/dist/actions/update-item-fulfillment.cjs.map +1 -0
- package/dist/actions/update-item-fulfillment.d.cts +9 -0
- package/dist/actions/update-item-fulfillment.d.cts.map +1 -0
- package/dist/actions/update-item-fulfillment.d.mts +9 -0
- package/dist/actions/update-item-fulfillment.d.mts.map +1 -0
- package/dist/actions/update-item-fulfillment.mjs +33 -0
- package/dist/actions/update-item-fulfillment.mjs.map +1 -0
- package/dist/actions/update-item-receipt.cjs +36 -0
- package/dist/actions/update-item-receipt.cjs.map +1 -0
- package/dist/actions/update-item-receipt.d.cts +9 -0
- package/dist/actions/update-item-receipt.d.cts.map +1 -0
- package/dist/actions/update-item-receipt.d.mts +9 -0
- package/dist/actions/update-item-receipt.d.mts.map +1 -0
- package/dist/actions/update-item-receipt.mjs +33 -0
- package/dist/actions/update-item-receipt.mjs.map +1 -0
- package/dist/actions/update-item.cjs +37 -0
- package/dist/actions/update-item.cjs.map +1 -0
- package/dist/actions/update-item.d.cts +9 -0
- package/dist/actions/update-item.d.cts.map +1 -0
- package/dist/actions/update-item.d.mts +9 -0
- package/dist/actions/update-item.d.mts.map +1 -0
- package/dist/actions/update-item.mjs +34 -0
- package/dist/actions/update-item.mjs.map +1 -0
- package/dist/actions/update-journal-entry.cjs +36 -0
- package/dist/actions/update-journal-entry.cjs.map +1 -0
- package/dist/actions/update-journal-entry.d.cts +9 -0
- package/dist/actions/update-journal-entry.d.cts.map +1 -0
- package/dist/actions/update-journal-entry.d.mts +9 -0
- package/dist/actions/update-journal-entry.d.mts.map +1 -0
- package/dist/actions/update-journal-entry.mjs +33 -0
- package/dist/actions/update-journal-entry.mjs.map +1 -0
- package/dist/actions/update-purchase-order.cjs +35 -0
- package/dist/actions/update-purchase-order.cjs.map +1 -0
- package/dist/actions/update-purchase-order.d.cts +9 -0
- package/dist/actions/update-purchase-order.d.cts.map +1 -0
- package/dist/actions/update-purchase-order.d.mts +9 -0
- package/dist/actions/update-purchase-order.d.mts.map +1 -0
- package/dist/actions/update-purchase-order.mjs +32 -0
- package/dist/actions/update-purchase-order.mjs.map +1 -0
- package/dist/actions/update-sales-order.cjs +34 -0
- package/dist/actions/update-sales-order.cjs.map +1 -0
- package/dist/actions/update-sales-order.d.cts +9 -0
- package/dist/actions/update-sales-order.d.cts.map +1 -0
- package/dist/actions/update-sales-order.d.mts +9 -0
- package/dist/actions/update-sales-order.d.mts.map +1 -0
- package/dist/actions/update-sales-order.mjs +31 -0
- package/dist/actions/update-sales-order.mjs.map +1 -0
- package/dist/actions/update-vendor-bill.cjs +36 -0
- package/dist/actions/update-vendor-bill.cjs.map +1 -0
- package/dist/actions/update-vendor-bill.d.cts +9 -0
- package/dist/actions/update-vendor-bill.d.cts.map +1 -0
- package/dist/actions/update-vendor-bill.d.mts +9 -0
- package/dist/actions/update-vendor-bill.d.mts.map +1 -0
- package/dist/actions/update-vendor-bill.mjs +33 -0
- package/dist/actions/update-vendor-bill.mjs.map +1 -0
- package/dist/actions/update-vendor-payment.cjs +36 -0
- package/dist/actions/update-vendor-payment.cjs.map +1 -0
- package/dist/actions/update-vendor-payment.d.cts +9 -0
- package/dist/actions/update-vendor-payment.d.cts.map +1 -0
- package/dist/actions/update-vendor-payment.d.mts +9 -0
- package/dist/actions/update-vendor-payment.d.mts.map +1 -0
- package/dist/actions/update-vendor-payment.mjs +33 -0
- package/dist/actions/update-vendor-payment.mjs.map +1 -0
- package/dist/actions/update-vendor.cjs +34 -0
- package/dist/actions/update-vendor.cjs.map +1 -0
- package/dist/actions/update-vendor.d.cts +9 -0
- package/dist/actions/update-vendor.d.cts.map +1 -0
- package/dist/actions/update-vendor.d.mts +9 -0
- package/dist/actions/update-vendor.d.mts.map +1 -0
- package/dist/actions/update-vendor.mjs +31 -0
- package/dist/actions/update-vendor.mjs.map +1 -0
- package/dist/actions/upsert-record-by-external-id.cjs +23 -0
- package/dist/actions/upsert-record-by-external-id.cjs.map +1 -0
- package/dist/actions/upsert-record-by-external-id.d.cts +9 -0
- package/dist/actions/upsert-record-by-external-id.d.cts.map +1 -0
- package/dist/actions/upsert-record-by-external-id.d.mts +9 -0
- package/dist/actions/upsert-record-by-external-id.d.mts.map +1 -0
- package/dist/actions/upsert-record-by-external-id.mjs +20 -0
- package/dist/actions/upsert-record-by-external-id.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +176 -0
- package/dist/index.d.cts +88 -0
- package/dist/index.d.mts +88 -0
- package/dist/index.mjs +89 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/netsuite
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `netsuite`
|
|
6
|
+
**Version:** `20260616_00`
|
|
7
|
+
**Actions:** 85
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { netsuiteAsyncGetJobStatus } from "@keystrokehq/netsuite/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "netsuite-agent",
|
|
15
|
+
tools: [netsuiteAsyncGetJobStatus],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.netsuite.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeNetsuiteTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["netsuite","executeNetsuiteTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { netsuite } from \"./app\";\nimport { executeNetsuiteTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return netsuite.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNetsuiteTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { netsuite } from "./app.mjs";
|
|
2
|
+
import { executeNetsuiteTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return netsuite.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeNetsuiteTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { netsuite } from \"./app\";\nimport { executeNetsuiteTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return netsuite.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNetsuiteTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/async-get-job-status.ts
|
|
4
|
+
const NetsuiteAsyncGetJobStatusInput = zod.z.object({ jobId: zod.z.string().describe("The Job ID extracted from the Location header URL when an async request was submitted with 'Prefer: respond-async'. For example, if Location header is 'https://demo.suitetalk.api.netsuite.com/services/rest/async/v1/job/203', the job ID is '203'.") }).describe("Request model for retrieving the status of an asynchronous REST job.");
|
|
5
|
+
const NetsuiteAsyncGetJobStatus_LinkSchema = zod.z.object({
|
|
6
|
+
rel: zod.z.string().describe("Link relation type (e.g., 'self')."),
|
|
7
|
+
href: zod.z.string().describe("URL of the linked resource.")
|
|
8
|
+
}).describe("HATEOAS link for navigation.");
|
|
9
|
+
const NetsuiteAsyncGetJobStatus_TaskLinksSchema = zod.z.object({ links: zod.z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe("Navigation links for the task resource.") }).describe("Links to the job's task resource.");
|
|
10
|
+
const NetsuiteAsyncGetJobStatusOutput = zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("The unique identifier of the asynchronous job."),
|
|
12
|
+
task: NetsuiteAsyncGetJobStatus_TaskLinksSchema.nullable(),
|
|
13
|
+
links: zod.z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe("HATEOAS navigation links for this job status resource."),
|
|
14
|
+
endTime: zod.z.string().describe("ISO 8601 timestamp when the job completed (only present if completed).").nullable().optional(),
|
|
15
|
+
progress: zod.z.string().describe("Current state of the job (e.g., 'pending', 'processing', 'succeeded', 'failed')."),
|
|
16
|
+
completed: zod.z.boolean().describe("True if the asynchronous job has completed processing."),
|
|
17
|
+
startTime: zod.z.string().describe("ISO 8601 timestamp when the job started processing.").nullable().optional()
|
|
18
|
+
}).describe("Response model representing the status of an asynchronous REST job.");
|
|
19
|
+
const netsuiteAsyncGetJobStatus = require_action.action("NETSUITE_ASYNC_GET_JOB_STATUS", {
|
|
20
|
+
slug: "netsuite-async-get-job-status",
|
|
21
|
+
name: "Get Async Job Status",
|
|
22
|
+
description: "Retrieves the current status of an asynchronous NetSuite REST job. Use this tool to check whether an async job has completed and its progress state. When you submit any NetSuite REST API request with the 'Prefer: respond-async' header, NetSuite returns a Location header containing the job ID. Use that job ID with this tool to poll the job's status. The response indicates if the job is completed, its progress state (pending/processing/succeeded/failed), and provides links to retrieve the job results once completed.",
|
|
23
|
+
input: NetsuiteAsyncGetJobStatusInput,
|
|
24
|
+
output: NetsuiteAsyncGetJobStatusOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.netsuiteAsyncGetJobStatus = netsuiteAsyncGetJobStatus;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=async-get-job-status.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-status.cjs","names":["z","action"],"sources":["../../src/actions/async-get-job-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteAsyncGetJobStatusInput: z.ZodTypeAny = z.object({\n jobId: z.string().describe(\"The Job ID extracted from the Location header URL when an async request was submitted with 'Prefer: respond-async'. For example, if Location header is 'https://demo.suitetalk.api.netsuite.com/services/rest/async/v1/job/203', the job ID is '203'.\"),\n}).describe(\"Request model for retrieving the status of an asynchronous REST job.\");\nconst NetsuiteAsyncGetJobStatus_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Link relation type (e.g., 'self').\"),\n href: z.string().describe(\"URL of the linked resource.\"),\n}).describe(\"HATEOAS link for navigation.\");\nconst NetsuiteAsyncGetJobStatus_TaskLinksSchema: z.ZodTypeAny = z.object({\n links: z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe(\"Navigation links for the task resource.\"),\n}).describe(\"Links to the job's task resource.\");\nexport const NetsuiteAsyncGetJobStatusOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the asynchronous job.\"),\n task: NetsuiteAsyncGetJobStatus_TaskLinksSchema.nullable(),\n links: z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe(\"HATEOAS navigation links for this job status resource.\"),\n endTime: z.string().describe(\"ISO 8601 timestamp when the job completed (only present if completed).\").nullable().optional(),\n progress: z.string().describe(\"Current state of the job (e.g., 'pending', 'processing', 'succeeded', 'failed').\"),\n completed: z.boolean().describe(\"True if the asynchronous job has completed processing.\"),\n startTime: z.string().describe(\"ISO 8601 timestamp when the job started processing.\").nullable().optional(),\n}).describe(\"Response model representing the status of an asynchronous REST job.\");\n\nexport const netsuiteAsyncGetJobStatus = action(\"NETSUITE_ASYNC_GET_JOB_STATUS\", {\n slug: \"netsuite-async-get-job-status\",\n name: \"Get Async Job Status\",\n description: \"Retrieves the current status of an asynchronous NetSuite REST job. Use this tool to check whether an async job has completed and its progress state. When you submit any NetSuite REST API request with the 'Prefer: respond-async' header, NetSuite returns a Location header containing the job ID. Use that job ID with this tool to poll the job's status. The response indicates if the job is completed, its progress state (pending/processing/succeeded/failed), and provides links to retrieve the job results once completed.\",\n input: NetsuiteAsyncGetJobStatusInput,\n output: NetsuiteAsyncGetJobStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uPAAuP,EACpR,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACzD,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,4CAA0DA,IAAAA,EAAE,OAAO,EACvE,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yCAAyC,EACzG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,MAAM,0CAA0C,SAAS;CACzD,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wDAAwD;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAChH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/async-get-job-status.d.ts
|
|
4
|
+
declare const NetsuiteAsyncGetJobStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteAsyncGetJobStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteAsyncGetJobStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteAsyncGetJobStatus };
|
|
9
|
+
//# sourceMappingURL=async-get-job-status.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-status.d.cts","names":[],"sources":["../../src/actions/async-get-job-status.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEoC;AAAA,cAQtE,+BAAA,EAAiC,CAAA,CAAE,UAQkC;AAAA,cAErE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/async-get-job-status.d.ts
|
|
4
|
+
declare const NetsuiteAsyncGetJobStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteAsyncGetJobStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteAsyncGetJobStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteAsyncGetJobStatus };
|
|
9
|
+
//# sourceMappingURL=async-get-job-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-status.d.mts","names":[],"sources":["../../src/actions/async-get-job-status.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEoC;AAAA,cAQtE,+BAAA,EAAiC,CAAA,CAAE,UAQkC;AAAA,cAErE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/async-get-job-status.ts
|
|
4
|
+
const NetsuiteAsyncGetJobStatusInput = z.object({ jobId: z.string().describe("The Job ID extracted from the Location header URL when an async request was submitted with 'Prefer: respond-async'. For example, if Location header is 'https://demo.suitetalk.api.netsuite.com/services/rest/async/v1/job/203', the job ID is '203'.") }).describe("Request model for retrieving the status of an asynchronous REST job.");
|
|
5
|
+
const NetsuiteAsyncGetJobStatus_LinkSchema = z.object({
|
|
6
|
+
rel: z.string().describe("Link relation type (e.g., 'self')."),
|
|
7
|
+
href: z.string().describe("URL of the linked resource.")
|
|
8
|
+
}).describe("HATEOAS link for navigation.");
|
|
9
|
+
const NetsuiteAsyncGetJobStatus_TaskLinksSchema = z.object({ links: z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe("Navigation links for the task resource.") }).describe("Links to the job's task resource.");
|
|
10
|
+
const netsuiteAsyncGetJobStatus = action("NETSUITE_ASYNC_GET_JOB_STATUS", {
|
|
11
|
+
slug: "netsuite-async-get-job-status",
|
|
12
|
+
name: "Get Async Job Status",
|
|
13
|
+
description: "Retrieves the current status of an asynchronous NetSuite REST job. Use this tool to check whether an async job has completed and its progress state. When you submit any NetSuite REST API request with the 'Prefer: respond-async' header, NetSuite returns a Location header containing the job ID. Use that job ID with this tool to poll the job's status. The response indicates if the job is completed, its progress state (pending/processing/succeeded/failed), and provides links to retrieve the job results once completed.",
|
|
14
|
+
input: NetsuiteAsyncGetJobStatusInput,
|
|
15
|
+
output: z.object({
|
|
16
|
+
id: z.string().describe("The unique identifier of the asynchronous job."),
|
|
17
|
+
task: NetsuiteAsyncGetJobStatus_TaskLinksSchema.nullable(),
|
|
18
|
+
links: z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe("HATEOAS navigation links for this job status resource."),
|
|
19
|
+
endTime: z.string().describe("ISO 8601 timestamp when the job completed (only present if completed).").nullable().optional(),
|
|
20
|
+
progress: z.string().describe("Current state of the job (e.g., 'pending', 'processing', 'succeeded', 'failed')."),
|
|
21
|
+
completed: z.boolean().describe("True if the asynchronous job has completed processing."),
|
|
22
|
+
startTime: z.string().describe("ISO 8601 timestamp when the job started processing.").nullable().optional()
|
|
23
|
+
}).describe("Response model representing the status of an asynchronous REST job.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { netsuiteAsyncGetJobStatus };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=async-get-job-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-status.mjs","names":[],"sources":["../../src/actions/async-get-job-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteAsyncGetJobStatusInput: z.ZodTypeAny = z.object({\n jobId: z.string().describe(\"The Job ID extracted from the Location header URL when an async request was submitted with 'Prefer: respond-async'. For example, if Location header is 'https://demo.suitetalk.api.netsuite.com/services/rest/async/v1/job/203', the job ID is '203'.\"),\n}).describe(\"Request model for retrieving the status of an asynchronous REST job.\");\nconst NetsuiteAsyncGetJobStatus_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Link relation type (e.g., 'self').\"),\n href: z.string().describe(\"URL of the linked resource.\"),\n}).describe(\"HATEOAS link for navigation.\");\nconst NetsuiteAsyncGetJobStatus_TaskLinksSchema: z.ZodTypeAny = z.object({\n links: z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe(\"Navigation links for the task resource.\"),\n}).describe(\"Links to the job's task resource.\");\nexport const NetsuiteAsyncGetJobStatusOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the asynchronous job.\"),\n task: NetsuiteAsyncGetJobStatus_TaskLinksSchema.nullable(),\n links: z.array(NetsuiteAsyncGetJobStatus_LinkSchema).describe(\"HATEOAS navigation links for this job status resource.\"),\n endTime: z.string().describe(\"ISO 8601 timestamp when the job completed (only present if completed).\").nullable().optional(),\n progress: z.string().describe(\"Current state of the job (e.g., 'pending', 'processing', 'succeeded', 'failed').\"),\n completed: z.boolean().describe(\"True if the asynchronous job has completed processing.\"),\n startTime: z.string().describe(\"ISO 8601 timestamp when the job started processing.\").nullable().optional(),\n}).describe(\"Response model representing the status of an asynchronous REST job.\");\n\nexport const netsuiteAsyncGetJobStatus = action(\"NETSUITE_ASYNC_GET_JOB_STATUS\", {\n slug: \"netsuite-async-get-job-status\",\n name: \"Get Async Job Status\",\n description: \"Retrieves the current status of an asynchronous NetSuite REST job. Use this tool to check whether an async job has completed and its progress state. When you submit any NetSuite REST API request with the 'Prefer: respond-async' header, NetSuite returns a Location header containing the job ID. Use that job ID with this tool to poll the job's status. The response indicates if the job is completed, its progress state (pending/processing/succeeded/failed), and provides links to retrieve the job results once completed.\",\n input: NetsuiteAsyncGetJobStatusInput,\n output: NetsuiteAsyncGetJobStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uPAAuP,EACpR,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,uCAAqD,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACzD,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,4CAA0D,EAAE,OAAO,EACvE,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,yCAAyC,EACzG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAW/C,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf2D,EAAE,OAAO;EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACxE,MAAM,0CAA0C,SAAS;EACzD,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wDAAwD;EACtH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAChH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/async-get-job-task-result.ts
|
|
4
|
+
const NetsuiteAsyncGetJobTaskResultInput = zod.z.object({
|
|
5
|
+
jobId: zod.z.string().describe("The async job ID returned in the Location header when the request was submitted with Prefer: respond-async."),
|
|
6
|
+
taskId: zod.z.string().describe("The task ID for the submitted job, obtained via the async task endpoints for the given job.")
|
|
7
|
+
}).describe("Request model for retrieving the result of a completed async task.");
|
|
8
|
+
const NetsuiteAsyncGetJobTaskResultOutput = zod.z.object({
|
|
9
|
+
links: zod.z.array(zod.z.object({})).describe("HATEOAS navigation links for the resource, if available"),
|
|
10
|
+
result: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Payload fields returned by the completed async task")
|
|
11
|
+
}).describe("Response model for the payload returned by a completed async task.");
|
|
12
|
+
const netsuiteAsyncGetJobTaskResult = require_action.action("NETSUITE_ASYNC_GET_JOB_TASK_RESULT", {
|
|
13
|
+
slug: "netsuite-async-get-job-task-result",
|
|
14
|
+
name: "Async Get Job Task Result",
|
|
15
|
+
description: "Tool to retrieve the payload result of a completed async task. Use after confirming the async job and task have completed to fetch the operation's output.",
|
|
16
|
+
input: NetsuiteAsyncGetJobTaskResultInput,
|
|
17
|
+
output: NetsuiteAsyncGetJobTaskResultOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.netsuiteAsyncGetJobTaskResult = netsuiteAsyncGetJobTaskResult;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=async-get-job-task-result.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task-result.cjs","names":["z","action"],"sources":["../../src/actions/async-get-job-task-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteAsyncGetJobTaskResultInput: z.ZodTypeAny = z.object({\n jobId: z.string().describe(\"The async job ID returned in the Location header when the request was submitted with Prefer: respond-async.\"),\n taskId: z.string().describe(\"The task ID for the submitted job, obtained via the async task endpoints for the given job.\"),\n}).describe(\"Request model for retrieving the result of a completed async task.\");\nexport const NetsuiteAsyncGetJobTaskResultOutput: z.ZodTypeAny = z.object({\n links: z.array(z.object({})).describe(\"HATEOAS navigation links for the resource, if available\"),\n result: z.record(z.string(), z.unknown()).describe(\"Payload fields returned by the completed async task\"),\n}).describe(\"Response model for the payload returned by a completed async task.\");\n\nexport const netsuiteAsyncGetJobTaskResult = action(\"NETSUITE_ASYNC_GET_JOB_TASK_RESULT\", {\n slug: \"netsuite-async-get-job-task-result\",\n name: \"Async Get Job Task Result\",\n description: \"Tool to retrieve the payload result of a completed async task. Use after confirming the async job and task have completed to fetch the operation's output.\",\n input: NetsuiteAsyncGetJobTaskResultInput,\n output: NetsuiteAsyncGetJobTaskResultOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACxI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;AAC3H,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;CAC/F,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAC1G,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAEhF,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/async-get-job-task-result.d.ts
|
|
4
|
+
declare const NetsuiteAsyncGetJobTaskResultInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteAsyncGetJobTaskResultOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteAsyncGetJobTaskResult: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteAsyncGetJobTaskResult };
|
|
9
|
+
//# sourceMappingURL=async-get-job-task-result.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task-result.d.cts","names":[],"sources":["../../src/actions/async-get-job-task-result.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAG8B;AAAA,cACpE,mCAAA,EAAqC,CAAA,CAAE,UAG6B;AAAA,cAEpE,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/async-get-job-task-result.d.ts
|
|
4
|
+
declare const NetsuiteAsyncGetJobTaskResultInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteAsyncGetJobTaskResultOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteAsyncGetJobTaskResult: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteAsyncGetJobTaskResult };
|
|
9
|
+
//# sourceMappingURL=async-get-job-task-result.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task-result.d.mts","names":[],"sources":["../../src/actions/async-get-job-task-result.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAG8B;AAAA,cACpE,mCAAA,EAAqC,CAAA,CAAE,UAG6B;AAAA,cAEpE,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteAsyncGetJobTaskResult = action("NETSUITE_ASYNC_GET_JOB_TASK_RESULT", {
|
|
4
|
+
slug: "netsuite-async-get-job-task-result",
|
|
5
|
+
name: "Async Get Job Task Result",
|
|
6
|
+
description: "Tool to retrieve the payload result of a completed async task. Use after confirming the async job and task have completed to fetch the operation's output.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
jobId: z.string().describe("The async job ID returned in the Location header when the request was submitted with Prefer: respond-async."),
|
|
9
|
+
taskId: z.string().describe("The task ID for the submitted job, obtained via the async task endpoints for the given job.")
|
|
10
|
+
}).describe("Request model for retrieving the result of a completed async task."),
|
|
11
|
+
output: z.object({
|
|
12
|
+
links: z.array(z.object({})).describe("HATEOAS navigation links for the resource, if available"),
|
|
13
|
+
result: z.record(z.string(), z.unknown()).describe("Payload fields returned by the completed async task")
|
|
14
|
+
}).describe("Response model for the payload returned by a completed async task.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { netsuiteAsyncGetJobTaskResult };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=async-get-job-task-result.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task-result.mjs","names":[],"sources":["../../src/actions/async-get-job-task-result.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteAsyncGetJobTaskResultInput: z.ZodTypeAny = z.object({\n jobId: z.string().describe(\"The async job ID returned in the Location header when the request was submitted with Prefer: respond-async.\"),\n taskId: z.string().describe(\"The task ID for the submitted job, obtained via the async task endpoints for the given job.\"),\n}).describe(\"Request model for retrieving the result of a completed async task.\");\nexport const NetsuiteAsyncGetJobTaskResultOutput: z.ZodTypeAny = z.object({\n links: z.array(z.object({})).describe(\"HATEOAS navigation links for the resource, if available\"),\n result: z.record(z.string(), z.unknown()).describe(\"Payload fields returned by the completed async task\"),\n}).describe(\"Response model for the payload returned by a completed async task.\");\n\nexport const netsuiteAsyncGetJobTaskResult = action(\"NETSUITE_ASYNC_GET_JOB_TASK_RESULT\", {\n slug: \"netsuite-async-get-job-task-result\",\n name: \"Async Get Job Task Result\",\n description: \"Tool to retrieve the payload result of a completed async task. Use after confirming the async job and task have completed to fetch the operation's output.\",\n input: NetsuiteAsyncGetJobTaskResultInput,\n output: NetsuiteAsyncGetJobTaskResultOutput,\n});\n"],"mappings":";;AAaA,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8D,EAAE,OAAO;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;EACxI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC3H,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV+D,EAAE,OAAO;EACxE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;EAC/F,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD;CAC1G,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/async-get-job-task.ts
|
|
4
|
+
const NetsuiteAsyncGetJobTaskInput = zod.z.object({ job_id: zod.z.string().describe("Internal ID of the asynchronous job returned when initiating a request with Prefer: respond-async.") }).describe("Request model for retrieving the task reference of an asynchronous job.");
|
|
5
|
+
const NetsuiteAsyncGetJobTaskOutput = zod.z.object({
|
|
6
|
+
task_id: zod.z.string().describe("Identifier of the task reference for this asynchronous job."),
|
|
7
|
+
location: zod.z.string().describe("URL to the specific task resource for this asynchronous job.")
|
|
8
|
+
}).describe("Response model containing the task resource URL and identifier for an asynchronous job.");
|
|
9
|
+
const netsuiteAsyncGetJobTask = require_action.action("NETSUITE_ASYNC_GET_JOB_TASK", {
|
|
10
|
+
slug: "netsuite-async-get-job-task",
|
|
11
|
+
name: "Get Async Job Task",
|
|
12
|
+
description: "Retrieves the task reference (task ID and URL) for an asynchronous job in NetSuite. Use this action after submitting an async request with 'Prefer: respond-async' header and receiving a job_id in the Location header. The task ID is required to retrieve the job's result using the async get job task result action. Typical workflow: 1) Submit async request → 2) Get job_id → 3) Use this action to get task_id → 4) Poll job status → 5) Retrieve results with task_id.",
|
|
13
|
+
input: NetsuiteAsyncGetJobTaskInput,
|
|
14
|
+
output: NetsuiteAsyncGetJobTaskOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.netsuiteAsyncGetJobTask = netsuiteAsyncGetJobTask;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=async-get-job-task.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task.cjs","names":["z","action"],"sources":["../../src/actions/async-get-job-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteAsyncGetJobTaskInput: z.ZodTypeAny = z.object({\n job_id: z.string().describe(\"Internal ID of the asynchronous job returned when initiating a request with Prefer: respond-async.\"),\n}).describe(\"Request model for retrieving the task reference of an asynchronous job.\");\nexport const NetsuiteAsyncGetJobTaskOutput: z.ZodTypeAny = z.object({\n task_id: z.string().describe(\"Identifier of the task reference for this asynchronous job.\"),\n location: z.string().describe(\"URL to the specific task resource for this asynchronous job.\"),\n}).describe(\"Response model containing the task resource URL and identifier for an asynchronous job.\");\n\nexport const netsuiteAsyncGetJobTask = action(\"NETSUITE_ASYNC_GET_JOB_TASK\", {\n slug: \"netsuite-async-get-job-task\",\n name: \"Get Async Job Task\",\n description: \"Retrieves the task reference (task ID and URL) for an asynchronous job in NetSuite. Use this action after submitting an async request with 'Prefer: respond-async' header and receiving a job_id in the Location header. The task ID is required to retrieve the job's result using the async get job task result action. Typical workflow: 1) Submit async request → 2) Get job_id → 3) Use this action to get task_id → 4) Poll job status → 5) Retrieve results with task_id.\",\n input: NetsuiteAsyncGetJobTaskInput,\n output: NetsuiteAsyncGetJobTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,EAClI,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAC9F,CAAC,CAAC,CAAC,SAAS,yFAAyF;AAErG,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/async-get-job-task.d.ts
|
|
4
|
+
declare const NetsuiteAsyncGetJobTaskInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteAsyncGetJobTaskOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteAsyncGetJobTask: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteAsyncGetJobTask };
|
|
9
|
+
//# sourceMappingURL=async-get-job-task.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task.d.cts","names":[],"sources":["../../src/actions/async-get-job-task.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEyC;AAAA,cACzE,6BAAA,EAA+B,CAAA,CAAE,UAGwD;AAAA,cAEzF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/async-get-job-task.d.ts
|
|
4
|
+
declare const NetsuiteAsyncGetJobTaskInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteAsyncGetJobTaskOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteAsyncGetJobTask: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteAsyncGetJobTask };
|
|
9
|
+
//# sourceMappingURL=async-get-job-task.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task.d.mts","names":[],"sources":["../../src/actions/async-get-job-task.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEyC;AAAA,cACzE,6BAAA,EAA+B,CAAA,CAAE,UAGwD;AAAA,cAEzF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteAsyncGetJobTask = action("NETSUITE_ASYNC_GET_JOB_TASK", {
|
|
4
|
+
slug: "netsuite-async-get-job-task",
|
|
5
|
+
name: "Get Async Job Task",
|
|
6
|
+
description: "Retrieves the task reference (task ID and URL) for an asynchronous job in NetSuite. Use this action after submitting an async request with 'Prefer: respond-async' header and receiving a job_id in the Location header. The task ID is required to retrieve the job's result using the async get job task result action. Typical workflow: 1) Submit async request → 2) Get job_id → 3) Use this action to get task_id → 4) Poll job status → 5) Retrieve results with task_id.",
|
|
7
|
+
input: z.object({ job_id: z.string().describe("Internal ID of the asynchronous job returned when initiating a request with Prefer: respond-async.") }).describe("Request model for retrieving the task reference of an asynchronous job."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
task_id: z.string().describe("Identifier of the task reference for this asynchronous job."),
|
|
10
|
+
location: z.string().describe("URL to the specific task resource for this asynchronous job.")
|
|
11
|
+
}).describe("Response model containing the task resource URL and identifier for an asynchronous job.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { netsuiteAsyncGetJobTask };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=async-get-job-task.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-get-job-task.mjs","names":[],"sources":["../../src/actions/async-get-job-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteAsyncGetJobTaskInput: z.ZodTypeAny = z.object({\n job_id: z.string().describe(\"Internal ID of the asynchronous job returned when initiating a request with Prefer: respond-async.\"),\n}).describe(\"Request model for retrieving the task reference of an asynchronous job.\");\nexport const NetsuiteAsyncGetJobTaskOutput: z.ZodTypeAny = z.object({\n task_id: z.string().describe(\"Identifier of the task reference for this asynchronous job.\"),\n location: z.string().describe(\"URL to the specific task resource for this asynchronous job.\"),\n}).describe(\"Response model containing the task resource URL and identifier for an asynchronous job.\");\n\nexport const netsuiteAsyncGetJobTask = action(\"NETSUITE_ASYNC_GET_JOB_TASK\", {\n slug: \"netsuite-async-get-job-task\",\n name: \"Get Async Job Task\",\n description: \"Retrieves the task reference (task ID and URL) for an asynchronous job in NetSuite. Use this action after submitting an async request with 'Prefer: respond-async' header and receiving a job_id in the Location header. The task ID is required to retrieve the job's result using the async get job task result action. Typical workflow: 1) Submit async request → 2) Get job_id → 3) Use this action to get task_id → 4) Poll job status → 5) Retrieve results with task_id.\",\n input: NetsuiteAsyncGetJobTaskInput,\n output: NetsuiteAsyncGetJobTaskOutput,\n});\n"],"mappings":";;AAYA,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwD,EAAE,OAAO,EACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,EAClI,CAAC,CAAC,CAAC,SAAS,yEAUH;CACP,QAVyD,EAAE,OAAO;EAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC9F,CAAC,CAAC,CAAC,SAAS,yFAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-customer-payment.ts
|
|
4
|
+
const NetsuiteCreateCustomerPaymentInput = zod.z.object({
|
|
5
|
+
body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Customer payment record data. Required fields: 'account' (deposit account, typically Undeposited Funds), 'customer' (customer ID reference), and 'payment' (payment amount). Optional: 'memo', 'toBeEmailed', 'apply' (sublist to link payment to specific invoices with doc/line/apply/amount fields)."),
|
|
6
|
+
Prefer: zod.z.string().describe("Use 'respond-async' to run the create operation asynchronously.").optional(),
|
|
7
|
+
replace: zod.z.string().describe("Comma-separated sublist names to fully replace with those provided.").optional(),
|
|
8
|
+
"X-NetSuite-Idempotency-Key": zod.z.string().describe("UUID to ensure idempotent async requests; ignored for synchronous calls.").optional(),
|
|
9
|
+
"X-NetSuite-PropertyNameValidation": zod.z.enum([
|
|
10
|
+
"Error",
|
|
11
|
+
"Warning",
|
|
12
|
+
"Ignore Warning"
|
|
13
|
+
]).describe("Controls strictness for property name validation.").optional(),
|
|
14
|
+
"X-NetSuite-PropertyValueValidation": zod.z.enum([
|
|
15
|
+
"Error",
|
|
16
|
+
"Warning",
|
|
17
|
+
"Ignore Error"
|
|
18
|
+
]).describe("Controls strictness for property value validation.").optional()
|
|
19
|
+
}).describe("Request model for creating a NetSuite Customer Payment record.");
|
|
20
|
+
const NetsuiteCreateCustomerPaymentOutput = zod.z.object({
|
|
21
|
+
location: zod.z.string().describe("URL of the created Customer Payment record or async job status.").nullable().optional(),
|
|
22
|
+
preference_applied: zod.z.string().describe("Echoes 'respond-async' when async creation is requested.").nullable().optional()
|
|
23
|
+
}).describe("Response model for creating a Customer Payment record.");
|
|
24
|
+
const netsuiteCreateCustomerPayment = require_action.action("NETSUITE_CREATE_CUSTOMER_PAYMENT", {
|
|
25
|
+
slug: "netsuite-create-customer-payment",
|
|
26
|
+
name: "Create Customer Payment",
|
|
27
|
+
description: "Creates a customer payment record in NetSuite. Requires account (deposit account), customer reference, and payment amount. Optionally link payment to specific invoices via the 'apply' sublist. Returns the URL of the created payment record.",
|
|
28
|
+
input: NetsuiteCreateCustomerPaymentInput,
|
|
29
|
+
output: NetsuiteCreateCustomerPaymentOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.netsuiteCreateCustomerPayment = netsuiteCreateCustomerPayment;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=create-customer-payment.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer-payment.cjs","names":["z","action"],"sources":["../../src/actions/create-customer-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateCustomerPaymentInput: z.ZodTypeAny = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Customer payment record data. Required fields: 'account' (deposit account, typically Undeposited Funds), 'customer' (customer ID reference), and 'payment' (payment amount). Optional: 'memo', 'toBeEmailed', 'apply' (sublist to link payment to specific invoices with doc/line/apply/amount 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 Customer Payment record.\");\nexport const NetsuiteCreateCustomerPaymentOutput: z.ZodTypeAny = z.object({\n location: z.string().describe(\"URL of the created Customer Payment 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 Customer Payment record.\");\n\nexport const netsuiteCreateCustomerPayment = action(\"NETSUITE_CREATE_CUSTOMER_PAYMENT\", {\n slug: \"netsuite-create-customer-payment\",\n name: \"Create Customer Payment\",\n description: \"Creates a customer payment record in NetSuite. Requires account (deposit account), customer reference, and payment amount. Optionally link payment to specific invoices via the 'apply' sublist. Returns the URL of the created payment record.\",\n input: NetsuiteCreateCustomerPaymentInput,\n output: NetsuiteCreateCustomerPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,ySAAyS;CAC1V,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACvI,qCAAqCA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAgB,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3J,sCAAsCA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAc,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-customer-payment.d.ts
|
|
4
|
+
declare const NetsuiteCreateCustomerPaymentInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteCreateCustomerPaymentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteCreateCustomerPayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteCreateCustomerPayment };
|
|
9
|
+
//# sourceMappingURL=create-customer-payment.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer-payment.d.cts","names":[],"sources":["../../src/actions/create-customer-payment.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAO0B;AAAA,cAChE,mCAAA,EAAqC,CAAA,CAAE,UAGiB;AAAA,cAExD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-customer-payment.d.ts
|
|
4
|
+
declare const NetsuiteCreateCustomerPaymentInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteCreateCustomerPaymentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteCreateCustomerPayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteCreateCustomerPayment };
|
|
9
|
+
//# sourceMappingURL=create-customer-payment.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer-payment.d.mts","names":[],"sources":["../../src/actions/create-customer-payment.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAO0B;AAAA,cAChE,mCAAA,EAAqC,CAAA,CAAE,UAGiB;AAAA,cAExD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteCreateCustomerPayment = action("NETSUITE_CREATE_CUSTOMER_PAYMENT", {
|
|
4
|
+
slug: "netsuite-create-customer-payment",
|
|
5
|
+
name: "Create Customer Payment",
|
|
6
|
+
description: "Creates a customer payment record in NetSuite. Requires account (deposit account), customer reference, and payment amount. Optionally link payment to specific invoices via the 'apply' sublist. Returns the URL of the created payment record.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
body: z.record(z.string(), z.unknown()).describe("Customer payment record data. Required fields: 'account' (deposit account, typically Undeposited Funds), 'customer' (customer ID reference), and 'payment' (payment amount). Optional: 'memo', 'toBeEmailed', 'apply' (sublist to link payment to specific invoices with doc/line/apply/amount fields)."),
|
|
9
|
+
Prefer: z.string().describe("Use 'respond-async' to run the create operation asynchronously.").optional(),
|
|
10
|
+
replace: z.string().describe("Comma-separated sublist names to fully replace with those provided.").optional(),
|
|
11
|
+
"X-NetSuite-Idempotency-Key": z.string().describe("UUID to ensure idempotent async requests; ignored for synchronous calls.").optional(),
|
|
12
|
+
"X-NetSuite-PropertyNameValidation": z.enum([
|
|
13
|
+
"Error",
|
|
14
|
+
"Warning",
|
|
15
|
+
"Ignore Warning"
|
|
16
|
+
]).describe("Controls strictness for property name validation.").optional(),
|
|
17
|
+
"X-NetSuite-PropertyValueValidation": z.enum([
|
|
18
|
+
"Error",
|
|
19
|
+
"Warning",
|
|
20
|
+
"Ignore Error"
|
|
21
|
+
]).describe("Controls strictness for property value validation.").optional()
|
|
22
|
+
}).describe("Request model for creating a NetSuite Customer Payment record."),
|
|
23
|
+
output: z.object({
|
|
24
|
+
location: z.string().describe("URL of the created Customer Payment record or async job status.").nullable().optional(),
|
|
25
|
+
preference_applied: z.string().describe("Echoes 'respond-async' when async creation is requested.").nullable().optional()
|
|
26
|
+
}).describe("Response model for creating a Customer Payment record.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { netsuiteCreateCustomerPayment };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=create-customer-payment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer-payment.mjs","names":[],"sources":["../../src/actions/create-customer-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateCustomerPaymentInput: z.ZodTypeAny = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Customer payment record data. Required fields: 'account' (deposit account, typically Undeposited Funds), 'customer' (customer ID reference), and 'payment' (payment amount). Optional: 'memo', 'toBeEmailed', 'apply' (sublist to link payment to specific invoices with doc/line/apply/amount 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 Customer Payment record.\");\nexport const NetsuiteCreateCustomerPaymentOutput: z.ZodTypeAny = z.object({\n location: z.string().describe(\"URL of the created Customer Payment 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 Customer Payment record.\");\n\nexport const netsuiteCreateCustomerPayment = action(\"NETSUITE_CREATE_CUSTOMER_PAYMENT\", {\n slug: \"netsuite-create-customer-payment\",\n name: \"Create Customer Payment\",\n description: \"Creates a customer payment record in NetSuite. Requires account (deposit account), customer reference, and payment amount. Optionally link payment to specific invoices via the 'apply' sublist. Returns the URL of the created payment record.\",\n input: NetsuiteCreateCustomerPaymentInput,\n output: NetsuiteCreateCustomerPaymentOutput,\n});\n"],"mappings":";;AAiBA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,ySAAyS;EAC1V,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,gEAUH;CACP,QAV+D,EAAE,OAAO;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-customer.ts
|
|
4
|
+
const NetsuiteCreateCustomerInput = zod.z.object({
|
|
5
|
+
body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON object with customer data. Required fields: 'subsidiary' (object with 'id'), and either 'companyName' (for company customers) or 'firstName'+'lastName' (for individual customers). Optional fields include: 'email', 'phone', 'isPerson' (set to 'T' for individuals), 'comments', etc."),
|
|
6
|
+
Prefer: zod.z.string().describe("Use 'respond-async' to run the create operation asynchronously.").optional(),
|
|
7
|
+
replace: zod.z.string().describe("Comma-separated list of sublist names (e.g., 'contacts', 'addressbook') to fully replace rather than merge with existing data. Only applicable when updating existing records.").optional(),
|
|
8
|
+
"X-NetSuite-Idempotency-Key": zod.z.string().describe("UUID to ensure idempotent async requests; ignored for synchronous calls.").optional(),
|
|
9
|
+
"X-NetSuite-PropertyNameValidation": zod.z.enum([
|
|
10
|
+
"Error",
|
|
11
|
+
"Warning",
|
|
12
|
+
"Ignore Warning"
|
|
13
|
+
]).describe("Controls how NetSuite handles invalid property names in the request body. 'Error' (default) rejects requests with invalid names, 'Warning' accepts but warns, 'Ignore Warning' silently ignores invalid names.").optional(),
|
|
14
|
+
"X-NetSuite-PropertyValueValidation": zod.z.enum([
|
|
15
|
+
"Error",
|
|
16
|
+
"Warning",
|
|
17
|
+
"Ignore Error"
|
|
18
|
+
]).describe("Controls how NetSuite handles invalid property values in the request body. 'Error' (default) rejects requests with invalid values, 'Warning' accepts but warns, 'Ignore Error' attempts to proceed despite invalid values.").optional()
|
|
19
|
+
}).describe("Request model for creating a NetSuite Customer record.");
|
|
20
|
+
const NetsuiteCreateCustomerOutput = zod.z.object({
|
|
21
|
+
location: zod.z.string().describe("URL of the created Customer record or async job status.").nullable().optional(),
|
|
22
|
+
preference_applied: zod.z.string().describe("Echoes 'respond-async' when async creation is requested.").nullable().optional()
|
|
23
|
+
}).describe("Response model for creating a Customer record.");
|
|
24
|
+
const netsuiteCreateCustomer = require_action.action("NETSUITE_CREATE_CUSTOMER", {
|
|
25
|
+
slug: "netsuite-create-customer",
|
|
26
|
+
name: "Create Customer",
|
|
27
|
+
description: "Creates a new customer record in NetSuite. Requires subsidiary ID and either company name (for business customers) or first/last name (for individual customers). Returns the location URL of the created customer record, or an async job URL if using async mode.",
|
|
28
|
+
input: NetsuiteCreateCustomerInput,
|
|
29
|
+
output: NetsuiteCreateCustomerOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.netsuiteCreateCustomer = netsuiteCreateCustomer;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=create-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.cjs","names":["z","action"],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteCreateCustomerInput: z.ZodTypeAny = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"JSON object with customer data. Required fields: 'subsidiary' (object with 'id'), and either 'companyName' (for company customers) or 'firstName'+'lastName' (for individual customers). Optional fields include: 'email', 'phone', 'isPerson' (set to 'T' for individuals), 'comments', etc.\"),\n Prefer: z.string().describe(\"Use 'respond-async' to run the create operation asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated list of sublist names (e.g., 'contacts', 'addressbook') to fully replace rather than merge with existing data. Only applicable when updating existing records.\").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 how NetSuite handles invalid property names in the request body. 'Error' (default) rejects requests with invalid names, 'Warning' accepts but warns, 'Ignore Warning' silently ignores invalid names.\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.enum([\"Error\", \"Warning\", \"Ignore Error\"]).describe(\"Controls how NetSuite handles invalid property values in the request body. 'Error' (default) rejects requests with invalid values, 'Warning' accepts but warns, 'Ignore Error' attempts to proceed despite invalid values.\").optional(),\n}).describe(\"Request model for creating a NetSuite Customer record.\");\nexport const NetsuiteCreateCustomerOutput: z.ZodTypeAny = z.object({\n location: z.string().describe(\"URL of the created Customer 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 Customer record.\");\n\nexport const netsuiteCreateCustomer = action(\"NETSUITE_CREATE_CUSTOMER\", {\n slug: \"netsuite-create-customer\",\n name: \"Create Customer\",\n description: \"Creates a new customer record in NetSuite. Requires subsidiary ID and either company name (for business customers) or first/last name (for individual customers). Returns the location URL of the created customer record, or an async job URL if using async mode.\",\n input: NetsuiteCreateCustomerInput,\n output: NetsuiteCreateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+RAA+R;CAChV,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS;CACxN,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACvI,qCAAqCA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAgB,CAAC,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CACxT,sCAAsCA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAc,CAAC,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-customer.d.ts
|
|
4
|
+
declare const NetsuiteCreateCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteCreateCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteCreateCustomer };
|
|
9
|
+
//# sourceMappingURL=create-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.d.cts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAOyB;AAAA,cACxD,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-customer.d.ts
|
|
4
|
+
declare const NetsuiteCreateCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteCreateCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteCreateCustomer };
|
|
9
|
+
//# sourceMappingURL=create-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.d.mts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAOyB;AAAA,cACxD,4BAAA,EAA8B,CAAA,CAAE,UAGgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteCreateCustomer = action("NETSUITE_CREATE_CUSTOMER", {
|
|
4
|
+
slug: "netsuite-create-customer",
|
|
5
|
+
name: "Create Customer",
|
|
6
|
+
description: "Creates a new customer record in NetSuite. Requires subsidiary ID and either company name (for business customers) or first/last name (for individual customers). Returns the location URL of the created customer record, or an async job URL if using async mode.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
body: z.record(z.string(), z.unknown()).describe("JSON object with customer data. Required fields: 'subsidiary' (object with 'id'), and either 'companyName' (for company customers) or 'firstName'+'lastName' (for individual customers). Optional fields include: 'email', 'phone', 'isPerson' (set to 'T' for individuals), 'comments', etc."),
|
|
9
|
+
Prefer: z.string().describe("Use 'respond-async' to run the create operation asynchronously.").optional(),
|
|
10
|
+
replace: z.string().describe("Comma-separated list of sublist names (e.g., 'contacts', 'addressbook') to fully replace rather than merge with existing data. Only applicable when updating existing records.").optional(),
|
|
11
|
+
"X-NetSuite-Idempotency-Key": z.string().describe("UUID to ensure idempotent async requests; ignored for synchronous calls.").optional(),
|
|
12
|
+
"X-NetSuite-PropertyNameValidation": z.enum([
|
|
13
|
+
"Error",
|
|
14
|
+
"Warning",
|
|
15
|
+
"Ignore Warning"
|
|
16
|
+
]).describe("Controls how NetSuite handles invalid property names in the request body. 'Error' (default) rejects requests with invalid names, 'Warning' accepts but warns, 'Ignore Warning' silently ignores invalid names.").optional(),
|
|
17
|
+
"X-NetSuite-PropertyValueValidation": z.enum([
|
|
18
|
+
"Error",
|
|
19
|
+
"Warning",
|
|
20
|
+
"Ignore Error"
|
|
21
|
+
]).describe("Controls how NetSuite handles invalid property values in the request body. 'Error' (default) rejects requests with invalid values, 'Warning' accepts but warns, 'Ignore Error' attempts to proceed despite invalid values.").optional()
|
|
22
|
+
}).describe("Request model for creating a NetSuite Customer record."),
|
|
23
|
+
output: z.object({
|
|
24
|
+
location: z.string().describe("URL of the created Customer record or async job status.").nullable().optional(),
|
|
25
|
+
preference_applied: z.string().describe("Echoes 'respond-async' when async creation is requested.").nullable().optional()
|
|
26
|
+
}).describe("Response model for creating a Customer record.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { netsuiteCreateCustomer };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=create-customer.mjs.map
|