@celigo/api-specs 0.2.318 → 0.2.320
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 +15 -8
- package/dist/import.yml +16 -12
- package/dist/tool.yml +16 -12
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/api.yml
CHANGED
|
@@ -2364,9 +2364,15 @@ paths:
|
|
|
2364
2364
|
Clones a builder-mode API along with the resources it depends on (such as its
|
|
2365
2365
|
backing import) and returns a manifest of every resource created.
|
|
2366
2366
|
|
|
2367
|
+
The clone is always created enabled (`disabled: false`), whatever the source API's
|
|
2368
|
+
`disabled` value. To keep a clone of a disabled API offline, send
|
|
2369
|
+
`PATCH /v1/apis/{_id}` on the clone replacing `/disabled` with `true`.
|
|
2370
|
+
|
|
2367
2371
|
The request body is required: `version` must be supplied, and the cloned API's
|
|
2368
|
-
combination of `version`, `method`, and `relativeURI` must
|
|
2369
|
-
|
|
2372
|
+
combination of `version`, `method`, and `relativeURI` must not collide with an enabled
|
|
2373
|
+
API's route — reusing an enabled API's route returns a 422 `clone_api_already_exists`.
|
|
2374
|
+
Disabled APIs, the source included, are not checked, so cloning a disabled API under
|
|
2375
|
+
its own `version` creates an enabled API on the same route. Pass `_integrationId` to create the
|
|
2370
2376
|
clone inside an integration — when omitted, the clone is created standalone rather
|
|
2371
2377
|
than inheriting the source API's integration. Add `_apiGroupingId` to file the clone
|
|
2372
2378
|
under one of that integration's `apiGroupings`.
|
|
@@ -2400,8 +2406,8 @@ paths:
|
|
|
2400
2406
|
type: string
|
|
2401
2407
|
description: |-
|
|
2402
2408
|
Version identifier for the cloned API. The cloned API's combination of
|
|
2403
|
-
`version`, `method`, and `relativeURI` must
|
|
2404
|
-
returns a 422 `clone_api_already_exists`.
|
|
2409
|
+
`version`, `method`, and `relativeURI` must not collide with an enabled API's
|
|
2410
|
+
route — a collision returns a 422 `clone_api_already_exists`.
|
|
2405
2411
|
examples:
|
|
2406
2412
|
- v2
|
|
2407
2413
|
name:
|
|
@@ -2504,7 +2510,7 @@ paths:
|
|
|
2504
2510
|
$ref: '#/components/responses/404-not-found'
|
|
2505
2511
|
'422':
|
|
2506
2512
|
description: |-
|
|
2507
|
-
An API with the same `version`, `method`, and `relativeURI` already exists — clone
|
|
2513
|
+
An enabled API with the same `version`, `method`, and `relativeURI` already exists — clone
|
|
2508
2514
|
with a different `version` (or change the method/URI) to create a distinct API — or
|
|
2509
2515
|
`_apiGroupingId` is not one of the target integration's `apiGroupings`.
|
|
2510
2516
|
content:
|
|
@@ -2536,8 +2542,9 @@ paths:
|
|
|
2536
2542
|
API to the target `version` would not collide with an existing API route
|
|
2537
2543
|
— the clone keeps the source API's `method` and `relativeURI`, so the
|
|
2538
2544
|
target `version` + `method` + `relativeURI` combination must not conflict
|
|
2539
|
-
with an API
|
|
2540
|
-
|
|
2545
|
+
with an enabled API in the target environment. Disabled APIs, the source
|
|
2546
|
+
included, are not checked: the clone is always created enabled, so only
|
|
2547
|
+
enabled routes can collide with it. Nothing is created or modified.
|
|
2541
2548
|
|
|
2542
2549
|
Returns `canClone: true` when the route is free, `false` when it
|
|
2543
2550
|
conflicts — pick a different `version` before calling
|
|
@@ -2588,7 +2595,7 @@ paths:
|
|
|
2588
2595
|
description: |-
|
|
2589
2596
|
When true, the target `version` + `method` + `relativeURI`
|
|
2590
2597
|
route is free and the clone can be created. When false, the
|
|
2591
|
-
route conflicts with an existing API — choose a different
|
|
2598
|
+
route conflicts with an existing enabled API — choose a different
|
|
2592
2599
|
`version`.
|
|
2593
2600
|
examples:
|
|
2594
2601
|
free:
|
package/dist/import.yml
CHANGED
|
@@ -4641,8 +4641,10 @@ components:
|
|
|
4641
4641
|
on placement:
|
|
4642
4642
|
* Line-level (on `lists[].fields[].`
|
|
4643
4643
|
`subRecordMapping`) — the array of lines the
|
|
4644
|
-
sublist iterates (`lineItems`); `$` only
|
|
4645
|
-
each record is itself one line
|
|
4644
|
+
sublist iterates (`lineItems`, `items`); `$` only
|
|
4645
|
+
when each record is itself one line — on an item
|
|
4646
|
+
fulfillment whose lines sat under a field, `$`
|
|
4647
|
+
rendered no subrecord.
|
|
4646
4648
|
* Body-level (on `fields[].subRecordMapping`)
|
|
4647
4649
|
— a path into the source record root.
|
|
4648
4650
|
Defaults to `$`.
|
|
@@ -5033,10 +5035,12 @@ components:
|
|
|
5033
5035
|
one line. Defaults to `$`.
|
|
5034
5036
|
x-celigo-ai-guidance:
|
|
5035
5037
|
- |-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
(
|
|
5038
|
+
On an item fulfillment whose lines sat under a field of the source record
|
|
5039
|
+
(`items`), an inventory detail with `$` rendered no subrecord for any line and
|
|
5040
|
+
the save failed with `Please configure the inventory detail in line 2 of the
|
|
5041
|
+
item list` (line 2 was its first lot-numbered line); with the line array
|
|
5042
|
+
named (`items`) it saved. Name the line array (`lineItems`, `items`), never
|
|
5043
|
+
the current-line context.
|
|
5040
5044
|
mapping:
|
|
5041
5045
|
type: object
|
|
5042
5046
|
description: |
|
|
@@ -5148,10 +5152,10 @@ components:
|
|
|
5148
5152
|
line that matches none is added as a new line, which an item fulfillment's `item` sublist
|
|
5149
5153
|
refuses with `SSS_INVALID_SUBLIST_OPERATION`: its lines are its order's.
|
|
5150
5154
|
|
|
5151
|
-
On a fulfillment created from an order, a kit's lot
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
+
On a fulfillment created from an order, a kit's lot-managed components are lines of their own
|
|
5156
|
+
under the kit's line, each with its own `line` and `orderline` (the component's own order
|
|
5157
|
+
line) and `kitmemberof` holding the kit line's id; the inventory detail belongs on those
|
|
5158
|
+
component lines, and a kit line refuses it. Serial- and bin-managed components were not read.
|
|
5155
5159
|
x-celigo-ai-guidance:
|
|
5156
5160
|
- |-
|
|
5157
5161
|
To make an update replace a sublist's lines, also map the body field
|
|
@@ -5168,8 +5172,8 @@ components:
|
|
|
5168
5172
|
that already hold repeated lines fail the same way once a key is set.
|
|
5169
5173
|
- |-
|
|
5170
5174
|
A key field is read from the existing lines, never written, so a read-only field keys as well
|
|
5171
|
-
as a writable one. The mapper's "Items : Line ID" is `line` (the fulfillment's own line number
|
|
5172
|
-
|
|
5175
|
+
as a writable one. The mapper's "Items : Line ID" is `line` (the fulfillment's own line number;
|
|
5176
|
+
on a fresh full transform it held the same ids as `orderline`) and "Items : Line Number" is `linenum`;
|
|
5173
5177
|
`orderline` and `kitmemberof` are not in its picker — type `item[*].orderline` /
|
|
5174
5178
|
`item[*].kitmemberof` as the destination (the metadata id form of a sublist field; the
|
|
5175
5179
|
document stores `orderline` / `kitmemberof` under `lists[]` with `generate: item`).
|
package/dist/tool.yml
CHANGED
|
@@ -17325,8 +17325,10 @@ components:
|
|
|
17325
17325
|
on placement:
|
|
17326
17326
|
* Line-level (on `lists[].fields[].`
|
|
17327
17327
|
`subRecordMapping`) — the array of lines the
|
|
17328
|
-
sublist iterates (`lineItems`); `$` only
|
|
17329
|
-
each record is itself one line
|
|
17328
|
+
sublist iterates (`lineItems`, `items`); `$` only
|
|
17329
|
+
when each record is itself one line — on an item
|
|
17330
|
+
fulfillment whose lines sat under a field, `$`
|
|
17331
|
+
rendered no subrecord.
|
|
17330
17332
|
* Body-level (on `fields[].subRecordMapping`)
|
|
17331
17333
|
— a path into the source record root.
|
|
17332
17334
|
Defaults to `$`.
|
|
@@ -17717,10 +17719,12 @@ components:
|
|
|
17717
17719
|
one line. Defaults to `$`.
|
|
17718
17720
|
x-celigo-ai-guidance:
|
|
17719
17721
|
- |-
|
|
17720
|
-
|
|
17721
|
-
|
|
17722
|
-
|
|
17723
|
-
(
|
|
17722
|
+
On an item fulfillment whose lines sat under a field of the source record
|
|
17723
|
+
(`items`), an inventory detail with `$` rendered no subrecord for any line and
|
|
17724
|
+
the save failed with `Please configure the inventory detail in line 2 of the
|
|
17725
|
+
item list` (line 2 was its first lot-numbered line); with the line array
|
|
17726
|
+
named (`items`) it saved. Name the line array (`lineItems`, `items`), never
|
|
17727
|
+
the current-line context.
|
|
17724
17728
|
mapping:
|
|
17725
17729
|
type: object
|
|
17726
17730
|
description: |
|
|
@@ -17832,10 +17836,10 @@ components:
|
|
|
17832
17836
|
line that matches none is added as a new line, which an item fulfillment's `item` sublist
|
|
17833
17837
|
refuses with `SSS_INVALID_SUBLIST_OPERATION`: its lines are its order's.
|
|
17834
17838
|
|
|
17835
|
-
On a fulfillment created from an order, a kit's lot
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
+
On a fulfillment created from an order, a kit's lot-managed components are lines of their own
|
|
17840
|
+
under the kit's line, each with its own `line` and `orderline` (the component's own order
|
|
17841
|
+
line) and `kitmemberof` holding the kit line's id; the inventory detail belongs on those
|
|
17842
|
+
component lines, and a kit line refuses it. Serial- and bin-managed components were not read.
|
|
17839
17843
|
x-celigo-ai-guidance:
|
|
17840
17844
|
- |-
|
|
17841
17845
|
To make an update replace a sublist's lines, also map the body field
|
|
@@ -17852,8 +17856,8 @@ components:
|
|
|
17852
17856
|
that already hold repeated lines fail the same way once a key is set.
|
|
17853
17857
|
- |-
|
|
17854
17858
|
A key field is read from the existing lines, never written, so a read-only field keys as well
|
|
17855
|
-
as a writable one. The mapper's "Items : Line ID" is `line` (the fulfillment's own line number
|
|
17856
|
-
|
|
17859
|
+
as a writable one. The mapper's "Items : Line ID" is `line` (the fulfillment's own line number;
|
|
17860
|
+
on a fresh full transform it held the same ids as `orderline`) and "Items : Line Number" is `linenum`;
|
|
17857
17861
|
`orderline` and `kitmemberof` are not in its picker — type `item[*].orderline` /
|
|
17858
17862
|
`item[*].kitmemberof` as the destination (the metadata id form of a sublist field; the
|
|
17859
17863
|
document stores `orderline` / `kitmemberof` under `lists[]` with `generate: item`).
|
package/package.json
CHANGED