@@ -111,6 +111,8 @@ const BATCH_OPERATIONS = [
111111 'netsuite_batch_delete_records' ,
112112]
113113
114+ const LOCATION_OPERATIONS = [ 'netsuite_create_record' , ...BATCH_OPERATIONS ]
115+
114116const BATCH_WRITE_OPERATIONS = [
115117 'netsuite_batch_create_records' ,
116118 'netsuite_batch_update_records' ,
@@ -193,8 +195,8 @@ export const NetSuiteBlock: BlockConfig<NetSuiteResponse> = {
193195 ] ,
194196 netsuite_get_subresource : [
195197 { text : 'Read subresource' , field : 'subresourcePath' , core : true } ,
196- { text : 'from' , field : 'recordType' } ,
197- { text : 'record' , field : 'recordId' } ,
198+ { text : 'from' , field : 'recordType' , core : true } ,
199+ { text : 'record' , field : 'recordId' , core : true } ,
198200 ] ,
199201 netsuite_get_record_form : [
200202 { text : 'Get the form for' , field : 'recordType' , core : true } ,
@@ -206,7 +208,7 @@ export const NetSuiteBlock: BlockConfig<NetSuiteResponse> = {
206208 ] ,
207209 netsuite_get_select_options : [
208210 { text : 'Get select options for' , field : 'fields' , core : true } ,
209- { text : 'on' , field : 'recordType' } ,
211+ { text : 'on' , field : 'recordType' , core : true } ,
210212 { text : 'record' , field : 'recordId' } ,
211213 { text : ', matching' , field : 'q' } ,
212214 { text : ', using' , field : 'body' } ,
@@ -216,27 +218,27 @@ export const NetSuiteBlock: BlockConfig<NetSuiteResponse> = {
216218 netsuite_attach_record : [
217219 { text : 'Attach' , field : 'relatedType' , core : true } ,
218220 { text : 'ID' , field : 'relatedId' , core : true } ,
219- { text : 'to' , field : 'recordType' } ,
220- { text : 'record' , field : 'recordId' } ,
221+ { text : 'to' , field : 'recordType' , core : true } ,
222+ { text : 'record' , field : 'recordId' , core : true } ,
221223 { text : ', with role ID' , field : 'roleId' } ,
222224 { text : ', or role external ID' , field : 'roleExternalId' } ,
223225 ] ,
224226 netsuite_detach_record : [
225227 { text : 'Detach' , field : 'relatedType' , core : true } ,
226228 { text : 'ID' , field : 'relatedId' , core : true } ,
227- { text : 'from' , field : 'recordType' } ,
228- { text : 'record' , field : 'recordId' } ,
229+ { text : 'from' , field : 'recordType' , core : true } ,
230+ { text : 'record' , field : 'recordId' , core : true } ,
229231 ] ,
230232 netsuite_execute_action : [
231233 { text : 'Run action' , field : 'action' , core : true } ,
232- { text : 'on' , field : 'recordType' } ,
233- { text : 'record' , field : 'recordId' } ,
234+ { text : 'on' , field : 'recordType' , core : true } ,
235+ { text : 'record' , field : 'recordId' , core : true } ,
234236 { text : ', with' , field : 'body' } ,
235237 ] ,
236238 netsuite_transform_record : [
237239 { text : 'Transform' , field : 'recordType' , core : true } ,
238240 { text : 'record' , field : 'recordId' , core : true } ,
239- { text : 'into' , field : 'targetRecordType' } ,
241+ { text : 'into' , field : 'targetRecordType' , core : true } ,
240242 { text : ', with' , field : 'body' } ,
241243 ] ,
242244 netsuite_batch_get_records : [
@@ -296,8 +298,8 @@ export const NetSuiteBlock: BlockConfig<NetSuiteResponse> = {
296298 { text : 'Get result from async job' , field : 'jobId' , core : true } ,
297299 { text : 'for task' , field : 'resultTaskId' , core : true } ,
298300 ] ,
299- netsuite_get_server_time : [ 'Get NetSuite server time' ] ,
300- netsuite_get_governance_limits : [ 'Get NetSuite governance limits' ] ,
301+ netsuite_get_server_time : [ 'Get server time' ] ,
302+ netsuite_get_governance_limits : [ 'Get governance limits' ] ,
301303 } ,
302304 } ,
303305 } ,
@@ -828,8 +830,16 @@ Return ONLY the comma-separated sublist IDs - no explanations, no extra text.`,
828830 description :
829831 'NetSuite payload: account-specific record fields, collection items and paging fields, metadata, or async task data' ,
830832 } ,
831- location : { type : 'string' , description : 'Created resource or async job location' } ,
832- jobId : { type : 'string' , description : 'Async job ID parsed from the Location header' } ,
833+ location : {
834+ type : 'string' ,
835+ description : 'Created resource or async job location' ,
836+ condition : { field : 'operation' , value : LOCATION_OPERATIONS } ,
837+ } ,
838+ jobId : {
839+ type : 'string' ,
840+ description : 'Async job ID parsed from the Location header' ,
841+ condition : { field : 'operation' , value : BATCH_OPERATIONS } ,
842+ } ,
833843 } ,
834844}
835845
0 commit comments