@squidcloud/client 1.0.169 → 1.0.170
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.
- package/dist/cjs/index.js +7 -1
- package/dist/internal-common/src/public-types/application.public-types.d.ts +1 -19
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/database.types.d.ts +23 -1
- package/dist/internal-common/src/public-types/integrations/schemas.d.ts +4 -2
- package/dist/internal-common/src/types/application.types.d.ts +1 -0
- package/dist/typescript-client/src/queue.manager.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -28401,6 +28401,7 @@ var IntegrationType;
|
|
|
28401
28401
|
IntegrationType["built_in_db"] = "built_in_db";
|
|
28402
28402
|
IntegrationType["mongo"] = "mongo";
|
|
28403
28403
|
IntegrationType["mysql"] = "mysql";
|
|
28404
|
+
IntegrationType["clickhouse"] = "clickhouse";
|
|
28404
28405
|
IntegrationType["mssql"] = "mssql";
|
|
28405
28406
|
IntegrationType["postgres"] = "postgres";
|
|
28406
28407
|
IntegrationType["cockroach"] = "cockroach";
|
|
@@ -28430,7 +28431,6 @@ var IntegrationType;
|
|
|
28430
28431
|
IntegrationType["documentdb"] = "documentdb";
|
|
28431
28432
|
IntegrationType["dynamodb"] = "dynamodb";
|
|
28432
28433
|
IntegrationType["cassandra"] = "cassandra";
|
|
28433
|
-
IntegrationType["clickhouse"] = "clickhouse";
|
|
28434
28434
|
IntegrationType["alloydb"] = "alloydb";
|
|
28435
28435
|
IntegrationType["spanner"] = "spanner";
|
|
28436
28436
|
IntegrationType["db2"] = "db2";
|
|
@@ -28480,6 +28480,7 @@ const DatabaseIntegrationTypes = [
|
|
|
28480
28480
|
IntegrationType.built_in_db,
|
|
28481
28481
|
IntegrationType.mongo,
|
|
28482
28482
|
IntegrationType.mysql,
|
|
28483
|
+
IntegrationType.clickhouse,
|
|
28483
28484
|
IntegrationType.bigquery,
|
|
28484
28485
|
IntegrationType.mssql,
|
|
28485
28486
|
IntegrationType.postgres,
|
|
@@ -48349,6 +48350,11 @@ function enableDebugLogs() {
|
|
|
48349
48350
|
globalObj['SQUID_DEBUG_ENABLED'] = true;
|
|
48350
48351
|
}
|
|
48351
48352
|
/** @internal */
|
|
48353
|
+
function disableDebugLogs() {
|
|
48354
|
+
const globalObj = getGlobal();
|
|
48355
|
+
globalObj['SQUID_DEBUG_ENABLED'] = false;
|
|
48356
|
+
}
|
|
48357
|
+
/** @internal */
|
|
48352
48358
|
class DebugLogger {
|
|
48353
48359
|
static log(...args) {
|
|
48354
48360
|
DebugLogger.info(...args);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
|
|
2
2
|
import { IntegrationType } from './integration.public-types';
|
|
3
|
-
import {
|
|
3
|
+
import { IntegrationId } from './communication.public-types';
|
|
4
4
|
/** A type alias for a string that represents a webhook. */
|
|
5
5
|
export type WebhookId = string;
|
|
6
6
|
/** A type alias for a string that represents a trigger id. */
|
|
@@ -95,21 +95,6 @@ export declare enum CronExpression {
|
|
|
95
95
|
MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
|
|
96
96
|
MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
|
|
97
97
|
}
|
|
98
|
-
export interface DeleteIntegrationRequest {
|
|
99
|
-
integrationId: IntegrationId;
|
|
100
|
-
}
|
|
101
|
-
export interface UpdateAllowedHostsRequest {
|
|
102
|
-
allowedHosts: string[];
|
|
103
|
-
}
|
|
104
|
-
export interface CreateEnvironmentRequest {
|
|
105
|
-
sourceAppId: AppId;
|
|
106
|
-
environmentId: EnvironmentId;
|
|
107
|
-
}
|
|
108
|
-
export interface UpdateApplicationCodeRequest {
|
|
109
|
-
appId: AppId;
|
|
110
|
-
openApiSpecStr?: string;
|
|
111
|
-
openApiControllersStr?: string;
|
|
112
|
-
}
|
|
113
98
|
interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
|
|
114
99
|
id: IntegrationId;
|
|
115
100
|
type: T;
|
|
@@ -143,7 +128,4 @@ export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest
|
|
|
143
128
|
export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
|
|
144
129
|
export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
|
|
145
130
|
export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
|
|
146
|
-
export interface GetSchemaRequest {
|
|
147
|
-
integrationId: IntegrationId;
|
|
148
|
-
}
|
|
149
131
|
export {};
|
|
@@ -11,6 +11,7 @@ export declare enum IntegrationType {
|
|
|
11
11
|
'built_in_db' = "built_in_db",
|
|
12
12
|
'mongo' = "mongo",
|
|
13
13
|
'mysql' = "mysql",
|
|
14
|
+
'clickhouse' = "clickhouse",
|
|
14
15
|
'mssql' = "mssql",
|
|
15
16
|
'postgres' = "postgres",
|
|
16
17
|
'cockroach' = "cockroach",
|
|
@@ -39,7 +40,6 @@ export declare enum IntegrationType {
|
|
|
39
40
|
'documentdb' = "documentdb",
|
|
40
41
|
'dynamodb' = "dynamodb",
|
|
41
42
|
'cassandra' = "cassandra",
|
|
42
|
-
'clickhouse' = "clickhouse",
|
|
43
43
|
'alloydb' = "alloydb",
|
|
44
44
|
'spanner' = "spanner",
|
|
45
45
|
'db2' = "db2",
|
|
@@ -24,6 +24,9 @@ export interface MongoConnectionOptions {
|
|
|
24
24
|
export interface MySqlConnectionSecretOptions {
|
|
25
25
|
password: string;
|
|
26
26
|
}
|
|
27
|
+
export interface ClickHouseConnectionSecretOptions {
|
|
28
|
+
password: string;
|
|
29
|
+
}
|
|
27
30
|
export interface BigQueryConnectionSecretOptions {
|
|
28
31
|
privateKey: string;
|
|
29
32
|
}
|
|
@@ -45,6 +48,14 @@ export interface MySqlConnectionOptions {
|
|
|
45
48
|
connectionLimit?: number;
|
|
46
49
|
sslEnabled?: boolean;
|
|
47
50
|
}
|
|
51
|
+
export interface ClickHouseConnectionOptions {
|
|
52
|
+
secrets: ClickHouseConnectionSecretOptions;
|
|
53
|
+
host: string;
|
|
54
|
+
user: string;
|
|
55
|
+
database: string;
|
|
56
|
+
connectionLimit?: number;
|
|
57
|
+
sslEnabled?: boolean;
|
|
58
|
+
}
|
|
48
59
|
export interface BigQueryConnectionOptions {
|
|
49
60
|
secrets: BigQueryConnectionSecretOptions;
|
|
50
61
|
projectId: string;
|
|
@@ -98,6 +109,9 @@ export interface BaseDatabaseIntegrationConfig extends BaseIntegrationConfig {
|
|
|
98
109
|
export interface MySqlIntegrationConfiguration {
|
|
99
110
|
connectionOptions: MySqlConnectionOptions;
|
|
100
111
|
}
|
|
112
|
+
export interface ClickHouseIntegrationConfiguration {
|
|
113
|
+
connectionOptions: ClickHouseConnectionOptions;
|
|
114
|
+
}
|
|
101
115
|
export interface BigQueryIntegrationConfiguration {
|
|
102
116
|
connectionOptions: BigQueryConnectionOptions;
|
|
103
117
|
}
|
|
@@ -120,6 +134,10 @@ export interface MySqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
|
120
134
|
type: IntegrationType.mysql;
|
|
121
135
|
configuration: MySqlIntegrationConfiguration;
|
|
122
136
|
}
|
|
137
|
+
export interface ClickHouseIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
138
|
+
type: IntegrationType.clickhouse;
|
|
139
|
+
configuration: ClickHouseIntegrationConfiguration;
|
|
140
|
+
}
|
|
123
141
|
export interface BigQueryIntegrationConfig extends BaseDatabaseIntegrationConfig {
|
|
124
142
|
type: IntegrationType.bigquery;
|
|
125
143
|
configuration: BigQueryIntegrationConfiguration;
|
|
@@ -174,6 +192,10 @@ interface DiscoverMysqlDataConnectionSchemaRequest {
|
|
|
174
192
|
integrationType: IntegrationType.mysql;
|
|
175
193
|
connectionOptions: MySqlConnectionOptions;
|
|
176
194
|
}
|
|
195
|
+
interface DiscoverClickHouseDataConnectionSchemaRequest {
|
|
196
|
+
integrationType: IntegrationType.clickhouse;
|
|
197
|
+
connectionOptions: ClickHouseConnectionOptions;
|
|
198
|
+
}
|
|
177
199
|
interface DiscoverBigQueryDataConnectionSchemaRequest {
|
|
178
200
|
integrationType: IntegrationType.bigquery;
|
|
179
201
|
connectionOptions: BigQueryConnectionOptions;
|
|
@@ -202,5 +224,5 @@ export interface TestDataConnectionResponse {
|
|
|
202
224
|
success: boolean;
|
|
203
225
|
errorMessage?: string;
|
|
204
226
|
}
|
|
205
|
-
export type DiscoverDataConnectionSchemaRequest = DiscoverMongoDataConnectionSchemaRequest | DiscoverInternalDataConnectionSchemaRequest | DiscoverMysqlDataConnectionSchemaRequest | DiscoverBigQueryDataConnectionSchemaRequest | DiscoverOracleDataConnectionSchemaRequest | DiscoverMssqlDataConnectionSchemaRequest | DiscoverCockroachDataConnectionSchemaRequest | DiscoverPostgresDataConnectionSchemaRequest | DiscoverSnowflakeDataConnectionSchemaRequest;
|
|
227
|
+
export type DiscoverDataConnectionSchemaRequest = DiscoverMongoDataConnectionSchemaRequest | DiscoverInternalDataConnectionSchemaRequest | DiscoverMysqlDataConnectionSchemaRequest | DiscoverClickHouseDataConnectionSchemaRequest | DiscoverBigQueryDataConnectionSchemaRequest | DiscoverOracleDataConnectionSchemaRequest | DiscoverMssqlDataConnectionSchemaRequest | DiscoverCockroachDataConnectionSchemaRequest | DiscoverPostgresDataConnectionSchemaRequest | DiscoverSnowflakeDataConnectionSchemaRequest;
|
|
206
228
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
|
|
2
2
|
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema } from './api.types';
|
|
3
3
|
import { Auth0IntegrationConfig, CognitoIntegrationConfig, DescopeIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
|
|
4
|
-
import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig } from './database.types';
|
|
4
|
+
import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, ClickHouseIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig } from './database.types';
|
|
5
5
|
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
6
6
|
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
7
7
|
import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig } from './queue-types';
|
|
@@ -10,6 +10,7 @@ export interface IntegrationConfigTypes {
|
|
|
10
10
|
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
11
11
|
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
12
12
|
[IntegrationType.mysql]: MySqlIntegrationConfig;
|
|
13
|
+
[IntegrationType.clickhouse]: ClickHouseIntegrationConfig;
|
|
13
14
|
[IntegrationType.bigquery]: BigQueryIntegrationConfig;
|
|
14
15
|
[IntegrationType.oracledb]: OracleIntegrationConfig;
|
|
15
16
|
[IntegrationType.mssql]: MssqlIntegrationConfig;
|
|
@@ -35,6 +36,7 @@ export interface IntegrationSchemaTypes {
|
|
|
35
36
|
[IntegrationType.built_in_db]: IntegrationDataSchema;
|
|
36
37
|
[IntegrationType.mongo]: IntegrationDataSchema;
|
|
37
38
|
[IntegrationType.mysql]: IntegrationDataSchema;
|
|
39
|
+
[IntegrationType.clickhouse]: IntegrationDataSchema;
|
|
38
40
|
[IntegrationType.oracledb]: IntegrationDataSchema;
|
|
39
41
|
[IntegrationType.bigquery]: IntegrationDataSchema;
|
|
40
42
|
[IntegrationType.mssql]: IntegrationDataSchema;
|
|
@@ -48,7 +50,7 @@ export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
|
|
|
48
50
|
export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
|
|
49
51
|
export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
|
|
50
52
|
export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
|
|
51
|
-
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
53
|
+
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.clickhouse, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
52
54
|
export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
|
|
53
55
|
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
54
56
|
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta, IntegrationType.descope];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
export interface QueueManager {
|
|
3
3
|
/** Publish messages to the queue */
|
|
4
|
-
produce(messages:
|
|
4
|
+
produce(messages: unknown[]): Promise<void>;
|
|
5
5
|
/** Consume messages from the queue */
|
|
6
|
-
consume(): Observable<
|
|
6
|
+
consume<T>(): Observable<T>;
|
|
7
7
|
}
|