@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/o-auth2-token-client-credentials.ts
|
|
4
|
+
const NetsuiteOAuth2TokenClientCredentialsInput = zod.z.object({
|
|
5
|
+
grant_type: zod.z.string().default("client_credentials").describe("Grant type for OAuth2 client credentials flow (must be 'client_credentials').").optional(),
|
|
6
|
+
client_assertion: zod.z.string().describe("JWT assertion token signed with the integration's private key."),
|
|
7
|
+
client_assertion_type: zod.z.string().default("urn:ietf:params:oauth:client-assertion-type:jwt-bearer").describe("Client assertion type indicating a JWT bearer grant.").optional()
|
|
8
|
+
}).describe("Request model for obtaining an OAuth2 access token via client credentials (JWT assertion).");
|
|
9
|
+
const NetsuiteOAuth2TokenClientCredentialsOutput = zod.z.object({
|
|
10
|
+
error: zod.z.string().describe("Error code/message returned by the authorization server.").nullable().optional(),
|
|
11
|
+
expires_in: zod.z.number().int().describe("Token lifetime in seconds.").nullable().optional(),
|
|
12
|
+
token_type: zod.z.string().describe("Token type; always 'bearer'.").nullable().optional(),
|
|
13
|
+
access_token: zod.z.string().describe("Access token in JWT format; valid for a limited period.").nullable().optional()
|
|
14
|
+
}).describe("Response model for OAuth2 token obtained via client credentials.\nIncludes optional error field to capture authorization server errors.");
|
|
15
|
+
const netsuiteOAuth2TokenClientCredentials = require_action.action("NETSUITE_O_AUTH2_TOKEN_CLIENT_CREDENTIALS", {
|
|
16
|
+
slug: "netsuite-o-auth2-token-client-credentials",
|
|
17
|
+
name: "OAuth2 Token Client Credentials",
|
|
18
|
+
description: "Tool to obtain an OAuth2 access token via client credentials grant. Use when authenticating to NetSuite APIs with a JWT-based client credentials flow.",
|
|
19
|
+
input: NetsuiteOAuth2TokenClientCredentialsInput,
|
|
20
|
+
output: NetsuiteOAuth2TokenClientCredentialsOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.netsuiteOAuth2TokenClientCredentials = netsuiteOAuth2TokenClientCredentials;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=o-auth2-token-client-credentials.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-client-credentials.cjs","names":["z","action"],"sources":["../../src/actions/o-auth2-token-client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteOAuth2TokenClientCredentialsInput: z.ZodTypeAny = z.object({\n grant_type: z.string().default(\"client_credentials\").describe(\"Grant type for OAuth2 client credentials flow (must be 'client_credentials').\").optional(),\n client_assertion: z.string().describe(\"JWT assertion token signed with the integration's private key.\"),\n client_assertion_type: z.string().default(\"urn:ietf:params:oauth:client-assertion-type:jwt-bearer\").describe(\"Client assertion type indicating a JWT bearer grant.\").optional(),\n}).describe(\"Request model for obtaining an OAuth2 access token via client credentials (JWT assertion).\");\nexport const NetsuiteOAuth2TokenClientCredentialsOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error code/message returned by the authorization server.\").nullable().optional(),\n expires_in: z.number().int().describe(\"Token lifetime in seconds.\").nullable().optional(),\n token_type: z.string().describe(\"Token type; always 'bearer'.\").nullable().optional(),\n access_token: z.string().describe(\"Access token in JWT format; valid for a limited period.\").nullable().optional(),\n}).describe(\"Response model for OAuth2 token obtained via client credentials.\\nIncludes optional error field to capture authorization server errors.\");\n\nexport const netsuiteOAuth2TokenClientCredentials = action(\"NETSUITE_O_AUTH2_TOKEN_CLIENT_CREDENTIALS\", {\n slug: \"netsuite-o-auth2-token-client-credentials\",\n name: \"OAuth2 Token Client Credentials\",\n description: \"Tool to obtain an OAuth2 access token via client credentials grant. Use when authenticating to NetSuite APIs with a JWT-based client credentials flow.\",\n input: NetsuiteOAuth2TokenClientCredentialsInput,\n output: NetsuiteOAuth2TokenClientCredentialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACxJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,wDAAwD,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAChL,CAAC,CAAC,CAAC,SAAS,4FAA4F;AACxG,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,yIAAyI;AAErJ,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,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/o-auth2-token-client-credentials.d.ts
|
|
4
|
+
declare const NetsuiteOAuth2TokenClientCredentialsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteOAuth2TokenClientCredentialsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteOAuth2TokenClientCredentials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteOAuth2TokenClientCredentials };
|
|
9
|
+
//# sourceMappingURL=o-auth2-token-client-credentials.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-client-credentials.d.cts","names":[],"sources":["../../src/actions/o-auth2-token-client-credentials.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAI+C;AAAA,cAC5F,0CAAA,EAA4C,CAAA,CAAE,UAK2F;AAAA,cAEzI,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/o-auth2-token-client-credentials.d.ts
|
|
4
|
+
declare const NetsuiteOAuth2TokenClientCredentialsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteOAuth2TokenClientCredentialsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteOAuth2TokenClientCredentials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteOAuth2TokenClientCredentials };
|
|
9
|
+
//# sourceMappingURL=o-auth2-token-client-credentials.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-client-credentials.d.mts","names":[],"sources":["../../src/actions/o-auth2-token-client-credentials.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAI+C;AAAA,cAC5F,0CAAA,EAA4C,CAAA,CAAE,UAK2F;AAAA,cAEzI,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteOAuth2TokenClientCredentials = action("NETSUITE_O_AUTH2_TOKEN_CLIENT_CREDENTIALS", {
|
|
4
|
+
slug: "netsuite-o-auth2-token-client-credentials",
|
|
5
|
+
name: "OAuth2 Token Client Credentials",
|
|
6
|
+
description: "Tool to obtain an OAuth2 access token via client credentials grant. Use when authenticating to NetSuite APIs with a JWT-based client credentials flow.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
grant_type: z.string().default("client_credentials").describe("Grant type for OAuth2 client credentials flow (must be 'client_credentials').").optional(),
|
|
9
|
+
client_assertion: z.string().describe("JWT assertion token signed with the integration's private key."),
|
|
10
|
+
client_assertion_type: z.string().default("urn:ietf:params:oauth:client-assertion-type:jwt-bearer").describe("Client assertion type indicating a JWT bearer grant.").optional()
|
|
11
|
+
}).describe("Request model for obtaining an OAuth2 access token via client credentials (JWT assertion)."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
error: z.string().describe("Error code/message returned by the authorization server.").nullable().optional(),
|
|
14
|
+
expires_in: z.number().int().describe("Token lifetime in seconds.").nullable().optional(),
|
|
15
|
+
token_type: z.string().describe("Token type; always 'bearer'.").nullable().optional(),
|
|
16
|
+
access_token: z.string().describe("Access token in JWT format; valid for a limited period.").nullable().optional()
|
|
17
|
+
}).describe("Response model for OAuth2 token obtained via client credentials.\nIncludes optional error field to capture authorization server errors.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { netsuiteOAuth2TokenClientCredentials };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=o-auth2-token-client-credentials.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-client-credentials.mjs","names":[],"sources":["../../src/actions/o-auth2-token-client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteOAuth2TokenClientCredentialsInput: z.ZodTypeAny = z.object({\n grant_type: z.string().default(\"client_credentials\").describe(\"Grant type for OAuth2 client credentials flow (must be 'client_credentials').\").optional(),\n client_assertion: z.string().describe(\"JWT assertion token signed with the integration's private key.\"),\n client_assertion_type: z.string().default(\"urn:ietf:params:oauth:client-assertion-type:jwt-bearer\").describe(\"Client assertion type indicating a JWT bearer grant.\").optional(),\n}).describe(\"Request model for obtaining an OAuth2 access token via client credentials (JWT assertion).\");\nexport const NetsuiteOAuth2TokenClientCredentialsOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error code/message returned by the authorization server.\").nullable().optional(),\n expires_in: z.number().int().describe(\"Token lifetime in seconds.\").nullable().optional(),\n token_type: z.string().describe(\"Token type; always 'bearer'.\").nullable().optional(),\n access_token: z.string().describe(\"Access token in JWT format; valid for a limited period.\").nullable().optional(),\n}).describe(\"Response model for OAuth2 token obtained via client credentials.\\nIncludes optional error field to capture authorization server errors.\");\n\nexport const netsuiteOAuth2TokenClientCredentials = action(\"NETSUITE_O_AUTH2_TOKEN_CLIENT_CREDENTIALS\", {\n slug: \"netsuite-o-auth2-token-client-credentials\",\n name: \"OAuth2 Token Client Credentials\",\n description: \"Tool to obtain an OAuth2 access token via client credentials grant. Use when authenticating to NetSuite APIs with a JWT-based client credentials flow.\",\n input: NetsuiteOAuth2TokenClientCredentialsInput,\n output: NetsuiteOAuth2TokenClientCredentialsOutput,\n});\n"],"mappings":";;AAgBA,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqE,EAAE,OAAO;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACxJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EACtG,uBAAuB,EAAE,OAAO,CAAC,CAAC,QAAQ,wDAAwD,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAChL,CAAC,CAAC,CAAC,SAAS,4FAYH;CACP,QAZsE,EAAE,OAAO;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,yIAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/o-auth2-token-refresh.ts
|
|
4
|
+
const NetsuiteOAuth2TokenRefreshInput = zod.z.object({
|
|
5
|
+
client_id: zod.z.string().describe("OAuth2 client ID. Required for public clients if Authorization header is omitted.").optional(),
|
|
6
|
+
client_secret: zod.z.string().describe("OAuth2 client secret for confidential clients.").optional(),
|
|
7
|
+
refresh_token: zod.z.string().describe("OAuth2 refresh token in JWT format. If omitted, uses the configured metadata refresh_token.").optional()
|
|
8
|
+
}).describe("Request model for refreshing an OAuth2 access token using a refresh token.");
|
|
9
|
+
const NetsuiteOAuth2TokenRefreshOutput = zod.z.object({
|
|
10
|
+
error: zod.z.string().describe("Error code/message returned by the authorization server.").nullable().optional(),
|
|
11
|
+
expires_in: zod.z.number().int().describe("Lifetime in seconds of the access token; typically 3600.").nullable().optional(),
|
|
12
|
+
token_type: zod.z.string().describe("OAuth2 token type; typically 'bearer'.").nullable().optional(),
|
|
13
|
+
access_token: zod.z.string().describe("New OAuth2 access token (JWT format).").nullable().optional(),
|
|
14
|
+
refresh_token: zod.z.string().describe("New refresh token returned for public clients; may be omitted for confidential clients.").nullable().optional()
|
|
15
|
+
}).describe("Response model for an OAuth2 token refresh operation.\nIncludes optional error field to capture authorization server errors.");
|
|
16
|
+
const netsuiteOAuth2TokenRefresh = require_action.action("NETSUITE_O_AUTH2_TOKEN_REFRESH", {
|
|
17
|
+
slug: "netsuite-o-auth2-token-refresh",
|
|
18
|
+
name: "OAuth2 Token Refresh",
|
|
19
|
+
description: "Tool to refresh an OAuth2 access token. Use when the current access token has expired and you need a new one.",
|
|
20
|
+
input: NetsuiteOAuth2TokenRefreshInput,
|
|
21
|
+
output: NetsuiteOAuth2TokenRefreshOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.netsuiteOAuth2TokenRefresh = netsuiteOAuth2TokenRefresh;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=o-auth2-token-refresh.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-refresh.cjs","names":["z","action"],"sources":["../../src/actions/o-auth2-token-refresh.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteOAuth2TokenRefreshInput: z.ZodTypeAny = z.object({\n client_id: z.string().describe(\"OAuth2 client ID. Required for public clients if Authorization header is omitted.\").optional(),\n client_secret: z.string().describe(\"OAuth2 client secret for confidential clients.\").optional(),\n refresh_token: z.string().describe(\"OAuth2 refresh token in JWT format. If omitted, uses the configured metadata refresh_token.\").optional(),\n}).describe(\"Request model for refreshing an OAuth2 access token using a refresh token.\");\nexport const NetsuiteOAuth2TokenRefreshOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error code/message returned by the authorization server.\").nullable().optional(),\n expires_in: z.number().int().describe(\"Lifetime in seconds of the access token; typically 3600.\").nullable().optional(),\n token_type: z.string().describe(\"OAuth2 token type; typically 'bearer'.\").nullable().optional(),\n access_token: z.string().describe(\"New OAuth2 access token (JWT format).\").nullable().optional(),\n refresh_token: z.string().describe(\"New refresh token returned for public clients; may be omitted for confidential clients.\").nullable().optional(),\n}).describe(\"Response model for an OAuth2 token refresh operation.\\nIncludes optional error field to capture authorization server errors.\");\n\nexport const netsuiteOAuth2TokenRefresh = action(\"NETSUITE_O_AUTH2_TOKEN_REFRESH\", {\n slug: \"netsuite-o-auth2-token-refresh\",\n name: \"OAuth2 Token Refresh\",\n description: \"Tool to refresh an OAuth2 access token. Use when the current access token has expired and you need a new one.\",\n input: NetsuiteOAuth2TokenRefreshInput,\n output: NetsuiteOAuth2TokenRefreshOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC7H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,8HAA8H;AAE1I,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,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/o-auth2-token-refresh.d.ts
|
|
4
|
+
declare const NetsuiteOAuth2TokenRefreshInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteOAuth2TokenRefreshOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteOAuth2TokenRefresh: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteOAuth2TokenRefresh };
|
|
9
|
+
//# sourceMappingURL=o-auth2-token-refresh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-refresh.d.cts","names":[],"sources":["../../src/actions/o-auth2-token-refresh.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAIyC;AAAA,cAC5E,gCAAA,EAAkC,CAAA,CAAE,UAM0F;AAAA,cAE9H,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/o-auth2-token-refresh.d.ts
|
|
4
|
+
declare const NetsuiteOAuth2TokenRefreshInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteOAuth2TokenRefreshOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteOAuth2TokenRefresh: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteOAuth2TokenRefresh };
|
|
9
|
+
//# sourceMappingURL=o-auth2-token-refresh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-refresh.d.mts","names":[],"sources":["../../src/actions/o-auth2-token-refresh.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAIyC;AAAA,cAC5E,gCAAA,EAAkC,CAAA,CAAE,UAM0F;AAAA,cAE9H,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteOAuth2TokenRefresh = action("NETSUITE_O_AUTH2_TOKEN_REFRESH", {
|
|
4
|
+
slug: "netsuite-o-auth2-token-refresh",
|
|
5
|
+
name: "OAuth2 Token Refresh",
|
|
6
|
+
description: "Tool to refresh an OAuth2 access token. Use when the current access token has expired and you need a new one.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
client_id: z.string().describe("OAuth2 client ID. Required for public clients if Authorization header is omitted.").optional(),
|
|
9
|
+
client_secret: z.string().describe("OAuth2 client secret for confidential clients.").optional(),
|
|
10
|
+
refresh_token: z.string().describe("OAuth2 refresh token in JWT format. If omitted, uses the configured metadata refresh_token.").optional()
|
|
11
|
+
}).describe("Request model for refreshing an OAuth2 access token using a refresh token."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
error: z.string().describe("Error code/message returned by the authorization server.").nullable().optional(),
|
|
14
|
+
expires_in: z.number().int().describe("Lifetime in seconds of the access token; typically 3600.").nullable().optional(),
|
|
15
|
+
token_type: z.string().describe("OAuth2 token type; typically 'bearer'.").nullable().optional(),
|
|
16
|
+
access_token: z.string().describe("New OAuth2 access token (JWT format).").nullable().optional(),
|
|
17
|
+
refresh_token: z.string().describe("New refresh token returned for public clients; may be omitted for confidential clients.").nullable().optional()
|
|
18
|
+
}).describe("Response model for an OAuth2 token refresh operation.\nIncludes optional error field to capture authorization server errors.")
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { netsuiteOAuth2TokenRefresh };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=o-auth2-token-refresh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o-auth2-token-refresh.mjs","names":[],"sources":["../../src/actions/o-auth2-token-refresh.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteOAuth2TokenRefreshInput: z.ZodTypeAny = z.object({\n client_id: z.string().describe(\"OAuth2 client ID. Required for public clients if Authorization header is omitted.\").optional(),\n client_secret: z.string().describe(\"OAuth2 client secret for confidential clients.\").optional(),\n refresh_token: z.string().describe(\"OAuth2 refresh token in JWT format. If omitted, uses the configured metadata refresh_token.\").optional(),\n}).describe(\"Request model for refreshing an OAuth2 access token using a refresh token.\");\nexport const NetsuiteOAuth2TokenRefreshOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error code/message returned by the authorization server.\").nullable().optional(),\n expires_in: z.number().int().describe(\"Lifetime in seconds of the access token; typically 3600.\").nullable().optional(),\n token_type: z.string().describe(\"OAuth2 token type; typically 'bearer'.\").nullable().optional(),\n access_token: z.string().describe(\"New OAuth2 access token (JWT format).\").nullable().optional(),\n refresh_token: z.string().describe(\"New refresh token returned for public clients; may be omitted for confidential clients.\").nullable().optional(),\n}).describe(\"Response model for an OAuth2 token refresh operation.\\nIncludes optional error field to capture authorization server errors.\");\n\nexport const netsuiteOAuth2TokenRefresh = action(\"NETSUITE_O_AUTH2_TOKEN_REFRESH\", {\n slug: \"netsuite-o-auth2-token-refresh\",\n name: \"OAuth2 Token Refresh\",\n description: \"Tool to refresh an OAuth2 access token. Use when the current access token has expired and you need a new one.\",\n input: NetsuiteOAuth2TokenRefreshInput,\n output: NetsuiteOAuth2TokenRefreshOutput,\n});\n"],"mappings":";;AAiBA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB2D,EAAE,OAAO;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC7H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,4EAaH;CACP,QAb4D,EAAE,OAAO;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,8HAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/oauth2-get-jwks-keys.ts
|
|
4
|
+
const NetsuiteOauth2GetJwksKeysInput = zod.z.object({}).describe("Request model for retrieving OAuth2 JWKS public keys. No parameters are required.");
|
|
5
|
+
const NetsuiteOauth2GetJwksKeys_JwkKeySchema = zod.z.object({
|
|
6
|
+
e: zod.z.string().describe("RSA exponent (base64url-encoded)").nullable().optional(),
|
|
7
|
+
n: zod.z.string().describe("RSA modulus (base64url-encoded)").nullable().optional(),
|
|
8
|
+
alg: zod.z.string().describe("Key algorithm (e.g., 'RS256')").nullable().optional(),
|
|
9
|
+
kid: zod.z.string().describe("Key ID"),
|
|
10
|
+
kty: zod.z.string().describe("Key type (e.g., 'RSA')"),
|
|
11
|
+
use: zod.z.string().describe("Public key use (e.g., 'sig')").nullable().optional(),
|
|
12
|
+
x5c: zod.z.array(zod.z.string()).describe("X.509 certificate chain").nullable().optional(),
|
|
13
|
+
x5t: zod.z.string().describe("X.509 certificate SHA-1 thumbprint").nullable().optional()
|
|
14
|
+
}).describe("JSON Web Key model as returned in the JWKS response.");
|
|
15
|
+
const NetsuiteOauth2GetJwksKeysOutput = zod.z.object({ keys: zod.z.array(NetsuiteOauth2GetJwksKeys_JwkKeySchema).describe("List of JSON Web Keys") }).describe("Response model containing the JSON Web Key Set.");
|
|
16
|
+
const netsuiteOauth2GetJwksKeys = require_action.action("NETSUITE_OAUTH2_GET_JWKS_KEYS", {
|
|
17
|
+
slug: "netsuite-oauth2-get-jwks-keys",
|
|
18
|
+
name: "Get OAuth2 JWKS Keys",
|
|
19
|
+
description: "Tool to retrieve OAuth2 JWKS public keys. Use when validating token signatures.",
|
|
20
|
+
input: NetsuiteOauth2GetJwksKeysInput,
|
|
21
|
+
output: NetsuiteOauth2GetJwksKeysOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.netsuiteOauth2GetJwksKeys = netsuiteOauth2GetJwksKeys;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=oauth2-get-jwks-keys.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2-get-jwks-keys.cjs","names":["z","action"],"sources":["../../src/actions/oauth2-get-jwks-keys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteOauth2GetJwksKeysInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving OAuth2 JWKS public keys. No parameters are required.\");\nconst NetsuiteOauth2GetJwksKeys_JwkKeySchema: z.ZodTypeAny = z.object({\n e: z.string().describe(\"RSA exponent (base64url-encoded)\").nullable().optional(),\n n: z.string().describe(\"RSA modulus (base64url-encoded)\").nullable().optional(),\n alg: z.string().describe(\"Key algorithm (e.g., 'RS256')\").nullable().optional(),\n kid: z.string().describe(\"Key ID\"),\n kty: z.string().describe(\"Key type (e.g., 'RSA')\"),\n use: z.string().describe(\"Public key use (e.g., 'sig')\").nullable().optional(),\n x5c: z.array(z.string()).describe(\"X.509 certificate chain\").nullable().optional(),\n x5t: z.string().describe(\"X.509 certificate SHA-1 thumbprint\").nullable().optional(),\n}).describe(\"JSON Web Key model as returned in the JWKS response.\");\nexport const NetsuiteOauth2GetJwksKeysOutput: z.ZodTypeAny = z.object({\n keys: z.array(NetsuiteOauth2GetJwksKeys_JwkKeySchema).describe(\"List of JSON Web Keys\"),\n}).describe(\"Response model containing the JSON Web Key Set.\");\n\nexport const netsuiteOauth2GetJwksKeys = action(\"NETSUITE_OAUTH2_GET_JWKS_KEYS\", {\n slug: \"netsuite-oauth2-get-jwks-keys\",\n name: \"Get OAuth2 JWKS Keys\",\n description: \"Tool to retrieve OAuth2 JWKS public keys. Use when validating token signatures.\",\n input: NetsuiteOauth2GetJwksKeysInput,\n output: NetsuiteOauth2GetJwksKeysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF;AACrK,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,QAAQ;CACjC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,uBAAuB,EACxF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,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/oauth2-get-jwks-keys.d.ts
|
|
4
|
+
declare const NetsuiteOauth2GetJwksKeysInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteOauth2GetJwksKeysOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteOauth2GetJwksKeys: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteOauth2GetJwksKeys };
|
|
9
|
+
//# sourceMappingURL=oauth2-get-jwks-keys.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2-get-jwks-keys.d.cts","names":[],"sources":["../../src/actions/oauth2-get-jwks-keys.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAuH;AAAA,cAWzJ,+BAAA,EAAiC,CAAA,CAAE,UAEc;AAAA,cAEjD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/oauth2-get-jwks-keys.d.ts
|
|
4
|
+
declare const NetsuiteOauth2GetJwksKeysInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteOauth2GetJwksKeysOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteOauth2GetJwksKeys: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteOauth2GetJwksKeys };
|
|
9
|
+
//# sourceMappingURL=oauth2-get-jwks-keys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2-get-jwks-keys.d.mts","names":[],"sources":["../../src/actions/oauth2-get-jwks-keys.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAuH;AAAA,cAWzJ,+BAAA,EAAiC,CAAA,CAAE,UAEc;AAAA,cAEjD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/oauth2-get-jwks-keys.ts
|
|
4
|
+
const NetsuiteOauth2GetJwksKeysInput = z.object({}).describe("Request model for retrieving OAuth2 JWKS public keys. No parameters are required.");
|
|
5
|
+
const NetsuiteOauth2GetJwksKeys_JwkKeySchema = z.object({
|
|
6
|
+
e: z.string().describe("RSA exponent (base64url-encoded)").nullable().optional(),
|
|
7
|
+
n: z.string().describe("RSA modulus (base64url-encoded)").nullable().optional(),
|
|
8
|
+
alg: z.string().describe("Key algorithm (e.g., 'RS256')").nullable().optional(),
|
|
9
|
+
kid: z.string().describe("Key ID"),
|
|
10
|
+
kty: z.string().describe("Key type (e.g., 'RSA')"),
|
|
11
|
+
use: z.string().describe("Public key use (e.g., 'sig')").nullable().optional(),
|
|
12
|
+
x5c: z.array(z.string()).describe("X.509 certificate chain").nullable().optional(),
|
|
13
|
+
x5t: z.string().describe("X.509 certificate SHA-1 thumbprint").nullable().optional()
|
|
14
|
+
}).describe("JSON Web Key model as returned in the JWKS response.");
|
|
15
|
+
const netsuiteOauth2GetJwksKeys = action("NETSUITE_OAUTH2_GET_JWKS_KEYS", {
|
|
16
|
+
slug: "netsuite-oauth2-get-jwks-keys",
|
|
17
|
+
name: "Get OAuth2 JWKS Keys",
|
|
18
|
+
description: "Tool to retrieve OAuth2 JWKS public keys. Use when validating token signatures.",
|
|
19
|
+
input: NetsuiteOauth2GetJwksKeysInput,
|
|
20
|
+
output: z.object({ keys: z.array(NetsuiteOauth2GetJwksKeys_JwkKeySchema).describe("List of JSON Web Keys") }).describe("Response model containing the JSON Web Key Set.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { netsuiteOauth2GetJwksKeys };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=oauth2-get-jwks-keys.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2-get-jwks-keys.mjs","names":[],"sources":["../../src/actions/oauth2-get-jwks-keys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteOauth2GetJwksKeysInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving OAuth2 JWKS public keys. No parameters are required.\");\nconst NetsuiteOauth2GetJwksKeys_JwkKeySchema: z.ZodTypeAny = z.object({\n e: z.string().describe(\"RSA exponent (base64url-encoded)\").nullable().optional(),\n n: z.string().describe(\"RSA modulus (base64url-encoded)\").nullable().optional(),\n alg: z.string().describe(\"Key algorithm (e.g., 'RS256')\").nullable().optional(),\n kid: z.string().describe(\"Key ID\"),\n kty: z.string().describe(\"Key type (e.g., 'RSA')\"),\n use: z.string().describe(\"Public key use (e.g., 'sig')\").nullable().optional(),\n x5c: z.array(z.string()).describe(\"X.509 certificate chain\").nullable().optional(),\n x5t: z.string().describe(\"X.509 certificate SHA-1 thumbprint\").nullable().optional(),\n}).describe(\"JSON Web Key model as returned in the JWKS response.\");\nexport const NetsuiteOauth2GetJwksKeysOutput: z.ZodTypeAny = z.object({\n keys: z.array(NetsuiteOauth2GetJwksKeys_JwkKeySchema).describe(\"List of JSON Web Keys\"),\n}).describe(\"Response model containing the JSON Web Key Set.\");\n\nexport const netsuiteOauth2GetJwksKeys = action(\"NETSUITE_OAUTH2_GET_JWKS_KEYS\", {\n slug: \"netsuite-oauth2-get-jwks-keys\",\n name: \"Get OAuth2 JWKS Keys\",\n description: \"Tool to retrieve OAuth2 JWKS public keys. Use when validating token signatures.\",\n input: NetsuiteOauth2GetJwksKeysInput,\n output: NetsuiteOauth2GetJwksKeysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF;AACrK,MAAM,yCAAuD,EAAE,OAAO;CACpE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,QAAQ;CACjC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAKlE,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,uBAAuB,EACxF,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/run-suiteql-query.ts
|
|
4
|
+
const NetsuiteRunSuiteqlQueryInput = zod.z.object({
|
|
5
|
+
q: zod.z.string().describe("SuiteQL SELECT statement to execute."),
|
|
6
|
+
limit: zod.z.number().int().describe("Number of rows per page.").optional(),
|
|
7
|
+
offset: zod.z.number().int().describe("Zero-based index of first row; must be a multiple of `limit` if both provided.").optional()
|
|
8
|
+
}).describe("Parameters for executing a SuiteQL query.");
|
|
9
|
+
const NetsuiteRunSuiteqlQuery_LinkSchema = zod.z.object({
|
|
10
|
+
rel: zod.z.string().describe("Relation type of this link (e.g., 'next', 'prev')."),
|
|
11
|
+
href: zod.z.string().describe("URL for this pagination link.")
|
|
12
|
+
});
|
|
13
|
+
const NetsuiteRunSuiteqlQuery_RowSchema = zod.z.object({ links: zod.z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe("Links for this row.") }).passthrough().describe("Dynamic row returned by SuiteQL, includes links and extra columns.");
|
|
14
|
+
const NetsuiteRunSuiteqlQueryOutput = zod.z.object({
|
|
15
|
+
count: zod.z.number().int().describe("Number of rows in this page."),
|
|
16
|
+
items: zod.z.array(NetsuiteRunSuiteqlQuery_RowSchema).describe("Rows returned by the query."),
|
|
17
|
+
links: zod.z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe("Pagination/navigation links."),
|
|
18
|
+
offset: zod.z.number().int().describe("Offset used for this page."),
|
|
19
|
+
hasMore: zod.z.boolean().describe("Indicates if additional pages are available."),
|
|
20
|
+
totalResults: zod.z.number().int().describe("Total number of rows matching the query.")
|
|
21
|
+
}).describe("Response for a SuiteQL query execution.");
|
|
22
|
+
const netsuiteRunSuiteqlQuery = require_action.action("NETSUITE_RUN_SUITEQL_QUERY", {
|
|
23
|
+
slug: "netsuite-run-suiteql-query",
|
|
24
|
+
name: "Run SuiteQL Query",
|
|
25
|
+
description: "Tool to execute a SuiteQL query. Use when you need ad-hoc SQL queries against NetSuite data with server-side paging.",
|
|
26
|
+
input: NetsuiteRunSuiteqlQueryInput,
|
|
27
|
+
output: NetsuiteRunSuiteqlQueryOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.netsuiteRunSuiteqlQuery = netsuiteRunSuiteqlQuery;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=run-suiteql-query.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-suiteql-query.cjs","names":["z","action"],"sources":["../../src/actions/run-suiteql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteRunSuiteqlQueryInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"SuiteQL SELECT statement to execute.\"),\n limit: z.number().int().describe(\"Number of rows per page.\").optional(),\n offset: z.number().int().describe(\"Zero-based index of first row; must be a multiple of `limit` if both provided.\").optional(),\n}).describe(\"Parameters for executing a SuiteQL query.\");\nconst NetsuiteRunSuiteqlQuery_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Relation type of this link (e.g., 'next', 'prev').\"),\n href: z.string().describe(\"URL for this pagination link.\"),\n});\nconst NetsuiteRunSuiteqlQuery_RowSchema: z.ZodTypeAny = z.object({\n links: z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe(\"Links for this row.\"),\n}).passthrough().describe(\"Dynamic row returned by SuiteQL, includes links and extra columns.\");\nexport const NetsuiteRunSuiteqlQueryOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of rows in this page.\"),\n items: z.array(NetsuiteRunSuiteqlQuery_RowSchema).describe(\"Rows returned by the query.\"),\n links: z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe(\"Pagination/navigation links.\"),\n offset: z.number().int().describe(\"Offset used for this page.\"),\n hasMore: z.boolean().describe(\"Indicates if additional pages are available.\"),\n totalResults: z.number().int().describe(\"Total number of rows matching the query.\"),\n}).describe(\"Response for a SuiteQL query execution.\");\n\nexport const netsuiteRunSuiteqlQuery = action(\"NETSUITE_RUN_SUITEQL_QUERY\", {\n slug: \"netsuite-run-suiteql-query\",\n name: \"Run SuiteQL Query\",\n description: \"Tool to execute a SuiteQL query. Use when you need ad-hoc SQL queries against NetSuite data with server-side paging.\",\n input: NetsuiteRunSuiteqlQueryInput,\n output: NetsuiteRunSuiteqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC3D,CAAC;AACD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO,EAC/D,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,qBAAqB,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAC9F,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC/D,OAAOA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,6BAA6B;CACxF,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,8BAA8B;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACpF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,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/run-suiteql-query.d.ts
|
|
4
|
+
declare const NetsuiteRunSuiteqlQueryInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteRunSuiteqlQueryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteRunSuiteqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteRunSuiteqlQuery };
|
|
9
|
+
//# sourceMappingURL=run-suiteql-query.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-suiteql-query.d.cts","names":[],"sources":["../../src/actions/run-suiteql-query.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAIW;AAAA,cAQ3C,6BAAA,EAA+B,CAAA,CAAE,UAOQ;AAAA,cAEzC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-suiteql-query.d.ts
|
|
4
|
+
declare const NetsuiteRunSuiteqlQueryInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteRunSuiteqlQueryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteRunSuiteqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteRunSuiteqlQuery };
|
|
9
|
+
//# sourceMappingURL=run-suiteql-query.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-suiteql-query.d.mts","names":[],"sources":["../../src/actions/run-suiteql-query.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAIW;AAAA,cAQ3C,6BAAA,EAA+B,CAAA,CAAE,UAOQ;AAAA,cAEzC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/run-suiteql-query.ts
|
|
4
|
+
const NetsuiteRunSuiteqlQueryInput = z.object({
|
|
5
|
+
q: z.string().describe("SuiteQL SELECT statement to execute."),
|
|
6
|
+
limit: z.number().int().describe("Number of rows per page.").optional(),
|
|
7
|
+
offset: z.number().int().describe("Zero-based index of first row; must be a multiple of `limit` if both provided.").optional()
|
|
8
|
+
}).describe("Parameters for executing a SuiteQL query.");
|
|
9
|
+
const NetsuiteRunSuiteqlQuery_LinkSchema = z.object({
|
|
10
|
+
rel: z.string().describe("Relation type of this link (e.g., 'next', 'prev')."),
|
|
11
|
+
href: z.string().describe("URL for this pagination link.")
|
|
12
|
+
});
|
|
13
|
+
const NetsuiteRunSuiteqlQuery_RowSchema = z.object({ links: z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe("Links for this row.") }).passthrough().describe("Dynamic row returned by SuiteQL, includes links and extra columns.");
|
|
14
|
+
const netsuiteRunSuiteqlQuery = action("NETSUITE_RUN_SUITEQL_QUERY", {
|
|
15
|
+
slug: "netsuite-run-suiteql-query",
|
|
16
|
+
name: "Run SuiteQL Query",
|
|
17
|
+
description: "Tool to execute a SuiteQL query. Use when you need ad-hoc SQL queries against NetSuite data with server-side paging.",
|
|
18
|
+
input: NetsuiteRunSuiteqlQueryInput,
|
|
19
|
+
output: z.object({
|
|
20
|
+
count: z.number().int().describe("Number of rows in this page."),
|
|
21
|
+
items: z.array(NetsuiteRunSuiteqlQuery_RowSchema).describe("Rows returned by the query."),
|
|
22
|
+
links: z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe("Pagination/navigation links."),
|
|
23
|
+
offset: z.number().int().describe("Offset used for this page."),
|
|
24
|
+
hasMore: z.boolean().describe("Indicates if additional pages are available."),
|
|
25
|
+
totalResults: z.number().int().describe("Total number of rows matching the query.")
|
|
26
|
+
}).describe("Response for a SuiteQL query execution.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { netsuiteRunSuiteqlQuery };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=run-suiteql-query.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-suiteql-query.mjs","names":[],"sources":["../../src/actions/run-suiteql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteRunSuiteqlQueryInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"SuiteQL SELECT statement to execute.\"),\n limit: z.number().int().describe(\"Number of rows per page.\").optional(),\n offset: z.number().int().describe(\"Zero-based index of first row; must be a multiple of `limit` if both provided.\").optional(),\n}).describe(\"Parameters for executing a SuiteQL query.\");\nconst NetsuiteRunSuiteqlQuery_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Relation type of this link (e.g., 'next', 'prev').\"),\n href: z.string().describe(\"URL for this pagination link.\"),\n});\nconst NetsuiteRunSuiteqlQuery_RowSchema: z.ZodTypeAny = z.object({\n links: z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe(\"Links for this row.\"),\n}).passthrough().describe(\"Dynamic row returned by SuiteQL, includes links and extra columns.\");\nexport const NetsuiteRunSuiteqlQueryOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of rows in this page.\"),\n items: z.array(NetsuiteRunSuiteqlQuery_RowSchema).describe(\"Rows returned by the query.\"),\n links: z.array(NetsuiteRunSuiteqlQuery_LinkSchema).describe(\"Pagination/navigation links.\"),\n offset: z.number().int().describe(\"Offset used for this page.\"),\n hasMore: z.boolean().describe(\"Indicates if additional pages are available.\"),\n totalResults: z.number().int().describe(\"Total number of rows matching the query.\"),\n}).describe(\"Response for a SuiteQL query execution.\");\n\nexport const netsuiteRunSuiteqlQuery = action(\"NETSUITE_RUN_SUITEQL_QUERY\", {\n slug: \"netsuite-run-suiteql-query\",\n name: \"Run SuiteQL Query\",\n description: \"Tool to execute a SuiteQL query. Use when you need ad-hoc SQL queries against NetSuite data with server-side paging.\",\n input: NetsuiteRunSuiteqlQueryInput,\n output: NetsuiteRunSuiteqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,qCAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC3D,CAAC;AACD,MAAM,oCAAkD,EAAE,OAAO,EAC/D,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,qBAAqB,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAU9F,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyD,EAAE,OAAO;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EAC/D,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,6BAA6B;EACxF,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,8BAA8B;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;EAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACpF,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/transform-record.ts
|
|
4
|
+
const NetsuiteTransformRecordInput = zod.z.object({
|
|
5
|
+
Prefer: zod.z.string().describe("Use 'respond-async' to run the transform asynchronously.").optional(),
|
|
6
|
+
replace: zod.z.string().describe("Comma-separated sublist names to fully replace with those provided in record_body. The sublists must be present in record_body or the request will fail. Common sublists: 'item', 'apply'. Example: 'item' or 'apply,item'.").optional(),
|
|
7
|
+
record_id: zod.z.number().int().describe("Internal ID of the source record instance to transform. Must be a valid, existing record in NetSuite."),
|
|
8
|
+
record_body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional JSON object with field values to set on the transformed record").optional(),
|
|
9
|
+
source_record_type: zod.z.string().describe("Source record type to transform. Common types: salesOrder, purchaseOrder, invoice, customer. Use camelCase format."),
|
|
10
|
+
target_record_type: zod.z.string().describe("Target record type to create from source. Common transformations: salesOrder→invoice, salesOrder→itemFulfillment, purchaseOrder→itemReceipt, purchaseOrder→vendorBill. Use camelCase format."),
|
|
11
|
+
"X-NetSuite-Idempotency-Key": zod.z.string().describe("UUID to ensure idempotent async requests; ignored for synchronous calls.").optional(),
|
|
12
|
+
"X-NetSuite-PropertyNameValidation": zod.z.string().describe("Controls strictness for property name validation (ignore|warning|error).").optional(),
|
|
13
|
+
"X-NetSuite-PropertyValueValidation": zod.z.string().describe("Controls strictness for property value validation (ignore|warning|error).").optional()
|
|
14
|
+
});
|
|
15
|
+
const NetsuiteTransformRecordOutput = zod.z.object({
|
|
16
|
+
location: zod.z.string().describe("Location header URL for async job status (only for async requests)").nullable().optional(),
|
|
17
|
+
preference_applied: zod.z.string().describe("Preference-Applied header value (only for async requests)").nullable().optional()
|
|
18
|
+
}).describe("Response for TransformRecord action.\nReturns empty for synchronous transforms (204 No Content).\nReturns location and preference_applied for async transforms (202 Accepted).");
|
|
19
|
+
const netsuiteTransformRecord = require_action.action("NETSUITE_TRANSFORM_RECORD", {
|
|
20
|
+
slug: "netsuite-transform-record",
|
|
21
|
+
name: "Transform Record",
|
|
22
|
+
description: "Transform an existing NetSuite record into another record type (e.g., sales order to invoice, purchase order to item receipt). Creates a new target record populated with data from the source record. Supports common business workflows like: - Converting sales orders to invoices or item fulfillments - Converting purchase orders to item receipts or vendor bills - Converting invoices to credit memos Optionally override fields on the transformed record via record_body parameter.",
|
|
23
|
+
input: NetsuiteTransformRecordInput,
|
|
24
|
+
output: NetsuiteTransformRecordOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.netsuiteTransformRecord = netsuiteTransformRecord;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=transform-record.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-record.cjs","names":["z","action"],"sources":["../../src/actions/transform-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteTransformRecordInput: z.ZodTypeAny = z.object({\n Prefer: z.string().describe(\"Use 'respond-async' to run the transform asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided in record_body. The sublists must be present in record_body or the request will fail. Common sublists: 'item', 'apply'. Example: 'item' or 'apply,item'.\").optional(),\n record_id: z.number().int().describe(\"Internal ID of the source record instance to transform. Must be a valid, existing record in NetSuite.\"),\n record_body: z.record(z.string(), z.unknown()).describe(\"Optional JSON object with field values to set on the transformed record\").optional(),\n source_record_type: z.string().describe(\"Source record type to transform. Common types: salesOrder, purchaseOrder, invoice, customer. Use camelCase format.\"),\n target_record_type: z.string().describe(\"Target record type to create from source. Common transformations: salesOrder→invoice, salesOrder→itemFulfillment, purchaseOrder→itemReceipt, purchaseOrder→vendorBill. Use camelCase format.\"),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.string().describe(\"Controls strictness for property name validation (ignore|warning|error).\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.string().describe(\"Controls strictness for property value validation (ignore|warning|error).\").optional(),\n});\nexport const NetsuiteTransformRecordOutput: z.ZodTypeAny = z.object({\n location: z.string().describe(\"Location header URL for async job status (only for async requests)\").nullable().optional(),\n preference_applied: z.string().describe(\"Preference-Applied header value (only for async requests)\").nullable().optional(),\n}).describe(\"Response for TransformRecord action.\\nReturns empty for synchronous transforms (204 No Content).\\nReturns location and preference_applied for async transforms (202 Accepted).\");\n\nexport const netsuiteTransformRecord = action(\"NETSUITE_TRANSFORM_RECORD\", {\n slug: \"netsuite-transform-record\",\n name: \"Transform Record\",\n description: \"Transform an existing NetSuite record into another record type (e.g., sales order to invoice, purchase order to item receipt). Creates a new target record populated with data from the source record. Supports common business workflows like: - Converting sales orders to invoices or item fulfillments - Converting purchase orders to item receipts or vendor bills - Converting invoices to credit memos Optionally override fields on the transformed record via record_body parameter.\",\n input: NetsuiteTransformRecordInput,\n output: NetsuiteTransformRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS;CACrQ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG;CAC5I,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC5I,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAC5J,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L;CACtO,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACvI,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9I,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AAClJ,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,gLAAgL;AAE5L,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,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/transform-record.d.ts
|
|
4
|
+
declare const NetsuiteTransformRecordInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteTransformRecordOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteTransformRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteTransformRecord };
|
|
9
|
+
//# sourceMappingURL=transform-record.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-record.d.cts","names":[],"sources":["../../src/actions/transform-record.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAU3C;AAAA,cACW,6BAAA,EAA+B,CAAA,CAAE,UAG+I;AAAA,cAEhL,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/transform-record.d.ts
|
|
4
|
+
declare const NetsuiteTransformRecordInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteTransformRecordOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteTransformRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteTransformRecord };
|
|
9
|
+
//# sourceMappingURL=transform-record.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-record.d.mts","names":[],"sources":["../../src/actions/transform-record.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAU3C;AAAA,cACW,6BAAA,EAA+B,CAAA,CAAE,UAG+I;AAAA,cAEhL,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const netsuiteTransformRecord = action("NETSUITE_TRANSFORM_RECORD", {
|
|
4
|
+
slug: "netsuite-transform-record",
|
|
5
|
+
name: "Transform Record",
|
|
6
|
+
description: "Transform an existing NetSuite record into another record type (e.g., sales order to invoice, purchase order to item receipt). Creates a new target record populated with data from the source record. Supports common business workflows like: - Converting sales orders to invoices or item fulfillments - Converting purchase orders to item receipts or vendor bills - Converting invoices to credit memos Optionally override fields on the transformed record via record_body parameter.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
Prefer: z.string().describe("Use 'respond-async' to run the transform asynchronously.").optional(),
|
|
9
|
+
replace: z.string().describe("Comma-separated sublist names to fully replace with those provided in record_body. The sublists must be present in record_body or the request will fail. Common sublists: 'item', 'apply'. Example: 'item' or 'apply,item'.").optional(),
|
|
10
|
+
record_id: z.number().int().describe("Internal ID of the source record instance to transform. Must be a valid, existing record in NetSuite."),
|
|
11
|
+
record_body: z.record(z.string(), z.unknown()).describe("Optional JSON object with field values to set on the transformed record").optional(),
|
|
12
|
+
source_record_type: z.string().describe("Source record type to transform. Common types: salesOrder, purchaseOrder, invoice, customer. Use camelCase format."),
|
|
13
|
+
target_record_type: z.string().describe("Target record type to create from source. Common transformations: salesOrder→invoice, salesOrder→itemFulfillment, purchaseOrder→itemReceipt, purchaseOrder→vendorBill. Use camelCase format."),
|
|
14
|
+
"X-NetSuite-Idempotency-Key": z.string().describe("UUID to ensure idempotent async requests; ignored for synchronous calls.").optional(),
|
|
15
|
+
"X-NetSuite-PropertyNameValidation": z.string().describe("Controls strictness for property name validation (ignore|warning|error).").optional(),
|
|
16
|
+
"X-NetSuite-PropertyValueValidation": z.string().describe("Controls strictness for property value validation (ignore|warning|error).").optional()
|
|
17
|
+
}),
|
|
18
|
+
output: z.object({
|
|
19
|
+
location: z.string().describe("Location header URL for async job status (only for async requests)").nullable().optional(),
|
|
20
|
+
preference_applied: z.string().describe("Preference-Applied header value (only for async requests)").nullable().optional()
|
|
21
|
+
}).describe("Response for TransformRecord action.\nReturns empty for synchronous transforms (204 No Content).\nReturns location and preference_applied for async transforms (202 Accepted).")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { netsuiteTransformRecord };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=transform-record.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-record.mjs","names":[],"sources":["../../src/actions/transform-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteTransformRecordInput: z.ZodTypeAny = z.object({\n Prefer: z.string().describe(\"Use 'respond-async' to run the transform asynchronously.\").optional(),\n replace: z.string().describe(\"Comma-separated sublist names to fully replace with those provided in record_body. The sublists must be present in record_body or the request will fail. Common sublists: 'item', 'apply'. Example: 'item' or 'apply,item'.\").optional(),\n record_id: z.number().int().describe(\"Internal ID of the source record instance to transform. Must be a valid, existing record in NetSuite.\"),\n record_body: z.record(z.string(), z.unknown()).describe(\"Optional JSON object with field values to set on the transformed record\").optional(),\n source_record_type: z.string().describe(\"Source record type to transform. Common types: salesOrder, purchaseOrder, invoice, customer. Use camelCase format.\"),\n target_record_type: z.string().describe(\"Target record type to create from source. Common transformations: salesOrder→invoice, salesOrder→itemFulfillment, purchaseOrder→itemReceipt, purchaseOrder→vendorBill. Use camelCase format.\"),\n \"X-NetSuite-Idempotency-Key\": z.string().describe(\"UUID to ensure idempotent async requests; ignored for synchronous calls.\").optional(),\n \"X-NetSuite-PropertyNameValidation\": z.string().describe(\"Controls strictness for property name validation (ignore|warning|error).\").optional(),\n \"X-NetSuite-PropertyValueValidation\": z.string().describe(\"Controls strictness for property value validation (ignore|warning|error).\").optional(),\n});\nexport const NetsuiteTransformRecordOutput: z.ZodTypeAny = z.object({\n location: z.string().describe(\"Location header URL for async job status (only for async requests)\").nullable().optional(),\n preference_applied: z.string().describe(\"Preference-Applied header value (only for async requests)\").nullable().optional(),\n}).describe(\"Response for TransformRecord action.\\nReturns empty for synchronous transforms (204 No Content).\\nReturns location and preference_applied for async transforms (202 Accepted).\");\n\nexport const netsuiteTransformRecord = action(\"NETSUITE_TRANSFORM_RECORD\", {\n slug: \"netsuite-transform-record\",\n name: \"Transform Record\",\n description: \"Transform an existing NetSuite record into another record type (e.g., sales order to invoice, purchase order to item receipt). Creates a new target record populated with data from the source record. Supports common business workflows like: - Converting sales orders to invoices or item fulfillments - Converting purchase orders to item receipts or vendor bills - Converting invoices to credit memos Optionally override fields on the transformed record via record_body parameter.\",\n input: NetsuiteTransformRecordInput,\n output: NetsuiteTransformRecordOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBwD,EAAE,OAAO;EACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS;EACrQ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG;EAC5I,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAC5I,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EAC5J,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L;EACtO,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACvI,qCAAqC,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC9I,sCAAsC,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAClJ,CAUS;CACP,QAVyD,EAAE,OAAO;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,gLAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-customer-payment.ts
|
|
4
|
+
const NetsuiteUpdateCustomerPaymentInput = zod.z.object({
|
|
5
|
+
id: zod.z.number().int().describe("Internal identifier of the customer payment record to update."),
|
|
6
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Customer payment record JSON object containing fields to update; omitted fields remain unchanged. Common updatable fields include: memo (string), toBeEmailed (boolean), tranDate (date string), account (object with id), and other payment metadata. Example: {\"memo\": \"Payment received\", \"toBeEmailed\": true}"),
|
|
7
|
+
prefer: zod.z.string().describe("Use 'respond-async' to request asynchronous processing.").optional(),
|
|
8
|
+
idempotency_key: zod.z.string().describe("RFC4122 UUID string to use as idempotency key for async requests.").optional(),
|
|
9
|
+
property_name_validation: zod.z.enum([
|
|
10
|
+
"Error",
|
|
11
|
+
"Warning",
|
|
12
|
+
"Ignore"
|
|
13
|
+
]).describe("Strictness level for property name validation: Error, Warning, or Ignore.").optional(),
|
|
14
|
+
property_value_validation: zod.z.enum([
|
|
15
|
+
"Error",
|
|
16
|
+
"Warning",
|
|
17
|
+
"Ignore"
|
|
18
|
+
]).describe("Strictness level for property value validation: Error, Warning, or Ignore.").optional()
|
|
19
|
+
});
|
|
20
|
+
const NetsuiteUpdateCustomerPaymentOutput = zod.z.object({
|
|
21
|
+
location: zod.z.string().describe("URL of the updated customer payment record or async job status.").nullable().optional(),
|
|
22
|
+
preference_applied: zod.z.string().describe("Value of the 'Preference-Applied' header, indicates async processing.").nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
const netsuiteUpdateCustomerPayment = require_action.action("NETSUITE_UPDATE_CUSTOMER_PAYMENT", {
|
|
25
|
+
slug: "netsuite-update-customer-payment",
|
|
26
|
+
name: "Update Customer Payment",
|
|
27
|
+
description: "Tool to update an existing customer payment by ID. Use when you need to modify fields of a customer payment record. Updates only the specified fields; all other fields remain unchanged. Common use cases include updating memo notes, email preferences, or transaction metadata.",
|
|
28
|
+
input: NetsuiteUpdateCustomerPaymentInput,
|
|
29
|
+
output: NetsuiteUpdateCustomerPaymentOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.netsuiteUpdateCustomerPayment = netsuiteUpdateCustomerPayment;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=update-customer-payment.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-customer-payment.cjs","names":["z","action"],"sources":["../../src/actions/update-customer-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NetsuiteUpdateCustomerPaymentInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Internal identifier of the customer payment record to update.\"),\n data: z.record(z.string(), z.unknown()).describe(\"Customer payment record JSON object containing fields to update; omitted fields remain unchanged. Common updatable fields include: memo (string), toBeEmailed (boolean), tranDate (date string), account (object with id), and other payment metadata. Example: {\\\"memo\\\": \\\"Payment received\\\", \\\"toBeEmailed\\\": true}\"),\n prefer: z.string().describe(\"Use 'respond-async' to request asynchronous processing.\").optional(),\n idempotency_key: z.string().describe(\"RFC4122 UUID string to use as idempotency key for async requests.\").optional(),\n property_name_validation: z.enum([\"Error\", \"Warning\", \"Ignore\"]).describe(\"Strictness level for property name validation: Error, Warning, or Ignore.\").optional(),\n property_value_validation: z.enum([\"Error\", \"Warning\", \"Ignore\"]).describe(\"Strictness level for property value validation: Error, Warning, or Ignore.\").optional(),\n});\nexport const NetsuiteUpdateCustomerPaymentOutput: z.ZodTypeAny = z.object({\n location: z.string().describe(\"URL of the updated customer payment record or async job status.\").nullable().optional(),\n preference_applied: z.string().describe(\"Value of the 'Preference-Applied' header, indicates async processing.\").nullable().optional(),\n});\n\nexport const netsuiteUpdateCustomerPayment = action(\"NETSUITE_UPDATE_CUSTOMER_PAYMENT\", {\n slug: \"netsuite-update-customer-payment\",\n name: \"Update Customer Payment\",\n description: \"Tool to update an existing customer payment by ID. Use when you need to modify fields of a customer payment record. Updates only the specified fields; all other fields remain unchanged. Common use cases include updating memo notes, email preferences, or transaction metadata.\",\n input: NetsuiteUpdateCustomerPaymentInput,\n output: NetsuiteUpdateCustomerPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CAC7F,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yTAAyT;CAC1W,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACnH,0BAA0BA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChK,2BAA2BA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACpK,CAAC;AACD,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,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC;AAED,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/update-customer-payment.d.ts
|
|
4
|
+
declare const NetsuiteUpdateCustomerPaymentInput: z.ZodTypeAny;
|
|
5
|
+
declare const NetsuiteUpdateCustomerPaymentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const netsuiteUpdateCustomerPayment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { netsuiteUpdateCustomerPayment };
|
|
9
|
+
//# sourceMappingURL=update-customer-payment.d.cts.map
|