@celigo/api-specs 0.2.333 → 0.2.335
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 -2
- package/dist/flow.yml +39 -13
- package/dist/import.yml +7 -0
- package/dist/tool.yml +26 -7
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/api.yml
CHANGED
|
@@ -1799,7 +1799,8 @@ paths:
|
|
|
1799
1799
|
from the new record, and its `response` stage holds the saved records. Remove `mockOutput`
|
|
1800
1800
|
from the export to call the source again. Real calls to the API don't read it. Imports never
|
|
1801
1801
|
send; each returns its saved `mockResponse`, or a placeholder response when none is saved
|
|
1802
|
-
(see `mockResponse` on imports)
|
|
1802
|
+
(see `mockResponse` on imports), and a run in which such an import executes saves that
|
|
1803
|
+
placeholder on it as its `mockResponse`.
|
|
1803
1804
|
|
|
1804
1805
|
Test runs never paginate, whatever `pagination.enabled` says: the captured success
|
|
1805
1806
|
response carries no `pagination` object, and a `Celigo-Next-Cursor` entry in
|
|
@@ -1996,7 +1997,13 @@ paths:
|
|
|
1996
1997
|
properties:
|
|
1997
1998
|
stages:
|
|
1998
1999
|
type: array
|
|
1999
|
-
description:
|
|
2000
|
+
description: |-
|
|
2001
|
+
Ordered stages that ran for this step. A lookup on an HTTP export that called
|
|
2002
|
+
its application has `statusCode` and the application's response `headers`
|
|
2003
|
+
beside `body` and `url` in its `response` output; one that answered from the
|
|
2004
|
+
`mockOutput` saved on its export has only `body` and `url` there, and its
|
|
2005
|
+
stage list starts with `exportMapping` — no request was sent, though `request`
|
|
2006
|
+
and `response` are recorded.
|
|
2000
2007
|
items:
|
|
2001
2008
|
type: object
|
|
2002
2009
|
properties:
|
|
@@ -2124,6 +2131,11 @@ paths:
|
|
|
2124
2131
|
request/response envelope with `GET /v1/apis/{_id}/{_stepId}/requests/{key}`. A step id that
|
|
2125
2132
|
is not an export or import (such as a router) returns a 400 `invalid_ref`, and a step that
|
|
2126
2133
|
captured no request/response data returns a 404 `req_res_logs_not_found`.
|
|
2134
|
+
|
|
2135
|
+
An entry is recorded for a lookup on an HTTP export whether or not its request left the
|
|
2136
|
+
platform: one that answered from the `mockOutput` saved on its export has an entry too. To
|
|
2137
|
+
tell a call that was made from one that was not, read the step's `response` stage with
|
|
2138
|
+
`GET /v1/apis/{_id}/test/run/{runId}/{_stepId}`.
|
|
2127
2139
|
parameters:
|
|
2128
2140
|
- name: _id
|
|
2129
2141
|
in: path
|
package/dist/flow.yml
CHANGED
|
@@ -4064,6 +4064,12 @@ paths:
|
|
|
4064
4064
|
The body's `_exportId` picks the page generator the run starts from, and
|
|
4065
4065
|
the flow can be enabled or disabled.
|
|
4066
4066
|
|
|
4067
|
+
A test run does not call every application its steps name. An export with a
|
|
4068
|
+
saved `mockOutput` — the page generator or a lookup — answers from it and is
|
|
4069
|
+
not called; one with none is read from its application. Imports never send.
|
|
4070
|
+
For an HTTP export, `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}` shows
|
|
4071
|
+
which it did.
|
|
4072
|
+
|
|
4067
4073
|
Test runs are kept in a **separate history** from production runs — the
|
|
4068
4074
|
`flowJob` and `childJobs` returned here are test artifacts, not records
|
|
4069
4075
|
you'll find via `GET /v1/jobs`. The top-level `metadata` map is keyed by
|
|
@@ -4072,7 +4078,7 @@ paths:
|
|
|
4072
4078
|
`GET /v1/flows/{_id}/test/run/{runId}/{_stepId}` to inspect per-stage
|
|
4073
4079
|
input/output and errors, or with
|
|
4074
4080
|
`GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
|
|
4075
|
-
for
|
|
4081
|
+
for the step's request log.
|
|
4076
4082
|
|
|
4077
4083
|
**Endpoint template applies across three resource families.** The same
|
|
4078
4084
|
test-run shape also exists for Tools (`/v1/tools/{_id}/test/run`) and
|
|
@@ -4081,6 +4087,13 @@ paths:
|
|
|
4081
4087
|
A test run processes only the first page of records: later pages arrive empty, so downstream
|
|
4082
4088
|
steps see only the first page's records.
|
|
4083
4089
|
|
|
4090
|
+
A run that reads an export from its application saves what it read on the export as its
|
|
4091
|
+
`mockOutput` (the export's `lastModified` changes), so every later test run answers that step
|
|
4092
|
+
from the saved records instead of calling the application; remove `mockOutput` from the
|
|
4093
|
+
export to read the application again. An import returns its saved `mockResponse`, or a
|
|
4094
|
+
placeholder response when none is saved (see `mockResponse` on imports), and a run saves that
|
|
4095
|
+
placeholder on an import that had none.
|
|
4096
|
+
|
|
4084
4097
|
Test-run state is short-lived and ephemeral — capture the `runId` (the
|
|
4085
4098
|
`flowJob._id`) and read back any step detail soon after the run returns.
|
|
4086
4099
|
parameters:
|
|
@@ -4244,10 +4257,11 @@ paths:
|
|
|
4244
4257
|
|
|
4245
4258
|
A stage's `input` and `output` are `null` when the stage has nothing on
|
|
4246
4259
|
that side, and arrays for most stages: the `request` and `response`
|
|
4247
|
-
stages' `output` lists the
|
|
4248
|
-
`headers`, and `body` when
|
|
4249
|
-
|
|
4250
|
-
|
|
4260
|
+
stages' `output` lists the HTTP request the step rendered (`url`,
|
|
4261
|
+
`method`, `headers`, and `body` when it has one) and the reply — for an
|
|
4262
|
+
HTTP step, recorded whether or not the request left the platform, see
|
|
4263
|
+
`stages` in the response — and record stages such as `parse` hold
|
|
4264
|
+
envelopes carrying `record` and `errors`. The response-mapping stages hold objects
|
|
4251
4265
|
instead. `responseMap` takes `{contexts}`, one context per record (the
|
|
4252
4266
|
step's parsed reply plus `statusCode`, `headers`, and `_json`), and
|
|
4253
4267
|
returns `{data}`, the mapped records as `{record, traceKey}` entries.
|
|
@@ -4260,8 +4274,7 @@ paths:
|
|
|
4260
4274
|
`errors`: one entry per record, with the `branches` positions the router
|
|
4261
4275
|
sent it to and any routing `errors`. Use
|
|
4262
4276
|
`GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
|
|
4263
|
-
|
|
4264
|
-
the staged record view.
|
|
4277
|
+
for the step's request log instead of the staged record view.
|
|
4265
4278
|
|
|
4266
4279
|
**Endpoint template applies across three resource families.** The same
|
|
4267
4280
|
path shape also exists for Tools (`/v1/tools/{_id}/test/run/{runId}/{_stepId}`)
|
|
@@ -4307,7 +4320,15 @@ paths:
|
|
|
4307
4320
|
properties:
|
|
4308
4321
|
stages:
|
|
4309
4322
|
type: array
|
|
4310
|
-
description:
|
|
4323
|
+
description: |-
|
|
4324
|
+
Ordered stages the step executed. An HTTP export that called its application
|
|
4325
|
+
has `statusCode` and the application's response `headers` beside `body` and
|
|
4326
|
+
`url` in its `response` output; one that answered from the `mockOutput` saved
|
|
4327
|
+
on it has only `body` and `url` there, and its stage list starts with
|
|
4328
|
+
`exportMapping` — no request was sent, though both stages are recorded. A
|
|
4329
|
+
NetSuite search or Salesforce SOQL export records `request` and `parse` only,
|
|
4330
|
+
the same in both cases. An import's request is never sent: its `response`
|
|
4331
|
+
output carries its `mockResponse` status, 200 for the placeholder.
|
|
4311
4332
|
items:
|
|
4312
4333
|
type: object
|
|
4313
4334
|
description: One stage of the step.
|
|
@@ -4497,11 +4518,16 @@ paths:
|
|
|
4497
4518
|
- Flows
|
|
4498
4519
|
summary: Get request/response logs for a flow test-run step
|
|
4499
4520
|
description: |-
|
|
4500
|
-
Returns the
|
|
4501
|
-
specific step of a flow test run. Only
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4521
|
+
Returns the HTTP request/response log pairs captured during a
|
|
4522
|
+
specific step of a flow test run. Only export, import, and lookup steps
|
|
4523
|
+
produce entries — routers, filters, and other in-process stages are
|
|
4524
|
+
rejected with `req_res_logs_not_found` by design.
|
|
4525
|
+
|
|
4526
|
+
An entry is recorded for an HTTP step whether or not its request left the
|
|
4527
|
+
platform: an HTTP export that answered from the `mockOutput` saved on it
|
|
4528
|
+
has one, and so does an import, whose request is never sent in a test run.
|
|
4529
|
+
To tell a call that was made from one that was not, read the step's
|
|
4530
|
+
`response` stage with `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}`.
|
|
4505
4531
|
|
|
4506
4532
|
The `runId` comes from the `POST /v1/flows/{_id}/test/run` response (not
|
|
4507
4533
|
from a normal flow run Job record — test runs and regular runs are
|
package/dist/import.yml
CHANGED
|
@@ -18466,6 +18466,13 @@ components:
|
|
|
18466
18466
|
``POST /v1/imports/preview`` is the exception: it executes the
|
|
18467
18467
|
composed destination request for real — mockResponse does not
|
|
18468
18468
|
protect that surface.
|
|
18469
|
+
- |-
|
|
18470
|
+
A test run of a flow, Tool or API in which an import with no
|
|
18471
|
+
saved mockResponse executes saves the placeholder on that import
|
|
18472
|
+
as its mockResponse (the import's ``lastModified`` changes). A
|
|
18473
|
+
saved mockResponse holding ``mockResponse: "replace me"`` is that
|
|
18474
|
+
placeholder, not a response anyone authored — replace it with a
|
|
18475
|
+
realistic one.
|
|
18469
18476
|
items:
|
|
18470
18477
|
type: object
|
|
18471
18478
|
properties:
|
package/dist/tool.yml
CHANGED
|
@@ -2493,7 +2493,8 @@ paths:
|
|
|
2493
2493
|
input, and its `response` stage holds the saved records. Remove `mockOutput` from the export
|
|
2494
2494
|
to call the source again. `POST /v1/tools/{_id}/invoke` neither reads nor writes it. Imports
|
|
2495
2495
|
never send; each returns its saved `mockResponse`, or a placeholder response when none is
|
|
2496
|
-
saved (see `mockResponse` on imports)
|
|
2496
|
+
saved (see `mockResponse` on imports), and a run in which such an import executes saves that
|
|
2497
|
+
placeholder on it as its `mockResponse`. A test run is keyed by the request's `triggeredAt`:
|
|
2497
2498
|
one sent with a `triggeredAt` that an earlier test run of the tool already used is refused
|
|
2498
2499
|
with 400 `test_run_not_allowed` ("Cannot run the test tool when it is already in the running
|
|
2499
2500
|
state."), even after that run has finished. Runs with different `triggeredAt` values run at
|
|
@@ -2720,7 +2721,13 @@ paths:
|
|
|
2720
2721
|
properties:
|
|
2721
2722
|
stages:
|
|
2722
2723
|
type: array
|
|
2723
|
-
description:
|
|
2724
|
+
description: |-
|
|
2725
|
+
Ordered list of stages that ran for the step. A lookup on an HTTP export that
|
|
2726
|
+
called its application has `statusCode` and the application's response
|
|
2727
|
+
`headers` beside `body` and `url` in its `response` output; one that answered
|
|
2728
|
+
from the `mockOutput` saved on its export has only `body` and `url` there, and
|
|
2729
|
+
its stage list starts with `exportMapping` — no request was sent, though
|
|
2730
|
+
`request` and `response` are recorded.
|
|
2724
2731
|
items:
|
|
2725
2732
|
type: object
|
|
2726
2733
|
description: One stage of the step.
|
|
@@ -2848,11 +2855,16 @@ paths:
|
|
|
2848
2855
|
x-internal: false
|
|
2849
2856
|
summary: Get request/response logs for a tool test-run step
|
|
2850
2857
|
description: |-
|
|
2851
|
-
Returns the
|
|
2852
|
-
specific step of a tool test run. Only
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2858
|
+
Returns the HTTP request/response log pairs captured during a
|
|
2859
|
+
specific step of a tool test run. Only export, import, and lookup steps
|
|
2860
|
+
produce entries — routers, filters, and other in-process stages return
|
|
2861
|
+
`404` with code `req_res_logs_not_found` by design.
|
|
2862
|
+
|
|
2863
|
+
An entry is recorded for a lookup on an HTTP export whether or not its
|
|
2864
|
+
request left the platform: one that answered from the `mockOutput` saved on
|
|
2865
|
+
its export has an entry too. To tell a call that was made from one that was
|
|
2866
|
+
not, read the step's `response` stage with
|
|
2867
|
+
`GET /v1/tools/{_id}/test/run/{runId}/{_stepId}`.
|
|
2856
2868
|
|
|
2857
2869
|
The `runId` is the `flowJob._id` returned by
|
|
2858
2870
|
`POST /v1/tools/{_id}/test/run`; the `{_stepId}` is the export or import
|
|
@@ -28188,6 +28200,13 @@ components:
|
|
|
28188
28200
|
``POST /v1/imports/preview`` is the exception: it executes the
|
|
28189
28201
|
composed destination request for real — mockResponse does not
|
|
28190
28202
|
protect that surface.
|
|
28203
|
+
- |-
|
|
28204
|
+
A test run of a flow, Tool or API in which an import with no
|
|
28205
|
+
saved mockResponse executes saves the placeholder on that import
|
|
28206
|
+
as its mockResponse (the import's ``lastModified`` changes). A
|
|
28207
|
+
saved mockResponse holding ``mockResponse: "replace me"`` is that
|
|
28208
|
+
placeholder, not a response anyone authored — replace it with a
|
|
28209
|
+
realistic one.
|
|
28191
28210
|
items:
|
|
28192
28211
|
type: object
|
|
28193
28212
|
properties:
|
package/package.json
CHANGED