Skip to content

Commit 7cbe82d

Browse files
committed
Adjust types, merge with Connector API
1 parent 6d40597 commit 7cbe82d

File tree

7 files changed

+38
-46
lines changed

7 files changed

+38
-46
lines changed

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 17 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/connector_sync_job/_types/SyncJob.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { Id } from '@_types/common'
2020
import { long } from '@_types/Numeric'
2121
import { Dictionary } from '@spec_utils/Dictionary'
2222
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
23-
import { WithNullValue } from '@spec_utils/utils'
2423
import {
2524
ConnectorConfiguration,
2625
FilteringConfig,
@@ -56,7 +55,7 @@ export interface ConnectorSyncJob {
5655
connector: SyncJobConnectorReference
5756
created_at: string
5857
deleted_document_count: long
59-
error: WithNullValue<string>
58+
error?: string
6059
id: Id
6160
indexed_document_count: long
6261
indexed_document_volume: long

specification/connector_sync_job/delete/SyncJobDeleteRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { RequestBase } from '@_types/Base'
2020
import { Id } from '@_types/common'
2121

2222
/**
23-
* Deletes a sync job.
23+
* Deletes a connector sync job.
2424
* @rest_spec_name connector_sync_job.delete
2525
* @availability stack since=8.12.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public

specification/connector_sync_job/list/SyncJobListRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919
import { RequestBase } from '@_types/Base'
20-
import { Fields, Id } from '@_types/common'
20+
import { Names, Id, Name } from '@_types/common'
2121
import { integer } from '@_types/Numeric'
2222

2323
/**
@@ -40,14 +40,14 @@ export interface Request extends RequestBase {
4040
/**
4141
* A sync job status to fetch connector sync jobs for
4242
*/
43-
status?: string
43+
status?: Name
4444
/**
4545
* A connector id to fetch connector sync jobs for
4646
*/
4747
connector_id?: Id
4848
/**
4949
* A comma-separated list of job types to fetch the sync jobs for
5050
*/
51-
job_type?: Fields
51+
job_type?: Names
5252
}
5353
}

specification/connector_sync_job/post/SyncJobPostRequest.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
* under the License.
1818
*/
1919
import { RequestBase } from '@_types/Base'
20-
import { Id } from '@_types/common'
21-
import { WithNullValue } from '@spec_utils/utils'
20+
import { Id, Name } from '@_types/common'
2221

2322
/**
2423
* Creates a connector sync job.
@@ -33,8 +32,11 @@ export interface Request extends RequestBase {
3332
*/
3433
/** @codegen_name sync_job */
3534
body: {
35+
/**
36+
* The id of the associated connector
37+
*/
3638
id: Id
37-
job_type?: string
38-
trigger_method?: string
39+
job_type?: Name
40+
trigger_method?: Name
3941
}
4042
}

0 commit comments

Comments
 (0)