@celigo/api-specs 0.2.136 → 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/ediprofile.yml +24 -8
- package/dist/editransaction.yml +0 -3
- package/dist/export.yml +4 -2
- package/dist/filedefinition.yml +61 -78
- package/dist/tool.yml +4 -2
- package/dist/tradingpartnerconnector.yml +24 -8
- package/package.json +1 -1
- package/schemas.json +1 -1
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
|
package/dist/tool.yml
CHANGED
|
@@ -37376,8 +37376,10 @@ components:
|
|
|
37376
37376
|
description: |-
|
|
37377
37377
|
EDI profile this export uses to parse incoming X12 or EDIFACT documents into structured
|
|
37378
37378
|
JSON — it supplies the envelope qualifiers, delimiters, version, and validation rules.
|
|
37379
|
-
Set it when the export parses or validates EDI files
|
|
37380
|
-
|
|
37379
|
+
Set it when the export parses or validates EDI files (a save with a `delimited/x12` file
|
|
37380
|
+
definition at `version` `"2"` and no profile fails with 422 `missing_ediProfile`); omit
|
|
37381
|
+
it otherwise. Accepted on the file-reading exports — FTP, AS2, S3 and HTTP file mode
|
|
37382
|
+
(`http.type: "file"`).
|
|
37381
37383
|
x-celigo-ai-guidance:
|
|
37382
37384
|
- '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."'
|
|
37383
37385
|
examples:
|
|
@@ -899,7 +899,8 @@ components:
|
|
|
899
899
|
- |-
|
|
900
900
|
A field that is automatically set to a predefined value during trading partner onboarding.
|
|
901
901
|
The `path` identifies which field on the target resource to set,
|
|
902
|
-
and `values` provides the value(s) to assign
|
|
902
|
+
and `values` provides the value(s) to assign, except the template stand-ins named on the
|
|
903
|
+
section's `preConfiguredFields` and `supportedBy.connection.preConfiguredFields`.
|
|
903
904
|
properties:
|
|
904
905
|
_id:
|
|
905
906
|
type: string
|
|
@@ -954,9 +955,15 @@ components:
|
|
|
954
955
|
- 6a2a623c715132b80ae5d06c
|
|
955
956
|
path:
|
|
956
957
|
type: string
|
|
957
|
-
description:
|
|
958
|
+
description: |-
|
|
959
|
+
Dot-notation path of the field on the target resource, or the field's form label: EDI
|
|
960
|
+
profile sections commonly name fields by label (for example the trading partner
|
|
961
|
+
interchange ID), so map a label to its profile field before checking it.
|
|
958
962
|
x-celigo-ai-guidance:
|
|
959
|
-
-
|
|
963
|
+
- |-
|
|
964
|
+
The field the user must set, as a dot-notation path on the target resource or as the
|
|
965
|
+
field's form label (common in EDI profile sections). Map a label to its profile field,
|
|
966
|
+
such as the trading partner interchange ID to `tpInterchangeId`, before checking it.
|
|
960
967
|
examples:
|
|
961
968
|
- name
|
|
962
969
|
- ftp.username
|
|
@@ -1042,12 +1049,17 @@ components:
|
|
|
1042
1049
|
$ref: '#/components/schemas/Filter'
|
|
1043
1050
|
preConfiguredFields:
|
|
1044
1051
|
type: array
|
|
1045
|
-
description:
|
|
1052
|
+
description: |-
|
|
1053
|
+
Fields set to predefined values during onboarding. In an EDI profile section, a value for
|
|
1054
|
+
your own identity (`myInterchangeId`, `myGroupId`) or a placeholder partner ID such as
|
|
1055
|
+
`XXXXXXXXXXXXXXX` is a template stand-in, not a real value; the real IDs are among the
|
|
1056
|
+
fields the user must set.
|
|
1046
1057
|
x-celigo-ai-guidance:
|
|
1047
1058
|
- |-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1059
|
+
Fields set to predefined values when a trading partner resource is created from this
|
|
1060
|
+
connector. In an EDI profile section, never apply an own-identity value
|
|
1061
|
+
(`myInterchangeId`, `myGroupId`) or a placeholder partner ID such as `XXXXXXXXXXXXXXX`:
|
|
1062
|
+
they are template stand-ins, and the real IDs come from the user and the partner.
|
|
1051
1063
|
items:
|
|
1052
1064
|
$ref: '#/components/schemas/PreConfiguredField'
|
|
1053
1065
|
fieldsUserMustSet:
|
|
@@ -1165,7 +1177,11 @@ components:
|
|
|
1165
1177
|
$ref: '#/components/schemas/Filter'
|
|
1166
1178
|
preConfiguredFields:
|
|
1167
1179
|
type: array
|
|
1168
|
-
description:
|
|
1180
|
+
description: |-
|
|
1181
|
+
Fields automatically set on the connection during onboarding. Apart from the transport
|
|
1182
|
+
`type`, treat them as template stand-ins (published connectors carry values such as a
|
|
1183
|
+
placeholder AS2 partner ID and a staging AS2 URI), not the partner's real settings; the
|
|
1184
|
+
partner's host and identity are in `fieldsUserMustSet`.
|
|
1169
1185
|
items:
|
|
1170
1186
|
$ref: '#/components/schemas/PreConfiguredField'
|
|
1171
1187
|
fieldsUserMustSet:
|
package/package.json
CHANGED