@celigo/api-specs 0.2.9 → 0.2.10

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/dist/export.yml CHANGED
@@ -10507,43 +10507,36 @@ components:
10507
10507
  criteria:
10508
10508
  type: array
10509
10509
  description: |-
10510
- Filter conditions that limit which records the RESTlet returns (live: an array of
10511
- field/operator/value conditions). Each condition pairs a field with an operator and
10512
- one or two comparison values.
10510
+ Filter conditions added on top of the saved search (the UI's "Additional search
10511
+ criteria"). Each condition pairs a search column with an operator and one or two
10512
+ comparison values, and the conditions are combined with AND — every one must match.
10513
10513
  x-celigo-ai-guidance:
10514
10514
  - |-
10515
- criteria:
10516
- > Defines the set of conditions or filters used to specify which records should
10517
- be retrieved or affected by the NetSuite RESTlet operation.
10518
- This property enables clients to precisely narrow down the dataset by applying
10519
- one or more criteria based on record fields,
10520
- comparison operators, and values,
10521
- supporting complex logical combinations to tailor the query results.
10515
+ A flat list: each entry becomes one `search.createFilter({ name, join, operator,
10516
+ values, formula })` call and NetSuite ANDs the resulting filters. There is no
10517
+ logical-combinator or grouping property (`join` is NetSuite's related-record
10518
+ join, e.g. `customer`, not an AND/OR operator) — a group object such as
10519
+ `{"operator": "OR", "criteria": [...]}` is rejected with a 422 (`OR` is not a
10520
+ valid enum value for path `operator`).
10521
+ - |-
10522
+ OR or grouped logic belongs in ONE formula condition: `{"field": "formulanumeric",
10523
+ "operator": "equalto", "searchValue": 1, "formula": "CASE WHEN {tranid} =
10524
+ '{{poNumber}}' OR ({shipzip} = '{{zip}}' AND {shipaddress1} = '{{address1}}')
10525
+ THEN 1 ELSE 0 END"}`. The formula is a NetSuite (Oracle SQL) expression over
10526
+ `{searchColumn}` references and can carry Handlebars values from the incoming
10527
+ record. The alternative is a second lookup step filtered to run only when this
10528
+ one returned no record. Do not describe OR between rows as configurable.
10522
10529
  - |-
10523
- ## FIELD BEHAVIOR:
10524
- - Accepts a structured object or an array representing one or multiple filtering conditions.
10525
- - Supports logical operators such as AND, OR, and nested groupings to combine multiple criteria flexibly.
10526
- - Each criterion typically includes a field name, an operator (e.g., equals, contains, greaterThan), and a value or set of values.
10527
- - Enables filtering on various data types including strings, numbers, dates, and booleans.
10528
- - Used to limit the scope of data returned or manipulated by the RESTlet to only those records that meet the specified conditions.
10529
- - When omitted or empty, the RESTlet may return all records or apply default filtering behavior as defined by the implementation.
10530
- - |-
10531
- ## IMPLEMENTATION GUIDANCE:
10532
- - Validate the criteria structure rigorously to ensure it conforms to the expected schema before processing.
10533
- - Support nested criteria groups to allow complex and hierarchical filtering logic.
10534
- - Map criteria fields and operators accurately to corresponding NetSuite record fields and search operators, considering data types and operator compatibility.
10535
- - Handle empty or undefined criteria gracefully by returning all records or applying sensible default filters.
10536
- - Sanitize all input values to prevent injection attacks, malformed queries, or unexpected behavior.
10537
- - Provide clear error messages when criteria are invalid or unsupported.
10538
- - Optimize query performance by translating criteria into efficient NetSuite search queries.
10539
- - |-
10540
- ## EXAMPLES:
10541
- - A single criterion filtering records where status equals "Open":
10542
- `{ "field": "status", "operator": "equals", "value": "Open" }`
10543
- - Multiple criteria combined with AND logic:
10544
- `[{"field": "status", "operator": "equals", "value": "Open"}, {"field": "priority", "operator": "greaterThan", "value": 2}]`
10545
- - Nested criteria combining OR and AND:
10546
- `{ "operator": "OR", "criteria": [ {"field": "status", "operator": "equals", "value": "Open"}, { "operator": "AND", "criteria": [ {"field": "priority", "operator": "greaterThan", "value":
10530
+ ## EXAMPLE
10531
+ ```json
10532
+ [
10533
+ {"field": "type", "operator": "anyof", "searchValue": ["PurchOrd"]},
10534
+ {"field": "mainline", "operator": "is", "searchValue": "F"},
10535
+ {"field": "tranid", "operator": "is", "searchValue": "{{poNumber}}"}
10536
+ ]
10537
+ ```
10538
+ `field` must be a search-column id for the record type (the SEARCH COLUMNS
10539
+ metadata block), not a body-field name — e.g. `shipaddress1`, not `shipaddr1`.
10547
10540
  items:
10548
10541
  type: object
10549
10542
  properties:
@@ -10560,96 +10553,40 @@ components:
10560
10553
  operator:
10561
10554
  type: string
10562
10555
  description: |-
10563
- Comparison operator applied between the field and the search value, using
10564
- NetSuite's search operator names (e.g. equals, contains, greaterThan).
10556
+ Comparison operator applied between the column and the search value, as one of
10557
+ NetSuite's lowercase search operator names (e.g. is, anyof, contains, equalto,
10558
+ greaterthan, after). Which operators are valid depends on the column's data type.
10565
10559
  examples:
10566
- - operator
10560
+ - is
10561
+ - anyof
10562
+ - equalto
10567
10563
  x-celigo-ai-guidance:
10568
10564
  - |-
10569
- operator:
10570
- > Specifies the comparison operator used to evaluate the criteria in a NetSuite RESTlet request.
10571
- This operator determines how the field value is compared against the specified
10572
- criteria value(s) to filter or query records.
10565
+ The server validates the value against NetSuite's operator list and rejects
10566
+ anything else with a 422 enum error — including logical words such as `OR`;
10567
+ conditions are never joined through this property.
10573
10568
  - |-
10574
- ## FIELD BEHAVIOR:
10575
- - Defines the type of comparison between a field and a value (e.g., equality, inequality, greater than).
10576
- - Influences the logic of the criteria evaluation in RESTlet queries.
10577
- - Supports various operators such as equals, not equals, greater than, less than, contains, etc.
10578
- - |-
10579
- ## IMPLEMENTATION GUIDANCE:
10580
- - Use valid NetSuite-supported operators to ensure correct query behavior.
10581
- - Match the operator type with the data type of the field being compared (e.g., use numeric operators for numeric fields).
10582
- - Combine multiple criteria with appropriate logical operators if needed.
10583
- - Validate operator values to prevent errors in RESTlet execution.
10584
- - |-
10585
- ## EXAMPLES:
10586
- - "operator": "is" (checks if the field value is equal to the specified value)
10587
- - "operator": "isnot" (checks if the field value is not equal to the specified value)
10588
- - "operator": "greaterthan" (checks if the field value is greater than the specified value)
10589
- - "operator": "contains" (checks if the field value contains the specified substring)
10590
- - |-
10591
- ## IMPORTANT NOTES:
10592
- - The operator must be compatible with the field type and the value provided.
10593
- - Incorrect operator usage can lead to unexpected query results or errors.
10594
- - Operators are case-sensitive and should match NetSuite's expected operator strings.
10595
- - |-
10596
- ## DEPENDENCY CHAIN:
10597
- - Depends on the field specified in the criteria to determine valid operators.
10598
- - Works in conjunction with the criteria value(s) to form a complete condition.
10599
- - May be combined with logical operators when multiple criteria are used.
10600
- - |-
10601
- ## TECHNICAL DETAILS:
10602
- - Typically represented as a string value in the RESTlet criteria JSON object.
10603
- - Supported operators align with NetSuite's SuiteScript search operators.
10604
- - Must conform to the list of operators recognized by the NetSuite RESTlet API.
10569
+ Common values by column type: text `is` / `isnot` / `contains` / `startswith`
10570
+ / `isempty` / `isnotempty`; list or select `anyof` / `noneof` (with an array
10571
+ `searchValue`); number `equalto` / `greaterthan` / `lessthan` / `between`;
10572
+ date `on` / `after` / `before` / `within`. Checkbox columns use `is` with
10573
+ `T` or `F`.
10605
10574
  searchValue:
10606
- type: string
10607
- description: Value the criteria field is compared against when filtering records.
10575
+ description: |-
10576
+ Value the column is compared against — a string, or an array of values for
10577
+ `anyof`-style operators. On lookup steps it may be a Handlebars expression
10578
+ rendered from the incoming record (for example `{{poNumber}}`).
10608
10579
  examples:
10609
- - Acme Corporation
10610
- - '2024-01-01'
10611
- - Pending
10580
+ - '{{poNumber}}'
10581
+ - F
10582
+ - - PurchOrd
10612
10583
  x-celigo-ai-guidance:
10613
10584
  - |-
10614
- searchValue:
10615
- The value used as the search criterion to filter results in the NetSuite RESTlet API.
10616
- This value is matched against the specified search field to retrieve relevant
10617
- records based on the search parameters provided.
10618
- - |-
10619
- ## FIELD BEHAVIOR:
10620
- - Acts as the primary input for filtering search results.
10621
- - Supports various data types depending on the search field (e.g., string, number, date).
10622
- - Used in conjunction with other search criteria to refine query results.
10623
- - Can be a partial or full match depending on the search configuration.
10624
- - |-
10625
- ## IMPLEMENTATION GUIDANCE:
10626
- - Ensure the value type matches the expected type of the search field.
10627
- - Validate the input to prevent injection attacks or malformed queries.
10628
- - Use appropriate encoding if the value contains special characters.
10629
- - Combine with logical operators or additional criteria for complex searches.
10630
- - |-
10631
- ## EXAMPLES:
10632
- - "Acme Corporation" for searching customer names.
10633
- - 1001 for searching by internal record ID.
10634
- - "2024-01-01" for searching records created on or after a specific date.
10635
- - "Pending" for filtering records by status.
10636
- - |-
10637
- ## IMPORTANT NOTES:
10638
- - The effectiveness of the search depends on the accuracy and format of the searchValue.
10639
- - Case sensitivity may vary based on the underlying NetSuite configuration.
10640
- - Large or complex search values may impact performance.
10641
- - Null or empty values may result in no filtering or return all records.
10642
- - |-
10643
- ## DEPENDENCY CHAIN:
10644
- - Depends on the searchField property to determine which field the searchValue applies to.
10645
- - Works alongside searchOperator to define how the searchValue is compared.
10646
- - Influences the results returned by the RESTlet endpoint.
10647
- - |-
10648
- ## TECHNICAL DETAILS:
10649
- - Typically passed as a string in the API request payload.
10650
- - May require serialization or formatting based on the API specification.
10651
- - Integrated into the NetSuite search query logic on the server side.
10652
- - Subject to NetSuite's search limitations and indexing capabilities.
10585
+ A Handlebars path the incoming record does not carry fails the render with
10586
+ `handlebars_template_parse_error` ("Failed to generate criteria.N.searchValue
10587
+ from template"). A standalone preview of a lookup that uses `{{...}}` here
10588
+ fails the same way — outside a flow run there is no record to render from;
10589
+ preview with a literal value or through a flow test run instead.
10653
10590
  searchValue2:
10654
10591
  type: string
10655
10592
  description: |-
@@ -10701,50 +10638,23 @@ components:
10701
10638
  NetSuite formula expression used as the filter condition, for criteria that
10702
10639
  standard field-operator-value comparisons can't express.
10703
10640
  examples:
10704
- - CASE WHEN {status} =
10705
- - TO_DATE({createddate}) >= TO_DATE(
10706
- - NVL({amount}, 0) > 1000
10641
+ - CASE WHEN {quantity} > 0 THEN 1 ELSE 0 END
10642
+ - NVL({amount}, 0)
10643
+ - TO_DATE({trandate})
10707
10644
  x-celigo-ai-guidance:
10708
10645
  - |-
10709
- formula:
10710
- > A string representing a custom formula used to define criteria for filtering
10711
- or querying data within the NetSuite RESTlet API.
10712
- This formula allows users to specify complex conditions using NetSuite's formula syntax,
10713
- enabling advanced and flexible data retrieval.
10714
- - |-
10715
- ## FIELD BEHAVIOR:
10716
- - Accepts a formula expression as a string that defines custom filtering logic.
10717
- - Used to create dynamic and complex criteria beyond standard field-value comparisons.
10718
- - Evaluated by the NetSuite backend to filter records according to the specified logic.
10719
- - Can incorporate NetSuite formula functions, operators, and field references.
10720
- - |-
10721
- ## IMPLEMENTATION GUIDANCE:
10722
- - Ensure the formula syntax complies with NetSuite's formula language and supported functions.
10723
- - Validate the formula string before submission to avoid runtime errors.
10724
- - Use this field when standard criteria fields are insufficient for the required filtering.
10725
- - Combine with other criteria fields as needed to build comprehensive queries.
10726
- - |-
10727
- ## EXAMPLES:
10728
- - "CASE WHEN {status} = 'Open' THEN 1 ELSE 0 END = 1"
10729
- - "TO_DATE({createddate}) >= TO_DATE('2023-01-01')"
10730
- - "NVL({amount}, 0) > 1000"
10731
- - |-
10732
- ## IMPORTANT NOTES:
10733
- - Incorrect or invalid formulas may cause the API request to fail or return errors.
10734
- - The formula must be compatible with the context of the query and the fields available.
10735
- - Performance may be impacted if complex formulas are used extensively.
10736
- - Formula evaluation is subject to NetSuite's formula engine capabilities and limitations.
10646
+ Used with a formula column in `field` (`formulanumeric` or `formulatext`):
10647
+ NetSuite evaluates this expression per record and `operator` / `searchValue`
10648
+ compare its result. `formulanumeric` `equalto` `1` with `CASE WHEN <condition>
10649
+ THEN 1 ELSE 0 END` turns any boolean condition — including OR and grouping
10650
+ across columns — into one criterion, which is the only way to express OR in
10651
+ this array.
10737
10652
  - |-
10738
- ## DEPENDENCY CHAIN:
10739
- - Depends on the availability of fields referenced within the formula.
10740
- - Works in conjunction with other criteria properties in the request.
10741
- - Requires understanding of NetSuite's formula syntax and functions.
10742
- - |-
10743
- ## TECHNICAL DETAILS:
10744
- - Data type: string.
10745
- - Supports NetSuite formula syntax including SQL-like expressions and functions.
10746
- - Evaluated server-side during the processing of the RESTlet request.
10747
- - Must be URL-encoded if included in query parameters of HTTP requests.
10653
+ Oracle SQL syntax: `{searchColumn}` references, single-quoted string literals,
10654
+ `CASE` / `NVL` / `TO_DATE`; a Handlebars value from the incoming record can be
10655
+ embedded (`{tranid} = '{{poNumber}}'`). A formula that evaluates false for
10656
+ every record returns no rows with no error, so verify the expression with a
10657
+ preview that is expected to return records.
10748
10658
  columns:
10749
10659
  type: array
10750
10660
  description: |-
package/dist/tool.yml CHANGED
@@ -30107,43 +30107,36 @@ components:
30107
30107
  criteria:
30108
30108
  type: array
30109
30109
  description: |-
30110
- Filter conditions that limit which records the RESTlet returns (live: an array of
30111
- field/operator/value conditions). Each condition pairs a field with an operator and
30112
- one or two comparison values.
30110
+ Filter conditions added on top of the saved search (the UI's "Additional search
30111
+ criteria"). Each condition pairs a search column with an operator and one or two
30112
+ comparison values, and the conditions are combined with AND — every one must match.
30113
30113
  x-celigo-ai-guidance:
30114
30114
  - |-
30115
- criteria:
30116
- > Defines the set of conditions or filters used to specify which records should
30117
- be retrieved or affected by the NetSuite RESTlet operation.
30118
- This property enables clients to precisely narrow down the dataset by applying
30119
- one or more criteria based on record fields,
30120
- comparison operators, and values,
30121
- supporting complex logical combinations to tailor the query results.
30115
+ A flat list: each entry becomes one `search.createFilter({ name, join, operator,
30116
+ values, formula })` call and NetSuite ANDs the resulting filters. There is no
30117
+ logical-combinator or grouping property (`join` is NetSuite's related-record
30118
+ join, e.g. `customer`, not an AND/OR operator) — a group object such as
30119
+ `{"operator": "OR", "criteria": [...]}` is rejected with a 422 (`OR` is not a
30120
+ valid enum value for path `operator`).
30121
+ - |-
30122
+ OR or grouped logic belongs in ONE formula condition: `{"field": "formulanumeric",
30123
+ "operator": "equalto", "searchValue": 1, "formula": "CASE WHEN {tranid} =
30124
+ '{{poNumber}}' OR ({shipzip} = '{{zip}}' AND {shipaddress1} = '{{address1}}')
30125
+ THEN 1 ELSE 0 END"}`. The formula is a NetSuite (Oracle SQL) expression over
30126
+ `{searchColumn}` references and can carry Handlebars values from the incoming
30127
+ record. The alternative is a second lookup step filtered to run only when this
30128
+ one returned no record. Do not describe OR between rows as configurable.
30122
30129
  - |-
30123
- ## FIELD BEHAVIOR:
30124
- - Accepts a structured object or an array representing one or multiple filtering conditions.
30125
- - Supports logical operators such as AND, OR, and nested groupings to combine multiple criteria flexibly.
30126
- - Each criterion typically includes a field name, an operator (e.g., equals, contains, greaterThan), and a value or set of values.
30127
- - Enables filtering on various data types including strings, numbers, dates, and booleans.
30128
- - Used to limit the scope of data returned or manipulated by the RESTlet to only those records that meet the specified conditions.
30129
- - When omitted or empty, the RESTlet may return all records or apply default filtering behavior as defined by the implementation.
30130
- - |-
30131
- ## IMPLEMENTATION GUIDANCE:
30132
- - Validate the criteria structure rigorously to ensure it conforms to the expected schema before processing.
30133
- - Support nested criteria groups to allow complex and hierarchical filtering logic.
30134
- - Map criteria fields and operators accurately to corresponding NetSuite record fields and search operators, considering data types and operator compatibility.
30135
- - Handle empty or undefined criteria gracefully by returning all records or applying sensible default filters.
30136
- - Sanitize all input values to prevent injection attacks, malformed queries, or unexpected behavior.
30137
- - Provide clear error messages when criteria are invalid or unsupported.
30138
- - Optimize query performance by translating criteria into efficient NetSuite search queries.
30139
- - |-
30140
- ## EXAMPLES:
30141
- - A single criterion filtering records where status equals "Open":
30142
- `{ "field": "status", "operator": "equals", "value": "Open" }`
30143
- - Multiple criteria combined with AND logic:
30144
- `[{"field": "status", "operator": "equals", "value": "Open"}, {"field": "priority", "operator": "greaterThan", "value": 2}]`
30145
- - Nested criteria combining OR and AND:
30146
- `{ "operator": "OR", "criteria": [ {"field": "status", "operator": "equals", "value": "Open"}, { "operator": "AND", "criteria": [ {"field": "priority", "operator": "greaterThan", "value":
30130
+ ## EXAMPLE
30131
+ ```json
30132
+ [
30133
+ {"field": "type", "operator": "anyof", "searchValue": ["PurchOrd"]},
30134
+ {"field": "mainline", "operator": "is", "searchValue": "F"},
30135
+ {"field": "tranid", "operator": "is", "searchValue": "{{poNumber}}"}
30136
+ ]
30137
+ ```
30138
+ `field` must be a search-column id for the record type (the SEARCH COLUMNS
30139
+ metadata block), not a body-field name — e.g. `shipaddress1`, not `shipaddr1`.
30147
30140
  items:
30148
30141
  type: object
30149
30142
  properties:
@@ -30160,96 +30153,40 @@ components:
30160
30153
  operator:
30161
30154
  type: string
30162
30155
  description: |-
30163
- Comparison operator applied between the field and the search value, using
30164
- NetSuite's search operator names (e.g. equals, contains, greaterThan).
30156
+ Comparison operator applied between the column and the search value, as one of
30157
+ NetSuite's lowercase search operator names (e.g. is, anyof, contains, equalto,
30158
+ greaterthan, after). Which operators are valid depends on the column's data type.
30165
30159
  examples:
30166
- - operator
30160
+ - is
30161
+ - anyof
30162
+ - equalto
30167
30163
  x-celigo-ai-guidance:
30168
30164
  - |-
30169
- operator:
30170
- > Specifies the comparison operator used to evaluate the criteria in a NetSuite RESTlet request.
30171
- This operator determines how the field value is compared against the specified
30172
- criteria value(s) to filter or query records.
30165
+ The server validates the value against NetSuite's operator list and rejects
30166
+ anything else with a 422 enum error — including logical words such as `OR`;
30167
+ conditions are never joined through this property.
30173
30168
  - |-
30174
- ## FIELD BEHAVIOR:
30175
- - Defines the type of comparison between a field and a value (e.g., equality, inequality, greater than).
30176
- - Influences the logic of the criteria evaluation in RESTlet queries.
30177
- - Supports various operators such as equals, not equals, greater than, less than, contains, etc.
30178
- - |-
30179
- ## IMPLEMENTATION GUIDANCE:
30180
- - Use valid NetSuite-supported operators to ensure correct query behavior.
30181
- - Match the operator type with the data type of the field being compared (e.g., use numeric operators for numeric fields).
30182
- - Combine multiple criteria with appropriate logical operators if needed.
30183
- - Validate operator values to prevent errors in RESTlet execution.
30184
- - |-
30185
- ## EXAMPLES:
30186
- - "operator": "is" (checks if the field value is equal to the specified value)
30187
- - "operator": "isnot" (checks if the field value is not equal to the specified value)
30188
- - "operator": "greaterthan" (checks if the field value is greater than the specified value)
30189
- - "operator": "contains" (checks if the field value contains the specified substring)
30190
- - |-
30191
- ## IMPORTANT NOTES:
30192
- - The operator must be compatible with the field type and the value provided.
30193
- - Incorrect operator usage can lead to unexpected query results or errors.
30194
- - Operators are case-sensitive and should match NetSuite's expected operator strings.
30195
- - |-
30196
- ## DEPENDENCY CHAIN:
30197
- - Depends on the field specified in the criteria to determine valid operators.
30198
- - Works in conjunction with the criteria value(s) to form a complete condition.
30199
- - May be combined with logical operators when multiple criteria are used.
30200
- - |-
30201
- ## TECHNICAL DETAILS:
30202
- - Typically represented as a string value in the RESTlet criteria JSON object.
30203
- - Supported operators align with NetSuite's SuiteScript search operators.
30204
- - Must conform to the list of operators recognized by the NetSuite RESTlet API.
30169
+ Common values by column type: text `is` / `isnot` / `contains` / `startswith`
30170
+ / `isempty` / `isnotempty`; list or select `anyof` / `noneof` (with an array
30171
+ `searchValue`); number `equalto` / `greaterthan` / `lessthan` / `between`;
30172
+ date `on` / `after` / `before` / `within`. Checkbox columns use `is` with
30173
+ `T` or `F`.
30205
30174
  searchValue:
30206
- type: string
30207
- description: Value the criteria field is compared against when filtering records.
30175
+ description: |-
30176
+ Value the column is compared against — a string, or an array of values for
30177
+ `anyof`-style operators. On lookup steps it may be a Handlebars expression
30178
+ rendered from the incoming record (for example `{{poNumber}}`).
30208
30179
  examples:
30209
- - Acme Corporation
30210
- - '2024-01-01'
30211
- - Pending
30180
+ - '{{poNumber}}'
30181
+ - F
30182
+ - - PurchOrd
30212
30183
  x-celigo-ai-guidance:
30213
30184
  - |-
30214
- searchValue:
30215
- The value used as the search criterion to filter results in the NetSuite RESTlet API.
30216
- This value is matched against the specified search field to retrieve relevant
30217
- records based on the search parameters provided.
30218
- - |-
30219
- ## FIELD BEHAVIOR:
30220
- - Acts as the primary input for filtering search results.
30221
- - Supports various data types depending on the search field (e.g., string, number, date).
30222
- - Used in conjunction with other search criteria to refine query results.
30223
- - Can be a partial or full match depending on the search configuration.
30224
- - |-
30225
- ## IMPLEMENTATION GUIDANCE:
30226
- - Ensure the value type matches the expected type of the search field.
30227
- - Validate the input to prevent injection attacks or malformed queries.
30228
- - Use appropriate encoding if the value contains special characters.
30229
- - Combine with logical operators or additional criteria for complex searches.
30230
- - |-
30231
- ## EXAMPLES:
30232
- - "Acme Corporation" for searching customer names.
30233
- - 1001 for searching by internal record ID.
30234
- - "2024-01-01" for searching records created on or after a specific date.
30235
- - "Pending" for filtering records by status.
30236
- - |-
30237
- ## IMPORTANT NOTES:
30238
- - The effectiveness of the search depends on the accuracy and format of the searchValue.
30239
- - Case sensitivity may vary based on the underlying NetSuite configuration.
30240
- - Large or complex search values may impact performance.
30241
- - Null or empty values may result in no filtering or return all records.
30242
- - |-
30243
- ## DEPENDENCY CHAIN:
30244
- - Depends on the searchField property to determine which field the searchValue applies to.
30245
- - Works alongside searchOperator to define how the searchValue is compared.
30246
- - Influences the results returned by the RESTlet endpoint.
30247
- - |-
30248
- ## TECHNICAL DETAILS:
30249
- - Typically passed as a string in the API request payload.
30250
- - May require serialization or formatting based on the API specification.
30251
- - Integrated into the NetSuite search query logic on the server side.
30252
- - Subject to NetSuite's search limitations and indexing capabilities.
30185
+ A Handlebars path the incoming record does not carry fails the render with
30186
+ `handlebars_template_parse_error` ("Failed to generate criteria.N.searchValue
30187
+ from template"). A standalone preview of a lookup that uses `{{...}}` here
30188
+ fails the same way — outside a flow run there is no record to render from;
30189
+ preview with a literal value or through a flow test run instead.
30253
30190
  searchValue2:
30254
30191
  type: string
30255
30192
  description: |-
@@ -30301,50 +30238,23 @@ components:
30301
30238
  NetSuite formula expression used as the filter condition, for criteria that
30302
30239
  standard field-operator-value comparisons can't express.
30303
30240
  examples:
30304
- - CASE WHEN {status} =
30305
- - TO_DATE({createddate}) >= TO_DATE(
30306
- - NVL({amount}, 0) > 1000
30241
+ - CASE WHEN {quantity} > 0 THEN 1 ELSE 0 END
30242
+ - NVL({amount}, 0)
30243
+ - TO_DATE({trandate})
30307
30244
  x-celigo-ai-guidance:
30308
30245
  - |-
30309
- formula:
30310
- > A string representing a custom formula used to define criteria for filtering
30311
- or querying data within the NetSuite RESTlet API.
30312
- This formula allows users to specify complex conditions using NetSuite's formula syntax,
30313
- enabling advanced and flexible data retrieval.
30314
- - |-
30315
- ## FIELD BEHAVIOR:
30316
- - Accepts a formula expression as a string that defines custom filtering logic.
30317
- - Used to create dynamic and complex criteria beyond standard field-value comparisons.
30318
- - Evaluated by the NetSuite backend to filter records according to the specified logic.
30319
- - Can incorporate NetSuite formula functions, operators, and field references.
30320
- - |-
30321
- ## IMPLEMENTATION GUIDANCE:
30322
- - Ensure the formula syntax complies with NetSuite's formula language and supported functions.
30323
- - Validate the formula string before submission to avoid runtime errors.
30324
- - Use this field when standard criteria fields are insufficient for the required filtering.
30325
- - Combine with other criteria fields as needed to build comprehensive queries.
30326
- - |-
30327
- ## EXAMPLES:
30328
- - "CASE WHEN {status} = 'Open' THEN 1 ELSE 0 END = 1"
30329
- - "TO_DATE({createddate}) >= TO_DATE('2023-01-01')"
30330
- - "NVL({amount}, 0) > 1000"
30331
- - |-
30332
- ## IMPORTANT NOTES:
30333
- - Incorrect or invalid formulas may cause the API request to fail or return errors.
30334
- - The formula must be compatible with the context of the query and the fields available.
30335
- - Performance may be impacted if complex formulas are used extensively.
30336
- - Formula evaluation is subject to NetSuite's formula engine capabilities and limitations.
30246
+ Used with a formula column in `field` (`formulanumeric` or `formulatext`):
30247
+ NetSuite evaluates this expression per record and `operator` / `searchValue`
30248
+ compare its result. `formulanumeric` `equalto` `1` with `CASE WHEN <condition>
30249
+ THEN 1 ELSE 0 END` turns any boolean condition — including OR and grouping
30250
+ across columns — into one criterion, which is the only way to express OR in
30251
+ this array.
30337
30252
  - |-
30338
- ## DEPENDENCY CHAIN:
30339
- - Depends on the availability of fields referenced within the formula.
30340
- - Works in conjunction with other criteria properties in the request.
30341
- - Requires understanding of NetSuite's formula syntax and functions.
30342
- - |-
30343
- ## TECHNICAL DETAILS:
30344
- - Data type: string.
30345
- - Supports NetSuite formula syntax including SQL-like expressions and functions.
30346
- - Evaluated server-side during the processing of the RESTlet request.
30347
- - Must be URL-encoded if included in query parameters of HTTP requests.
30253
+ Oracle SQL syntax: `{searchColumn}` references, single-quoted string literals,
30254
+ `CASE` / `NVL` / `TO_DATE`; a Handlebars value from the incoming record can be
30255
+ embedded (`{tranid} = '{{poNumber}}'`). A formula that evaluates false for
30256
+ every record returns no rows with no error, so verify the expression with a
30257
+ preview that is expected to return records.
30348
30258
  columns:
30349
30259
  type: array
30350
30260
  description: |-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "files": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "92cdd1b",
4
+ "iasCommit": "3402831",
5
5
  "generatedAt": "2026-09-11"
6
6
  },
7
7
  "roots": {
@@ -4601,7 +4601,7 @@
4601
4601
  "formula": 1,
4602
4602
  "join": 1,
4603
4603
  "operator": 1,
4604
- "searchValue": 1,
4604
+ "searchValue": 162,
4605
4605
  "searchValue2": 1
4606
4606
  }
4607
4607
  },