@squidcloud/local-backend 1.0.158 → 1.0.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/dist/internal-common/src/code-executor.types.d.ts +0 -15
  3. package/dist/internal-common/src/code-executor.types.js +0 -3
  4. package/dist/internal-common/src/code-executor.types.js.map +0 -1
  5. package/dist/internal-common/src/local-dev.types.d.ts +0 -54
  6. package/dist/internal-common/src/local-dev.types.js +0 -11
  7. package/dist/internal-common/src/local-dev.types.js.map +0 -1
  8. package/dist/internal-common/src/public-types/ai-chatbot.context.d.ts +0 -13
  9. package/dist/internal-common/src/public-types/ai-chatbot.context.js +0 -20
  10. package/dist/internal-common/src/public-types/ai-chatbot.context.js.map +0 -1
  11. package/dist/internal-common/src/public-types/ai-chatbot.types.d.ts +0 -126
  12. package/dist/internal-common/src/public-types/ai-chatbot.types.js +0 -28
  13. package/dist/internal-common/src/public-types/ai-chatbot.types.js.map +0 -1
  14. package/dist/internal-common/src/public-types/api-call.context.d.ts +0 -13
  15. package/dist/internal-common/src/public-types/api-call.context.js +0 -17
  16. package/dist/internal-common/src/public-types/api-call.context.js.map +0 -1
  17. package/dist/internal-common/src/public-types/api.types.d.ts +0 -22
  18. package/dist/internal-common/src/public-types/api.types.js +0 -3
  19. package/dist/internal-common/src/public-types/api.types.js.map +0 -1
  20. package/dist/internal-common/src/public-types/application.types.d.ts +0 -199
  21. package/dist/internal-common/src/public-types/application.types.js +0 -90
  22. package/dist/internal-common/src/public-types/application.types.js.map +0 -1
  23. package/dist/internal-common/src/public-types/backend-run.types.d.ts +0 -52
  24. package/dist/internal-common/src/public-types/backend-run.types.js +0 -28
  25. package/dist/internal-common/src/public-types/backend-run.types.js.map +0 -1
  26. package/dist/internal-common/src/public-types/bundle-api.types.d.ts +0 -53
  27. package/dist/internal-common/src/public-types/bundle-api.types.js +0 -3
  28. package/dist/internal-common/src/public-types/bundle-api.types.js.map +0 -1
  29. package/dist/internal-common/src/public-types/bundle-data.types.d.ts +0 -75
  30. package/dist/internal-common/src/public-types/bundle-data.types.js +0 -3
  31. package/dist/internal-common/src/public-types/bundle-data.types.js.map +0 -1
  32. package/dist/internal-common/src/public-types/communication.types.d.ts +0 -20
  33. package/dist/internal-common/src/public-types/communication.types.js +0 -42
  34. package/dist/internal-common/src/public-types/communication.types.js.map +0 -1
  35. package/dist/internal-common/src/public-types/context.types.d.ts +0 -24
  36. package/dist/internal-common/src/public-types/context.types.js +0 -3
  37. package/dist/internal-common/src/public-types/context.types.js.map +0 -1
  38. package/dist/internal-common/src/public-types/distributed-lock.context.d.ts +0 -4
  39. package/dist/internal-common/src/public-types/distributed-lock.context.js +0 -10
  40. package/dist/internal-common/src/public-types/distributed-lock.context.js.map +0 -1
  41. package/dist/internal-common/src/public-types/document.types.d.ts +0 -32
  42. package/dist/internal-common/src/public-types/document.types.js +0 -51
  43. package/dist/internal-common/src/public-types/document.types.js.map +0 -1
  44. package/dist/internal-common/src/public-types/graphql.context.d.ts +0 -14
  45. package/dist/internal-common/src/public-types/graphql.context.js +0 -13
  46. package/dist/internal-common/src/public-types/graphql.context.js.map +0 -1
  47. package/dist/internal-common/src/public-types/graphql.types.d.ts +0 -11
  48. package/dist/internal-common/src/public-types/graphql.types.js +0 -35
  49. package/dist/internal-common/src/public-types/graphql.types.js.map +0 -1
  50. package/dist/internal-common/src/public-types/http-status.enum.d.ts +0 -50
  51. package/dist/internal-common/src/public-types/http-status.enum.js +0 -55
  52. package/dist/internal-common/src/public-types/http-status.enum.js.map +0 -1
  53. package/dist/internal-common/src/public-types/integration-types.d.ts +0 -58
  54. package/dist/internal-common/src/public-types/integration-types.js +0 -65
  55. package/dist/internal-common/src/public-types/integration-types.js.map +0 -1
  56. package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +0 -32
  57. package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js +0 -3
  58. package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +0 -1
  59. package/dist/internal-common/src/public-types/integrations/api.types.d.ts +0 -81
  60. package/dist/internal-common/src/public-types/integrations/api.types.js +0 -3
  61. package/dist/internal-common/src/public-types/integrations/api.types.js.map +0 -1
  62. package/dist/internal-common/src/public-types/integrations/auth.types.d.ts +0 -46
  63. package/dist/internal-common/src/public-types/integrations/auth.types.js +0 -3
  64. package/dist/internal-common/src/public-types/integrations/auth.types.js.map +0 -1
  65. package/dist/internal-common/src/public-types/integrations/database.types.d.ts +0 -275
  66. package/dist/internal-common/src/public-types/integrations/database.types.js +0 -3
  67. package/dist/internal-common/src/public-types/integrations/database.types.js.map +0 -1
  68. package/dist/internal-common/src/public-types/integrations/observability.types.d.ts +0 -24
  69. package/dist/internal-common/src/public-types/integrations/observability.types.js +0 -24
  70. package/dist/internal-common/src/public-types/integrations/observability.types.js.map +0 -1
  71. package/dist/internal-common/src/public-types/integrations/schemas.d.ts +0 -74
  72. package/dist/internal-common/src/public-types/integrations/schemas.js +0 -43
  73. package/dist/internal-common/src/public-types/integrations/schemas.js.map +0 -1
  74. package/dist/internal-common/src/public-types/logger.types.d.ts +0 -21
  75. package/dist/internal-common/src/public-types/logger.types.js +0 -12
  76. package/dist/internal-common/src/public-types/logger.types.js.map +0 -1
  77. package/dist/internal-common/src/public-types/mutation.context.d.ts +0 -13
  78. package/dist/internal-common/src/public-types/mutation.context.js +0 -27
  79. package/dist/internal-common/src/public-types/mutation.context.js.map +0 -1
  80. package/dist/internal-common/src/public-types/mutation.types.d.ts +0 -63
  81. package/dist/internal-common/src/public-types/mutation.types.js +0 -143
  82. package/dist/internal-common/src/public-types/mutation.types.js.map +0 -1
  83. package/dist/internal-common/src/public-types/native-query.context.d.ts +0 -7
  84. package/dist/internal-common/src/public-types/native-query.context.js +0 -12
  85. package/dist/internal-common/src/public-types/native-query.context.js.map +0 -1
  86. package/dist/internal-common/src/public-types/openapi.types.d.ts +0 -26
  87. package/dist/internal-common/src/public-types/openapi.types.js +0 -3
  88. package/dist/internal-common/src/public-types/openapi.types.js.map +0 -1
  89. package/dist/internal-common/src/public-types/query-context.d.ts +0 -47
  90. package/dist/internal-common/src/public-types/query-context.js +0 -160
  91. package/dist/internal-common/src/public-types/query-context.js.map +0 -1
  92. package/dist/internal-common/src/public-types/query.types.d.ts +0 -86
  93. package/dist/internal-common/src/public-types/query.types.js +0 -98
  94. package/dist/internal-common/src/public-types/query.types.js.map +0 -1
  95. package/dist/internal-common/src/public-types/secret.types.d.ts +0 -68
  96. package/dist/internal-common/src/public-types/secret.types.js +0 -6
  97. package/dist/internal-common/src/public-types/secret.types.js.map +0 -1
  98. package/dist/internal-common/src/public-types/socket.types.d.ts +0 -126
  99. package/dist/internal-common/src/public-types/socket.types.js +0 -10
  100. package/dist/internal-common/src/public-types/socket.types.js.map +0 -1
  101. package/dist/internal-common/src/public-types/types.d.ts +0 -21
  102. package/dist/internal-common/src/public-types/types.js +0 -3
  103. package/dist/internal-common/src/public-types/types.js.map +0 -1
  104. package/dist/internal-common/src/schema/schema.types.d.ts +0 -30
  105. package/dist/internal-common/src/schema/schema.types.js +0 -167
  106. package/dist/internal-common/src/schema/schema.types.js.map +0 -1
  107. package/dist/internal-common/src/types/openapi-response.d.ts +0 -6
  108. package/dist/internal-common/src/types/openapi-response.js +0 -3
  109. package/dist/internal-common/src/types/openapi-response.js.map +0 -1
  110. package/dist/internal-common/src/types/security-internal.types.d.ts +0 -20
  111. package/dist/internal-common/src/types/security-internal.types.js +0 -3
  112. package/dist/internal-common/src/types/security-internal.types.js.map +0 -1
  113. package/dist/internal-common/src/utils/assert.d.ts +0 -3
  114. package/dist/internal-common/src/utils/assert.js +0 -15
  115. package/dist/internal-common/src/utils/assert.js.map +0 -1
  116. package/dist/internal-common/src/utils/backend-transforms.d.ts +0 -3
  117. package/dist/internal-common/src/utils/backend-transforms.js +0 -91
  118. package/dist/internal-common/src/utils/backend-transforms.js.map +0 -1
  119. package/dist/internal-common/src/utils/global.utils.d.ts +0 -11
  120. package/dist/internal-common/src/utils/global.utils.js +0 -51
  121. package/dist/internal-common/src/utils/global.utils.js.map +0 -1
  122. package/dist/internal-common/src/utils/http.d.ts +0 -2
  123. package/dist/internal-common/src/utils/http.js +0 -55
  124. package/dist/internal-common/src/utils/http.js.map +0 -1
  125. package/dist/internal-common/src/utils/object.d.ts +0 -5
  126. package/dist/internal-common/src/utils/object.js +0 -76
  127. package/dist/internal-common/src/utils/object.js.map +0 -1
  128. package/dist/internal-common/src/utils/serialization.d.ts +0 -5
  129. package/dist/internal-common/src/utils/serialization.js +0 -74
  130. package/dist/internal-common/src/utils/serialization.js.map +0 -1
  131. package/dist/internal-common/src/utils/validation.d.ts +0 -19
  132. package/dist/internal-common/src/utils/validation.js +0 -210
  133. package/dist/internal-common/src/utils/validation.js.map +0 -1
  134. package/dist/internal-common/src/websocket.impl.d.ts +0 -21
  135. package/dist/internal-common/src/websocket.impl.js +0 -80
  136. package/dist/internal-common/src/websocket.impl.js.map +0 -1
  137. package/dist/local-backend/openapi-template.hbs +0 -1
  138. package/dist/local-backend/package.json +0 -54
  139. package/dist/local-backend/src/index.d.ts +0 -4
  140. package/dist/local-backend/src/index.js.map +0 -1
  141. package/dist/local-backend/src/local-backend-socket.service.d.ts +0 -22
  142. package/dist/local-backend/src/local-backend-socket.service.js +0 -212
  143. package/dist/local-backend/src/local-backend-socket.service.js.map +0 -1
  144. package/dist/local-backend/src/local-backend.app.d.ts +0 -2
  145. package/dist/local-backend/src/local-backend.app.js +0 -26
  146. package/dist/local-backend/src/local-backend.app.js.map +0 -1
  147. package/dist/local-backend/src/local-backend.controller.d.ts +0 -8
  148. package/dist/local-backend/src/local-backend.controller.js +0 -49
  149. package/dist/local-backend/src/local-backend.controller.js.map +0 -1
  150. package/dist/local-backend/src/local-backend.module.d.ts +0 -8
  151. package/dist/local-backend/src/local-backend.module.js +0 -52
  152. package/dist/local-backend/src/local-backend.module.js.map +0 -1
  153. package/dist/local-backend/src/local-backend.service.d.ts +0 -17
  154. package/dist/local-backend/src/local-backend.service.js +0 -175
  155. package/dist/local-backend/src/local-backend.service.js.map +0 -1
  156. package/dist/local-backend/src/utils/shell-runner.d.ts +0 -4
  157. package/dist/local-backend/src/utils/shell-runner.js +0 -28
  158. package/dist/local-backend/src/utils/shell-runner.js.map +0 -1
  159. package/dist/local-backend/tsoa.json +0 -15
  160. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1 +0,0 @@
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"}
@@ -1,52 +0,0 @@
1
- import { Auth, RunContext } from './context.types';
2
- import { ApplicationSecrets, SecretKey, SecretValue } from './secret.types';
3
- export interface RunPermissions {
4
- hosts: Array<string>;
5
- }
6
- export interface ErrorResponse extends GeneralResponse {
7
- ok: false;
8
- error: string;
9
- details?: string;
10
- functionName: string;
11
- }
12
- export interface GeneralResponse {
13
- ok: boolean;
14
- }
15
- export interface RunConfiguration {
16
- codeUrl: string;
17
- codeUrlId: string;
18
- isSecurityRules: boolean;
19
- permissions: RunPermissions;
20
- }
21
- export interface LoadJsPayload {
22
- codeUrl: string;
23
- }
24
- export declare const ExecuteFunctionSecureAnnotations: readonly ["secureDistributedLock", "secureQuery", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureGraphQL", "secureApi", "secureAiChatbotChat", "secureAiChatbotMutation"];
25
- export type ExecuteFunctionSecureAnnotationType = (typeof ExecuteFunctionSecureAnnotations)[number];
26
- export type ExecuteFunctionAnnotationType = 'executable' | 'webhook' | 'scheduler' | 'trigger' | 'transformRead' | 'transformWrite' | 'metadata' | 'aiFunction' | 'openapi' | ExecuteFunctionSecureAnnotationType;
27
- export interface ExecuteFunctionPayload {
28
- functionName: string;
29
- params: Array<unknown>;
30
- context: RunContext;
31
- auth: Auth | undefined;
32
- secrets?: Record<SecretKey, SecretValue>;
33
- backendApiKey: string;
34
- codeDir: string;
35
- executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
36
- }
37
- export type WorkerActionType = 'loadJs' | 'executeFunction' | 'ping' | 'terminate' | 'heartbeat';
38
- export interface ActionRequest {
39
- action: WorkerActionType;
40
- payload?: LoadJsPayload | ExecuteFunctionPayload;
41
- }
42
- export type LoadJsResponse = GeneralResponse;
43
- export type TerminateResponse = GeneralResponse;
44
- export interface ExecuteFunctionResponse extends GeneralResponse {
45
- ok: true;
46
- functionResponse: unknown;
47
- }
48
- export interface RunSecrets {
49
- custom: Record<SecretKey, SecretValue>;
50
- backendApiKey: string;
51
- }
52
- export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
@@ -1,28 +0,0 @@
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
@@ -1 +0,0 @@
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,53 +0,0 @@
1
- import { MutationContext } from './mutation.context';
2
- import { ApiCallContext } from './api-call.context';
3
- import { GraphqlContext } from './graphql.context';
4
- import { DistributedLockContext } from './distributed-lock.context';
5
- import { NativeQueryContext } from './native-query.context';
6
- import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.context';
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';
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>);
14
- export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
15
- export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
16
- export type SecureDistributedLockAction = ((context: DistributedLockContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
17
- export type SecureGraphQLAction = ((context: GraphqlContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
18
- export type SecureAiChatbotAction<T extends AiChatbotActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'chat' ? ((context: AiChatbotChatContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: AiChatbotMutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
19
- export type ClientConnectionStateChangeAction = (clientId: ClientId, clientConnectionState: ClientConnectionState) => Promise<void> | void;
20
- export type ExecutableAction = (...args: any[]) => any;
21
- export type AiFunctionAction<T extends Record<string, any> = any> = (params: T) => any;
22
- export type TriggerAction = ((request: TriggerRequest) => void | Promise<void>) | (() => void | Promise<void>);
23
- export interface TriggerRequest<T extends DocumentData = any> {
24
- squidDocId: SquidDocId;
25
- mutationType: MutationType;
26
- docBefore?: T;
27
- docAfter?: T;
28
- }
29
- export type SchedulerAction = () => void | Promise<void>;
30
- export type WebhookAction = ((request: WebhookRequest) => any) | (() => any);
31
- export interface WebhookRequest<T = any> {
32
- body: T;
33
- rawBody?: string;
34
- queryParams: Record<string, string>;
35
- headers: Record<string, string>;
36
- httpMethod: 'post' | 'get' | 'put' | 'delete';
37
- files?: Array<SquidFile>;
38
- }
39
- export interface WebhookResponse {
40
- headers: Record<string, any>;
41
- body: any;
42
- statusCode: number;
43
- __isWebhookResponse__: true;
44
- }
45
- export interface SquidFile {
46
- data: Uint8Array;
47
- fieldName: string;
48
- mimetype: string;
49
- originalName: string;
50
- size: number;
51
- encoding?: string;
52
- }
53
- export type ActionMethodDecorator<U> = <T extends U>(target: Object, propertyName: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=bundle-api.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle-api.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-api.types.ts"],"names":[],"mappings":""}
@@ -1,75 +0,0 @@
1
- import { SchedulerConfig, SchedulerId, TriggerConfig, TriggerId, WebhookConfig, WebhookId } from './application.types';
2
- import { IntegrationId } from './communication.types';
3
- import { CollectionName } from './document.types';
4
- import { ApiEndpointId } from './integrations/api.types';
5
- import { OpenApiController } from './openapi.types';
6
- export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
7
- export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
8
- export type ServiceName = string;
9
- export type FunctionName = string;
10
- export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
11
- export interface ApplicationBundleData {
12
- databases: Record<IntegrationId, DatabaseMetadata>;
13
- apis: Record<IntegrationId, {
14
- endpoints: Record<ApiEndpointId, ApiMetadata>;
15
- } & ApiMetadata>;
16
- graphql: Record<IntegrationId, GraphQLMetadata>;
17
- executables: Record<FunctionName, ExecutableMetadata>;
18
- triggers: Record<TriggerId, TriggerConfig>;
19
- schedulers: Record<SchedulerId, SchedulerConfig>;
20
- webhooks: Record<WebhookId, WebhookConfig>;
21
- nativeQueries: Record<IntegrationId, Array<ServiceFunctionName>>;
22
- distributedLocks: {
23
- security?: Array<ServiceFunctionName>;
24
- mutexes?: Record<string, {
25
- security?: Array<ServiceFunctionName>;
26
- }>;
27
- };
28
- aiChatbots: Record<IntegrationId, {
29
- profiles: Record<string, AiChatbotMetadata>;
30
- } & AiChatbotMetadata>;
31
- clientConnectionStateChangeHandlers?: Array<ServiceFunctionName>;
32
- aiFunctions?: Record<FunctionName, AiFunctionMetadata>;
33
- openApiControllers?: Array<OpenApiController>;
34
- }
35
- export interface LocalBackendData {
36
- applicationBundleData: ApplicationBundleData;
37
- openApiSpecStr?: string;
38
- }
39
- export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
40
- export interface AiFunctionParam {
41
- name: string;
42
- description: string;
43
- type: AiFunctionParamType;
44
- required: boolean;
45
- }
46
- export interface AiFunctionMetadata {
47
- description: string;
48
- params: Array<AiFunctionParam>;
49
- serviceFunction: ServiceFunctionName;
50
- }
51
- export interface DatabaseMetadata {
52
- collections: Record<CollectionName, CollectionMetadata>;
53
- security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
54
- transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
55
- }
56
- export interface CollectionMetadata {
57
- security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
58
- transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
59
- }
60
- export interface DatabaseTransformMetadata {
61
- serviceFunction: ServiceFunctionName;
62
- }
63
- export interface ExecutableMetadata {
64
- serviceFunction: ServiceFunctionName;
65
- }
66
- export interface ApiMetadata {
67
- security: Array<ServiceFunctionName>;
68
- }
69
- interface GraphQLMetadata {
70
- security: Array<ServiceFunctionName>;
71
- }
72
- export interface AiChatbotMetadata {
73
- security: Record<AiChatbotActionType, Array<ServiceFunctionName>>;
74
- }
75
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=bundle-data.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle-data.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/bundle-data.types.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- export type AppId = string;
2
- export declare const ENVIRONMENT_IDS: readonly ["dev", "prod"];
3
- export type EnvironmentId = (typeof ENVIRONMENT_IDS)[number];
4
- export declare const allEnvironmentIds: Array<EnvironmentId>;
5
- export type IntegrationId = string;
6
- export type ClientId = string;
7
- export type ChatId = string;
8
- export type ClientRequestId = string;
9
- export type SquidDeveloperId = string;
10
- export interface ParsedAppId {
11
- appId: AppId;
12
- environmentId: EnvironmentId;
13
- squidDeveloperId?: SquidDeveloperId;
14
- }
15
- export declare function parseAppId(appId: AppId): ParsedAppId;
16
- export declare function appIdWithEnvironmentId(appId: AppId, environmentId: EnvironmentId | undefined): AppId;
17
- export declare function appIdWithEnvironmentIdAndDevId(appId: AppId, environmentId: EnvironmentId | undefined, developerId: SquidDeveloperId | undefined): AppId;
18
- export declare function validateEnvironment(appId: AppId): ParsedAppId;
19
- export declare function verifyWithSquidDevId(appId: AppId): void;
20
- export declare function omitSquidDevId(appId: AppId): AppId;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.omitSquidDevId = exports.verifyWithSquidDevId = exports.validateEnvironment = exports.appIdWithEnvironmentIdAndDevId = exports.appIdWithEnvironmentId = exports.parseAppId = exports.allEnvironmentIds = exports.ENVIRONMENT_IDS = void 0;
4
- const assertic_1 = require("assertic");
5
- exports.ENVIRONMENT_IDS = ['dev', 'prod'];
6
- exports.allEnvironmentIds = [...exports.ENVIRONMENT_IDS];
7
- function parseAppId(appId) {
8
- const [appIdWithoutEnv, environmentId, squidDeveloperId, other] = appId.split(/[_-]/);
9
- (0, assertic_1.assertTruthy)(!other, 'Invalid appId: ' + appId);
10
- return {
11
- appId: appIdWithoutEnv,
12
- environmentId: (environmentId !== null && environmentId !== void 0 ? environmentId : 'prod'),
13
- squidDeveloperId,
14
- };
15
- }
16
- exports.parseAppId = parseAppId;
17
- function appIdWithEnvironmentId(appId, environmentId) {
18
- const parsedAppId = parseAppId(appId);
19
- return `${parsedAppId.appId}${!environmentId || environmentId === 'prod' ? '' : `-${environmentId}`}`;
20
- }
21
- exports.appIdWithEnvironmentId = appIdWithEnvironmentId;
22
- function appIdWithEnvironmentIdAndDevId(appId, environmentId, developerId) {
23
- return `${appIdWithEnvironmentId(appId, environmentId)}${developerId ? `-${developerId}` : ''}`;
24
- }
25
- exports.appIdWithEnvironmentIdAndDevId = appIdWithEnvironmentIdAndDevId;
26
- function validateEnvironment(appId) {
27
- const parsedAppId = parseAppId(appId);
28
- (0, assertic_1.assertTruthy)(parsedAppId.environmentId !== 'prod' || !parsedAppId.squidDeveloperId, 'Cannot use developer ID in production');
29
- return parsedAppId;
30
- }
31
- exports.validateEnvironment = validateEnvironment;
32
- function verifyWithSquidDevId(appId) {
33
- const parsedAppId = parseAppId(appId);
34
- (0, assertic_1.assertTruthy)(parsedAppId.squidDeveloperId, 'Must provide squid developer ID');
35
- }
36
- exports.verifyWithSquidDevId = verifyWithSquidDevId;
37
- function omitSquidDevId(appId) {
38
- const parsedAppId = parseAppId(appId);
39
- return appIdWithEnvironmentId(parsedAppId.appId, parsedAppId.environmentId);
40
- }
41
- exports.omitSquidDevId = omitSquidDevId;
42
- //# sourceMappingURL=communication.types.js.map
@@ -1 +0,0 @@
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"}
@@ -1,24 +0,0 @@
1
- import { AppId, ClientId } from './communication.types';
2
- export type AuthType = 'Bearer' | 'ApiKey';
3
- export interface AuthWithBearer {
4
- type: 'Bearer';
5
- userId: string;
6
- expiration: number;
7
- attributes: Record<string, any>;
8
- }
9
- export interface AuthWithApiKey {
10
- type: 'ApiKey';
11
- apiKey: string;
12
- }
13
- export type Auth = AuthWithBearer | AuthWithApiKey;
14
- export interface AuthToken {
15
- type: AuthType;
16
- token: string;
17
- integrationId?: string;
18
- }
19
- export interface RunContext {
20
- appId: AppId;
21
- clientId?: ClientId;
22
- sourceIp?: string;
23
- headers?: Record<string, any>;
24
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=context.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/context.types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export declare class DistributedLockContext {
2
- readonly mutex: string;
3
- constructor(mutex: string);
4
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DistributedLockContext = void 0;
4
- class DistributedLockContext {
5
- constructor(mutex) {
6
- this.mutex = mutex;
7
- }
8
- }
9
- exports.DistributedLockContext = DistributedLockContext;
10
- //# sourceMappingURL=distributed-lock.context.js.map
@@ -1 +0,0 @@
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"}
@@ -1,32 +0,0 @@
1
- import { IntegrationId } from './communication.types';
2
- export type FieldName<T = any> = string & keyof T;
3
- export type PrimitiveFieldType = string | number | boolean | null | Date;
4
- export type FieldType = PrimitiveFieldType | Array<FieldType> | {
5
- [key: string]: FieldType;
6
- };
7
- export type DocId = string;
8
- export type DocIdObj = Record<FieldName, any>;
9
- export type CollectionName = string;
10
- export type FullCollectionName = string;
11
- export type DocTimestamp = number;
12
- export declare const SquidPlaceholderId = "__squidId";
13
- export interface SquidDocIdObj {
14
- collectionName: CollectionName;
15
- docId: DocId;
16
- integrationId: IntegrationId;
17
- }
18
- export interface BeforeAndAfterDocs<T = SquidDocument> {
19
- before: T | undefined;
20
- after: T | undefined;
21
- }
22
- export type SquidDocId = string;
23
- export interface SquidDocument {
24
- __docId__: DocId;
25
- __ts__: DocTimestamp;
26
- [fieldName: string]: FieldType | undefined;
27
- }
28
- export type DocumentData = Record<FieldName, any | undefined>;
29
- export declare function parseSquidDocId(squidDocId: SquidDocId): SquidDocIdObj;
30
- export declare function getSquidDocId(squidDocIdObj: SquidDocIdObj): SquidDocId;
31
- export declare function getSquidDocId(docId: DocId, collectionName: CollectionName, integrationId: IntegrationId): SquidDocId;
32
- export declare function hasDocumentDiff(beforeDoc: SquidDocument | undefined, afterDoc: SquidDocument | undefined): boolean;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hasDocumentDiff = exports.getSquidDocId = exports.parseSquidDocId = exports.SquidPlaceholderId = void 0;
4
- const deep_diff_1 = require("deep-diff");
5
- const assertic_1 = require("assertic");
6
- const serialization_1 = require("../utils/serialization");
7
- exports.SquidPlaceholderId = '__squidId';
8
- function parseSquidDocId(squidDocId) {
9
- return (0, serialization_1.deserializeObj)(squidDocId);
10
- }
11
- exports.parseSquidDocId = parseSquidDocId;
12
- function getSquidDocId(...args) {
13
- const [a, b, c] = args;
14
- const squidDocIdObjObj = typeof a === 'object' ? a : { docId: a, collectionName: b, integrationId: c };
15
- if (!squidDocIdObjObj.integrationId)
16
- squidDocIdObjObj.integrationId = undefined;
17
- return (0, serialization_1.normalizeJsonAsString)(squidDocIdObjObj);
18
- }
19
- exports.getSquidDocId = getSquidDocId;
20
- function hasDocumentDiff(beforeDoc, afterDoc) {
21
- const diffs = (0, deep_diff_1.default)(beforeDoc, afterDoc) || [];
22
- const ignoredKeys = ['__docId__', '__ts__'];
23
- const docIdDiff = diffs.find((diff) => {
24
- var _a;
25
- return ((_a = diff.path) === null || _a === void 0 ? void 0 : _a[0]) === '__docId__';
26
- });
27
- if (docIdDiff) {
28
- if (docIdDiff.kind !== 'E' || !docIdDiff.rhs) {
29
- throw new Error(`Unexpected diff for __docId__: ${(0, serialization_1.normalizeJsonAsString)(docIdDiff)}`);
30
- }
31
- const docIdObj = parseSquidDocId(docIdDiff.rhs + '');
32
- ignoredKeys.push(...Object.keys(docIdObj));
33
- }
34
- const diff = diffs === null || diffs === void 0 ? void 0 : diffs.find((diff) => {
35
- var _a;
36
- if (ignoredKeys.includes((_a = diff.path) === null || _a === void 0 ? void 0 : _a[0]))
37
- return false;
38
- switch (diff.kind) {
39
- case 'N':
40
- return (0, assertic_1.isNonNullable)(diff.rhs);
41
- case 'E':
42
- case 'D':
43
- case 'A':
44
- return true;
45
- }
46
- return false;
47
- });
48
- return !!diff;
49
- }
50
- exports.hasDocumentDiff = hasDocumentDiff;
51
- //# sourceMappingURL=document.types.js.map
@@ -1 +0,0 @@
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"}
@@ -1,14 +0,0 @@
1
- interface GraphQlRequest {
2
- isGraphiQL: boolean;
3
- query?: string;
4
- operationName?: string;
5
- variables?: string | Record<string, any>;
6
- }
7
- export declare class GraphqlContext {
8
- readonly isGraphiQL: boolean;
9
- readonly query: string | undefined;
10
- readonly variables: string | Record<string, any> | undefined;
11
- readonly operationName: string | undefined;
12
- constructor(graphQlRequest: GraphQlRequest);
13
- }
14
- export {};
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphqlContext = void 0;
4
- class GraphqlContext {
5
- constructor(graphQlRequest) {
6
- this.isGraphiQL = graphQlRequest.isGraphiQL;
7
- this.query = graphQlRequest.query;
8
- this.operationName = graphQlRequest.operationName;
9
- this.variables = graphQlRequest.variables;
10
- }
11
- }
12
- exports.GraphqlContext = GraphqlContext;
13
- //# sourceMappingURL=graphql.context.js.map
@@ -1 +0,0 @@
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,11 +0,0 @@
1
- import { type IntrospectionQuery } from 'graphql';
2
- export { type ExecutionResult, type IntrospectionQuery } from 'graphql';
3
- export interface GraphQLRequest {
4
- operationName?: string;
5
- query?: string;
6
- variables?: string | Record<string, any>;
7
- }
8
- export interface SecureGraphQLRequest extends GraphQLRequest {
9
- isGraphiQL: boolean;
10
- }
11
- export declare const EmptyIntrospection: IntrospectionQuery;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmptyIntrospection = void 0;
4
- exports.EmptyIntrospection = {
5
- __schema: {
6
- queryType: { name: 'Query', kind: 'OBJECT' },
7
- mutationType: null,
8
- subscriptionType: null,
9
- types: [
10
- {
11
- name: 'Query',
12
- kind: 'OBJECT',
13
- fields: [
14
- {
15
- name: 'isEmpty',
16
- type: {
17
- kind: 'SCALAR',
18
- name: 'Boolean',
19
- },
20
- args: [],
21
- isDeprecated: false,
22
- deprecationReason: null,
23
- },
24
- ],
25
- interfaces: [],
26
- },
27
- {
28
- name: 'Boolean',
29
- kind: 'SCALAR',
30
- },
31
- ],
32
- directives: [],
33
- },
34
- };
35
- //# sourceMappingURL=graphql.types.js.map
@@ -1 +0,0 @@
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"}
@@ -1,50 +0,0 @@
1
- export declare enum HttpStatus {
2
- CONTINUE = 100,
3
- SWITCHING_PROTOCOLS = 101,
4
- PROCESSING = 102,
5
- EARLYHINTS = 103,
6
- OK = 200,
7
- CREATED = 201,
8
- ACCEPTED = 202,
9
- NON_AUTHORITATIVE_INFORMATION = 203,
10
- NO_CONTENT = 204,
11
- RESET_CONTENT = 205,
12
- PARTIAL_CONTENT = 206,
13
- AMBIGUOUS = 300,
14
- MOVED_PERMANENTLY = 301,
15
- FOUND = 302,
16
- SEE_OTHER = 303,
17
- NOT_MODIFIED = 304,
18
- TEMPORARY_REDIRECT = 307,
19
- PERMANENT_REDIRECT = 308,
20
- BAD_REQUEST = 400,
21
- UNAUTHORIZED = 401,
22
- PAYMENT_REQUIRED = 402,
23
- FORBIDDEN = 403,
24
- NOT_FOUND = 404,
25
- METHOD_NOT_ALLOWED = 405,
26
- NOT_ACCEPTABLE = 406,
27
- PROXY_AUTHENTICATION_REQUIRED = 407,
28
- REQUEST_TIMEOUT = 408,
29
- CONFLICT = 409,
30
- GONE = 410,
31
- LENGTH_REQUIRED = 411,
32
- PRECONDITION_FAILED = 412,
33
- PAYLOAD_TOO_LARGE = 413,
34
- URI_TOO_LONG = 414,
35
- UNSUPPORTED_MEDIA_TYPE = 415,
36
- REQUESTED_RANGE_NOT_SATISFIABLE = 416,
37
- EXPECTATION_FAILED = 417,
38
- I_AM_A_TEAPOT = 418,
39
- MISDIRECTED = 421,
40
- UNPROCESSABLE_ENTITY = 422,
41
- FAILED_DEPENDENCY = 424,
42
- PRECONDITION_REQUIRED = 428,
43
- TOO_MANY_REQUESTS = 429,
44
- INTERNAL_SERVER_ERROR = 500,
45
- NOT_IMPLEMENTED = 501,
46
- BAD_GATEWAY = 502,
47
- SERVICE_UNAVAILABLE = 503,
48
- GATEWAY_TIMEOUT = 504,
49
- HTTP_VERSION_NOT_SUPPORTED = 505
50
- }