@celigo/api-specs 0.2.313 → 0.2.315
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 +1 -1
- package/dist/connection.yml +1 -1
- package/dist/enduser.yml +1 -1
- package/dist/filedefinition.yml +71 -19
- package/dist/mcp-server.yml +1 -1
- package/dist/processor.yml +60 -9
- package/dist/sync.yml +104 -51
- package/dist/tool.yml +1 -1
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/api.yml
CHANGED
|
@@ -13965,7 +13965,7 @@ components:
|
|
|
13965
13965
|
agent: Generic JDBC driver deployed on a Celigo Agent (requires driverPath).
|
|
13966
13966
|
netsuitejdbc: NetSuite SuiteAnalytics JDBC driver for reporting and analytics queries.
|
|
13967
13967
|
databricks: Databricks SQL/Spark via JDBC.
|
|
13968
|
-
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
13968
|
+
oracle:thin: Oracle Database via the Oracle Thin JDBC driver; a sync reads a connection of this type as a NetSuite Analytics Warehouse destination.
|
|
13969
13969
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
13970
13970
|
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
13971
13971
|
db2: IBM DB2 database via JDBC.
|
package/dist/connection.yml
CHANGED
|
@@ -9704,7 +9704,7 @@ components:
|
|
|
9704
9704
|
agent: Generic JDBC driver deployed on a Celigo Agent (requires driverPath).
|
|
9705
9705
|
netsuitejdbc: NetSuite SuiteAnalytics JDBC driver for reporting and analytics queries.
|
|
9706
9706
|
databricks: Databricks SQL/Spark via JDBC.
|
|
9707
|
-
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
9707
|
+
oracle:thin: Oracle Database via the Oracle Thin JDBC driver; a sync reads a connection of this type as a NetSuite Analytics Warehouse destination.
|
|
9708
9708
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
9709
9709
|
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
9710
9710
|
db2: IBM DB2 database via JDBC.
|
package/dist/enduser.yml
CHANGED
|
@@ -7599,7 +7599,7 @@ components:
|
|
|
7599
7599
|
agent: Generic JDBC driver deployed on a Celigo Agent (requires driverPath).
|
|
7600
7600
|
netsuitejdbc: NetSuite SuiteAnalytics JDBC driver for reporting and analytics queries.
|
|
7601
7601
|
databricks: Databricks SQL/Spark via JDBC.
|
|
7602
|
-
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
7602
|
+
oracle:thin: Oracle Database via the Oracle Thin JDBC driver; a sync reads a connection of this type as a NetSuite Analytics Warehouse destination.
|
|
7603
7603
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
7604
7604
|
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
7605
7605
|
db2: IBM DB2 database via JDBC.
|
package/dist/filedefinition.yml
CHANGED
|
@@ -484,7 +484,11 @@ components:
|
|
|
484
484
|
definitions whose value comes from the trading-partner profile
|
|
485
485
|
use `referenceValue` to bind a Handlebars template such as
|
|
486
486
|
`{{{ediProfile.isa01}}}` — the runtime fills the value from
|
|
487
|
-
the profile at parse
|
|
487
|
+
the profile at parse time.
|
|
488
|
+
- **Generation** — a definition an import generates a file with
|
|
489
|
+
writes each element's `value`: literal text, or a Handlebars
|
|
490
|
+
template filled from the record or the EDI profile. It doesn't
|
|
491
|
+
read `referenceValue`.
|
|
488
492
|
|
|
489
493
|
**Required fields**
|
|
490
494
|
|
|
@@ -494,7 +498,9 @@ components:
|
|
|
494
498
|
columns use `name` only and are read by position. When
|
|
495
499
|
`value` is set it must be non-empty — the parser uses it as a
|
|
496
500
|
literal match requirement (`ISA01`, `BEG03`, or the marker
|
|
497
|
-
string).
|
|
501
|
+
string). Generation needs a `value` on every element: one
|
|
502
|
+
without it fails with `INVALID_FILE_DEFINITION` (`Every element
|
|
503
|
+
must provide a text or numerical "value" property.`).
|
|
498
504
|
required:
|
|
499
505
|
- name
|
|
500
506
|
properties:
|
|
@@ -533,6 +539,12 @@ components:
|
|
|
533
539
|
e.g. EDIFACT `UNH02` = `S009` or X12 composites split by
|
|
534
540
|
the component separator) set `value` to an object with a
|
|
535
541
|
`delimiter` and nested `elements`. See `CompositeValue`.
|
|
542
|
+
|
|
543
|
+
In a definition that generates a file, a string `value` is the
|
|
544
|
+
text written for the element: literal text, or a Handlebars
|
|
545
|
+
template filled from the record or the EDI profile
|
|
546
|
+
(`{{{[Purchase Order Number]}}}`,
|
|
547
|
+
`{{{ediProfile.controlNumber}}}`).
|
|
536
548
|
oneOf:
|
|
537
549
|
- title: literal
|
|
538
550
|
type: string
|
|
@@ -573,7 +585,11 @@ components:
|
|
|
573
585
|
Whether the parser should fail when this element is missing
|
|
574
586
|
or blank. Defaults to false. EDI envelope qualifiers and
|
|
575
587
|
transaction header fields (ISA/GS/ST elements) are
|
|
576
|
-
conventionally marked required.
|
|
588
|
+
conventionally marked required. Generation enforces it only
|
|
589
|
+
on a rule that is itself `required: true`, in a definition
|
|
590
|
+
with `skipEDIValidation: false` and a `format` other than
|
|
591
|
+
`fixed`: an empty value fails with `mandatory_element_absent`.
|
|
592
|
+
Anywhere else an empty value isn't an error.
|
|
577
593
|
examples:
|
|
578
594
|
- true
|
|
579
595
|
- false
|
|
@@ -605,9 +621,10 @@ components:
|
|
|
605
621
|
those elements. Without it, a blank `isa02` comes out empty
|
|
606
622
|
and an unpadded interchange id short, and Celigo's own parser
|
|
607
623
|
refuses that ISA (`Mandatory element "ISA02" is not present`,
|
|
608
|
-
`Min. length not met for the field "ISA06"`).
|
|
609
|
-
|
|
610
|
-
|
|
624
|
+
`Min. length not met for the field "ISA06"`). With
|
|
625
|
+
`skipEDIValidation: false`, in every format but `fixed`, a value
|
|
626
|
+
longer than `maxLength` fails the generation (`Max. length not
|
|
627
|
+
met for the field "<name>"`); otherwise it is written as it is.
|
|
611
628
|
referenceValue:
|
|
612
629
|
type: string
|
|
613
630
|
description: |
|
|
@@ -615,7 +632,10 @@ components:
|
|
|
615
632
|
runtime instead of being read from the file. Most common use
|
|
616
633
|
is binding EDI envelope fields to the trading-partner
|
|
617
634
|
profile, e.g. `{{{ediProfile.isa01}}}` or
|
|
618
|
-
`{{{ediProfile.tpInterchangeId}}}`.
|
|
635
|
+
`{{{ediProfile.tpInterchangeId}}}`. Generation doesn't read
|
|
636
|
+
it: a definition that generates a file carries the template
|
|
637
|
+
in `value`, and an element with both is written as its
|
|
638
|
+
`value`.
|
|
619
639
|
|
|
620
640
|
The linked EDI profile's fields resolve under
|
|
621
641
|
`ediProfile.*`. X12 profiles: `isa01`, `isa02`, `isa03`,
|
|
@@ -787,8 +807,9 @@ components:
|
|
|
787
807
|
- **Container rule** — sets `container: true`. A loop wrapper
|
|
788
808
|
that produces no row of its own: a group `name`, a
|
|
789
809
|
`maxOccurrence` above `1` and no `elements`, with the repeated
|
|
790
|
-
row's rule under `children`.
|
|
791
|
-
rows (see `container`)
|
|
810
|
+
row's rule under `children`. On parse it is the only shape
|
|
811
|
+
that repeats rows (see `container`); generation repeats a rule
|
|
812
|
+
from its own `maxOccurrence` (see `maxOccurrence`).
|
|
792
813
|
|
|
793
814
|
**Envelopes and `closeRule`**
|
|
794
815
|
|
|
@@ -799,8 +820,8 @@ components:
|
|
|
799
820
|
- The matching trailer lives on the opening rule's `closeRule`.
|
|
800
821
|
|
|
801
822
|
`closeRule` accepts both an object (single trailer rule) and a
|
|
802
|
-
one-element array of trailer rules; the parser
|
|
803
|
-
equivalently. In practice the **root** envelope (e.g. IEA / UNZ)
|
|
823
|
+
one-element array of trailer rules; the parser and the generator
|
|
824
|
+
treat them equivalently. In practice the **root** envelope (e.g. IEA / UNZ)
|
|
804
825
|
is written as an object, and **inner** envelopes (e.g. GE / SE /
|
|
805
826
|
UNE) are written as a one-element array — both shapes are valid
|
|
806
827
|
against this schema.
|
|
@@ -857,14 +878,16 @@ components:
|
|
|
857
878
|
- A one-element array of `Rule` objects (typical for inner
|
|
858
879
|
envelopes, e.g. GE / SE / UNE).
|
|
859
880
|
|
|
860
|
-
Both shapes are accepted by the parser
|
|
861
|
-
round-trips file definitions
|
|
862
|
-
the source document uses.
|
|
881
|
+
Both shapes are accepted by the parser and the generator, with
|
|
882
|
+
the same result; tooling that round-trips file definitions
|
|
883
|
+
should preserve whichever shape the source document uses.
|
|
863
884
|
|
|
864
885
|
Put it on the rule that opens the envelope (ISA, GS, ST, UNB,
|
|
865
886
|
UNH), never on a `container` wrapper. A container's close rule
|
|
866
887
|
saves and parses without an error, but it consumes the row it
|
|
867
888
|
names, so the rule meant to read that row comes back empty.
|
|
889
|
+
Generation writes a close rule after the children of the rule
|
|
890
|
+
that carries it, a `container` wrapper included.
|
|
868
891
|
|
|
869
892
|
For non-EDI / non-loop rules `closeRule` is omitted.
|
|
870
893
|
oneOf:
|
|
@@ -878,8 +901,8 @@ components:
|
|
|
878
901
|
type: boolean
|
|
879
902
|
description: |
|
|
880
903
|
Marks this rule as a pure loop wrapper that does not emit a
|
|
881
|
-
row of its own, and is the only way rows repeat: give
|
|
882
|
-
wrapper a group `name`, a `maxOccurrence` above `1` and no
|
|
904
|
+
row of its own, and on parse is the only way rows repeat: give
|
|
905
|
+
the wrapper a group `name`, a `maxOccurrence` above `1` and no
|
|
883
906
|
`elements`, and put the repeated row's rule under its
|
|
884
907
|
`children` (for EDI, the `ST` or `UNH` rule with its elements,
|
|
885
908
|
children and `closeRule`). Parsed rows come back as an array
|
|
@@ -895,6 +918,9 @@ components:
|
|
|
895
918
|
"SE" is missing on line: 6`). A rule outside any container
|
|
896
919
|
matches one row the same way. Give the wrapper the most rows
|
|
897
920
|
the file can hold, such as `1000`.
|
|
921
|
+
|
|
922
|
+
On generation a rule repeats from its own `maxOccurrence`,
|
|
923
|
+
whether or not it is a `container` (see `maxOccurrence`).
|
|
898
924
|
default: false
|
|
899
925
|
examples:
|
|
900
926
|
- true
|
|
@@ -904,7 +930,7 @@ components:
|
|
|
904
930
|
minimum: 1
|
|
905
931
|
description: |
|
|
906
932
|
Upper bound on how many times this rule may repeat at its
|
|
907
|
-
current position.
|
|
933
|
+
current position. On parse rows repeat only under a `container`
|
|
908
934
|
wrapper, so larger values such as `1000` go on the wrapper of
|
|
909
935
|
an `ST` transaction set or a line-item loop; EDI envelopes use
|
|
910
936
|
`1` (one ISA per file, one GS per group).
|
|
@@ -915,6 +941,15 @@ components:
|
|
|
915
941
|
segment "<name>" is applicable only if it is a
|
|
916
942
|
container/loop.` `0` is refused on save and on parse (`if
|
|
917
943
|
present, maxOccurrence must be greater than or equal to 1`).
|
|
944
|
+
|
|
945
|
+
Generation reads it on the rule itself: a child rule is written
|
|
946
|
+
once per item of the array at its `relativeDataPath` only when
|
|
947
|
+
its `maxOccurrence` is above `1`, whether or not it is a
|
|
948
|
+
`container`. With `1`, or without the key, the row is built
|
|
949
|
+
once and elements that take their values from the array's
|
|
950
|
+
items come out empty, without an error; a row left with no
|
|
951
|
+
value after its first element is then written empty or left
|
|
952
|
+
out, as any such row is (see `required`).
|
|
918
953
|
examples:
|
|
919
954
|
- 1
|
|
920
955
|
- 1000
|
|
@@ -925,6 +960,18 @@ components:
|
|
|
925
960
|
true and the rule does not match, the parser raises a
|
|
926
961
|
validation error. EDI envelope segments (ISA/GS/ST) are
|
|
927
962
|
always required; optional summary segments are not.
|
|
963
|
+
|
|
964
|
+
Generation reads it differently. `false` leaves the rule's row
|
|
965
|
+
out, without an error, whenever no element after its first
|
|
966
|
+
produces a value. `true` doesn't force a row: where the
|
|
967
|
+
generator leaves such a row out anyway (`delimited/x12` and
|
|
968
|
+
`delimited/edifact` definitions with `version` `2`, and those
|
|
969
|
+
two and `delimited` with `skipEDIValidation: false`), a required
|
|
970
|
+
rule is left out the same way. With `skipEDIValidation: false`,
|
|
971
|
+
in every format but `fixed`, `true` does make the rule's
|
|
972
|
+
`required` elements mandatory (see `Element.required`). A rule
|
|
973
|
+
without the key writes its rows as with `true`, and its
|
|
974
|
+
`required` elements aren't enforced.
|
|
928
975
|
examples:
|
|
929
976
|
- true
|
|
930
977
|
- false
|
|
@@ -1111,6 +1158,10 @@ components:
|
|
|
1111
1158
|
the parent file definition document. A save doesn't parse a sample,
|
|
1112
1159
|
so a tree that saves can still fail or drop rows when parsed; test
|
|
1113
1160
|
it against a sample with `POST /v1/processors/structuredFileParser`.
|
|
1161
|
+
A definition an import generates a file with is tested the same
|
|
1162
|
+
way with `POST /v1/processors/structuredFileGenerator`, which
|
|
1163
|
+
reads the rules differently (see `Rule.maxOccurrence` and
|
|
1164
|
+
`Element.referenceValue`).
|
|
1114
1165
|
items:
|
|
1115
1166
|
$ref: '#/components/schemas/Rule'
|
|
1116
1167
|
fixed:
|
|
@@ -1266,12 +1317,13 @@ components:
|
|
|
1266
1317
|
EDI (X12 / EDIFACT) the root rule's `children` build the envelope → group → transaction →
|
|
1267
1318
|
segment hierarchy.
|
|
1268
1319
|
- |-
|
|
1269
|
-
|
|
1320
|
+
On parse, rows repeat only under an elements-less `container: true` rule (a group `name`,
|
|
1270
1321
|
`maxOccurrence` above 1, no `elements`) whose child rule carries the row's elements. A
|
|
1271
1322
|
row-marker rule with no such container above it, or under a container whose
|
|
1272
1323
|
`maxOccurrence` is 1 or unset, matches only the first row: in fixed-width and delimited
|
|
1273
1324
|
files the parser drops the rest without an error, and an X12 parse fails at the next row,
|
|
1274
|
-
naming a mandatory segment as missing.
|
|
1325
|
+
naming a mandatory segment as missing. A definition an import generates a file with
|
|
1326
|
+
repeats a rule from that rule's own `maxOccurrence` instead (see `Rule.maxOccurrence`).
|
|
1275
1327
|
- |-
|
|
1276
1328
|
Cloning an export that uses a file definition also creates a new file definition, with the
|
|
1277
1329
|
same name, and points the cloned export at it: the export's clone preview lists it as a
|
package/dist/mcp-server.yml
CHANGED
|
@@ -10775,7 +10775,7 @@ components:
|
|
|
10775
10775
|
agent: Generic JDBC driver deployed on a Celigo Agent (requires driverPath).
|
|
10776
10776
|
netsuitejdbc: NetSuite SuiteAnalytics JDBC driver for reporting and analytics queries.
|
|
10777
10777
|
databricks: Databricks SQL/Spark via JDBC.
|
|
10778
|
-
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
10778
|
+
oracle:thin: Oracle Database via the Oracle Thin JDBC driver; a sync reads a connection of this type as a NetSuite Analytics Warehouse destination.
|
|
10779
10779
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
10780
10780
|
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
10781
10781
|
db2: IBM DB2 database via JDBC.
|
package/dist/processor.yml
CHANGED
|
@@ -870,15 +870,19 @@ paths:
|
|
|
870
870
|
template that produces the text for that field. Literal text is
|
|
871
871
|
output as written. A reference is replaced with a field of the
|
|
872
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
|
|
874
|
-
object in `data` and reads that object (`{{firstName}}`),
|
|
875
|
-
root rule with no `maxOccurrence` is output once and reads
|
|
876
|
-
whole array, so it reaches a record by index
|
|
873
|
+
has no such field: a root rule that repeats is output once for
|
|
874
|
+
each object in `data` and reads that object (`{{firstName}}`),
|
|
875
|
+
while a root rule with no `maxOccurrence` is output once and reads
|
|
876
|
+
the whole array, so it reaches a record by index
|
|
877
|
+
(`{{0.firstName}}`). A child rule with a `relativeDataPath` and a
|
|
878
|
+
`maxOccurrence` above `1` is output once for each item of the
|
|
879
|
+
array at that path and reads that item.
|
|
877
880
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
881
|
+
With `skipEDIValidation: false` in any `format` but `fixed`, a
|
|
882
|
+
`required` element on a `required` rule fails the request with
|
|
883
|
+
`mandatory_element_absent` when its template comes out empty. In a
|
|
884
|
+
`fixed` definition, with the flag absent or `true`, or on a rule
|
|
885
|
+
that isn't `required`, an empty value isn't an error.
|
|
882
886
|
|
|
883
887
|
The `data` array carries the records those references read. The
|
|
884
888
|
response has `mediaType: "text"` with the generated content as one
|
|
@@ -892,6 +896,53 @@ paths:
|
|
|
892
896
|
`value`. This is a stateless transformation. File definition fields
|
|
893
897
|
go directly in `rules` (no `fileDefinition` wrapper, unlike the
|
|
894
898
|
parser endpoint).
|
|
899
|
+
x-celigo-ai-guidance:
|
|
900
|
+
- |-
|
|
901
|
+
A 200 with non-empty `data` doesn't show that a given rule wrote its row, so read
|
|
902
|
+
the returned content for the row you expect. A row with no value after its first
|
|
903
|
+
element (its only element is its tag, or its other templates come out empty) is
|
|
904
|
+
left out with no error in three cases: its rule is `required: false`; the
|
|
905
|
+
definition is `delimited/x12` or `delimited/edifact` with `version` `2`; or it is
|
|
906
|
+
`delimited`, `delimited/x12` or `delimited/edifact` with
|
|
907
|
+
`skipEDIValidation: false`. `required: true` on the rule doesn't keep the row in
|
|
908
|
+
the last two, but with `skipEDIValidation: false` it turns an empty
|
|
909
|
+
`required: true` element of the row into a 422 `mandatory_element_absent`.
|
|
910
|
+
- |-
|
|
911
|
+
In any other case such a row is written: a `delimited`, `delimited/x12` or
|
|
912
|
+
`delimited/edifact` row with its empty elements between delimiters, a `fixed`
|
|
913
|
+
row as padding. `skipEmptyEndColDelimiter: true` drops a delimited row's trailing
|
|
914
|
+
empty elements and leaves out a row whose elements are all empty.
|
|
915
|
+
- |-
|
|
916
|
+
A row is its elements joined by `colDelimiter` in order, ended with `rowSuffix`
|
|
917
|
+
(unless the rule sets `skipRowSuffix`) and `rowDelimiter`; an empty element in
|
|
918
|
+
the middle keeps its place. For a row whose text contains the delimiter itself,
|
|
919
|
+
such as the EDIFACT service string advice `UNA:+.? '` with `colDelimiter` `+`,
|
|
920
|
+
split at it: a rule of its own ahead of the interchange header rule, with a
|
|
921
|
+
first element `UNA:` and a second `.? `.
|
|
922
|
+
- |-
|
|
923
|
+
A child rule is written once per item of the array at its `relativeDataPath`
|
|
924
|
+
only when its `maxOccurrence` is above `1`, with or without `container: true`.
|
|
925
|
+
With `maxOccurrence` `1` or absent the row is built once and templates that name
|
|
926
|
+
the items' fields come out empty; a row that then has no value after its first
|
|
927
|
+
element is written empty or left out like any other such row.
|
|
928
|
+
- |-
|
|
929
|
+
`referenceValue` isn't read: bind an EDI profile field in `value` itself
|
|
930
|
+
(`{{{ediProfile.myInterchangeId}}}`). An element with a `referenceValue` and a
|
|
931
|
+
`value` such as `ISA06` is written as the text `ISA06`, and an element with no
|
|
932
|
+
`value` fails the request with `INVALID_FILE_DEFINITION`.
|
|
933
|
+
- |-
|
|
934
|
+
`closeRule` is written after the rule's children, wherever the rule sits, and a
|
|
935
|
+
single rule object and a one-element array produce the same content. Keep the
|
|
936
|
+
shape a definition already uses.
|
|
937
|
+
- |-
|
|
938
|
+
With `skipEDIValidation: false` in any `format` but `fixed`, a 422 on a value
|
|
939
|
+
names the element, not whether the record or a literal in the rule produced it:
|
|
940
|
+
`maxLength_not_met`, `minLength_not_met`, `datatype_mismatch`,
|
|
941
|
+
`value_not_present_in_enum`, and `mandatory_element_absent` for an empty
|
|
942
|
+
`required: true` element on a `required: true` rule, whether or not its row has
|
|
943
|
+
another value. Send a record that carries the fields before reading such a
|
|
944
|
+
failure as a defect in the rules. With the flag absent or `true` the same values
|
|
945
|
+
are written as they are, and a `fixed` definition returns none of these codes.
|
|
895
946
|
requestBody:
|
|
896
947
|
required: true
|
|
897
948
|
content:
|
|
@@ -906,7 +957,7 @@ paths:
|
|
|
906
957
|
type: array
|
|
907
958
|
description: |-
|
|
908
959
|
Records read by the Handlebars references in element
|
|
909
|
-
`value`s. A rule that repeats outputs its rows once for
|
|
960
|
+
`value`s. A root rule that repeats outputs its rows once for
|
|
910
961
|
each object in the array, with that object as the context
|
|
911
962
|
for its elements and child rules. A root rule with no
|
|
912
963
|
`maxOccurrence` outputs one row with the whole array as
|
package/dist/sync.yml
CHANGED
|
@@ -403,9 +403,10 @@ paths:
|
|
|
403
403
|
is fixed at creation.
|
|
404
404
|
|
|
405
405
|
Set `disabled: false` to enable the sync once its source, a complete destination, and
|
|
406
|
-
`historicDateTime` are configured
|
|
407
|
-
`422 sync_not_enabled
|
|
408
|
-
|
|
406
|
+
`historicDateTime` are configured: enabling a sync that has no destination fails with
|
|
407
|
+
`422 sync_not_enabled`, and one that has no `historicDateTime` with
|
|
408
|
+
`422 sync_historic_datetime_required`. Always send `disabled`: a PUT that omits it
|
|
409
|
+
enables a sync whose source, destination and `historicDateTime` are set.
|
|
409
410
|
operationId: updateSync
|
|
410
411
|
tags:
|
|
411
412
|
- Syncs
|
|
@@ -552,7 +553,9 @@ paths:
|
|
|
552
553
|
description: |-
|
|
553
554
|
Validation failed. `source._connectionId` is missing
|
|
554
555
|
(`missing_source_connection`), the sync is not ready to enable
|
|
555
|
-
(`sync_not_enabled`
|
|
556
|
+
(`sync_not_enabled` when it has no destination,
|
|
557
|
+
`sync_historic_datetime_required` when it has no `historicDateTime`), the update
|
|
558
|
+
drops the saved destination connection or sends
|
|
556
559
|
`database`, `schema` or `tablePrefix` without a connection
|
|
557
560
|
(`missing_destination_connection`, "Destination
|
|
558
561
|
connection is missing in the request"), the new destination connection is another
|
|
@@ -560,7 +563,8 @@ paths:
|
|
|
560
563
|
connection type is not same as the previous destination connection type"), a new
|
|
561
564
|
`database` or `schema` was sent while the destination connection is offline
|
|
562
565
|
(`offline_destination_connection` — the platform creates the schema when the
|
|
563
|
-
destination is saved
|
|
566
|
+
destination is saved, which has not been observed for a NetSuite Analytics
|
|
567
|
+
Warehouse destination), the destination warehouse didn't answer that schema check in
|
|
564
568
|
time (`destination_schema_check_timeout` — the stored sync is unchanged; retry), the
|
|
565
569
|
destination duplicates another sync
|
|
566
570
|
(`duplicate_destination_host`), the destination connector rejected the
|
|
@@ -599,12 +603,19 @@ paths:
|
|
|
599
603
|
errors:
|
|
600
604
|
- message: The destination type for all the syncs under an integration must be same.
|
|
601
605
|
not_ready_to_enable:
|
|
602
|
-
summary: Enabling
|
|
606
|
+
summary: Enabling a sync that has no destination
|
|
603
607
|
value:
|
|
604
608
|
errors:
|
|
605
609
|
- field: disabled
|
|
606
610
|
code: sync_not_enabled
|
|
607
611
|
message: Sync can be enabled only when source, destinations are properly defined.
|
|
612
|
+
enable_without_historic_date_time:
|
|
613
|
+
summary: Enabling a sync that has no historicDateTime
|
|
614
|
+
value:
|
|
615
|
+
errors:
|
|
616
|
+
- field: historicDateTime
|
|
617
|
+
code: sync_historic_datetime_required
|
|
618
|
+
message: historicDateTime is required to enable sync.
|
|
608
619
|
delete:
|
|
609
620
|
x-internal: false
|
|
610
621
|
summary: Delete a sync
|
|
@@ -2928,12 +2939,13 @@ paths:
|
|
|
2928
2939
|
summary: List supported sync destination applications
|
|
2929
2940
|
description: |-
|
|
2930
2941
|
Returns the catalog of applications that can be used as the **destination** of a sync — the
|
|
2931
|
-
data warehouse a sync loads records into. A sync's destination application is
|
|
2932
|
-
its destination connection (`rdbms.type` for
|
|
2942
|
+
data warehouse a sync loads records into. A sync's destination application is read from
|
|
2943
|
+
its destination connection (`rdbms.type` for a database connection), which must match one
|
|
2933
2944
|
of the returned ids. Identifiers include `snowflake` (Snowflake), `nsaw` (NetSuite
|
|
2934
|
-
Analytics Warehouse
|
|
2935
|
-
`
|
|
2936
|
-
`microsoftfabric` (Microsoft Fabric — an
|
|
2945
|
+
Analytics Warehouse — a JDBC connection whose `jdbc.type` is `oracle:thin`), `bigquery`
|
|
2946
|
+
(Google BigQuery), `mssql` (Microsoft SQL Server), `redshift` (Amazon Redshift),
|
|
2947
|
+
`azuresynapse` (Azure Synapse Analytics), and `microsoftfabric` (Microsoft Fabric — an
|
|
2948
|
+
`rdbms.type: fabric` connection).
|
|
2937
2949
|
tags:
|
|
2938
2950
|
- Syncs
|
|
2939
2951
|
operationId: listSyncDestinations
|
|
@@ -3168,8 +3180,10 @@ paths:
|
|
|
3168
3180
|
from the source application. Use it to build the `dataElements` selection before
|
|
3169
3181
|
saving a dataset via `PUT /v1/syncs/{_syncId}/datasets` — each element's `name` here
|
|
3170
3182
|
is the `name` to reference there. An export's record structure (`isExport=true`) is
|
|
3171
|
-
read from a live preview of the export, so no draft sync is needed
|
|
3172
|
-
|
|
3183
|
+
read from a live preview of the export, so no draft sync is needed: the preview runs
|
|
3184
|
+
the export against its source for up to 100 records and the structure is inferred
|
|
3185
|
+
from them, so the request takes as long as that preview, and a mock output saved on
|
|
3186
|
+
the export is not used. Read an HTTP-connector object's columns through
|
|
3173
3187
|
`GET /v1/di/metadata/sync/{_syncId}/connections/{_connectionId}/datasets/{datasetName}/details`
|
|
3174
3188
|
once a draft sync exists.
|
|
3175
3189
|
operationId: getConnectionDatasetDetails
|
|
@@ -3828,7 +3842,9 @@ paths:
|
|
|
3828
3842
|
Returns one table/object's full column catalog from the source, merged with the
|
|
3829
3843
|
sync's saved dataset state — enablement, `ingestionMode`, `exportProperties`, drift
|
|
3830
3844
|
policy, and per-column selections. Use it to edit a dataset's `dataElements` with
|
|
3831
|
-
the current source schema and saved selections in one payload.
|
|
3845
|
+
the current source schema and saved selections in one payload. An export's record
|
|
3846
|
+
structure (`isExport=true`) is read from a live preview of the export, as on the
|
|
3847
|
+
connection route, and the request takes as long as that preview.
|
|
3832
3848
|
operationId: getSyncConnectionDatasetDetails
|
|
3833
3849
|
tags:
|
|
3834
3850
|
- Syncs
|
|
@@ -4240,9 +4256,12 @@ components:
|
|
|
4240
4256
|
default: true
|
|
4241
4257
|
description: |-
|
|
4242
4258
|
When true, the sync neither runs on schedule nor accepts on-demand runs. New syncs
|
|
4243
|
-
start disabled. Enabling requires a
|
|
4244
|
-
|
|
4245
|
-
|
|
4259
|
+
start disabled. Enabling requires a source connection, a complete destination — the
|
|
4260
|
+
destination connection with its `database` and `schema`, or for NetSuite Analytics
|
|
4261
|
+
Warehouse with its `schema` and either `tablePrefix` or `database` — and a
|
|
4262
|
+
`historicDateTime`: with no destination the update fails with
|
|
4263
|
+
`422 sync_not_enabled`, with no `historicDateTime` with
|
|
4264
|
+
`422 sync_historic_datetime_required`.
|
|
4246
4265
|
examples:
|
|
4247
4266
|
- false
|
|
4248
4267
|
schedule:
|
|
@@ -4291,9 +4310,12 @@ components:
|
|
|
4291
4310
|
type: object
|
|
4292
4311
|
description: |-
|
|
4293
4312
|
Data warehouse the sync loads records into. Empty (`{}`) on a draft that has no
|
|
4294
|
-
destination yet. The destination application is the connection
|
|
4295
|
-
|
|
4296
|
-
|
|
4313
|
+
destination yet. The destination application is read from the connection —
|
|
4314
|
+
`rdbms.type` for a database connection, NetSuite Analytics Warehouse for a JDBC
|
|
4315
|
+
connection whose `jdbc.type` is `oracle:thin` — so `database` and `schema` are read
|
|
4316
|
+
in that application's terms: Google BigQuery treats them as the GCP project and the
|
|
4317
|
+
dataset, and a NetSuite Analytics Warehouse destination carries `schema` with
|
|
4318
|
+
`tablePrefix` or `database`.
|
|
4297
4319
|
A `database` and `schema` pair can back only one sync on a destination connection,
|
|
4298
4320
|
even across integrations — reusing one, in any letter case, fails with
|
|
4299
4321
|
`422 duplicate_destination_host` — and all syncs in an integration must target the
|
|
@@ -4304,24 +4326,26 @@ components:
|
|
|
4304
4326
|
format: objectId
|
|
4305
4327
|
x-celigo-refModel: connections
|
|
4306
4328
|
description: |-
|
|
4307
|
-
Connection to the destination warehouse. Its application
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4329
|
+
Connection to the destination warehouse. Its application is one of the ids
|
|
4330
|
+
returned by `GET /v1/di/metadata/destinations`: a database connection's
|
|
4331
|
+
`rdbms.type` (`fabric` is destination id `microsoftfabric`), or NetSuite Analytics
|
|
4332
|
+
Warehouse (`nsaw`) for a JDBC connection whose `jdbc.type` is `oracle:thin`.
|
|
4311
4333
|
examples:
|
|
4312
4334
|
- 68d02dbe0839a514623c1d6d
|
|
4313
4335
|
database:
|
|
4314
4336
|
type: string
|
|
4315
4337
|
description: |-
|
|
4316
4338
|
Database in the destination warehouse the sync loads into. For Google BigQuery this
|
|
4317
|
-
is the GCP project id the tables are created in (`project.dataset.table`).
|
|
4339
|
+
is the GCP project id the tables are created in (`project.dataset.table`). Absent
|
|
4340
|
+
on a NetSuite Analytics Warehouse destination saved with `tablePrefix` instead.
|
|
4318
4341
|
examples:
|
|
4319
4342
|
- ANALYTICS_DB
|
|
4320
4343
|
schema:
|
|
4321
4344
|
type: string
|
|
4322
4345
|
description: |-
|
|
4323
|
-
Schema
|
|
4324
|
-
BigQuery this is the dataset name, with case
|
|
4346
|
+
Schema where the sync creates and loads tables — within `database` when the
|
|
4347
|
+
destination has one. For Google BigQuery this is the dataset name, with case
|
|
4348
|
+
preserved.
|
|
4325
4349
|
examples:
|
|
4326
4350
|
- salesforce_raw
|
|
4327
4351
|
tablePrefix:
|
|
@@ -4502,8 +4526,10 @@ components:
|
|
|
4502
4526
|
When true, the sync neither runs on schedule nor accepts on-demand runs. A PUT that
|
|
4503
4527
|
omits it returns the sync enabled once its source, destination and `historicDateTime`
|
|
4504
4528
|
are set, so send it on every PUT. Set to false once the source, a complete
|
|
4505
|
-
destination, and `historicDateTime` are configured
|
|
4506
|
-
`422 sync_not_enabled
|
|
4529
|
+
destination, and `historicDateTime` are configured: enabling a sync that has no
|
|
4530
|
+
destination fails with `422 sync_not_enabled`, one that has no `historicDateTime`
|
|
4531
|
+
with `422 sync_historic_datetime_required`, and both errors come back when both
|
|
4532
|
+
are missing. Datasets aren't checked: a sync with none enables.
|
|
4507
4533
|
examples:
|
|
4508
4534
|
- false
|
|
4509
4535
|
schedule:
|
|
@@ -4552,18 +4578,23 @@ components:
|
|
|
4552
4578
|
type: object
|
|
4553
4579
|
description: |-
|
|
4554
4580
|
Data warehouse the sync loads records into. Omit while drafting; a complete
|
|
4555
|
-
destination
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4581
|
+
destination is required before the sync can be enabled: the connection with
|
|
4582
|
+
`database` and `schema`, or — for NetSuite Analytics Warehouse — the connection
|
|
4583
|
+
with `schema` and either `tablePrefix` or `database`. The destination application
|
|
4584
|
+
is read from the connection — `rdbms.type` for a database connection, NetSuite
|
|
4585
|
+
Analytics Warehouse for a JDBC connection whose `jdbc.type` is `oracle:thin` — so
|
|
4586
|
+
`database` and `schema` are read in that application's terms: Google BigQuery
|
|
4587
|
+
treats them as the GCP project and the dataset. A `database` and `schema` pair, in
|
|
4588
|
+
any letter case, can back only one sync on
|
|
4560
4589
|
a destination connection, even across integrations (`422 duplicate_destination_host`).
|
|
4561
4590
|
Sending `database`, `schema` or `tablePrefix` without `_connectionId` fails with
|
|
4562
4591
|
`422 missing_destination_connection`, and a `_connectionId` that is no connection in
|
|
4563
4592
|
the account fails with `409 CONNECTION_NOT_FOUND`. Saving a new `database` or `schema`
|
|
4564
4593
|
checks the warehouse; when the warehouse doesn't answer in time the save fails with
|
|
4565
4594
|
`422 destination_schema_check_timeout`, nothing is saved, and the request can be
|
|
4566
|
-
retried.
|
|
4595
|
+
retried. For NetSuite Analytics Warehouse that check has not been observed: a new
|
|
4596
|
+
`schema` was saved on a connection whose host does not resolve, so a successful
|
|
4597
|
+
save there does not show that the warehouse was reached. All syncs in
|
|
4567
4598
|
an integration must target the same destination application type, and a sync's
|
|
4568
4599
|
destination type can't change once saved. An Amazon Redshift destination is checked
|
|
4569
4600
|
on every save that sends `_connectionId`: a missing `database` or `schema` fails with
|
|
@@ -4577,22 +4608,36 @@ components:
|
|
|
4577
4608
|
and a `database` equal to the connection's (422
|
|
4578
4609
|
`DIMETADATA_AZURESYNAPSE_SERVICE_PRINCIPAL_REQUIRED`,
|
|
4579
4610
|
`DIMETADATA_AZURESYNAPSE_STAGING_REQUIRED`, `DIMETADATA_AZURESYNAPSE_DATABASE_MISMATCH`).
|
|
4611
|
+
A NetSuite Analytics Warehouse destination is checked on those saves as well, one
|
|
4612
|
+
error per unmet rule (422 `invalid_destination_sync_config`: "Schema is required for
|
|
4613
|
+
NSAW", "At least one of database or tablePrefix is required for NSAW").
|
|
4580
4614
|
x-celigo-ai-guidance:
|
|
4581
4615
|
- |-
|
|
4582
4616
|
Send the block complete or not at all. A partial block is rejected in the destination's
|
|
4583
4617
|
own vocabulary with 422 `invalid_destination_sync_config`: `GCP project is required on
|
|
4584
4618
|
sync destination` / `BigQuery dataset is required on sync destination` (BigQuery),
|
|
4585
4619
|
`SQL Server database is required on sync destination` / `SQL Server schema is required
|
|
4586
|
-
on sync destination` (Microsoft SQL Server)
|
|
4587
|
-
|
|
4588
|
-
`
|
|
4620
|
+
on sync destination` (Microsoft SQL Server), `Schema is required for NSAW` / `At least
|
|
4621
|
+
one of database or tablePrefix is required for NSAW` (NetSuite Analytics Warehouse). A
|
|
4622
|
+
Snowflake block without `database` fails with 422 "No database was found. Please
|
|
4623
|
+
provide database.".
|
|
4589
4624
|
- |-
|
|
4590
|
-
|
|
4591
|
-
|
|
4625
|
+
For a NetSuite Analytics Warehouse destination send `schema` and `tablePrefix` — the
|
|
4626
|
+
two fields the Create Sync wizard collects; `database` is accepted in `tablePrefix`'s
|
|
4627
|
+
place, and a sync enables with either. A `tablePrefix` with a hyphen fails with 422
|
|
4628
|
+
`nsaw_invalid_prefix` ("Prefix must start with a letter or underscore, followed by
|
|
4629
|
+
alphanumeric characters, underscores, or dollar signs").
|
|
4630
|
+
- |-
|
|
4631
|
+
Except for NetSuite Analytics Warehouse (last sentence), saving a complete
|
|
4632
|
+
destination connects to the warehouse to create the schema (dataset) when it is
|
|
4633
|
+
missing. When the host resolves but the connection fails, or
|
|
4592
4634
|
the credentials are unusable, the save fails with the connection's error — 422
|
|
4593
4635
|
`invalid_host` for SQL Server, `big_query_unexpected_error` for BigQuery,
|
|
4594
4636
|
`redshift_auth_fail` for Amazon Redshift — and no sync document is created or
|
|
4595
|
-
updated; fix the connection rather than changing database or schema names.
|
|
4637
|
+
updated; fix the connection rather than changing database or schema names. A
|
|
4638
|
+
complete NetSuite Analytics Warehouse destination on a connection whose host does
|
|
4639
|
+
not resolve was saved (200), so there a successful save does not confirm that the
|
|
4640
|
+
warehouse was reached or that `schema` exists in it.
|
|
4596
4641
|
- |-
|
|
4597
4642
|
A destination whose application differs from the other syncs' in the same
|
|
4598
4643
|
integration fails with 422 "The destination type for all the syncs under an
|
|
@@ -4610,12 +4655,13 @@ components:
|
|
|
4610
4655
|
format: objectId
|
|
4611
4656
|
x-celigo-refModel: connections
|
|
4612
4657
|
description: |-
|
|
4613
|
-
Connection to the destination warehouse. Its application
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
`
|
|
4618
|
-
`
|
|
4658
|
+
Connection to the destination warehouse. Its application must be one of the ids
|
|
4659
|
+
returned by `GET /v1/di/metadata/destinations`: for a database connection the
|
|
4660
|
+
application is its `rdbms.type` (`snowflake`, `bigquery`, `mssql`, `redshift`,
|
|
4661
|
+
`azuresynapse`, or `fabric` for Microsoft Fabric, destination id
|
|
4662
|
+
`microsoftfabric`); a JDBC connection (`type: jdbc`) whose `jdbc.type` is
|
|
4663
|
+
`oracle:thin` is NetSuite Analytics Warehouse (destination id `nsaw`). Any other
|
|
4664
|
+
connection fails with `422 invalid_destination_type`.
|
|
4619
4665
|
examples:
|
|
4620
4666
|
- 68d02dbe0839a514623c1d6d
|
|
4621
4667
|
database:
|
|
@@ -4624,15 +4670,20 @@ components:
|
|
|
4624
4670
|
Database in the destination warehouse the sync loads into; it must already exist.
|
|
4625
4671
|
For Google BigQuery this is the GCP project id the tables are created in
|
|
4626
4672
|
(`project.dataset.table`). For Amazon Redshift it must be an unquoted identifier,
|
|
4627
|
-
under the same rule as `schema`.
|
|
4673
|
+
under the same rule as `schema`. A NetSuite Analytics Warehouse destination can
|
|
4674
|
+
leave it out and send `tablePrefix` instead.
|
|
4628
4675
|
x-celigo-ui-override: 'The Create Sync wizard shows no database picker for a BigQuery, Microsoft SQL Server or Amazon Redshift destination and fills this field from the selected connection: rdbms.bigquery.projectId for BigQuery, rdbms.database for Microsoft SQL Server and Amazon Redshift.'
|
|
4629
4676
|
examples:
|
|
4630
4677
|
- ANALYTICS_DB
|
|
4631
4678
|
schema:
|
|
4632
4679
|
type: string
|
|
4633
4680
|
description: |-
|
|
4634
|
-
Schema
|
|
4635
|
-
|
|
4681
|
+
Schema where the sync creates and loads tables — within `database` when the
|
|
4682
|
+
destination has one; a NetSuite Analytics Warehouse destination can carry
|
|
4683
|
+
`tablePrefix` instead of `database`. Created on save when it does not exist,
|
|
4684
|
+
except for NetSuite Analytics Warehouse, where that has not been observed (a
|
|
4685
|
+
destination was saved on a connection whose host does not resolve). For Google
|
|
4686
|
+
BigQuery this is the dataset name, with case
|
|
4636
4687
|
preserved. For Amazon Redshift it must start with a letter or underscore, contain
|
|
4637
4688
|
only letters, digits and underscores, stay within 127 bytes, and carry no leading
|
|
4638
4689
|
or trailing whitespace; anything else fails with 422 `invalid_destination_sync_config`
|
|
@@ -4644,7 +4695,9 @@ components:
|
|
|
4644
4695
|
type: string
|
|
4645
4696
|
description: |-
|
|
4646
4697
|
Prefix prepended to the name of every table the sync creates in the
|
|
4647
|
-
destination schema. Omit to use unprefixed table names.
|
|
4698
|
+
destination schema. Omit to use unprefixed table names. A NetSuite Analytics
|
|
4699
|
+
Warehouse destination takes it in place of `database`.
|
|
4700
|
+
x-celigo-ui-override: For a NetSuite Analytics Warehouse destination the Create Sync wizard collects the schema and this prefix, requires both, and has no database field.
|
|
4648
4701
|
examples:
|
|
4649
4702
|
- sf_
|
|
4650
4703
|
driftPolicy:
|
package/dist/tool.yml
CHANGED
|
@@ -13082,7 +13082,7 @@ components:
|
|
|
13082
13082
|
agent: Generic JDBC driver deployed on a Celigo Agent (requires driverPath).
|
|
13083
13083
|
netsuitejdbc: NetSuite SuiteAnalytics JDBC driver for reporting and analytics queries.
|
|
13084
13084
|
databricks: Databricks SQL/Spark via JDBC.
|
|
13085
|
-
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
13085
|
+
oracle:thin: Oracle Database via the Oracle Thin JDBC driver; a sync reads a connection of this type as a NetSuite Analytics Warehouse destination.
|
|
13086
13086
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
13087
13087
|
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
13088
13088
|
db2: IBM DB2 database via JDBC.
|
package/package.json
CHANGED