@squidcloud/local-backend 1.0.49 → 1.0.50
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/common/src/ai-assistant.context.d.ts +13 -13
- package/dist/common/src/ai-assistant.context.js +19 -19
- package/dist/common/src/ai-assistant.schemas.d.ts +243 -243
- package/dist/common/src/ai-assistant.schemas.js +210 -210
- package/dist/common/src/ai-assistant.types.d.ts +90 -90
- package/dist/common/src/ai-assistant.types.js +11 -11
- package/dist/common/src/api-call.context.d.ts +13 -13
- package/dist/common/src/api-call.context.js +16 -16
- package/dist/common/src/api.types.d.ts +23 -23
- package/dist/common/src/api.types.js +2 -2
- package/dist/common/src/application.schemas.d.ts +1168 -1168
- package/dist/common/src/application.schemas.js +741 -741
- package/dist/common/src/application.types.d.ts +228 -228
- package/dist/common/src/application.types.js +89 -89
- package/dist/common/src/backend-function.schemas.d.ts +3 -3
- package/dist/common/src/backend-function.schemas.js +12 -12
- package/dist/common/src/backend-function.types.d.ts +6 -6
- package/dist/common/src/backend-function.types.js +2 -2
- package/dist/common/src/backend-run.types.d.ts +54 -54
- package/dist/common/src/backend-run.types.js +73 -73
- package/dist/common/src/bundle-api.types.d.ts +62 -62
- package/dist/common/src/bundle-api.types.js +2 -2
- package/dist/common/src/bundle-data.types.d.ts +59 -59
- package/dist/common/src/bundle-data.types.js +2 -2
- package/dist/common/src/communication.types.d.ts +18 -18
- package/dist/common/src/communication.types.js +40 -40
- package/dist/common/src/context.types.d.ts +24 -24
- package/dist/common/src/context.types.js +2 -2
- package/dist/common/src/distributed-lock.context.d.ts +5 -5
- package/dist/common/src/distributed-lock.context.js +10 -10
- package/dist/common/src/document.types.d.ts +32 -32
- package/dist/common/src/document.types.js +50 -50
- package/dist/common/src/graphql.context.d.ts +14 -14
- package/dist/common/src/graphql.context.js +12 -12
- package/dist/common/src/graphql.types.d.ts +11 -11
- package/dist/common/src/graphql.types.js +34 -34
- package/dist/common/src/heartbeat.types.d.ts +4 -4
- package/dist/common/src/heartbeat.types.js +16 -16
- package/dist/common/src/http-status.enum.d.ts +50 -50
- package/dist/common/src/http-status.enum.js +54 -54
- package/dist/common/src/index.d.ts +53 -53
- package/dist/common/src/index.js +69 -69
- package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -30
- package/dist/common/src/integrations/ai_assistant.types.js +2 -2
- package/dist/common/src/integrations/api.types.d.ts +80 -80
- package/dist/common/src/integrations/api.types.js +2 -2
- package/dist/common/src/integrations/auth.types.d.ts +39 -39
- package/dist/common/src/integrations/auth.types.js +2 -2
- package/dist/common/src/integrations/database.types.d.ts +236 -236
- package/dist/common/src/integrations/database.types.js +2 -2
- package/dist/common/src/integrations/index.d.ts +101 -101
- package/dist/common/src/integrations/index.js +105 -105
- package/dist/common/src/integrations/observability.types.d.ts +23 -23
- package/dist/common/src/integrations/observability.types.js +23 -23
- package/dist/common/src/integrations/observability.types.js.map +1 -1
- package/dist/common/src/logger.types.d.ts +21 -21
- package/dist/common/src/logger.types.js +11 -11
- package/dist/common/src/metrics.types.d.ts +73 -73
- package/dist/common/src/metrics.types.js +11 -11
- package/dist/common/src/mutation.context.d.ts +13 -13
- package/dist/common/src/mutation.context.js +26 -26
- package/dist/common/src/mutation.schemas.d.ts +5 -5
- package/dist/common/src/mutation.schemas.js +114 -114
- package/dist/common/src/mutation.types.d.ts +63 -63
- package/dist/common/src/mutation.types.js +142 -142
- package/dist/common/src/named-query.context.d.ts +4 -4
- package/dist/common/src/named-query.context.js +9 -9
- package/dist/common/src/named-query.schemas.d.ts +3 -3
- package/dist/common/src/named-query.schemas.js +13 -13
- package/dist/common/src/named-query.types.d.ts +8 -8
- package/dist/common/src/named-query.types.js +2 -2
- package/dist/common/src/query/base-query-builder.d.ts +65 -65
- package/dist/common/src/query/base-query-builder.js +294 -294
- package/dist/common/src/query/index.d.ts +3 -3
- package/dist/common/src/query/index.js +19 -19
- package/dist/common/src/query/query-context.d.ts +47 -47
- package/dist/common/src/query/query-context.js +159 -159
- package/dist/common/src/query/serialized-query.types.d.ts +24 -24
- package/dist/common/src/query/serialized-query.types.js +2 -2
- package/dist/common/src/query.types.d.ts +81 -81
- package/dist/common/src/query.types.js +153 -153
- package/dist/common/src/regions.d.ts +21 -21
- package/dist/common/src/regions.js +46 -46
- package/dist/common/src/schema/schema.types.d.ts +30 -30
- package/dist/common/src/schema/schema.types.js +172 -172
- package/dist/common/src/secret.schemas.d.ts +6 -6
- package/dist/common/src/secret.schemas.js +32 -32
- package/dist/common/src/secret.types.d.ts +49 -49
- package/dist/common/src/secret.types.js +5 -5
- package/dist/common/src/security.types.d.ts +3 -3
- package/dist/common/src/security.types.js +2 -2
- package/dist/common/src/socket.schemas.d.ts +3 -3
- package/dist/common/src/socket.schemas.js +58 -58
- package/dist/common/src/socket.types.d.ts +108 -108
- package/dist/common/src/socket.types.js +2 -2
- package/dist/common/src/time-units.d.ts +5 -5
- package/dist/common/src/time-units.js +8 -8
- package/dist/common/src/trigger.types.d.ts +15 -15
- package/dist/common/src/trigger.types.js +2 -2
- package/dist/common/src/types.d.ts +21 -21
- package/dist/common/src/types.js +2 -2
- package/dist/common/src/utils/array.d.ts +8 -8
- package/dist/common/src/utils/array.js +51 -51
- package/dist/common/src/utils/assert.d.ts +8 -8
- package/dist/common/src/utils/assert.js +49 -49
- package/dist/common/src/utils/error.d.ts +4 -4
- package/dist/common/src/utils/error.js +10 -10
- package/dist/common/src/utils/http.d.ts +2 -2
- package/dist/common/src/utils/http.js +38 -38
- package/dist/common/src/utils/id.d.ts +2 -2
- package/dist/common/src/utils/id.js +21 -21
- package/dist/common/src/utils/lock.manager.d.ts +9 -9
- package/dist/common/src/utils/lock.manager.js +39 -39
- package/dist/common/src/utils/nullish.d.ts +2 -2
- package/dist/common/src/utils/nullish.js +11 -11
- package/dist/common/src/utils/object.d.ts +6 -6
- package/dist/common/src/utils/object.js +89 -89
- package/dist/common/src/utils/serialization.d.ts +6 -6
- package/dist/common/src/utils/serialization.js +77 -77
- package/dist/common/src/utils/transforms.d.ts +18 -18
- package/dist/common/src/utils/transforms.js +92 -92
- package/dist/common/src/utils/url.d.ts +1 -1
- package/dist/common/src/utils/url.js +15 -15
- package/dist/common/src/utils/validation.d.ts +17 -17
- package/dist/common/src/utils/validation.js +209 -209
- package/dist/common/src/utils/validation.js.map +1 -1
- package/dist/common/src/webhook-response.d.ts +7 -7
- package/dist/common/src/webhook-response.js +7 -7
- package/dist/internal-common/src/async-queue.d.ts +4 -4
- package/dist/internal-common/src/async-queue.js +17 -17
- package/dist/internal-common/src/code-executor.types.d.ts +13 -13
- package/dist/internal-common/src/code-executor.types.js +2 -2
- package/dist/internal-common/src/environment/environment.types.d.ts +74 -74
- package/dist/internal-common/src/environment/environment.types.js +2 -2
- package/dist/internal-common/src/environment/index.d.ts +6 -6
- package/dist/internal-common/src/environment/index.js +27 -27
- package/dist/internal-common/src/environment/local.environment.d.ts +2 -2
- package/dist/internal-common/src/environment/local.environment.js +62 -62
- package/dist/internal-common/src/filters/custom-exception.filter.d.ts +6 -6
- package/dist/internal-common/src/filters/custom-exception.filter.js +44 -44
- package/dist/internal-common/src/index.d.ts +14 -14
- package/dist/internal-common/src/index.js +32 -32
- package/dist/internal-common/src/interceptors/body.interceptor.d.ts +5 -5
- package/dist/internal-common/src/interceptors/body.interceptor.js +24 -24
- package/dist/internal-common/src/kafka/kafka.manager.d.ts +22 -22
- package/dist/internal-common/src/kafka/kafka.manager.js +129 -129
- package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -17
- package/dist/internal-common/src/kafka/kafka.types.js +2 -2
- package/dist/internal-common/src/kafka-observability-publisher.d.ts +11 -11
- package/dist/internal-common/src/kafka-observability-publisher.js +20 -20
- package/dist/internal-common/src/local-dev.types.d.ts +31 -31
- package/dist/internal-common/src/local-dev.types.js +2 -2
- package/dist/internal-common/src/observability-publisher.d.ts +9 -9
- package/dist/internal-common/src/observability-publisher.js +58 -58
- package/dist/internal-common/src/observability.types.d.ts +17 -17
- package/dist/internal-common/src/observability.types.js +2 -2
- package/dist/internal-common/src/shutdown.manager.d.ts +20 -20
- package/dist/internal-common/src/shutdown.manager.js +75 -75
- package/dist/internal-common/src/utils.d.ts +5 -5
- package/dist/internal-common/src/utils.js +29 -29
- package/dist/local-backend/src/index.d.ts +4 -4
- package/dist/local-backend/src/index.js +20 -20
- package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
- package/dist/local-backend/src/local-backend-socket.service.js +107 -108
- package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
- package/dist/local-backend/src/local-backend.app.d.ts +2 -2
- package/dist/local-backend/src/local-backend.app.js +19 -19
- package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
- package/dist/local-backend/src/local-backend.controller.js +49 -49
- package/dist/local-backend/src/local-backend.module.d.ts +8 -8
- package/dist/local-backend/src/local-backend.module.js +53 -53
- package/dist/local-backend/src/local-backend.service.d.ts +15 -15
- package/dist/local-backend/src/local-backend.service.js +165 -165
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
export * from './ai_assistant.types';
|
|
2
|
-
export * from './api.types';
|
|
3
|
-
export * from './auth.types';
|
|
4
|
-
export * from './database.types';
|
|
5
|
-
export * from './observability.types';
|
|
6
|
-
import { IntegrationId } from '../communication.types';
|
|
7
|
-
import { AiAssistantIntegrationConfig } from './ai_assistant.types';
|
|
8
|
-
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, TestGraphQLDataConnectionRequest } from './api.types';
|
|
9
|
-
import { Auth0IntegrationConfig, CognitoIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
|
|
10
|
-
import { BaseDatabaseIntegrationConfig, CockroachIntegrationConfig, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
|
|
11
|
-
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
12
|
-
export declare enum IntegrationCategory {
|
|
13
|
-
'database' = "database",
|
|
14
|
-
'api' = "api",
|
|
15
|
-
'observability' = "observability",
|
|
16
|
-
'crm' = "crm",
|
|
17
|
-
'auth' = "auth",
|
|
18
|
-
'ai' = "ai"
|
|
19
|
-
}
|
|
20
|
-
export declare enum IntegrationType {
|
|
21
|
-
'built_in_db' = "built_in_db",
|
|
22
|
-
'mongo' = "mongo",
|
|
23
|
-
'mysql' = "mysql",
|
|
24
|
-
'mssql' = "mssql",
|
|
25
|
-
'postgres' = "postgres",
|
|
26
|
-
'cockroach' = "cockroach",
|
|
27
|
-
'api' = "api",
|
|
28
|
-
'graphql' = "graphql",
|
|
29
|
-
'snowflake' = "snowflake",
|
|
30
|
-
'datadog' = "datadog",
|
|
31
|
-
'newrelic' = "newrelic",
|
|
32
|
-
'auth0' = "auth0",
|
|
33
|
-
'jwt_rsa' = "jwt_rsa",
|
|
34
|
-
'jwt_hmac' = "jwt_hmac",
|
|
35
|
-
'ai_assistant' = "ai_assistant",
|
|
36
|
-
'cognito' = "cognito",
|
|
37
|
-
'okta' = "okta",
|
|
38
|
-
'algolia' = "algolia",
|
|
39
|
-
'elastic_observability' = "elastic_observability",
|
|
40
|
-
'elastic_search' = "elastic_search",
|
|
41
|
-
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
42
|
-
'sentry' = "sentry",
|
|
43
|
-
'sap_hana' = "sap_hana",
|
|
44
|
-
'salesforce_crm' = "salesforce_crm",
|
|
45
|
-
'documentdb' = "documentdb",
|
|
46
|
-
'dynamodb' = "dynamodb",
|
|
47
|
-
'cassandra' = "cassandra",
|
|
48
|
-
'clickhouse' = "clickhouse",
|
|
49
|
-
'alloydb' = "alloydb",
|
|
50
|
-
'spanner' = "spanner",
|
|
51
|
-
'db2' = "db2",
|
|
52
|
-
'mariadb' = "mariadb",
|
|
53
|
-
'oracledb' = "oracledb",
|
|
54
|
-
'redis' = "redis",
|
|
55
|
-
'xata' = "xata",
|
|
56
|
-
'azure_sql' = "azure_sql"
|
|
57
|
-
}
|
|
58
|
-
export interface IntegrationConfigTypes {
|
|
59
|
-
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
60
|
-
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
61
|
-
[IntegrationType.mysql]: MySqlIntegrationConfig;
|
|
62
|
-
[IntegrationType.oracledb]: OracleIntegrationConfig;
|
|
63
|
-
[IntegrationType.mssql]: MssqlIntegrationConfig;
|
|
64
|
-
[IntegrationType.postgres]: PostgresIntegrationConfig;
|
|
65
|
-
[IntegrationType.cockroach]: CockroachIntegrationConfig;
|
|
66
|
-
[IntegrationType.snowflake]: SnowflakeIntegrationConfig;
|
|
67
|
-
[IntegrationType.api]: HttpApiIntegrationConfig;
|
|
68
|
-
[IntegrationType.graphql]: GraphQLIntegrationConfig;
|
|
69
|
-
[IntegrationType.datadog]: DatadogIntegrationConfig;
|
|
70
|
-
[IntegrationType.newrelic]: NewRelicIntegrationConfig;
|
|
71
|
-
[IntegrationType.auth0]: Auth0IntegrationConfig;
|
|
72
|
-
[IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
|
|
73
|
-
[IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
|
|
74
|
-
[IntegrationType.ai_assistant]: AiAssistantIntegrationConfig;
|
|
75
|
-
[IntegrationType.cognito]: CognitoIntegrationConfig;
|
|
76
|
-
[IntegrationType.okta]: OktaIntegrationConfig;
|
|
77
|
-
}
|
|
78
|
-
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
79
|
-
export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
|
|
80
|
-
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
81
|
-
export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
|
|
82
|
-
export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
|
|
83
|
-
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta];
|
|
84
|
-
export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
|
|
85
|
-
export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
|
|
86
|
-
export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
|
|
87
|
-
export type ObservabilityIntegrationConfig = IntegrationConfigTypes[ObservabilityIntegrationType];
|
|
88
|
-
export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
|
|
89
|
-
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
90
|
-
export declare function isDataIntegrationType(type: IntegrationType): type is DatabaseIntegrationType;
|
|
91
|
-
export declare function isDataIntegration(integration: any): integration is BaseDatabaseIntegrationConfig;
|
|
92
|
-
export declare function isAuthIntegrationType(type: IntegrationType): type is AuthIntegrationType;
|
|
93
|
-
export declare function isAuthIntegration(integration: any): integration is AuthIntegrationConfig;
|
|
94
|
-
export type IntegrationConfig = DatabaseIntegrationConfig | ApiIntegrationConfig | ObservabilityIntegrationConfig | AuthIntegrationConfig | AiAssistantIntegrationConfig;
|
|
95
|
-
export interface BaseIntegrationConfig {
|
|
96
|
-
id: IntegrationId;
|
|
97
|
-
type: IntegrationType;
|
|
98
|
-
creationDate: Date;
|
|
99
|
-
updateDate: Date;
|
|
100
|
-
}
|
|
101
|
-
export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest;
|
|
1
|
+
export * from './ai_assistant.types';
|
|
2
|
+
export * from './api.types';
|
|
3
|
+
export * from './auth.types';
|
|
4
|
+
export * from './database.types';
|
|
5
|
+
export * from './observability.types';
|
|
6
|
+
import { IntegrationId } from '../communication.types';
|
|
7
|
+
import { AiAssistantIntegrationConfig } from './ai_assistant.types';
|
|
8
|
+
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, TestGraphQLDataConnectionRequest } from './api.types';
|
|
9
|
+
import { Auth0IntegrationConfig, CognitoIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
|
|
10
|
+
import { BaseDatabaseIntegrationConfig, CockroachIntegrationConfig, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
|
|
11
|
+
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
12
|
+
export declare enum IntegrationCategory {
|
|
13
|
+
'database' = "database",
|
|
14
|
+
'api' = "api",
|
|
15
|
+
'observability' = "observability",
|
|
16
|
+
'crm' = "crm",
|
|
17
|
+
'auth' = "auth",
|
|
18
|
+
'ai' = "ai"
|
|
19
|
+
}
|
|
20
|
+
export declare enum IntegrationType {
|
|
21
|
+
'built_in_db' = "built_in_db",
|
|
22
|
+
'mongo' = "mongo",
|
|
23
|
+
'mysql' = "mysql",
|
|
24
|
+
'mssql' = "mssql",
|
|
25
|
+
'postgres' = "postgres",
|
|
26
|
+
'cockroach' = "cockroach",
|
|
27
|
+
'api' = "api",
|
|
28
|
+
'graphql' = "graphql",
|
|
29
|
+
'snowflake' = "snowflake",
|
|
30
|
+
'datadog' = "datadog",
|
|
31
|
+
'newrelic' = "newrelic",
|
|
32
|
+
'auth0' = "auth0",
|
|
33
|
+
'jwt_rsa' = "jwt_rsa",
|
|
34
|
+
'jwt_hmac' = "jwt_hmac",
|
|
35
|
+
'ai_assistant' = "ai_assistant",
|
|
36
|
+
'cognito' = "cognito",
|
|
37
|
+
'okta' = "okta",
|
|
38
|
+
'algolia' = "algolia",
|
|
39
|
+
'elastic_observability' = "elastic_observability",
|
|
40
|
+
'elastic_search' = "elastic_search",
|
|
41
|
+
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
42
|
+
'sentry' = "sentry",
|
|
43
|
+
'sap_hana' = "sap_hana",
|
|
44
|
+
'salesforce_crm' = "salesforce_crm",
|
|
45
|
+
'documentdb' = "documentdb",
|
|
46
|
+
'dynamodb' = "dynamodb",
|
|
47
|
+
'cassandra' = "cassandra",
|
|
48
|
+
'clickhouse' = "clickhouse",
|
|
49
|
+
'alloydb' = "alloydb",
|
|
50
|
+
'spanner' = "spanner",
|
|
51
|
+
'db2' = "db2",
|
|
52
|
+
'mariadb' = "mariadb",
|
|
53
|
+
'oracledb' = "oracledb",
|
|
54
|
+
'redis' = "redis",
|
|
55
|
+
'xata' = "xata",
|
|
56
|
+
'azure_sql' = "azure_sql"
|
|
57
|
+
}
|
|
58
|
+
export interface IntegrationConfigTypes {
|
|
59
|
+
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
60
|
+
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
61
|
+
[IntegrationType.mysql]: MySqlIntegrationConfig;
|
|
62
|
+
[IntegrationType.oracledb]: OracleIntegrationConfig;
|
|
63
|
+
[IntegrationType.mssql]: MssqlIntegrationConfig;
|
|
64
|
+
[IntegrationType.postgres]: PostgresIntegrationConfig;
|
|
65
|
+
[IntegrationType.cockroach]: CockroachIntegrationConfig;
|
|
66
|
+
[IntegrationType.snowflake]: SnowflakeIntegrationConfig;
|
|
67
|
+
[IntegrationType.api]: HttpApiIntegrationConfig;
|
|
68
|
+
[IntegrationType.graphql]: GraphQLIntegrationConfig;
|
|
69
|
+
[IntegrationType.datadog]: DatadogIntegrationConfig;
|
|
70
|
+
[IntegrationType.newrelic]: NewRelicIntegrationConfig;
|
|
71
|
+
[IntegrationType.auth0]: Auth0IntegrationConfig;
|
|
72
|
+
[IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
|
|
73
|
+
[IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
|
|
74
|
+
[IntegrationType.ai_assistant]: AiAssistantIntegrationConfig;
|
|
75
|
+
[IntegrationType.cognito]: CognitoIntegrationConfig;
|
|
76
|
+
[IntegrationType.okta]: OktaIntegrationConfig;
|
|
77
|
+
}
|
|
78
|
+
export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
|
|
79
|
+
export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
|
|
80
|
+
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
81
|
+
export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
|
|
82
|
+
export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
|
|
83
|
+
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta];
|
|
84
|
+
export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
|
|
85
|
+
export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
|
|
86
|
+
export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
|
|
87
|
+
export type ObservabilityIntegrationConfig = IntegrationConfigTypes[ObservabilityIntegrationType];
|
|
88
|
+
export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
|
|
89
|
+
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
90
|
+
export declare function isDataIntegrationType(type: IntegrationType): type is DatabaseIntegrationType;
|
|
91
|
+
export declare function isDataIntegration(integration: any): integration is BaseDatabaseIntegrationConfig;
|
|
92
|
+
export declare function isAuthIntegrationType(type: IntegrationType): type is AuthIntegrationType;
|
|
93
|
+
export declare function isAuthIntegration(integration: any): integration is AuthIntegrationConfig;
|
|
94
|
+
export type IntegrationConfig = DatabaseIntegrationConfig | ApiIntegrationConfig | ObservabilityIntegrationConfig | AuthIntegrationConfig | AiAssistantIntegrationConfig;
|
|
95
|
+
export interface BaseIntegrationConfig {
|
|
96
|
+
id: IntegrationId;
|
|
97
|
+
type: IntegrationType;
|
|
98
|
+
creationDate: Date;
|
|
99
|
+
updateDate: Date;
|
|
100
|
+
}
|
|
101
|
+
export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest;
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.AuthIntegrationTypes = exports.ObservabilityIntegrationTypes = exports.ApiIntegrationTypes = exports.DatabaseIntegrationTypes = exports.IntegrationType = exports.IntegrationCategory = void 0;
|
|
18
|
-
__exportStar(require("./ai_assistant.types"), exports);
|
|
19
|
-
__exportStar(require("./api.types"), exports);
|
|
20
|
-
__exportStar(require("./auth.types"), exports);
|
|
21
|
-
__exportStar(require("./database.types"), exports);
|
|
22
|
-
__exportStar(require("./observability.types"), exports);
|
|
23
|
-
var IntegrationCategory;
|
|
24
|
-
(function (IntegrationCategory) {
|
|
25
|
-
IntegrationCategory["database"] = "database";
|
|
26
|
-
IntegrationCategory["api"] = "api";
|
|
27
|
-
IntegrationCategory["observability"] = "observability";
|
|
28
|
-
IntegrationCategory["crm"] = "crm";
|
|
29
|
-
IntegrationCategory["auth"] = "auth";
|
|
30
|
-
IntegrationCategory["ai"] = "ai";
|
|
31
|
-
})(IntegrationCategory = exports.IntegrationCategory || (exports.IntegrationCategory = {}));
|
|
32
|
-
var IntegrationType;
|
|
33
|
-
(function (IntegrationType) {
|
|
34
|
-
IntegrationType["built_in_db"] = "built_in_db";
|
|
35
|
-
IntegrationType["mongo"] = "mongo";
|
|
36
|
-
IntegrationType["mysql"] = "mysql";
|
|
37
|
-
IntegrationType["mssql"] = "mssql";
|
|
38
|
-
IntegrationType["postgres"] = "postgres";
|
|
39
|
-
IntegrationType["cockroach"] = "cockroach";
|
|
40
|
-
IntegrationType["api"] = "api";
|
|
41
|
-
IntegrationType["graphql"] = "graphql";
|
|
42
|
-
IntegrationType["snowflake"] = "snowflake";
|
|
43
|
-
IntegrationType["datadog"] = "datadog";
|
|
44
|
-
IntegrationType["newrelic"] = "newrelic";
|
|
45
|
-
IntegrationType["auth0"] = "auth0";
|
|
46
|
-
IntegrationType["jwt_rsa"] = "jwt_rsa";
|
|
47
|
-
IntegrationType["jwt_hmac"] = "jwt_hmac";
|
|
48
|
-
IntegrationType["ai_assistant"] = "ai_assistant";
|
|
49
|
-
IntegrationType["cognito"] = "cognito";
|
|
50
|
-
IntegrationType["okta"] = "okta";
|
|
51
|
-
IntegrationType["algolia"] = "algolia";
|
|
52
|
-
IntegrationType["elastic_observability"] = "elastic_observability";
|
|
53
|
-
IntegrationType["elastic_search"] = "elastic_search";
|
|
54
|
-
IntegrationType["elastic_enterprise_search"] = "elastic_enterprise_search";
|
|
55
|
-
IntegrationType["sentry"] = "sentry";
|
|
56
|
-
IntegrationType["sap_hana"] = "sap_hana";
|
|
57
|
-
IntegrationType["salesforce_crm"] = "salesforce_crm";
|
|
58
|
-
IntegrationType["documentdb"] = "documentdb";
|
|
59
|
-
IntegrationType["dynamodb"] = "dynamodb";
|
|
60
|
-
IntegrationType["cassandra"] = "cassandra";
|
|
61
|
-
IntegrationType["clickhouse"] = "clickhouse";
|
|
62
|
-
IntegrationType["alloydb"] = "alloydb";
|
|
63
|
-
IntegrationType["spanner"] = "spanner";
|
|
64
|
-
IntegrationType["db2"] = "db2";
|
|
65
|
-
IntegrationType["mariadb"] = "mariadb";
|
|
66
|
-
IntegrationType["oracledb"] = "oracledb";
|
|
67
|
-
IntegrationType["redis"] = "redis";
|
|
68
|
-
IntegrationType["xata"] = "xata";
|
|
69
|
-
IntegrationType["azure_sql"] = "azure_sql";
|
|
70
|
-
})(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {}));
|
|
71
|
-
exports.DatabaseIntegrationTypes = [
|
|
72
|
-
IntegrationType.built_in_db,
|
|
73
|
-
IntegrationType.mongo,
|
|
74
|
-
IntegrationType.mysql,
|
|
75
|
-
IntegrationType.mssql,
|
|
76
|
-
IntegrationType.postgres,
|
|
77
|
-
IntegrationType.cockroach,
|
|
78
|
-
IntegrationType.snowflake,
|
|
79
|
-
IntegrationType.oracledb,
|
|
80
|
-
];
|
|
81
|
-
exports.ApiIntegrationTypes = [IntegrationType.api, IntegrationType.graphql];
|
|
82
|
-
exports.ObservabilityIntegrationTypes = [IntegrationType.datadog, IntegrationType.newrelic];
|
|
83
|
-
exports.AuthIntegrationTypes = [
|
|
84
|
-
IntegrationType.auth0,
|
|
85
|
-
IntegrationType.jwt_rsa,
|
|
86
|
-
IntegrationType.jwt_hmac,
|
|
87
|
-
IntegrationType.cognito,
|
|
88
|
-
IntegrationType.okta,
|
|
89
|
-
];
|
|
90
|
-
function isDataIntegrationType(type) {
|
|
91
|
-
return exports.DatabaseIntegrationTypes.includes(type);
|
|
92
|
-
}
|
|
93
|
-
exports.isDataIntegrationType = isDataIntegrationType;
|
|
94
|
-
function isDataIntegration(integration) {
|
|
95
|
-
return isDataIntegrationType(integration.type);
|
|
96
|
-
}
|
|
97
|
-
exports.isDataIntegration = isDataIntegration;
|
|
98
|
-
function isAuthIntegrationType(type) {
|
|
99
|
-
return exports.AuthIntegrationTypes.includes(type);
|
|
100
|
-
}
|
|
101
|
-
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
102
|
-
function isAuthIntegration(integration) {
|
|
103
|
-
return isAuthIntegrationType(integration.type);
|
|
104
|
-
}
|
|
105
|
-
exports.isAuthIntegration = isAuthIntegration;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.AuthIntegrationTypes = exports.ObservabilityIntegrationTypes = exports.ApiIntegrationTypes = exports.DatabaseIntegrationTypes = exports.IntegrationType = exports.IntegrationCategory = void 0;
|
|
18
|
+
__exportStar(require("./ai_assistant.types"), exports);
|
|
19
|
+
__exportStar(require("./api.types"), exports);
|
|
20
|
+
__exportStar(require("./auth.types"), exports);
|
|
21
|
+
__exportStar(require("./database.types"), exports);
|
|
22
|
+
__exportStar(require("./observability.types"), exports);
|
|
23
|
+
var IntegrationCategory;
|
|
24
|
+
(function (IntegrationCategory) {
|
|
25
|
+
IntegrationCategory["database"] = "database";
|
|
26
|
+
IntegrationCategory["api"] = "api";
|
|
27
|
+
IntegrationCategory["observability"] = "observability";
|
|
28
|
+
IntegrationCategory["crm"] = "crm";
|
|
29
|
+
IntegrationCategory["auth"] = "auth";
|
|
30
|
+
IntegrationCategory["ai"] = "ai";
|
|
31
|
+
})(IntegrationCategory = exports.IntegrationCategory || (exports.IntegrationCategory = {}));
|
|
32
|
+
var IntegrationType;
|
|
33
|
+
(function (IntegrationType) {
|
|
34
|
+
IntegrationType["built_in_db"] = "built_in_db";
|
|
35
|
+
IntegrationType["mongo"] = "mongo";
|
|
36
|
+
IntegrationType["mysql"] = "mysql";
|
|
37
|
+
IntegrationType["mssql"] = "mssql";
|
|
38
|
+
IntegrationType["postgres"] = "postgres";
|
|
39
|
+
IntegrationType["cockroach"] = "cockroach";
|
|
40
|
+
IntegrationType["api"] = "api";
|
|
41
|
+
IntegrationType["graphql"] = "graphql";
|
|
42
|
+
IntegrationType["snowflake"] = "snowflake";
|
|
43
|
+
IntegrationType["datadog"] = "datadog";
|
|
44
|
+
IntegrationType["newrelic"] = "newrelic";
|
|
45
|
+
IntegrationType["auth0"] = "auth0";
|
|
46
|
+
IntegrationType["jwt_rsa"] = "jwt_rsa";
|
|
47
|
+
IntegrationType["jwt_hmac"] = "jwt_hmac";
|
|
48
|
+
IntegrationType["ai_assistant"] = "ai_assistant";
|
|
49
|
+
IntegrationType["cognito"] = "cognito";
|
|
50
|
+
IntegrationType["okta"] = "okta";
|
|
51
|
+
IntegrationType["algolia"] = "algolia";
|
|
52
|
+
IntegrationType["elastic_observability"] = "elastic_observability";
|
|
53
|
+
IntegrationType["elastic_search"] = "elastic_search";
|
|
54
|
+
IntegrationType["elastic_enterprise_search"] = "elastic_enterprise_search";
|
|
55
|
+
IntegrationType["sentry"] = "sentry";
|
|
56
|
+
IntegrationType["sap_hana"] = "sap_hana";
|
|
57
|
+
IntegrationType["salesforce_crm"] = "salesforce_crm";
|
|
58
|
+
IntegrationType["documentdb"] = "documentdb";
|
|
59
|
+
IntegrationType["dynamodb"] = "dynamodb";
|
|
60
|
+
IntegrationType["cassandra"] = "cassandra";
|
|
61
|
+
IntegrationType["clickhouse"] = "clickhouse";
|
|
62
|
+
IntegrationType["alloydb"] = "alloydb";
|
|
63
|
+
IntegrationType["spanner"] = "spanner";
|
|
64
|
+
IntegrationType["db2"] = "db2";
|
|
65
|
+
IntegrationType["mariadb"] = "mariadb";
|
|
66
|
+
IntegrationType["oracledb"] = "oracledb";
|
|
67
|
+
IntegrationType["redis"] = "redis";
|
|
68
|
+
IntegrationType["xata"] = "xata";
|
|
69
|
+
IntegrationType["azure_sql"] = "azure_sql";
|
|
70
|
+
})(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {}));
|
|
71
|
+
exports.DatabaseIntegrationTypes = [
|
|
72
|
+
IntegrationType.built_in_db,
|
|
73
|
+
IntegrationType.mongo,
|
|
74
|
+
IntegrationType.mysql,
|
|
75
|
+
IntegrationType.mssql,
|
|
76
|
+
IntegrationType.postgres,
|
|
77
|
+
IntegrationType.cockroach,
|
|
78
|
+
IntegrationType.snowflake,
|
|
79
|
+
IntegrationType.oracledb,
|
|
80
|
+
];
|
|
81
|
+
exports.ApiIntegrationTypes = [IntegrationType.api, IntegrationType.graphql];
|
|
82
|
+
exports.ObservabilityIntegrationTypes = [IntegrationType.datadog, IntegrationType.newrelic];
|
|
83
|
+
exports.AuthIntegrationTypes = [
|
|
84
|
+
IntegrationType.auth0,
|
|
85
|
+
IntegrationType.jwt_rsa,
|
|
86
|
+
IntegrationType.jwt_hmac,
|
|
87
|
+
IntegrationType.cognito,
|
|
88
|
+
IntegrationType.okta,
|
|
89
|
+
];
|
|
90
|
+
function isDataIntegrationType(type) {
|
|
91
|
+
return exports.DatabaseIntegrationTypes.includes(type);
|
|
92
|
+
}
|
|
93
|
+
exports.isDataIntegrationType = isDataIntegrationType;
|
|
94
|
+
function isDataIntegration(integration) {
|
|
95
|
+
return isDataIntegrationType(integration.type);
|
|
96
|
+
}
|
|
97
|
+
exports.isDataIntegration = isDataIntegration;
|
|
98
|
+
function isAuthIntegrationType(type) {
|
|
99
|
+
return exports.AuthIntegrationTypes.includes(type);
|
|
100
|
+
}
|
|
101
|
+
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
102
|
+
function isAuthIntegration(integration) {
|
|
103
|
+
return isAuthIntegrationType(integration.type);
|
|
104
|
+
}
|
|
105
|
+
exports.isAuthIntegration = isAuthIntegration;
|
|
106
106
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
-
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
-
type: IntegrationType.datadog;
|
|
4
|
-
configuration: DatadogIntegrationConfiguration;
|
|
5
|
-
}
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export type NewRelicRegion = 'worldwide' | 'eu';
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
+
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
+
type: IntegrationType.datadog;
|
|
4
|
+
configuration: DatadogIntegrationConfiguration;
|
|
5
|
+
}
|
|
6
|
+
export interface DatadogIntegrationConfiguration {
|
|
7
|
+
apiKey: string;
|
|
8
|
+
appKey: string;
|
|
9
|
+
datadogRegion: DatadogRegion;
|
|
10
|
+
}
|
|
11
|
+
export type DatadogRegion = 'us1' | 'us3' | 'us5' | 'eu1' | 'us1-fed' | 'ap1';
|
|
12
|
+
export interface NewRelicIntegrationConfig extends BaseIntegrationConfig {
|
|
13
|
+
type: IntegrationType.newrelic;
|
|
14
|
+
configuration: NewRelicIntegrationConfiguration;
|
|
15
|
+
}
|
|
16
|
+
export declare const datadogRegionMap: Record<DatadogRegion, string>;
|
|
17
|
+
export declare const datadogLogsUrlMap: Record<DatadogRegion, string>;
|
|
18
|
+
export type NewRelicRegion = 'worldwide' | 'eu';
|
|
19
|
+
export interface NewRelicIntegrationConfiguration {
|
|
20
|
+
apiKey: string;
|
|
21
|
+
newRelicRegion: NewRelicRegion;
|
|
22
|
+
}
|
|
23
|
+
export declare const newRelicRegionMap: Record<NewRelicRegion, string>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newRelicRegionMap = exports.datadogLogsUrlMap = exports.datadogRegionMap = void 0;
|
|
4
|
-
exports.datadogRegionMap = {
|
|
5
|
-
us1: 'US1 - East',
|
|
6
|
-
us3: 'US3 - West',
|
|
7
|
-
us5: 'US5 - Central',
|
|
8
|
-
eu1: 'EU1 - Europe',
|
|
9
|
-
ap1: 'AP1 - Asia',
|
|
10
|
-
'us1-fed': 'US1-FED (FedRamp)',
|
|
11
|
-
};
|
|
12
|
-
exports.datadogLogsUrlMap = {
|
|
13
|
-
us1: 'https://http-intake.logs.datadoghq.com',
|
|
14
|
-
us3: 'https://http-intake.logs.us3.datadoghq.com',
|
|
15
|
-
us5: 'https://http-intake.logs.us5.datadoghq.com',
|
|
16
|
-
eu1: 'https://http-intake.logs.datadoghq.eu',
|
|
17
|
-
ap1: 'https://http-intake.logs.ap1.datadoghq.com',
|
|
18
|
-
'us1-fed': 'https://http-intake.logs.ddog-gov.com',
|
|
19
|
-
};
|
|
20
|
-
exports.newRelicRegionMap = {
|
|
21
|
-
worldwide: 'Worldwide',
|
|
22
|
-
eu: 'Europe',
|
|
23
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.newRelicRegionMap = exports.datadogLogsUrlMap = exports.datadogRegionMap = void 0;
|
|
4
|
+
exports.datadogRegionMap = {
|
|
5
|
+
us1: 'US1 - East',
|
|
6
|
+
us3: 'US3 - West',
|
|
7
|
+
us5: 'US5 - Central',
|
|
8
|
+
eu1: 'EU1 - Europe',
|
|
9
|
+
ap1: 'AP1 - Asia',
|
|
10
|
+
'us1-fed': 'US1-FED (FedRamp)',
|
|
11
|
+
};
|
|
12
|
+
exports.datadogLogsUrlMap = {
|
|
13
|
+
us1: 'https://http-intake.logs.datadoghq.com',
|
|
14
|
+
us3: 'https://http-intake.logs.us3.datadoghq.com',
|
|
15
|
+
us5: 'https://http-intake.logs.us5.datadoghq.com',
|
|
16
|
+
eu1: 'https://http-intake.logs.datadoghq.eu',
|
|
17
|
+
ap1: 'https://http-intake.logs.ap1.datadoghq.com',
|
|
18
|
+
'us1-fed': 'https://http-intake.logs.ddog-gov.com',
|
|
19
|
+
};
|
|
20
|
+
exports.newRelicRegionMap = {
|
|
21
|
+
worldwide: 'Worldwide',
|
|
22
|
+
eu: 'Europe',
|
|
23
|
+
};
|
|
24
24
|
//# sourceMappingURL=observability.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../common/src/integrations/observability.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../common/src/integrations/observability.types.ts"],"names":[],"mappings":";;;AAoBa,QAAA,gBAAgB,GAAkC;IAC7D,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,YAAY;IACjB,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEW,QAAA,iBAAiB,GAAkC;IAC9D,GAAG,EAAE,wCAAwC;IAC7C,GAAG,EAAE,4CAA4C;IACjD,GAAG,EAAE,4CAA4C;IACjD,GAAG,EAAE,uCAAuC;IAC5C,GAAG,EAAE,4CAA4C;IACjD,SAAS,EAAE,uCAAuC;CACnD,CAAC;AASW,QAAA,iBAAiB,GAAmC;IAC/D,SAAS,EAAE,WAAW;IACtB,EAAE,EAAE,QAAQ;CACb,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export type LoggerContext = Record<string, any>;
|
|
2
|
-
export interface Logger {
|
|
3
|
-
trace(message: string, context?: LoggerContext): void;
|
|
4
|
-
debug(message: string, context?: LoggerContext): void;
|
|
5
|
-
info(message: string, context?: LoggerContext): void;
|
|
6
|
-
warn(message: string, context?: LoggerContext): void;
|
|
7
|
-
error(message: string, context?: LoggerContext): void;
|
|
8
|
-
log(record: LogRecord): void;
|
|
9
|
-
}
|
|
10
|
-
export declare enum LogLevel {
|
|
11
|
-
TRACE = "trace",
|
|
12
|
-
DEBUG = "debug",
|
|
13
|
-
INFO = "info",
|
|
14
|
-
WARN = "warn",
|
|
15
|
-
ERROR = "error"
|
|
16
|
-
}
|
|
17
|
-
export interface LogRecord {
|
|
18
|
-
level?: LogLevel;
|
|
19
|
-
message?: string;
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}
|
|
1
|
+
export type LoggerContext = Record<string, any>;
|
|
2
|
+
export interface Logger {
|
|
3
|
+
trace(message: string, context?: LoggerContext): void;
|
|
4
|
+
debug(message: string, context?: LoggerContext): void;
|
|
5
|
+
info(message: string, context?: LoggerContext): void;
|
|
6
|
+
warn(message: string, context?: LoggerContext): void;
|
|
7
|
+
error(message: string, context?: LoggerContext): void;
|
|
8
|
+
log(record: LogRecord): void;
|
|
9
|
+
}
|
|
10
|
+
export declare enum LogLevel {
|
|
11
|
+
TRACE = "trace",
|
|
12
|
+
DEBUG = "debug",
|
|
13
|
+
INFO = "info",
|
|
14
|
+
WARN = "warn",
|
|
15
|
+
ERROR = "error"
|
|
16
|
+
}
|
|
17
|
+
export interface LogRecord {
|
|
18
|
+
level?: LogLevel;
|
|
19
|
+
message?: string;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogLevel = void 0;
|
|
4
|
-
var LogLevel;
|
|
5
|
-
(function (LogLevel) {
|
|
6
|
-
LogLevel["TRACE"] = "trace";
|
|
7
|
-
LogLevel["DEBUG"] = "debug";
|
|
8
|
-
LogLevel["INFO"] = "info";
|
|
9
|
-
LogLevel["WARN"] = "warn";
|
|
10
|
-
LogLevel["ERROR"] = "error";
|
|
11
|
-
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogLevel = void 0;
|
|
4
|
+
var LogLevel;
|
|
5
|
+
(function (LogLevel) {
|
|
6
|
+
LogLevel["TRACE"] = "trace";
|
|
7
|
+
LogLevel["DEBUG"] = "debug";
|
|
8
|
+
LogLevel["INFO"] = "info";
|
|
9
|
+
LogLevel["WARN"] = "warn";
|
|
10
|
+
LogLevel["ERROR"] = "error";
|
|
11
|
+
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
12
12
|
//# sourceMappingURL=logger.types.js.map
|