@eventvisor/core 0.0.2

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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/jest.config.js +4 -0
  4. package/lib/builder/buildProject.d.ts +21 -0
  5. package/lib/builder/buildProject.js +153 -0
  6. package/lib/builder/buildProject.js.map +1 -0
  7. package/lib/builder/hashes.d.ts +2 -0
  8. package/lib/builder/hashes.js +59 -0
  9. package/lib/builder/hashes.js.map +1 -0
  10. package/lib/builder/index.d.ts +1 -0
  11. package/lib/builder/index.js +18 -0
  12. package/lib/builder/index.js.map +1 -0
  13. package/lib/cli/cli.d.ts +26 -0
  14. package/lib/cli/cli.js +69 -0
  15. package/lib/cli/cli.js.map +1 -0
  16. package/lib/cli/index.d.ts +1 -0
  17. package/lib/cli/index.js +18 -0
  18. package/lib/cli/index.js.map +1 -0
  19. package/lib/cli/plugins.d.ts +4 -0
  20. package/lib/cli/plugins.js +12 -0
  21. package/lib/cli/plugins.js.map +1 -0
  22. package/lib/config/index.d.ts +2 -0
  23. package/lib/config/index.js +19 -0
  24. package/lib/config/index.js.map +1 -0
  25. package/lib/config/parsers.d.ts +15 -0
  26. package/lib/config/parsers.js +65 -0
  27. package/lib/config/parsers.js.map +1 -0
  28. package/lib/config/projectConfig.d.ts +42 -0
  29. package/lib/config/projectConfig.js +137 -0
  30. package/lib/config/projectConfig.js.map +1 -0
  31. package/lib/datasource/adapter.d.ts +16 -0
  32. package/lib/datasource/adapter.js +7 -0
  33. package/lib/datasource/adapter.js.map +1 -0
  34. package/lib/datasource/datasource.d.ts +48 -0
  35. package/lib/datasource/datasource.js +117 -0
  36. package/lib/datasource/datasource.js.map +1 -0
  37. package/lib/datasource/filesystemAdapter.d.ts +29 -0
  38. package/lib/datasource/filesystemAdapter.js +192 -0
  39. package/lib/datasource/filesystemAdapter.js.map +1 -0
  40. package/lib/datasource/index.d.ts +3 -0
  41. package/lib/datasource/index.js +20 -0
  42. package/lib/datasource/index.js.map +1 -0
  43. package/lib/dependencies.d.ts +11 -0
  44. package/lib/dependencies.js +3 -0
  45. package/lib/dependencies.js.map +1 -0
  46. package/lib/index.d.ts +4 -0
  47. package/lib/index.js +21 -0
  48. package/lib/index.js.map +1 -0
  49. package/lib/index.spec.d.ts +0 -0
  50. package/lib/index.spec.js +6 -0
  51. package/lib/index.spec.js.map +1 -0
  52. package/lib/init/index.d.ts +8 -0
  53. package/lib/init/index.js +90 -0
  54. package/lib/init/index.js.map +1 -0
  55. package/lib/linter/attributeSchema.d.ts +5 -0
  56. package/lib/linter/attributeSchema.js +55 -0
  57. package/lib/linter/attributeSchema.js.map +1 -0
  58. package/lib/linter/conditionsSchema.d.ts +303 -0
  59. package/lib/linter/conditionsSchema.js +106 -0
  60. package/lib/linter/conditionsSchema.js.map +1 -0
  61. package/lib/linter/destinationSchema.d.ts +5 -0
  62. package/lib/linter/destinationSchema.js +57 -0
  63. package/lib/linter/destinationSchema.js.map +1 -0
  64. package/lib/linter/effectSchema.d.ts +1257 -0
  65. package/lib/linter/effectSchema.js +77 -0
  66. package/lib/linter/effectSchema.js.map +1 -0
  67. package/lib/linter/eventSchema.d.ts +5 -0
  68. package/lib/linter/eventSchema.js +70 -0
  69. package/lib/linter/eventSchema.js.map +1 -0
  70. package/lib/linter/index.d.ts +1 -0
  71. package/lib/linter/index.js +18 -0
  72. package/lib/linter/index.js.map +1 -0
  73. package/lib/linter/jsonSchema.d.ts +25 -0
  74. package/lib/linter/jsonSchema.js +487 -0
  75. package/lib/linter/jsonSchema.js.map +1 -0
  76. package/lib/linter/jsonSchema.spec.d.ts +1 -0
  77. package/lib/linter/jsonSchema.spec.js +875 -0
  78. package/lib/linter/jsonSchema.spec.js.map +1 -0
  79. package/lib/linter/lintProject.d.ts +2 -0
  80. package/lib/linter/lintProject.js +141 -0
  81. package/lib/linter/lintProject.js.map +1 -0
  82. package/lib/linter/persistSchema.d.ts +609 -0
  83. package/lib/linter/persistSchema.js +52 -0
  84. package/lib/linter/persistSchema.js.map +1 -0
  85. package/lib/linter/printError.d.ts +9 -0
  86. package/lib/linter/printError.js +75 -0
  87. package/lib/linter/printError.js.map +1 -0
  88. package/lib/linter/sampleSchema.d.ts +331 -0
  89. package/lib/linter/sampleSchema.js +70 -0
  90. package/lib/linter/sampleSchema.js.map +1 -0
  91. package/lib/linter/sourceSchema.d.ts +11 -0
  92. package/lib/linter/sourceSchema.js +73 -0
  93. package/lib/linter/sourceSchema.js.map +1 -0
  94. package/lib/linter/tagsSchema.d.ts +3 -0
  95. package/lib/linter/tagsSchema.js +44 -0
  96. package/lib/linter/tagsSchema.js.map +1 -0
  97. package/lib/linter/testSchema.d.ts +5 -0
  98. package/lib/linter/testSchema.js +44 -0
  99. package/lib/linter/testSchema.js.map +1 -0
  100. package/lib/linter/transformsSchema.d.ts +29 -0
  101. package/lib/linter/transformsSchema.js +66 -0
  102. package/lib/linter/transformsSchema.js.map +1 -0
  103. package/lib/tester/createTestInstance.d.ts +16 -0
  104. package/lib/tester/createTestInstance.js +158 -0
  105. package/lib/tester/createTestInstance.js.map +1 -0
  106. package/lib/tester/executeTest.d.ts +24 -0
  107. package/lib/tester/executeTest.js +305 -0
  108. package/lib/tester/executeTest.js.map +1 -0
  109. package/lib/tester/index.d.ts +1 -0
  110. package/lib/tester/index.js +18 -0
  111. package/lib/tester/index.js.map +1 -0
  112. package/lib/tester/printTestResult.d.ts +10 -0
  113. package/lib/tester/printTestResult.js +80 -0
  114. package/lib/tester/printTestResult.js.map +1 -0
  115. package/lib/tester/testProject.d.ts +12 -0
  116. package/lib/tester/testProject.js +93 -0
  117. package/lib/tester/testProject.js.map +1 -0
  118. package/lib/utils/index.d.ts +1 -0
  119. package/lib/utils/index.js +18 -0
  120. package/lib/utils/index.js.map +1 -0
  121. package/lib/utils/prettyDuration.d.ts +1 -0
  122. package/lib/utils/prettyDuration.js +27 -0
  123. package/lib/utils/prettyDuration.js.map +1 -0
  124. package/package.json +42 -0
  125. package/src/builder/buildProject.ts +222 -0
  126. package/src/builder/hashes.ts +30 -0
  127. package/src/builder/index.ts +1 -0
  128. package/src/cli/cli.ts +110 -0
  129. package/src/cli/index.ts +1 -0
  130. package/src/cli/plugins.ts +13 -0
  131. package/src/config/index.ts +2 -0
  132. package/src/config/parsers.ts +40 -0
  133. package/src/config/projectConfig.ts +158 -0
  134. package/src/datasource/adapter.ts +23 -0
  135. package/src/datasource/datasource.ts +164 -0
  136. package/src/datasource/filesystemAdapter.ts +206 -0
  137. package/src/datasource/index.ts +3 -0
  138. package/src/dependencies.ts +13 -0
  139. package/src/index.spec.ts +5 -0
  140. package/src/index.ts +4 -0
  141. package/src/init/index.ts +65 -0
  142. package/src/linter/attributeSchema.ts +23 -0
  143. package/src/linter/conditionsSchema.ts +89 -0
  144. package/src/linter/destinationSchema.ts +25 -0
  145. package/src/linter/effectSchema.ts +49 -0
  146. package/src/linter/eventSchema.ts +40 -0
  147. package/src/linter/index.ts +1 -0
  148. package/src/linter/jsonSchema.spec.ts +934 -0
  149. package/src/linter/jsonSchema.ts +533 -0
  150. package/src/linter/lintProject.ts +182 -0
  151. package/src/linter/persistSchema.ts +21 -0
  152. package/src/linter/printError.ts +50 -0
  153. package/src/linter/sampleSchema.ts +45 -0
  154. package/src/linter/sourceSchema.ts +42 -0
  155. package/src/linter/tagsSchema.ts +12 -0
  156. package/src/linter/testSchema.ts +9 -0
  157. package/src/linter/transformsSchema.ts +35 -0
  158. package/src/tester/createTestInstance.ts +209 -0
  159. package/src/tester/executeTest.ts +436 -0
  160. package/src/tester/index.ts +1 -0
  161. package/src/tester/printTestResult.ts +60 -0
  162. package/src/tester/testProject.ts +129 -0
  163. package/src/utils/index.ts +1 -0
  164. package/src/utils/prettyDuration.ts +27 -0
  165. package/tsconfig.cjs.json +11 -0
package/lib/index.js ADDED
@@ -0,0 +1,21 @@
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("./cli"), exports);
18
+ __exportStar(require("./config"), exports);
19
+ __exportStar(require("./datasource"), exports);
20
+ __exportStar(require("./dependencies"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,+CAA6B;AAC7B,iDAA+B"}
File without changes
@@ -0,0 +1,6 @@
1
+ describe("core :: index", function () {
2
+ it("should run tests", function () {
3
+ expect(true).toBe(true);
4
+ });
5
+ });
6
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,QAAQ,CAAC,eAAe,EAAE;IACxB,EAAE,CAAC,kBAAkB,EAAE;QACrB,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Plugin } from "../cli";
2
+ export declare const DEFAULT_PROJECT = "yml";
3
+ export declare const PROJECTS_ORG_NAME = "eventvisor";
4
+ export declare const PROJECTS_REPO_NAME = "eventvisor";
5
+ export declare const PROJECTS_BRANCH_NAME = "main";
6
+ export declare const PROJECTS_TAR_URL = "https://codeload.github.com/eventvisor/eventvisor/tar.gz/main";
7
+ export declare function initProject(directoryPath: string, projectName?: string): Promise<boolean>;
8
+ export declare const initPlugin: Plugin;
@@ -0,0 +1,90 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.initPlugin = exports.PROJECTS_TAR_URL = exports.PROJECTS_BRANCH_NAME = exports.PROJECTS_REPO_NAME = exports.PROJECTS_ORG_NAME = exports.DEFAULT_PROJECT = void 0;
40
+ exports.initProject = initProject;
41
+ const axios_1 = __importDefault(require("axios"));
42
+ const tar = __importStar(require("tar"));
43
+ exports.DEFAULT_PROJECT = "yml";
44
+ exports.PROJECTS_ORG_NAME = "eventvisor";
45
+ exports.PROJECTS_REPO_NAME = "eventvisor";
46
+ exports.PROJECTS_BRANCH_NAME = "main";
47
+ exports.PROJECTS_TAR_URL = `https://codeload.github.com/${exports.PROJECTS_ORG_NAME}/${exports.PROJECTS_REPO_NAME}/tar.gz/${exports.PROJECTS_BRANCH_NAME}`;
48
+ function getProjectPath(projectName) {
49
+ return `${exports.PROJECTS_REPO_NAME}-${exports.PROJECTS_BRANCH_NAME}/projects/project-${projectName}/`;
50
+ }
51
+ function initProject(directoryPath, projectName = exports.DEFAULT_PROJECT) {
52
+ return new Promise(function (resolve) {
53
+ axios_1.default.get(exports.PROJECTS_TAR_URL, { responseType: "stream" }).then((response) => {
54
+ response.data
55
+ .pipe(tar.x({
56
+ C: directoryPath,
57
+ filter: (path) => path.indexOf(getProjectPath(projectName)) === 0,
58
+ strip: 3,
59
+ }))
60
+ .on("error", (e) => {
61
+ console.error(e);
62
+ resolve(false);
63
+ })
64
+ .on("finish", () => {
65
+ console.log(`Project scaffolded in ${directoryPath}`);
66
+ console.log(``);
67
+ console.log(`Please run "npm install" in the directory above.`);
68
+ resolve(true);
69
+ });
70
+ });
71
+ });
72
+ }
73
+ exports.initPlugin = {
74
+ command: "init",
75
+ handler: async function (options) {
76
+ const { rootDirectoryPath, parsed } = options;
77
+ await initProject(rootDirectoryPath, parsed.project);
78
+ },
79
+ examples: [
80
+ {
81
+ command: "init",
82
+ description: "scaffold a new project in current directory",
83
+ },
84
+ {
85
+ command: "init --project=projectName",
86
+ description: "scaffold a new project in current directory from known example",
87
+ },
88
+ ],
89
+ };
90
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,kCA4BC;AA7CD,kDAA0B;AAC1B,yCAA2B;AAId,QAAA,eAAe,GAAG,KAAK,CAAC;AAExB,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAClC,QAAA,oBAAoB,GAAG,MAAM,CAAC;AAE9B,QAAA,gBAAgB,GAAG,+BAA+B,yBAAiB,IAAI,0BAAkB,WAAW,4BAAoB,EAAE,CAAC;AAExI,SAAS,cAAc,CAAC,WAAmB;IACzC,OAAO,GAAG,0BAAkB,IAAI,4BAAoB,qBAAqB,WAAW,GAAG,CAAC;AAC1F,CAAC;AAED,SAAgB,WAAW,CACzB,aAAqB,EACrB,cAAsB,uBAAe;IAErC,OAAO,IAAI,OAAO,CAAC,UAAU,OAAO;QAClC,eAAK,CAAC,GAAG,CAAC,wBAAgB,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACxE,QAAQ,CAAC,IAAI;iBACV,IAAI,CACH,GAAG,CAAC,CAAC,CAAC;gBACJ,CAAC,EAAE,aAAa;gBAChB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;gBACjE,KAAK,EAAE,CAAC;aACT,CAAC,CACH;iBACA,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACjB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAEjB,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC,CAAC;iBACD,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;gBACjB,OAAO,CAAC,GAAG,CAAC,yBAAyB,aAAa,EAAE,CAAC,CAAC;gBACtD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAChB,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;gBAEhE,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAEY,QAAA,UAAU,GAAW;IAChC,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,KAAK,WAAW,OAAO;QAC9B,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAE9C,MAAM,WAAW,CAAC,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,6CAA6C;SAC3D;QACD;YACE,OAAO,EAAE,4BAA4B;YACrC,WAAW,EAAE,gEAAgE;SAC9E;KACF;CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as z from "zod";
2
+ import { Dependencies } from "../dependencies";
3
+ export declare function getAttributeSchema(deps: Dependencies): z.ZodObject<{
4
+ [x: string]: any;
5
+ }, z.core.$strict>;
@@ -0,0 +1,55 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.getAttributeSchema = getAttributeSchema;
37
+ const z = __importStar(require("zod"));
38
+ const jsonSchema_1 = require("./jsonSchema");
39
+ const tagsSchema_1 = require("./tagsSchema");
40
+ const transformsSchema_1 = require("./transformsSchema");
41
+ const persistSchema_1 = require("./persistSchema");
42
+ function getAttributeSchema(deps) {
43
+ return z
44
+ .object({
45
+ ...jsonSchema_1.JSONZodSchema.shape,
46
+ archived: z.boolean().optional(),
47
+ deprecated: z.boolean().optional(),
48
+ description: z.string(),
49
+ tags: (0, tagsSchema_1.getTagsSchema)(deps),
50
+ transforms: (0, transformsSchema_1.getTransformsSchema)(deps).optional(),
51
+ persist: (0, persistSchema_1.getPersistSchema)(deps).optional(),
52
+ })
53
+ .strict();
54
+ }
55
+ //# sourceMappingURL=attributeSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributeSchema.js","sourceRoot":"","sources":["../../src/linter/attributeSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,gDAcC;AAtBD,uCAAyB;AAGzB,6CAA6C;AAC7C,6CAA6C;AAC7C,yDAAyD;AACzD,mDAAmD;AAEnD,SAAgB,kBAAkB,CAAC,IAAkB;IACnD,OAAO,CAAC;SACL,MAAM,CAAC;QACN,GAAG,0BAAa,CAAC,KAAK;QAEtB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAChC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,IAAI,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC;QAEzB,UAAU,EAAE,IAAA,sCAAmB,EAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QAChD,OAAO,EAAE,IAAA,gCAAgB,EAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;KAC3C,CAAC;SACD,MAAM,EAAE,CAAC;AACd,CAAC"}
@@ -0,0 +1,303 @@
1
+ import * as z from "zod";
2
+ import { Dependencies } from "../dependencies";
3
+ export declare function getConditionsSchema(deps: Dependencies): z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
4
+ operator: z.ZodEnum<{
5
+ includes: "includes";
6
+ endsWith: "endsWith";
7
+ startsWith: "startsWith";
8
+ matches: "matches";
9
+ contains: "contains";
10
+ after: "after";
11
+ before: "before";
12
+ equals: "equals";
13
+ notEquals: "notEquals";
14
+ exists: "exists";
15
+ notExists: "notExists";
16
+ greaterThan: "greaterThan";
17
+ greaterThanOrEquals: "greaterThanOrEquals";
18
+ lessThan: "lessThan";
19
+ lessThanOrEquals: "lessThanOrEquals";
20
+ notContains: "notContains";
21
+ semverEquals: "semverEquals";
22
+ semverNotEquals: "semverNotEquals";
23
+ semverGreaterThan: "semverGreaterThan";
24
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
25
+ semverLessThan: "semverLessThan";
26
+ semverLessThanOrEquals: "semverLessThanOrEquals";
27
+ notIncludes: "notIncludes";
28
+ notMatches: "notMatches";
29
+ in: "in";
30
+ notIn: "notIn";
31
+ }>;
32
+ value: z.ZodOptional<z.ZodAny>;
33
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
34
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
35
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
36
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
37
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
38
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ and: z.ZodArray<z.ZodObject<{
41
+ operator: z.ZodEnum<{
42
+ includes: "includes";
43
+ endsWith: "endsWith";
44
+ startsWith: "startsWith";
45
+ matches: "matches";
46
+ contains: "contains";
47
+ after: "after";
48
+ before: "before";
49
+ equals: "equals";
50
+ notEquals: "notEquals";
51
+ exists: "exists";
52
+ notExists: "notExists";
53
+ greaterThan: "greaterThan";
54
+ greaterThanOrEquals: "greaterThanOrEquals";
55
+ lessThan: "lessThan";
56
+ lessThanOrEquals: "lessThanOrEquals";
57
+ notContains: "notContains";
58
+ semverEquals: "semverEquals";
59
+ semverNotEquals: "semverNotEquals";
60
+ semverGreaterThan: "semverGreaterThan";
61
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
62
+ semverLessThan: "semverLessThan";
63
+ semverLessThanOrEquals: "semverLessThanOrEquals";
64
+ notIncludes: "notIncludes";
65
+ notMatches: "notMatches";
66
+ in: "in";
67
+ notIn: "notIn";
68
+ }>;
69
+ value: z.ZodOptional<z.ZodAny>;
70
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
71
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
72
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
73
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
74
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
75
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
76
+ }, z.core.$strip>>;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ or: z.ZodArray<z.ZodObject<{
79
+ operator: z.ZodEnum<{
80
+ includes: "includes";
81
+ endsWith: "endsWith";
82
+ startsWith: "startsWith";
83
+ matches: "matches";
84
+ contains: "contains";
85
+ after: "after";
86
+ before: "before";
87
+ equals: "equals";
88
+ notEquals: "notEquals";
89
+ exists: "exists";
90
+ notExists: "notExists";
91
+ greaterThan: "greaterThan";
92
+ greaterThanOrEquals: "greaterThanOrEquals";
93
+ lessThan: "lessThan";
94
+ lessThanOrEquals: "lessThanOrEquals";
95
+ notContains: "notContains";
96
+ semverEquals: "semverEquals";
97
+ semverNotEquals: "semverNotEquals";
98
+ semverGreaterThan: "semverGreaterThan";
99
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
100
+ semverLessThan: "semverLessThan";
101
+ semverLessThanOrEquals: "semverLessThanOrEquals";
102
+ notIncludes: "notIncludes";
103
+ notMatches: "notMatches";
104
+ in: "in";
105
+ notIn: "notIn";
106
+ }>;
107
+ value: z.ZodOptional<z.ZodAny>;
108
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
109
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
110
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
111
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
112
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
113
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ not: z.ZodArray<z.ZodObject<{
117
+ operator: z.ZodEnum<{
118
+ includes: "includes";
119
+ endsWith: "endsWith";
120
+ startsWith: "startsWith";
121
+ matches: "matches";
122
+ contains: "contains";
123
+ after: "after";
124
+ before: "before";
125
+ equals: "equals";
126
+ notEquals: "notEquals";
127
+ exists: "exists";
128
+ notExists: "notExists";
129
+ greaterThan: "greaterThan";
130
+ greaterThanOrEquals: "greaterThanOrEquals";
131
+ lessThan: "lessThan";
132
+ lessThanOrEquals: "lessThanOrEquals";
133
+ notContains: "notContains";
134
+ semverEquals: "semverEquals";
135
+ semverNotEquals: "semverNotEquals";
136
+ semverGreaterThan: "semverGreaterThan";
137
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
138
+ semverLessThan: "semverLessThan";
139
+ semverLessThanOrEquals: "semverLessThanOrEquals";
140
+ notIncludes: "notIncludes";
141
+ notMatches: "notMatches";
142
+ in: "in";
143
+ notIn: "notIn";
144
+ }>;
145
+ value: z.ZodOptional<z.ZodAny>;
146
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
147
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
148
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
149
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
150
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
151
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
154
+ operator: z.ZodEnum<{
155
+ includes: "includes";
156
+ endsWith: "endsWith";
157
+ startsWith: "startsWith";
158
+ matches: "matches";
159
+ contains: "contains";
160
+ after: "after";
161
+ before: "before";
162
+ equals: "equals";
163
+ notEquals: "notEquals";
164
+ exists: "exists";
165
+ notExists: "notExists";
166
+ greaterThan: "greaterThan";
167
+ greaterThanOrEquals: "greaterThanOrEquals";
168
+ lessThan: "lessThan";
169
+ lessThanOrEquals: "lessThanOrEquals";
170
+ notContains: "notContains";
171
+ semverEquals: "semverEquals";
172
+ semverNotEquals: "semverNotEquals";
173
+ semverGreaterThan: "semverGreaterThan";
174
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
175
+ semverLessThan: "semverLessThan";
176
+ semverLessThanOrEquals: "semverLessThanOrEquals";
177
+ notIncludes: "notIncludes";
178
+ notMatches: "notMatches";
179
+ in: "in";
180
+ notIn: "notIn";
181
+ }>;
182
+ value: z.ZodOptional<z.ZodAny>;
183
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
184
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
185
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
186
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
187
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
188
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ and: z.ZodArray<z.ZodObject<{
191
+ operator: z.ZodEnum<{
192
+ includes: "includes";
193
+ endsWith: "endsWith";
194
+ startsWith: "startsWith";
195
+ matches: "matches";
196
+ contains: "contains";
197
+ after: "after";
198
+ before: "before";
199
+ equals: "equals";
200
+ notEquals: "notEquals";
201
+ exists: "exists";
202
+ notExists: "notExists";
203
+ greaterThan: "greaterThan";
204
+ greaterThanOrEquals: "greaterThanOrEquals";
205
+ lessThan: "lessThan";
206
+ lessThanOrEquals: "lessThanOrEquals";
207
+ notContains: "notContains";
208
+ semverEquals: "semverEquals";
209
+ semverNotEquals: "semverNotEquals";
210
+ semverGreaterThan: "semverGreaterThan";
211
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
212
+ semverLessThan: "semverLessThan";
213
+ semverLessThanOrEquals: "semverLessThanOrEquals";
214
+ notIncludes: "notIncludes";
215
+ notMatches: "notMatches";
216
+ in: "in";
217
+ notIn: "notIn";
218
+ }>;
219
+ value: z.ZodOptional<z.ZodAny>;
220
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
221
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
222
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
223
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
224
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
225
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
226
+ }, z.core.$strip>>;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ or: z.ZodArray<z.ZodObject<{
229
+ operator: z.ZodEnum<{
230
+ includes: "includes";
231
+ endsWith: "endsWith";
232
+ startsWith: "startsWith";
233
+ matches: "matches";
234
+ contains: "contains";
235
+ after: "after";
236
+ before: "before";
237
+ equals: "equals";
238
+ notEquals: "notEquals";
239
+ exists: "exists";
240
+ notExists: "notExists";
241
+ greaterThan: "greaterThan";
242
+ greaterThanOrEquals: "greaterThanOrEquals";
243
+ lessThan: "lessThan";
244
+ lessThanOrEquals: "lessThanOrEquals";
245
+ notContains: "notContains";
246
+ semverEquals: "semverEquals";
247
+ semverNotEquals: "semverNotEquals";
248
+ semverGreaterThan: "semverGreaterThan";
249
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
250
+ semverLessThan: "semverLessThan";
251
+ semverLessThanOrEquals: "semverLessThanOrEquals";
252
+ notIncludes: "notIncludes";
253
+ notMatches: "notMatches";
254
+ in: "in";
255
+ notIn: "notIn";
256
+ }>;
257
+ value: z.ZodOptional<z.ZodAny>;
258
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
259
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
260
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
261
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
262
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
263
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ not: z.ZodArray<z.ZodObject<{
267
+ operator: z.ZodEnum<{
268
+ includes: "includes";
269
+ endsWith: "endsWith";
270
+ startsWith: "startsWith";
271
+ matches: "matches";
272
+ contains: "contains";
273
+ after: "after";
274
+ before: "before";
275
+ equals: "equals";
276
+ notEquals: "notEquals";
277
+ exists: "exists";
278
+ notExists: "notExists";
279
+ greaterThan: "greaterThan";
280
+ greaterThanOrEquals: "greaterThanOrEquals";
281
+ lessThan: "lessThan";
282
+ lessThanOrEquals: "lessThanOrEquals";
283
+ notContains: "notContains";
284
+ semverEquals: "semverEquals";
285
+ semverNotEquals: "semverNotEquals";
286
+ semverGreaterThan: "semverGreaterThan";
287
+ semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
288
+ semverLessThan: "semverLessThan";
289
+ semverLessThanOrEquals: "semverLessThanOrEquals";
290
+ notIncludes: "notIncludes";
291
+ notMatches: "notMatches";
292
+ in: "in";
293
+ notIn: "notIn";
294
+ }>;
295
+ value: z.ZodOptional<z.ZodAny>;
296
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
297
+ attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
298
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
299
+ effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
300
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
301
+ lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
302
+ }, z.core.$strip>>;
303
+ }, z.core.$strip>]>>]>;
@@ -0,0 +1,106 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.getConditionsSchema = getConditionsSchema;
37
+ const z = __importStar(require("zod"));
38
+ const sourceSchema_1 = require("./sourceSchema");
39
+ function getConditionsSchema(deps) {
40
+ const sourceBase = (0, sourceSchema_1.getSourceBaseSchema)(deps);
41
+ const plainConditionSchema = z
42
+ .object({
43
+ ...sourceBase.shape,
44
+ operator: z.enum([
45
+ "equals",
46
+ "notEquals",
47
+ "exists",
48
+ "notExists",
49
+ // numeric
50
+ "greaterThan",
51
+ "greaterThanOrEquals",
52
+ "lessThan",
53
+ "lessThanOrEquals",
54
+ // string
55
+ "contains",
56
+ "notContains",
57
+ "startsWith",
58
+ "endsWith",
59
+ // semver (string)
60
+ "semverEquals",
61
+ "semverNotEquals",
62
+ "semverGreaterThan",
63
+ "semverGreaterThanOrEquals",
64
+ "semverLessThan",
65
+ "semverLessThanOrEquals",
66
+ // date comparisons
67
+ "before",
68
+ "after",
69
+ // array of strings
70
+ "includes",
71
+ "notIncludes",
72
+ // regex
73
+ "matches",
74
+ "notMatches",
75
+ // array of strings
76
+ "in",
77
+ "notIn",
78
+ ]),
79
+ value: z.any().optional(),
80
+ })
81
+ .refine(...(0, sourceSchema_1.getSourceBaseRefine)())
82
+ // @TODO: refine "value" type against each "operator"
83
+ .refine((data) => {
84
+ if (data.operator === "exists" || data.operator === "notExists") {
85
+ return data.value === undefined;
86
+ }
87
+ return data.value !== undefined;
88
+ }, { message: "Value is required for all operators except exists and notExists" });
89
+ const andConditionSchema = z.object({
90
+ and: z.array(plainConditionSchema),
91
+ });
92
+ const orConditionSchema = z.object({
93
+ or: z.array(plainConditionSchema),
94
+ });
95
+ const notConditionSchema = z.object({
96
+ not: z.array(plainConditionSchema),
97
+ });
98
+ const conditionSchema = z.union([
99
+ plainConditionSchema,
100
+ andConditionSchema,
101
+ orConditionSchema,
102
+ notConditionSchema,
103
+ ]);
104
+ return z.union([conditionSchema, z.array(conditionSchema)]);
105
+ }
106
+ //# sourceMappingURL=conditionsSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionsSchema.js","sourceRoot":"","sources":["../../src/linter/conditionsSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,kDAmFC;AAxFD,uCAAyB;AAGzB,iDAA0E;AAE1E,SAAgB,mBAAmB,CAAC,IAAkB;IACpD,MAAM,UAAU,GAAG,IAAA,kCAAmB,EAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,oBAAoB,GAAG,CAAC;SAC3B,MAAM,CAAC;QACN,GAAG,UAAU,CAAC,KAAK;QACnB,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC;YACf,QAAQ;YACR,WAAW;YACX,QAAQ;YACR,WAAW;YAEX,UAAU;YACV,aAAa;YACb,qBAAqB;YACrB,UAAU;YACV,kBAAkB;YAElB,SAAS;YACT,UAAU;YACV,aAAa;YACb,YAAY;YACZ,UAAU;YAEV,kBAAkB;YAClB,cAAc;YACd,iBAAiB;YACjB,mBAAmB;YACnB,2BAA2B;YAC3B,gBAAgB;YAChB,wBAAwB;YAExB,mBAAmB;YACnB,QAAQ;YACR,OAAO;YAEP,mBAAmB;YACnB,UAAU;YACV,aAAa;YAEb,QAAQ;YACR,SAAS;YACT,YAAY;YAEZ,mBAAmB;YACnB,IAAI;YACJ,OAAO;SACR,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KAC1B,CAAC;SACD,MAAM,CAAC,GAAG,IAAA,kCAAmB,GAAE,CAAC;QACjC,qDAAqD;SACpD,MAAM,CACL,CAAC,IAAI,EAAE,EAAE;QACP,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,WAAW,EAAE,CAAC;YAChE,OAAO,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC;QAClC,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC;IAClC,CAAC,EACD,EAAE,OAAO,EAAE,iEAAiE,EAAE,CAC/E,CAAC;IAEJ,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;QAClC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;KACnC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;QACjC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;KAClC,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;QAClC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;KACnC,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC;QAC9B,oBAAoB;QACpB,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;KACnB,CAAC,CAAC;IAEH,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as z from "zod";
2
+ import { Dependencies } from "../dependencies";
3
+ export declare function getDestinationSchema(deps: Dependencies): z.ZodObject<{
4
+ [x: string]: any;
5
+ }, z.core.$strict>;