@squidcloud/client 1.0.41 → 1.0.43
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,5 +1,4 @@
|
|
|
1
1
|
import { Auth, RunContext } from './context.types';
|
|
2
|
-
import { ServiceFunctionName } from './bundle-data.types';
|
|
3
2
|
import { SecretKey, SecretValue } from './secret.types';
|
|
4
3
|
export interface RunPermissions {
|
|
5
4
|
hosts: Array<string>;
|
|
@@ -8,6 +7,7 @@ export interface ErrorResponse extends GeneralResponse {
|
|
|
8
7
|
ok: false;
|
|
9
8
|
error: string;
|
|
10
9
|
details?: string;
|
|
10
|
+
functionName: string;
|
|
11
11
|
}
|
|
12
12
|
export interface GeneralResponse {
|
|
13
13
|
ok: boolean;
|
|
@@ -18,19 +18,6 @@ export interface RunConfiguration {
|
|
|
18
18
|
isSecurityRules: boolean;
|
|
19
19
|
permissions: RunPermissions;
|
|
20
20
|
}
|
|
21
|
-
export interface RunConfigurationRequest {
|
|
22
|
-
configuration: RunConfiguration;
|
|
23
|
-
context: RunContext;
|
|
24
|
-
auth: Auth | undefined;
|
|
25
|
-
functionToRun: string;
|
|
26
|
-
params: Array<unknown>;
|
|
27
|
-
secrets?: RunSecrets;
|
|
28
|
-
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
29
|
-
}
|
|
30
|
-
export type EvaluateRulesFunctionRequest = {
|
|
31
|
-
functionName: ServiceFunctionName;
|
|
32
|
-
params: Array<any>;
|
|
33
|
-
};
|
|
34
21
|
export interface LoadJsPayload {
|
|
35
22
|
codeUrl: string;
|
|
36
23
|
}
|
|
@@ -87,6 +87,7 @@ export declare enum IntegrationType {
|
|
|
87
87
|
'datadog' = "datadog",
|
|
88
88
|
'newrelic' = "newrelic"
|
|
89
89
|
}
|
|
90
|
+
export type DatabaseIntegrationType = IntegrationType.built_in_db | IntegrationType.mongo | IntegrationType.mysql | IntegrationType.mssql | IntegrationType.postgres | IntegrationType.cockroach | IntegrationType.snowflake;
|
|
90
91
|
export type DatabaseIntegrationConfig = MySqlIntegrationConfig | MssqlIntegrationConfig | MongoIntegrationConfig | InternalIntegrationConfig | PostgresIntegrationConfig | CockroachIntegrationConfig | SnowflakeIntegrationConfig;
|
|
91
92
|
export type IntegrationConfig = DatabaseIntegrationConfig | ApiIntegrationConfig | GraphQLIntegrationConfig | DatadogIntegrationConfig | NewRelicIntegrationConfig;
|
|
92
93
|
type TableName = string;
|
|
@@ -132,6 +133,7 @@ export interface NewRelicIntegrationConfiguration {
|
|
|
132
133
|
newRelicRegion: NewRelicRegion;
|
|
133
134
|
}
|
|
134
135
|
export interface BaseDatabaseIntegrationConfig extends BaseIntegrationConfig {
|
|
136
|
+
type: DatabaseIntegrationType;
|
|
135
137
|
schema?: IntegrationDataSchema;
|
|
136
138
|
supportsExternalChanges: boolean;
|
|
137
139
|
}
|