@squidcloud/local-backend 1.0.302 → 1.0.304
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/internal-common/src/public-types/ai-chatbot.public-types.d.ts +2 -1
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js +3 -3
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +4 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +7 -71
- package/dist/internal-common/src/public-types/integration.public-types.js +71 -74
- package/dist/internal-common/src/public-types/integration.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +4 -3
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js +2 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +2 -2
- package/dist/internal-common/src/public-types/query.public-types.js +2 -2
- package/dist/internal-common/src/public-types/query.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types-backend/service.public-types.d.ts +1 -1
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +7 -0
- package/dist/internal-common/src/types/ai-chatbot.types.js +16 -16
- package/dist/internal-common/src/types/ai-chatbot.types.js.map +1 -1
- package/dist/internal-common/src/types/application.types.d.ts +7 -7
- package/dist/internal-common/src/types/backend-run.types.d.ts +2 -0
- package/dist/internal-common/src/types/backend-run.types.js +6 -2
- package/dist/internal-common/src/types/backend-run.types.js.map +1 -1
- package/dist/internal-common/src/types/bundle-data.types.d.ts +3 -2
- package/dist/internal-common/src/types/communication.types.js +6 -7
- package/dist/internal-common/src/types/communication.types.js.map +1 -1
- package/dist/internal-common/src/types/integrations/api.types.d.ts +7 -0
- package/dist/internal-common/src/types/integrations/schemas.d.ts +59 -58
- package/dist/internal-common/src/types/integrations/schemas.js +39 -40
- package/dist/internal-common/src/types/integrations/schemas.js.map +1 -1
- package/dist/internal-common/src/types/observability.types.js +2 -2
- package/dist/internal-common/src/types/observability.types.js.map +1 -1
- package/dist/internal-common/src/types/query.types.js +6 -6
- package/dist/internal-common/src/types/query.types.js.map +1 -1
- package/dist/internal-common/src/utils/backend-transforms.js +4 -5
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
- package/dist/internal-common/src/utils/global.utils.js +7 -7
- package/dist/internal-common/src/utils/global.utils.js.map +1 -1
- package/dist/internal-common/src/utils/http.js +2 -3
- package/dist/internal-common/src/utils/http.js.map +1 -1
- package/dist/internal-common/src/utils/metrics.types.js +2 -2
- package/dist/internal-common/src/utils/metrics.types.js.map +1 -1
- package/dist/internal-common/src/utils/object.js +19 -20
- package/dist/internal-common/src/utils/object.js.map +1 -1
- package/dist/internal-common/src/utils/resolve.js +2 -2
- package/dist/internal-common/src/utils/resolve.js.map +1 -1
- package/dist/internal-common/src/utils/serialization.js +5 -6
- package/dist/internal-common/src/utils/serialization.js.map +1 -1
- package/dist/internal-common/src/utils/squid-service-utils.d.ts +0 -1
- package/dist/internal-common/src/utils/squid-service-utils.js +7 -6
- package/dist/internal-common/src/utils/squid-service-utils.js.map +1 -1
- package/dist/internal-common/src/websocket.impl.js +1 -2
- package/dist/internal-common/src/websocket.impl.js.map +1 -1
- package/dist/local-backend/src/local-backend.app.js +1 -2
- package/dist/local-backend/src/local-backend.app.js.map +1 -1
- package/dist/local-backend/src/local-backend.service.js +1 -0
- package/dist/local-backend/src/local-backend.service.js.map +1 -1
- package/dist/local-backend/src/utils/shell-runner.js +1 -2
- package/dist/local-backend/src/utils/shell-runner.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.parseAppId = parseAppId;
|
|
4
|
+
exports.appIdWithEnvironmentId = appIdWithEnvironmentId;
|
|
5
|
+
exports.appIdWithEnvironmentIdAndDevId = appIdWithEnvironmentIdAndDevId;
|
|
6
|
+
exports.validateEnvironment = validateEnvironment;
|
|
7
|
+
exports.verifyWithSquidDevId = verifyWithSquidDevId;
|
|
8
|
+
exports.omitSquidDevId = omitSquidDevId;
|
|
4
9
|
const assertic_1 = require("assertic");
|
|
5
10
|
function parseAppId(appId) {
|
|
6
11
|
(0, assertic_1.assertString)(appId, 'Invalid application ID');
|
|
@@ -12,30 +17,24 @@ function parseAppId(appId) {
|
|
|
12
17
|
squidDeveloperId,
|
|
13
18
|
};
|
|
14
19
|
}
|
|
15
|
-
exports.parseAppId = parseAppId;
|
|
16
20
|
function appIdWithEnvironmentId(appId, environmentId) {
|
|
17
21
|
const parsedAppId = parseAppId(appId);
|
|
18
22
|
return `${parsedAppId.appId}${!environmentId || environmentId === 'prod' ? '' : `-${environmentId}`}`;
|
|
19
23
|
}
|
|
20
|
-
exports.appIdWithEnvironmentId = appIdWithEnvironmentId;
|
|
21
24
|
function appIdWithEnvironmentIdAndDevId(appId, environmentId, developerId) {
|
|
22
25
|
return `${appIdWithEnvironmentId(appId, environmentId)}${developerId ? `-${developerId}` : ''}`;
|
|
23
26
|
}
|
|
24
|
-
exports.appIdWithEnvironmentIdAndDevId = appIdWithEnvironmentIdAndDevId;
|
|
25
27
|
function validateEnvironment(appId) {
|
|
26
28
|
const parsedAppId = parseAppId(appId);
|
|
27
29
|
(0, assertic_1.assertTruthy)(parsedAppId.environmentId !== 'prod' || !parsedAppId.squidDeveloperId, 'Cannot use developer ID in production');
|
|
28
30
|
return parsedAppId;
|
|
29
31
|
}
|
|
30
|
-
exports.validateEnvironment = validateEnvironment;
|
|
31
32
|
function verifyWithSquidDevId(appId) {
|
|
32
33
|
const parsedAppId = parseAppId(appId);
|
|
33
34
|
(0, assertic_1.assertTruthy)(parsedAppId.squidDeveloperId, 'Must provide squid developer ID');
|
|
34
35
|
}
|
|
35
|
-
exports.verifyWithSquidDevId = verifyWithSquidDevId;
|
|
36
36
|
function omitSquidDevId(appId) {
|
|
37
37
|
const parsedAppId = parseAppId(appId);
|
|
38
38
|
return appIdWithEnvironmentId(parsedAppId.appId, parsedAppId.environmentId);
|
|
39
39
|
}
|
|
40
|
-
exports.omitSquidDevId = omitSquidDevId;
|
|
41
40
|
//# sourceMappingURL=communication.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communication.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/communication.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"communication.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/communication.types.ts"],"names":[],"mappings":";;AAkBA,gCASC;AAGD,wDAGC;AAGD,wEAMC;AAGD,kDAOC;AAGD,oDAGC;AAGD,wCAGC;AA3DD,uCAAsD;AAatD,SAAgB,UAAU,CAAC,KAAY;IACrC,IAAA,uBAAY,EAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC;IAC9C,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnF,IAAA,uBAAY,EAAC,CAAC,KAAK,EAAE,2BAA2B,KAAK,EAAE,CAAC,CAAC;IACzD,OAAO;QACL,KAAK,EAAE,eAAe;QACtB,aAAa,EAAE,CAAC,aAAa,IAAI,MAAM,CAAkB;QACzD,gBAAgB;KACjB,CAAC;AACJ,CAAC;AAGD,SAAgB,sBAAsB,CAAC,KAAY,EAAE,aAAwC;IAC3F,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,GAAG,WAAW,CAAC,KAAK,GAAG,CAAC,aAAa,IAAI,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,aAAa,EAAE,EAAE,CAAC;AACxG,CAAC;AAGD,SAAgB,8BAA8B,CAC5C,KAAY,EACZ,aAAwC,EACxC,WAAyC;IAEzC,OAAO,GAAG,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAClG,CAAC;AAGD,SAAgB,mBAAmB,CAAC,KAAY;IAC9C,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,IAAA,uBAAY,EACV,WAAW,CAAC,aAAa,KAAK,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,EACrE,uCAAuC,CACxC,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAGD,SAAgB,oBAAoB,CAAC,KAAY;IAC/C,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,IAAA,uBAAY,EAAC,WAAW,CAAC,gBAAgB,EAAE,iCAAiC,CAAC,CAAC;AAChF,CAAC;AAGD,SAAgB,cAAc,CAAC,KAAY;IACzC,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,sBAAsB,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -59,6 +59,13 @@ export interface ServiceNowIntegrationConfiguration {
|
|
|
59
59
|
}
|
|
60
60
|
export interface ServiceNowIntegrationConfig extends BaseIntegrationConfigWithConfiguration<ServiceNowIntegrationConfiguration> {
|
|
61
61
|
}
|
|
62
|
+
export interface JiraIntegrationConfiguration {
|
|
63
|
+
apiKey: string;
|
|
64
|
+
domain: string;
|
|
65
|
+
email: string;
|
|
66
|
+
}
|
|
67
|
+
export interface JiraIntegrationConfig extends BaseIntegrationConfigWithConfiguration<JiraIntegrationConfiguration> {
|
|
68
|
+
}
|
|
62
69
|
export interface SalesforceCrmIntegrationConfiguration {
|
|
63
70
|
domain: string;
|
|
64
71
|
consumerKey: string;
|
|
@@ -5,77 +5,78 @@ import { IntegrationSchemaType, IntegrationType } from '../../public-types/integ
|
|
|
5
5
|
import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig } from './queue-types';
|
|
6
6
|
import { IntegrationId } from '../../public-types/communication.public-types';
|
|
7
7
|
import { AiAgentsIntegrationConfig, AiChatbotIntegrationConfig } from './ai_chatbot.types';
|
|
8
|
-
import { ConfluenceIntegrationConfig, DefaultGraphQLIntegrationConfig, DefaultHttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema, LinearIntegrationConfig, SalesforceCrmIntegrationConfig, ServiceNowIntegrationConfig } from './api.types';
|
|
8
|
+
import { ConfluenceIntegrationConfig, DefaultGraphQLIntegrationConfig, DefaultHttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema, JiraIntegrationConfig, LinearIntegrationConfig, SalesforceCrmIntegrationConfig, ServiceNowIntegrationConfig } from './api.types';
|
|
9
9
|
import { BuiltInGcsIntegrationConfig, BuiltInS3IntegrationConfig, GcsIntegrationConfig, GoogleDriveIntegrationConfig, S3IntegrationConfig } from './storage-types';
|
|
10
10
|
export interface IntegrationConfigTypes {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
11
|
+
built_in_db: InternalIntegrationConfig;
|
|
12
|
+
built_in_s3: BuiltInS3IntegrationConfig;
|
|
13
|
+
built_in_gcs: BuiltInGcsIntegrationConfig;
|
|
14
|
+
s3: S3IntegrationConfig;
|
|
15
|
+
gcs: GcsIntegrationConfig;
|
|
16
|
+
google_drive: GoogleDriveIntegrationConfig;
|
|
17
|
+
mongo: MongoIntegrationConfig;
|
|
18
|
+
mysql: MySqlIntegrationConfig;
|
|
19
|
+
clickhouse: ClickHouseIntegrationConfig;
|
|
20
|
+
bigquery: BigQueryIntegrationConfig;
|
|
21
|
+
oracledb: OracleIntegrationConfig;
|
|
22
|
+
mssql: MssqlIntegrationConfig;
|
|
23
|
+
postgres: PostgresIntegrationConfig;
|
|
24
|
+
cockroach: CockroachIntegrationConfig;
|
|
25
|
+
snowflake: SnowflakeIntegrationConfig;
|
|
26
|
+
api: DefaultHttpApiIntegrationConfig;
|
|
27
|
+
graphql: DefaultGraphQLIntegrationConfig;
|
|
28
|
+
datadog: DatadogIntegrationConfig;
|
|
29
|
+
newrelic: NewRelicIntegrationConfig;
|
|
30
|
+
auth0: Auth0IntegrationConfig;
|
|
31
|
+
jwt_rsa: JwtRsaIntegrationConfig;
|
|
32
|
+
jwt_hmac: JwtHmacIntegrationConfig;
|
|
33
|
+
ai_chatbot: AiChatbotIntegrationConfig;
|
|
34
|
+
cognito: CognitoIntegrationConfig;
|
|
35
|
+
okta: OktaIntegrationConfig;
|
|
36
|
+
kafka: KafkaIntegrationConfig;
|
|
37
|
+
confluent: ConfluentIntegrationConfig;
|
|
38
|
+
built_in_queue: BuiltInQueueIntegrationConfig;
|
|
39
|
+
descope: DescopeIntegrationConfig;
|
|
40
|
+
firebase_auth: FirebaseAuthIntegrationConfig;
|
|
41
|
+
ai_agents: AiAgentsIntegrationConfig;
|
|
42
|
+
linear: LinearIntegrationConfig;
|
|
43
|
+
confluence: ConfluenceIntegrationConfig;
|
|
44
|
+
servicenow: ServiceNowIntegrationConfig;
|
|
45
|
+
salesforce_crm: SalesforceCrmIntegrationConfig;
|
|
46
|
+
jira: JiraIntegrationConfig;
|
|
46
47
|
}
|
|
47
48
|
export interface IntegrationSchemaTypes {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
built_in_db: IntegrationDataSchema;
|
|
50
|
+
mongo: IntegrationDataSchema;
|
|
51
|
+
mysql: IntegrationDataSchema;
|
|
52
|
+
clickhouse: IntegrationDataSchema;
|
|
53
|
+
oracledb: IntegrationDataSchema;
|
|
54
|
+
bigquery: IntegrationDataSchema;
|
|
55
|
+
mssql: IntegrationDataSchema;
|
|
56
|
+
postgres: IntegrationDataSchema;
|
|
57
|
+
cockroach: IntegrationDataSchema;
|
|
58
|
+
snowflake: IntegrationDataSchema;
|
|
59
|
+
api: IntegrationApiSchema;
|
|
60
|
+
graphql: IntegrationGraphQLSchema;
|
|
60
61
|
}
|
|
61
62
|
export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
|
|
62
63
|
export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
|
|
63
64
|
export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
|
|
64
65
|
export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
|
|
65
|
-
export declare const
|
|
66
|
-
export type DatabaseIntegrationType = (typeof
|
|
66
|
+
export declare const DATA_INTEGRATION_TYPES: readonly ["built_in_db", "mongo", "mysql", "clickhouse", "bigquery", "mssql", "postgres", "cockroach", "snowflake", "oracledb"];
|
|
67
|
+
export type DatabaseIntegrationType = (typeof DATA_INTEGRATION_TYPES)[number];
|
|
67
68
|
export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
|
|
68
|
-
export declare const
|
|
69
|
-
export type AuthIntegrationType = (typeof
|
|
69
|
+
export declare const AUTH_INTEGRATION_TYPES: readonly ["auth0", "jwt_rsa", "jwt_hmac", "cognito", "okta", "descope", "firebase_auth"];
|
|
70
|
+
export type AuthIntegrationType = (typeof AUTH_INTEGRATION_TYPES)[number];
|
|
70
71
|
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
71
|
-
export declare const
|
|
72
|
-
export type HttpApiIntegrationType = (typeof
|
|
72
|
+
export declare const HTTP_INTEGRATION_TYPES: readonly ["api", "confluence"];
|
|
73
|
+
export type HttpApiIntegrationType = (typeof HTTP_INTEGRATION_TYPES)[number];
|
|
73
74
|
export type HttpApiIntegrationConfig = IntegrationConfigTypes[HttpApiIntegrationType];
|
|
74
|
-
export declare const
|
|
75
|
-
export type GraphQLIntegrationType = (typeof
|
|
75
|
+
export declare const GRAPHQL_INTEGRATION_TYPES: readonly ["graphql", "linear"];
|
|
76
|
+
export type GraphQLIntegrationType = (typeof GRAPHQL_INTEGRATION_TYPES)[number];
|
|
76
77
|
export type GraphQLIntegrationConfig = IntegrationConfigTypes[GraphQLIntegrationType];
|
|
77
|
-
export declare const
|
|
78
|
-
export type AiIntegrationType = (typeof
|
|
78
|
+
export declare const AI_INTEGRATION_TYPES: readonly ["ai_agents", "ai_chatbot"];
|
|
79
|
+
export type AiIntegrationType = (typeof AI_INTEGRATION_TYPES)[number];
|
|
79
80
|
export type AiIntegrationConfig = IntegrationConfigTypes[AiIntegrationType];
|
|
80
81
|
export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
|
|
81
82
|
export declare function isAuthIntegrationType(type: unknown): type is AuthIntegrationType;
|
|
@@ -1,78 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
exports.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
exports.AI_INTEGRATION_TYPES = exports.GRAPHQL_INTEGRATION_TYPES = exports.HTTP_INTEGRATION_TYPES = exports.AUTH_INTEGRATION_TYPES = exports.DATA_INTEGRATION_TYPES = void 0;
|
|
4
|
+
exports.isDataIntegrationType = isDataIntegrationType;
|
|
5
|
+
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
6
|
+
exports.isApiIntegrationType = isApiIntegrationType;
|
|
7
|
+
exports.isGraphQLIntegrationType = isGraphQLIntegrationType;
|
|
8
|
+
exports.isAiIntegrationType = isAiIntegrationType;
|
|
9
|
+
exports.isAuthIntegration = isAuthIntegration;
|
|
10
|
+
exports.isBaseIntegrationConfigWithConfiguration = isBaseIntegrationConfigWithConfiguration;
|
|
11
|
+
exports.isIntegrationConfigurationWithConnectionOptions = isIntegrationConfigurationWithConnectionOptions;
|
|
12
|
+
exports.isConnectionOptionsWithSecrets = isConnectionOptionsWithSecrets;
|
|
13
|
+
exports.isNoSqlDatabase = isNoSqlDatabase;
|
|
14
|
+
exports.DATA_INTEGRATION_TYPES = [
|
|
15
|
+
'built_in_db',
|
|
16
|
+
'mongo',
|
|
17
|
+
'mysql',
|
|
18
|
+
'clickhouse',
|
|
19
|
+
'bigquery',
|
|
20
|
+
'mssql',
|
|
21
|
+
'postgres',
|
|
22
|
+
'cockroach',
|
|
23
|
+
'snowflake',
|
|
24
|
+
'oracledb',
|
|
16
25
|
];
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
exports.AUTH_INTEGRATION_TYPES = [
|
|
27
|
+
'auth0',
|
|
28
|
+
'jwt_rsa',
|
|
29
|
+
'jwt_hmac',
|
|
30
|
+
'cognito',
|
|
31
|
+
'okta',
|
|
32
|
+
'descope',
|
|
33
|
+
'firebase_auth',
|
|
25
34
|
];
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
35
|
+
exports.HTTP_INTEGRATION_TYPES = ['api', 'confluence'];
|
|
36
|
+
exports.GRAPHQL_INTEGRATION_TYPES = ['graphql', 'linear'];
|
|
37
|
+
exports.AI_INTEGRATION_TYPES = ['ai_agents', 'ai_chatbot'];
|
|
29
38
|
function isDataIntegrationType(type) {
|
|
30
|
-
return exports.
|
|
39
|
+
return exports.DATA_INTEGRATION_TYPES.includes(type);
|
|
31
40
|
}
|
|
32
|
-
exports.isDataIntegrationType = isDataIntegrationType;
|
|
33
41
|
function isAuthIntegrationType(type) {
|
|
34
|
-
return exports.
|
|
42
|
+
return exports.AUTH_INTEGRATION_TYPES.includes(type);
|
|
35
43
|
}
|
|
36
|
-
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
37
44
|
function isApiIntegrationType(type) {
|
|
38
|
-
return exports.
|
|
45
|
+
return exports.HTTP_INTEGRATION_TYPES.includes(type);
|
|
39
46
|
}
|
|
40
|
-
exports.isApiIntegrationType = isApiIntegrationType;
|
|
41
47
|
function isGraphQLIntegrationType(type) {
|
|
42
|
-
return exports.
|
|
48
|
+
return exports.GRAPHQL_INTEGRATION_TYPES.includes(type);
|
|
43
49
|
}
|
|
44
|
-
exports.isGraphQLIntegrationType = isGraphQLIntegrationType;
|
|
45
50
|
function isAiIntegrationType(type) {
|
|
46
|
-
return exports.
|
|
51
|
+
return exports.AI_INTEGRATION_TYPES.includes(type);
|
|
47
52
|
}
|
|
48
|
-
exports.isAiIntegrationType = isAiIntegrationType;
|
|
49
53
|
function isAuthIntegration(integration) {
|
|
50
54
|
return isAuthIntegrationType(integration?.type);
|
|
51
55
|
}
|
|
52
|
-
exports.isAuthIntegration = isAuthIntegration;
|
|
53
56
|
function isBaseIntegrationConfigWithConfiguration(obj) {
|
|
54
57
|
if (!obj || typeof obj !== 'object')
|
|
55
58
|
return false;
|
|
56
59
|
const { configuration } = obj;
|
|
57
60
|
return !!configuration && typeof configuration === 'object' && !Array.isArray(configuration);
|
|
58
61
|
}
|
|
59
|
-
exports.isBaseIntegrationConfigWithConfiguration = isBaseIntegrationConfigWithConfiguration;
|
|
60
62
|
function isIntegrationConfigurationWithConnectionOptions(obj) {
|
|
61
63
|
if (!obj || typeof obj !== 'object')
|
|
62
64
|
return false;
|
|
63
65
|
const { connectionOptions } = obj;
|
|
64
66
|
return !!connectionOptions && typeof connectionOptions === 'object' && !Array.isArray(connectionOptions);
|
|
65
67
|
}
|
|
66
|
-
exports.isIntegrationConfigurationWithConnectionOptions = isIntegrationConfigurationWithConnectionOptions;
|
|
67
68
|
function isConnectionOptionsWithSecrets(obj) {
|
|
68
69
|
if (!obj || typeof obj !== 'object')
|
|
69
70
|
return false;
|
|
70
71
|
const { secrets } = obj;
|
|
71
72
|
return !!secrets && typeof secrets === 'object' && !Array.isArray(secrets);
|
|
72
73
|
}
|
|
73
|
-
exports.isConnectionOptionsWithSecrets = isConnectionOptionsWithSecrets;
|
|
74
74
|
function isNoSqlDatabase(type) {
|
|
75
|
-
return type ===
|
|
75
|
+
return type === 'mongo' || type === 'built_in_db';
|
|
76
76
|
}
|
|
77
|
-
exports.isNoSqlDatabase = isNoSqlDatabase;
|
|
78
77
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/schemas.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/schemas.ts"],"names":[],"mappings":";;;AA2KA,sDAEC;AAGD,sDAEC;AAGD,oDAEC;AAGD,4DAEC;AAGD,kDAEC;AAGD,8CAEC;AAoBD,4FAMC;AAQD,0GAMC;AAkBD,wEAIC;AAQD,0CAEC;AA7JY,QAAA,sBAAsB,GAAG;IACpC,aAAa;IACb,OAAO;IACP,OAAO;IACP,YAAY;IACZ,UAAU;IACV,OAAO;IACP,UAAU;IACV,WAAW;IACX,WAAW;IACX,UAAU;CACF,CAAC;AAQE,QAAA,sBAAsB,GAAG;IACpC,OAAO;IACP,SAAS;IACT,UA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,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,GAA4D,CAAC;IAC3F,OAAO,CAAC,CAAC,iBAAiB,IAAI,OAAO,iBAAiB,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC3G,CAAC;AAkBD,SAAgB,8BAA8B,CAAC,GAAY;IACzD,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,EAAE,OAAO,EAAE,GAAG,GAA4C,CAAC;IACjE,OAAO,CAAC,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC7E,CAAC;AAQD,SAAgB,eAAe,CAAC,IAAqB;IACnD,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,aAAa,CAAC;AACpD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GAUGE_METRIC_SUFFIXES = exports.COUNT_METRIC_SUFFIXES = exports.
|
|
3
|
+
exports.GAUGE_METRIC_SUFFIXES = exports.COUNT_METRIC_SUFFIXES = exports.O11Y_TAG_FUNCTION_TYPE = exports.O11Y_TAG_FUNCTION_NAME = exports.O11Y_TAG_IS_TENANT_ORIGINATED = exports.O11Y_TAG_API_KEY_SOURCE = exports.O11Y_TAG_AI_PROFILE = exports.O11Y_TAG_AI_MODEL = exports.O11Y_TAG_INTEGRATION_ID = exports.O11Y_TAG_APP_ID = exports.O11Y_TAG_IS_ERROR = exports.AUDIT_LOG_EVENT_NAMES = exports.ObservableNames = void 0;
|
|
4
|
+
exports.getBooleanMetricTagValue = getBooleanMetricTagValue;
|
|
4
5
|
exports.ObservableNames = {
|
|
5
6
|
functionExecution: {
|
|
6
7
|
count: 'squid_functionExecution_count',
|
|
@@ -68,7 +69,6 @@ exports.O11Y_TAG_FUNCTION_TYPE = 'functionType';
|
|
|
68
69
|
function getBooleanMetricTagValue(value) {
|
|
69
70
|
return value ? '1' : '0';
|
|
70
71
|
}
|
|
71
|
-
exports.getBooleanMetricTagValue = getBooleanMetricTagValue;
|
|
72
72
|
exports.COUNT_METRIC_SUFFIXES = ['_count'];
|
|
73
73
|
exports.GAUGE_METRIC_SUFFIXES = ['_time', '_size', '_value', '_entries'];
|
|
74
74
|
//# sourceMappingURL=observability.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/observability.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/observability.types.ts"],"names":[],"mappings":";;;AA2HA,4DAEC;AArHY,QAAA,eAAe,GAAG;IAC7B,iBAAiB,EAAyB;QACxC,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,8BAA8B;KACrC;IACD,kBAAkB,EAAyB;QACzC,KAAK,EAAE,gCAAgC;QACvC,IAAI,EAAE,+BAA+B;KACtC;IACD,oBAAoB,EAAyB;QAC3C,KAAK,EAAE,kCAAkC;QACzC,IAAI,EAAE,iCAAiC;KACxC;IACD,iBAAiB,EAAyB;QACxC,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,8BAA8B;KACrC;IACD,kBAAkB,EAAyB;QACzC,KAAK,EAAE,gCAAgC;QACvC,IAAI,EAAE,+BAA+B;KACtC;IACD,iBAAiB,EAAyB;QACxC,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,8BAA8B;KACrC;IACD,mBAAmB,EAAyB;QAC1C,KAAK,EAAE,iCAAiC;QACxC,IAAI,EAAE,gCAAgC;KACvC;IACD,+BAA+B,EAAyB;QACtD,KAAK,EAAE,6CAA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
exports.QueryMappingManager = void 0;
|
|
4
|
+
exports.encodeCondition = encodeCondition;
|
|
5
|
+
exports.compareOperator = compareOperator;
|
|
6
|
+
exports.replaceSpecialCharacters = replaceSpecialCharacters;
|
|
7
|
+
exports.getQuerySubscriptionId = getQuerySubscriptionId;
|
|
8
|
+
exports.parseQuerySubscriptionId = parseQuerySubscriptionId;
|
|
4
9
|
const serialization_1 = require("../utils/serialization");
|
|
5
10
|
const object_1 = require("../utils/object");
|
|
6
11
|
const assertic_1 = require("assertic");
|
|
7
12
|
function encodeCondition(condition) {
|
|
8
13
|
return (0, serialization_1.normalizeJsonAsString)(condition);
|
|
9
14
|
}
|
|
10
|
-
exports.encodeCondition = encodeCondition;
|
|
11
15
|
class QueryMappingManager {
|
|
12
16
|
}
|
|
13
17
|
exports.QueryMappingManager = QueryMappingManager;
|
|
@@ -87,7 +91,6 @@ function compareOperator(conditionValue, valueInDocument, operator) {
|
|
|
87
91
|
throw new Error(`Unsupported operator comparison: ${operator}`);
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
|
-
exports.compareOperator = compareOperator;
|
|
91
94
|
function isStringMatch(str, pattern, caseSensitive) {
|
|
92
95
|
if (!caseSensitive) {
|
|
93
96
|
str = str.toLowerCase();
|
|
@@ -128,11 +131,9 @@ function replaceSpecialCharacters(input) {
|
|
|
128
131
|
}
|
|
129
132
|
return result;
|
|
130
133
|
}
|
|
131
|
-
exports.replaceSpecialCharacters = replaceSpecialCharacters;
|
|
132
134
|
function getQuerySubscriptionId(clientId, clientRequestId) {
|
|
133
135
|
return `${clientId}_${clientRequestId}`;
|
|
134
136
|
}
|
|
135
|
-
exports.getQuerySubscriptionId = getQuerySubscriptionId;
|
|
136
137
|
function parseQuerySubscriptionId(querySubscriptionId) {
|
|
137
138
|
const splitString = querySubscriptionId.split('_');
|
|
138
139
|
return {
|
|
@@ -140,5 +141,4 @@ function parseQuerySubscriptionId(querySubscriptionId) {
|
|
|
140
141
|
clientRequestId: splitString[1],
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
|
-
exports.parseQuerySubscriptionId = parseQuerySubscriptionId;
|
|
144
144
|
//# sourceMappingURL=query.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/query.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"query.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/query.types.ts"],"names":[],"mappings":";;;AA8CA,0CAEC;AAqBD,0CAwFC;AAyBD,4DA8BC;AAMD,wDAEC;AAGD,4DASC;AAxOD,0DAA+D;AAI/D,4CAAiD;AACjD,uCAAkC;AAyClC,SAAgB,eAAe,CAAC,SAAyB;IACvD,OAAO,IAAA,qCAAqB,EAAC,SAAS,CAAC,CAAC;AAC1C,CAAC;AAYD,MAAsB,mBAAmB;CAMxC;AAND,kDAMC;AAGD,SAAgB,eAAe,CAAC,cAAyB,EAAE,eAA0B,EAAE,QAAkB;IACvG,cAAc,GAAG,cAAc,YAAY,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC;IACtG,eAAe,GAAG,eAAe,YAAY,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC;IAE1G,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,IAAA,gBAAO,EAAC,cAAc,EAAE,eAAe,CAAC,CAAC;IAClD,CAAC;IACD,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,CAAC,IAAA,gBAAO,EAAC,cAAc,EAAE,eAAe,CAAC,CAAC;IACnD,CAAC;IAGD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,GAAG;YACN,IAAI,IAAA,cAAK,EAAC,cAAc,CAAC;gBAAE,OAAO,KA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GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;gBACzD,MAAM,IAAI,MAAM,CAAC;gBACjB,CAAC,EAAE,CAAC;YACN,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,IAAI,CAAC;YACjB,CAAC;QACH,CAAC;aAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YAE5B,MAAM,IAAI,WAAW,CAAC;QACxB,CAAC;aAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YAC5B,MAAM,IAAI,UAAU,CAAC;QACvB,CAAC;aAAM,CAAC;YAGN,IAAI,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3C,MAAM,IAAI,IAAI,CAAC;YACjB,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAMD,SAAgB,sBAAsB,CAAC,QAAgB,EAAE,eAAuB;IAC9E,OAAO,GAAG,QAAQ,IAAI,eAAe,EAAE,CAAC;AAC1C,CAAC;AAGD,SAAgB,wBAAwB,CAAC,mBAAwC;IAI/E,MAAM,WAAW,GAAG,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO;QACL,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;QACxB,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.transformParams = transformParams;
|
|
4
|
+
exports.transformResponse = transformResponse;
|
|
5
|
+
exports.isWebhookResponse = isWebhookResponse;
|
|
6
|
+
exports.isOpenApiResponse = isOpenApiResponse;
|
|
4
7
|
const query_public_context_1 = require("../public-types-backend/query.public-context");
|
|
5
8
|
const mutation_public_context_1 = require("../public-types-backend/mutation.public-context");
|
|
6
9
|
const api_call_public_context_1 = require("../public-types-backend/api-call.public-context");
|
|
@@ -37,7 +40,6 @@ function transformParams(params, executeFunctionAnnotationType) {
|
|
|
37
40
|
return params;
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
|
-
exports.transformParams = transformParams;
|
|
41
43
|
function transformResponse(functionResponse, executeFunctionAnnotationType) {
|
|
42
44
|
if (backend_run_types_1.ExecuteFunctionSecureAnnotations.includes(executeFunctionAnnotationType)) {
|
|
43
45
|
return {
|
|
@@ -85,13 +87,10 @@ function transformResponse(functionResponse, executeFunctionAnnotationType) {
|
|
|
85
87
|
}
|
|
86
88
|
return functionResponse;
|
|
87
89
|
}
|
|
88
|
-
exports.transformResponse = transformResponse;
|
|
89
90
|
function isWebhookResponse(response) {
|
|
90
91
|
return response && response.__isWebhookResponse__;
|
|
91
92
|
}
|
|
92
|
-
exports.isWebhookResponse = isWebhookResponse;
|
|
93
93
|
function isOpenApiResponse(response) {
|
|
94
94
|
return response && response.__isOpenApiResponse__;
|
|
95
95
|
}
|
|
96
|
-
exports.isOpenApiResponse = isOpenApiResponse;
|
|
97
96
|
//# sourceMappingURL=backend-transforms.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-transforms.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/backend-transforms.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backend-transforms.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/backend-transforms.ts"],"names":[],"mappings":";;AAqBA,0CAkCC;AAGD,8CAyDC;AAGD,8CAEC;AAGD,8CAEC;AA7HD,uFAA4E;AAC5E,6FAAkF;AAClF,6FAAiF;AACjF,kEAIoC;AAGpC,6GAAiG;AACjG,2FAAgF;AAChF,iGAA6F;AAM7F,qFAA+E;AAG/E,SAAgB,eAAe,CAC7B,MAAkB,EAClB,6BAA4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Q,CAAC;QAC7F,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,kBAAkB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,kBAAkB;YACtE,eAAe,EAAE,UAAU;SAC5B,CAAC;QACF,MAAM,IAAI,GAAG,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAG5F,MAAM,eAAe,GAAmD;YACtE,OAAO;YACP,IAAI;YACJ,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;SAClD,CAAC;QAEF,OAAO,eAAe,CAAC;IACzB,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAGD,SAAgB,iBAAiB,CAAC,QAAa;IAC7C,OAAO,QAAQ,IAAI,QAAQ,CAAC,qBAAqB,CAAC;AACpD,CAAC;AAGD,SAAgB,iBAAiB,CAAC,QAAa;IAC7C,OAAO,QAAQ,IAAI,QAAQ,CAAC,qBAAqB,CAAC;AACpD,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DebugLogger =
|
|
3
|
+
exports.DebugLogger = void 0;
|
|
4
|
+
exports.getGlobal = getGlobal;
|
|
5
|
+
exports.isDebugEnabled = isDebugEnabled;
|
|
6
|
+
exports.enableDebugLogs = enableDebugLogs;
|
|
7
|
+
exports.disableTimestampsInLog = disableTimestampsInLog;
|
|
8
|
+
exports.isTimestampEnabled = isTimestampEnabled;
|
|
9
|
+
exports.disableDebugLogs = disableDebugLogs;
|
|
4
10
|
function getGlobal() {
|
|
5
11
|
if (typeof window !== 'undefined') {
|
|
6
12
|
return window;
|
|
@@ -13,17 +19,14 @@ function getGlobal() {
|
|
|
13
19
|
}
|
|
14
20
|
throw new Error('Unable to locate global object');
|
|
15
21
|
}
|
|
16
|
-
exports.getGlobal = getGlobal;
|
|
17
22
|
function isDebugEnabled() {
|
|
18
23
|
const globalObj = getGlobal();
|
|
19
24
|
return globalObj?.['SQUID_LOG_DEBUG_ENABLED'] === true;
|
|
20
25
|
}
|
|
21
|
-
exports.isDebugEnabled = isDebugEnabled;
|
|
22
26
|
function enableDebugLogs(mode = true) {
|
|
23
27
|
const globalObj = getGlobal();
|
|
24
28
|
globalObj['SQUID_LOG_DEBUG_ENABLED'] = mode;
|
|
25
29
|
}
|
|
26
|
-
exports.enableDebugLogs = enableDebugLogs;
|
|
27
30
|
function isSquidDebugEnabledByDefault() {
|
|
28
31
|
let param = '';
|
|
29
32
|
if (typeof window !== 'undefined' && window.location) {
|
|
@@ -40,17 +43,14 @@ function disableTimestampsInLog() {
|
|
|
40
43
|
const globalObj = getGlobal();
|
|
41
44
|
globalObj['SQUID_LOG_TIMESTAMPS_DISABLED'] = true;
|
|
42
45
|
}
|
|
43
|
-
exports.disableTimestampsInLog = disableTimestampsInLog;
|
|
44
46
|
function isTimestampEnabled() {
|
|
45
47
|
const globalObj = getGlobal();
|
|
46
48
|
return globalObj?.['SQUID_LOG_TIMESTAMPS_DISABLED'] === true;
|
|
47
49
|
}
|
|
48
|
-
exports.isTimestampEnabled = isTimestampEnabled;
|
|
49
50
|
function disableDebugLogs() {
|
|
50
51
|
const globalObj = getGlobal();
|
|
51
52
|
globalObj['SQUID_LOG_DEBUG_ENABLED'] = false;
|
|
52
53
|
}
|
|
53
|
-
exports.disableDebugLogs = disableDebugLogs;
|
|
54
54
|
class DebugLogger {
|
|
55
55
|
static log(...args) {
|
|
56
56
|
console.log(`${getLogPrefixString()} LOG`, ...args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.utils.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/global.utils.ts"],"names":[],"mappings":";;;AAKA,SAAgB,SAAS;IACvB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;AACpD,CAAC;
|
|
1
|
+
{"version":3,"file":"global.utils.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/global.utils.ts"],"names":[],"mappings":";;;AAKA,8BAWC;AAGD,wCAGC;AAGD,0CAGC;AAgBD,wDAGC;AAED,gDAGC;AAGD,4CAGC;AArDD,SAAgB,SAAS;IACvB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;AACpD,CAAC;AAGD,SAAgB,cAAc;IAC5B,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC;IAC9B,OAAO,SAAS,EAAE,CAAC,yBAAyB,CAAC,KAAK,IAAI,CAAC;AACzD,CAAC;AAGD,SAAgB,eAAe,CAAC,IAAI,GAAG,IAAI;IACzC,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC;IAC9B,SAAS,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;AAC9C,CAAC;AAED,SAAS,4BAA4B;IACnC,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrD,MAAM,YAAY,GAAG,IAAI,eAAe,CAAC,MA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C;IAED,MAAM,CAAC,KAAK,CAAC,GAAG,IAAW;QACzB,OAAO,CAAC,KAAK,CAAC,GAAG,kBAAkB,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,GAAG,IAAW;QACzB,IAAI,CAAC,cAAc,EAAE;YAAE,OAAO;QAC9B,OAAO,CAAC,KAAK,CAAC,GAAG,kBAAkB,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1D,CAAC;CACF;AArBD,kCAqBC;AAED,SAAS,kBAAkB;IACzB,IAAI,kBAAkB,EAAE,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,IAAI,IAAI,CAAC,kBAAkB,EAAE,IAAI,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC;IAC1E,CAAC;SAAM,CAAC;QACN,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getApplicationUrl = getApplicationUrl;
|
|
4
|
+
exports.getApplicationHttpHeaders = getApplicationHttpHeaders;
|
|
4
5
|
const kotlinControllers = [
|
|
5
6
|
'aiData',
|
|
6
7
|
'api',
|
|
@@ -47,7 +48,6 @@ function getApplicationUrl(regionPrefix, appId, path) {
|
|
|
47
48
|
const urlWithoutTrailingSlash = url.replace(/\/$/g, '');
|
|
48
49
|
return path.length ? `${urlWithoutTrailingSlash}/${path}` : urlWithoutTrailingSlash;
|
|
49
50
|
}
|
|
50
|
-
exports.getApplicationUrl = getApplicationUrl;
|
|
51
51
|
function getApplicationHttpHeaders(regionPrefix, appId) {
|
|
52
52
|
const headers = {};
|
|
53
53
|
if (isLocal(regionPrefix)) {
|
|
@@ -55,7 +55,6 @@ function getApplicationHttpHeaders(regionPrefix, appId) {
|
|
|
55
55
|
}
|
|
56
56
|
return headers;
|
|
57
57
|
}
|
|
58
|
-
exports.getApplicationHttpHeaders = getApplicationHttpHeaders;
|
|
59
58
|
function isLocal(regionPrefix) {
|
|
60
59
|
return /^local/.test(regionPrefix);
|
|
61
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/http.ts"],"names":[],"mappings":";;AA2BA,8CAoBC;AAED,8DAOC;AAxDD,MAAM,iBAAiB,GAAG;IACxB,QAAQ;IACR,KAAK;IACL,aAAa;IACb,oBAAoB;IACpB,MAAM;IACN,kBAAkB;IAClB,YAAY;IACZ,aAAa;IACb,kBAAkB;IAClB,sBAAsB;IACtB,UAAU;IACV,aAAa;IACb,cAAc;IACd,eAAe;IACf,SAAS;IACT,OAAO;IACP,OAAO;IACP,OAAO;IACP,WAAW;IACX,QAAQ;IACR,SAAS;IACT,UAAU;IACV,IAAI;IACJ,iBAAiB;CAClB,CAAC;AAEF,SAAgB,iBAAiB,CAAC,YAAoB,EAAE,KAAa,EAAE,IAAY;IACjF,MAAM,OAAO,GAAG,qBAAqB,CAAC;IACtC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,aAAa,CAAC,IAAI,GAAG,GAAG,KAAK,IAAI,YAAY,IAAI,aAAa,CAAC,IAAI,EAAE,CAAC;IACtE,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhE,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QAC1B,aAAa,CAAC,QAAQ,GAAG,MAAM,CAAC;QAChC,aAAa,CAAC,IAAI,GAAG,iB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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SQUID_METRIC_TYPE_SUFFIXES = void 0;
|
|
4
|
+
exports.hasValidMetricTypeSuffix = hasValidMetricTypeSuffix;
|
|
4
5
|
exports.SQUID_METRIC_TYPE_SUFFIXES = ['_count', '_time', '_size', '_entries', '_value'];
|
|
5
6
|
function hasValidMetricTypeSuffix(metricName) {
|
|
6
7
|
return exports.SQUID_METRIC_TYPE_SUFFIXES.some(typeSuffix => metricName.endsWith(`${typeSuffix}`));
|
|
7
8
|
}
|
|
8
|
-
exports.hasValidMetricTypeSuffix = hasValidMetricTypeSuffix;
|
|
9
9
|
//# sourceMappingURL=metrics.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/metrics.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"metrics.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/metrics.types.ts"],"names":[],"mappings":";;;AAOA,4DAEC;AALY,QAAA,0BAA0B,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AAGtG,SAAgB,wBAAwB,CAAC,UAAkB;IACzD,OAAO,kCAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,UAAU,EAAE,CAAC,CAAC,CAAC;AAC7F,CAAC"}
|