@squidcloud/local-backend 1.0.67 → 1.0.68
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/common/src/ai-assistant.context.d.ts +13 -13
- package/dist/common/src/ai-assistant.context.js +19 -19
- package/dist/common/src/ai-assistant.schemas.d.ts +243 -243
- package/dist/common/src/ai-assistant.schemas.js +210 -210
- package/dist/common/src/ai-assistant.types.d.ts +85 -90
- package/dist/common/src/ai-assistant.types.js +11 -11
- package/dist/common/src/ai-assistant.types.js.map +1 -1
- package/dist/common/src/api-call.context.d.ts +13 -13
- package/dist/common/src/api-call.context.js +16 -16
- package/dist/common/src/api.types.d.ts +23 -23
- package/dist/common/src/api.types.js +2 -2
- package/dist/common/src/application.schemas.d.ts +1312 -1312
- package/dist/common/src/application.schemas.js +860 -860
- package/dist/common/src/application.types.d.ts +186 -186
- package/dist/common/src/application.types.js +89 -89
- package/dist/common/src/backend-function.schemas.d.ts +3 -3
- package/dist/common/src/backend-function.schemas.js +12 -12
- package/dist/common/src/backend-function.types.d.ts +6 -6
- package/dist/common/src/backend-function.types.js +2 -2
- package/dist/common/src/backend-run.types.d.ts +54 -54
- package/dist/common/src/backend-run.types.js +96 -96
- package/dist/common/src/bundle-api.types.d.ts +63 -63
- package/dist/common/src/bundle-api.types.js +2 -2
- package/dist/common/src/bundle-data.types.d.ts +59 -59
- package/dist/common/src/bundle-data.types.js +2 -2
- package/dist/common/src/communication.types.d.ts +18 -18
- package/dist/common/src/communication.types.js +40 -40
- package/dist/common/src/context.types.d.ts +24 -24
- package/dist/common/src/context.types.js +2 -2
- package/dist/common/src/distributed-lock.context.d.ts +5 -5
- package/dist/common/src/distributed-lock.context.js +10 -10
- package/dist/common/src/document.types.d.ts +32 -32
- package/dist/common/src/document.types.js +50 -50
- package/dist/common/src/graphql.context.d.ts +14 -14
- package/dist/common/src/graphql.context.js +12 -12
- package/dist/common/src/graphql.types.d.ts +11 -11
- package/dist/common/src/graphql.types.js +34 -34
- package/dist/common/src/heartbeat.types.d.ts +4 -4
- package/dist/common/src/heartbeat.types.js +16 -16
- package/dist/common/src/http-status.enum.d.ts +50 -50
- package/dist/common/src/http-status.enum.js +54 -54
- package/dist/common/src/index.d.ts +55 -55
- package/dist/common/src/index.js +71 -71
- package/dist/common/src/integrations/ai_assistant.types.d.ts +26 -24
- package/dist/common/src/integrations/ai_assistant.types.js +2 -2
- package/dist/common/src/integrations/api.types.d.ts +80 -80
- package/dist/common/src/integrations/api.types.js +2 -2
- package/dist/common/src/integrations/auth.types.d.ts +39 -39
- package/dist/common/src/integrations/auth.types.js +2 -2
- package/dist/common/src/integrations/database.types.d.ts +231 -231
- package/dist/common/src/integrations/database.types.js +2 -2
- package/dist/common/src/integrations/index.d.ts +126 -124
- package/dist/common/src/integrations/index.js +113 -111
- package/dist/common/src/integrations/index.js.map +1 -1
- package/dist/common/src/integrations/observability.types.d.ts +23 -23
- package/dist/common/src/integrations/observability.types.js +23 -23
- package/dist/common/src/logger.types.d.ts +21 -21
- package/dist/common/src/logger.types.js +11 -11
- package/dist/common/src/metrics.types.d.ts +73 -73
- package/dist/common/src/metrics.types.js +11 -11
- package/dist/common/src/mutation.context.d.ts +13 -13
- package/dist/common/src/mutation.context.js +26 -26
- package/dist/common/src/mutation.schemas.d.ts +5 -5
- package/dist/common/src/mutation.schemas.js +114 -114
- package/dist/common/src/mutation.types.d.ts +63 -63
- package/dist/common/src/mutation.types.js +142 -142
- package/dist/common/src/named-query.context.d.ts +4 -4
- package/dist/common/src/named-query.context.js +9 -9
- package/dist/common/src/named-query.schemas.d.ts +3 -3
- package/dist/common/src/named-query.schemas.js +13 -13
- package/dist/common/src/named-query.types.d.ts +8 -8
- package/dist/common/src/named-query.types.js +2 -2
- package/dist/common/src/query/base-query-builder.d.ts +37 -37
- package/dist/common/src/query/base-query-builder.js +36 -36
- package/dist/common/src/query/index.d.ts +4 -4
- package/dist/common/src/query/index.js +20 -20
- package/dist/common/src/query/pagination.d.ts +42 -42
- package/dist/common/src/query/pagination.js +164 -164
- package/dist/common/src/query/query-context.d.ts +47 -47
- package/dist/common/src/query/query-context.js +159 -159
- package/dist/common/src/query/serialized-query.types.d.ts +24 -24
- package/dist/common/src/query/serialized-query.types.js +2 -2
- package/dist/common/src/query.types.d.ts +86 -86
- package/dist/common/src/query.types.js +153 -153
- package/dist/common/src/regions.d.ts +21 -21
- package/dist/common/src/regions.js +46 -46
- package/dist/common/src/schema/schema.types.d.ts +30 -30
- package/dist/common/src/schema/schema.types.js +172 -172
- package/dist/common/src/secret.schemas.d.ts +6 -6
- package/dist/common/src/secret.schemas.js +38 -38
- package/dist/common/src/secret.types.d.ts +49 -49
- package/dist/common/src/secret.types.js +5 -5
- package/dist/common/src/security.types.d.ts +3 -3
- package/dist/common/src/security.types.js +2 -2
- package/dist/common/src/socket.schemas.d.ts +3 -3
- package/dist/common/src/socket.schemas.js +58 -58
- package/dist/common/src/socket.types.d.ts +112 -112
- package/dist/common/src/socket.types.js +2 -2
- package/dist/common/src/time-units.d.ts +5 -5
- package/dist/common/src/time-units.js +8 -8
- package/dist/common/src/trigger.types.d.ts +15 -15
- package/dist/common/src/trigger.types.js +2 -2
- package/dist/common/src/types.d.ts +21 -21
- package/dist/common/src/types.js +2 -2
- package/dist/common/src/utils/array.d.ts +8 -8
- package/dist/common/src/utils/array.js +54 -54
- package/dist/common/src/utils/assert.d.ts +8 -8
- package/dist/common/src/utils/assert.js +49 -49
- package/dist/common/src/utils/error.d.ts +4 -4
- package/dist/common/src/utils/error.js +10 -10
- package/dist/common/src/utils/global.utils.d.ts +10 -10
- package/dist/common/src/utils/global.utils.js +46 -46
- package/dist/common/src/utils/http.d.ts +2 -2
- package/dist/common/src/utils/http.js +41 -41
- package/dist/common/src/utils/id.d.ts +2 -2
- package/dist/common/src/utils/id.js +21 -21
- package/dist/common/src/utils/lock.manager.d.ts +9 -9
- package/dist/common/src/utils/lock.manager.js +39 -39
- package/dist/common/src/utils/nullish.d.ts +2 -2
- package/dist/common/src/utils/nullish.js +11 -11
- package/dist/common/src/utils/object.d.ts +5 -5
- package/dist/common/src/utils/object.js +75 -75
- package/dist/common/src/utils/serialization.d.ts +6 -6
- package/dist/common/src/utils/serialization.js +77 -77
- package/dist/common/src/utils/transforms.d.ts +18 -18
- package/dist/common/src/utils/transforms.js +92 -92
- package/dist/common/src/utils/url.d.ts +1 -1
- package/dist/common/src/utils/url.js +15 -15
- package/dist/common/src/utils/validation.d.ts +17 -17
- package/dist/common/src/utils/validation.js +209 -209
- package/dist/common/src/webhook-response.d.ts +6 -6
- package/dist/common/src/webhook-response.js +2 -2
- package/dist/common/src/websocket.impl.d.ts +21 -21
- package/dist/common/src/websocket.impl.js +76 -76
- package/dist/internal-common/src/async-queue.d.ts +4 -4
- package/dist/internal-common/src/async-queue.js +17 -17
- package/dist/internal-common/src/code-executor.types.d.ts +13 -13
- package/dist/internal-common/src/code-executor.types.js +2 -2
- package/dist/internal-common/src/dao.types.d.ts +46 -46
- package/dist/internal-common/src/dao.types.js +2 -2
- package/dist/internal-common/src/environment/environment.types.d.ts +74 -74
- package/dist/internal-common/src/environment/environment.types.js +2 -2
- package/dist/internal-common/src/environment/index.d.ts +6 -6
- package/dist/internal-common/src/environment/index.js +27 -27
- package/dist/internal-common/src/environment/local.environment.d.ts +2 -2
- package/dist/internal-common/src/environment/local.environment.js +62 -62
- package/dist/internal-common/src/filters/custom-exception.filter.d.ts +6 -6
- package/dist/internal-common/src/filters/custom-exception.filter.js +44 -44
- package/dist/internal-common/src/index.d.ts +14 -14
- package/dist/internal-common/src/index.js +32 -32
- package/dist/internal-common/src/interceptors/body.interceptor.d.ts +5 -5
- package/dist/internal-common/src/interceptors/body.interceptor.js +24 -24
- package/dist/internal-common/src/kafka/kafka.manager.d.ts +22 -22
- package/dist/internal-common/src/kafka/kafka.manager.js +129 -129
- package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -17
- package/dist/internal-common/src/kafka/kafka.types.js +2 -2
- package/dist/internal-common/src/kafka-observability-publisher.d.ts +11 -11
- package/dist/internal-common/src/kafka-observability-publisher.js +20 -20
- package/dist/internal-common/src/local-dev.types.d.ts +35 -35
- package/dist/internal-common/src/local-dev.types.js +2 -2
- package/dist/internal-common/src/observability-publisher.d.ts +9 -9
- package/dist/internal-common/src/observability-publisher.js +58 -58
- package/dist/internal-common/src/observability.types.d.ts +17 -17
- package/dist/internal-common/src/observability.types.js +2 -2
- package/dist/internal-common/src/shutdown.manager.d.ts +20 -20
- package/dist/internal-common/src/shutdown.manager.js +75 -75
- package/dist/internal-common/src/utils.d.ts +5 -5
- package/dist/internal-common/src/utils.js +29 -29
- package/dist/local-backend/src/index.d.ts +4 -4
- package/dist/local-backend/src/index.js +20 -20
- package/dist/local-backend/src/local-backend-socket.service.d.ts +19 -19
- package/dist/local-backend/src/local-backend-socket.service.js +110 -110
- package/dist/local-backend/src/local-backend.app.d.ts +2 -2
- package/dist/local-backend/src/local-backend.app.js +19 -19
- package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
- package/dist/local-backend/src/local-backend.controller.js +49 -49
- package/dist/local-backend/src/local-backend.module.d.ts +8 -8
- package/dist/local-backend/src/local-backend.module.js +53 -53
- package/dist/local-backend/src/local-backend.service.d.ts +15 -15
- package/dist/local-backend/src/local-backend.service.js +165 -165
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpStatus = void 0;
|
|
4
|
-
var HttpStatus;
|
|
5
|
-
(function (HttpStatus) {
|
|
6
|
-
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
|
7
|
-
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
8
|
-
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
|
9
|
-
HttpStatus[HttpStatus["EARLYHINTS"] = 103] = "EARLYHINTS";
|
|
10
|
-
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
11
|
-
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
|
12
|
-
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
|
13
|
-
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
14
|
-
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
15
|
-
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
16
|
-
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
17
|
-
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
18
|
-
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
19
|
-
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
|
20
|
-
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
21
|
-
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
22
|
-
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
23
|
-
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
24
|
-
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
25
|
-
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
26
|
-
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
27
|
-
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
28
|
-
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
29
|
-
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
30
|
-
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
31
|
-
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
32
|
-
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
33
|
-
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
|
34
|
-
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
|
35
|
-
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
36
|
-
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
37
|
-
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
38
|
-
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
39
|
-
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
40
|
-
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
41
|
-
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
42
|
-
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
43
|
-
HttpStatus[HttpStatus["MISDIRECTED"] = 421] = "MISDIRECTED";
|
|
44
|
-
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
45
|
-
HttpStatus[HttpStatus["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
46
|
-
HttpStatus[HttpStatus["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
47
|
-
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
48
|
-
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
49
|
-
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
50
|
-
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
51
|
-
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
52
|
-
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
53
|
-
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
54
|
-
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatus = void 0;
|
|
4
|
+
var HttpStatus;
|
|
5
|
+
(function (HttpStatus) {
|
|
6
|
+
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
|
7
|
+
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
8
|
+
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
|
9
|
+
HttpStatus[HttpStatus["EARLYHINTS"] = 103] = "EARLYHINTS";
|
|
10
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
11
|
+
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
|
12
|
+
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
|
13
|
+
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
14
|
+
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
15
|
+
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
16
|
+
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
17
|
+
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
18
|
+
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
19
|
+
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
|
20
|
+
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
21
|
+
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
22
|
+
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
23
|
+
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
24
|
+
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
25
|
+
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
26
|
+
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
27
|
+
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
28
|
+
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
29
|
+
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
30
|
+
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
31
|
+
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
32
|
+
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
33
|
+
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
|
34
|
+
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
|
35
|
+
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
36
|
+
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
37
|
+
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
38
|
+
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
39
|
+
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
40
|
+
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
41
|
+
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
42
|
+
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
43
|
+
HttpStatus[HttpStatus["MISDIRECTED"] = 421] = "MISDIRECTED";
|
|
44
|
+
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
45
|
+
HttpStatus[HttpStatus["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
46
|
+
HttpStatus[HttpStatus["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
47
|
+
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
48
|
+
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
49
|
+
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
50
|
+
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
51
|
+
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
52
|
+
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
53
|
+
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
54
|
+
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
55
55
|
//# sourceMappingURL=http-status.enum.js.map
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
export * from './ai-assistant.schemas';
|
|
2
|
-
export * from './ai-assistant.types';
|
|
3
|
-
export * from './api-call.context';
|
|
4
|
-
export * from './api.types';
|
|
5
|
-
export * from './application.schemas';
|
|
6
|
-
export * from './application.types';
|
|
7
|
-
export * from './backend-function.schemas';
|
|
8
|
-
export * from './backend-function.types';
|
|
9
|
-
export * from './backend-run.types';
|
|
10
|
-
export * from './bundle-api.types';
|
|
11
|
-
export * from './bundle-data.types';
|
|
12
|
-
export * from './communication.types';
|
|
13
|
-
export * from './context.types';
|
|
14
|
-
export * from './distributed-lock.context';
|
|
15
|
-
export * from './document.types';
|
|
16
|
-
export * from './graphql.context';
|
|
17
|
-
export * from './graphql.types';
|
|
18
|
-
export * from './http-status.enum';
|
|
19
|
-
export * from './integrations';
|
|
20
|
-
export * from './logger.types';
|
|
21
|
-
export * from './metrics.types';
|
|
22
|
-
export * from './mutation.context';
|
|
23
|
-
export * from './mutation.schemas';
|
|
24
|
-
export * from './mutation.types';
|
|
25
|
-
export * from './named-query.context';
|
|
26
|
-
export * from './named-query.schemas';
|
|
27
|
-
export * from './named-query.types';
|
|
28
|
-
export * from './query';
|
|
29
|
-
export * from './query.types';
|
|
30
|
-
export * from './regions';
|
|
31
|
-
export * from './schema/schema.types';
|
|
32
|
-
export * from './secret.schemas';
|
|
33
|
-
export * from './secret.types';
|
|
34
|
-
export * from './security.types';
|
|
35
|
-
export * from './socket.schemas';
|
|
36
|
-
export * from './socket.types';
|
|
37
|
-
export * from './time-units';
|
|
38
|
-
export * from './trigger.types';
|
|
39
|
-
export * from './types';
|
|
40
|
-
export * from './utils/array';
|
|
41
|
-
export * from './utils/assert';
|
|
42
|
-
export * from './utils/error';
|
|
43
|
-
export * from './utils/http';
|
|
44
|
-
export * from './utils/id';
|
|
45
|
-
export * from './utils/lock.manager';
|
|
46
|
-
export * from './utils/nullish';
|
|
47
|
-
export * from './utils/object';
|
|
48
|
-
export * from './utils/serialization';
|
|
49
|
-
export * from './utils/transforms';
|
|
50
|
-
export * from './utils/url';
|
|
51
|
-
export * from './utils/validation';
|
|
52
|
-
export * from './webhook-response';
|
|
53
|
-
export * from './heartbeat.types';
|
|
54
|
-
export * from './utils/global.utils';
|
|
55
|
-
export * from './websocket.impl';
|
|
1
|
+
export * from './ai-assistant.schemas';
|
|
2
|
+
export * from './ai-assistant.types';
|
|
3
|
+
export * from './api-call.context';
|
|
4
|
+
export * from './api.types';
|
|
5
|
+
export * from './application.schemas';
|
|
6
|
+
export * from './application.types';
|
|
7
|
+
export * from './backend-function.schemas';
|
|
8
|
+
export * from './backend-function.types';
|
|
9
|
+
export * from './backend-run.types';
|
|
10
|
+
export * from './bundle-api.types';
|
|
11
|
+
export * from './bundle-data.types';
|
|
12
|
+
export * from './communication.types';
|
|
13
|
+
export * from './context.types';
|
|
14
|
+
export * from './distributed-lock.context';
|
|
15
|
+
export * from './document.types';
|
|
16
|
+
export * from './graphql.context';
|
|
17
|
+
export * from './graphql.types';
|
|
18
|
+
export * from './http-status.enum';
|
|
19
|
+
export * from './integrations';
|
|
20
|
+
export * from './logger.types';
|
|
21
|
+
export * from './metrics.types';
|
|
22
|
+
export * from './mutation.context';
|
|
23
|
+
export * from './mutation.schemas';
|
|
24
|
+
export * from './mutation.types';
|
|
25
|
+
export * from './named-query.context';
|
|
26
|
+
export * from './named-query.schemas';
|
|
27
|
+
export * from './named-query.types';
|
|
28
|
+
export * from './query';
|
|
29
|
+
export * from './query.types';
|
|
30
|
+
export * from './regions';
|
|
31
|
+
export * from './schema/schema.types';
|
|
32
|
+
export * from './secret.schemas';
|
|
33
|
+
export * from './secret.types';
|
|
34
|
+
export * from './security.types';
|
|
35
|
+
export * from './socket.schemas';
|
|
36
|
+
export * from './socket.types';
|
|
37
|
+
export * from './time-units';
|
|
38
|
+
export * from './trigger.types';
|
|
39
|
+
export * from './types';
|
|
40
|
+
export * from './utils/array';
|
|
41
|
+
export * from './utils/assert';
|
|
42
|
+
export * from './utils/error';
|
|
43
|
+
export * from './utils/http';
|
|
44
|
+
export * from './utils/id';
|
|
45
|
+
export * from './utils/lock.manager';
|
|
46
|
+
export * from './utils/nullish';
|
|
47
|
+
export * from './utils/object';
|
|
48
|
+
export * from './utils/serialization';
|
|
49
|
+
export * from './utils/transforms';
|
|
50
|
+
export * from './utils/url';
|
|
51
|
+
export * from './utils/validation';
|
|
52
|
+
export * from './webhook-response';
|
|
53
|
+
export * from './heartbeat.types';
|
|
54
|
+
export * from './utils/global.utils';
|
|
55
|
+
export * from './websocket.impl';
|
package/dist/common/src/index.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ai-assistant.schemas"), exports);
|
|
18
|
-
__exportStar(require("./ai-assistant.types"), exports);
|
|
19
|
-
__exportStar(require("./api-call.context"), exports);
|
|
20
|
-
__exportStar(require("./api.types"), exports);
|
|
21
|
-
__exportStar(require("./application.schemas"), exports);
|
|
22
|
-
__exportStar(require("./application.types"), exports);
|
|
23
|
-
__exportStar(require("./backend-function.schemas"), exports);
|
|
24
|
-
__exportStar(require("./backend-function.types"), exports);
|
|
25
|
-
__exportStar(require("./backend-run.types"), exports);
|
|
26
|
-
__exportStar(require("./bundle-api.types"), exports);
|
|
27
|
-
__exportStar(require("./bundle-data.types"), exports);
|
|
28
|
-
__exportStar(require("./communication.types"), exports);
|
|
29
|
-
__exportStar(require("./context.types"), exports);
|
|
30
|
-
__exportStar(require("./distributed-lock.context"), exports);
|
|
31
|
-
__exportStar(require("./document.types"), exports);
|
|
32
|
-
__exportStar(require("./graphql.context"), exports);
|
|
33
|
-
__exportStar(require("./graphql.types"), exports);
|
|
34
|
-
__exportStar(require("./http-status.enum"), exports);
|
|
35
|
-
__exportStar(require("./integrations"), exports);
|
|
36
|
-
__exportStar(require("./logger.types"), exports);
|
|
37
|
-
__exportStar(require("./metrics.types"), exports);
|
|
38
|
-
__exportStar(require("./mutation.context"), exports);
|
|
39
|
-
__exportStar(require("./mutation.schemas"), exports);
|
|
40
|
-
__exportStar(require("./mutation.types"), exports);
|
|
41
|
-
__exportStar(require("./named-query.context"), exports);
|
|
42
|
-
__exportStar(require("./named-query.schemas"), exports);
|
|
43
|
-
__exportStar(require("./named-query.types"), exports);
|
|
44
|
-
__exportStar(require("./query"), exports);
|
|
45
|
-
__exportStar(require("./query.types"), exports);
|
|
46
|
-
__exportStar(require("./regions"), exports);
|
|
47
|
-
__exportStar(require("./schema/schema.types"), exports);
|
|
48
|
-
__exportStar(require("./secret.schemas"), exports);
|
|
49
|
-
__exportStar(require("./secret.types"), exports);
|
|
50
|
-
__exportStar(require("./security.types"), exports);
|
|
51
|
-
__exportStar(require("./socket.schemas"), exports);
|
|
52
|
-
__exportStar(require("./socket.types"), exports);
|
|
53
|
-
__exportStar(require("./time-units"), exports);
|
|
54
|
-
__exportStar(require("./trigger.types"), exports);
|
|
55
|
-
__exportStar(require("./types"), exports);
|
|
56
|
-
__exportStar(require("./utils/array"), exports);
|
|
57
|
-
__exportStar(require("./utils/assert"), exports);
|
|
58
|
-
__exportStar(require("./utils/error"), exports);
|
|
59
|
-
__exportStar(require("./utils/http"), exports);
|
|
60
|
-
__exportStar(require("./utils/id"), exports);
|
|
61
|
-
__exportStar(require("./utils/lock.manager"), exports);
|
|
62
|
-
__exportStar(require("./utils/nullish"), exports);
|
|
63
|
-
__exportStar(require("./utils/object"), exports);
|
|
64
|
-
__exportStar(require("./utils/serialization"), exports);
|
|
65
|
-
__exportStar(require("./utils/transforms"), exports);
|
|
66
|
-
__exportStar(require("./utils/url"), exports);
|
|
67
|
-
__exportStar(require("./utils/validation"), exports);
|
|
68
|
-
__exportStar(require("./webhook-response"), exports);
|
|
69
|
-
__exportStar(require("./heartbeat.types"), exports);
|
|
70
|
-
__exportStar(require("./utils/global.utils"), exports);
|
|
71
|
-
__exportStar(require("./websocket.impl"), exports);
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-assistant.schemas"), exports);
|
|
18
|
+
__exportStar(require("./ai-assistant.types"), exports);
|
|
19
|
+
__exportStar(require("./api-call.context"), exports);
|
|
20
|
+
__exportStar(require("./api.types"), exports);
|
|
21
|
+
__exportStar(require("./application.schemas"), exports);
|
|
22
|
+
__exportStar(require("./application.types"), exports);
|
|
23
|
+
__exportStar(require("./backend-function.schemas"), exports);
|
|
24
|
+
__exportStar(require("./backend-function.types"), exports);
|
|
25
|
+
__exportStar(require("./backend-run.types"), exports);
|
|
26
|
+
__exportStar(require("./bundle-api.types"), exports);
|
|
27
|
+
__exportStar(require("./bundle-data.types"), exports);
|
|
28
|
+
__exportStar(require("./communication.types"), exports);
|
|
29
|
+
__exportStar(require("./context.types"), exports);
|
|
30
|
+
__exportStar(require("./distributed-lock.context"), exports);
|
|
31
|
+
__exportStar(require("./document.types"), exports);
|
|
32
|
+
__exportStar(require("./graphql.context"), exports);
|
|
33
|
+
__exportStar(require("./graphql.types"), exports);
|
|
34
|
+
__exportStar(require("./http-status.enum"), exports);
|
|
35
|
+
__exportStar(require("./integrations"), exports);
|
|
36
|
+
__exportStar(require("./logger.types"), exports);
|
|
37
|
+
__exportStar(require("./metrics.types"), exports);
|
|
38
|
+
__exportStar(require("./mutation.context"), exports);
|
|
39
|
+
__exportStar(require("./mutation.schemas"), exports);
|
|
40
|
+
__exportStar(require("./mutation.types"), exports);
|
|
41
|
+
__exportStar(require("./named-query.context"), exports);
|
|
42
|
+
__exportStar(require("./named-query.schemas"), exports);
|
|
43
|
+
__exportStar(require("./named-query.types"), exports);
|
|
44
|
+
__exportStar(require("./query"), exports);
|
|
45
|
+
__exportStar(require("./query.types"), exports);
|
|
46
|
+
__exportStar(require("./regions"), exports);
|
|
47
|
+
__exportStar(require("./schema/schema.types"), exports);
|
|
48
|
+
__exportStar(require("./secret.schemas"), exports);
|
|
49
|
+
__exportStar(require("./secret.types"), exports);
|
|
50
|
+
__exportStar(require("./security.types"), exports);
|
|
51
|
+
__exportStar(require("./socket.schemas"), exports);
|
|
52
|
+
__exportStar(require("./socket.types"), exports);
|
|
53
|
+
__exportStar(require("./time-units"), exports);
|
|
54
|
+
__exportStar(require("./trigger.types"), exports);
|
|
55
|
+
__exportStar(require("./types"), exports);
|
|
56
|
+
__exportStar(require("./utils/array"), exports);
|
|
57
|
+
__exportStar(require("./utils/assert"), exports);
|
|
58
|
+
__exportStar(require("./utils/error"), exports);
|
|
59
|
+
__exportStar(require("./utils/http"), exports);
|
|
60
|
+
__exportStar(require("./utils/id"), exports);
|
|
61
|
+
__exportStar(require("./utils/lock.manager"), exports);
|
|
62
|
+
__exportStar(require("./utils/nullish"), exports);
|
|
63
|
+
__exportStar(require("./utils/object"), exports);
|
|
64
|
+
__exportStar(require("./utils/serialization"), exports);
|
|
65
|
+
__exportStar(require("./utils/transforms"), exports);
|
|
66
|
+
__exportStar(require("./utils/url"), exports);
|
|
67
|
+
__exportStar(require("./utils/validation"), exports);
|
|
68
|
+
__exportStar(require("./webhook-response"), exports);
|
|
69
|
+
__exportStar(require("./heartbeat.types"), exports);
|
|
70
|
+
__exportStar(require("./utils/global.utils"), exports);
|
|
71
|
+
__exportStar(require("./websocket.impl"), exports);
|
|
72
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
+
import { OpenAiModelName } from '../ai-assistant.types';
|
|
3
|
+
export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
|
|
4
|
+
type: IntegrationType.ai_assistant;
|
|
5
|
+
configuration: AiAssistantConfiguration;
|
|
6
|
+
}
|
|
7
|
+
export type AiAssistantConfiguration = {
|
|
8
|
+
apiKey?: string;
|
|
9
|
+
};
|
|
10
|
+
export type AiAssistantProfileMetadata = {
|
|
11
|
+
modelName: OpenAiModelName;
|
|
12
|
+
isPublic: boolean;
|
|
13
|
+
strictContext: boolean;
|
|
14
|
+
instructions: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
export type AiAssistantContextMetadata = {
|
|
17
|
+
title: string;
|
|
18
|
+
text: string;
|
|
19
|
+
preview: boolean;
|
|
20
|
+
};
|
|
21
|
+
export interface AiAssistantProfile extends AiAssistantProfileMetadata {
|
|
22
|
+
contexts: Record<string, AiAssistantContextMetadata>;
|
|
23
|
+
}
|
|
24
|
+
export interface AiAssistantProfiles {
|
|
25
|
+
profiles: Record<string, AiAssistantProfile>;
|
|
26
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=ai_assistant.types.js.map
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { FieldName } from '../document.types';
|
|
2
|
-
import { IntrospectionQuery } from '../graphql.types';
|
|
3
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema, IntegrationSchemaType, IntegrationType } from './index';
|
|
4
|
-
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
5
|
-
export type ApiEndpointId = string;
|
|
6
|
-
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
7
|
-
export type ApiResponseParameterLocation = 'header' | 'body';
|
|
8
|
-
export type ApiInjectionParameterLocation = 'header' | 'query';
|
|
9
|
-
export type FieldPath = string;
|
|
10
|
-
export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
11
|
-
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
12
|
-
type: IntegrationSchemaType.graphql;
|
|
13
|
-
introspection: IntrospectionQuery;
|
|
14
|
-
}
|
|
15
|
-
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
16
|
-
type: IntegrationSchemaType.api;
|
|
17
|
-
baseUrl: string;
|
|
18
|
-
endpoints: IntegrationApiEndpoints;
|
|
19
|
-
injectionSchema?: ApiInjectionSchema;
|
|
20
|
-
}
|
|
21
|
-
export interface ApiRequestField {
|
|
22
|
-
location: ApiParameterLocation;
|
|
23
|
-
}
|
|
24
|
-
export interface ApiResponseField {
|
|
25
|
-
location: ApiResponseParameterLocation;
|
|
26
|
-
path?: FieldPath;
|
|
27
|
-
}
|
|
28
|
-
export type ApiInjectionFieldType = 'secret' | 'regular';
|
|
29
|
-
export interface ApiInjectionField {
|
|
30
|
-
value: string;
|
|
31
|
-
type: ApiInjectionFieldType;
|
|
32
|
-
location: ApiInjectionParameterLocation;
|
|
33
|
-
}
|
|
34
|
-
export interface GraphQLConnectionOptions {
|
|
35
|
-
baseUrl: string;
|
|
36
|
-
injectionSchema?: ApiInjectionSchema;
|
|
37
|
-
}
|
|
38
|
-
export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
|
|
39
|
-
export interface OpenApiDiscoveryOptions {
|
|
40
|
-
openApiSpecUrl: string;
|
|
41
|
-
}
|
|
42
|
-
export interface ApiEndpoint {
|
|
43
|
-
relativePath: string;
|
|
44
|
-
method: HttpMethod;
|
|
45
|
-
requestSchema?: Record<FieldName, ApiRequestField>;
|
|
46
|
-
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
47
|
-
injectionSchema?: ApiInjectionSchema;
|
|
48
|
-
}
|
|
49
|
-
export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
|
|
50
|
-
type: IntegrationType.api;
|
|
51
|
-
configuration?: {
|
|
52
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
56
|
-
type: IntegrationType.graphql;
|
|
57
|
-
configuration: {
|
|
58
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
62
|
-
integrationType: IntegrationType.graphql;
|
|
63
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
64
|
-
}
|
|
65
|
-
export interface DiscoverOpenApiSchemaRequest {
|
|
66
|
-
integrationType: IntegrationType.api;
|
|
67
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
68
|
-
}
|
|
69
|
-
export interface TestGraphQLDataConnectionRequest {
|
|
70
|
-
type: IntegrationType.graphql;
|
|
71
|
-
configuration: {
|
|
72
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
76
|
-
schema: IntegrationGraphQLSchema;
|
|
77
|
-
}
|
|
78
|
-
export interface DiscoverOpenApiSchemaResponse {
|
|
79
|
-
schema: IntegrationApiSchema;
|
|
80
|
-
}
|
|
1
|
+
import { FieldName } from '../document.types';
|
|
2
|
+
import { IntrospectionQuery } from '../graphql.types';
|
|
3
|
+
import { BaseIntegrationConfig, BaseIntegrationSchema, IntegrationSchemaType, IntegrationType } from './index';
|
|
4
|
+
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
5
|
+
export type ApiEndpointId = string;
|
|
6
|
+
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
7
|
+
export type ApiResponseParameterLocation = 'header' | 'body';
|
|
8
|
+
export type ApiInjectionParameterLocation = 'header' | 'query';
|
|
9
|
+
export type FieldPath = string;
|
|
10
|
+
export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
11
|
+
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
12
|
+
type: IntegrationSchemaType.graphql;
|
|
13
|
+
introspection: IntrospectionQuery;
|
|
14
|
+
}
|
|
15
|
+
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
16
|
+
type: IntegrationSchemaType.api;
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
endpoints: IntegrationApiEndpoints;
|
|
19
|
+
injectionSchema?: ApiInjectionSchema;
|
|
20
|
+
}
|
|
21
|
+
export interface ApiRequestField {
|
|
22
|
+
location: ApiParameterLocation;
|
|
23
|
+
}
|
|
24
|
+
export interface ApiResponseField {
|
|
25
|
+
location: ApiResponseParameterLocation;
|
|
26
|
+
path?: FieldPath;
|
|
27
|
+
}
|
|
28
|
+
export type ApiInjectionFieldType = 'secret' | 'regular';
|
|
29
|
+
export interface ApiInjectionField {
|
|
30
|
+
value: string;
|
|
31
|
+
type: ApiInjectionFieldType;
|
|
32
|
+
location: ApiInjectionParameterLocation;
|
|
33
|
+
}
|
|
34
|
+
export interface GraphQLConnectionOptions {
|
|
35
|
+
baseUrl: string;
|
|
36
|
+
injectionSchema?: ApiInjectionSchema;
|
|
37
|
+
}
|
|
38
|
+
export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
|
|
39
|
+
export interface OpenApiDiscoveryOptions {
|
|
40
|
+
openApiSpecUrl: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ApiEndpoint {
|
|
43
|
+
relativePath: string;
|
|
44
|
+
method: HttpMethod;
|
|
45
|
+
requestSchema?: Record<FieldName, ApiRequestField>;
|
|
46
|
+
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
47
|
+
injectionSchema?: ApiInjectionSchema;
|
|
48
|
+
}
|
|
49
|
+
export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
|
|
50
|
+
type: IntegrationType.api;
|
|
51
|
+
configuration?: {
|
|
52
|
+
discoveryOptions: OpenApiDiscoveryOptions;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
56
|
+
type: IntegrationType.graphql;
|
|
57
|
+
configuration: {
|
|
58
|
+
connectionOptions: GraphQLConnectionOptions;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
62
|
+
integrationType: IntegrationType.graphql;
|
|
63
|
+
connectionOptions: GraphQLConnectionOptions;
|
|
64
|
+
}
|
|
65
|
+
export interface DiscoverOpenApiSchemaRequest {
|
|
66
|
+
integrationType: IntegrationType.api;
|
|
67
|
+
discoveryOptions: OpenApiDiscoveryOptions;
|
|
68
|
+
}
|
|
69
|
+
export interface TestGraphQLDataConnectionRequest {
|
|
70
|
+
type: IntegrationType.graphql;
|
|
71
|
+
configuration: {
|
|
72
|
+
connectionOptions: GraphQLConnectionOptions;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
76
|
+
schema: IntegrationGraphQLSchema;
|
|
77
|
+
}
|
|
78
|
+
export interface DiscoverOpenApiSchemaResponse {
|
|
79
|
+
schema: IntegrationApiSchema;
|
|
80
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=api.types.js.map
|