@squidcloud/local-backend 1.0.155 → 1.0.157
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 -1
- package/dist/internal-common/src/local-dev.types.d.ts +3 -1
- package/dist/internal-common/src/local-dev.types.js.map +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.context.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/api-call.context.d.ts +1 -1
- package/dist/internal-common/src/public-types/api-call.context.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/api.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/api.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/application.types.d.ts +2 -1
- package/dist/internal-common/src/public-types/application.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/backend-run.types.d.ts +0 -2
- package/dist/internal-common/src/public-types/backend-run.types.js +28 -0
- package/dist/internal-common/src/public-types/backend-run.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/bundle-api.types.d.ts +12 -24
- package/dist/internal-common/src/public-types/bundle-api.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/bundle-data.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/bundle-data.types.js.map +1 -0
- package/dist/internal-common/src/public-types/communication.types.js.map +1 -0
- package/dist/internal-common/src/public-types/context.types.js.map +1 -0
- package/dist/internal-common/src/public-types/distributed-lock.context.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/document.types.js +1 -1
- package/dist/internal-common/src/public-types/document.types.js.map +1 -0
- package/dist/internal-common/src/public-types/graphql.context.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/graphql.types.d.ts +2 -2
- package/dist/internal-common/src/public-types/graphql.types.js.map +1 -0
- package/dist/internal-common/src/public-types/http-status.enum.js.map +1 -0
- package/dist/internal-common/src/public-types/integration-types.d.ts +57 -0
- package/dist/{common/src/integrations/index.js → internal-common/src/public-types/integration-types.js} +2 -58
- package/dist/internal-common/src/public-types/integration-types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/ai_chatbot.types.d.ts +2 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/api.types.d.ts +2 -1
- package/dist/internal-common/src/public-types/integrations/api.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/auth.types.d.ts +2 -1
- package/dist/internal-common/src/public-types/integrations/auth.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/database.types.d.ts +3 -2
- package/dist/internal-common/src/public-types/integrations/database.types.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/observability.types.d.ts +2 -1
- package/dist/internal-common/src/public-types/integrations/observability.types.js.map +1 -0
- package/dist/{common/src/integrations/index.d.ts → internal-common/src/public-types/integrations/schemas.d.ts} +2 -63
- package/dist/internal-common/src/public-types/integrations/schemas.js +42 -0
- package/dist/internal-common/src/public-types/integrations/schemas.js.map +1 -0
- package/dist/internal-common/src/public-types/logger.types.js.map +1 -0
- package/dist/internal-common/src/public-types/mutation.context.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/mutation.types.js +1 -1
- package/dist/internal-common/src/public-types/mutation.types.js.map +1 -0
- package/dist/internal-common/src/public-types/native-query.context.js.map +1 -0
- package/dist/internal-common/src/public-types/openapi.types.js.map +1 -0
- package/dist/{common/src/query → internal-common/src/public-types}/query-context.d.ts +4 -4
- package/dist/{common/src/query → internal-common/src/public-types}/query-context.js +1 -1
- package/dist/internal-common/src/public-types/query-context.js.map +1 -0
- package/dist/{common/src → internal-common/src/public-types}/query.types.js +1 -1
- package/dist/internal-common/src/public-types/query.types.js.map +1 -0
- package/dist/internal-common/src/public-types/secret.types.js.map +1 -0
- package/dist/internal-common/src/public-types/socket.types.js.map +1 -0
- package/dist/internal-common/src/public-types/types.js.map +1 -0
- package/dist/{common → internal-common}/src/schema/schema.types.d.ts +1 -1
- package/dist/{common → internal-common}/src/schema/schema.types.js +1 -1
- package/dist/internal-common/src/schema/schema.types.js.map +1 -0
- package/dist/internal-common/src/types/openapi-response.js.map +1 -0
- package/dist/internal-common/src/types/security-internal.types.d.ts +20 -0
- package/dist/{common/src/ai-assistant.types.js → internal-common/src/types/security-internal.types.js} +1 -1
- package/dist/internal-common/src/types/security-internal.types.js.map +1 -0
- package/dist/{common → internal-common}/src/utils/assert.js +1 -1
- package/dist/internal-common/src/utils/assert.js.map +1 -0
- package/dist/internal-common/src/utils/backend-transforms.d.ts +3 -0
- package/dist/{common/src/backend-run.types.js → internal-common/src/utils/backend-transforms.js} +12 -35
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -0
- package/dist/internal-common/src/utils/global.utils.js.map +1 -0
- package/dist/internal-common/src/utils/http.js.map +1 -0
- package/dist/internal-common/src/utils/object.js.map +1 -0
- package/dist/internal-common/src/utils/serialization.js.map +1 -0
- package/dist/{common → internal-common}/src/utils/validation.d.ts +4 -2
- package/dist/{common → internal-common}/src/utils/validation.js +11 -1
- package/dist/internal-common/src/utils/validation.js.map +1 -0
- package/dist/internal-common/src/websocket.impl.js.map +1 -0
- package/dist/local-backend/openapi-template.hbs +1 -1
- package/dist/local-backend/package.json +8 -3
- package/dist/local-backend/src/local-backend-socket.service.js +26 -22
- package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
- package/dist/local-backend/src/local-backend.module.js +2 -2
- package/dist/local-backend/src/local-backend.module.js.map +1 -1
- package/dist/local-backend/src/local-backend.service.d.ts +4 -2
- package/dist/local-backend/src/local-backend.service.js +5 -4
- package/dist/local-backend/src/local-backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -3
- package/dist/common/src/ai-assistant.types.d.ts +0 -51
- package/dist/common/src/ai-assistant.types.js.map +0 -1
- package/dist/common/src/ai-chatbot.context.js.map +0 -1
- package/dist/common/src/ai-chatbot.schemas.d.ts +0 -18
- package/dist/common/src/ai-chatbot.schemas.js +0 -22
- package/dist/common/src/ai-chatbot.schemas.js.map +0 -1
- package/dist/common/src/ai-chatbot.types.js.map +0 -1
- package/dist/common/src/api-call.context.js.map +0 -1
- package/dist/common/src/api.types.js.map +0 -1
- package/dist/common/src/application.schemas.d.ts +0 -1648
- package/dist/common/src/application.schemas.js +0 -949
- package/dist/common/src/application.schemas.js.map +0 -1
- package/dist/common/src/application.types.js.map +0 -1
- package/dist/common/src/backend-function.schemas.d.ts +0 -3
- package/dist/common/src/backend-function.schemas.js +0 -12
- package/dist/common/src/backend-function.schemas.js.map +0 -1
- package/dist/common/src/backend-function.types.d.ts +0 -4
- package/dist/common/src/backend-function.types.js +0 -3
- package/dist/common/src/backend-function.types.js.map +0 -1
- package/dist/common/src/backend-run.types.js.map +0 -1
- package/dist/common/src/bundle-api.types.js.map +0 -1
- package/dist/common/src/bundle-data.types.js.map +0 -1
- package/dist/common/src/communication.types.js.map +0 -1
- package/dist/common/src/context.types.js.map +0 -1
- package/dist/common/src/distributed-lock.context.js.map +0 -1
- package/dist/common/src/document.types.js.map +0 -1
- package/dist/common/src/graphql.context.js.map +0 -1
- package/dist/common/src/graphql.types.js.map +0 -1
- package/dist/common/src/heartbeat.types.d.ts +0 -4
- package/dist/common/src/heartbeat.types.js +0 -17
- package/dist/common/src/heartbeat.types.js.map +0 -1
- package/dist/common/src/http-status.enum.js.map +0 -1
- package/dist/common/src/index.d.ts +0 -56
- package/dist/common/src/index.js +0 -73
- package/dist/common/src/index.js.map +0 -1
- package/dist/common/src/integrations/ai_chatbot.types.js.map +0 -1
- package/dist/common/src/integrations/api.types.js.map +0 -1
- package/dist/common/src/integrations/auth.types.js.map +0 -1
- package/dist/common/src/integrations/database.types.js.map +0 -1
- package/dist/common/src/integrations/index.js.map +0 -1
- package/dist/common/src/integrations/observability.types.js.map +0 -1
- package/dist/common/src/logger.types.js.map +0 -1
- package/dist/common/src/metrics.types.d.ts +0 -73
- package/dist/common/src/metrics.types.js +0 -12
- package/dist/common/src/metrics.types.js.map +0 -1
- package/dist/common/src/mutation.context.js.map +0 -1
- package/dist/common/src/mutation.schemas.d.ts +0 -5
- package/dist/common/src/mutation.schemas.js +0 -115
- package/dist/common/src/mutation.schemas.js.map +0 -1
- package/dist/common/src/mutation.types.js.map +0 -1
- package/dist/common/src/native-query.context.js.map +0 -1
- package/dist/common/src/native-query.types.d.ts +0 -16
- package/dist/common/src/native-query.types.js +0 -3
- package/dist/common/src/native-query.types.js.map +0 -1
- package/dist/common/src/openapi-response.js.map +0 -1
- package/dist/common/src/openapi.types.js.map +0 -1
- package/dist/common/src/query/base-query-builder.d.ts +0 -38
- package/dist/common/src/query/base-query-builder.js +0 -40
- package/dist/common/src/query/base-query-builder.js.map +0 -1
- package/dist/common/src/query/index.d.ts +0 -4
- package/dist/common/src/query/index.js +0 -21
- package/dist/common/src/query/index.js.map +0 -1
- package/dist/common/src/query/pagination.d.ts +0 -46
- package/dist/common/src/query/pagination.js +0 -214
- package/dist/common/src/query/pagination.js.map +0 -1
- package/dist/common/src/query/query-context.js.map +0 -1
- package/dist/common/src/query/serialized-query.types.d.ts +0 -24
- package/dist/common/src/query/serialized-query.types.js +0 -3
- package/dist/common/src/query/serialized-query.types.js.map +0 -1
- package/dist/common/src/query.types.js.map +0 -1
- package/dist/common/src/regions.d.ts +0 -21
- package/dist/common/src/regions.js +0 -47
- package/dist/common/src/regions.js.map +0 -1
- package/dist/common/src/schema/schema.types.js.map +0 -1
- package/dist/common/src/secret.schemas.d.ts +0 -4
- package/dist/common/src/secret.schemas.js +0 -18
- package/dist/common/src/secret.schemas.js.map +0 -1
- package/dist/common/src/secret.types.js.map +0 -1
- package/dist/common/src/security.types.d.ts +0 -3
- package/dist/common/src/security.types.js +0 -3
- package/dist/common/src/security.types.js.map +0 -1
- package/dist/common/src/socket.schemas.d.ts +0 -3
- package/dist/common/src/socket.schemas.js +0 -58
- package/dist/common/src/socket.schemas.js.map +0 -1
- package/dist/common/src/socket.types.js.map +0 -1
- package/dist/common/src/time-units.d.ts +0 -11
- package/dist/common/src/time-units.js +0 -15
- package/dist/common/src/time-units.js.map +0 -1
- package/dist/common/src/trigger.types.d.ts +0 -15
- package/dist/common/src/trigger.types.js +0 -3
- package/dist/common/src/trigger.types.js.map +0 -1
- package/dist/common/src/types.js.map +0 -1
- package/dist/common/src/utils/array.d.ts +0 -8
- package/dist/common/src/utils/array.js +0 -55
- package/dist/common/src/utils/array.js.map +0 -1
- package/dist/common/src/utils/assert.js.map +0 -1
- package/dist/common/src/utils/error.d.ts +0 -4
- package/dist/common/src/utils/error.js +0 -11
- package/dist/common/src/utils/error.js.map +0 -1
- package/dist/common/src/utils/global.utils.js.map +0 -1
- package/dist/common/src/utils/http.js.map +0 -1
- package/dist/common/src/utils/id.d.ts +0 -2
- package/dist/common/src/utils/id.js +0 -22
- package/dist/common/src/utils/id.js.map +0 -1
- package/dist/common/src/utils/lock.manager.d.ts +0 -9
- package/dist/common/src/utils/lock.manager.js +0 -40
- package/dist/common/src/utils/lock.manager.js.map +0 -1
- package/dist/common/src/utils/object.js.map +0 -1
- package/dist/common/src/utils/serialization.js.map +0 -1
- package/dist/common/src/utils/transforms.d.ts +0 -18
- package/dist/common/src/utils/transforms.js +0 -105
- package/dist/common/src/utils/transforms.js.map +0 -1
- package/dist/common/src/utils/url.d.ts +0 -1
- package/dist/common/src/utils/url.js +0 -16
- package/dist/common/src/utils/url.js.map +0 -1
- package/dist/common/src/utils/validation.js.map +0 -1
- package/dist/common/src/webhook-response.d.ts +0 -6
- package/dist/common/src/webhook-response.js +0 -3
- package/dist/common/src/webhook-response.js.map +0 -1
- package/dist/common/src/websocket.impl.js.map +0 -1
- package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.context.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.context.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/ai-chatbot.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/api-call.context.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/api.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/application.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/bundle-api.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/bundle-data.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/communication.types.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/communication.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/context.types.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/context.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/distributed-lock.context.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/distributed-lock.context.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/document.types.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/graphql.context.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/graphql.context.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/graphql.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/http-status.enum.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/http-status.enum.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/ai_chatbot.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/api.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/auth.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/database.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/integrations/observability.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/logger.types.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/logger.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/mutation.context.d.ts +1 -1
- package/dist/{common/src → internal-common/src/public-types}/mutation.context.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/mutation.types.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/native-query.context.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/native-query.context.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/openapi.types.d.ts +0 -0
- package/dist/{common/src → internal-common/src/public-types}/openapi.types.js +0 -0
- package/dist/{common/src → internal-common/src/public-types}/query.types.d.ts +2 -2
- /package/dist/{common/src → internal-common/src/public-types}/secret.types.d.ts +0 -0
- /package/dist/{common/src → internal-common/src/public-types}/secret.types.js +0 -0
- /package/dist/{common/src → internal-common/src/public-types}/socket.types.d.ts +0 -0
- /package/dist/{common/src → internal-common/src/public-types}/socket.types.js +0 -0
- /package/dist/{common/src → internal-common/src/public-types}/types.d.ts +0 -0
- /package/dist/{common/src → internal-common/src/public-types}/types.js +0 -0
- /package/dist/{common/src → internal-common/src/types}/openapi-response.d.ts +0 -0
- /package/dist/{common/src → internal-common/src/types}/openapi-response.js +0 -0
- /package/dist/{common → internal-common}/src/utils/assert.d.ts +0 -0
- /package/dist/{common → internal-common}/src/utils/global.utils.d.ts +0 -0
- /package/dist/{common → internal-common}/src/utils/global.utils.js +0 -0
- /package/dist/{common → internal-common}/src/utils/http.d.ts +0 -0
- /package/dist/{common → internal-common}/src/utils/http.js +0 -0
- /package/dist/{common → internal-common}/src/utils/object.d.ts +0 -0
- /package/dist/{common → internal-common}/src/utils/object.js +0 -0
- /package/dist/{common → internal-common}/src/utils/serialization.d.ts +0 -0
- /package/dist/{common → internal-common}/src/utils/serialization.js +0 -0
- /package/dist/{common → internal-common}/src/websocket.impl.d.ts +0 -0
- /package/dist/{common → internal-common}/src/websocket.impl.js +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
4
|
export type SingleExecuteFunctionRequest = {
|
|
3
5
|
functionName: ServiceFunctionName;
|
|
4
6
|
params: Array<any>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { LocalBackendData, LogLevel, RunSecrets } from '@squidcloud/common';
|
|
2
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';
|
|
3
5
|
export type MessageFromDeveloperType = 'bundleData' | 'response';
|
|
4
6
|
interface BaseMessageFromDeveloper {
|
|
5
7
|
type: MessageFromDeveloperType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-dev.types.js","sourceRoot":"","sources":["../../../../internal-common/src/local-dev.types.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { ClientRequestId, IntegrationId } from './communication.types';
|
|
2
|
-
import { AiChatbotProfileMetadata } from './integrations';
|
|
2
|
+
import { AiChatbotProfileMetadata } from './integrations/ai_chatbot.types';
|
|
3
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
4
|
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
5
5
|
export type ApiKeySource = 'user' | 'system';
|
|
@@ -0,0 +1 @@
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { ApiHeaders, SecureApiRequest } from './api.types';
|
|
2
|
-
import { ApiEndpointId, HttpMethod } from './integrations';
|
|
2
|
+
import { ApiEndpointId, HttpMethod } from './integrations/api.types';
|
|
3
3
|
export declare class ApiCallContext {
|
|
4
4
|
readonly endpointId: ApiEndpointId;
|
|
5
5
|
readonly url: string;
|
|
@@ -0,0 +1 @@
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { IntegrationId } from './communication.types';
|
|
2
|
-
import { ApiEndpointId, HttpMethod } from './integrations';
|
|
2
|
+
import { ApiEndpointId, HttpMethod } from './integrations/api.types';
|
|
3
3
|
export type ApiHeaders = Record<string, string | number | boolean>;
|
|
4
4
|
export type ApiQueryParams = Record<string, string | number | boolean>;
|
|
5
5
|
export interface CallApiRequest {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/api.types.ts"],"names":[],"mappings":""}
|
|
@@ -2,7 +2,8 @@ import { RunPermissions } from './backend-run.types';
|
|
|
2
2
|
import { ApplicationBundleData, ServiceFunctionName } from './bundle-data.types';
|
|
3
3
|
import { AppId, EnvironmentId, IntegrationId } from './communication.types';
|
|
4
4
|
import { CollectionName } from './document.types';
|
|
5
|
-
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes,
|
|
5
|
+
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
|
|
6
|
+
import { IntegrationType } from './integration-types';
|
|
6
7
|
export type WebhookId = string;
|
|
7
8
|
export type TriggerId = string;
|
|
8
9
|
export type SchedulerId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/application.types.ts"],"names":[],"mappings":";;;AA+BA,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"}
|
|
@@ -34,8 +34,6 @@ export interface ExecuteFunctionPayload {
|
|
|
34
34
|
codeDir: string;
|
|
35
35
|
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
36
36
|
}
|
|
37
|
-
export declare function transformParams(params: Array<any>, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): unknown[];
|
|
38
|
-
export declare function transformResponse(functionResponse: any, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): any;
|
|
39
37
|
export type WorkerActionType = 'loadJs' | 'executeFunction' | 'ping' | 'terminate' | 'heartbeat';
|
|
40
38
|
export interface ActionRequest {
|
|
41
39
|
action: WorkerActionType;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertToRunSecrets = exports.ExecuteFunctionSecureAnnotations = void 0;
|
|
4
|
+
const secret_types_1 = require("./secret.types");
|
|
5
|
+
const assertic_1 = require("assertic");
|
|
6
|
+
exports.ExecuteFunctionSecureAnnotations = [
|
|
7
|
+
'secureDistributedLock',
|
|
8
|
+
'secureQuery',
|
|
9
|
+
'secureMutation',
|
|
10
|
+
'secureNamedQuery',
|
|
11
|
+
'secureNativeQuery',
|
|
12
|
+
'secureGraphQL',
|
|
13
|
+
'secureApi',
|
|
14
|
+
'secureAiChatbotChat',
|
|
15
|
+
'secureAiChatbotMutation',
|
|
16
|
+
];
|
|
17
|
+
function convertToRunSecrets(appSecrets) {
|
|
18
|
+
const result = {
|
|
19
|
+
backendApiKey: (0, assertic_1.truthy)(appSecrets.apiKeys[secret_types_1.BACKEND_API_KEY].value, 'Cannot find backend API key'),
|
|
20
|
+
custom: {},
|
|
21
|
+
};
|
|
22
|
+
for (const [key, valueWrapper] of Object.entries(appSecrets.custom)) {
|
|
23
|
+
result.custom[key] = valueWrapper.value;
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
exports.convertToRunSecrets = convertToRunSecrets;
|
|
28
|
+
//# sourceMappingURL=backend-run.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/backend-run.types.ts"],"names":[],"mappings":";;;AACA,iDAA6F;AAC7F,uCAAkC;AAkCrB,QAAA,gCAAgC,GAAG;IAC9C,uBAAuB;IACvB,aAAa;IACb,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,yBAAyB;CACjB,CAAC;AAyDX,SAAgB,mBAAmB,CAAC,UAA8B;IAChE,MAAM,MAAM,GAAe;QACzB,aAAa,EAAE,IAAA,iBAAM,EAAC,UAAU,CAAC,OAAO,CAAC,8BAAe,CAAC,CAAC,KAAK,EAAE,6BAA6B,CAAW;QACzG,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACnE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;KACzC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAVD,kDAUC"}
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import { AiChatbotActionType, DatabaseActionType } from './bundle-data.types';
|
|
2
|
-
import { Auth, RunContext } from './context.types';
|
|
3
|
-
import { DocumentData, SquidDocId } from './document.types';
|
|
4
1
|
import { MutationContext } from './mutation.context';
|
|
5
|
-
import { MutationType } from './mutation.types';
|
|
6
|
-
import { QueryContext } from './query';
|
|
7
|
-
import { SecretKey } from './secret.types';
|
|
8
2
|
import { ApiCallContext } from './api-call.context';
|
|
9
3
|
import { GraphqlContext } from './graphql.context';
|
|
10
4
|
import { DistributedLockContext } from './distributed-lock.context';
|
|
11
|
-
import { ClientId, EnvironmentId, SquidDeveloperId } from './communication.types';
|
|
12
|
-
import { ClientConnectionState } from './socket.types';
|
|
13
5
|
import { NativeQueryContext } from './native-query.context';
|
|
14
6
|
import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.context';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
export interface ServiceConfig {
|
|
23
|
-
context: RunContext;
|
|
24
|
-
secrets: Record<SecretKey, any>;
|
|
25
|
-
backendApiKey: string;
|
|
26
|
-
codeDir: string;
|
|
27
|
-
auth: Auth | undefined;
|
|
28
|
-
squidDeveloperId?: SquidDeveloperId;
|
|
29
|
-
environmentId?: EnvironmentId;
|
|
30
|
-
}
|
|
7
|
+
import { QueryContext } from './query-context';
|
|
8
|
+
import { AiChatbotActionType, DatabaseActionType } from './bundle-data.types';
|
|
9
|
+
import { ClientId } from './communication.types';
|
|
10
|
+
import { DocumentData, SquidDocId } from './document.types';
|
|
11
|
+
import { MutationType } from './mutation.types';
|
|
12
|
+
import { ClientConnectionState } from './socket.types';
|
|
31
13
|
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
32
14
|
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
33
15
|
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
@@ -54,6 +36,12 @@ export interface WebhookRequest<T = any> {
|
|
|
54
36
|
httpMethod: 'post' | 'get' | 'put' | 'delete';
|
|
55
37
|
files?: Array<SquidFile>;
|
|
56
38
|
}
|
|
39
|
+
export interface WebhookResponse {
|
|
40
|
+
headers: Record<string, any>;
|
|
41
|
+
body: any;
|
|
42
|
+
statusCode: number;
|
|
43
|
+
__isWebhookResponse__: true;
|
|
44
|
+
}
|
|
57
45
|
export interface SquidFile {
|
|
58
46
|
data: Uint8Array;
|
|
59
47
|
fieldName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-api.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-api.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchedulerConfig, SchedulerId, TriggerConfig, TriggerId, WebhookConfig, WebhookId } from './application.types';
|
|
2
2
|
import { IntegrationId } from './communication.types';
|
|
3
3
|
import { CollectionName } from './document.types';
|
|
4
|
-
import { ApiEndpointId } from './integrations';
|
|
4
|
+
import { ApiEndpointId } from './integrations/api.types';
|
|
5
5
|
import { OpenApiController } from './openapi.types';
|
|
6
6
|
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
7
7
|
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-data.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-data.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/communication.types.ts"],"names":[],"mappings":";;;AAKA,uCAAwC;AAI3B,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAC;AAK3C,QAAA,iBAAiB,GAAyB,CAAC,GAAG,uBAAe,CAAC,CAAC;AAoB5E,SAAgB,UAAU,CAAC,KAAY;IAErC,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtF,IAAA,uBAAY,EAAC,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,CAAC;IAChD,OAAO;QACL,KAAK,EAAE,eAAe;QACtB,aAAa,EAAE,CAAC,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,MAAM,CAAkB;QACzD,gBAAgB;KACjB,CAAC;AACJ,CAAC;AATD,gCASC;AAGD,SAAgB,sBAAsB,CAAC,KAAY,EAAE,aAAwC;IAC3F,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,GAAG,WAAW,CAAC,KAAK,GAAG,CAAC,aAAa,IAAI,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,aAAa,EAAE,EAAE,CAAC;AACxG,CAAC;AAHD,wDAGC;AAGD,SAAgB,8BAA8B,CAC5C,KAAY,EACZ,aAAwC,EACxC,WAAyC;IAEzC,OAAO,GAAG,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAClG,CAAC;AAND,wEAMC;AAGD,SAAgB,mBAAmB,CAAC,KAAY;IAC9C,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,IAAA,uBAAY,EACV,WAAW,CAAC,aAAa,KAAK,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,EACrE,uCAAuC,CACxC,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAPD,kDAOC;AAGD,SAAgB,oBAAoB,CAAC,KAAY;IAC/C,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,IAAA,uBAAY,EAAC,WAAW,CAAC,gBAAgB,EAAE,iCAAiC,CAAC,CAAC;AAChF,CAAC;AAHD,oDAGC;AAGD,SAAgB,cAAc,CAAC,KAAY;IACzC,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,sBAAsB,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;AAC9E,CAAC;AAHD,wCAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/context.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributed-lock.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/distributed-lock.context.ts"],"names":[],"mappings":";;;AACA,MAAa,sBAAsB;IAEjC,YAAqB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;CACvC;AAHD,wDAGC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hasDocumentDiff = exports.getSquidDocId = exports.parseSquidDocId = exports.SquidPlaceholderId = void 0;
|
|
4
4
|
const deep_diff_1 = require("deep-diff");
|
|
5
|
-
const serialization_1 = require("./utils/serialization");
|
|
6
5
|
const assertic_1 = require("assertic");
|
|
6
|
+
const serialization_1 = require("../utils/serialization");
|
|
7
7
|
exports.SquidPlaceholderId = '__squidId';
|
|
8
8
|
function parseSquidDocId(squidDocId) {
|
|
9
9
|
return (0, serialization_1.deserializeObj)(squidDocId);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/document.types.ts"],"names":[],"mappings":";;;AAAA,yCAAiC;AAEjC,uCAAyC;AACzC,0DAA+E;AAuBlE,QAAA,kBAAkB,GAAG,WAAW,CAAC;AA8B9C,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,IAAA,8BAAc,EAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AAFD,0CAEC;AAOD,SAAgB,aAAa,CAAC,GAAG,IAAS;IACxC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IACvB,MAAM,gBAAgB,GAAG,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;IAEvG,IAAI,CAAC,gBAAgB,CAAC,aAAa;QAAE,gBAAgB,CAAC,aAAa,GAAG,SAAS,CAAC;IAChF,OAAO,IAAA,qCAAqB,EAAC,gBAAgB,CAAC,CAAC;AACjD,CAAC;AAND,sCAMC;AAQD,SAAgB,eAAe,CAAC,SAAoC,EAAE,QAAmC;IACvG,MAAM,KAAK,GAAG,IAAA,mBAAQ,EAAC,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IAElD,MAAM,WAAW,GAAkB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAA6B,EAAE,EAAE;;QAC7D,OAAO,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAG,CAAC,CAAC,MAAK,WAAW,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,IAAI,SAAS,EAAE;QACb,IAAI,SAAS,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;YAC5C,MAAM,IAAI,KAAK,CAAC,kCAAkC,IAAA,qCAAqB,EAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACvF;QACD,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;QACrD,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC5C;IAED,MAAM,IAAI,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAC,IAA6B,EAAE,EAAE;;QAEzD,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAA,IAAI,CAAC,IAAI,0CAAG,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QAEvD,QAAQ,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,GAAG;gBAEN,OAAO,IAAA,wBAAa,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjC,KAAK,GAAG,CAAC;YACT,KAAK,GAAG,CAAC;YACT,KAAK,GAAG;gBACN,OAAO,IAAI,CAAC;SACf;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,CAAC,IAAI,CAAC;AAChB,CAAC;AAhCD,0CAgCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/graphql.context.ts"],"names":[],"mappings":";;;AASA,MAAa,cAAc;IASzB,YAAY,cAA8B;QACxC,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC;IAC5C,CAAC;CACF;AAfD,wCAeC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IntrospectionQuery } from 'graphql';
|
|
2
|
-
export { ExecutionResult, IntrospectionQuery } from 'graphql';
|
|
1
|
+
import { type IntrospectionQuery } from 'graphql';
|
|
2
|
+
export { type ExecutionResult, type IntrospectionQuery } from 'graphql';
|
|
3
3
|
export interface GraphQLRequest {
|
|
4
4
|
operationName?: string;
|
|
5
5
|
query?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/graphql.types.ts"],"names":[],"mappings":";;;AAkBa,QAAA,kBAAkB,GAAuB;IACpD,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5C,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE,SAAS;yBAChB;wBACD,IAAI,EAAE,EAAE;wBACR,YAAY,EAAE,KAAK;wBACnB,iBAAiB,EAAE,IAAI;qBACxB;iBACF;gBACD,UAAU,EAAE,EAAE;aACf;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;QACD,UAAU,EAAE,EAAE;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-status.enum.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/http-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAiDX;AAjDD,WAAY,UAAU;IACpB,qDAAc,CAAA;IACd,2EAAyB,CAAA;IACzB,yDAAgB,CAAA;IAChB,yDAAgB,CAAA;IAChB,yCAAQ,CAAA;IACR,mDAAa,CAAA;IACb,qDAAc,CAAA;IACd,+FAAmC,CAAA;IACnC,yDAAgB,CAAA;IAChB,+DAAmB,CAAA;IACnB,mEAAqB,CAAA;IACrB,uDAAe,CAAA;IACf,uEAAuB,CAAA;IACvB,+CAAW,CAAA;IACX,uDAAe,CAAA;IACf,6DAAkB,CAAA;IAClB,yEAAwB,CAAA;IACxB,yEAAwB,CAAA;IACxB,2DAAiB,CAAA;IACjB,6DAAkB,CAAA;IAClB,qEAAsB,CAAA;IACtB,uDAAe,CAAA;IACf,uDAAe,CAAA;IACf,yEAAwB,CAAA;IACxB,iEAAoB,CAAA;IACpB,+FAAmC,CAAA;IACnC,mEAAqB,CAAA;IACrB,qDAAc,CAAA;IACd,6CAAU,CAAA;IACV,mEAAqB,CAAA;IACrB,2EAAyB,CAAA;IACzB,uEAAuB,CAAA;IACvB,6DAAkB,CAAA;IAClB,iFAA4B,CAAA;IAC5B,mGAAqC,CAAA;IACrC,yEAAwB,CAAA;IACxB,+DAAmB,CAAA;IACnB,2DAAiB,CAAA;IACjB,6EAA0B,CAAA;IAC1B,uEAAuB,CAAA;IACvB,+EAA2B,CAAA;IAC3B,uEAAuB,CAAA;IACvB,+EAA2B,CAAA;IAC3B,mEAAqB,CAAA;IACrB,2DAAiB,CAAA;IACjB,2EAAyB,CAAA;IACzB,mEAAqB,CAAA;IACrB,yFAAgC,CAAA;AAClC,CAAC,EAjDW,UAAU,0BAAV,UAAU,QAiDrB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare enum IntegrationCategory {
|
|
2
|
+
'database' = "database",
|
|
3
|
+
'api' = "api",
|
|
4
|
+
'observability' = "observability",
|
|
5
|
+
'crm' = "crm",
|
|
6
|
+
'auth' = "auth",
|
|
7
|
+
'ai' = "ai"
|
|
8
|
+
}
|
|
9
|
+
export declare enum IntegrationType {
|
|
10
|
+
'built_in_db' = "built_in_db",
|
|
11
|
+
'mongo' = "mongo",
|
|
12
|
+
'mysql' = "mysql",
|
|
13
|
+
'mssql' = "mssql",
|
|
14
|
+
'postgres' = "postgres",
|
|
15
|
+
'cockroach' = "cockroach",
|
|
16
|
+
'api' = "api",
|
|
17
|
+
'graphql' = "graphql",
|
|
18
|
+
'snowflake' = "snowflake",
|
|
19
|
+
'datadog' = "datadog",
|
|
20
|
+
'newrelic' = "newrelic",
|
|
21
|
+
'auth0' = "auth0",
|
|
22
|
+
'jwt_rsa' = "jwt_rsa",
|
|
23
|
+
'jwt_hmac' = "jwt_hmac",
|
|
24
|
+
'ai_chatbot' = "ai_chatbot",
|
|
25
|
+
'cognito' = "cognito",
|
|
26
|
+
'okta' = "okta",
|
|
27
|
+
'algolia' = "algolia",
|
|
28
|
+
'elastic_observability' = "elastic_observability",
|
|
29
|
+
'elastic_search' = "elastic_search",
|
|
30
|
+
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
31
|
+
'sentry' = "sentry",
|
|
32
|
+
'sap_hana' = "sap_hana",
|
|
33
|
+
'salesforce_crm' = "salesforce_crm",
|
|
34
|
+
'documentdb' = "documentdb",
|
|
35
|
+
'dynamodb' = "dynamodb",
|
|
36
|
+
'cassandra' = "cassandra",
|
|
37
|
+
'clickhouse' = "clickhouse",
|
|
38
|
+
'alloydb' = "alloydb",
|
|
39
|
+
'spanner' = "spanner",
|
|
40
|
+
'db2' = "db2",
|
|
41
|
+
'mariadb' = "mariadb",
|
|
42
|
+
'oracledb' = "oracledb",
|
|
43
|
+
'pinot' = "pinot",
|
|
44
|
+
'redis' = "redis",
|
|
45
|
+
'xata' = "xata",
|
|
46
|
+
'azure_sql' = "azure_sql",
|
|
47
|
+
'azure_postgresql' = "azure_postgresql",
|
|
48
|
+
'azure_cosmosdb' = "azure_cosmosdb",
|
|
49
|
+
'firestore' = "firestore",
|
|
50
|
+
'bigquery' = "bigquery",
|
|
51
|
+
'cloudsql' = "cloudsql"
|
|
52
|
+
}
|
|
53
|
+
export declare enum IntegrationSchemaType {
|
|
54
|
+
'data' = "data",
|
|
55
|
+
'api' = "api",
|
|
56
|
+
'graphql' = "graphql"
|
|
57
|
+
}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
__exportStar(require("./ai_chatbot.types"), exports);
|
|
19
|
-
__exportStar(require("./api.types"), exports);
|
|
20
|
-
__exportStar(require("./auth.types"), exports);
|
|
21
|
-
__exportStar(require("./database.types"), exports);
|
|
22
|
-
__exportStar(require("./observability.types"), exports);
|
|
3
|
+
exports.IntegrationSchemaType = exports.IntegrationType = exports.IntegrationCategory = void 0;
|
|
23
4
|
var IntegrationCategory;
|
|
24
5
|
(function (IntegrationCategory) {
|
|
25
6
|
IntegrationCategory["database"] = "database";
|
|
@@ -80,41 +61,4 @@ var IntegrationSchemaType;
|
|
|
80
61
|
IntegrationSchemaType["api"] = "api";
|
|
81
62
|
IntegrationSchemaType["graphql"] = "graphql";
|
|
82
63
|
})(IntegrationSchemaType || (exports.IntegrationSchemaType = IntegrationSchemaType = {}));
|
|
83
|
-
|
|
84
|
-
IntegrationType.built_in_db,
|
|
85
|
-
IntegrationType.mongo,
|
|
86
|
-
IntegrationType.mysql,
|
|
87
|
-
IntegrationType.bigquery,
|
|
88
|
-
IntegrationType.mssql,
|
|
89
|
-
IntegrationType.postgres,
|
|
90
|
-
IntegrationType.cockroach,
|
|
91
|
-
IntegrationType.snowflake,
|
|
92
|
-
IntegrationType.oracledb,
|
|
93
|
-
IntegrationType.pinot,
|
|
94
|
-
];
|
|
95
|
-
exports.ApiIntegrationTypes = [IntegrationType.api, IntegrationType.graphql];
|
|
96
|
-
exports.ObservabilityIntegrationTypes = [IntegrationType.datadog, IntegrationType.newrelic];
|
|
97
|
-
exports.AuthIntegrationTypes = [
|
|
98
|
-
IntegrationType.auth0,
|
|
99
|
-
IntegrationType.jwt_rsa,
|
|
100
|
-
IntegrationType.jwt_hmac,
|
|
101
|
-
IntegrationType.cognito,
|
|
102
|
-
IntegrationType.okta,
|
|
103
|
-
];
|
|
104
|
-
function isDataIntegrationType(type) {
|
|
105
|
-
return exports.DatabaseIntegrationTypes.includes(type);
|
|
106
|
-
}
|
|
107
|
-
exports.isDataIntegrationType = isDataIntegrationType;
|
|
108
|
-
function isDataIntegration(integration) {
|
|
109
|
-
return isDataIntegrationType(integration.type);
|
|
110
|
-
}
|
|
111
|
-
exports.isDataIntegration = isDataIntegration;
|
|
112
|
-
function isAuthIntegrationType(type) {
|
|
113
|
-
return exports.AuthIntegrationTypes.includes(type);
|
|
114
|
-
}
|
|
115
|
-
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
116
|
-
function isAuthIntegration(integration) {
|
|
117
|
-
return isAuthIntegrationType(integration.type);
|
|
118
|
-
}
|
|
119
|
-
exports.isAuthIntegration = isAuthIntegration;
|
|
120
|
-
//# sourceMappingURL=index.js.map
|
|
64
|
+
//# sourceMappingURL=integration-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,4CAAuB,CAAA;IACvB,kCAAa,CAAA;IACb,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,gCAAW,CAAA;AACb,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,IAAY,eA4CX;AA5CD,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;IAEf,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,EA5CW,eAAe,+BAAf,eAAe,QA4C1B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,4CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
|
package/dist/{common/src → internal-common/src/public-types}/integrations/ai_chatbot.types.d.ts
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseIntegrationConfig } from './schemas';
|
|
1
2
|
import { AiModelName } from '../ai-chatbot.types';
|
|
2
3
|
import { IntegrationId } from '../communication.types';
|
|
3
|
-
import {
|
|
4
|
+
import { IntegrationType } from '../integration-types';
|
|
4
5
|
export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
|
|
5
6
|
type: IntegrationType.ai_chatbot;
|
|
6
7
|
configuration: AiChatbotConfiguration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai_chatbot.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/ai_chatbot.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FieldName } from '../document.types';
|
|
2
2
|
import { IntrospectionQuery } from '../graphql.types';
|
|
3
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema
|
|
3
|
+
import { BaseIntegrationConfig, BaseIntegrationSchema } from './schemas';
|
|
4
|
+
import { IntegrationSchemaType, IntegrationType } from '../integration-types';
|
|
4
5
|
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
5
6
|
export type ApiEndpointId = string;
|
|
6
7
|
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/api.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseIntegrationConfig
|
|
1
|
+
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
+
import { IntegrationType } from '../integration-types';
|
|
2
3
|
export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
|
|
3
4
|
type: IntegrationType.auth0;
|
|
4
5
|
configuration: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/auth.types.ts"],"names":[],"mappings":""}
|
package/dist/{common/src → internal-common/src/public-types}/integrations/database.types.d.ts
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseIntegrationConfig, BaseIntegrationSchema, DatabaseIntegrationType } from './schemas';
|
|
2
|
+
import { CollectionSchema } from '../../schema/schema.types';
|
|
1
3
|
import { CollectionName } from '../document.types';
|
|
2
|
-
import {
|
|
3
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema, DatabaseIntegrationType, IntegrationSchemaType, IntegrationType } from './index';
|
|
4
|
+
import { IntegrationSchemaType, IntegrationType } from '../integration-types';
|
|
4
5
|
export interface MongoConnectionSecretOptions {
|
|
5
6
|
password?: string;
|
|
6
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/database.types.ts"],"names":[],"mappings":""}
|
package/dist/{common/src → internal-common/src/public-types}/integrations/observability.types.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseIntegrationConfig
|
|
1
|
+
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
+
import { IntegrationType } from '../integration-types';
|
|
2
3
|
export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
|
|
3
4
|
type: IntegrationType.datadog;
|
|
4
5
|
configuration: DatadogIntegrationConfiguration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/observability.types.ts"],"names":[],"mappings":";;;AAqBa,QAAA,gBAAgB,GAAkC;IAC7D,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,YAAY;IACjB,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEW,QAAA,iBAAiB,GAAkC;IAC9D,GAAG,EAAE,wCAAwC;IAC7C,GAAG,EAAE,4CAA4C;IACjD,GAAG,EAAE,4CAA4C;IACjD,GAAG,EAAE,uCAAuC;IAC5C,GAAG,EAAE,4CAA4C;IACjD,SAAS,EAAE,uCAAuC;CACnD,CAAC;AASW,QAAA,iBAAiB,GAAmC;IAC/D,SAAS,EAAE,WAAW;IACtB,EAAE,EAAE,QAAQ;CACb,CAAC"}
|
|
@@ -1,71 +1,10 @@
|
|
|
1
|
-
export * from './ai_chatbot.types';
|
|
2
|
-
export * from './api.types';
|
|
3
|
-
export * from './auth.types';
|
|
4
|
-
export * from './database.types';
|
|
5
|
-
export * from './observability.types';
|
|
6
|
-
import { IntegrationId } from '../communication.types';
|
|
7
1
|
import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
|
|
8
2
|
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema, TestGraphQLDataConnectionRequest } from './api.types';
|
|
9
3
|
import { Auth0IntegrationConfig, CognitoIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
|
|
10
4
|
import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PinotIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
|
|
11
5
|
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'api' = "api",
|
|
15
|
-
'observability' = "observability",
|
|
16
|
-
'crm' = "crm",
|
|
17
|
-
'auth' = "auth",
|
|
18
|
-
'ai' = "ai"
|
|
19
|
-
}
|
|
20
|
-
export declare enum IntegrationType {
|
|
21
|
-
'built_in_db' = "built_in_db",
|
|
22
|
-
'mongo' = "mongo",
|
|
23
|
-
'mysql' = "mysql",
|
|
24
|
-
'mssql' = "mssql",
|
|
25
|
-
'postgres' = "postgres",
|
|
26
|
-
'cockroach' = "cockroach",
|
|
27
|
-
'api' = "api",
|
|
28
|
-
'graphql' = "graphql",
|
|
29
|
-
'snowflake' = "snowflake",
|
|
30
|
-
'datadog' = "datadog",
|
|
31
|
-
'newrelic' = "newrelic",
|
|
32
|
-
'auth0' = "auth0",
|
|
33
|
-
'jwt_rsa' = "jwt_rsa",
|
|
34
|
-
'jwt_hmac' = "jwt_hmac",
|
|
35
|
-
'ai_chatbot' = "ai_chatbot",
|
|
36
|
-
'cognito' = "cognito",
|
|
37
|
-
'okta' = "okta",
|
|
38
|
-
'algolia' = "algolia",
|
|
39
|
-
'elastic_observability' = "elastic_observability",
|
|
40
|
-
'elastic_search' = "elastic_search",
|
|
41
|
-
'elastic_enterprise_search' = "elastic_enterprise_search",
|
|
42
|
-
'sentry' = "sentry",
|
|
43
|
-
'sap_hana' = "sap_hana",
|
|
44
|
-
'salesforce_crm' = "salesforce_crm",
|
|
45
|
-
'documentdb' = "documentdb",
|
|
46
|
-
'dynamodb' = "dynamodb",
|
|
47
|
-
'cassandra' = "cassandra",
|
|
48
|
-
'clickhouse' = "clickhouse",
|
|
49
|
-
'alloydb' = "alloydb",
|
|
50
|
-
'spanner' = "spanner",
|
|
51
|
-
'db2' = "db2",
|
|
52
|
-
'mariadb' = "mariadb",
|
|
53
|
-
'oracledb' = "oracledb",
|
|
54
|
-
'pinot' = "pinot",
|
|
55
|
-
'redis' = "redis",
|
|
56
|
-
'xata' = "xata",
|
|
57
|
-
'azure_sql' = "azure_sql",
|
|
58
|
-
'azure_postgresql' = "azure_postgresql",
|
|
59
|
-
'azure_cosmosdb' = "azure_cosmosdb",
|
|
60
|
-
'firestore' = "firestore",
|
|
61
|
-
'bigquery' = "bigquery",
|
|
62
|
-
'cloudsql' = "cloudsql"
|
|
63
|
-
}
|
|
64
|
-
export declare enum IntegrationSchemaType {
|
|
65
|
-
'data' = "data",
|
|
66
|
-
'api' = "api",
|
|
67
|
-
'graphql' = "graphql"
|
|
68
|
-
}
|
|
6
|
+
import { IntegrationId } from '../communication.types';
|
|
7
|
+
import { IntegrationSchemaType, IntegrationType } from '../integration-types';
|
|
69
8
|
export interface IntegrationConfigTypes {
|
|
70
9
|
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
71
10
|
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.AuthIntegrationTypes = exports.ObservabilityIntegrationTypes = exports.ApiIntegrationTypes = exports.DatabaseIntegrationTypes = void 0;
|
|
4
|
+
const integration_types_1 = require("../integration-types");
|
|
5
|
+
exports.DatabaseIntegrationTypes = [
|
|
6
|
+
integration_types_1.IntegrationType.built_in_db,
|
|
7
|
+
integration_types_1.IntegrationType.mongo,
|
|
8
|
+
integration_types_1.IntegrationType.mysql,
|
|
9
|
+
integration_types_1.IntegrationType.bigquery,
|
|
10
|
+
integration_types_1.IntegrationType.mssql,
|
|
11
|
+
integration_types_1.IntegrationType.postgres,
|
|
12
|
+
integration_types_1.IntegrationType.cockroach,
|
|
13
|
+
integration_types_1.IntegrationType.snowflake,
|
|
14
|
+
integration_types_1.IntegrationType.oracledb,
|
|
15
|
+
integration_types_1.IntegrationType.pinot,
|
|
16
|
+
];
|
|
17
|
+
exports.ApiIntegrationTypes = [integration_types_1.IntegrationType.api, integration_types_1.IntegrationType.graphql];
|
|
18
|
+
exports.ObservabilityIntegrationTypes = [integration_types_1.IntegrationType.datadog, integration_types_1.IntegrationType.newrelic];
|
|
19
|
+
exports.AuthIntegrationTypes = [
|
|
20
|
+
integration_types_1.IntegrationType.auth0,
|
|
21
|
+
integration_types_1.IntegrationType.jwt_rsa,
|
|
22
|
+
integration_types_1.IntegrationType.jwt_hmac,
|
|
23
|
+
integration_types_1.IntegrationType.cognito,
|
|
24
|
+
integration_types_1.IntegrationType.okta,
|
|
25
|
+
];
|
|
26
|
+
function isDataIntegrationType(type) {
|
|
27
|
+
return exports.DatabaseIntegrationTypes.includes(type);
|
|
28
|
+
}
|
|
29
|
+
exports.isDataIntegrationType = isDataIntegrationType;
|
|
30
|
+
function isDataIntegration(integration) {
|
|
31
|
+
return isDataIntegrationType(integration.type);
|
|
32
|
+
}
|
|
33
|
+
exports.isDataIntegration = isDataIntegration;
|
|
34
|
+
function isAuthIntegrationType(type) {
|
|
35
|
+
return exports.AuthIntegrationTypes.includes(type);
|
|
36
|
+
}
|
|
37
|
+
exports.isAuthIntegrationType = isAuthIntegrationType;
|
|
38
|
+
function isAuthIntegration(integration) {
|
|
39
|
+
return isAuthIntegrationType(integration.type);
|
|
40
|
+
}
|
|
41
|
+
exports.isAuthIntegration = isAuthIntegration;
|
|
42
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/schemas.ts"],"names":[],"mappings":";;;AAgCA,4DAA8E;AA8CjE,QAAA,wBAAwB,GAAG;IACtC,mCAAe,CAAC,WAAW;IAC3B,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,SAAS;IACzB,mCAAe,CAAC,SAAS;IACzB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,KAAK;CACb,CAAC;AAIE,QAAA,mBAAmB,GAAG,CAAC,mCAAe,CAAC,GAAG,EAAE,mCAAe,CAAC,OAAO,CAAU,CAAC;AAE9E,QAAA,6BAA6B,GAAG,CAAC,mCAAe,CAAC,OAAO,EAAE,mCAAe,CAAC,QAAQ,CAAU,CAAC;AAE7F,QAAA,oBAAoB,GAAG;IAClC,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,OAAO;IACvB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,OAAO;IACvB,mCAAe,CAAC,IAAI;CACZ,CAAC;AAWX,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,gCAAwB,CAAC,QAAQ,CAAC,IAA+B,CAAC,CAAC;AAC5E,CAAC;AAFD,sDAEC;AAED,SAAgB,iBAAiB,CAAC,WAAgB;IAChD,OAAO,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAFD,8CAEC;AAED,SAAgB,qBAAqB,CAAC,IAAqB;IACzD,OAAQ,4BAAmD,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC;AAFD,sDAEC;AAED,SAAgB,iBAAiB,CAAC,WAAgB;IAChD,OAAO,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/logger.types.ts"],"names":[],"mappings":";;;AAgBA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/mutation.context.ts"],"names":[],"mappings":";;;AAAA,4BAA4B;AAM5B,MAAa,eAAe;IAI1B,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,0CA4BC"}
|
|
@@ -4,7 +4,7 @@ exports.reduceMutations = exports.convertInsertToUpdate = exports.applyUpdateMut
|
|
|
4
4
|
const assertic_1 = require("assertic");
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
const rxjs_1 = require("rxjs");
|
|
7
|
-
const object_1 = require("
|
|
7
|
+
const object_1 = require("../utils/object");
|
|
8
8
|
function applyStringFn(initialValue, propertyMutation) {
|
|
9
9
|
switch (propertyMutation.fn) {
|
|
10
10
|
case 'trim':
|