@celigo/api-specs 0.2.8 → 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 +67 -157
- package/dist/subscription.yml +45 -15
- package/dist/tool.yml +67 -157
- package/package.json +1 -1
- package/schemas.json +3 -3
package/dist/export.yml
CHANGED
|
@@ -10507,43 +10507,36 @@ components:
|
|
|
10507
10507
|
criteria:
|
|
10508
10508
|
type: array
|
|
10509
10509
|
description: |-
|
|
10510
|
-
Filter conditions
|
|
10511
|
-
|
|
10512
|
-
|
|
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
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
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
|
-
##
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
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
|
|
10564
|
-
NetSuite's search operator names (e.g.
|
|
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
|
-
-
|
|
10560
|
+
- is
|
|
10561
|
+
- anyof
|
|
10562
|
+
- equalto
|
|
10567
10563
|
x-celigo-ai-guidance:
|
|
10568
10564
|
- |-
|
|
10569
|
-
operator
|
|
10570
|
-
|
|
10571
|
-
|
|
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
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
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
|
-
|
|
10607
|
-
|
|
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
|
-
-
|
|
10610
|
-
-
|
|
10611
|
-
-
|
|
10580
|
+
- '{{poNumber}}'
|
|
10581
|
+
- F
|
|
10582
|
+
- - PurchOrd
|
|
10612
10583
|
x-celigo-ai-guidance:
|
|
10613
10584
|
- |-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
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 {
|
|
10705
|
-
-
|
|
10706
|
-
-
|
|
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
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
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
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
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/subscription.yml
CHANGED
|
@@ -133,14 +133,15 @@ paths:
|
|
|
133
133
|
tags:
|
|
134
134
|
- Subscription & Entitlements
|
|
135
135
|
description: |-
|
|
136
|
-
Returns entitlement usage for the
|
|
137
|
-
is consuming vs. what is entitled. Pair with `GET /v1/licenses` for the entitlement limits
|
|
136
|
+
Returns entitlement usage for the environment the request is made in -- how many resources it
|
|
137
|
+
is consuming vs. what is entitled. Pair with `GET /v1/licenses` for the entitlement limits;
|
|
138
|
+
the license's pricing model decides what the flow count means.
|
|
138
139
|
x-celigo-ai-guidance:
|
|
139
|
-
- Returns entitlement usage for the
|
|
140
|
+
- Returns entitlement usage for the requesting environment (consumption vs. entitlement, by usage category); environments are never netted against each other.
|
|
140
141
|
- |-
|
|
141
142
|
The response includes counts such as:
|
|
142
143
|
- endpoints consumed
|
|
143
|
-
- flows
|
|
144
|
+
- the flow meter (`flowUsage.numEnabled` — enabled flows, or the distinct flows that ran in the billing period, depending on the account's pricing model)
|
|
144
145
|
- agents active
|
|
145
146
|
- trading partners consumed
|
|
146
147
|
- environments enabled (for multi-environment licensing)
|
|
@@ -273,8 +274,12 @@ paths:
|
|
|
273
274
|
tags:
|
|
274
275
|
- Subscription & Entitlements
|
|
275
276
|
description: |-
|
|
276
|
-
Returns historical monthly usage for accounts
|
|
277
|
-
licenses)
|
|
277
|
+
Returns historical monthly usage for accounts whose pricing model meters flow runs (platform
|
|
278
|
+
licenses), newest month first; the current month's row can carry null usage until the meter
|
|
279
|
+
has processed. Useful for month-by-month trend analysis of usage vs. allocation. Not available
|
|
280
|
+
on plans that do not store monthly usage (endpoint and integrator licenses).
|
|
281
|
+
x-celigo-ai-guidance:
|
|
282
|
+
- On endpoint and integrator licenses the request currently fails with a 500 server error instead of returning an empty list; treat that as "this plan stores no monthly usage", not as an outage, and answer from `GET /v1/licenseEntitlementUsage` instead.
|
|
278
283
|
responses:
|
|
279
284
|
'200':
|
|
280
285
|
description: Historical monthly usage
|
|
@@ -382,7 +387,10 @@ components:
|
|
|
382
387
|
properties:
|
|
383
388
|
numEndpoints:
|
|
384
389
|
type: integer
|
|
385
|
-
description:
|
|
390
|
+
description: |-
|
|
391
|
+
Base number of endpoints (distinct connected applications) included with the plan, per
|
|
392
|
+
environment. Whether the count is taken from endpoints in use or from endpoints invoked
|
|
393
|
+
in the billing period depends on the account's pricing model.
|
|
386
394
|
example: 600
|
|
387
395
|
numAddOnEndpoints:
|
|
388
396
|
type: integer
|
|
@@ -390,7 +398,10 @@ components:
|
|
|
390
398
|
example: 0
|
|
391
399
|
numFlows:
|
|
392
400
|
type: integer
|
|
393
|
-
description:
|
|
401
|
+
description: |-
|
|
402
|
+
Base flow entitlement included with the plan, per environment. Whether it caps enabled
|
|
403
|
+
flows or the distinct flows run in a billing period — and whether reaching it blocks or
|
|
404
|
+
only notifies — depends on the account's pricing model.
|
|
394
405
|
example: 80
|
|
395
406
|
numAddOnFlows:
|
|
396
407
|
type: integer
|
|
@@ -435,6 +446,16 @@ components:
|
|
|
435
446
|
Licenses may represent:
|
|
436
447
|
- an account-level subscription (`type` is `integrator`, `platform`, or `endpoint`)
|
|
437
448
|
- a connector-specific license (`type` is `connector`, includes `_connectorId` / `_integrationId`)
|
|
449
|
+
- |-
|
|
450
|
+
The resource meters (flows, endpoints, on-premise agents, trading partners) apply per
|
|
451
|
+
environment: every environment is a separate account under the parent, each is metered
|
|
452
|
+
on its own, and headroom in one never offsets usage in another. Account-level grants —
|
|
453
|
+
the number of environments, prepaid AI balances, and the other non-resource fields —
|
|
454
|
+
belong to the parent license and are not repeated per environment.
|
|
455
|
+
- |-
|
|
456
|
+
What a flow or endpoint entitlement METERS depends on the account's pricing model
|
|
457
|
+
(`type` plus tier generation). Interpret the counts for the plan this account is on
|
|
458
|
+
only; do not infer the rule from field names.
|
|
438
459
|
properties:
|
|
439
460
|
_id:
|
|
440
461
|
type: string
|
|
@@ -472,9 +493,9 @@ components:
|
|
|
472
493
|
- integrationApp
|
|
473
494
|
- integrationAppChild
|
|
474
495
|
x-enumDescriptions:
|
|
475
|
-
integrator: Account-level subscription (integrator pricing model).
|
|
476
|
-
platform: Account-level subscription (platform pricing model).
|
|
477
|
-
endpoint: Account-level subscription (endpoint pricing model).
|
|
496
|
+
integrator: Account-level subscription (legacy integrator pricing model).
|
|
497
|
+
platform: Account-level subscription (platform pricing model; the tier name carries the plan generation).
|
|
498
|
+
endpoint: Account-level subscription (endpoint pricing model, metered on distinct endpoints).
|
|
478
499
|
connector: Connector-specific license for an Integration App.
|
|
479
500
|
integrationApp: Integration App license (parent).
|
|
480
501
|
integrationAppChild: Integration App child license (inherits from a parent via `_parentId`).
|
|
@@ -483,9 +504,13 @@ components:
|
|
|
483
504
|
description: When true, the account is licensed for CDC (change data capture) features.
|
|
484
505
|
tier:
|
|
485
506
|
type: string
|
|
486
|
-
description:
|
|
507
|
+
description: |-
|
|
508
|
+
Subscription tier name — the plan level the account is on. On `platform` licenses a year
|
|
509
|
+
marker in the name identifies the plan generation; the rest of the name is free-form
|
|
510
|
+
(packages, custom names).
|
|
487
511
|
x-celigo-ai-guidance:
|
|
488
|
-
- 'Examples: `free`, `standard`, `professional`, `enterprise`, `enterprise (2024)`.'
|
|
512
|
+
- 'Examples: `free`, `standard`, `professional`, `enterprise`, `enterprise (2024)`, `standard package (2024) - lite`.'
|
|
513
|
+
- Key pricing-model logic on `type` plus the year marker, never on the full tier string.
|
|
489
514
|
example: enterprise (2024)
|
|
490
515
|
supportTier:
|
|
491
516
|
type: string
|
|
@@ -897,11 +922,16 @@ components:
|
|
|
897
922
|
properties:
|
|
898
923
|
numEnabled:
|
|
899
924
|
type: integer
|
|
900
|
-
description:
|
|
925
|
+
description: |-
|
|
926
|
+
The flow meter for the requesting environment on the account's pricing model. The field
|
|
927
|
+
name reflects its legacy meaning (enabled flows); on plans that meter flow runs it is the
|
|
928
|
+
number of distinct flows that ran in the billing period — never a count of executions.
|
|
929
|
+
x-celigo-ai-guidance:
|
|
930
|
+
- Read the account license before interpreting this number — it is not the enabled-flow count on every plan, and enabled-but-idle flows may not appear in it.
|
|
901
931
|
example: 12
|
|
902
932
|
flows:
|
|
903
933
|
type: array
|
|
904
|
-
description: Flows contributing to
|
|
934
|
+
description: Flows contributing to the meter.
|
|
905
935
|
x-celigo-ai-guidance:
|
|
906
936
|
- List of flows contributing to usage (if provided).
|
|
907
937
|
items:
|
package/dist/tool.yml
CHANGED
|
@@ -30107,43 +30107,36 @@ components:
|
|
|
30107
30107
|
criteria:
|
|
30108
30108
|
type: array
|
|
30109
30109
|
description: |-
|
|
30110
|
-
Filter conditions
|
|
30111
|
-
|
|
30112
|
-
|
|
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
|
-
|
|
30116
|
-
|
|
30117
|
-
|
|
30118
|
-
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
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
|
-
##
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
|
|
30131
|
-
|
|
30132
|
-
|
|
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
|
|
30164
|
-
NetSuite's search operator names (e.g.
|
|
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
|
-
-
|
|
30160
|
+
- is
|
|
30161
|
+
- anyof
|
|
30162
|
+
- equalto
|
|
30167
30163
|
x-celigo-ai-guidance:
|
|
30168
30164
|
- |-
|
|
30169
|
-
operator
|
|
30170
|
-
|
|
30171
|
-
|
|
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
|
-
|
|
30175
|
-
|
|
30176
|
-
|
|
30177
|
-
|
|
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
|
-
|
|
30207
|
-
|
|
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
|
-
-
|
|
30210
|
-
-
|
|
30211
|
-
-
|
|
30180
|
+
- '{{poNumber}}'
|
|
30181
|
+
- F
|
|
30182
|
+
- - PurchOrd
|
|
30212
30183
|
x-celigo-ai-guidance:
|
|
30213
30184
|
- |-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
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 {
|
|
30305
|
-
-
|
|
30306
|
-
-
|
|
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
|
-
|
|
30311
|
-
|
|
30312
|
-
|
|
30313
|
-
|
|
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
|
-
|
|
30339
|
-
|
|
30340
|
-
|
|
30341
|
-
|
|
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
package/schemas.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"provenance": {
|
|
3
3
|
"repo": "celigo/integrator-api-specs",
|
|
4
|
-
"iasCommit": "
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"iasCommit": "3402831",
|
|
5
|
+
"generatedAt": "2026-09-11"
|
|
6
6
|
},
|
|
7
7
|
"roots": {
|
|
8
8
|
"aiagent": 121,
|
|
@@ -4601,7 +4601,7 @@
|
|
|
4601
4601
|
"formula": 1,
|
|
4602
4602
|
"join": 1,
|
|
4603
4603
|
"operator": 1,
|
|
4604
|
-
"searchValue":
|
|
4604
|
+
"searchValue": 162,
|
|
4605
4605
|
"searchValue2": 1
|
|
4606
4606
|
}
|
|
4607
4607
|
},
|