@squidcloud/local-backend 1.0.159 → 1.0.160
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/code-executor.types.d.ts +15 -0
- package/dist/internal-common/src/code-executor.types.js +3 -0
- package/dist/internal-common/src/code-executor.types.js.map +1 -0
- package/dist/internal-common/src/local-dev.types.d.ts +54 -0
- package/dist/internal-common/src/local-dev.types.js +11 -0
- package/dist/internal-common/src/local-dev.types.js.map +1 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +27 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js +11 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/api-call.context.d.ts +13 -0
- package/dist/internal-common/src/public-types/api-call.context.js +17 -0
- package/dist/internal-common/src/public-types/api-call.context.js.map +1 -0
- package/dist/internal-common/src/public-types/api.types.d.ts +22 -0
- package/dist/internal-common/src/public-types/api.types.js +3 -0
- package/dist/internal-common/src/public-types/api.types.js.map +1 -0
- package/dist/internal-common/src/public-types/application.types.d.ts +201 -0
- package/dist/internal-common/src/public-types/application.types.js +90 -0
- package/dist/internal-common/src/public-types/application.types.js.map +1 -0
- package/dist/internal-common/src/public-types/backend-run.types.d.ts +52 -0
- package/dist/internal-common/src/public-types/backend-run.types.js +30 -0
- package/dist/internal-common/src/public-types/backend-run.types.js.map +1 -0
- package/dist/internal-common/src/public-types/bundle-api.types.d.ts +55 -0
- package/dist/internal-common/src/public-types/bundle-api.types.js +3 -0
- package/dist/internal-common/src/public-types/bundle-api.types.js.map +1 -0
- package/dist/internal-common/src/public-types/bundle-data.types.d.ts +86 -0
- package/dist/internal-common/src/public-types/bundle-data.types.js +3 -0
- package/dist/internal-common/src/public-types/bundle-data.types.js.map +1 -0
- package/dist/internal-common/src/public-types/communication.types.d.ts +20 -0
- package/dist/internal-common/src/public-types/communication.types.js +42 -0
- package/dist/internal-common/src/public-types/communication.types.js.map +1 -0
- package/dist/internal-common/src/public-types/context.types.d.ts +24 -0
- package/dist/internal-common/src/public-types/context.types.js +3 -0
- package/dist/internal-common/src/public-types/context.types.js.map +1 -0
- package/dist/internal-common/src/public-types/distributed-lock.context.d.ts +4 -0
- package/dist/internal-common/src/public-types/distributed-lock.context.js +10 -0
- package/dist/internal-common/src/public-types/distributed-lock.context.js.map +1 -0
- package/dist/internal-common/src/public-types/document.types.d.ts +32 -0
- package/dist/internal-common/src/public-types/document.types.js +51 -0
- package/dist/internal-common/src/public-types/document.types.js.map +1 -0
- package/dist/internal-common/src/public-types/graphql.context.d.ts +14 -0
- package/dist/internal-common/src/public-types/graphql.context.js +13 -0
- package/dist/internal-common/src/public-types/graphql.context.js.map +1 -0
- package/dist/internal-common/src/public-types/graphql.types.d.ts +11 -0
- package/dist/internal-common/src/public-types/graphql.types.js +35 -0
- package/dist/internal-common/src/public-types/graphql.types.js.map +1 -0
- package/dist/internal-common/src/public-types/http-status.enum.d.ts +50 -0
- package/dist/internal-common/src/public-types/http-status.enum.js +55 -0
- package/dist/internal-common/src/public-types/http-status.enum.js.map +1 -0
- package/dist/internal-common/src/public-types/integration-types.d.ts +62 -0
- package/dist/internal-common/src/public-types/integration-types.js +69 -0
- package/dist/internal-common/src/public-types/integration-types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +32 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/api.types.d.ts +81 -0
- package/dist/internal-common/src/public-types/integrations/api.types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/api.types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/auth.types.d.ts +46 -0
- package/dist/internal-common/src/public-types/integrations/auth.types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/auth.types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/database.types.d.ts +275 -0
- package/dist/internal-common/src/public-types/integrations/database.types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/database.types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/observability.types.d.ts +24 -0
- package/dist/internal-common/src/public-types/integrations/observability.types.js +24 -0
- package/dist/internal-common/src/public-types/integrations/observability.types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/queue-types.d.ts +40 -0
- package/dist/internal-common/src/public-types/integrations/queue-types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/queue-types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/schemas.d.ts +79 -0
- package/dist/internal-common/src/public-types/integrations/schemas.js +48 -0
- package/dist/internal-common/src/public-types/integrations/schemas.js.map +1 -0
- package/dist/internal-common/src/public-types/logger.types.d.ts +21 -0
- package/dist/internal-common/src/public-types/logger.types.js +12 -0
- package/dist/internal-common/src/public-types/logger.types.js.map +1 -0
- package/dist/internal-common/src/public-types/mutation.context.d.ts +13 -0
- package/dist/internal-common/src/public-types/mutation.context.js +27 -0
- package/dist/internal-common/src/public-types/mutation.context.js.map +1 -0
- package/dist/internal-common/src/public-types/mutation.types.d.ts +63 -0
- package/dist/internal-common/src/public-types/mutation.types.js +143 -0
- package/dist/internal-common/src/public-types/mutation.types.js.map +1 -0
- package/dist/internal-common/src/public-types/native-query.context.d.ts +7 -0
- package/dist/internal-common/src/public-types/native-query.context.js +12 -0
- package/dist/internal-common/src/public-types/native-query.context.js.map +1 -0
- package/dist/internal-common/src/public-types/openapi.types.d.ts +26 -0
- package/dist/internal-common/src/public-types/openapi.types.js +3 -0
- package/dist/internal-common/src/public-types/openapi.types.js.map +1 -0
- package/dist/internal-common/src/public-types/query-context.d.ts +47 -0
- package/dist/internal-common/src/public-types/query-context.js +160 -0
- package/dist/internal-common/src/public-types/query-context.js.map +1 -0
- package/dist/internal-common/src/public-types/query.types.d.ts +86 -0
- package/dist/internal-common/src/public-types/query.types.js +98 -0
- package/dist/internal-common/src/public-types/query.types.js.map +1 -0
- package/dist/internal-common/src/public-types/secret.types.d.ts +68 -0
- package/dist/internal-common/src/public-types/secret.types.js +6 -0
- package/dist/internal-common/src/public-types/secret.types.js.map +1 -0
- package/dist/internal-common/src/public-types/socket.types.d.ts +132 -0
- package/dist/internal-common/src/public-types/socket.types.js +10 -0
- package/dist/internal-common/src/public-types/socket.types.js.map +1 -0
- package/dist/internal-common/src/public-types/topic.context.d.ts +10 -0
- package/dist/internal-common/src/public-types/topic.context.js +3 -0
- package/dist/internal-common/src/public-types/topic.context.js.map +1 -0
- package/dist/internal-common/src/public-types/types.d.ts +21 -0
- package/dist/internal-common/src/public-types/types.js +3 -0
- package/dist/internal-common/src/public-types/types.js.map +1 -0
- package/dist/internal-common/src/schema/schema.types.d.ts +30 -0
- package/dist/internal-common/src/schema/schema.types.js +167 -0
- package/dist/internal-common/src/schema/schema.types.js.map +1 -0
- package/dist/internal-common/src/types/ai-chatbot.context.d.ts +13 -0
- package/dist/internal-common/src/types/ai-chatbot.context.js +20 -0
- package/dist/internal-common/src/types/ai-chatbot.context.js.map +1 -0
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +101 -0
- package/dist/internal-common/src/types/ai-chatbot.types.js +21 -0
- package/dist/internal-common/src/types/ai-chatbot.types.js.map +1 -0
- package/dist/internal-common/src/types/openapi-response.d.ts +6 -0
- package/dist/internal-common/src/types/openapi-response.js +3 -0
- package/dist/internal-common/src/types/openapi-response.js.map +1 -0
- package/dist/internal-common/src/types/security-internal.types.d.ts +20 -0
- package/dist/internal-common/src/types/security-internal.types.js +3 -0
- package/dist/internal-common/src/types/security-internal.types.js.map +1 -0
- package/dist/internal-common/src/utils/assert.d.ts +3 -0
- package/dist/internal-common/src/utils/assert.js +15 -0
- package/dist/internal-common/src/utils/assert.js.map +1 -0
- package/dist/internal-common/src/utils/backend-transforms.d.ts +3 -0
- package/dist/internal-common/src/utils/backend-transforms.js +91 -0
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -0
- package/dist/internal-common/src/utils/global.utils.d.ts +11 -0
- package/dist/internal-common/src/utils/global.utils.js +51 -0
- package/dist/internal-common/src/utils/global.utils.js.map +1 -0
- package/dist/internal-common/src/utils/http.d.ts +2 -0
- package/dist/internal-common/src/utils/http.js +56 -0
- package/dist/internal-common/src/utils/http.js.map +1 -0
- package/dist/internal-common/src/utils/object.d.ts +5 -0
- package/dist/internal-common/src/utils/object.js +76 -0
- package/dist/internal-common/src/utils/object.js.map +1 -0
- package/dist/internal-common/src/utils/serialization.d.ts +5 -0
- package/dist/internal-common/src/utils/serialization.js +74 -0
- package/dist/internal-common/src/utils/serialization.js.map +1 -0
- package/dist/internal-common/src/utils/validation.d.ts +19 -0
- package/dist/internal-common/src/utils/validation.js +210 -0
- package/dist/internal-common/src/utils/validation.js.map +1 -0
- package/dist/internal-common/src/websocket.impl.d.ts +21 -0
- package/dist/internal-common/src/websocket.impl.js +80 -0
- package/dist/internal-common/src/websocket.impl.js.map +1 -0
- package/dist/local-backend/openapi-template.hbs +1 -0
- package/dist/local-backend/package.json +54 -0
- package/dist/local-backend/src/index.d.ts +4 -0
- package/dist/local-backend/src/index.js.map +1 -0
- package/dist/local-backend/src/local-backend-socket.service.d.ts +22 -0
- package/dist/local-backend/src/local-backend-socket.service.js +212 -0
- package/dist/local-backend/src/local-backend-socket.service.js.map +1 -0
- package/dist/local-backend/src/local-backend.app.d.ts +2 -0
- package/dist/local-backend/src/local-backend.app.js +26 -0
- package/dist/local-backend/src/local-backend.app.js.map +1 -0
- package/dist/local-backend/src/local-backend.controller.d.ts +8 -0
- package/dist/local-backend/src/local-backend.controller.js +49 -0
- package/dist/local-backend/src/local-backend.controller.js.map +1 -0
- package/dist/local-backend/src/local-backend.module.d.ts +8 -0
- package/dist/local-backend/src/local-backend.module.js +52 -0
- package/dist/local-backend/src/local-backend.module.js.map +1 -0
- package/dist/local-backend/src/local-backend.service.d.ts +17 -0
- package/dist/local-backend/src/local-backend.service.js +175 -0
- package/dist/local-backend/src/local-backend.service.js.map +1 -0
- package/dist/local-backend/src/utils/shell-runner.d.ts +4 -0
- package/dist/local-backend/src/utils/shell-runner.js +28 -0
- package/dist/local-backend/src/utils/shell-runner.js.map +1 -0
- package/dist/local-backend/tsoa.json +15 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-api.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-api.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { SchedulerConfig, SchedulerId, TriggerConfig, TriggerId, WebhookConfig, WebhookId } from './application.types';
|
|
2
|
+
import { IntegrationId } from './communication.types';
|
|
3
|
+
import { CollectionName } from './document.types';
|
|
4
|
+
import { ApiEndpointId } from './integrations/api.types';
|
|
5
|
+
import { OpenApiController } from './openapi.types';
|
|
6
|
+
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
7
|
+
export type TopicActionType = 'read' | 'write' | 'all';
|
|
8
|
+
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
9
|
+
export type TopicName = string;
|
|
10
|
+
export type ServiceName = string;
|
|
11
|
+
export type FunctionName = string;
|
|
12
|
+
export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
|
|
13
|
+
export interface ApplicationBundleData {
|
|
14
|
+
databases: Record<IntegrationId, DatabaseMetadata>;
|
|
15
|
+
apis: Record<IntegrationId, {
|
|
16
|
+
endpoints: Record<ApiEndpointId, ApiMetadata>;
|
|
17
|
+
} & ApiMetadata>;
|
|
18
|
+
graphql: Record<IntegrationId, GraphQLMetadata>;
|
|
19
|
+
executables: Record<FunctionName, ExecutableMetadata>;
|
|
20
|
+
triggers: Record<TriggerId, TriggerConfig>;
|
|
21
|
+
schedulers: Record<SchedulerId, SchedulerConfig>;
|
|
22
|
+
webhooks: Record<WebhookId, WebhookConfig>;
|
|
23
|
+
nativeQueries: Record<IntegrationId, Array<ServiceFunctionName>>;
|
|
24
|
+
distributedLocks: {
|
|
25
|
+
security?: Array<ServiceFunctionName>;
|
|
26
|
+
mutexes?: Record<string, {
|
|
27
|
+
security?: Array<ServiceFunctionName>;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
aiChatbots: Record<IntegrationId, {
|
|
31
|
+
profiles: Record<string, AiChatbotMetadata>;
|
|
32
|
+
} & AiChatbotMetadata>;
|
|
33
|
+
clientConnectionStateChangeHandlers?: Array<ServiceFunctionName>;
|
|
34
|
+
aiFunctions?: Record<FunctionName, AiFunctionMetadata>;
|
|
35
|
+
openApiControllers?: Array<OpenApiController>;
|
|
36
|
+
queues?: Record<IntegrationId, QueueMetadata>;
|
|
37
|
+
}
|
|
38
|
+
export interface LocalBackendData {
|
|
39
|
+
applicationBundleData: ApplicationBundleData;
|
|
40
|
+
openApiSpecStr?: string;
|
|
41
|
+
}
|
|
42
|
+
export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
|
|
43
|
+
export interface AiFunctionParam {
|
|
44
|
+
name: string;
|
|
45
|
+
description: string;
|
|
46
|
+
type: AiFunctionParamType;
|
|
47
|
+
required: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface AiFunctionMetadata {
|
|
50
|
+
description: string;
|
|
51
|
+
params: Array<AiFunctionParam>;
|
|
52
|
+
serviceFunction: ServiceFunctionName;
|
|
53
|
+
}
|
|
54
|
+
export interface DatabaseMetadata {
|
|
55
|
+
collections: Record<CollectionName, CollectionMetadata>;
|
|
56
|
+
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
57
|
+
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
58
|
+
}
|
|
59
|
+
export interface QueueMetadata {
|
|
60
|
+
topics: Record<TopicName, TopicMetadata>;
|
|
61
|
+
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
62
|
+
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
63
|
+
}
|
|
64
|
+
export interface TopicMetadata {
|
|
65
|
+
security?: Record<TopicActionType, Array<ServiceFunctionName>>;
|
|
66
|
+
}
|
|
67
|
+
export interface CollectionMetadata {
|
|
68
|
+
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
69
|
+
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
70
|
+
}
|
|
71
|
+
export interface DatabaseTransformMetadata {
|
|
72
|
+
serviceFunction: ServiceFunctionName;
|
|
73
|
+
}
|
|
74
|
+
export interface ExecutableMetadata {
|
|
75
|
+
serviceFunction: ServiceFunctionName;
|
|
76
|
+
}
|
|
77
|
+
export interface ApiMetadata {
|
|
78
|
+
security: Array<ServiceFunctionName>;
|
|
79
|
+
}
|
|
80
|
+
interface GraphQLMetadata {
|
|
81
|
+
security: Array<ServiceFunctionName>;
|
|
82
|
+
}
|
|
83
|
+
export interface AiChatbotMetadata {
|
|
84
|
+
security: Record<AiChatbotActionType, Array<ServiceFunctionName>>;
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-data.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-data.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type AppId = string;
|
|
2
|
+
export declare const ENVIRONMENT_IDS: readonly ["dev", "prod"];
|
|
3
|
+
export type EnvironmentId = (typeof ENVIRONMENT_IDS)[number];
|
|
4
|
+
export declare const allEnvironmentIds: Array<EnvironmentId>;
|
|
5
|
+
export type IntegrationId = string;
|
|
6
|
+
export type ClientId = string;
|
|
7
|
+
export type ChatId = string;
|
|
8
|
+
export type ClientRequestId = string;
|
|
9
|
+
export type SquidDeveloperId = string;
|
|
10
|
+
export interface ParsedAppId {
|
|
11
|
+
appId: AppId;
|
|
12
|
+
environmentId: EnvironmentId;
|
|
13
|
+
squidDeveloperId?: SquidDeveloperId;
|
|
14
|
+
}
|
|
15
|
+
export declare function parseAppId(appId: AppId): ParsedAppId;
|
|
16
|
+
export declare function appIdWithEnvironmentId(appId: AppId, environmentId: EnvironmentId | undefined): AppId;
|
|
17
|
+
export declare function appIdWithEnvironmentIdAndDevId(appId: AppId, environmentId: EnvironmentId | undefined, developerId: SquidDeveloperId | undefined): AppId;
|
|
18
|
+
export declare function validateEnvironment(appId: AppId): ParsedAppId;
|
|
19
|
+
export declare function verifyWithSquidDevId(appId: AppId): void;
|
|
20
|
+
export declare function omitSquidDevId(appId: AppId): AppId;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.omitSquidDevId = exports.verifyWithSquidDevId = exports.validateEnvironment = exports.appIdWithEnvironmentIdAndDevId = exports.appIdWithEnvironmentId = exports.parseAppId = exports.allEnvironmentIds = exports.ENVIRONMENT_IDS = void 0;
|
|
4
|
+
const assertic_1 = require("assertic");
|
|
5
|
+
exports.ENVIRONMENT_IDS = ['dev', 'prod'];
|
|
6
|
+
exports.allEnvironmentIds = [...exports.ENVIRONMENT_IDS];
|
|
7
|
+
function parseAppId(appId) {
|
|
8
|
+
const [appIdWithoutEnv, environmentId, squidDeveloperId, other] = appId.split(/[_-]/);
|
|
9
|
+
(0, assertic_1.assertTruthy)(!other, 'Invalid appId: ' + appId);
|
|
10
|
+
return {
|
|
11
|
+
appId: appIdWithoutEnv,
|
|
12
|
+
environmentId: (environmentId !== null && environmentId !== void 0 ? environmentId : 'prod'),
|
|
13
|
+
squidDeveloperId,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
exports.parseAppId = parseAppId;
|
|
17
|
+
function appIdWithEnvironmentId(appId, environmentId) {
|
|
18
|
+
const parsedAppId = parseAppId(appId);
|
|
19
|
+
return `${parsedAppId.appId}${!environmentId || environmentId === 'prod' ? '' : `-${environmentId}`}`;
|
|
20
|
+
}
|
|
21
|
+
exports.appIdWithEnvironmentId = appIdWithEnvironmentId;
|
|
22
|
+
function appIdWithEnvironmentIdAndDevId(appId, environmentId, developerId) {
|
|
23
|
+
return `${appIdWithEnvironmentId(appId, environmentId)}${developerId ? `-${developerId}` : ''}`;
|
|
24
|
+
}
|
|
25
|
+
exports.appIdWithEnvironmentIdAndDevId = appIdWithEnvironmentIdAndDevId;
|
|
26
|
+
function validateEnvironment(appId) {
|
|
27
|
+
const parsedAppId = parseAppId(appId);
|
|
28
|
+
(0, assertic_1.assertTruthy)(parsedAppId.environmentId !== 'prod' || !parsedAppId.squidDeveloperId, 'Cannot use developer ID in production');
|
|
29
|
+
return parsedAppId;
|
|
30
|
+
}
|
|
31
|
+
exports.validateEnvironment = validateEnvironment;
|
|
32
|
+
function verifyWithSquidDevId(appId) {
|
|
33
|
+
const parsedAppId = parseAppId(appId);
|
|
34
|
+
(0, assertic_1.assertTruthy)(parsedAppId.squidDeveloperId, 'Must provide squid developer ID');
|
|
35
|
+
}
|
|
36
|
+
exports.verifyWithSquidDevId = verifyWithSquidDevId;
|
|
37
|
+
function omitSquidDevId(appId) {
|
|
38
|
+
const parsedAppId = parseAppId(appId);
|
|
39
|
+
return appIdWithEnvironmentId(parsedAppId.appId, parsedAppId.environmentId);
|
|
40
|
+
}
|
|
41
|
+
exports.omitSquidDevId = omitSquidDevId;
|
|
42
|
+
//# sourceMappingURL=communication.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/communication.types.ts"],"names":[],"mappings":";;;AAKA,uCAAwC;AAI3B,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAC;AAK3C,QAAA,iBAAiB,GAAyB,CAAC,GAAG,uBAAe,CAAC,CAAC;AAoB5E,SAAgB,UAAU,CAAC,KAAY;IAErC,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtF,IAAA,uBAAY,EAAC,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,CAAC;IAChD,OAAO;QACL,KAAK,EAAE,eAAe;QACtB,aAAa,EAAE,CAAC,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,MAAM,CAAkB;QACzD,gBAAgB;KACjB,CAAC;AACJ,CAAC;AATD,gCASC;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;AAHD,wDAGC;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;AAND,wEAMC;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;AAPD,kDAOC;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;AAHD,oDAGC;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;AAHD,wCAGC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AppId, ClientId } from './communication.types';
|
|
2
|
+
export type AuthType = 'Bearer' | 'ApiKey';
|
|
3
|
+
export interface AuthWithBearer {
|
|
4
|
+
type: 'Bearer';
|
|
5
|
+
userId: string;
|
|
6
|
+
expiration: number;
|
|
7
|
+
attributes: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export interface AuthWithApiKey {
|
|
10
|
+
type: 'ApiKey';
|
|
11
|
+
apiKey: string;
|
|
12
|
+
}
|
|
13
|
+
export type Auth = AuthWithBearer | AuthWithApiKey;
|
|
14
|
+
export interface AuthToken {
|
|
15
|
+
type: AuthType;
|
|
16
|
+
token: string;
|
|
17
|
+
integrationId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface RunContext {
|
|
20
|
+
appId: AppId;
|
|
21
|
+
clientId?: ClientId;
|
|
22
|
+
sourceIp?: string;
|
|
23
|
+
headers?: Record<string, any>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/context.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DistributedLockContext = void 0;
|
|
4
|
+
class DistributedLockContext {
|
|
5
|
+
constructor(mutex) {
|
|
6
|
+
this.mutex = mutex;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.DistributedLockContext = DistributedLockContext;
|
|
10
|
+
//# sourceMappingURL=distributed-lock.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributed-lock.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/distributed-lock.context.ts"],"names":[],"mappings":";;;AACA,MAAa,sBAAsB;IAEjC,YAAqB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;CACvC;AAHD,wDAGC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IntegrationId } from './communication.types';
|
|
2
|
+
export type FieldName<T = any> = string & keyof T;
|
|
3
|
+
export type PrimitiveFieldType = string | number | boolean | null | Date;
|
|
4
|
+
export type FieldType = PrimitiveFieldType | Array<FieldType> | {
|
|
5
|
+
[key: string]: FieldType;
|
|
6
|
+
};
|
|
7
|
+
export type DocId = string;
|
|
8
|
+
export type DocIdObj = Record<FieldName, any>;
|
|
9
|
+
export type CollectionName = string;
|
|
10
|
+
export type FullCollectionName = string;
|
|
11
|
+
export type DocTimestamp = number;
|
|
12
|
+
export declare const SquidPlaceholderId = "__squidId";
|
|
13
|
+
export interface SquidDocIdObj {
|
|
14
|
+
collectionName: CollectionName;
|
|
15
|
+
docId: DocId;
|
|
16
|
+
integrationId: IntegrationId;
|
|
17
|
+
}
|
|
18
|
+
export interface BeforeAndAfterDocs<T = SquidDocument> {
|
|
19
|
+
before: T | undefined;
|
|
20
|
+
after: T | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type SquidDocId = string;
|
|
23
|
+
export interface SquidDocument {
|
|
24
|
+
__docId__: DocId;
|
|
25
|
+
__ts__: DocTimestamp;
|
|
26
|
+
[fieldName: string]: FieldType | undefined;
|
|
27
|
+
}
|
|
28
|
+
export type DocumentData = Record<FieldName, any | undefined>;
|
|
29
|
+
export declare function parseSquidDocId(squidDocId: SquidDocId): SquidDocIdObj;
|
|
30
|
+
export declare function getSquidDocId(squidDocIdObj: SquidDocIdObj): SquidDocId;
|
|
31
|
+
export declare function getSquidDocId(docId: DocId, collectionName: CollectionName, integrationId: IntegrationId): SquidDocId;
|
|
32
|
+
export declare function hasDocumentDiff(beforeDoc: SquidDocument | undefined, afterDoc: SquidDocument | undefined): boolean;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasDocumentDiff = exports.getSquidDocId = exports.parseSquidDocId = exports.SquidPlaceholderId = void 0;
|
|
4
|
+
const deep_diff_1 = require("deep-diff");
|
|
5
|
+
const assertic_1 = require("assertic");
|
|
6
|
+
const serialization_1 = require("../utils/serialization");
|
|
7
|
+
exports.SquidPlaceholderId = '__squidId';
|
|
8
|
+
function parseSquidDocId(squidDocId) {
|
|
9
|
+
return (0, serialization_1.deserializeObj)(squidDocId);
|
|
10
|
+
}
|
|
11
|
+
exports.parseSquidDocId = parseSquidDocId;
|
|
12
|
+
function getSquidDocId(...args) {
|
|
13
|
+
const [a, b, c] = args;
|
|
14
|
+
const squidDocIdObjObj = typeof a === 'object' ? a : { docId: a, collectionName: b, integrationId: c };
|
|
15
|
+
if (!squidDocIdObjObj.integrationId)
|
|
16
|
+
squidDocIdObjObj.integrationId = undefined;
|
|
17
|
+
return (0, serialization_1.normalizeJsonAsString)(squidDocIdObjObj);
|
|
18
|
+
}
|
|
19
|
+
exports.getSquidDocId = getSquidDocId;
|
|
20
|
+
function hasDocumentDiff(beforeDoc, afterDoc) {
|
|
21
|
+
const diffs = (0, deep_diff_1.default)(beforeDoc, afterDoc) || [];
|
|
22
|
+
const ignoredKeys = ['__docId__', '__ts__'];
|
|
23
|
+
const docIdDiff = diffs.find((diff) => {
|
|
24
|
+
var _a;
|
|
25
|
+
return ((_a = diff.path) === null || _a === void 0 ? void 0 : _a[0]) === '__docId__';
|
|
26
|
+
});
|
|
27
|
+
if (docIdDiff) {
|
|
28
|
+
if (docIdDiff.kind !== 'E' || !docIdDiff.rhs) {
|
|
29
|
+
throw new Error(`Unexpected diff for __docId__: ${(0, serialization_1.normalizeJsonAsString)(docIdDiff)}`);
|
|
30
|
+
}
|
|
31
|
+
const docIdObj = parseSquidDocId(docIdDiff.rhs + '');
|
|
32
|
+
ignoredKeys.push(...Object.keys(docIdObj));
|
|
33
|
+
}
|
|
34
|
+
const diff = diffs === null || diffs === void 0 ? void 0 : diffs.find((diff) => {
|
|
35
|
+
var _a;
|
|
36
|
+
if (ignoredKeys.includes((_a = diff.path) === null || _a === void 0 ? void 0 : _a[0]))
|
|
37
|
+
return false;
|
|
38
|
+
switch (diff.kind) {
|
|
39
|
+
case 'N':
|
|
40
|
+
return (0, assertic_1.isNonNullable)(diff.rhs);
|
|
41
|
+
case 'E':
|
|
42
|
+
case 'D':
|
|
43
|
+
case 'A':
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
});
|
|
48
|
+
return !!diff;
|
|
49
|
+
}
|
|
50
|
+
exports.hasDocumentDiff = hasDocumentDiff;
|
|
51
|
+
//# sourceMappingURL=document.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/document.types.ts"],"names":[],"mappings":";;;AAAA,yCAAiC;AAEjC,uCAAyC;AACzC,0DAA+E;AAuBlE,QAAA,kBAAkB,GAAG,WAAW,CAAC;AA8B9C,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,IAAA,8BAAc,EAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AAFD,0CAEC;AAOD,SAAgB,aAAa,CAAC,GAAG,IAAS;IACxC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IACvB,MAAM,gBAAgB,GAAG,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;IAEvG,IAAI,CAAC,gBAAgB,CAAC,aAAa;QAAE,gBAAgB,CAAC,aAAa,GAAG,SAAS,CAAC;IAChF,OAAO,IAAA,qCAAqB,EAAC,gBAAgB,CAAC,CAAC;AACjD,CAAC;AAND,sCAMC;AAQD,SAAgB,eAAe,CAAC,SAAoC,EAAE,QAAmC;IACvG,MAAM,KAAK,GAAG,IAAA,mBAAQ,EAAC,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IAElD,MAAM,WAAW,GAAkB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAA6B,EAAE,EAAE;;QAC7D,OAAO,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAG,CAAC,CAAC,MAAK,WAAW,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,IAAI,SAAS,EAAE;QACb,IAAI,SAAS,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;YAC5C,MAAM,IAAI,KAAK,CAAC,kCAAkC,IAAA,qCAAqB,EAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACvF;QACD,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;QACrD,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC5C;IAED,MAAM,IAAI,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAC,IAA6B,EAAE,EAAE;;QAEzD,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAA,IAAI,CAAC,IAAI,0CAAG,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QAEvD,QAAQ,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,GAAG;gBAEN,OAAO,IAAA,wBAAa,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjC,KAAK,GAAG,CAAC;YACT,KAAK,GAAG,CAAC;YACT,KAAK,GAAG;gBACN,OAAO,IAAI,CAAC;SACf;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,CAAC,IAAI,CAAC;AAChB,CAAC;AAhCD,0CAgCC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface GraphQlRequest {
|
|
2
|
+
isGraphiQL: boolean;
|
|
3
|
+
query?: string;
|
|
4
|
+
operationName?: string;
|
|
5
|
+
variables?: string | Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
export declare class GraphqlContext {
|
|
8
|
+
readonly isGraphiQL: boolean;
|
|
9
|
+
readonly query: string | undefined;
|
|
10
|
+
readonly variables: string | Record<string, any> | undefined;
|
|
11
|
+
readonly operationName: string | undefined;
|
|
12
|
+
constructor(graphQlRequest: GraphQlRequest);
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphqlContext = void 0;
|
|
4
|
+
class GraphqlContext {
|
|
5
|
+
constructor(graphQlRequest) {
|
|
6
|
+
this.isGraphiQL = graphQlRequest.isGraphiQL;
|
|
7
|
+
this.query = graphQlRequest.query;
|
|
8
|
+
this.operationName = graphQlRequest.operationName;
|
|
9
|
+
this.variables = graphQlRequest.variables;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.GraphqlContext = GraphqlContext;
|
|
13
|
+
//# sourceMappingURL=graphql.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/graphql.context.ts"],"names":[],"mappings":";;;AASA,MAAa,cAAc;IASzB,YAAY,cAA8B;QACxC,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC;IAC5C,CAAC;CACF;AAfD,wCAeC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IntrospectionQuery } from 'graphql';
|
|
2
|
+
export { type ExecutionResult, type IntrospectionQuery } from 'graphql';
|
|
3
|
+
export interface GraphQLRequest {
|
|
4
|
+
operationName?: string;
|
|
5
|
+
query?: string;
|
|
6
|
+
variables?: string | Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
export interface SecureGraphQLRequest extends GraphQLRequest {
|
|
9
|
+
isGraphiQL: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const EmptyIntrospection: IntrospectionQuery;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmptyIntrospection = void 0;
|
|
4
|
+
exports.EmptyIntrospection = {
|
|
5
|
+
__schema: {
|
|
6
|
+
queryType: { name: 'Query', kind: 'OBJECT' },
|
|
7
|
+
mutationType: null,
|
|
8
|
+
subscriptionType: null,
|
|
9
|
+
types: [
|
|
10
|
+
{
|
|
11
|
+
name: 'Query',
|
|
12
|
+
kind: 'OBJECT',
|
|
13
|
+
fields: [
|
|
14
|
+
{
|
|
15
|
+
name: 'isEmpty',
|
|
16
|
+
type: {
|
|
17
|
+
kind: 'SCALAR',
|
|
18
|
+
name: 'Boolean',
|
|
19
|
+
},
|
|
20
|
+
args: [],
|
|
21
|
+
isDeprecated: false,
|
|
22
|
+
deprecationReason: null,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
interfaces: [],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Boolean',
|
|
29
|
+
kind: 'SCALAR',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
directives: [],
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=graphql.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/graphql.types.ts"],"names":[],"mappings":";;;AAkBa,QAAA,kBAAkB,GAAuB;IACpD,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5C,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE,SAAS;yBAChB;wBACD,IAAI,EAAE,EAAE;wBACR,YAAY,EAAE,KAAK;wBACnB,iBAAiB,EAAE,IAAI;qBACxB;iBACF;gBACD,UAAU,EAAE,EAAE;aACf;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;QACD,UAAU,EAAE,EAAE;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare enum HttpStatus {
|
|
2
|
+
CONTINUE = 100,
|
|
3
|
+
SWITCHING_PROTOCOLS = 101,
|
|
4
|
+
PROCESSING = 102,
|
|
5
|
+
EARLYHINTS = 103,
|
|
6
|
+
OK = 200,
|
|
7
|
+
CREATED = 201,
|
|
8
|
+
ACCEPTED = 202,
|
|
9
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
10
|
+
NO_CONTENT = 204,
|
|
11
|
+
RESET_CONTENT = 205,
|
|
12
|
+
PARTIAL_CONTENT = 206,
|
|
13
|
+
AMBIGUOUS = 300,
|
|
14
|
+
MOVED_PERMANENTLY = 301,
|
|
15
|
+
FOUND = 302,
|
|
16
|
+
SEE_OTHER = 303,
|
|
17
|
+
NOT_MODIFIED = 304,
|
|
18
|
+
TEMPORARY_REDIRECT = 307,
|
|
19
|
+
PERMANENT_REDIRECT = 308,
|
|
20
|
+
BAD_REQUEST = 400,
|
|
21
|
+
UNAUTHORIZED = 401,
|
|
22
|
+
PAYMENT_REQUIRED = 402,
|
|
23
|
+
FORBIDDEN = 403,
|
|
24
|
+
NOT_FOUND = 404,
|
|
25
|
+
METHOD_NOT_ALLOWED = 405,
|
|
26
|
+
NOT_ACCEPTABLE = 406,
|
|
27
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
28
|
+
REQUEST_TIMEOUT = 408,
|
|
29
|
+
CONFLICT = 409,
|
|
30
|
+
GONE = 410,
|
|
31
|
+
LENGTH_REQUIRED = 411,
|
|
32
|
+
PRECONDITION_FAILED = 412,
|
|
33
|
+
PAYLOAD_TOO_LARGE = 413,
|
|
34
|
+
URI_TOO_LONG = 414,
|
|
35
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
36
|
+
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
37
|
+
EXPECTATION_FAILED = 417,
|
|
38
|
+
I_AM_A_TEAPOT = 418,
|
|
39
|
+
MISDIRECTED = 421,
|
|
40
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
41
|
+
FAILED_DEPENDENCY = 424,
|
|
42
|
+
PRECONDITION_REQUIRED = 428,
|
|
43
|
+
TOO_MANY_REQUESTS = 429,
|
|
44
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
45
|
+
NOT_IMPLEMENTED = 501,
|
|
46
|
+
BAD_GATEWAY = 502,
|
|
47
|
+
SERVICE_UNAVAILABLE = 503,
|
|
48
|
+
GATEWAY_TIMEOUT = 504,
|
|
49
|
+
HTTP_VERSION_NOT_SUPPORTED = 505
|
|
50
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatus = void 0;
|
|
4
|
+
var HttpStatus;
|
|
5
|
+
(function (HttpStatus) {
|
|
6
|
+
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
|
7
|
+
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
8
|
+
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
|
9
|
+
HttpStatus[HttpStatus["EARLYHINTS"] = 103] = "EARLYHINTS";
|
|
10
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
11
|
+
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
|
12
|
+
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
|
13
|
+
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
14
|
+
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
15
|
+
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
16
|
+
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
17
|
+
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
18
|
+
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
19
|
+
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
|
20
|
+
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
21
|
+
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
22
|
+
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
23
|
+
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
24
|
+
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
25
|
+
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
26
|
+
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
27
|
+
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
28
|
+
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
29
|
+
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
30
|
+
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
31
|
+
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
32
|
+
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
33
|
+
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
|
34
|
+
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
|
35
|
+
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
36
|
+
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
37
|
+
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
38
|
+
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
39
|
+
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
40
|
+
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
41
|
+
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
42
|
+
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
43
|
+
HttpStatus[HttpStatus["MISDIRECTED"] = 421] = "MISDIRECTED";
|
|
44
|
+
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
45
|
+
HttpStatus[HttpStatus["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
46
|
+
HttpStatus[HttpStatus["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
47
|
+
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
48
|
+
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
49
|
+
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
50
|
+
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
51
|
+
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
52
|
+
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
53
|
+
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
54
|
+
})(HttpStatus || (exports.HttpStatus = HttpStatus = {}));
|
|
55
|
+
//# sourceMappingURL=http-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-status.enum.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/http-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAiDX;AAjDD,WAAY,UAAU;IACpB,qDAAc,CAAA;IACd,2EAAyB,CAAA;IACzB,yDAAgB,CAAA;IAChB,yDAAgB,CAAA;IAChB,yCAAQ,CAAA;IACR,mDAAa,CAAA;IACb,qDAAc,CAAA;IACd,+FAAmC,CAAA;IACnC,yDAAgB,CAAA;IAChB,+DAAmB,CAAA;IACnB,mEAAqB,CAAA;IACrB,uDAAe,CAAA;IACf,uEAAuB,CAAA;IACvB,+CAAW,CAAA;IACX,uDAAe,CAAA;IACf,6DAAkB,CAAA;IAClB,yEAAwB,CAAA;IACxB,yEAAwB,CAAA;IACxB,2DAAiB,CAAA;IACjB,6DAAkB,CAAA;IAClB,qEAAsB,CAAA;IACtB,uDAAe,CAAA;IACf,uDAAe,CAAA;IACf,yEAAwB,CAAA;IACxB,iEAAoB,CAAA;IACpB,+FAAmC,CAAA;IACnC,mEAAqB,CAAA;IACrB,qDAAc,CAAA;IACd,6CAAU,CAAA;IACV,mEAAqB,CAAA;IACrB,2EAAyB,CAAA;IACzB,uEAAuB,CAAA;IACvB,6DAAkB,CAAA;IAClB,iFAA4B,CAAA;IAC5B,mGAAqC,CAAA;IACrC,yEAAwB,CAAA;IACxB,+DAAmB,CAAA;IACnB,2DAAiB,CAAA;IACjB,6EAA0B,CAAA;IAC1B,uEAAuB,CAAA;IACvB,+EAA2B,CAAA;IAC3B,uEAAuB,CAAA;IACvB,+EAA2B,CAAA;IAC3B,mEAAqB,CAAA;IACrB,2DAAiB,CAAA;IACjB,2EAAyB,CAAA;IACzB,mEAAqB,CAAA;IACrB,yFAAgC,CAAA;AAClC,CAAC,EAjDW,UAAU,0BAAV,UAAU,QAiDrB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare enum IntegrationCategory {
|
|
2
|
+
'database' = "database",
|
|
3
|
+
'queue' = "queue",
|
|
4
|
+
'api' = "api",
|
|
5
|
+
'observability' = "observability",
|
|
6
|
+
'crm' = "crm",
|
|
7
|
+
'auth' = "auth",
|
|
8
|
+
'ai' = "ai"
|
|
9
|
+
}
|
|
10
|
+
export declare enum IntegrationType {
|
|
11
|
+
'built_in_db' = "built_in_db",
|
|
12
|
+
'mongo' = "mongo",
|
|
13
|
+
'mysql' = "mysql",
|
|
14
|
+
'mssql' = "mssql",
|
|
15
|
+
'postgres' = "postgres",
|
|
16
|
+
'cockroach' = "cockroach",
|
|
17
|
+
'api' = "api",
|
|
18
|
+
'graphql' = "graphql",
|
|
19
|
+
'snowflake' = "snowflake",
|
|
20
|
+
'datadog' = "datadog",
|
|
21
|
+
'newrelic' = "newrelic",
|
|
22
|
+
'auth0' = "auth0",
|
|
23
|
+
'jwt_rsa' = "jwt_rsa",
|
|
24
|
+
'jwt_hmac' = "jwt_hmac",
|
|
25
|
+
'ai_chatbot' = "ai_chatbot",
|
|
26
|
+
'cognito' = "cognito",
|
|
27
|
+
'okta' = "okta",
|
|
28
|
+
'descope' = "descope",
|
|
29
|
+
'kafka' = "kafka",
|
|
30
|
+
'confluent' = "confluent",
|
|
31
|
+
'built_in_queue' = "built_in_queue",
|
|
32
|
+
'algolia' = "algolia",
|
|
33
|
+
'elastic_observability' = "elastic_observability",
|
|
34
|
+
'elastic_search' = "elastic_search",
|
|
35
|
+
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
36
|
+
'sentry' = "sentry",
|
|
37
|
+
'sap_hana' = "sap_hana",
|
|
38
|
+
'salesforce_crm' = "salesforce_crm",
|
|
39
|
+
'documentdb' = "documentdb",
|
|
40
|
+
'dynamodb' = "dynamodb",
|
|
41
|
+
'cassandra' = "cassandra",
|
|
42
|
+
'clickhouse' = "clickhouse",
|
|
43
|
+
'alloydb' = "alloydb",
|
|
44
|
+
'spanner' = "spanner",
|
|
45
|
+
'db2' = "db2",
|
|
46
|
+
'mariadb' = "mariadb",
|
|
47
|
+
'oracledb' = "oracledb",
|
|
48
|
+
'pinot' = "pinot",
|
|
49
|
+
'redis' = "redis",
|
|
50
|
+
'xata' = "xata",
|
|
51
|
+
'azure_sql' = "azure_sql",
|
|
52
|
+
'azure_postgresql' = "azure_postgresql",
|
|
53
|
+
'azure_cosmosdb' = "azure_cosmosdb",
|
|
54
|
+
'firestore' = "firestore",
|
|
55
|
+
'bigquery' = "bigquery",
|
|
56
|
+
'cloudsql' = "cloudsql"
|
|
57
|
+
}
|
|
58
|
+
export declare enum IntegrationSchemaType {
|
|
59
|
+
'data' = "data",
|
|
60
|
+
'api' = "api",
|
|
61
|
+
'graphql' = "graphql"
|
|
62
|
+
}
|