Skip to content

Commit 9e0b112

Browse files
committed
Use IndexName in connectors API
1 parent 4718254 commit 9e0b112

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

specification/connector/post/ConnectorPostRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919
import { RequestBase } from '@_types/Base'
20+
import { IndexName } from '@_types/common'
2021
import { WithNullValue } from '@spec_utils/utils'
2122

2223
/**
@@ -33,7 +34,7 @@ export interface Request extends RequestBase {
3334
/** @codegen_name connector */
3435
body: {
3536
description?: string
36-
index_name: WithNullValue<string>
37+
index_name: WithNullValue<IndexName>
3738
is_native?: boolean
3839
language?: string
3940
name?: string

specification/connector/put/ConnectorPutRequest.ts

Lines changed: 2 additions & 2 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 { Id } from '@_types/common'
20+
import { Id, IndexName } from '@_types/common'
2121
import { WithNullValue } from '@spec_utils/utils'
2222

2323
/**
@@ -40,7 +40,7 @@ export interface Request extends RequestBase {
4040
/** @codegen_name connector */
4141
body: {
4242
description?: string
43-
index_name: WithNullValue<string>
43+
index_name: WithNullValue<IndexName>
4444
is_native?: boolean
4545
language?: string
4646
name?: string

specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts

Lines changed: 2 additions & 2 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 { Id } from '@_types/common'
20+
import { Id, IndexName } from '@_types/common'
2121
import { WithNullValue } from '@spec_utils/utils'
2222

2323
/**
@@ -38,6 +38,6 @@ export interface Request extends RequestBase {
3838
* The connector index name
3939
*/
4040
body: {
41-
index_name: WithNullValue<string>
41+
index_name: WithNullValue<IndexName>
4242
}
4343
}

0 commit comments

Comments
 (0)