@squidcloud/local-backend 1.0.160 → 1.0.162
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 +3 -3
- package/dist/internal-common/src/local-dev.types.d.ts +3 -3
- package/dist/internal-common/src/{types/ai-chatbot.context.d.ts → public-types/ai-chatbot.public-context.d.ts} +3 -3
- package/dist/internal-common/src/public-types/ai-chatbot.public-context.js +20 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +2 -0
- package/dist/internal-common/src/public-types/{api-call.context.d.ts → api-call.public-context.d.ts} +2 -2
- package/dist/internal-common/src/public-types/api-call.public-context.js +17 -0
- package/dist/internal-common/src/public-types/api-call.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/{application.types.d.ts → application.public-types.d.ts} +5 -5
- package/dist/internal-common/src/public-types/{application.types.js → application.public-types.js} +1 -1
- package/dist/internal-common/src/public-types/application.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{bundle-api.types.d.ts → bundle-api.public-types.d.ts} +14 -14
- package/dist/internal-common/src/public-types/bundle-api.public-types.js +3 -0
- package/dist/internal-common/src/public-types/bundle-api.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +5 -0
- package/dist/internal-common/src/public-types/bundle-data.public-types.js +3 -0
- package/dist/internal-common/src/public-types/bundle-data.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +9 -0
- package/dist/internal-common/src/public-types/communication.public-types.js +6 -0
- package/dist/internal-common/src/public-types/communication.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{context.types.d.ts → context.public-types.d.ts} +1 -1
- package/dist/internal-common/src/public-types/context.public-types.js +3 -0
- package/dist/internal-common/src/public-types/context.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{distributed-lock.context.js → distributed-lock.public-context.js} +1 -1
- package/dist/internal-common/src/public-types/distributed-lock.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/{document.types.d.ts → document.public-types.d.ts} +11 -18
- package/dist/internal-common/src/public-types/document.public-types.js +3 -0
- package/dist/internal-common/src/public-types/document.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{graphql.context.d.ts → graphql.public-context.d.ts} +1 -8
- package/dist/internal-common/src/public-types/graphql.public-context.js +13 -0
- package/dist/internal-common/src/public-types/graphql.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/{graphql.types.d.ts → graphql.public-types.d.ts} +0 -2
- package/dist/internal-common/src/public-types/graphql.public-types.js +3 -0
- package/dist/internal-common/src/public-types/graphql.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{integration-types.js → integration.public-types.js} +1 -1
- package/dist/internal-common/src/public-types/integration.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +2 -2
- package/dist/internal-common/src/public-types/integrations/api.types.d.ts +3 -3
- package/dist/internal-common/src/public-types/integrations/auth.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/database.types.d.ts +3 -3
- package/dist/internal-common/src/public-types/integrations/observability.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/queue-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/schemas.d.ts +5 -5
- package/dist/internal-common/src/public-types/integrations/schemas.js +24 -24
- package/dist/internal-common/src/public-types/integrations/schemas.js.map +1 -1
- package/dist/internal-common/src/public-types/{mutation.context.d.ts → mutation.public-context.d.ts} +4 -4
- package/dist/internal-common/src/public-types/{mutation.context.js → mutation.public-context.js} +4 -4
- package/dist/internal-common/src/public-types/mutation.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/{mutation.types.d.ts → mutation.public-types.d.ts} +3 -22
- package/dist/internal-common/src/public-types/mutation.public-types.js +3 -0
- package/dist/internal-common/src/public-types/mutation.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{native-query.context.d.ts → native-query.public-context.d.ts} +1 -1
- package/dist/internal-common/src/public-types/{native-query.context.js → native-query.public-context.js} +1 -1
- package/dist/internal-common/src/public-types/native-query.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/{query-context.d.ts → query.public-context.d.ts} +4 -4
- package/dist/internal-common/src/public-types/{query-context.js → query.public-context.js} +5 -4
- package/dist/internal-common/src/public-types/query.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/{query.types.d.ts → query.public-types.d.ts} +4 -34
- package/dist/internal-common/src/public-types/query.public-types.js +8 -0
- package/dist/internal-common/src/public-types/query.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/schema.public-types.d.ts +22 -0
- package/dist/internal-common/src/public-types/{bundle-api.types.js → schema.public-types.js} +1 -1
- package/dist/internal-common/src/public-types/schema.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +13 -0
- package/dist/internal-common/src/public-types/{context.types.js → secret.public-types.js} +1 -1
- package/dist/internal-common/src/public-types/secret.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/socket.public-types.d.ts +5 -0
- package/dist/internal-common/src/public-types/{socket.types.js → socket.public-types.js} +1 -1
- package/dist/internal-common/src/public-types/socket.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/{topic.context.d.ts → topic.public-context.d.ts} +1 -1
- package/dist/internal-common/src/public-types/topic.public-context.js +3 -0
- package/dist/internal-common/src/public-types/topic.public-context.js.map +1 -0
- package/dist/internal-common/src/public-types/typescript.public-types.js +3 -0
- package/dist/internal-common/src/public-types/typescript.public-types.js.map +1 -0
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +2 -4
- package/dist/internal-common/src/types/ai-chatbot.types.js.map +1 -1
- package/dist/internal-common/src/{public-types → types}/api.types.d.ts +3 -3
- package/dist/internal-common/src/types/api.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/backend-run.types.d.ts +3 -2
- package/dist/internal-common/src/types/backend-run.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/bundle-data.types.d.ts +5 -9
- package/dist/internal-common/src/types/bundle-data.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/communication.types.d.ts +1 -8
- package/dist/internal-common/src/{public-types → types}/communication.types.js +1 -3
- package/dist/internal-common/src/types/communication.types.js.map +1 -0
- package/dist/internal-common/src/types/logger.types.js.map +1 -0
- package/dist/internal-common/src/types/openapi.types.js.map +1 -0
- package/dist/internal-common/src/types/query.types.d.ts +34 -0
- package/dist/internal-common/src/{public-types → types}/query.types.js +1 -5
- package/dist/internal-common/src/types/query.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/secret.types.d.ts +1 -14
- package/dist/internal-common/src/types/secret.types.js.map +1 -0
- package/dist/internal-common/src/types/{security-internal.types.d.ts → security.types.d.ts} +10 -8
- package/dist/internal-common/src/{public-types/topic.context.js → types/security.types.js} +1 -1
- package/dist/internal-common/src/types/security.types.js.map +1 -0
- package/dist/internal-common/src/utils/backend-transforms.d.ts +2 -2
- package/dist/internal-common/src/utils/backend-transforms.js +18 -16
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
- package/dist/internal-common/src/utils/http.js +1 -0
- package/dist/internal-common/src/utils/http.js.map +1 -1
- package/dist/internal-common/src/utils/serialization.d.ts +2 -2
- package/dist/internal-common/src/utils/serialization.js.map +1 -1
- package/dist/local-backend/package.json +2 -2
- package/dist/local-backend/src/local-backend-socket.service.js +5 -4
- package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
- package/dist/local-backend/src/local-backend.controller.d.ts +2 -1
- package/dist/local-backend/src/local-backend.controller.js +2 -1
- package/dist/local-backend/src/local-backend.controller.js.map +1 -1
- package/dist/local-backend/src/local-backend.module.d.ts +2 -2
- package/dist/local-backend/src/local-backend.module.js +4 -2
- package/dist/local-backend/src/local-backend.module.js.map +1 -1
- package/dist/local-backend/src/local-backend.service.d.ts +5 -5
- package/dist/local-backend/src/local-backend.service.js +12 -7
- package/dist/local-backend/src/local-backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- 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.js.map +0 -1
- package/dist/internal-common/src/public-types/application.types.js.map +0 -1
- package/dist/internal-common/src/public-types/backend-run.types.js.map +0 -1
- package/dist/internal-common/src/public-types/bundle-api.types.js.map +0 -1
- package/dist/internal-common/src/public-types/bundle-data.types.js.map +0 -1
- package/dist/internal-common/src/public-types/communication.types.js.map +0 -1
- package/dist/internal-common/src/public-types/context.types.js.map +0 -1
- package/dist/internal-common/src/public-types/distributed-lock.context.js.map +0 -1
- 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.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.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.js.map +0 -1
- package/dist/internal-common/src/public-types/logger.types.js.map +0 -1
- package/dist/internal-common/src/public-types/mutation.context.js.map +0 -1
- 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.js.map +0 -1
- package/dist/internal-common/src/public-types/openapi.types.js.map +0 -1
- package/dist/internal-common/src/public-types/query-context.js.map +0 -1
- package/dist/internal-common/src/public-types/query.types.js.map +0 -1
- 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 -132
- package/dist/internal-common/src/public-types/socket.types.js.map +0 -1
- package/dist/internal-common/src/public-types/topic.context.js.map +0 -1
- 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 -167
- package/dist/internal-common/src/schema/schema.types.js.map +0 -1
- package/dist/internal-common/src/types/ai-chatbot.context.js +0 -20
- package/dist/internal-common/src/types/ai-chatbot.context.js.map +0 -1
- 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/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/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/public-types/{distributed-lock.context.d.ts → distributed-lock.public-context.d.ts} +0 -0
- /package/dist/internal-common/src/public-types/{integration-types.d.ts → integration.public-types.d.ts} +0 -0
- /package/dist/internal-common/src/public-types/{types.d.ts → typescript.public-types.d.ts} +0 -0
- /package/dist/internal-common/src/{public-types → types}/api.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/backend-run.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/bundle-data.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/logger.types.d.ts +0 -0
- /package/dist/internal-common/src/{public-types → types}/logger.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/openapi.types.d.ts +0 -0
- /package/dist/internal-common/src/{public-types → types}/openapi.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/secret.types.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ServiceFunctionName } from './
|
|
2
|
-
import { ExecuteFunctionAnnotationType, RunConfiguration, RunSecrets } from './
|
|
3
|
-
import { Auth, RunContext } from './public-types/context.types';
|
|
1
|
+
import { ServiceFunctionName } from './types/bundle-data.types';
|
|
2
|
+
import { ExecuteFunctionAnnotationType, RunConfiguration, RunSecrets } from './types/backend-run.types';
|
|
3
|
+
import { Auth, RunContext } from './public-types/context.public-types';
|
|
4
4
|
export type SingleExecuteFunctionRequest = {
|
|
5
5
|
functionName: ServiceFunctionName;
|
|
6
6
|
params: Array<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchRunConfigurationRequest } from './code-executor.types';
|
|
2
|
-
import { LocalBackendData } from './
|
|
3
|
-
import { RunSecrets } from './
|
|
4
|
-
import { LogLevel } from './
|
|
2
|
+
import { LocalBackendData } from './types/bundle-data.types';
|
|
3
|
+
import { RunSecrets } from './types/backend-run.types';
|
|
4
|
+
import { LogLevel } from './types/logger.types';
|
|
5
5
|
export type MessageFromDeveloperType = 'bundleData' | 'response';
|
|
6
6
|
interface BaseMessageFromDeveloper {
|
|
7
7
|
type: MessageFromDeveloperType;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiChatbotMutationType, AiChatbotResourceType } from './ai-chatbot.public-types';
|
|
2
2
|
export declare class AiChatbotChatContext {
|
|
3
3
|
readonly prompt: string;
|
|
4
4
|
readonly profileId: string;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(prototype: AiChatbotChatContext);
|
|
6
6
|
}
|
|
7
7
|
export declare class AiChatbotMutationContext {
|
|
8
8
|
readonly type: AiChatbotMutationType;
|
|
9
9
|
readonly resource: AiChatbotResourceType;
|
|
10
10
|
readonly profileId: string;
|
|
11
11
|
readonly payload: any;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(prototype: AiChatbotMutationContext);
|
|
13
13
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiChatbotMutationContext = exports.AiChatbotChatContext = void 0;
|
|
4
|
+
class AiChatbotChatContext {
|
|
5
|
+
constructor(prototype) {
|
|
6
|
+
this.profileId = prototype.profileId;
|
|
7
|
+
this.prompt = prototype.prompt;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AiChatbotChatContext = AiChatbotChatContext;
|
|
11
|
+
class AiChatbotMutationContext {
|
|
12
|
+
constructor(prototype) {
|
|
13
|
+
this.profileId = prototype.profileId;
|
|
14
|
+
this.type = prototype.type;
|
|
15
|
+
this.resource = prototype.resource;
|
|
16
|
+
this.payload = prototype.payload;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AiChatbotMutationContext = AiChatbotMutationContext;
|
|
20
|
+
//# sourceMappingURL=ai-chatbot.public-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-chatbot.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-context.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAoB;IAO/B,YAAY,SAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IACjC,CAAC;CACF;AAXD,oDAWC;AAGD,MAAa,wBAAwB;IASnC,YAAY,SAAmC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;IACnC,CAAC;CACF;AAfD,4DAeC"}
|
|
@@ -24,4 +24,6 @@ export interface AiChatbotChatOptions {
|
|
|
24
24
|
includeReference?: boolean;
|
|
25
25
|
responseFormat?: OpenAiResponseFormat;
|
|
26
26
|
}
|
|
27
|
+
export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
|
|
28
|
+
export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
|
|
27
29
|
export {};
|
package/dist/internal-common/src/public-types/{api-call.context.d.ts → api-call.public-context.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiHeaders, SecureApiRequest } from './api.types';
|
|
2
1
|
import { ApiEndpointId, HttpMethod } from './integrations/api.types';
|
|
2
|
+
export type ApiHeaders = Record<string, string | number | boolean>;
|
|
3
3
|
export declare class ApiCallContext {
|
|
4
4
|
readonly endpointId: ApiEndpointId;
|
|
5
5
|
readonly url: string;
|
|
@@ -9,5 +9,5 @@ export declare class ApiCallContext {
|
|
|
9
9
|
readonly queryParams: Record<string, string | number | boolean>;
|
|
10
10
|
readonly pathParams: Record<string, string>;
|
|
11
11
|
readonly serverUrlOverride: string | undefined;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(prototype: ApiCallContext);
|
|
13
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiCallContext = void 0;
|
|
4
|
+
class ApiCallContext {
|
|
5
|
+
constructor(prototype) {
|
|
6
|
+
this.endpointId = prototype.endpointId;
|
|
7
|
+
this.url = prototype.url;
|
|
8
|
+
this.method = prototype.method;
|
|
9
|
+
this.headers = prototype.headers;
|
|
10
|
+
this.body = prototype.body;
|
|
11
|
+
this.queryParams = prototype.queryParams;
|
|
12
|
+
this.pathParams = prototype.pathParams;
|
|
13
|
+
this.serverUrlOverride = prototype.serverUrlOverride;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ApiCallContext = ApiCallContext;
|
|
17
|
+
//# sourceMappingURL=api-call.public-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-call.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/api-call.public-context.ts"],"names":[],"mappings":";;;AAMA,MAAa,cAAc;IAWzB,YAAY,SAAyB;QACnC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;QACvC,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;IACvD,CAAC;CACF;AArBD,wCAqBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RunPermissions } from '
|
|
2
|
-
import { ApplicationBundleData, ServiceFunctionName } from '
|
|
3
|
-
import { AppId, EnvironmentId, IntegrationId } from './communication.types';
|
|
4
|
-
import { CollectionName } from './document.types';
|
|
1
|
+
import { RunPermissions } from '../types/backend-run.types';
|
|
2
|
+
import { ApplicationBundleData, ServiceFunctionName } from '../types/bundle-data.types';
|
|
5
3
|
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
|
|
6
|
-
import { IntegrationType } from './integration-types';
|
|
4
|
+
import { IntegrationType } from './integration.public-types';
|
|
5
|
+
import { AppId, EnvironmentId, IntegrationId } from './communication.public-types';
|
|
6
|
+
import { CollectionName } from './document.public-types';
|
|
7
7
|
export type WebhookId = string;
|
|
8
8
|
export type TriggerId = string;
|
|
9
9
|
export type SchedulerId = string;
|
package/dist/internal-common/src/public-types/{application.types.js → application.public-types.js}
RENAMED
|
@@ -87,4 +87,4 @@ var CronExpression;
|
|
|
87
87
|
CronExpression["MONDAY_TO_FRIDAY_AT_10PM"] = "0 0 22 * * 1-5";
|
|
88
88
|
CronExpression["MONDAY_TO_FRIDAY_AT_11PM"] = "0 0 23 * * 1-5";
|
|
89
89
|
})(CronExpression || (exports.CronExpression = CronExpression = {}));
|
|
90
|
-
//# sourceMappingURL=application.types.js.map
|
|
90
|
+
//# sourceMappingURL=application.public-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/application.public-types.ts"],"names":[],"mappings":";;;AAgCA,IAAY,cAoFX;AApFD,WAAY,cAAc;IACxB,8CAA4B,CAAA;IAC5B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,8CAA4B,CAAA;IAC5B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,oDAAkC,CAAA;IAClC,oDAAkC,CAAA;IAClC,oDAAkC,CAAA;IAClC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,qDAAmC,CAAA;IACnC,0CAAwB,CAAA;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,kEAAgD,CAAA;IAChD,+DAA6C,CAAA;IAC7C,gDAA8B,CAAA;IAC9B,yEAAuD,CAAA;IACvD,iDAA+B,CAAA;IAC/B,+CAA6B,CAAA;IAC7B,gDAA8B,CAAA;IAC9B,0CAAwB,CAAA;IACxB,4EAA0D,CAAA;IAC1D,4EAA0D,CAAA;IAC1D,8EAA4D,CAAA;IAC5D,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,iEAA+C,CAAA;IAC/C,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;IAC3C,iEAA+C,CAAA;IAC/C,6DAA2C,CAAA;IAC3C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;AAC7C,CAAC,EApFW,cAAc,8BAAd,cAAc,QAoFzB"}
|
package/dist/internal-common/src/public-types/{bundle-api.types.d.ts → bundle-api.public-types.d.ts}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ApiCallContext } from './api-call.context';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ClientId } from './communication.types';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { AiChatbotChatContext, AiChatbotMutationContext } from '
|
|
14
|
-
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context:
|
|
1
|
+
import { MutationPublicContext } from './mutation.public-context';
|
|
2
|
+
import { ApiCallContext } from './api-call.public-context';
|
|
3
|
+
import { QueryContext } from './query.public-context';
|
|
4
|
+
import { AiChatbotActionType, DatabaseActionType, TopicActionType } from './bundle-data.public-types';
|
|
5
|
+
import { ClientConnectionState } from './socket.public-types';
|
|
6
|
+
import { DocumentData } from './document.public-types';
|
|
7
|
+
import { MutationType } from './mutation.public-types';
|
|
8
|
+
import { ClientId, SquidDocId } from './communication.public-types';
|
|
9
|
+
import { TopicReadContext, TopicWriteContext } from './topic.public-context';
|
|
10
|
+
import { NativeQueryContext } from './native-query.public-context';
|
|
11
|
+
import { DistributedLockContext } from './distributed-lock.public-context';
|
|
12
|
+
import { GraphqlContext } from './graphql.public-context';
|
|
13
|
+
import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.public-context';
|
|
14
|
+
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationPublicContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
15
15
|
export type SecureTopicAction<T extends TopicActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: TopicReadContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: TopicWriteContext<T>) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
16
16
|
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
17
17
|
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-api.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-api.public-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
2
|
+
export type TopicActionType = 'read' | 'write' | 'all';
|
|
3
|
+
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
4
|
+
export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
|
|
5
|
+
export type FunctionName = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-data.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-data.public-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type AppId = string;
|
|
2
|
+
export declare const ENVIRONMENT_IDS: readonly ["dev", "prod"];
|
|
3
|
+
export type EnvironmentId = (typeof ENVIRONMENT_IDS)[number];
|
|
4
|
+
export type SquidDeveloperId = string;
|
|
5
|
+
export declare const allEnvironmentIds: Array<EnvironmentId>;
|
|
6
|
+
export type IntegrationId = string;
|
|
7
|
+
export type ClientId = string;
|
|
8
|
+
export type SquidDocId = string;
|
|
9
|
+
export type ClientRequestId = string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allEnvironmentIds = exports.ENVIRONMENT_IDS = void 0;
|
|
4
|
+
exports.ENVIRONMENT_IDS = ['dev', 'prod'];
|
|
5
|
+
exports.allEnvironmentIds = [...exports.ENVIRONMENT_IDS];
|
|
6
|
+
//# sourceMappingURL=communication.public-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/communication.public-types.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAC;AAM3C,QAAA,iBAAiB,GAAyB,CAAC,GAAG,uBAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/context.public-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributed-lock.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/distributed-lock.public-context.ts"],"names":[],"mappings":";;;AACA,MAAa,sBAAsB;IAEjC,YAAqB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;CACvC;AAHD,wDAGC"}
|
package/dist/internal-common/src/public-types/{document.types.d.ts → document.public-types.d.ts}
RENAMED
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import { IntegrationId } from './communication.types';
|
|
2
|
-
export type FieldName<T = any> = string & keyof T;
|
|
1
|
+
import { IntegrationId } from './communication.public-types';
|
|
3
2
|
export type PrimitiveFieldType = string | number | boolean | null | Date;
|
|
4
3
|
export type FieldType = PrimitiveFieldType | Array<FieldType> | {
|
|
5
4
|
[key: string]: FieldType;
|
|
6
5
|
};
|
|
6
|
+
export type FieldName<T = any> = string & keyof T;
|
|
7
7
|
export type DocId = string;
|
|
8
8
|
export type DocIdObj = Record<FieldName, any>;
|
|
9
9
|
export type CollectionName = string;
|
|
10
|
-
export type
|
|
10
|
+
export type DocumentData = Record<FieldName, any | undefined>;
|
|
11
11
|
export type DocTimestamp = number;
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
integrationId: IntegrationId;
|
|
12
|
+
export interface SquidDocument {
|
|
13
|
+
__docId__: DocId;
|
|
14
|
+
__ts__: DocTimestamp;
|
|
15
|
+
[fieldName: string]: FieldType | undefined;
|
|
17
16
|
}
|
|
18
17
|
export interface BeforeAndAfterDocs<T = SquidDocument> {
|
|
19
18
|
before: T | undefined;
|
|
20
19
|
after: T | undefined;
|
|
21
20
|
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
[fieldName: string]: FieldType | undefined;
|
|
21
|
+
export interface SquidDocIdObj {
|
|
22
|
+
collectionName: CollectionName;
|
|
23
|
+
docId: DocId;
|
|
24
|
+
integrationId: IntegrationId;
|
|
27
25
|
}
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"document.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/document.public-types.ts"],"names":[],"mappings":""}
|
package/dist/internal-common/src/public-types/{graphql.context.d.ts → graphql.public-context.d.ts}
RENAMED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
interface GraphQlRequest {
|
|
2
|
-
isGraphiQL: boolean;
|
|
3
|
-
query?: string;
|
|
4
|
-
operationName?: string;
|
|
5
|
-
variables?: string | Record<string, any>;
|
|
6
|
-
}
|
|
7
1
|
export declare class GraphqlContext {
|
|
8
2
|
readonly isGraphiQL: boolean;
|
|
9
3
|
readonly query: string | undefined;
|
|
10
4
|
readonly variables: string | Record<string, any> | undefined;
|
|
11
5
|
readonly operationName: string | undefined;
|
|
12
|
-
constructor(
|
|
6
|
+
constructor(prototype: GraphqlContext);
|
|
13
7
|
}
|
|
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(prototype) {
|
|
6
|
+
this.isGraphiQL = prototype.isGraphiQL;
|
|
7
|
+
this.query = prototype.query;
|
|
8
|
+
this.operationName = prototype.operationName;
|
|
9
|
+
this.variables = prototype.variables;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.GraphqlContext = GraphqlContext;
|
|
13
|
+
//# sourceMappingURL=graphql.public-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/graphql.public-context.ts"],"names":[],"mappings":";;;AACA,MAAa,cAAc;IASzB,YAAY,SAAyB;QACnC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;QACvC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IACvC,CAAC;CACF;AAfD,wCAeC"}
|
package/dist/internal-common/src/public-types/{graphql.types.d.ts → graphql.public-types.d.ts}
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type IntrospectionQuery } from 'graphql';
|
|
2
1
|
export { type ExecutionResult, type IntrospectionQuery } from 'graphql';
|
|
3
2
|
export interface GraphQLRequest {
|
|
4
3
|
operationName?: string;
|
|
@@ -8,4 +7,3 @@ export interface GraphQLRequest {
|
|
|
8
7
|
export interface SecureGraphQLRequest extends GraphQLRequest {
|
|
9
8
|
isGraphiQL: boolean;
|
|
10
9
|
}
|
|
11
|
-
export declare const EmptyIntrospection: IntrospectionQuery;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/graphql.public-types.ts"],"names":[],"mappings":""}
|
package/dist/internal-common/src/public-types/{integration-types.js → integration.public-types.js}
RENAMED
|
@@ -66,4 +66,4 @@ var IntegrationSchemaType;
|
|
|
66
66
|
IntegrationSchemaType["api"] = "api";
|
|
67
67
|
IntegrationSchemaType["graphql"] = "graphql";
|
|
68
68
|
})(IntegrationSchemaType || (exports.IntegrationSchemaType = IntegrationSchemaType = {}));
|
|
69
|
-
//# sourceMappingURL=integration-types.js.map
|
|
69
|
+
//# sourceMappingURL=integration.public-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration.public-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,gCAAW,CAAA;AACb,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B;AAED,IAAY,eAgDX;AAhDD,WAAY,eAAe;IACzB,8CAA6B,CAAA;IAC7B,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IAEnC,sCAAqB,CAAA;IACrB,kEAAiD,CAAA;IACjD,oDAAmC,CAAA;IACnC,0EAAyD,CAAA;IACzD,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oDAAmC,CAAA;IACnC,4CAA2B,CAAA;IAC3B,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,wDAAuC,CAAA;IACvC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;AACzB,CAAC,EAhDW,eAAe,+BAAf,eAAe,QAgD1B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,4CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseIntegrationConfig } from './schemas';
|
|
2
2
|
import { AiModelName } from '../ai-chatbot.public-types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { IntegrationType } from '../integration.public-types';
|
|
4
|
+
import { IntegrationId } from '../communication.public-types';
|
|
5
5
|
export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
|
|
6
6
|
type: IntegrationType.ai_chatbot;
|
|
7
7
|
configuration: AiChatbotConfiguration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldName } from '../document.types';
|
|
2
|
-
import { IntrospectionQuery } from '../graphql.types';
|
|
3
1
|
import { BaseIntegrationConfig, BaseIntegrationSchema } from './schemas';
|
|
4
|
-
import { IntegrationSchemaType, IntegrationType } from '../integration-types';
|
|
2
|
+
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
3
|
+
import { IntrospectionQuery } from '../graphql.public-types';
|
|
4
|
+
import { FieldName } from '../document.public-types';
|
|
5
5
|
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
6
6
|
export type ApiEndpointId = string;
|
|
7
7
|
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { IntegrationType } from '../integration-types';
|
|
2
|
+
import { IntegrationType } from '../integration.public-types';
|
|
3
3
|
export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
|
|
4
4
|
type: IntegrationType.auth0;
|
|
5
5
|
configuration: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseIntegrationConfig, BaseIntegrationSchema, DatabaseIntegrationType } from './schemas';
|
|
2
|
-
import {
|
|
3
|
-
import { CollectionName } from '../document.types';
|
|
4
|
-
import {
|
|
2
|
+
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
3
|
+
import { CollectionName } from '../document.public-types';
|
|
4
|
+
import { CollectionSchema } from '../schema.public-types';
|
|
5
5
|
export interface MongoConnectionSecretOptions {
|
|
6
6
|
password?: string;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { IntegrationType } from '../integration-types';
|
|
2
|
+
import { IntegrationType } from '../integration.public-types';
|
|
3
3
|
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
4
4
|
type: IntegrationType.datadog;
|
|
5
5
|
configuration: DatadogIntegrationConfiguration;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntegrationType } from '../integration-types';
|
|
1
|
+
import { IntegrationType } from '../integration.public-types';
|
|
2
2
|
import { BaseIntegrationConfig, QueueIntegrationTypes } from './schemas';
|
|
3
3
|
export type QueueIntegrationType = (typeof QueueIntegrationTypes)[number];
|
|
4
4
|
export interface BaseQueueIntegrationConfig extends BaseIntegrationConfig {
|
|
@@ -3,9 +3,9 @@ import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchem
|
|
|
3
3
|
import { Auth0IntegrationConfig, CognitoIntegrationConfig, DescopeIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
|
|
4
4
|
import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PinotIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
|
|
5
5
|
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
6
|
-
import {
|
|
7
|
-
import { IntegrationSchemaType, IntegrationType } from '../integration-types';
|
|
6
|
+
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
8
7
|
import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig, TestConfluentConnectionRequest, TestKafkaConnectionRequest } from './queue-types';
|
|
8
|
+
import { IntegrationId } from '../communication.public-types';
|
|
9
9
|
export interface IntegrationConfigTypes {
|
|
10
10
|
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
11
11
|
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
@@ -64,9 +64,9 @@ export type ObservabilityIntegrationConfig = IntegrationConfigTypes[Observabilit
|
|
|
64
64
|
export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
|
|
65
65
|
export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
|
|
66
66
|
export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
|
|
67
|
-
export declare function isDataIntegration(integration:
|
|
68
|
-
export declare function isAuthIntegrationType(type:
|
|
69
|
-
export declare function isAuthIntegration(integration:
|
|
67
|
+
export declare function isDataIntegration(integration: unknown): integration is BaseDatabaseIntegrationConfig;
|
|
68
|
+
export declare function isAuthIntegrationType(type: unknown): type is AuthIntegrationType;
|
|
69
|
+
export declare function isAuthIntegration(integration: unknown): integration is AuthIntegrationConfig;
|
|
70
70
|
export interface BaseIntegrationConfig {
|
|
71
71
|
id: IntegrationId;
|
|
72
72
|
type: IntegrationTypeWithConfig;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.QueueIntegrationTypes = exports.AuthIntegrationTypes = exports.ObservabilityIntegrationTypes = exports.ApiIntegrationTypes = exports.DatabaseIntegrationTypes = void 0;
|
|
4
|
-
const
|
|
4
|
+
const integration_public_types_1 = require("../integration.public-types");
|
|
5
5
|
exports.DatabaseIntegrationTypes = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
integration_public_types_1.IntegrationType.built_in_db,
|
|
7
|
+
integration_public_types_1.IntegrationType.mongo,
|
|
8
|
+
integration_public_types_1.IntegrationType.mysql,
|
|
9
|
+
integration_public_types_1.IntegrationType.bigquery,
|
|
10
|
+
integration_public_types_1.IntegrationType.mssql,
|
|
11
|
+
integration_public_types_1.IntegrationType.postgres,
|
|
12
|
+
integration_public_types_1.IntegrationType.cockroach,
|
|
13
|
+
integration_public_types_1.IntegrationType.snowflake,
|
|
14
|
+
integration_public_types_1.IntegrationType.oracledb,
|
|
15
|
+
integration_public_types_1.IntegrationType.pinot,
|
|
16
16
|
];
|
|
17
|
-
exports.ApiIntegrationTypes = [
|
|
18
|
-
exports.ObservabilityIntegrationTypes = [
|
|
17
|
+
exports.ApiIntegrationTypes = [integration_public_types_1.IntegrationType.api, integration_public_types_1.IntegrationType.graphql];
|
|
18
|
+
exports.ObservabilityIntegrationTypes = [integration_public_types_1.IntegrationType.datadog, integration_public_types_1.IntegrationType.newrelic];
|
|
19
19
|
exports.AuthIntegrationTypes = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
integration_public_types_1.IntegrationType.auth0,
|
|
21
|
+
integration_public_types_1.IntegrationType.jwt_rsa,
|
|
22
|
+
integration_public_types_1.IntegrationType.jwt_hmac,
|
|
23
|
+
integration_public_types_1.IntegrationType.cognito,
|
|
24
|
+
integration_public_types_1.IntegrationType.okta,
|
|
25
|
+
integration_public_types_1.IntegrationType.descope,
|
|
26
26
|
];
|
|
27
27
|
exports.QueueIntegrationTypes = [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
integration_public_types_1.IntegrationType.built_in_queue,
|
|
29
|
+
integration_public_types_1.IntegrationType.kafka,
|
|
30
|
+
integration_public_types_1.IntegrationType.confluent,
|
|
31
31
|
];
|
|
32
32
|
function isDataIntegrationType(type) {
|
|
33
33
|
return exports.DatabaseIntegrationTypes.includes(type);
|
|
34
34
|
}
|
|
35
35
|
exports.isDataIntegrationType = isDataIntegrationType;
|
|
36
36
|
function isDataIntegration(integration) {
|
|
37
|
-
return isDataIntegrationType(integration.type);
|
|
37
|
+
return isDataIntegrationType(integration === null || integration === void 0 ? void 0 : integration.type);
|
|
38
38
|
}
|
|
39
39
|
exports.isDataIntegration = isDataIntegration;
|
|
40
40
|
function isAuthIntegrationType(type) {
|
|
@@ -42,7 +42,7 @@ function isAuthIntegrationType(type) {
|
|
|
42
42
|
}
|
|
43
43
|
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
44
44
|
function isAuthIntegration(integration) {
|
|
45
|
-
return isAuthIntegrationType(integration.type);
|
|
45
|
+
return isAuthIntegrationType(integration === null || integration === void 0 ? void 0 : integration.type);
|
|
46
46
|
}
|
|
47
47
|
exports.isAuthIntegration = isAuthIntegration;
|
|
48
48
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/schemas.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/schemas.ts"],"names":[],"mappings":";;;AAgCA,0EAAqF;AA0DxE,QAAA,wBAAwB,GAAG;IACtC,0CAAe,CAAC,WAAW;IAC3B,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,SAAS;IACzB,0CAAe,CAAC,SAAS;IACzB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,KAAK;CACb,CAAC;AAKE,QAAA,mBAAmB,GAAG,CAAC,0CAAe,CAAC,GAAG,EAAE,0CAAe,CAAC,OAAO,CAAU,CAAC;AAE9E,QAAA,6BAA6B,GAAG,CAAC,0CAAe,CAAC,OAAO,EAAE,0CAAe,CAAC,QAAQ,CAAU,CAAC;AAE7F,QAAA,oBAAoB,GAAG;IAClC,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,IAAI;IACpB,0CAAe,CAAC,OAAO;CACf,CAAC;AAEE,QAAA,qBAAqB,GAAG;IACnC,0CAAe,CAAC,cAAc;IAC9B,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,SAAS;CACjB,CAAC;AAWX,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,gCAAwB,CAAC,QAAQ,CAAC,IAA+B,CAAC,CAAC;AAC5E,CAAC;AAFD,sDAEC;AAED,SAAgB,iBAAiB,CAAC,WAAoB;IACpD,OAAO,qBAAqB,CAAE,WAA6C,aAA7C,WAAW,uBAAX,WAAW,CAAoC,IAAI,CAAC,CAAC;AACrF,CAAC;AAFD,8CAEC;AAED,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAQ,4BAAmD,CAAC,QAAQ,CAAC,IAAuB,CAAC,CAAC;AAChG,CAAC;AAFD,sDAEC;AAED,SAAgB,iBAAiB,CAAC,WAAoB;IACpD,OAAO,qBAAqB,CAAE,WAAqC,aAArC,WAAW,uBAAX,WAAW,CAA4B,IAAI,CAAC,CAAC;AAC7E,CAAC;AAFD,8CAEC"}
|
package/dist/internal-common/src/public-types/{mutation.context.d.ts → mutation.public-context.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BeforeAndAfterDocs } from './document.types';
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
1
|
+
import { Paths } from './typescript.public-types';
|
|
2
|
+
import { BeforeAndAfterDocs } from './document.public-types';
|
|
3
|
+
import { Mutation, MutationType } from './mutation.public-types';
|
|
4
|
+
export declare class MutationPublicContext<T = any> {
|
|
5
5
|
readonly mutation: Mutation<T>;
|
|
6
6
|
readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
|
|
7
7
|
readonly serverTimeStamp: Date;
|
package/dist/internal-common/src/public-types/{mutation.context.js → mutation.public-context.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MutationPublicContext = void 0;
|
|
4
4
|
const _ = require("lodash");
|
|
5
|
-
class
|
|
5
|
+
class MutationPublicContext {
|
|
6
6
|
constructor(mutation, beforeAndAfterDocs, serverTimeStamp) {
|
|
7
7
|
this.mutation = mutation;
|
|
8
8
|
this.beforeAndAfterDocs = beforeAndAfterDocs;
|
|
@@ -23,5 +23,5 @@ class MutationContext {
|
|
|
23
23
|
return !_.isEqual(before, after);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.
|
|
27
|
-
//# sourceMappingURL=mutation.context.js.map
|
|
26
|
+
exports.MutationPublicContext = MutationPublicContext;
|
|
27
|
+
//# sourceMappingURL=mutation.public-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/mutation.public-context.ts"],"names":[],"mappings":";;;AAAA,4BAA4B;AAM5B,MAAa,qBAAqB;IAIhC,YACW,QAAqB,EACrB,kBAAyC,EACzC,eAAqB;QAFrB,aAAQ,GAAR,QAAQ,CAAa;QACrB,uBAAkB,GAAlB,kBAAkB,CAAuB;QACzC,oBAAe,GAAf,eAAe,CAAM;IAC7B,CAAC;IAEJ,eAAe;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC5B,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;IACxC,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;IACvC,CAAC;IAGD,WAAW,CAAC,IAAc;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC/D,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACF;AA5BD,sDA4BC"}
|