77 PipelinesApi ,
88 ResponseError ,
99 SourceConnectorType ,
10- AIPlatformType ,
11- DestinationConnectorType
10+ AIPlatformTypeForPipeline ,
11+ DestinationConnectorTypeForPipeline
1212} from "@vectorize-io/vectorize-client" ;
1313import { pipeline } from "stream" ;
1414import * as os from "node:os" ;
@@ -64,12 +64,12 @@ async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: str
6464 sourceConnectors : [ { id : sourceConnectorId , type : SourceConnectorType . WebCrawler , config : { } } ] ,
6565 destinationConnector : {
6666 id : destinationConnectorId ,
67- type : DestinationConnectorType . Vectorize ,
67+ type : DestinationConnectorTypeForPipeline . Vectorize ,
6868 config : { }
6969 } ,
70- aiPlatform : {
70+ aiPlatformConnector : {
7171 id : aiPlatformId ,
72- type : AIPlatformType . Vectorize ,
72+ type : AIPlatformTypeForPipeline . Vectorize ,
7373 config : { }
7474 } ,
7575 schedule : { type : "manual" }
@@ -93,18 +93,14 @@ describe("connector", () => {
9393 const sourceConnectorId = sourceResponse . connector . id ;
9494
9595 // Update source connector
96- /* ENG-2651
9796 await sourceConnectorsApi . updateSourceConnector ( {
9897 organizationId : testContext . orgId ,
9998 sourceConnectorId,
10099 updateSourceConnectorRequest : {
101100 config : {
102- "max-urls": 100,
103- "max-depth": 5
104- }
101+ "seed-urls" : [ "https://docs.vectorize.io" , "https://vectorize.io/pricing" ] }
105102 }
106103 } ) ;
107- */
108104
109105 // Get all source connectors
110106 let connectors = await sourceConnectorsApi . getSourceConnectors ( {
@@ -159,15 +155,13 @@ describe("connector", () => {
159155 } ) ;
160156 const connectorId = sourceResponse . connector . id ;
161157
162- /* ENG-2651
163158 await aiPlatformConnectorsApi . updateAIPlatformConnector ( {
164159 organizationId : testContext . orgId ,
165- aiplatformId : connectorId,
160+ aiPlatformConnectorId : connectorId ,
166161 updateAIPlatformConnectorRequest : {
167162 config : { "key" : "sk" }
168163 }
169164 } ) ;
170- */
171165
172166 // Get all AI platform connectors
173167 let connectors = await aiPlatformConnectorsApi . getAIPlatformConnectors ( {
@@ -220,15 +214,13 @@ describe("connector", () => {
220214 } ) ;
221215 const connectorId = sourceResponse . connector . id ;
222216
223- /* ENG-2651
224217 await destinationConnectorsApi . updateDestinationConnector ( {
225218 organizationId : testContext . orgId ,
226219 destinationConnectorId : connectorId ,
227220 updateDestinationConnectorRequest : {
228- config: {"api-key ": "sk"}
221+ config : { "apiKey " : "sk" }
229222 }
230223 } ) ;
231- */
232224
233225 // Get all destination connectors
234226 let connectors = await destinationConnectorsApi . getDestinationConnectors ( {
0 commit comments