@celigo/api-specs 0.2.309 → 0.2.311
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/flow.yml +73 -21
- package/dist/processor.yml +27 -10
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/flow.yml
CHANGED
|
@@ -929,9 +929,19 @@ paths:
|
|
|
929
929
|
- Flows
|
|
930
930
|
summary: Trigger a flow run
|
|
931
931
|
description: |-
|
|
932
|
-
Queues an on-demand run of the flow
|
|
933
|
-
|
|
934
|
-
|
|
932
|
+
Queues an on-demand run of the flow. The run is **asynchronous**.
|
|
933
|
+
|
|
934
|
+
On a serial flow (`runPageGeneratorsInParallel` absent or `false`) the response returns as soon as
|
|
935
|
+
the first page generator is queued. The body is one object, the
|
|
936
|
+
first page generator's parent job, and it carries `message.flowExecutionGroupId`. On `/run` that
|
|
937
|
+
message names the page generators still to queue on `_runNextExportIds`. That run is
|
|
938
|
+
finished only when every parent job with that `flowExecutionGroupId` is terminal. List
|
|
939
|
+
`GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` and match
|
|
940
|
+
`flowExecutionGroupId`. Send `_integrationId` when the flow has one: a caller limited to specific
|
|
941
|
+
integrations receives `400 query_param_required` without it. Keep listing until each page generator
|
|
942
|
+
this run queued has a job. Sibling jobs are created after the response, and
|
|
943
|
+
`GET /v1/flows/{_id}/jobs/latest` can still show a generator's previous run until the new job
|
|
944
|
+
exists. A flow with one page generator has only the returned `_jobId`; poll `GET /v1/jobs/{_id}`.
|
|
935
945
|
|
|
936
946
|
The request body is optional. When omitted, the flow runs with its configured schedule behavior —
|
|
937
947
|
for delta flows this means using the current `lastExportDateTime` as the lower bound. Pass
|
|
@@ -961,6 +971,11 @@ paths:
|
|
|
961
971
|
instance is queued or running is refused with `409 job_already_queued` ("Another instance
|
|
962
972
|
for this flow is already queued or running"), and a run-next-flow trigger that arrives in
|
|
963
973
|
that state is dropped rather than queued.
|
|
974
|
+
|
|
975
|
+
**Response shape:** See the opening for how a serial run is finished. A parallel flow
|
|
976
|
+
(`runPageGeneratorsInParallel: true`) returns an array with one record per page generator queued
|
|
977
|
+
in the request. Each record has its own `_jobId` and `message.flowExecutionGroupId`, and every
|
|
978
|
+
record in that array shares the id. Those parent jobs are in the response.
|
|
964
979
|
parameters:
|
|
965
980
|
- name: _id
|
|
966
981
|
in: path
|
|
@@ -994,20 +1009,38 @@ paths:
|
|
|
994
1009
|
- 69a9aa5c54e3d9bd11b86d82
|
|
995
1010
|
responses:
|
|
996
1011
|
'200':
|
|
997
|
-
description: Flow run accepted and queued.
|
|
1012
|
+
description: Flow run accepted and queued. See the operation description for the serial-vs-parallel response shape and `flowExecutionGroupId` sibling-job discovery.
|
|
998
1013
|
content:
|
|
999
1014
|
application/json:
|
|
1000
1015
|
schema:
|
|
1001
1016
|
$ref: '#/components/schemas/FlowRunResponse'
|
|
1002
1017
|
examples:
|
|
1003
1018
|
queued:
|
|
1004
|
-
summary:
|
|
1019
|
+
summary: Serial run queued — match message.flowExecutionGroupId on the flow's parent jobs
|
|
1020
|
+
value:
|
|
1021
|
+
_jobId: 6afd5e2cbc67aa629b7a68d9
|
|
1022
|
+
_exportId: 6afd5c24728ca71e65afd1e8
|
|
1023
|
+
endDate: '2026-11-18T08:13:32.091Z'
|
|
1024
|
+
queueName: 6815153958a3f3c86d0f9c0e
|
|
1025
|
+
message:
|
|
1026
|
+
flowExecutionGroupId: 93d993b378e74f13be4188f040ef549f
|
|
1027
|
+
_runNextExportIds:
|
|
1028
|
+
- 6afd5c24728ca71e65afd1e7
|
|
1029
|
+
parallel:
|
|
1030
|
+
summary: Parallel run queued — one record per page generator, shared flowExecutionGroupId
|
|
1005
1031
|
value:
|
|
1006
|
-
_jobId:
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1032
|
+
- _jobId: 6afd5de7f37416e27250f9e5
|
|
1033
|
+
_exportId: 6afd5c24728ca71e65afd1e8
|
|
1034
|
+
endDate: '2026-11-18T08:12:23.499Z'
|
|
1035
|
+
queueName: 6815153958a3f3c86d0f9c0e
|
|
1036
|
+
message:
|
|
1037
|
+
flowExecutionGroupId: 3497c897122344c8b2ba34d0f4461b0d
|
|
1038
|
+
- _jobId: 6afd5de7f37416e27250f9f2
|
|
1039
|
+
_exportId: 6afd5c24728ca71e65afd1e7
|
|
1040
|
+
endDate: '2026-11-18T08:12:23.499Z'
|
|
1041
|
+
queueName: 6815153958a3f3c86d0f9c0e
|
|
1042
|
+
message:
|
|
1043
|
+
flowExecutionGroupId: 3497c897122344c8b2ba34d0f4461b0d
|
|
1011
1044
|
'400':
|
|
1012
1045
|
$ref: '#/components/responses/400-bad-request'
|
|
1013
1046
|
'401':
|
|
@@ -1055,9 +1088,16 @@ paths:
|
|
|
1055
1088
|
description: |-
|
|
1056
1089
|
Queues a run that re-delivers already-published Event Streams messages through the flow. Only
|
|
1057
1090
|
page generators whose export `adaptorType` is `TopicExport` run; other page generators are
|
|
1058
|
-
skipped. The run is **asynchronous
|
|
1059
|
-
`POST /v1/flows/{_id}/run
|
|
1060
|
-
|
|
1091
|
+
skipped. The run is **asynchronous**. A serial replay returns the same single-object shape as a
|
|
1092
|
+
serial `POST /v1/flows/{_id}/run`. The job carries `runType: replay`.
|
|
1093
|
+
|
|
1094
|
+
On a serial flow the body is one object, the first TopicExport page generator's parent job, with
|
|
1095
|
+
`message.flowExecutionGroupId`. The replay is finished only when every parent job with that
|
|
1096
|
+
`flowExecutionGroupId` is terminal. List
|
|
1097
|
+
`GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` and match
|
|
1098
|
+
`flowExecutionGroupId`. Send `_integrationId` when the flow has one. Keep listing until each
|
|
1099
|
+
TopicExport page generator this replay queued has a job. Polling only the returned `_jobId`
|
|
1100
|
+
misses the others.
|
|
1061
1101
|
|
|
1062
1102
|
A replay leaves the flow's delta checkpoint (`GET /v1/flows/{_id}/lastExportDateTime`) unchanged.
|
|
1063
1103
|
The flow must be enabled. A flow runs one instance at a time, so a replay requested while
|
|
@@ -1098,18 +1138,22 @@ paths:
|
|
|
1098
1138
|
endDate: '2026-10-02T00:00:00.000Z'
|
|
1099
1139
|
responses:
|
|
1100
1140
|
'200':
|
|
1101
|
-
description: Replay accepted and queued.
|
|
1141
|
+
description: Replay accepted and queued. See the operation description for the serial-vs-parallel response shape and `flowExecutionGroupId` sibling-job discovery.
|
|
1102
1142
|
content:
|
|
1103
1143
|
application/json:
|
|
1104
1144
|
schema:
|
|
1105
1145
|
$ref: '#/components/schemas/FlowRunResponse'
|
|
1106
1146
|
examples:
|
|
1107
1147
|
queued:
|
|
1108
|
-
summary:
|
|
1148
|
+
summary: Serial replay queued — match message.flowExecutionGroupId on the flow's parent jobs
|
|
1109
1149
|
value:
|
|
1110
1150
|
_jobId: 6aee88d39d1fade9eadac4de
|
|
1111
1151
|
_exportId: 6aee882fe3da721fd7cb63e8
|
|
1112
1152
|
queueName: topic_out_6aee882fe3da721fd7cb63e8
|
|
1153
|
+
message:
|
|
1154
|
+
_jobId: 6aee88d39d1fade9eadac4de
|
|
1155
|
+
_exportId: 6aee882fe3da721fd7cb63e8
|
|
1156
|
+
flowExecutionGroupId: 3f2b9c1d8e7a4b6c9d0e1f2a3b4c5d6e
|
|
1113
1157
|
'400':
|
|
1114
1158
|
description: |-
|
|
1115
1159
|
The path `_id` is not a well-formed ObjectId (`invalid_ref`), or a `replay` bound is invalid
|
|
@@ -7409,10 +7453,10 @@ components:
|
|
|
7409
7453
|
x-celigo-refModel: exports
|
|
7410
7454
|
FlowRunResponse:
|
|
7411
7455
|
description: |-
|
|
7412
|
-
Response from `POST /v1/flows/{_id}/run`. Shape varies by
|
|
7456
|
+
Response from `POST /v1/flows/{_id}/run` and `POST /v1/flows/{_id}/replay`. Shape varies by flow concurrency mode:
|
|
7413
7457
|
|
|
7414
|
-
- **
|
|
7415
|
-
- **
|
|
7458
|
+
- **Serial** (`runPageGeneratorsInParallel` absent or `false`) — one object with the first queued page generator's `_jobId` and `message.flowExecutionGroupId`. On `/run` that message names page generators still to queue on `_runNextExportIds`. On `/replay` that generator is the first TopicExport; other page generators are skipped. Further parent jobs for this run share `flowExecutionGroupId` and are created after the response. The run is finished only when every parent job with that id is terminal. List `GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` and match `flowExecutionGroupId`. Send `_integrationId` when the flow has one; without it, a caller limited to specific integrations receives `400 query_param_required`. Keep listing until each page generator this run queued has a job. On `/replay` those are the TopicExport generators the replay queued.
|
|
7459
|
+
- **Parallel** (`runPageGeneratorsInParallel: true`) — on `/run`, an array of per-export records, one entry per page generator queued in the request. Each record has its own `_jobId` and the same `message.flowExecutionGroupId`, and those parent jobs are in the response.
|
|
7416
7460
|
- **Rejected run** — an object with an `error` field. (Note: a run on a *disabled* flow is
|
|
7417
7461
|
rejected with HTTP 422 `invalid_flow`, not this shape.)
|
|
7418
7462
|
|
|
@@ -7424,8 +7468,9 @@ components:
|
|
|
7424
7468
|
required:
|
|
7425
7469
|
- _jobId
|
|
7426
7470
|
description: |-
|
|
7427
|
-
|
|
7428
|
-
`endDate`, `queueName`, and `message
|
|
7471
|
+
Serial single-job run result. Observed keys include `_jobId` (the parent job to poll), `_exportId`,
|
|
7472
|
+
`endDate`, `queueName`, and `message`. Use `message.flowExecutionGroupId` to correlate sibling
|
|
7473
|
+
parent jobs from the same run.
|
|
7429
7474
|
properties:
|
|
7430
7475
|
_jobId:
|
|
7431
7476
|
type: string
|
|
@@ -7434,9 +7479,16 @@ components:
|
|
|
7434
7479
|
description: Parent job id for the queued run; poll `GET /v1/jobs/{_id}` for status.
|
|
7435
7480
|
examples:
|
|
7436
7481
|
- 66a1f2c3b4d5e6f7a8b9c0d1
|
|
7482
|
+
message:
|
|
7483
|
+
type: object
|
|
7484
|
+
additionalProperties: true
|
|
7485
|
+
properties:
|
|
7486
|
+
flowExecutionGroupId:
|
|
7487
|
+
type: string
|
|
7488
|
+
description: Correlation id shared by all parent jobs queued for this run. Match this value on jobs returned by `GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` to find sibling parent jobs. Send `_integrationId` when the flow has one.
|
|
7437
7489
|
- title: per-export runs
|
|
7438
7490
|
type: array
|
|
7439
|
-
description: Per-export run
|
|
7491
|
+
description: Per-export results of `POST /v1/flows/{_id}/run` when `runPageGeneratorsInParallel` is `true`. Each element carries its own `_jobId` and `message.flowExecutionGroupId`. Elements from one run share that id.
|
|
7440
7492
|
items:
|
|
7441
7493
|
type: object
|
|
7442
7494
|
additionalProperties: true
|
package/dist/processor.yml
CHANGED
|
@@ -866,12 +866,23 @@ paths:
|
|
|
866
866
|
|
|
867
867
|
Unlike the parser endpoint, the generator places file definition
|
|
868
868
|
fields directly in `rules` (no `fileDefinition` wrapper). Each
|
|
869
|
-
element in the definition must include a `value
|
|
870
|
-
|
|
869
|
+
element in the definition must include a `value`: a Handlebars
|
|
870
|
+
template that produces the text for that field. Literal text is
|
|
871
|
+
output as written. A reference is replaced with a field of the
|
|
872
|
+
context its rule is output with, or with nothing when that context
|
|
873
|
+
has no such field: a rule that repeats is output once for each
|
|
874
|
+
object in `data` and reads that object (`{{firstName}}`), while a
|
|
875
|
+
root rule with no `maxOccurrence` is output once and reads the
|
|
876
|
+
whole array, so it reaches a record by index (`{{0.firstName}}`).
|
|
871
877
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
878
|
+
An X12 definition with `skipEDIValidation: false` fails the request
|
|
879
|
+
with `mandatory_element_absent` when the template of a `required`
|
|
880
|
+
element comes out empty; with `skipEDIValidation: true` the element
|
|
881
|
+
is output empty.
|
|
882
|
+
|
|
883
|
+
The `data` array carries the records those references read. The
|
|
884
|
+
response has `mediaType: "text"` with the generated content as one
|
|
885
|
+
string, and does not include `dataRecordTraceKeys` or
|
|
875
886
|
`traceKeysDuplicate`.
|
|
876
887
|
|
|
877
888
|
**Required file definition fields** — `name`, `version` (string
|
|
@@ -894,10 +905,13 @@ paths:
|
|
|
894
905
|
data:
|
|
895
906
|
type: array
|
|
896
907
|
description: |-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
908
|
+
Records read by the Handlebars references in element
|
|
909
|
+
`value`s. A rule that repeats outputs its rows once for
|
|
910
|
+
each object in the array, with that object as the context
|
|
911
|
+
for its elements and child rules. A root rule with no
|
|
912
|
+
`maxOccurrence` outputs one row with the whole array as
|
|
913
|
+
its context, so it reads a record by index
|
|
914
|
+
(`{{0.firstName}}`).
|
|
901
915
|
items:
|
|
902
916
|
type: object
|
|
903
917
|
additionalProperties: true
|
|
@@ -993,7 +1007,8 @@ paths:
|
|
|
993
1007
|
description: |-
|
|
994
1008
|
Array of segment definitions. Each segment has a `name`
|
|
995
1009
|
and `elements` array. Each element must have `name` and
|
|
996
|
-
`value` (
|
|
1010
|
+
`value` (a Handlebars template that produces the field's
|
|
1011
|
+
text).
|
|
997
1012
|
items:
|
|
998
1013
|
type: object
|
|
999
1014
|
additionalProperties: true
|
|
@@ -1022,6 +1037,8 @@ paths:
|
|
|
1022
1037
|
rules:
|
|
1023
1038
|
- name: HDR
|
|
1024
1039
|
elements:
|
|
1040
|
+
- name: HDR
|
|
1041
|
+
value: HDR
|
|
1025
1042
|
- name: firstName
|
|
1026
1043
|
value: John
|
|
1027
1044
|
- name: lastName
|
package/package.json
CHANGED