@celigo/api-specs 0.2.300 → 0.2.302

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/sync.yml CHANGED
@@ -225,8 +225,9 @@ paths:
225
225
  '400':
226
226
  description: |-
227
227
  Bad request. `_integrationId` is missing (`missing_integration_id`), the body
228
- contains `_id` or `_userId` (`id_and_userId_in_request`), or a connection
229
- reference is not a valid id.
228
+ contains `_id` or `_userId` (`id_and_userId_in_request`), a connection
229
+ reference is not a valid id, `_runNextFlowIds` or `_runNextSyncIds` is not an
230
+ array of ids, or either list has more than 100 entries (`batch_size_exceeded`).
230
231
  content:
231
232
  application/json:
232
233
  schema:
@@ -238,6 +239,12 @@ paths:
238
239
  errors:
239
240
  - code: missing_integration_id
240
241
  message: To create sync integration id is required. Not provided in request body.
242
+ batch_size_exceeded:
243
+ summary: More than 100 run-next ids
244
+ value:
245
+ errors:
246
+ - code: batch_size_exceeded
247
+ message: Maximum batch size is 100.
241
248
  '401':
242
249
  $ref: '#/components/responses/401-unauthorized-or-scoped-token'
243
250
  '403':
@@ -265,25 +272,53 @@ paths:
265
272
  errors:
266
273
  - code: access_restricted
267
274
  message: Access restricted
275
+ '409':
276
+ description: |-
277
+ `destination._connectionId` is a well-formed id that is no connection in the
278
+ account (`CONNECTION_NOT_FOUND`). Nothing is created.
279
+ content:
280
+ application/json:
281
+ schema:
282
+ $ref: '#/components/schemas/Error'
283
+ examples:
284
+ destination_connection_not_found:
285
+ summary: Unknown destination connection
286
+ value:
287
+ errors:
288
+ - code: CONNECTION_NOT_FOUND
289
+ message: Connection not found
268
290
  '422':
269
291
  description: |-
270
292
  Validation failed. `source._connectionId` is missing
271
293
  (`missing_source_connection`), the integration was not created with
272
- `syncs: true` (`integration_not_for_sync`), `destination._connectionId` isn't a
273
- connection in the account (`missing_destination_connection`), the destination
294
+ `syncs: true` (`integration_not_for_sync`), `destination._connectionId` is missing
295
+ while `database`, `schema` or `tablePrefix` is sent
296
+ (`missing_destination_connection`), the destination
274
297
  connection is offline while a `database` or `schema` is set
275
- (`offline_destination_connection`), the destination duplicates another sync
298
+ (`offline_destination_connection`), the destination warehouse didn't answer the
299
+ save's schema check in time (`destination_schema_check_timeout` — nothing is
300
+ saved; retry), the destination duplicates another sync
276
301
  (`duplicate_destination_host`), the destination connector rejected the
277
302
  sync configuration (`invalid_destination_sync_config`), two enabled
278
303
  datasets resolve to the same destination table
279
304
  (`conflicting_table_name`), a field exceeds its size limit
280
- (`size_limit_exceeded`), or the drift policy is inconsistent
281
- (`drift_policy_invalid_setup`).
305
+ (`size_limit_exceeded`), the drift policy is inconsistent
306
+ (`drift_policy_invalid_setup`), or a run-next id was refused: not a flow or sync in
307
+ the account (`invalid_ref`), an abstract flow
308
+ (`abstract_run_next_flow_not_allowed`), or a flow with no batch export
309
+ (`invalid_flow`).
282
310
  content:
283
311
  application/json:
284
312
  schema:
285
313
  $ref: '#/components/schemas/Error'
286
314
  examples:
315
+ run_next_invalid_ref:
316
+ summary: A run-next flow id the account doesn't have
317
+ value:
318
+ errors:
319
+ - field: _runNextFlowIds[0]
320
+ code: invalid_ref
321
+ message: 6a2a95909e994395f3c2a4f1 is not a valid _runNextFlowIds[0]
287
322
  missing_source_connection:
288
323
  summary: Missing source connection
289
324
  value:
@@ -456,7 +491,9 @@ paths:
456
491
  '400':
457
492
  description: |-
458
493
  Bad request. The body contains `_integrationId` (`sync_integration_id_update`)
459
- or `_id`/`_userId` (`id_and_userId_in_request`).
494
+ or `_id`/`_userId` (`id_and_userId_in_request`), `_runNextFlowIds` or
495
+ `_runNextSyncIds` is not an array of ids, or either list has more than 100 entries
496
+ (`batch_size_exceeded`).
460
497
  content:
461
498
  application/json:
462
499
  schema:
@@ -496,30 +533,66 @@ paths:
496
533
  message: Access restricted
497
534
  '404':
498
535
  $ref: '#/components/responses/404-not-found'
536
+ '409':
537
+ description: |-
538
+ `destination._connectionId` is a well-formed id that is no connection in the
539
+ account (`CONNECTION_NOT_FOUND`). The stored sync is unchanged.
540
+ content:
541
+ application/json:
542
+ schema:
543
+ $ref: '#/components/schemas/Error'
544
+ examples:
545
+ destination_connection_not_found:
546
+ summary: Unknown destination connection
547
+ value:
548
+ errors:
549
+ - code: CONNECTION_NOT_FOUND
550
+ message: Connection not found
499
551
  '422':
500
552
  description: |-
501
553
  Validation failed. `source._connectionId` is missing
502
554
  (`missing_source_connection`), the sync is not ready to enable
503
- (`sync_not_enabled`), the update drops the saved destination connection or names a
504
- connection that doesn't exist (`missing_destination_connection`, "Destination
555
+ (`sync_not_enabled`), the update drops the saved destination connection or sends
556
+ `database`, `schema` or `tablePrefix` without a connection
557
+ (`missing_destination_connection`, "Destination
505
558
  connection is missing in the request"), the new destination connection is another
506
559
  warehouse type than the saved one (`duplicate_destination_type`, "Destination
507
560
  connection type is not same as the previous destination connection type"), a new
508
561
  `database` or `schema` was sent while the destination connection is offline
509
562
  (`offline_destination_connection` — the platform creates the schema when the
510
- destination is saved), the destination duplicates another sync
563
+ destination is saved), the destination warehouse didn't answer that schema check in
564
+ time (`destination_schema_check_timeout` — the stored sync is unchanged; retry), the
565
+ destination duplicates another sync
511
566
  (`duplicate_destination_host`), the destination connector rejected the
512
567
  sync configuration (`invalid_destination_sync_config`), two enabled
513
568
  datasets resolve to the same destination table
514
569
  (`conflicting_table_name`), a field exceeds its size limit
515
570
  (`size_limit_exceeded`), the drift policy is inconsistent
516
- (`drift_policy_invalid_setup`), or the destination's application differs from
517
- the integration's other syncs.
571
+ (`drift_policy_invalid_setup`), the destination's application differs from
572
+ the integration's other syncs, or a run-next id the save adds was refused: not a
573
+ flow or sync in the account, this sync, or a loop back to this sync (`invalid_ref`),
574
+ an abstract flow (`abstract_run_next_flow_not_allowed`), or a flow with no batch
575
+ export (`invalid_flow`).
518
576
  content:
519
577
  application/json:
520
578
  schema:
521
579
  $ref: '#/components/schemas/Error'
522
580
  examples:
581
+ run_next_abstract_flow:
582
+ summary: An abstract flow added to _runNextFlowIds
583
+ value:
584
+ errors:
585
+ - field: _runNextFlowIds[0]
586
+ code: abstract_run_next_flow_not_allowed
587
+ message: Specifying an abstract flow as a run next flow is not allowed.
588
+ destination_schema_check_timeout:
589
+ summary: The warehouse didn't answer in time
590
+ value:
591
+ errors:
592
+ - source: DI-MANAGEMENT-SERVICE
593
+ code: destination_schema_check_timeout
594
+ message: Destination warehouse did not respond in time; the save was not applied, please retry
595
+ resolved: false
523
596
  mixed_destination_types:
524
597
  summary: Another destination application in the same integration
525
598
  value:
@@ -579,6 +652,22 @@ paths:
579
652
  $ref: '#/components/responses/403-one-time-token'
580
653
  '404':
581
654
  $ref: '#/components/responses/404-not-found'
655
+ '422':
656
+ description: |-
657
+ Another sync lists this sync in its `_runNextSyncIds`
658
+ (`dependencies_not_deleted`). Take this sync off that list, or delete that sync,
659
+ first.
660
+ content:
661
+ application/json:
662
+ schema:
663
+ $ref: '#/components/schemas/Error'
664
+ examples:
665
+ listed_by_another_sync:
666
+ summary: Another sync runs this sync next
667
+ value:
668
+ errors:
669
+ - code: dependencies_not_deleted
670
+ message: sync 6a4b8bfb731a7a5cae9bd364 must be deleted before you can delete sync 6a559b5185efa7502eefd439
582
671
  /v1/integrations/{_integrationId}/syncs:
583
672
  get:
584
673
  x-internal: false
@@ -935,7 +1024,8 @@ paths:
935
1024
  primary key, a `tableName` is already taken (or, for an enabled dataset, matches
936
1025
  another dataset's table name in another letter case), two source columns sanitize to
937
1026
  the same destination column name (`duplicate_sanitized_column_names` — rename
938
- or disable the conflicting source columns), or a data-element combination is
1027
+ or disable the conflicting source columns), an update changes a dataset's
1028
+ `isExport` (`is_export_update_not_allowed`), or a data-element combination is
939
1029
  invalid (e.g. `transformMode` without children, or `isPrimaryKey` with `mask`).
940
1030
  content:
941
1031
  application/json:
@@ -1018,6 +1108,59 @@ paths:
1018
1108
  $ref: '#/components/responses/403-one-time-token'
1019
1109
  '404':
1020
1110
  $ref: '#/components/responses/404-not-found'
1111
+ /v1/syncs/{_syncId}/descendants:
1112
+ get:
1113
+ x-internal: false
1114
+ summary: List a sync's run-next flows and syncs
1115
+ description: |-
1116
+ Resolves a sync's `_runNextFlowIds` and `_runNextSyncIds` to the flows and syncs they
1117
+ point at, with the caller's permission on each one and its current state. Rows are
1118
+ returned in list order. A sync with neither list set, or with both emptied, returns
1119
+ empty `flows` and `syncs` arrays.
1120
+ operationId: listSyncDescendants
1121
+ tags:
1122
+ - Syncs
1123
+ parameters:
1124
+ - name: _syncId
1125
+ in: path
1126
+ required: true
1127
+ description: Sync id.
1128
+ schema:
1129
+ type: string
1130
+ format: objectId
1131
+ x-celigo-refModel: syncs
1132
+ examples:
1133
+ - 6a4b8bfb731a7a5cae9bd364
1134
+ responses:
1135
+ '200':
1136
+ description: The flows and syncs this sync runs next.
1137
+ content:
1138
+ application/json:
1139
+ schema:
1140
+ $ref: '#/components/schemas/SyncDescendants'
1141
+ examples:
1142
+ listed:
1143
+ summary: One flow and one sync listed
1144
+ value:
1145
+ flows:
1146
+ - _id: 6a2a95909e994395f3c2a4f1
1147
+ name: Load orders to NetSuite
1148
+ permission: manage
1149
+ status: ok
1150
+ syncs:
1151
+ - _id: 6a559b5185efa7502eefd439
1152
+ name: Order Analytics
1153
+ permission: manage
1154
+ status: disabled
1155
+ empty:
1156
+ summary: Neither list set
1157
+ value:
1158
+ flows: []
1159
+ syncs: []
1160
+ '401':
1161
+ $ref: '#/components/responses/401-unauthorized-or-scoped-token'
1162
+ '404':
1163
+ $ref: '#/components/responses/404-not-found'
1021
1164
  /v1/syncs/{_syncId}/run:
1022
1165
  post:
1023
1166
  x-internal: false
@@ -2788,8 +2931,9 @@ paths:
2788
2931
  data warehouse a sync loads records into. A sync's destination application is the type of
2789
2932
  its destination connection (`rdbms.type` for warehouse connections), which must match one
2790
2933
  of the returned ids. Identifiers include `snowflake` (Snowflake), `nsaw` (NetSuite
2791
- Analytics Warehouse), `bigquery` (Google BigQuery), `mssql` (Microsoft SQL Server), and
2792
- `redshift` (Amazon Redshift).
2934
+ Analytics Warehouse), `bigquery` (Google BigQuery), `mssql` (Microsoft SQL Server),
2935
+ `redshift` (Amazon Redshift), `azuresynapse` (Azure Synapse Analytics), and
2936
+ `microsoftfabric` (Microsoft Fabric — an `rdbms.type: fabric` connection).
2793
2937
  tags:
2794
2938
  - Syncs
2795
2939
  operationId: listSyncDestinations
@@ -2814,7 +2958,9 @@ paths:
2814
2958
  examples:
2815
2959
  default:
2816
2960
  value:
2961
+ - id: azuresynapse
2817
2962
  - id: bigquery
2963
+ - id: microsoftfabric
2818
2964
  - id: mssql
2819
2965
  - id: nsaw
2820
2966
  - id: redshift
@@ -3021,8 +3167,9 @@ paths:
3021
3167
  Returns the full column/field catalog for one table/object on a connection, as read
3022
3168
  from the source application. Use it to build the `dataElements` selection before
3023
3169
  saving a dataset via `PUT /v1/syncs/{_syncId}/datasets` — each element's `name` here
3024
- is the `name` to reference there. Read an export's record structure (`isExport=true`)
3025
- or an HTTP-connector object's columns through
3170
+ 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. Read an
3172
+ HTTP-connector object's columns through
3026
3173
  `GET /v1/di/metadata/sync/{_syncId}/connections/{_connectionId}/datasets/{datasetName}/details`
3027
3174
  once a draft sync exists.
3028
3175
  operationId: getConnectionDatasetDetails
@@ -3319,11 +3466,6 @@ paths:
3319
3466
  schema:
3320
3467
  $ref: '#/components/schemas/Error'
3321
3468
  examples:
3322
- export_or_connector_object:
3323
- summary: An export or HTTP-connector object (read it through the sync-scoped route)
3324
- value:
3325
- errors:
3326
- - message: 'A required parameter is missing: _datasetId'
3327
3469
  unknown_dataset:
3328
3470
  summary: Table does not exist in the source
3329
3471
  value:
@@ -4152,9 +4294,10 @@ components:
4152
4294
  destination yet. The destination application is the connection's own type
4153
4295
  (`rdbms.type` for warehouse connections), so `database` and `schema` are read in that
4154
4296
  application's terms — Google BigQuery treats them as the GCP project and the dataset.
4155
- A `database` and `schema` pair can back only one sync, even across integrations — reusing one,
4156
- in any letter case, fails with `422 duplicate_destination_host` — and all syncs in an
4157
- integration must target the same destination application type.
4297
+ A `database` and `schema` pair can back only one sync on a destination connection,
4298
+ even across integrations — reusing one, in any letter case, fails with
4299
+ `422 duplicate_destination_host` — and all syncs in an integration must target the
4300
+ same destination application type.
4158
4301
  properties:
4159
4302
  _connectionId:
4160
4303
  type: string
@@ -4162,8 +4305,9 @@ components:
4162
4305
  x-celigo-refModel: connections
4163
4306
  description: |-
4164
4307
  Connection to the destination warehouse. Its application (`rdbms.type` such as
4165
- `snowflake`, `bigquery`, `mssql` or `redshift`, or a NetSuite Analytics Warehouse JDBC
4166
- connection) is one of the ids returned by `GET /v1/di/metadata/destinations`.
4308
+ `snowflake`, `bigquery`, `mssql`, `redshift` or `azuresynapse`, `rdbms.type: fabric`
4309
+ for Microsoft Fabric, or a NetSuite Analytics Warehouse JDBC connection) is one of
4310
+ the ids returned by `GET /v1/di/metadata/destinations`.
4167
4311
  examples:
4168
4312
  - 68d02dbe0839a514623c1d6d
4169
4313
  database:
@@ -4189,6 +4333,30 @@ components:
4189
4333
  - sf_
4190
4334
  driftPolicy:
4191
4335
  $ref: '#/components/schemas/SyncDriftPolicy'
4336
+ _runNextFlowIds:
4337
+ type: array
4338
+ maxItems: 100
4339
+ description: |-
4340
+ Flows to run after this sync. Absent until the list is first set; an emptied list is
4341
+ returned as `[]`.
4342
+ items:
4343
+ type: string
4344
+ format: objectId
4345
+ x-celigo-refModel: flows
4346
+ examples:
4347
+ - - 6a2a95909e994395f3c2a4f1
4348
+ _runNextSyncIds:
4349
+ type: array
4350
+ maxItems: 100
4351
+ description: |-
4352
+ Other syncs to run after this sync. Absent until the list is first set; an emptied
4353
+ list is returned as `[]`.
4354
+ items:
4355
+ type: string
4356
+ format: objectId
4357
+ x-celigo-refModel: syncs
4358
+ examples:
4359
+ - - 6a559b5185efa7502eefd439
4192
4360
  items:
4193
4361
  type: object
4194
4362
  properties:
@@ -4266,7 +4434,8 @@ components:
4266
4434
  Writable sync fields for `POST /v1/syncs` and `PUT /v1/syncs/{_id}`. Updates are full
4267
4435
  replacements: omitted optional fields (`schedule`, `timezone`, `destination` details,
4268
4436
  the `driftPolicy.element` settings) are cleared, not preserved, so send the complete
4269
- desired configuration on every PUT. A PUT that omits `disabled` returns the sync enabled
4437
+ desired configuration on every PUT. `_runNextFlowIds` and `_runNextSyncIds` are the
4438
+ exception: a PUT that omits them keeps the stored lists. A PUT that omits `disabled` returns the sync enabled
4270
4439
  (`disabled: false`) when its source, destination and `historicDateTime` are set.
4271
4440
  required:
4272
4441
  - source
@@ -4387,13 +4556,27 @@ components:
4387
4556
  enabled. The destination application is the connection's own type (`rdbms.type`
4388
4557
  for warehouse connections), so `database` and `schema` are read in that
4389
4558
  application's terms — Google BigQuery treats them as the GCP project and the
4390
- dataset. A `database` and `schema` pair, in any letter case, can back only one sync,
4391
- even across integrations (`422 duplicate_destination_host`, "Duplicate destination host found"). All syncs in
4559
+ dataset. A `database` and `schema` pair, in any letter case, can back only one sync on
4560
+ a destination connection, even across integrations (`422 duplicate_destination_host`).
4561
+ Sending `database`, `schema` or `tablePrefix` without `_connectionId` fails with
4562
+ `422 missing_destination_connection`, and a `_connectionId` that is no connection in
4563
+ the account fails with `409 CONNECTION_NOT_FOUND`. Saving a new `database` or `schema`
4564
+ checks the warehouse; when the warehouse doesn't answer in time the save fails with
4565
+ `422 destination_schema_check_timeout`, nothing is saved, and the request can be
4566
+ retried. All syncs in
4392
4567
  an integration must target the same destination application type, and a sync's
4393
4568
  destination type can't change once saved. An Amazon Redshift destination is checked
4394
4569
  on every save that sends `_connectionId`: a missing `database` or `schema` fails with
4395
4570
  422 `invalid_destination_sync_config` ("Redshift database is required on sync
4396
- destination" / "Redshift schema is required on sync destination").
4571
+ destination" / "Redshift schema is required on sync destination"). Microsoft Fabric
4572
+ and Azure Synapse destinations are checked on those saves too, one error per unmet
4573
+ rule: Fabric needs a connection with a staging location plus `database` and `schema`
4574
+ (422 `invalid_destination_sync_config`: "Fabric connection with a staging location is
4575
+ required", "Warehouse is required on sync destination", "Schema is required on sync
4576
+ destination"); Synapse needs a service-principal connection with ADLS Gen2 staging
4577
+ and a `database` equal to the connection's (422
4578
+ `DIMETADATA_AZURESYNAPSE_SERVICE_PRINCIPAL_REQUIRED`,
4579
+ `DIMETADATA_AZURESYNAPSE_STAGING_REQUIRED`, `DIMETADATA_AZURESYNAPSE_DATABASE_MISMATCH`).
4397
4580
  x-celigo-ai-guidance:
4398
4581
  - |-
4399
4582
  Send the block complete or not at all. A partial block is rejected in the destination's
@@ -4410,15 +4593,6 @@ components:
4410
4593
  `invalid_host` for SQL Server, `big_query_unexpected_error` for BigQuery,
4411
4594
  `redshift_auth_fail` for Amazon Redshift — and no sync document is created or
4412
4595
  updated; fix the connection rather than changing database or schema names.
4413
- - |-
4414
- A destination host that doesn't resolve can leave the save without a response for
4415
- more than 30 seconds, with nothing saved (seen on SQL Server and Snowflake
4416
- connections). Read the sync back before sending it again.
4417
- - |-
4418
- The duplicate_destination_host check compares the database and schema names
4419
- without regard to case. It refused a pair already used by another sync even when
4420
- the host, the destination type, the source connection and the integration all
4421
- differed, so give each sync a schema of its own.
4422
4596
  - |-
4423
4597
  A destination whose application differs from the other syncs' in the same
4424
4598
  integration fails with 422 "The destination type for all the syncs under an
@@ -4437,9 +4611,11 @@ components:
4437
4611
  x-celigo-refModel: connections
4438
4612
  description: |-
4439
4613
  Connection to the destination warehouse. Its application (`rdbms.type` such as
4440
- `snowflake`, `bigquery`, `mssql` or `redshift`, or a NetSuite Analytics Warehouse JDBC
4441
- connection) must be one of the ids returned by `GET /v1/di/metadata/destinations`;
4442
- any other connection fails with `422 invalid_destination_type`.
4614
+ `snowflake`, `bigquery`, `mssql`, `redshift` or `azuresynapse`, `rdbms.type: fabric`
4615
+ for Microsoft Fabric (destination id `microsoftfabric`), or a NetSuite Analytics
4616
+ Warehouse JDBC connection) must be one of the ids returned by
4617
+ `GET /v1/di/metadata/destinations`; any other connection fails with
4618
+ `422 invalid_destination_type`.
4443
4619
  examples:
4444
4620
  - 68d02dbe0839a514623c1d6d
4445
4621
  database:
@@ -4473,6 +4649,38 @@ components:
4473
4649
  - sf_
4474
4650
  driftPolicy:
4475
4651
  $ref: '#/components/schemas/SyncDriftPolicy'
4652
+ _runNextFlowIds:
4653
+ type: array
4654
+ maxItems: 100
4655
+ description: |-
4656
+ Flows to run after this sync. A PUT that omits the field keeps the stored list;
4657
+ send `[]` to clear it. More than 100 entries, or an entry that isn't an id, fails
4658
+ with 400. Only ids this save adds are checked: an id that isn't a flow in the
4659
+ account fails with `422 invalid_ref`; an abstract flow fails with
4660
+ `422 abstract_run_next_flow_not_allowed`; a flow with no batch export, a realtime
4661
+ flow included, fails with `422 invalid_flow`. Ids already on the list are kept even
4662
+ if the flow is later disabled or changed.
4663
+ items:
4664
+ type: string
4665
+ format: objectId
4666
+ x-celigo-refModel: flows
4667
+ examples:
4668
+ - - 6a2a95909e994395f3c2a4f1
4669
+ _runNextSyncIds:
4670
+ type: array
4671
+ maxItems: 100
4672
+ description: |-
4673
+ Other syncs to run after this sync. A PUT that omits the field keeps the stored
4674
+ list; send `[]` to clear it. More than 100 entries, or an entry that isn't an id,
4675
+ fails with 400. Only ids this save adds are checked: an id that isn't a sync in the
4676
+ account, is this sync, or would make the run-next chain loop back to this sync fails
4677
+ with `422 invalid_ref`. A sync can't be deleted while another sync lists it.
4678
+ items:
4679
+ type: string
4680
+ format: objectId
4681
+ x-celigo-refModel: syncs
4682
+ examples:
4683
+ - - 6a559b5185efa7502eefd439
4476
4684
  DataElement:
4477
4685
  type: object
4478
4686
  description: |-
@@ -4639,7 +4847,8 @@ components:
4639
4847
  When true, the dataset's records come from an existing export resource instead
4640
4848
  of a source table; `externalId` then holds the export ID, and the export must
4641
4849
  use the sync's source connection. Export datasets require `tableName` and an
4642
- explicit `dataElements` selection, and do not accept `exportProperties`.
4850
+ explicit `dataElements` selection, and do not accept `exportProperties`. Immutable
4851
+ after creation (422 `is_export_update_not_allowed`).
4643
4852
  examples:
4644
4853
  - false
4645
4854
  exportProperties:
@@ -4824,7 +5033,10 @@ components:
4824
5033
  When true, the dataset's records come from an existing export resource:
4825
5034
  `externalId` must be the export's ID, the export must use the sync's source
4826
5035
  connection (`400 connection_mismatch`), and the item must include `tableName`
4827
- and `dataElements` but no `exportProperties`.
5036
+ and `dataElements` but no `exportProperties`. Fixed when the dataset is created:
5037
+ an update that changes it fails with `422 is_export_update_not_allowed` ("isExport
5038
+ field cannot be updated after dataset is created."). Omitting it on update, or
5039
+ sending `false` or `null` for a dataset created without it, is not a change.
4828
5040
  examples:
4829
5041
  - false
4830
5042
  exportProperties:
@@ -4890,6 +5102,110 @@ components:
4890
5102
  dataset's previous selection entirely.
4891
5103
  items:
4892
5104
  $ref: '#/components/schemas/DataElement'
5105
+ RunNextPermission:
5106
+ type: string
5107
+ enum:
5108
+ - manage
5109
+ - monitor
5110
+ - none
5111
+ description: The caller's access level on the integration that holds the flow or sync.
5112
+ x-enumDescriptions:
5113
+ manage: The caller can manage the integration.
5114
+ monitor: The caller can only monitor the integration.
5115
+ none: The caller has no access to the integration.
5116
+ examples:
5117
+ - manage
5118
+ SyncDescendants:
5119
+ type: object
5120
+ description: The flows and syncs a sync's run-next lists resolve to, in list order.
5121
+ required:
5122
+ - flows
5123
+ - syncs
5124
+ properties:
5125
+ flows:
5126
+ type: array
5127
+ description: One row per `_runNextFlowIds` entry.
5128
+ items:
5129
+ type: object
5130
+ description: A flow this sync runs next.
5131
+ required:
5132
+ - _id
5133
+ - name
5134
+ - permission
5135
+ - status
5136
+ properties:
5137
+ _id:
5138
+ type: string
5139
+ format: objectId
5140
+ x-celigo-refModel: flows
5141
+ description: Flow id.
5142
+ examples:
5143
+ - 6a2a95909e994395f3c2a4f1
5144
+ name:
5145
+ type: string
5146
+ description: Flow name.
5147
+ examples:
5148
+ - Load orders to NetSuite
5149
+ permission:
5150
+ $ref: '#/components/schemas/RunNextPermission'
5151
+ status:
5152
+ type: string
5153
+ enum:
5154
+ - ok
5155
+ - disabled
5156
+ - abstract
5157
+ - realtime
5158
+ - no_batch_export
5159
+ description: |-
5160
+ The flow's run-next readiness. The first value that applies is returned,
5161
+ checked in the order `disabled`, `abstract`, `realtime`, `no_batch_export`. A
5162
+ flow that changed state after it was listed stays on the list and reports its
5163
+ current state here.
5164
+ x-enumDescriptions:
5165
+ ok: None of the other states apply.
5166
+ disabled: The flow is disabled.
5167
+ abstract: The flow is an abstract flow.
5168
+ realtime: The flow starts from a listener (a realtime export) instead of a batch export.
5169
+ no_batch_export: The flow has no batch export.
5170
+ examples:
5171
+ - ok
5172
+ syncs:
5173
+ type: array
5174
+ description: One row per `_runNextSyncIds` entry.
5175
+ items:
5176
+ type: object
5177
+ description: A sync this sync runs next.
5178
+ required:
5179
+ - _id
5180
+ - name
5181
+ - permission
5182
+ - status
5183
+ properties:
5184
+ _id:
5185
+ type: string
5186
+ format: objectId
5187
+ x-celigo-refModel: syncs
5188
+ description: Sync id.
5189
+ examples:
5190
+ - 6a559b5185efa7502eefd439
5191
+ name:
5192
+ type: string
5193
+ description: Sync name.
5194
+ examples:
5195
+ - Order Analytics
5196
+ permission:
5197
+ $ref: '#/components/schemas/RunNextPermission'
5198
+ status:
5199
+ type: string
5200
+ enum:
5201
+ - ok
5202
+ - disabled
5203
+ description: The listed sync's run-next readiness.
5204
+ x-enumDescriptions:
5205
+ ok: The sync is enabled.
5206
+ disabled: The sync is disabled.
5207
+ examples:
5208
+ - disabled
4893
5209
  SyncRunRequest:
4894
5210
  type: object
4895
5211
  description: |-
package/dist/tag.yml CHANGED
@@ -168,7 +168,11 @@ paths:
168
168
  summary: Update a tag
169
169
  description: |-
170
170
  Updates the human-readable `tag` name for an existing tag entry.
171
- The short `tagId` code is immutable and cannot be changed.
171
+ The short `tagId` code is immutable and cannot be changed. The name
172
+ stays case-insensitively unique: renaming to another tag's name is
173
+ rejected with HTTP 422 `[create_not_allowed]` "A tag with this name
174
+ already exists.", while a PUT that sends the tag's own name, in any
175
+ case, saves.
172
176
  parameters:
173
177
  - name: _id
174
178
  in: path