@squidcloud/local-backend 1.0.157 → 1.0.159
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/package.json +1 -1
- package/dist/internal-common/src/code-executor.types.d.ts +0 -15
- package/dist/internal-common/src/code-executor.types.js +0 -3
- package/dist/internal-common/src/code-executor.types.js.map +0 -1
- package/dist/internal-common/src/local-dev.types.d.ts +0 -54
- package/dist/internal-common/src/local-dev.types.js +0 -11
- package/dist/internal-common/src/local-dev.types.js.map +0 -1
- package/dist/internal-common/src/public-types/ai-chatbot.context.d.ts +0 -13
- package/dist/internal-common/src/public-types/ai-chatbot.context.js +0 -20
- package/dist/internal-common/src/public-types/ai-chatbot.context.js.map +0 -1
- package/dist/internal-common/src/public-types/ai-chatbot.types.d.ts +0 -126
- package/dist/internal-common/src/public-types/ai-chatbot.types.js +0 -28
- package/dist/internal-common/src/public-types/ai-chatbot.types.js.map +0 -1
- package/dist/internal-common/src/public-types/api-call.context.d.ts +0 -13
- package/dist/internal-common/src/public-types/api-call.context.js +0 -17
- package/dist/internal-common/src/public-types/api-call.context.js.map +0 -1
- package/dist/internal-common/src/public-types/api.types.d.ts +0 -22
- package/dist/internal-common/src/public-types/api.types.js +0 -3
- package/dist/internal-common/src/public-types/api.types.js.map +0 -1
- package/dist/internal-common/src/public-types/application.types.d.ts +0 -199
- package/dist/internal-common/src/public-types/application.types.js +0 -90
- package/dist/internal-common/src/public-types/application.types.js.map +0 -1
- package/dist/internal-common/src/public-types/backend-run.types.d.ts +0 -52
- package/dist/internal-common/src/public-types/backend-run.types.js +0 -28
- package/dist/internal-common/src/public-types/backend-run.types.js.map +0 -1
- package/dist/internal-common/src/public-types/bundle-api.types.d.ts +0 -53
- package/dist/internal-common/src/public-types/bundle-api.types.js +0 -3
- package/dist/internal-common/src/public-types/bundle-api.types.js.map +0 -1
- package/dist/internal-common/src/public-types/bundle-data.types.d.ts +0 -75
- package/dist/internal-common/src/public-types/bundle-data.types.js +0 -3
- package/dist/internal-common/src/public-types/bundle-data.types.js.map +0 -1
- package/dist/internal-common/src/public-types/communication.types.d.ts +0 -20
- package/dist/internal-common/src/public-types/communication.types.js +0 -42
- package/dist/internal-common/src/public-types/communication.types.js.map +0 -1
- package/dist/internal-common/src/public-types/context.types.d.ts +0 -24
- package/dist/internal-common/src/public-types/context.types.js +0 -3
- package/dist/internal-common/src/public-types/context.types.js.map +0 -1
- package/dist/internal-common/src/public-types/distributed-lock.context.d.ts +0 -4
- package/dist/internal-common/src/public-types/distributed-lock.context.js +0 -10
- package/dist/internal-common/src/public-types/distributed-lock.context.js.map +0 -1
- package/dist/internal-common/src/public-types/document.types.d.ts +0 -32
- package/dist/internal-common/src/public-types/document.types.js +0 -51
- package/dist/internal-common/src/public-types/document.types.js.map +0 -1
- package/dist/internal-common/src/public-types/graphql.context.d.ts +0 -14
- package/dist/internal-common/src/public-types/graphql.context.js +0 -13
- package/dist/internal-common/src/public-types/graphql.context.js.map +0 -1
- package/dist/internal-common/src/public-types/graphql.types.d.ts +0 -11
- package/dist/internal-common/src/public-types/graphql.types.js +0 -35
- package/dist/internal-common/src/public-types/graphql.types.js.map +0 -1
- package/dist/internal-common/src/public-types/http-status.enum.d.ts +0 -50
- package/dist/internal-common/src/public-types/http-status.enum.js +0 -55
- package/dist/internal-common/src/public-types/http-status.enum.js.map +0 -1
- package/dist/internal-common/src/public-types/integration-types.d.ts +0 -57
- package/dist/internal-common/src/public-types/integration-types.js +0 -64
- package/dist/internal-common/src/public-types/integration-types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +0 -32
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js +0 -3
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/api.types.d.ts +0 -81
- package/dist/internal-common/src/public-types/integrations/api.types.js +0 -3
- package/dist/internal-common/src/public-types/integrations/api.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/auth.types.d.ts +0 -40
- package/dist/internal-common/src/public-types/integrations/auth.types.js +0 -3
- package/dist/internal-common/src/public-types/integrations/auth.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/database.types.d.ts +0 -275
- package/dist/internal-common/src/public-types/integrations/database.types.js +0 -3
- package/dist/internal-common/src/public-types/integrations/database.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/observability.types.d.ts +0 -24
- package/dist/internal-common/src/public-types/integrations/observability.types.js +0 -24
- package/dist/internal-common/src/public-types/integrations/observability.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/schemas.d.ts +0 -73
- package/dist/internal-common/src/public-types/integrations/schemas.js +0 -42
- package/dist/internal-common/src/public-types/integrations/schemas.js.map +0 -1
- package/dist/internal-common/src/public-types/logger.types.d.ts +0 -21
- package/dist/internal-common/src/public-types/logger.types.js +0 -12
- package/dist/internal-common/src/public-types/logger.types.js.map +0 -1
- package/dist/internal-common/src/public-types/mutation.context.d.ts +0 -13
- package/dist/internal-common/src/public-types/mutation.context.js +0 -27
- package/dist/internal-common/src/public-types/mutation.context.js.map +0 -1
- package/dist/internal-common/src/public-types/mutation.types.d.ts +0 -63
- package/dist/internal-common/src/public-types/mutation.types.js +0 -143
- package/dist/internal-common/src/public-types/mutation.types.js.map +0 -1
- package/dist/internal-common/src/public-types/native-query.context.d.ts +0 -7
- package/dist/internal-common/src/public-types/native-query.context.js +0 -12
- package/dist/internal-common/src/public-types/native-query.context.js.map +0 -1
- package/dist/internal-common/src/public-types/openapi.types.d.ts +0 -26
- package/dist/internal-common/src/public-types/openapi.types.js +0 -3
- package/dist/internal-common/src/public-types/openapi.types.js.map +0 -1
- package/dist/internal-common/src/public-types/query-context.d.ts +0 -47
- package/dist/internal-common/src/public-types/query-context.js +0 -160
- package/dist/internal-common/src/public-types/query-context.js.map +0 -1
- package/dist/internal-common/src/public-types/query.types.d.ts +0 -86
- package/dist/internal-common/src/public-types/query.types.js +0 -98
- package/dist/internal-common/src/public-types/query.types.js.map +0 -1
- package/dist/internal-common/src/public-types/secret.types.d.ts +0 -68
- package/dist/internal-common/src/public-types/secret.types.js +0 -6
- package/dist/internal-common/src/public-types/secret.types.js.map +0 -1
- package/dist/internal-common/src/public-types/socket.types.d.ts +0 -126
- package/dist/internal-common/src/public-types/socket.types.js +0 -10
- package/dist/internal-common/src/public-types/socket.types.js.map +0 -1
- package/dist/internal-common/src/public-types/types.d.ts +0 -21
- package/dist/internal-common/src/public-types/types.js +0 -3
- package/dist/internal-common/src/public-types/types.js.map +0 -1
- package/dist/internal-common/src/schema/schema.types.d.ts +0 -30
- package/dist/internal-common/src/schema/schema.types.js +0 -174
- package/dist/internal-common/src/schema/schema.types.js.map +0 -1
- package/dist/internal-common/src/types/openapi-response.d.ts +0 -6
- package/dist/internal-common/src/types/openapi-response.js +0 -3
- package/dist/internal-common/src/types/openapi-response.js.map +0 -1
- package/dist/internal-common/src/types/security-internal.types.d.ts +0 -20
- package/dist/internal-common/src/types/security-internal.types.js +0 -3
- package/dist/internal-common/src/types/security-internal.types.js.map +0 -1
- package/dist/internal-common/src/utils/assert.d.ts +0 -3
- package/dist/internal-common/src/utils/assert.js +0 -15
- package/dist/internal-common/src/utils/assert.js.map +0 -1
- package/dist/internal-common/src/utils/backend-transforms.d.ts +0 -3
- package/dist/internal-common/src/utils/backend-transforms.js +0 -91
- package/dist/internal-common/src/utils/backend-transforms.js.map +0 -1
- package/dist/internal-common/src/utils/global.utils.d.ts +0 -11
- package/dist/internal-common/src/utils/global.utils.js +0 -51
- package/dist/internal-common/src/utils/global.utils.js.map +0 -1
- package/dist/internal-common/src/utils/http.d.ts +0 -2
- package/dist/internal-common/src/utils/http.js +0 -54
- package/dist/internal-common/src/utils/http.js.map +0 -1
- package/dist/internal-common/src/utils/object.d.ts +0 -5
- package/dist/internal-common/src/utils/object.js +0 -76
- package/dist/internal-common/src/utils/object.js.map +0 -1
- package/dist/internal-common/src/utils/serialization.d.ts +0 -5
- package/dist/internal-common/src/utils/serialization.js +0 -74
- package/dist/internal-common/src/utils/serialization.js.map +0 -1
- package/dist/internal-common/src/utils/validation.d.ts +0 -19
- package/dist/internal-common/src/utils/validation.js +0 -210
- package/dist/internal-common/src/utils/validation.js.map +0 -1
- package/dist/internal-common/src/websocket.impl.d.ts +0 -21
- package/dist/internal-common/src/websocket.impl.js +0 -80
- package/dist/internal-common/src/websocket.impl.js.map +0 -1
- package/dist/local-backend/openapi-template.hbs +0 -1
- package/dist/local-backend/package.json +0 -54
- package/dist/local-backend/src/index.d.ts +0 -4
- package/dist/local-backend/src/index.js.map +0 -1
- package/dist/local-backend/src/local-backend-socket.service.d.ts +0 -22
- package/dist/local-backend/src/local-backend-socket.service.js +0 -212
- package/dist/local-backend/src/local-backend-socket.service.js.map +0 -1
- package/dist/local-backend/src/local-backend.app.d.ts +0 -2
- package/dist/local-backend/src/local-backend.app.js +0 -26
- package/dist/local-backend/src/local-backend.app.js.map +0 -1
- package/dist/local-backend/src/local-backend.controller.d.ts +0 -8
- package/dist/local-backend/src/local-backend.controller.js +0 -49
- package/dist/local-backend/src/local-backend.controller.js.map +0 -1
- package/dist/local-backend/src/local-backend.module.d.ts +0 -8
- package/dist/local-backend/src/local-backend.module.js +0 -52
- package/dist/local-backend/src/local-backend.module.js.map +0 -1
- package/dist/local-backend/src/local-backend.service.d.ts +0 -17
- package/dist/local-backend/src/local-backend.service.js +0 -175
- package/dist/local-backend/src/local-backend.service.js.map +0 -1
- package/dist/local-backend/src/utils/shell-runner.d.ts +0 -4
- package/dist/local-backend/src/utils/shell-runner.js +0 -28
- package/dist/local-backend/src/utils/shell-runner.js.map +0 -1
- package/dist/local-backend/tsoa.json +0 -15
- package/dist/tsconfig.build.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ServiceFunctionName } from './public-types/bundle-data.types';
|
|
2
|
-
import { ExecuteFunctionAnnotationType, RunConfiguration, RunSecrets } from './public-types/backend-run.types';
|
|
3
|
-
import { Auth, RunContext } from './public-types/context.types';
|
|
4
|
-
export type SingleExecuteFunctionRequest = {
|
|
5
|
-
functionName: ServiceFunctionName;
|
|
6
|
-
params: Array<any>;
|
|
7
|
-
};
|
|
8
|
-
export interface BatchRunConfigurationRequest {
|
|
9
|
-
configuration: RunConfiguration;
|
|
10
|
-
context: RunContext;
|
|
11
|
-
auth: Auth | undefined;
|
|
12
|
-
requests: Array<SingleExecuteFunctionRequest>;
|
|
13
|
-
secrets?: RunSecrets;
|
|
14
|
-
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-executor.types.js","sourceRoot":"","sources":["../../../../internal-common/src/code-executor.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BatchRunConfigurationRequest } from './code-executor.types';
|
|
2
|
-
import { LocalBackendData } from './public-types/bundle-data.types';
|
|
3
|
-
import { RunSecrets } from './public-types/backend-run.types';
|
|
4
|
-
import { LogLevel } from './public-types/logger.types';
|
|
5
|
-
export type MessageFromDeveloperType = 'bundleData' | 'response';
|
|
6
|
-
interface BaseMessageFromDeveloper {
|
|
7
|
-
type: MessageFromDeveloperType;
|
|
8
|
-
payload?: unknown;
|
|
9
|
-
requestId: string;
|
|
10
|
-
}
|
|
11
|
-
export type MessageFromDeveloper = ResponseMessageFromDeveloper | BundleDataMessageFromDeveloper;
|
|
12
|
-
export interface ResponseMessageFromDeveloper extends BaseMessageFromDeveloper {
|
|
13
|
-
type: 'response';
|
|
14
|
-
payload: any;
|
|
15
|
-
}
|
|
16
|
-
export interface BundleDataMessageFromDeveloper extends BaseMessageFromDeveloper {
|
|
17
|
-
type: 'bundleData';
|
|
18
|
-
payload: LocalBackendData;
|
|
19
|
-
}
|
|
20
|
-
export type MessageToDeveloperType = 'executeFunction' | 'localBackendData' | 'logMessage';
|
|
21
|
-
interface BaseMessageToDeveloper {
|
|
22
|
-
type: MessageToDeveloperType;
|
|
23
|
-
payload: unknown;
|
|
24
|
-
requestId: string;
|
|
25
|
-
}
|
|
26
|
-
export type MessageToDeveloper = ExecuteFunctionMessageToDeveloper | LocalBackendDataMessageToDeveloper | LogMessageToDeveloper;
|
|
27
|
-
export interface ExecuteFunctionMessageToDeveloper extends BaseMessageToDeveloper {
|
|
28
|
-
type: 'executeFunction';
|
|
29
|
-
payload: BatchRunConfigurationRequest;
|
|
30
|
-
}
|
|
31
|
-
export interface LocalBackendDataMessageToDeveloper extends BaseMessageToDeveloper {
|
|
32
|
-
type: 'localBackendData';
|
|
33
|
-
payload: {
|
|
34
|
-
secrets: RunSecrets;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export interface LogMessageToDeveloper extends BaseMessageToDeveloper {
|
|
38
|
-
type: 'logMessage';
|
|
39
|
-
payload: LogRequest;
|
|
40
|
-
}
|
|
41
|
-
export declare enum LogType {
|
|
42
|
-
ALL = "ALL",
|
|
43
|
-
QUERY = "QUERY",
|
|
44
|
-
MUTATIONS = "MUTATIONS",
|
|
45
|
-
AI = "AI"
|
|
46
|
-
}
|
|
47
|
-
export interface LogRequest {
|
|
48
|
-
tag: string;
|
|
49
|
-
type: LogType;
|
|
50
|
-
timestamp: number;
|
|
51
|
-
level: LogLevel;
|
|
52
|
-
message: string;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogType = void 0;
|
|
4
|
-
var LogType;
|
|
5
|
-
(function (LogType) {
|
|
6
|
-
LogType["ALL"] = "ALL";
|
|
7
|
-
LogType["QUERY"] = "QUERY";
|
|
8
|
-
LogType["MUTATIONS"] = "MUTATIONS";
|
|
9
|
-
LogType["AI"] = "AI";
|
|
10
|
-
})(LogType || (exports.LogType = LogType = {}));
|
|
11
|
-
//# sourceMappingURL=local-dev.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-dev.types.js","sourceRoot":"","sources":["../../../../internal-common/src/local-dev.types.ts"],"names":[],"mappings":";;;AA8DA,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,sBAAW,CAAA;IACX,0BAAe,CAAA;IACf,kCAAuB,CAAA;IACvB,oBAAS,CAAA;AACX,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AiChatbotChatRequest, AiChatbotMutateRequest, AiChatbotMutationType, AiChatbotResourceType } from './ai-chatbot.types';
|
|
2
|
-
export declare class AiChatbotChatContext {
|
|
3
|
-
readonly prompt: string;
|
|
4
|
-
readonly profileId: string;
|
|
5
|
-
constructor(request: AiChatbotChatRequest);
|
|
6
|
-
}
|
|
7
|
-
export declare class AiChatbotMutationContext {
|
|
8
|
-
readonly type: AiChatbotMutationType;
|
|
9
|
-
readonly resource: AiChatbotResourceType;
|
|
10
|
-
readonly profileId: string;
|
|
11
|
-
readonly payload: any;
|
|
12
|
-
constructor(request: AiChatbotMutateRequest);
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiChatbotMutationContext = exports.AiChatbotChatContext = void 0;
|
|
4
|
-
class AiChatbotChatContext {
|
|
5
|
-
constructor(request) {
|
|
6
|
-
this.profileId = request.profileId;
|
|
7
|
-
this.prompt = request.prompt;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.AiChatbotChatContext = AiChatbotChatContext;
|
|
11
|
-
class AiChatbotMutationContext {
|
|
12
|
-
constructor(request) {
|
|
13
|
-
this.profileId = request.profileId;
|
|
14
|
-
this.type = request.type;
|
|
15
|
-
this.resource = request.resource;
|
|
16
|
-
this.payload = request.payload;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.AiChatbotMutationContext = AiChatbotMutationContext;
|
|
20
|
-
//# sourceMappingURL=ai-chatbot.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chatbot.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.context.ts"],"names":[],"mappings":";;;AAOA,MAAa,oBAAoB;IAO/B,YAAY,OAA6B;QACvC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC;CACF;AAXD,oDAWC;AAGD,MAAa,wBAAwB;IASnC,YAAY,OAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACjC,CAAC;CACF;AAfD,4DAeC"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { ClientRequestId, IntegrationId } from './communication.types';
|
|
2
|
-
import { AiChatbotProfileMetadata } from './integrations/ai_chatbot.types';
|
|
3
|
-
export declare const AI_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "claude-2", "gpt-4-1106-preview"];
|
|
4
|
-
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
5
|
-
export type ApiKeySource = 'user' | 'system';
|
|
6
|
-
type ModelDataType = {
|
|
7
|
-
tokens: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const AiModelData: Record<AiModelName, ModelDataType>;
|
|
10
|
-
export interface BaseAiChatbotRequest {
|
|
11
|
-
profileId: string;
|
|
12
|
-
integrationId: IntegrationId;
|
|
13
|
-
}
|
|
14
|
-
export interface AiChatbotChatRequest extends BaseAiChatbotRequest {
|
|
15
|
-
clientRequestId: ClientRequestId;
|
|
16
|
-
prompt: string;
|
|
17
|
-
options?: AiChatbotChatOptions;
|
|
18
|
-
}
|
|
19
|
-
export interface AskQuestionInternalRequest {
|
|
20
|
-
model: AiModelName;
|
|
21
|
-
prompt: string;
|
|
22
|
-
temperature?: number;
|
|
23
|
-
responseFormat?: OpenAiResponseFormat;
|
|
24
|
-
}
|
|
25
|
-
export interface AskQuestionInternalResponse {
|
|
26
|
-
answer: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ContextSizeRequest {
|
|
29
|
-
appId: string;
|
|
30
|
-
integrationId: string;
|
|
31
|
-
profileId: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ContextSizeResponse {
|
|
34
|
-
sizeBytes: number;
|
|
35
|
-
}
|
|
36
|
-
export interface BaseAiChatbotMutateRequest extends BaseAiChatbotRequest {
|
|
37
|
-
type: AiChatbotMutationType;
|
|
38
|
-
resource: AiChatbotResourceType;
|
|
39
|
-
}
|
|
40
|
-
export interface AiChatbotInsertProfileRequest extends BaseAiChatbotMutateRequest {
|
|
41
|
-
type: 'insert';
|
|
42
|
-
resource: 'profile';
|
|
43
|
-
payload: Omit<AiChatbotProfileMetadata, 'instructions'>;
|
|
44
|
-
}
|
|
45
|
-
export interface AiChatbotInsertInstructionRequest extends BaseAiChatbotMutateRequest {
|
|
46
|
-
type: 'insert';
|
|
47
|
-
resource: 'instruction';
|
|
48
|
-
payload: {
|
|
49
|
-
id: string;
|
|
50
|
-
instruction: string;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
54
|
-
interface AiChatbotContextBase {
|
|
55
|
-
type: AiChatbotContextType;
|
|
56
|
-
data: string;
|
|
57
|
-
}
|
|
58
|
-
export interface AiChatbotTextContext extends AiChatbotContextBase {
|
|
59
|
-
type: 'text';
|
|
60
|
-
}
|
|
61
|
-
export interface AiChatbotUrlContext extends AiChatbotContextBase {
|
|
62
|
-
type: 'url';
|
|
63
|
-
}
|
|
64
|
-
export interface AiChatbotFileContext extends AiChatbotContextBase {
|
|
65
|
-
type: 'file';
|
|
66
|
-
}
|
|
67
|
-
export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
|
|
68
|
-
export interface AiChatbotInsertContextRequest extends BaseAiChatbotMutateRequest {
|
|
69
|
-
type: 'insert';
|
|
70
|
-
resource: 'context';
|
|
71
|
-
payload: {
|
|
72
|
-
id: string;
|
|
73
|
-
title: string;
|
|
74
|
-
context: AiChatbotContext;
|
|
75
|
-
file?: any;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
export interface AiChatbotUpdateProfileRequest extends BaseAiChatbotMutateRequest {
|
|
79
|
-
type: 'update';
|
|
80
|
-
resource: 'profile';
|
|
81
|
-
payload: Partial<Omit<AiChatbotProfileMetadata, 'instructions'>>;
|
|
82
|
-
}
|
|
83
|
-
export interface AiChatbotUpdateInstructionRequest extends BaseAiChatbotMutateRequest {
|
|
84
|
-
type: 'update';
|
|
85
|
-
resource: 'instruction';
|
|
86
|
-
payload: {
|
|
87
|
-
id: string;
|
|
88
|
-
instruction: string;
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
export type OpenAiResponseFormat = 'text' | 'json_object';
|
|
92
|
-
export interface AiChatbotChatOptions {
|
|
93
|
-
maxTokens?: number;
|
|
94
|
-
chatId?: string;
|
|
95
|
-
disableHistory?: boolean;
|
|
96
|
-
includeReference?: boolean;
|
|
97
|
-
responseFormat?: OpenAiResponseFormat;
|
|
98
|
-
}
|
|
99
|
-
export interface AiChatbotUpdateContextRequest extends BaseAiChatbotMutateRequest {
|
|
100
|
-
type: 'update';
|
|
101
|
-
resource: 'context';
|
|
102
|
-
payload: {
|
|
103
|
-
id: string;
|
|
104
|
-
title?: string;
|
|
105
|
-
context?: AiChatbotContext;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export interface AiChatbotDeleteRequest extends BaseAiChatbotMutateRequest {
|
|
109
|
-
type: 'delete';
|
|
110
|
-
payload: {
|
|
111
|
-
id?: string;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
export type AiChatbotInsertRequest = AiChatbotInsertProfileRequest | AiChatbotInsertInstructionRequest | AiChatbotInsertContextRequest;
|
|
115
|
-
export type AiChatbotUpdateRequest = AiChatbotUpdateProfileRequest | AiChatbotUpdateInstructionRequest | AiChatbotUpdateContextRequest;
|
|
116
|
-
export type AiChatbotMutateRequest = AiChatbotInsertRequest | AiChatbotUpdateRequest | AiChatbotDeleteRequest;
|
|
117
|
-
export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
|
|
118
|
-
export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
|
|
119
|
-
export interface AiChatbotMetricTag extends Record<string, string> {
|
|
120
|
-
appId: string;
|
|
121
|
-
integrationId: string;
|
|
122
|
-
profileId: string;
|
|
123
|
-
model: AiModelName;
|
|
124
|
-
apiKeySource: ApiKeySource;
|
|
125
|
-
}
|
|
126
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiModelData = exports.AI_MODEL_NAMES = void 0;
|
|
4
|
-
exports.AI_MODEL_NAMES = [
|
|
5
|
-
'gpt-3.5-turbo',
|
|
6
|
-
'gpt-3.5-turbo-1106',
|
|
7
|
-
'gpt-4',
|
|
8
|
-
'claude-2',
|
|
9
|
-
'gpt-4-1106-preview',
|
|
10
|
-
];
|
|
11
|
-
exports.AiModelData = {
|
|
12
|
-
'gpt-4': {
|
|
13
|
-
tokens: 8192,
|
|
14
|
-
},
|
|
15
|
-
'gpt-3.5-turbo': {
|
|
16
|
-
tokens: 4096,
|
|
17
|
-
},
|
|
18
|
-
'gpt-3.5-turbo-1106': {
|
|
19
|
-
tokens: 16385,
|
|
20
|
-
},
|
|
21
|
-
'claude-2': {
|
|
22
|
-
tokens: 100000,
|
|
23
|
-
},
|
|
24
|
-
'gpt-4-1106-preview': {
|
|
25
|
-
tokens: 8192,
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=ai-chatbot.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chatbot.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.types.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B,eAAe;IACf,oBAAoB;IACpB,OAAO;IACP,UAAU;IACV,oBAAoB;CACZ,CAAC;AAWE,QAAA,WAAW,GAAuC;IAC7D,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;KACb;IACD,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;KACb;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,KAAM;KACf;IACD,UAAU,EAAE;QACV,MAAM,EAAE,MAAO;KAChB;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,IAAI;KACb;CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ApiHeaders, SecureApiRequest } from './api.types';
|
|
2
|
-
import { ApiEndpointId, HttpMethod } from './integrations/api.types';
|
|
3
|
-
export declare class ApiCallContext {
|
|
4
|
-
readonly endpointId: ApiEndpointId;
|
|
5
|
-
readonly url: string;
|
|
6
|
-
readonly method: HttpMethod;
|
|
7
|
-
readonly headers: ApiHeaders;
|
|
8
|
-
readonly body: Record<string, any>;
|
|
9
|
-
readonly queryParams: Record<string, string | number | boolean>;
|
|
10
|
-
readonly pathParams: Record<string, string>;
|
|
11
|
-
readonly serverUrlOverride: string | undefined;
|
|
12
|
-
constructor(apiRequest: SecureApiRequest);
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiCallContext = void 0;
|
|
4
|
-
class ApiCallContext {
|
|
5
|
-
constructor(apiRequest) {
|
|
6
|
-
this.endpointId = apiRequest.endpointId;
|
|
7
|
-
this.url = apiRequest.url;
|
|
8
|
-
this.method = apiRequest.method;
|
|
9
|
-
this.headers = apiRequest.headers;
|
|
10
|
-
this.body = apiRequest.body;
|
|
11
|
-
this.queryParams = apiRequest.queryParams;
|
|
12
|
-
this.pathParams = apiRequest.pathParams;
|
|
13
|
-
this.serverUrlOverride = apiRequest.serverUrlOverride;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ApiCallContext = ApiCallContext;
|
|
17
|
-
//# sourceMappingURL=api-call.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-call.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/api-call.context.ts"],"names":[],"mappings":";;;AAIA,MAAa,cAAc;IAWzB,YAAY,UAA4B;QACtC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC;IACxD,CAAC;CACF;AArBD,wCAqBC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IntegrationId } from './communication.types';
|
|
2
|
-
import { ApiEndpointId, HttpMethod } from './integrations/api.types';
|
|
3
|
-
export type ApiHeaders = Record<string, string | number | boolean>;
|
|
4
|
-
export type ApiQueryParams = Record<string, string | number | boolean>;
|
|
5
|
-
export interface CallApiRequest {
|
|
6
|
-
integrationId: IntegrationId;
|
|
7
|
-
endpointId: ApiEndpointId;
|
|
8
|
-
serverUrlOverride?: string;
|
|
9
|
-
request: Record<string, any>;
|
|
10
|
-
}
|
|
11
|
-
export interface ExtractedApiParams {
|
|
12
|
-
headers: ApiHeaders;
|
|
13
|
-
queryParams: ApiQueryParams;
|
|
14
|
-
body: Record<string, any>;
|
|
15
|
-
pathParams: Record<string, string>;
|
|
16
|
-
}
|
|
17
|
-
export interface SecureApiRequest extends ExtractedApiParams {
|
|
18
|
-
endpointId: ApiEndpointId;
|
|
19
|
-
url: string;
|
|
20
|
-
method: HttpMethod;
|
|
21
|
-
serverUrlOverride: string | undefined;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/api.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { RunPermissions } from './backend-run.types';
|
|
2
|
-
import { ApplicationBundleData, ServiceFunctionName } from './bundle-data.types';
|
|
3
|
-
import { AppId, EnvironmentId, IntegrationId } from './communication.types';
|
|
4
|
-
import { CollectionName } from './document.types';
|
|
5
|
-
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
|
|
6
|
-
import { IntegrationType } from './integration-types';
|
|
7
|
-
export type WebhookId = string;
|
|
8
|
-
export type TriggerId = string;
|
|
9
|
-
export type SchedulerId = string;
|
|
10
|
-
export type CronExpressionString = `${string} ${string} ${string} ${string} ${string}` | `${string} ${string} ${string} ${string}`;
|
|
11
|
-
export declare enum CronExpression {
|
|
12
|
-
EVERY_SECOND = "* * * * * *",
|
|
13
|
-
EVERY_5_SECONDS = "*/5 * * * * *",
|
|
14
|
-
EVERY_10_SECONDS = "*/10 * * * * *",
|
|
15
|
-
EVERY_30_SECONDS = "*/30 * * * * *",
|
|
16
|
-
EVERY_MINUTE = "*/1 * * * *",
|
|
17
|
-
EVERY_5_MINUTES = "0 */5 * * * *",
|
|
18
|
-
EVERY_10_MINUTES = "0 */10 * * * *",
|
|
19
|
-
EVERY_30_MINUTES = "0 */30 * * * *",
|
|
20
|
-
EVERY_HOUR = "0 0-23/1 * * *",
|
|
21
|
-
EVERY_2_HOURS = "0 0-23/2 * * *",
|
|
22
|
-
EVERY_3_HOURS = "0 0-23/3 * * *",
|
|
23
|
-
EVERY_4_HOURS = "0 0-23/4 * * *",
|
|
24
|
-
EVERY_5_HOURS = "0 0-23/5 * * *",
|
|
25
|
-
EVERY_6_HOURS = "0 0-23/6 * * *",
|
|
26
|
-
EVERY_7_HOURS = "0 0-23/7 * * *",
|
|
27
|
-
EVERY_8_HOURS = "0 0-23/8 * * *",
|
|
28
|
-
EVERY_9_HOURS = "0 0-23/9 * * *",
|
|
29
|
-
EVERY_10_HOURS = "0 0-23/10 * * *",
|
|
30
|
-
EVERY_11_HOURS = "0 0-23/11 * * *",
|
|
31
|
-
EVERY_12_HOURS = "0 0-23/12 * * *",
|
|
32
|
-
EVERY_DAY_AT_1AM = "0 01 * * *",
|
|
33
|
-
EVERY_DAY_AT_2AM = "0 02 * * *",
|
|
34
|
-
EVERY_DAY_AT_3AM = "0 03 * * *",
|
|
35
|
-
EVERY_DAY_AT_4AM = "0 04 * * *",
|
|
36
|
-
EVERY_DAY_AT_5AM = "0 05 * * *",
|
|
37
|
-
EVERY_DAY_AT_6AM = "0 06 * * *",
|
|
38
|
-
EVERY_DAY_AT_7AM = "0 07 * * *",
|
|
39
|
-
EVERY_DAY_AT_8AM = "0 08 * * *",
|
|
40
|
-
EVERY_DAY_AT_9AM = "0 09 * * *",
|
|
41
|
-
EVERY_DAY_AT_10AM = "0 10 * * *",
|
|
42
|
-
EVERY_DAY_AT_11AM = "0 11 * * *",
|
|
43
|
-
EVERY_DAY_AT_NOON = "0 12 * * *",
|
|
44
|
-
EVERY_DAY_AT_1PM = "0 13 * * *",
|
|
45
|
-
EVERY_DAY_AT_2PM = "0 14 * * *",
|
|
46
|
-
EVERY_DAY_AT_3PM = "0 15 * * *",
|
|
47
|
-
EVERY_DAY_AT_4PM = "0 16 * * *",
|
|
48
|
-
EVERY_DAY_AT_5PM = "0 17 * * *",
|
|
49
|
-
EVERY_DAY_AT_6PM = "0 18 * * *",
|
|
50
|
-
EVERY_DAY_AT_7PM = "0 19 * * *",
|
|
51
|
-
EVERY_DAY_AT_8PM = "0 20 * * *",
|
|
52
|
-
EVERY_DAY_AT_9PM = "0 21 * * *",
|
|
53
|
-
EVERY_DAY_AT_10PM = "0 22 * * *",
|
|
54
|
-
EVERY_DAY_AT_11PM = "0 23 * * *",
|
|
55
|
-
EVERY_DAY_AT_MIDNIGHT = "0 0 * * *",
|
|
56
|
-
EVERY_WEEK = "0 0 * * 7",
|
|
57
|
-
EVERY_WEEKDAY = "0 0 * * 1-5",
|
|
58
|
-
EVERY_WEEKEND = "0 0 * * 6,7",
|
|
59
|
-
EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
|
|
60
|
-
EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
|
|
61
|
-
EVERY_2ND_HOUR = "0 */2 * * *",
|
|
62
|
-
EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
|
|
63
|
-
EVERY_2ND_MONTH = "0 0 1 */2 *",
|
|
64
|
-
EVERY_QUARTER = "0 0 1 */3 *",
|
|
65
|
-
EVERY_6_MONTHS = "0 0 1 */6 *",
|
|
66
|
-
EVERY_YEAR = "0 0 1 1 *",
|
|
67
|
-
EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM = "0 */30 9-17 * * *",
|
|
68
|
-
EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM = "0 */30 9-18 * * *",
|
|
69
|
-
EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM = "0 */30 10-19 * * *",
|
|
70
|
-
MONDAY_TO_FRIDAY_AT_1AM = "0 0 01 * * 1-5",
|
|
71
|
-
MONDAY_TO_FRIDAY_AT_2AM = "0 0 02 * * 1-5",
|
|
72
|
-
MONDAY_TO_FRIDAY_AT_3AM = "0 0 03 * * 1-5",
|
|
73
|
-
MONDAY_TO_FRIDAY_AT_4AM = "0 0 04 * * 1-5",
|
|
74
|
-
MONDAY_TO_FRIDAY_AT_5AM = "0 0 05 * * 1-5",
|
|
75
|
-
MONDAY_TO_FRIDAY_AT_6AM = "0 0 06 * * 1-5",
|
|
76
|
-
MONDAY_TO_FRIDAY_AT_7AM = "0 0 07 * * 1-5",
|
|
77
|
-
MONDAY_TO_FRIDAY_AT_8AM = "0 0 08 * * 1-5",
|
|
78
|
-
MONDAY_TO_FRIDAY_AT_9AM = "0 0 09 * * 1-5",
|
|
79
|
-
MONDAY_TO_FRIDAY_AT_09_30AM = "0 30 09 * * 1-5",
|
|
80
|
-
MONDAY_TO_FRIDAY_AT_10AM = "0 0 10 * * 1-5",
|
|
81
|
-
MONDAY_TO_FRIDAY_AT_11AM = "0 0 11 * * 1-5",
|
|
82
|
-
MONDAY_TO_FRIDAY_AT_11_30AM = "0 30 11 * * 1-5",
|
|
83
|
-
MONDAY_TO_FRIDAY_AT_12PM = "0 0 12 * * 1-5",
|
|
84
|
-
MONDAY_TO_FRIDAY_AT_1PM = "0 0 13 * * 1-5",
|
|
85
|
-
MONDAY_TO_FRIDAY_AT_2PM = "0 0 14 * * 1-5",
|
|
86
|
-
MONDAY_TO_FRIDAY_AT_3PM = "0 0 15 * * 1-5",
|
|
87
|
-
MONDAY_TO_FRIDAY_AT_4PM = "0 0 16 * * 1-5",
|
|
88
|
-
MONDAY_TO_FRIDAY_AT_5PM = "0 0 17 * * 1-5",
|
|
89
|
-
MONDAY_TO_FRIDAY_AT_6PM = "0 0 18 * * 1-5",
|
|
90
|
-
MONDAY_TO_FRIDAY_AT_7PM = "0 0 19 * * 1-5",
|
|
91
|
-
MONDAY_TO_FRIDAY_AT_8PM = "0 0 20 * * 1-5",
|
|
92
|
-
MONDAY_TO_FRIDAY_AT_9PM = "0 0 21 * * 1-5",
|
|
93
|
-
MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
|
|
94
|
-
MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
|
|
95
|
-
}
|
|
96
|
-
export type OpenIdProviderType = 'auth0';
|
|
97
|
-
export type CodeUrl = string;
|
|
98
|
-
export interface TriggerConfig {
|
|
99
|
-
integrationId: IntegrationId;
|
|
100
|
-
collectionName: CollectionName;
|
|
101
|
-
functionName: ServiceFunctionName;
|
|
102
|
-
}
|
|
103
|
-
export interface SchedulerConfig {
|
|
104
|
-
functionName: ServiceFunctionName;
|
|
105
|
-
cronExpression: string;
|
|
106
|
-
exclusive: boolean;
|
|
107
|
-
}
|
|
108
|
-
export interface WebhookConfig {
|
|
109
|
-
functionName: ServiceFunctionName;
|
|
110
|
-
}
|
|
111
|
-
export interface OpenIdProvider {
|
|
112
|
-
providerType: OpenIdProviderType;
|
|
113
|
-
clientId: string;
|
|
114
|
-
domain: string;
|
|
115
|
-
}
|
|
116
|
-
export interface Application {
|
|
117
|
-
appId: AppId;
|
|
118
|
-
organizationId: string;
|
|
119
|
-
creationDate: Date;
|
|
120
|
-
updateDate: Date;
|
|
121
|
-
allowedHosts: string[];
|
|
122
|
-
openIdProvider?: OpenIdProvider;
|
|
123
|
-
integrations: Record<IntegrationId, IntegrationConfig>;
|
|
124
|
-
codeUrl?: string;
|
|
125
|
-
bundleMetadata?: ApplicationBundleData;
|
|
126
|
-
archiveDate?: Date;
|
|
127
|
-
}
|
|
128
|
-
export interface Schema<T extends IntegrationSchema = any> {
|
|
129
|
-
appId: AppId;
|
|
130
|
-
integrationId: IntegrationId;
|
|
131
|
-
schema: T;
|
|
132
|
-
createdAt: Date;
|
|
133
|
-
updatedAt: Date;
|
|
134
|
-
}
|
|
135
|
-
export interface ApplicationInitDetails {
|
|
136
|
-
codeUrl: string;
|
|
137
|
-
codeUrlId: string;
|
|
138
|
-
permissions: RunPermissions;
|
|
139
|
-
}
|
|
140
|
-
export interface UpdateOpenIdProviderRequest {
|
|
141
|
-
openIdProvider: OpenIdProvider;
|
|
142
|
-
}
|
|
143
|
-
export interface CreateApplicationRequest {
|
|
144
|
-
organizationId: string;
|
|
145
|
-
}
|
|
146
|
-
export interface CreateApplicationResponse {
|
|
147
|
-
appId: AppId;
|
|
148
|
-
}
|
|
149
|
-
export interface DeleteIntegrationRequest {
|
|
150
|
-
integrationId: IntegrationId;
|
|
151
|
-
}
|
|
152
|
-
export interface UpdateAllowedHostsRequest {
|
|
153
|
-
allowedHosts: string[];
|
|
154
|
-
}
|
|
155
|
-
export interface CreateEnvironmentRequest {
|
|
156
|
-
sourceAppId: AppId;
|
|
157
|
-
environmentId: EnvironmentId;
|
|
158
|
-
}
|
|
159
|
-
export interface UpdateApplicationCodeRequest {
|
|
160
|
-
appId: AppId;
|
|
161
|
-
openApiSpecStr?: string;
|
|
162
|
-
openApiControllersStr?: string;
|
|
163
|
-
}
|
|
164
|
-
interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
|
|
165
|
-
id: IntegrationId;
|
|
166
|
-
type: T;
|
|
167
|
-
config: Partial<C>;
|
|
168
|
-
}
|
|
169
|
-
type ConfigurationTypes = {
|
|
170
|
-
[K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
|
|
171
|
-
};
|
|
172
|
-
type UpsertIntegrationRequests = {
|
|
173
|
-
[K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
|
|
174
|
-
};
|
|
175
|
-
export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiChatbotIntegrationRequest | UpsertAuthIntegrationRequest;
|
|
176
|
-
export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
|
|
177
|
-
export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
|
|
178
|
-
export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
|
|
179
|
-
export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_chatbot];
|
|
180
|
-
export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
|
|
181
|
-
interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
|
|
182
|
-
id: IntegrationId;
|
|
183
|
-
type: T;
|
|
184
|
-
schema: S;
|
|
185
|
-
}
|
|
186
|
-
type SchemaTypes = {
|
|
187
|
-
[K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
|
|
188
|
-
};
|
|
189
|
-
type UpsertIntegrationSchemaRequests = {
|
|
190
|
-
[K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
|
|
191
|
-
};
|
|
192
|
-
export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
|
|
193
|
-
export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
|
|
194
|
-
export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
|
|
195
|
-
export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
|
|
196
|
-
export interface GetSchemaRequest {
|
|
197
|
-
integrationId: IntegrationId;
|
|
198
|
-
}
|
|
199
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CronExpression = void 0;
|
|
4
|
-
var CronExpression;
|
|
5
|
-
(function (CronExpression) {
|
|
6
|
-
CronExpression["EVERY_SECOND"] = "* * * * * *";
|
|
7
|
-
CronExpression["EVERY_5_SECONDS"] = "*/5 * * * * *";
|
|
8
|
-
CronExpression["EVERY_10_SECONDS"] = "*/10 * * * * *";
|
|
9
|
-
CronExpression["EVERY_30_SECONDS"] = "*/30 * * * * *";
|
|
10
|
-
CronExpression["EVERY_MINUTE"] = "*/1 * * * *";
|
|
11
|
-
CronExpression["EVERY_5_MINUTES"] = "0 */5 * * * *";
|
|
12
|
-
CronExpression["EVERY_10_MINUTES"] = "0 */10 * * * *";
|
|
13
|
-
CronExpression["EVERY_30_MINUTES"] = "0 */30 * * * *";
|
|
14
|
-
CronExpression["EVERY_HOUR"] = "0 0-23/1 * * *";
|
|
15
|
-
CronExpression["EVERY_2_HOURS"] = "0 0-23/2 * * *";
|
|
16
|
-
CronExpression["EVERY_3_HOURS"] = "0 0-23/3 * * *";
|
|
17
|
-
CronExpression["EVERY_4_HOURS"] = "0 0-23/4 * * *";
|
|
18
|
-
CronExpression["EVERY_5_HOURS"] = "0 0-23/5 * * *";
|
|
19
|
-
CronExpression["EVERY_6_HOURS"] = "0 0-23/6 * * *";
|
|
20
|
-
CronExpression["EVERY_7_HOURS"] = "0 0-23/7 * * *";
|
|
21
|
-
CronExpression["EVERY_8_HOURS"] = "0 0-23/8 * * *";
|
|
22
|
-
CronExpression["EVERY_9_HOURS"] = "0 0-23/9 * * *";
|
|
23
|
-
CronExpression["EVERY_10_HOURS"] = "0 0-23/10 * * *";
|
|
24
|
-
CronExpression["EVERY_11_HOURS"] = "0 0-23/11 * * *";
|
|
25
|
-
CronExpression["EVERY_12_HOURS"] = "0 0-23/12 * * *";
|
|
26
|
-
CronExpression["EVERY_DAY_AT_1AM"] = "0 01 * * *";
|
|
27
|
-
CronExpression["EVERY_DAY_AT_2AM"] = "0 02 * * *";
|
|
28
|
-
CronExpression["EVERY_DAY_AT_3AM"] = "0 03 * * *";
|
|
29
|
-
CronExpression["EVERY_DAY_AT_4AM"] = "0 04 * * *";
|
|
30
|
-
CronExpression["EVERY_DAY_AT_5AM"] = "0 05 * * *";
|
|
31
|
-
CronExpression["EVERY_DAY_AT_6AM"] = "0 06 * * *";
|
|
32
|
-
CronExpression["EVERY_DAY_AT_7AM"] = "0 07 * * *";
|
|
33
|
-
CronExpression["EVERY_DAY_AT_8AM"] = "0 08 * * *";
|
|
34
|
-
CronExpression["EVERY_DAY_AT_9AM"] = "0 09 * * *";
|
|
35
|
-
CronExpression["EVERY_DAY_AT_10AM"] = "0 10 * * *";
|
|
36
|
-
CronExpression["EVERY_DAY_AT_11AM"] = "0 11 * * *";
|
|
37
|
-
CronExpression["EVERY_DAY_AT_NOON"] = "0 12 * * *";
|
|
38
|
-
CronExpression["EVERY_DAY_AT_1PM"] = "0 13 * * *";
|
|
39
|
-
CronExpression["EVERY_DAY_AT_2PM"] = "0 14 * * *";
|
|
40
|
-
CronExpression["EVERY_DAY_AT_3PM"] = "0 15 * * *";
|
|
41
|
-
CronExpression["EVERY_DAY_AT_4PM"] = "0 16 * * *";
|
|
42
|
-
CronExpression["EVERY_DAY_AT_5PM"] = "0 17 * * *";
|
|
43
|
-
CronExpression["EVERY_DAY_AT_6PM"] = "0 18 * * *";
|
|
44
|
-
CronExpression["EVERY_DAY_AT_7PM"] = "0 19 * * *";
|
|
45
|
-
CronExpression["EVERY_DAY_AT_8PM"] = "0 20 * * *";
|
|
46
|
-
CronExpression["EVERY_DAY_AT_9PM"] = "0 21 * * *";
|
|
47
|
-
CronExpression["EVERY_DAY_AT_10PM"] = "0 22 * * *";
|
|
48
|
-
CronExpression["EVERY_DAY_AT_11PM"] = "0 23 * * *";
|
|
49
|
-
CronExpression["EVERY_DAY_AT_MIDNIGHT"] = "0 0 * * *";
|
|
50
|
-
CronExpression["EVERY_WEEK"] = "0 0 * * 7";
|
|
51
|
-
CronExpression["EVERY_WEEKDAY"] = "0 0 * * 1-5";
|
|
52
|
-
CronExpression["EVERY_WEEKEND"] = "0 0 * * 6,7";
|
|
53
|
-
CronExpression["EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT"] = "0 0 1 * *";
|
|
54
|
-
CronExpression["EVERY_1ST_DAY_OF_MONTH_AT_NOON"] = "0 12 1 * *";
|
|
55
|
-
CronExpression["EVERY_2ND_HOUR"] = "0 */2 * * *";
|
|
56
|
-
CronExpression["EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM"] = "0 1-23/2 * * *";
|
|
57
|
-
CronExpression["EVERY_2ND_MONTH"] = "0 0 1 */2 *";
|
|
58
|
-
CronExpression["EVERY_QUARTER"] = "0 0 1 */3 *";
|
|
59
|
-
CronExpression["EVERY_6_MONTHS"] = "0 0 1 */6 *";
|
|
60
|
-
CronExpression["EVERY_YEAR"] = "0 0 1 1 *";
|
|
61
|
-
CronExpression["EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM"] = "0 */30 9-17 * * *";
|
|
62
|
-
CronExpression["EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM"] = "0 */30 9-18 * * *";
|
|
63
|
-
CronExpression["EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM"] = "0 */30 10-19 * * *";
|
|
64
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_1AM"] = "0 0 01 * * 1-5";
|
|
65
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_2AM"] = "0 0 02 * * 1-5";
|
|
66
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_3AM"] = "0 0 03 * * 1-5";
|
|
67
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_4AM"] = "0 0 04 * * 1-5";
|
|
68
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_5AM"] = "0 0 05 * * 1-5";
|
|
69
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_6AM"] = "0 0 06 * * 1-5";
|
|
70
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_7AM"] = "0 0 07 * * 1-5";
|
|
71
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_8AM"] = "0 0 08 * * 1-5";
|
|
72
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_9AM"] = "0 0 09 * * 1-5";
|
|
73
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_09_30AM"] = "0 30 09 * * 1-5";
|
|
74
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_10AM"] = "0 0 10 * * 1-5";
|
|
75
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_11AM"] = "0 0 11 * * 1-5";
|
|
76
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_11_30AM"] = "0 30 11 * * 1-5";
|
|
77
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_12PM"] = "0 0 12 * * 1-5";
|
|
78
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_1PM"] = "0 0 13 * * 1-5";
|
|
79
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_2PM"] = "0 0 14 * * 1-5";
|
|
80
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_3PM"] = "0 0 15 * * 1-5";
|
|
81
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_4PM"] = "0 0 16 * * 1-5";
|
|
82
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_5PM"] = "0 0 17 * * 1-5";
|
|
83
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_6PM"] = "0 0 18 * * 1-5";
|
|
84
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_7PM"] = "0 0 19 * * 1-5";
|
|
85
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_8PM"] = "0 0 20 * * 1-5";
|
|
86
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_9PM"] = "0 0 21 * * 1-5";
|
|
87
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_10PM"] = "0 0 22 * * 1-5";
|
|
88
|
-
CronExpression["MONDAY_TO_FRIDAY_AT_11PM"] = "0 0 23 * * 1-5";
|
|
89
|
-
})(CronExpression || (exports.CronExpression = CronExpression = {}));
|
|
90
|
-
//# sourceMappingURL=application.types.js.map
|