feat(netsuite): add Oracle NetSuite integration - #6476
feat(netsuite): add Oracle NetSuite integration#6476BillLeoutsakosvl346 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview The block uses inline OAuth 2.0 client-credentials fields (account ID, client ID, certificate ID, masked PEM private key), operation-specific sub-blocks with JSON for account-dynamic record bodies, paging/batch limits, and seven templates plus five agent skills. Docs cover M2M setup; NetSuiteIcon and registry/catalog/icon mappings register the integration. Tool execution (shared Reviewed by Cursor Bugbot for commit cdd5240. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR adds an Oracle NetSuite integration with 27 SuiteTalk operations and OAuth 2.0 client-credentials authentication.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/tools/netsuite/utils.ts | Implements SuiteTalk request handling and OAuth token caching; the current cache key correctly separates distinct private keys. |
| apps/sim/tools/netsuite/utils.test.ts | Covers credential validation, token reuse, private-key cache isolation, eviction, retries, and response handling. |
| apps/sim/blocks/blocks/netsuite.ts | Defines the 27-operation NetSuite block, credential fields, conditional inputs, parameter coercion, templates, and skills. |
| apps/sim/blocks/blocks/netsuite.test.ts | Validates the block contract and now uses the repository-standard absolute import alias. |
| apps/sim/tools/netsuite/index.ts | Exposes the complete NetSuite tool collection through the tool registry. |
| apps/docs/content/docs/en/integrations/netsuite.mdx | Documents NetSuite setup, OAuth client credentials, supported operations, pagination, and asynchronous batch usage. |
Sequence Diagram
sequenceDiagram
participant Workflow
participant Tool as NetSuite Tool
participant Cache as Token Cache
participant OAuth as NetSuite OAuth
participant API as SuiteTalk API
Workflow->>Tool: Execute operation with credentials
Tool->>Tool: Fingerprint trimmed private key
Tool->>Cache: Lookup account/client/certificate/key tuple
alt Valid cached token
Cache-->>Tool: Access token
else Cache miss
Tool->>OAuth: Signed client-credentials assertion
OAuth-->>Tool: Access token
Tool->>Cache: Store bounded token entry
end
Tool->>API: SuiteTalk request
API-->>Tool: Operation response
Tool-->>Workflow: Status, data, location, job ID
Reviews (2): Last reviewed commit: "fix(netsuite): isolate cached credential..." | Re-trigger Greptile
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit cdd5240. Configure here.
Summary
Type of Change
Testing
Checklist