@celigo/api-specs 0.2.325 → 0.2.326

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/api.yml CHANGED
@@ -6059,6 +6059,9 @@ components:
6059
6059
  results returns each group as an array inside `data`
6060
6060
  (`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
6061
6061
  reads the first row of the first group, and `data[0]` copies the group.
6062
+ A page-processor preview (`previewPageProcessor`) fills `data` with
6063
+ the lookup's first record only; a test run fills it with every
6064
+ record the lookup returns.
6062
6065
  - **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
6063
6066
  "ignored": false, "errors": [], "_json": <raw destination response>,
6064
6067
  ...<response body fields flattened at the root>}` — use `id` for the
@@ -6111,7 +6114,9 @@ components:
6111
6114
  To carry several lookup results onto the record, use `extract: "data"`
6112
6115
  (the whole result array) or a `lists` entry whose extracts use
6113
6116
  `data[*].x` — never `data[*].x` in `fields[].extract`, which merges
6114
- nothing: the record simply never gains the field.
6117
+ nothing: the record simply never gains the field. A page-processor
6118
+ preview shows one result in that array either way, so check the full
6119
+ list in a test run.
6115
6120
  examples:
6116
6121
  - fields:
6117
6122
  - extract: id
package/dist/export.yml CHANGED
@@ -17116,7 +17116,8 @@ components:
17116
17116
  calling the source, in a test run of the flow, API or Tool that holds the export, and in a
17117
17117
  page-processor preview (`previewPageProcessor`) for the flow's source export and for a
17118
17118
  lookup upstream of the previewed step. That preview carries only the first record of a
17119
- source export's mock. A target lookup in the preview runs its live query, invoking the
17119
+ source export's mock, and of an upstream lookup's mock only the first record reaches the
17120
+ lookup's results mapping. A target lookup in the preview runs its live query, invoking the
17120
17121
  export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
17121
17122
  This allows you to:
17122
17123
  - Test mappings with representative data
@@ -17164,6 +17165,10 @@ components:
17164
17165
  A page-processor preview follows only the first record of a source export's mockOutput,
17165
17166
  while a test run takes the whole page. On an export with an output `filter`, put a record
17166
17167
  the filter keeps first, so a preview of a later step has a record to follow.
17168
+ - |-
17169
+ A page-processor preview hands a lookup's results mapping only the first record of the
17170
+ lookup's mockOutput, while a test run hands it every record. Put first the record a later
17171
+ step's preview should be built from.
17167
17172
  properties:
17168
17173
  page_of_records:
17169
17174
  type: array
package/dist/flow.yml CHANGED
@@ -4804,6 +4804,17 @@ paths:
4804
4804
  request did execute. With `includeStages: false` the response is the
4805
4805
  bare result object rather than the `{data, stages}` envelope.
4806
4806
 
4807
+ A lookup contributes one record to this preview: the first record of
4808
+ its saved `mockOutput`, or of its live response. An upstream lookup's
4809
+ results mapping therefore reads a `data` array of one record, where a
4810
+ test run reads every record the lookup returned, and a target lookup
4811
+ returns that first record as `data` (an HTTP lookup's `raw` stage
4812
+ still holds the whole response). A later step that works on the
4813
+ mapped array sees the one record: a one-to-many step previews one
4814
+ child, and a filter or expression over the lookup's results is
4815
+ evaluated on it — when the step's own input filter then excludes the
4816
+ record, the response is `422 no_data_available`.
4817
+
4807
4818
  Body carries the flow shape plus resolved maps of page-generator and
4808
4819
  page-processor docs keyed by `_id`. The server uses those maps as the
4809
4820
  source of truth for the preview — it does not read the persisted flow
@@ -5240,6 +5251,9 @@ components:
5240
5251
  results returns each group as an array inside `data`
5241
5252
  (`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
5242
5253
  reads the first row of the first group, and `data[0]` copies the group.
5254
+ A page-processor preview (`previewPageProcessor`) fills `data` with
5255
+ the lookup's first record only; a test run fills it with every
5256
+ record the lookup returns.
5243
5257
  - **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
5244
5258
  "ignored": false, "errors": [], "_json": <raw destination response>,
5245
5259
  ...<response body fields flattened at the root>}` — use `id` for the
@@ -5292,7 +5306,9 @@ components:
5292
5306
  To carry several lookup results onto the record, use `extract: "data"`
5293
5307
  (the whole result array) or a `lists` entry whose extracts use
5294
5308
  `data[*].x` — never `data[*].x` in `fields[].extract`, which merges
5295
- nothing: the record simply never gains the field.
5309
+ nothing: the record simply never gains the field. A page-processor
5310
+ preview shows one result in that array either way, so check the full
5311
+ list in a test run.
5296
5312
  examples:
5297
5313
  - fields:
5298
5314
  - extract: id
@@ -9792,6 +9808,13 @@ components:
9792
9808
  whole first page through the same steps, so read what reaches a step from a test run. To
9793
9809
  preview a step with a record that reaches it, put that record first in the source's
9794
9810
  `mockOutput`.
9811
+ - |-
9812
+ A lookup on the way passes on only the first record it returns (the first record of its
9813
+ `mockOutput`, else of its live response), so its results mapping's `data` holds one record
9814
+ and a step that needs the others — a one-to-many over the mapped array, a filter or a total
9815
+ across it — previews one record or answers `422 no_data_available`. A test run hands the
9816
+ mapping every record. To preview with a representative result, put it first in the lookup's
9817
+ `mockOutput`, or supply the whole record as the target's `options.inputData`.
9795
9818
  properties:
9796
9819
  flow:
9797
9820
  type: object
package/dist/tool.yml CHANGED
@@ -40245,7 +40245,8 @@ components:
40245
40245
  calling the source, in a test run of the flow, API or Tool that holds the export, and in a
40246
40246
  page-processor preview (`previewPageProcessor`) for the flow's source export and for a
40247
40247
  lookup upstream of the previewed step. That preview carries only the first record of a
40248
- source export's mock. A target lookup in the preview runs its live query, invoking the
40248
+ source export's mock, and of an upstream lookup's mock only the first record reaches the
40249
+ lookup's results mapping. A target lookup in the preview runs its live query, invoking the
40249
40250
  export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
40250
40251
  This allows you to:
40251
40252
  - Test mappings with representative data
@@ -40293,6 +40294,10 @@ components:
40293
40294
  A page-processor preview follows only the first record of a source export's mockOutput,
40294
40295
  while a test run takes the whole page. On an export with an output `filter`, put a record
40295
40296
  the filter keeps first, so a preview of a later step has a record to follow.
40297
+ - |-
40298
+ A page-processor preview hands a lookup's results mapping only the first record of the
40299
+ lookup's mockOutput, while a test run hands it every record. Put first the record a later
40300
+ step's preview should be built from.
40296
40301
  properties:
40297
40302
  page_of_records:
40298
40303
  type: array
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.325",
3
+ "version": "0.2.326",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "903f4b82",
4
+ "iasCommit": "8a1ec6c7",
5
5
  "generatedAt": "2026-11-20"
6
6
  },
7
7
  "roots": {