@squidcloud/client 1.0.430 → 1.0.432
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The extraction method to use for processing documents.
|
|
3
3
|
*/
|
|
4
|
-
export type DocumentExtractionMethod = 'mistral_ocr' | 'legacy';
|
|
4
|
+
export type DocumentExtractionMethod = 'mistral_ocr' | 'legacy' | 'amazon_textract';
|
|
5
5
|
/**
|
|
6
6
|
* Options for customizing how data is extracted from a document.
|
|
7
7
|
*/
|
|
@@ -102,6 +102,15 @@ export declare class IntegrationClient {
|
|
|
102
102
|
* @returns A promise that resolves with the discovered schema and collection readiness information.
|
|
103
103
|
*/
|
|
104
104
|
discoverDataConnectionSchema<SchemaType = Record<string, any>>(integrationId: IntegrationId): Promise<DiscoverDataConnectionSchemaResponse<SchemaType>>;
|
|
105
|
+
/**
|
|
106
|
+
* Tests a data connection (database) to verify it is working.
|
|
107
|
+
* Attempts to connect to the database and perform a basic operation to validate connectivity.
|
|
108
|
+
* This can be used to test connection settings before saving the integration.
|
|
109
|
+
*
|
|
110
|
+
* @param config - The integration configuration to test.
|
|
111
|
+
* @returns A promise that resolves with the test result indicating success or failure with an optional error message.
|
|
112
|
+
*/
|
|
113
|
+
testDataConnection<ConfigurationType = Record<string, any>>(config: IntegrationInfo<ConfigurationType>): Promise<TestDataConnectionResponse>;
|
|
105
114
|
/**
|
|
106
115
|
* Discovers the schema of a GraphQL connection.
|
|
107
116
|
* Performs introspection on the GraphQL endpoint to discover types and operations.
|
|
@@ -240,6 +249,20 @@ export interface DiscoverDataConnectionSchemaResponse<SchemaType = Record<string
|
|
|
240
249
|
*/
|
|
241
250
|
collectionReadiness: Record<string, CollectionReadiness>;
|
|
242
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* Response from testing a data connection.
|
|
254
|
+
* @category Platform
|
|
255
|
+
*/
|
|
256
|
+
export interface TestDataConnectionResponse {
|
|
257
|
+
/**
|
|
258
|
+
* Whether the connection test was successful.
|
|
259
|
+
*/
|
|
260
|
+
success: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Error message if the connection test failed.
|
|
263
|
+
*/
|
|
264
|
+
errorMessage?: string;
|
|
265
|
+
}
|
|
243
266
|
/**
|
|
244
267
|
* Information about a collection's readiness for operations.
|
|
245
268
|
* @category Platform
|