Skip to content

Commit

Permalink
Make types in sync_job_post more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrazb committed Apr 17, 2024
1 parent fcc4833 commit ba2f719
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 37 deletions.
8 changes: 4 additions & 4 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions specification/connector/_types/SyncJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ interface SyncJobConnectorReference {
service_type: string
}

enum SyncJobType {
export enum SyncJobType {
full,
incremental,
access_control
}

enum TriggerMethod {
export enum SyncJobTriggerMethod {
on_demand,
scheduled
}
Expand All @@ -66,6 +66,6 @@ export interface ConnectorSyncJob {
started_at?: DateTime
status: SyncStatus
total_document_count: long
trigger_method: TriggerMethod
trigger_method: SyncJobTriggerMethod
worker_hostname?: string
}
7 changes: 4 additions & 3 deletions specification/connector/sync_job_post/SyncJobPostRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* under the License.
*/
import { RequestBase } from '@_types/Base'
import { Id, Name } from '@_types/common'
import { Id } from '@_types/common'
import { SyncJobType, SyncJobTriggerMethod } from '../_types/SyncJob'

/**
* Creates a connector sync job.
Expand All @@ -36,7 +37,7 @@ export interface Request extends RequestBase {
* The id of the associated connector
*/
id: Id
job_type?: Name
trigger_method?: Name
job_type?: SyncJobType
trigger_method?: SyncJobTriggerMethod
}
}

0 comments on commit ba2f719

Please sign in to comment.