@celigo/api-specs 0.2.348 → 0.2.350
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 +14 -5
- package/dist/export.yml +24 -5
- package/dist/flow.yml +45 -21
- package/dist/tool.yml +24 -5
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/api.yml
CHANGED
|
@@ -6138,8 +6138,13 @@ components:
|
|
|
6138
6138
|
(`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
|
|
6139
6139
|
reads the first row of the first group, and `data[0]` copies the group.
|
|
6140
6140
|
A page-processor preview (`previewPageProcessor`) fills `data` with
|
|
6141
|
-
the lookup's first record only
|
|
6142
|
-
|
|
6141
|
+
the lookup's first record only when the lookup's document in the
|
|
6142
|
+
request carries no `test.limit`, and with up to `test.limit` records
|
|
6143
|
+
when it does — except for a lookup upstream of the previewed step
|
|
6144
|
+
whose document carries `mockOutput`, where `data` holds that mock's
|
|
6145
|
+
first record whatever the limit. A test run fills it with every
|
|
6146
|
+
record the lookup returns, up to `test.limit` on a `type: test`
|
|
6147
|
+
lookup.
|
|
6143
6148
|
- **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
|
|
6144
6149
|
"ignored": false, "errors": [], "_json": <raw destination response>,
|
|
6145
6150
|
...<response body fields flattened at the root>}` — use `id` for the
|
|
@@ -6192,9 +6197,13 @@ components:
|
|
|
6192
6197
|
To carry several lookup results onto the record, use `extract: "data"`
|
|
6193
6198
|
(the whole result array) or a `lists` entry whose extracts use
|
|
6194
6199
|
`data[*].x` — never `data[*].x` in `fields[].extract`, which merges
|
|
6195
|
-
nothing: the record simply never gains the field.
|
|
6196
|
-
preview shows one result in that array
|
|
6197
|
-
|
|
6200
|
+
nothing: the record simply never gains the field. Either way a
|
|
6201
|
+
page-processor preview shows one result in that array when the
|
|
6202
|
+
lookup's document carries no `test.limit` and up to `test.limit`
|
|
6203
|
+
results when it does (an upstream lookup whose document carries
|
|
6204
|
+
`mockOutput` shows that mock's first result whatever the limit) — so
|
|
6205
|
+
check the full list in a test run, which a `type: test` lookup caps
|
|
6206
|
+
at `test.limit` too.
|
|
6198
6207
|
examples:
|
|
6199
6208
|
- fields:
|
|
6200
6209
|
- extract: id
|
package/dist/export.yml
CHANGED
|
@@ -1856,8 +1856,25 @@ components:
|
|
|
1856
1856
|
Caps the total records a test run processes, counted on top-level records before
|
|
1857
1857
|
oneToMany processing; the maximum exists to prevent accidentally processing large
|
|
1858
1858
|
datasets during development. The cap applies across pages — processing stops once the
|
|
1859
|
-
limit is reached regardless of pageSize.
|
|
1860
|
-
|
|
1859
|
+
limit is reached regardless of pageSize. On a lookup the cap applies to each record that
|
|
1860
|
+
reaches the lookup. When transitioning to production, change the export's type field;
|
|
1861
|
+
the limit then no longer applies.
|
|
1862
|
+
x-celigo-ai-guidance:
|
|
1863
|
+
- |-
|
|
1864
|
+
On a lookup with `type: test` the limit is per arriving record: its results mapping
|
|
1865
|
+
receives at most this many records for each record that reaches the lookup. That holds
|
|
1866
|
+
in a flow run and in a test run of a flow, an API or a Tool — also when the test run
|
|
1867
|
+
replays a saved `mockOutput` that holds more records than the limit.
|
|
1868
|
+
- |-
|
|
1869
|
+
A save keeps `test.limit` on a `type: test` export. A save that sends it with no
|
|
1870
|
+
`type`, or with `type` `all` or `delta`, answers 200 and drops it.
|
|
1871
|
+
- |-
|
|
1872
|
+
A page-processor preview (`previewPageProcessor`) reads `test.limit` from the lookup
|
|
1873
|
+
document in its request, with or without `type: test`: the lookup hands on up to that
|
|
1874
|
+
many records of its live response, counted before its own output `filter`, and one
|
|
1875
|
+
record when the document carries no limit. A lookup upstream of the previewed step
|
|
1876
|
+
whose document carries `mockOutput` hands on that mock's first record whatever the
|
|
1877
|
+
limit.
|
|
1861
1878
|
minimum: 1
|
|
1862
1879
|
maximum: 100
|
|
1863
1880
|
examples:
|
|
@@ -17258,7 +17275,8 @@ components:
|
|
|
17258
17275
|
page-processor preview (`previewPageProcessor`) for the flow's source export and for a
|
|
17259
17276
|
lookup upstream of the previewed step. That preview carries only the first record of a
|
|
17260
17277
|
source export's mock, and of an upstream lookup's mock only the first record reaches the
|
|
17261
|
-
lookup's results mapping
|
|
17278
|
+
lookup's results mapping, whatever `test.limit` the lookup carries. A target lookup in the
|
|
17279
|
+
preview runs its live query, invoking the
|
|
17262
17280
|
export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
|
|
17263
17281
|
This allows you to:
|
|
17264
17282
|
- Test mappings with representative data
|
|
@@ -17308,8 +17326,9 @@ components:
|
|
|
17308
17326
|
the filter keeps first, so a preview of a later step has a record to follow.
|
|
17309
17327
|
- |-
|
|
17310
17328
|
A page-processor preview hands a lookup's results mapping only the first record of the
|
|
17311
|
-
lookup's mockOutput
|
|
17312
|
-
|
|
17329
|
+
lookup's mockOutput — whatever `test.limit` the lookup carries — while a test run hands it
|
|
17330
|
+
every record, or the first `test.limit` of them on a `type: test` lookup. Put first the
|
|
17331
|
+
record a later step's preview should be built from.
|
|
17313
17332
|
properties:
|
|
17314
17333
|
page_of_records:
|
|
17315
17334
|
type: array
|
package/dist/flow.yml
CHANGED
|
@@ -4878,16 +4878,23 @@ paths:
|
|
|
4878
4878
|
request did execute. With `includeStages: false` the response is the
|
|
4879
4879
|
bare result object rather than the `{data, stages}` envelope.
|
|
4880
4880
|
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4881
|
+
How many records a lookup contributes to this preview is set by its
|
|
4882
|
+
document in the request. A lookup whose document carries no
|
|
4883
|
+
`test.limit` contributes one record: the first record of its saved
|
|
4884
|
+
`mockOutput`, or of its live response. With `test.limit` — with or
|
|
4885
|
+
without `type: test` — it contributes up to that many records of its
|
|
4886
|
+
live response; an upstream lookup whose document carries `mockOutput`
|
|
4887
|
+
still contributes only that mock's first record. An upstream lookup's
|
|
4888
|
+
results mapping therefore reads a `data` array of those records,
|
|
4889
|
+
where a test run reads every record the lookup returned (up to
|
|
4890
|
+
`test.limit` on a `type: test` lookup), and a target lookup returns
|
|
4891
|
+
them as `data` (an HTTP lookup's `raw` stage still holds the whole
|
|
4892
|
+
response). A later step that works on the mapped array sees only
|
|
4893
|
+
those records: a filter or expression over the lookup's results is
|
|
4894
|
+
evaluated on them, and a one-to-many step previews one child — the
|
|
4895
|
+
array's first element, however many it holds. When the step's own
|
|
4896
|
+
input filter then excludes the record, the response is
|
|
4897
|
+
`422 no_data_available`.
|
|
4891
4898
|
|
|
4892
4899
|
Body carries the flow shape plus resolved maps of page-generator and
|
|
4893
4900
|
page-processor docs keyed by `_id`. The server uses those maps as the
|
|
@@ -5330,8 +5337,13 @@ components:
|
|
|
5330
5337
|
(`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
|
|
5331
5338
|
reads the first row of the first group, and `data[0]` copies the group.
|
|
5332
5339
|
A page-processor preview (`previewPageProcessor`) fills `data` with
|
|
5333
|
-
the lookup's first record only
|
|
5334
|
-
|
|
5340
|
+
the lookup's first record only when the lookup's document in the
|
|
5341
|
+
request carries no `test.limit`, and with up to `test.limit` records
|
|
5342
|
+
when it does — except for a lookup upstream of the previewed step
|
|
5343
|
+
whose document carries `mockOutput`, where `data` holds that mock's
|
|
5344
|
+
first record whatever the limit. A test run fills it with every
|
|
5345
|
+
record the lookup returns, up to `test.limit` on a `type: test`
|
|
5346
|
+
lookup.
|
|
5335
5347
|
- **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
|
|
5336
5348
|
"ignored": false, "errors": [], "_json": <raw destination response>,
|
|
5337
5349
|
...<response body fields flattened at the root>}` — use `id` for the
|
|
@@ -5384,9 +5396,13 @@ components:
|
|
|
5384
5396
|
To carry several lookup results onto the record, use `extract: "data"`
|
|
5385
5397
|
(the whole result array) or a `lists` entry whose extracts use
|
|
5386
5398
|
`data[*].x` — never `data[*].x` in `fields[].extract`, which merges
|
|
5387
|
-
nothing: the record simply never gains the field.
|
|
5388
|
-
preview shows one result in that array
|
|
5389
|
-
|
|
5399
|
+
nothing: the record simply never gains the field. Either way a
|
|
5400
|
+
page-processor preview shows one result in that array when the
|
|
5401
|
+
lookup's document carries no `test.limit` and up to `test.limit`
|
|
5402
|
+
results when it does (an upstream lookup whose document carries
|
|
5403
|
+
`mockOutput` shows that mock's first result whatever the limit) — so
|
|
5404
|
+
check the full list in a test run, which a `type: test` lookup caps
|
|
5405
|
+
at `test.limit` too.
|
|
5390
5406
|
examples:
|
|
5391
5407
|
- fields:
|
|
5392
5408
|
- extract: id
|
|
@@ -9952,12 +9968,20 @@ components:
|
|
|
9952
9968
|
preview a step with a record that reaches it, put that record first in the source's
|
|
9953
9969
|
`mockOutput`.
|
|
9954
9970
|
- |-
|
|
9955
|
-
A lookup on the way
|
|
9956
|
-
`mockOutput`, else of its live response), so its
|
|
9957
|
-
and a step that needs the others — a one-to-many
|
|
9958
|
-
across it — previews one record or answers `422
|
|
9959
|
-
|
|
9960
|
-
`
|
|
9971
|
+
A lookup on the way whose document carries no `test.limit` passes on only the first record
|
|
9972
|
+
it returns (the first record of its `mockOutput`, else of its live response), so its
|
|
9973
|
+
results mapping's `data` holds one record and a step that needs the others — a one-to-many
|
|
9974
|
+
over the mapped array, a filter or a total across it — previews one record or answers `422
|
|
9975
|
+
no_data_available`. A test run hands the mapping every record the lookup returns — on a
|
|
9976
|
+
`type: test` lookup at most `test.limit` for each arriving record. To preview with a
|
|
9977
|
+
representative result, put it first in the lookup's `mockOutput`, or supply the whole
|
|
9978
|
+
record as the target's `options.inputData`.
|
|
9979
|
+
- |-
|
|
9980
|
+
`test.limit` on a lookup's document in `pageProcessorMap` makes that lookup pass on up to
|
|
9981
|
+
that many records of its live response, with or without `type: test`; the preview saves
|
|
9982
|
+
nothing. It changes nothing for an upstream lookup whose document carries `mockOutput` —
|
|
9983
|
+
that lookup still passes on the mock's first record — and a one-to-many step still
|
|
9984
|
+
previews only the first element of the mapped array.
|
|
9961
9985
|
properties:
|
|
9962
9986
|
flow:
|
|
9963
9987
|
type: object
|
package/dist/tool.yml
CHANGED
|
@@ -29473,8 +29473,25 @@ components:
|
|
|
29473
29473
|
Caps the total records a test run processes, counted on top-level records before
|
|
29474
29474
|
oneToMany processing; the maximum exists to prevent accidentally processing large
|
|
29475
29475
|
datasets during development. The cap applies across pages — processing stops once the
|
|
29476
|
-
limit is reached regardless of pageSize.
|
|
29477
|
-
|
|
29476
|
+
limit is reached regardless of pageSize. On a lookup the cap applies to each record that
|
|
29477
|
+
reaches the lookup. When transitioning to production, change the export's type field;
|
|
29478
|
+
the limit then no longer applies.
|
|
29479
|
+
x-celigo-ai-guidance:
|
|
29480
|
+
- |-
|
|
29481
|
+
On a lookup with `type: test` the limit is per arriving record: its results mapping
|
|
29482
|
+
receives at most this many records for each record that reaches the lookup. That holds
|
|
29483
|
+
in a flow run and in a test run of a flow, an API or a Tool — also when the test run
|
|
29484
|
+
replays a saved `mockOutput` that holds more records than the limit.
|
|
29485
|
+
- |-
|
|
29486
|
+
A save keeps `test.limit` on a `type: test` export. A save that sends it with no
|
|
29487
|
+
`type`, or with `type` `all` or `delta`, answers 200 and drops it.
|
|
29488
|
+
- |-
|
|
29489
|
+
A page-processor preview (`previewPageProcessor`) reads `test.limit` from the lookup
|
|
29490
|
+
document in its request, with or without `type: test`: the lookup hands on up to that
|
|
29491
|
+
many records of its live response, counted before its own output `filter`, and one
|
|
29492
|
+
record when the document carries no limit. A lookup upstream of the previewed step
|
|
29493
|
+
whose document carries `mockOutput` hands on that mock's first record whatever the
|
|
29494
|
+
limit.
|
|
29478
29495
|
minimum: 1
|
|
29479
29496
|
maximum: 100
|
|
29480
29497
|
examples:
|
|
@@ -40584,7 +40601,8 @@ components:
|
|
|
40584
40601
|
page-processor preview (`previewPageProcessor`) for the flow's source export and for a
|
|
40585
40602
|
lookup upstream of the previewed step. That preview carries only the first record of a
|
|
40586
40603
|
source export's mock, and of an upstream lookup's mock only the first record reaches the
|
|
40587
|
-
lookup's results mapping
|
|
40604
|
+
lookup's results mapping, whatever `test.limit` the lookup carries. A target lookup in the
|
|
40605
|
+
preview runs its live query, invoking the
|
|
40588
40606
|
export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
|
|
40589
40607
|
This allows you to:
|
|
40590
40608
|
- Test mappings with representative data
|
|
@@ -40634,8 +40652,9 @@ components:
|
|
|
40634
40652
|
the filter keeps first, so a preview of a later step has a record to follow.
|
|
40635
40653
|
- |-
|
|
40636
40654
|
A page-processor preview hands a lookup's results mapping only the first record of the
|
|
40637
|
-
lookup's mockOutput
|
|
40638
|
-
|
|
40655
|
+
lookup's mockOutput — whatever `test.limit` the lookup carries — while a test run hands it
|
|
40656
|
+
every record, or the first `test.limit` of them on a `type: test` lookup. Put first the
|
|
40657
|
+
record a later step's preview should be built from.
|
|
40639
40658
|
properties:
|
|
40640
40659
|
page_of_records:
|
|
40641
40660
|
type: array
|
package/package.json
CHANGED