@celigo/api-specs 0.2.135 → 0.2.137
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/ai-agent.yml +4 -1
- package/dist/ediprofile.yml +24 -8
- package/dist/editransaction.yml +0 -3
- package/dist/export.yml +4 -2
- package/dist/filedefinition.yml +61 -78
- package/dist/flow.yml +94 -45
- package/dist/job.yml +9 -5
- package/dist/tool.yml +4 -2
- package/dist/tradingpartnerconnector.yml +24 -8
- package/package.json +1 -1
- package/schemas.json +351 -360
package/dist/ai-agent.yml
CHANGED
|
@@ -4329,7 +4329,10 @@ components:
|
|
|
4329
4329
|
transformed name: `data[0].name` copies a field of the first result,
|
|
4330
4330
|
`data` copies the whole result array. A bare result-record field name
|
|
4331
4331
|
(e.g. `name`) resolves to nothing and merges nothing, and so does the
|
|
4332
|
-
raw response path a transform consumed.
|
|
4332
|
+
raw response path a transform consumed. A lookup that groups its
|
|
4333
|
+
results returns each group as an array inside `data`
|
|
4334
|
+
(`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
|
|
4335
|
+
reads the first row of the first group, and `data[0]` copies the group.
|
|
4333
4336
|
- **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
|
|
4334
4337
|
"ignored": false, "errors": [], "_json": <raw destination response>,
|
|
4335
4338
|
...<response body fields flattened at the root>}` — use `id` for the
|
package/dist/ediprofile.yml
CHANGED
|
@@ -409,13 +409,19 @@ components:
|
|
|
409
409
|
- edifact
|
|
410
410
|
tpInterchangeId:
|
|
411
411
|
type: string
|
|
412
|
-
description:
|
|
412
|
+
description: |-
|
|
413
|
+
Trading partner's interchange identifier: the sender ID on files the partner sends and the
|
|
414
|
+
receiver ID on files you send (X12 ISA06 and ISA08 respectively; the UNB sender and
|
|
415
|
+
recipient in EDIFACT).
|
|
413
416
|
examples:
|
|
414
417
|
- ACMECORP
|
|
415
418
|
- '5412345678901'
|
|
416
419
|
myInterchangeId:
|
|
417
420
|
type: string
|
|
418
|
-
description:
|
|
421
|
+
description: |-
|
|
422
|
+
Your interchange identifier: the receiver ID on files the partner sends and the sender ID
|
|
423
|
+
on files you send (X12 ISA08 and ISA06 respectively; the UNB recipient and sender in
|
|
424
|
+
EDIFACT).
|
|
419
425
|
examples:
|
|
420
426
|
- MYCOMPANY
|
|
421
427
|
- '1234567890123'
|
|
@@ -453,9 +459,12 @@ components:
|
|
|
453
459
|
- '00'
|
|
454
460
|
isa02:
|
|
455
461
|
type: string
|
|
456
|
-
description:
|
|
462
|
+
description: |-
|
|
463
|
+
X12 ISA02 — Authorization Information. When parsing, an inbound file's ISA02 must match
|
|
464
|
+
this value after trimming (`data_mismatch` otherwise), so a blank ISA02 matches `""` and
|
|
465
|
+
not ten spaces.
|
|
457
466
|
examples:
|
|
458
|
-
- '
|
|
467
|
+
- ''
|
|
459
468
|
isa03:
|
|
460
469
|
type: string
|
|
461
470
|
enum:
|
|
@@ -469,9 +478,12 @@ components:
|
|
|
469
478
|
- '00'
|
|
470
479
|
isa04:
|
|
471
480
|
type: string
|
|
472
|
-
description:
|
|
481
|
+
description: |-
|
|
482
|
+
X12 ISA04 — Security Information. When parsing, an inbound file's ISA04 must match this
|
|
483
|
+
value after trimming (`data_mismatch` otherwise), so a blank ISA04 matches `""` and not
|
|
484
|
+
ten spaces.
|
|
473
485
|
examples:
|
|
474
|
-
- '
|
|
486
|
+
- ''
|
|
475
487
|
tpIdQualifier:
|
|
476
488
|
type: string
|
|
477
489
|
description: |
|
|
@@ -539,12 +551,16 @@ components:
|
|
|
539
551
|
- ':'
|
|
540
552
|
tpGroupId:
|
|
541
553
|
type: string
|
|
542
|
-
description:
|
|
554
|
+
description: |-
|
|
555
|
+
Trading partner's X12 application code: GS02 (sender) on files the partner sends and GS03
|
|
556
|
+
(receiver) on files you send.
|
|
543
557
|
examples:
|
|
544
558
|
- ACME
|
|
545
559
|
myGroupId:
|
|
546
560
|
type: string
|
|
547
|
-
description:
|
|
561
|
+
description: |-
|
|
562
|
+
Your X12 application code: GS03 (receiver) on files the partner sends and GS02 (sender) on
|
|
563
|
+
files you send.
|
|
548
564
|
examples:
|
|
549
565
|
- MYAPP
|
|
550
566
|
gs07:
|
package/dist/editransaction.yml
CHANGED
package/dist/export.yml
CHANGED
|
@@ -16385,8 +16385,10 @@ components:
|
|
|
16385
16385
|
description: |-
|
|
16386
16386
|
EDI profile this export uses to parse incoming X12 or EDIFACT documents into structured
|
|
16387
16387
|
JSON — it supplies the envelope qualifiers, delimiters, version, and validation rules.
|
|
16388
|
-
Set it when the export parses or validates EDI files
|
|
16389
|
-
|
|
16388
|
+
Set it when the export parses or validates EDI files (a save with a `delimited/x12` file
|
|
16389
|
+
definition at `version` `"2"` and no profile fails with 422 `missing_ediProfile`); omit
|
|
16390
|
+
it otherwise. Accepted on the file-reading exports — FTP, AS2, S3 and HTTP file mode
|
|
16391
|
+
(`http.type: "file"`).
|
|
16390
16392
|
x-celigo-ai-guidance:
|
|
16391
16393
|
- 'An HTTP export accepts this field only in file mode (`http.type: "file"`, the folder mode of file-provider connectors such as Google Drive, Box, Dropbox, Azure Blob, Google Cloud Storage and Celigo Storage). On a REST/records HTTP export the save is rejected with `not_supported`: "EDIProfile can only be associated with the export of type FTP, AS2, S3 or HTTP file."'
|
|
16392
16394
|
examples:
|
package/dist/filedefinition.yml
CHANGED
|
@@ -460,9 +460,9 @@ components:
|
|
|
460
460
|
- **Delimited (CSV / TSV)** — one element per column. `name` is
|
|
461
461
|
the human label; `value` is the column id used to address the
|
|
462
462
|
field downstream (e.g. `orderId`, `customerName`).
|
|
463
|
-
- **Fixed-width** —
|
|
464
|
-
|
|
465
|
-
|
|
463
|
+
- **Fixed-width** — one element per column, gaps included, each
|
|
464
|
+
with a `length`. Columns are read in element order;
|
|
465
|
+
`startPosition` doesn't move a column.
|
|
466
466
|
- **EDI X12 / EDIFACT** — element values follow the segmentNN
|
|
467
467
|
convention (`ISA01`, `BEG03`, `UNB02`). Segment-element
|
|
468
468
|
definitions whose value comes from the trading-partner profile
|
|
@@ -489,7 +489,9 @@ components:
|
|
|
489
489
|
descriptive text such as `Authorization Information
|
|
490
490
|
Qualifier`; for delimited data columns, the output key (the
|
|
491
491
|
parser uses `name` as the field key in each parsed
|
|
492
|
-
record); for the row-type marker, equals `value
|
|
492
|
+
record); for the row-type marker, equals `value` (in a
|
|
493
|
+
container's child rule, a marker whose `name` differs from
|
|
494
|
+
its `value` parses to an empty record without an error).
|
|
493
495
|
examples:
|
|
494
496
|
- Order ID
|
|
495
497
|
- Authorization Information Qualifier
|
|
@@ -657,28 +659,30 @@ components:
|
|
|
657
659
|
type: integer
|
|
658
660
|
minimum: 1
|
|
659
661
|
description: |
|
|
660
|
-
|
|
661
|
-
`length`
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
Doesn't place the column: fixed-width columns are read in
|
|
663
|
+
element order, each `length` characters wide, so a definition
|
|
664
|
+
that skips columns misreads them without an error. Describe a
|
|
665
|
+
gap with a placeholder element of the gap's width instead.
|
|
664
666
|
length:
|
|
665
667
|
type: integer
|
|
666
668
|
minimum: 1
|
|
667
669
|
description: |
|
|
668
|
-
Fixed-width: column width in characters.
|
|
669
|
-
|
|
670
|
+
Fixed-width: column width in characters. Every fixed-width
|
|
671
|
+
element needs one; the parser refuses an element without it
|
|
672
|
+
(`Every fixed width element must provide a "length" property
|
|
673
|
+
between 1 and 512.`).
|
|
670
674
|
start:
|
|
671
675
|
type: integer
|
|
672
676
|
description: |
|
|
673
|
-
Legacy fixed-width start offset
|
|
674
|
-
|
|
675
|
-
`
|
|
677
|
+
Legacy fixed-width start offset, paired with `end`. It doesn't
|
|
678
|
+
replace `length`: an element with `start`/`end` and no
|
|
679
|
+
`length` is refused.
|
|
676
680
|
end:
|
|
677
681
|
type: integer
|
|
678
682
|
description: |
|
|
679
|
-
Legacy fixed-width end offset
|
|
680
|
-
|
|
681
|
-
`
|
|
683
|
+
Legacy fixed-width end offset, paired with `start`. It doesn't
|
|
684
|
+
replace `length`: an element with `start`/`end` and no
|
|
685
|
+
`length` is refused.
|
|
682
686
|
CompositeValue:
|
|
683
687
|
type: object
|
|
684
688
|
additionalProperties: true
|
|
@@ -735,11 +739,11 @@ components:
|
|
|
735
739
|
- **Branch rule** — has `children` (and optionally `elements`).
|
|
736
740
|
Used to nest loops / sub-segments. EDI envelopes always nest
|
|
737
741
|
their inner segments under `children`.
|
|
738
|
-
- **Container rule** — sets `container: true`.
|
|
739
|
-
|
|
740
|
-
`
|
|
741
|
-
`
|
|
742
|
-
|
|
742
|
+
- **Container rule** — sets `container: true`. A loop wrapper
|
|
743
|
+
that produces no row of its own: a group `name`, a
|
|
744
|
+
`maxOccurrence` above `1` and no `elements`, with the repeated
|
|
745
|
+
row's rule under `children`. It is the only shape that repeats
|
|
746
|
+
rows (see `container`).
|
|
743
747
|
|
|
744
748
|
**Envelopes and `closeRule`**
|
|
745
749
|
|
|
@@ -782,7 +786,9 @@ components:
|
|
|
782
786
|
`name` and `value` set to the segment id (e.g.
|
|
783
787
|
`{"name": "ISA", "value": "ISA"}`) followed by one element
|
|
784
788
|
per segment-element (`ISA01`, `ISA02`, ...). Delimited
|
|
785
|
-
rules use one element per column.
|
|
789
|
+
rules use one element per column. Omit the key on a rule
|
|
790
|
+
with no elements of its own, such as a container wrapper: an
|
|
791
|
+
empty `elements` array fails the parse.
|
|
786
792
|
items:
|
|
787
793
|
$ref: '#/components/schemas/Element'
|
|
788
794
|
children:
|
|
@@ -822,13 +828,16 @@ components:
|
|
|
822
828
|
type: boolean
|
|
823
829
|
description: |
|
|
824
830
|
Marks this rule as a pure loop wrapper that does not emit a
|
|
825
|
-
row of its own
|
|
826
|
-
|
|
827
|
-
`
|
|
831
|
+
row of its own, and is the only way rows repeat: give the
|
|
832
|
+
wrapper a group `name`, a `maxOccurrence` above `1` and no
|
|
833
|
+
`elements`, and put the repeated row's rule under its
|
|
834
|
+
`children` (for EDI, the `ST` or `UNH` rule with its elements,
|
|
835
|
+
children and `closeRule`). Parsed rows come back as an array
|
|
836
|
+
under the wrapper's `name`; `container: true` on a rule with
|
|
837
|
+
its own `elements` isn't honored as a loop.
|
|
828
838
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
`container: true` paired with `maxOccurrence <= 1` with
|
|
839
|
+
The parser rejects `container: true` paired with
|
|
840
|
+
`maxOccurrence <= 1` with
|
|
832
841
|
`Invalid rules: maxOccurences should be greater than '1',
|
|
833
842
|
when the container is 'true'`.
|
|
834
843
|
default: false
|
|
@@ -840,10 +849,10 @@ components:
|
|
|
840
849
|
minimum: 1
|
|
841
850
|
description: |
|
|
842
851
|
Upper bound on how many times this rule may repeat at its
|
|
843
|
-
current position.
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
852
|
+
current position. Rows repeat only under a `container`
|
|
853
|
+
wrapper, so larger values such as `1000` go on the wrapper of
|
|
854
|
+
an `ST` transaction set or a line-item loop; EDI envelopes use
|
|
855
|
+
`1` (one ISA per file, one GS per group).
|
|
847
856
|
|
|
848
857
|
Required to be greater than `1` when `container` is
|
|
849
858
|
`true`.
|
|
@@ -972,14 +981,15 @@ components:
|
|
|
972
981
|
description: EDI document type for acknowledgement documents.
|
|
973
982
|
globalId:
|
|
974
983
|
type: string
|
|
975
|
-
description:
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
984
|
+
description: |-
|
|
985
|
+
Entry in the platform's registry of standard EDI document definitions that this
|
|
986
|
+
definition is built from. On an EDI-licensed account an X12 or EDIFACT create without
|
|
987
|
+
it fails with 422 `global_id_not_provided`, and one naming an id the registry doesn't
|
|
988
|
+
have fails with 422 `invalid_global_id`. No public route lists the registry, so copy the
|
|
989
|
+
`globalId` of an existing definition for the same standard document. Immutable after
|
|
990
|
+
creation.
|
|
981
991
|
examples:
|
|
982
|
-
-
|
|
992
|
+
- Generic-4010-850-PurchaseOrder
|
|
983
993
|
rules:
|
|
984
994
|
type: array
|
|
985
995
|
x-celigo-agent:
|
|
@@ -991,12 +1001,14 @@ components:
|
|
|
991
1001
|
`format` (delimited, EDI X12/EDIFACT, and fixed-width): the first
|
|
992
1002
|
element is the file's root rule, EDI envelopes nest through
|
|
993
1003
|
`Rule.children`, and openers pair with trailers via
|
|
994
|
-
`Rule.closeRule`. Fixed-width rules
|
|
995
|
-
each element
|
|
1004
|
+
`Rule.closeRule`. Fixed-width rules list every column in order,
|
|
1005
|
+
each element with its `length`.
|
|
996
1006
|
|
|
997
1007
|
The cleared / "no rules configured" form is an empty array `[]`.
|
|
998
1008
|
The serialized rules tree must not exceed 20 KB once attached to
|
|
999
|
-
the parent file definition document.
|
|
1009
|
+
the parent file definition document. A save doesn't parse a sample,
|
|
1010
|
+
so a tree that saves can still fail or drop rows when parsed; test
|
|
1011
|
+
it against a sample with `POST /v1/processors/structuredFileParser`.
|
|
1000
1012
|
items:
|
|
1001
1013
|
$ref: '#/components/schemas/Rule'
|
|
1002
1014
|
fixed:
|
|
@@ -1101,43 +1113,14 @@ components:
|
|
|
1101
1113
|
- ext-filedef-12345
|
|
1102
1114
|
x-celigo-ai-guidance:
|
|
1103
1115
|
- |-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
columns. For EDI (X12 / EDIFACT) the array still has one root
|
|
1108
|
-
rule, but that rule's ``children`` build the
|
|
1109
|
-
envelope → group → transaction → segment hierarchy.
|
|
1116
|
+
`rules` is an ordered array of `Rule` nodes for every `format`, fixed-width included. For
|
|
1117
|
+
EDI (X12 / EDIFACT) the root rule's `children` build the envelope → group → transaction →
|
|
1118
|
+
segment hierarchy.
|
|
1110
1119
|
- |-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
## SHAPE — VARIES BY ``format``
|
|
1116
|
-
|
|
1117
|
-
Two valid top-level shapes, selected by the parent file definition's
|
|
1118
|
-
``format``:
|
|
1119
|
-
|
|
1120
|
-
- **Array of ``Rule``** — used by every delimited variant
|
|
1121
|
-
(``delimited``, ``delimited/x12``, ``delimited/edifact``, etc.).
|
|
1122
|
-
The first element is the file's root rule; for EDI, deeper
|
|
1123
|
-
envelopes nest through ``Rule.children``.
|
|
1124
|
-
|
|
1125
|
-
- **Single ``Rule`` object** — used by ``format: "fixed"`` (fixed-
|
|
1126
|
-
width). The whole file is described by one rule whose
|
|
1127
|
-
``elements`` enumerate the columns by ``startPosition`` /
|
|
1128
|
-
``length``.
|
|
1129
|
-
|
|
1130
|
-
The ``oneOf`` below documents both shapes. Tooling that consumes
|
|
1131
|
-
this spec to drive UI rendering or generation should branch on
|
|
1132
|
-
``format`` to decide which arm applies — there is no
|
|
1133
|
-
discriminator field on the rules tree itself.
|
|
1134
|
-
|
|
1135
|
-
## EMPTY / CLEARED FORM
|
|
1136
|
-
|
|
1137
|
-
A cleared rules tree is ``[]`` for delimited / EDI and ``{}`` for
|
|
1138
|
-
fixed-width. Both empty forms are accepted by the parser as
|
|
1139
|
-
"no rules configured" and round-trip cleanly through the
|
|
1140
|
-
structuredFileParser.
|
|
1120
|
+
Rows repeat only under an elements-less `container: true` rule (a group `name`,
|
|
1121
|
+
`maxOccurrence` above 1, no `elements`) whose child rule carries the row's elements. A
|
|
1122
|
+
row-marker rule with no such container above it matches only the first row, and the parser
|
|
1123
|
+
drops the rest without an error.
|
|
1141
1124
|
ResourceResponse:
|
|
1142
1125
|
type: object
|
|
1143
1126
|
description: Response
|