@superblocksteam/util 1.14.2 → 2.0.3-next.50

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 (95) hide show
  1. package/.prettierrc +1 -0
  2. package/dist/api-files/api.d.mts +7 -0
  3. package/dist/api-files/api.d.mts.map +1 -0
  4. package/dist/api-files/api.mjs +262 -0
  5. package/dist/api-files/api.mjs.map +1 -0
  6. package/dist/api-files/constants.d.ts +6 -0
  7. package/dist/api-files/constants.d.ts.map +1 -0
  8. package/dist/api-files/constants.js +9 -0
  9. package/dist/api-files/constants.js.map +1 -0
  10. package/dist/api-files/index.d.ts +7 -0
  11. package/dist/api-files/index.d.ts.map +1 -0
  12. package/dist/api-files/index.js +13 -0
  13. package/dist/api-files/index.js.map +1 -0
  14. package/dist/api-files/types.d.ts +117 -0
  15. package/dist/api-files/types.d.ts.map +1 -0
  16. package/dist/api-files/types.js +17 -0
  17. package/dist/api-files/types.js.map +1 -0
  18. package/dist/component-configs.d.ts +1 -0
  19. package/dist/component-configs.d.ts.map +1 -0
  20. package/dist/component-configs.js +10 -9
  21. package/dist/component-configs.js.map +1 -0
  22. package/dist/constants.d.ts +1 -0
  23. package/dist/constants.d.ts.map +1 -0
  24. package/dist/constants.js +1 -0
  25. package/dist/constants.js.map +1 -0
  26. package/dist/data-types.d.ts +1 -0
  27. package/dist/data-types.d.ts.map +1 -0
  28. package/dist/data-types.js +1 -0
  29. package/dist/data-types.js.map +1 -0
  30. package/dist/events.d.ts +1 -0
  31. package/dist/events.d.ts.map +1 -0
  32. package/dist/events.js +1 -0
  33. package/dist/events.js.map +1 -0
  34. package/dist/file-uploader.d.ts +1 -0
  35. package/dist/file-uploader.d.ts.map +1 -0
  36. package/dist/file-uploader.js +1 -0
  37. package/dist/file-uploader.js.map +1 -0
  38. package/dist/generate-component-types.d.ts +2 -1
  39. package/dist/generate-component-types.d.ts.map +1 -0
  40. package/dist/generate-component-types.js +5 -5
  41. package/dist/generate-component-types.js.map +1 -0
  42. package/dist/identifiers.d.ts +1 -0
  43. package/dist/identifiers.d.ts.map +1 -0
  44. package/dist/identifiers.js +2 -1
  45. package/dist/identifiers.js.map +1 -0
  46. package/dist/index.d.ts +16 -11
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +16 -11
  49. package/dist/index.js.map +1 -0
  50. package/dist/localGitRepoState.d.ts +2 -1
  51. package/dist/localGitRepoState.d.ts.map +1 -0
  52. package/dist/localGitRepoState.js +1 -0
  53. package/dist/localGitRepoState.js.map +1 -0
  54. package/dist/login.d.ts +1 -0
  55. package/dist/login.d.ts.map +1 -0
  56. package/dist/login.js +6 -5
  57. package/dist/login.js.map +1 -0
  58. package/dist/mask-unix-signals.d.ts +27 -0
  59. package/dist/mask-unix-signals.d.ts.map +1 -0
  60. package/dist/mask-unix-signals.js +81 -0
  61. package/dist/mask-unix-signals.js.map +1 -0
  62. package/dist/resource-configs.d.ts +9 -1
  63. package/dist/resource-configs.d.ts.map +1 -0
  64. package/dist/resource-configs.js +66 -11
  65. package/dist/resource-configs.js.map +1 -0
  66. package/dist/types.d.ts +8 -7
  67. package/dist/types.d.ts.map +1 -0
  68. package/dist/types.js +1 -0
  69. package/dist/types.js.map +1 -0
  70. package/dist/unreachable.d.ts +2 -1
  71. package/dist/unreachable.d.ts.map +1 -0
  72. package/dist/unreachable.js +3 -2
  73. package/dist/unreachable.js.map +1 -0
  74. package/dist/validation.d.ts +1 -0
  75. package/dist/validation.d.ts.map +1 -0
  76. package/dist/validation.js +4 -3
  77. package/dist/validation.js.map +1 -0
  78. package/eslint.config.js +11 -1
  79. package/package.json +18 -11
  80. package/src/api-files/api.mts +504 -0
  81. package/src/api-files/constants.ts +6 -0
  82. package/src/api-files/index.ts +15 -0
  83. package/src/api-files/types.ts +134 -0
  84. package/src/component-configs.ts +3 -3
  85. package/src/generate-component-types.ts +2 -2
  86. package/src/index.ts +15 -11
  87. package/src/localGitRepoState.ts +1 -1
  88. package/src/login.ts +1 -1
  89. package/src/mask-unix-signals.ts +86 -0
  90. package/src/resource-configs.ts +81 -1
  91. package/src/types.ts +8 -11
  92. package/src/unreachable.ts +4 -2
  93. package/src/validation.ts +4 -3
  94. package/tsconfig.json +9 -2
  95. package/tsconfig.tsbuildinfo +1 -1
package/.prettierrc CHANGED
@@ -6,6 +6,7 @@
6
6
  "singleQuote": false,
7
7
  "trailingComma": "all",
8
8
  "arrowParens": "always",
9
+ "plugins": ["prettier-plugin-pkg"],
9
10
  "overrides": [
10
11
  {
11
12
  "files": ["*.ts", "*.tsx", "*.mts"],
@@ -0,0 +1,7 @@
1
+ import type { AdditionalStepFiles, Api, ApiRepresentation, ApiWrapper } from "./types.js";
2
+ export declare function writeApiFiles(api: ApiWrapper, apiNameSlug: string, directoryPath: string, nestedApiFiles: boolean, apiPromises: Array<Promise<void>>, additionalStepFiles: AdditionalStepFiles[], apiRepresentation?: ApiRepresentation, existingFilePaths?: Set<string>, stepPathMap?: Record<string, string>): Promise<void>;
3
+ export declare function readAppApiYamlFile(parentDirectory: string, apiName?: string): Promise<{
4
+ api: Api;
5
+ stepPathMap: Record<string, string>;
6
+ }>;
7
+ //# sourceMappingURL=api.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../../src/api-files/api.mts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,mBAAmB,EACnB,GAAG,EACH,iBAAiB,EACjB,UAAU,EAIX,MAAM,YAAY,CAAC;AAoXpB,wBAAsB,aAAa,CACjC,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,OAAO,EACvB,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EACjC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,iBAAiB,CAAC,EAAE,iBAAiB,EACrC,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC/B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,iBAgErC;AAED,wBAAsB,kBAAkB,CACtC,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAqC5D"}
@@ -0,0 +1,262 @@
1
+ import fs from "fs-extra";
2
+ import { cloneDeep } from "lodash-es";
3
+ import slugify from "slugify";
4
+ import { parse, stringify as ymlstringify } from "yaml";
5
+ import { DEFAULT_LINES_FOR_LARGE_STEPS, LANGUAGE_STEP_EXTENSIONS, } from "./constants.js";
6
+ function slugifyName(originalName) {
7
+ return slugify(originalName, {
8
+ replacement: "_",
9
+ lower: true,
10
+ });
11
+ }
12
+ function findUnusedFilePath(filename, extension, existingFilePaths) {
13
+ let proposedFilename = `${filename}.${extension}`;
14
+ let i = 1;
15
+ while (existingFilePaths.has(proposedFilename)) {
16
+ proposedFilename = `${filename}_${i}.${extension}`;
17
+ i++;
18
+ }
19
+ existingFilePaths.add(proposedFilename);
20
+ return proposedFilename;
21
+ }
22
+ function extractAdditionalStepFiles(api, additionalStepFiles, stepPathMap, currentStepNames, apiRepresentation) {
23
+ if (!api.blocks || !apiRepresentation?.extractLargeSourceFiles) {
24
+ return api;
25
+ }
26
+ // TODO: lodash
27
+ const apiClone = cloneDeep(api);
28
+ const minLinesForExtraction = apiRepresentation?.minLinesForExtraction ?? DEFAULT_LINES_FOR_LARGE_STEPS;
29
+ const existingFilePaths = new Set();
30
+ extractAdditionalStepFilesFromBlocks(apiClone.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
31
+ return apiClone;
32
+ }
33
+ function extractAdditionalStepFilesFromStep(step, name, additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames) {
34
+ // Handle language step files
35
+ if (step && "integration" in step) {
36
+ const integration = step.integration;
37
+ const extension = LANGUAGE_STEP_EXTENSIONS[integration];
38
+ if (extension) {
39
+ const languageContent = step[integration];
40
+ if (languageContent) {
41
+ const blockBody = languageContent.body;
42
+ if (blockBody && typeof blockBody === "string") {
43
+ const lines = blockBody?.split("\n");
44
+ const linesNum = lines?.length;
45
+ if (linesNum && linesNum > minLinesForExtraction) {
46
+ // Record the separate file is needed, with the language contents
47
+ let relativePath;
48
+ if (stepPathMap?.[name]) {
49
+ relativePath = stepPathMap[name].startsWith("./")
50
+ ? stepPathMap[name].split("./")?.[1]
51
+ : stepPathMap[name];
52
+ }
53
+ else {
54
+ relativePath = findUnusedFilePath(slugifyName(name), extension, existingFilePaths);
55
+ stepPathMap[name] = `./${relativePath}`;
56
+ }
57
+ additionalStepFiles.push({
58
+ relativePath: relativePath,
59
+ contents: blockBody,
60
+ language: integration,
61
+ });
62
+ currentStepNames.push(name);
63
+ // Replace the body with a reference to the separate file
64
+ languageContent.body = {
65
+ path: `./${relativePath}`,
66
+ };
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ function extractAdditionalStepFilesFromBlocks(blocks, additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames) {
74
+ for (const block of blocks) {
75
+ // Handle language step files
76
+ if (block.step) {
77
+ extractAdditionalStepFilesFromStep(block.step, block.name, additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
78
+ }
79
+ // Handle loops
80
+ extractAdditionalStepFilesFromBlocks(block.loop?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
81
+ // Handle try/catch
82
+ if (block.tryCatch) {
83
+ extractAdditionalStepFilesFromBlocks(block.tryCatch.try?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
84
+ extractAdditionalStepFilesFromBlocks(block.tryCatch.catch?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
85
+ extractAdditionalStepFilesFromBlocks(block.tryCatch.finally?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
86
+ }
87
+ // Handle conditional
88
+ if (block.conditional) {
89
+ extractAdditionalStepFilesFromBlocks(block.conditional.if?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
90
+ for (const elseIfBlock of block.conditional.elseIf ?? []) {
91
+ extractAdditionalStepFilesFromBlocks(elseIfBlock.blocks, additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
92
+ }
93
+ extractAdditionalStepFilesFromBlocks(block.conditional.else?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
94
+ }
95
+ // Handle Parallel API
96
+ if (block.parallel) {
97
+ for (const path of Object.values(block.parallel?.static?.paths ?? {})) {
98
+ extractAdditionalStepFilesFromBlocks(path.blocks, additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
99
+ }
100
+ extractAdditionalStepFilesFromBlocks(block.parallel?.dynamic?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
101
+ }
102
+ // Handle stream
103
+ if (block.stream) {
104
+ const trigger = block.stream.trigger;
105
+ if (trigger && trigger.step) {
106
+ extractAdditionalStepFilesFromStep(trigger.step, trigger.name, additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
107
+ }
108
+ extractAdditionalStepFilesFromBlocks(block.stream.process?.blocks ?? [], additionalStepFiles, existingFilePaths, minLinesForExtraction, stepPathMap, currentStepNames);
109
+ }
110
+ }
111
+ }
112
+ async function readYamlFile(path) {
113
+ return parse(await fs.readFile(path, "utf8"));
114
+ }
115
+ async function resolveLanguageSpecificStepContentFromBlocks(parentPath, blocks, stepPathMap) {
116
+ for (const block of blocks) {
117
+ // Handle language-specific step content
118
+ if (block.step) {
119
+ const step = block.step;
120
+ await resolveLanguageSpecificStepContentFromStep(parentPath, step, block.name, stepPathMap);
121
+ }
122
+ // Handle conditional blocks
123
+ if (block.conditional) {
124
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.conditional.if?.blocks ?? [], stepPathMap);
125
+ for (const elseIfBlock of block.conditional.elseIf) {
126
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, elseIfBlock.blocks, stepPathMap);
127
+ }
128
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.conditional.else?.blocks ?? [], stepPathMap);
129
+ }
130
+ // Handle loop blocks
131
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.loop?.blocks ?? [], stepPathMap);
132
+ // Handle try-catch blocks
133
+ if (block.tryCatch) {
134
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.tryCatch.try?.blocks ?? [], stepPathMap);
135
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.tryCatch.catch?.blocks ?? [], stepPathMap);
136
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.tryCatch.finally?.blocks ?? [], stepPathMap);
137
+ }
138
+ // Handle parallel blocks
139
+ if (block.parallel) {
140
+ for (const path of Object.values(block.parallel?.static?.paths ?? {})) {
141
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, path.blocks, stepPathMap);
142
+ }
143
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.parallel?.dynamic?.blocks ?? [], stepPathMap);
144
+ }
145
+ // Handle stream blocks
146
+ if (block.stream) {
147
+ await resolveLanguageSpecificStepContentFromBlocks(parentPath, block.stream.process?.blocks ?? [], stepPathMap);
148
+ await resolveLanguageSpecificStepContentFromStep(parentPath, block.stream.trigger?.step ?? {}, block.stream.trigger?.name, stepPathMap);
149
+ }
150
+ }
151
+ }
152
+ async function resolveLanguageSpecificStepContentFromStep(parentPath, step, stepName, stepPathMap) {
153
+ // Handle language-specific step content
154
+ if (!step?.integration ||
155
+ !LANGUAGE_STEP_EXTENSIONS[step.integration]) {
156
+ return;
157
+ }
158
+ const languageContent = step[step.integration];
159
+ if (languageContent.body &&
160
+ typeof languageContent.body === "object" &&
161
+ "path" in languageContent.body) {
162
+ const languageFilePath = `${parentPath}/${languageContent.body.path}`;
163
+ if (await fs.pathExists(languageFilePath)) {
164
+ // Read the file content
165
+ const stepBodyContent = await fs.readFile(languageFilePath, "utf8");
166
+ if (stepBodyContent && languageContent) {
167
+ if (stepPathMap && stepName) {
168
+ stepPathMap[stepName] = languageContent.body.path;
169
+ }
170
+ languageContent.body = stepBodyContent;
171
+ }
172
+ }
173
+ }
174
+ }
175
+ export async function writeApiFiles(api, apiNameSlug, directoryPath, nestedApiFiles, apiPromises, additionalStepFiles, apiRepresentation, existingFilePaths, stepPathMap) {
176
+ let pathForApiFile = directoryPath;
177
+ let yamlFileName = `${apiNameSlug}.yaml`;
178
+ const currentStepNames = [];
179
+ // Determine whether to extract into separate files the source code from the steps
180
+ const updatedApi = extractAdditionalStepFiles(api.apiPb, additionalStepFiles, stepPathMap ?? {}, currentStepNames, apiRepresentation);
181
+ // Stop tracking unused step paths from removed steps (e.g. when a step is renamed or removed)
182
+ if (stepPathMap) {
183
+ Object.keys(stepPathMap).forEach((stepName) => {
184
+ if (!currentStepNames.includes(stepName)) {
185
+ const stepFileName = stepPathMap[stepName].startsWith("./")
186
+ ? stepPathMap[stepName].split("./")[1]
187
+ : stepPathMap[stepName];
188
+ fs.remove(`${pathForApiFile}/${stepFileName}`);
189
+ delete stepPathMap[stepName];
190
+ }
191
+ });
192
+ }
193
+ if (apiRepresentation?.extractLargeSourceFiles) {
194
+ if (nestedApiFiles) {
195
+ // This API has at least one large step code file, so we need a nested directory
196
+ pathForApiFile = `${pathForApiFile}/${apiNameSlug}`;
197
+ yamlFileName = "api.yaml";
198
+ }
199
+ // Make sure the directory exists
200
+ await fs.ensureDir(pathForApiFile);
201
+ // Write any additional step source code files to the disk
202
+ for (const stepFile of additionalStepFiles) {
203
+ const sourceFilePath = `${pathForApiFile}/${stepFile.relativePath}`;
204
+ const handleApi = async () => {
205
+ await fs.outputFile(sourceFilePath, stepFile.contents);
206
+ };
207
+ apiPromises.push(handleApi());
208
+ // Mark the existing source file as being reused
209
+ existingFilePaths?.delete(sourceFilePath);
210
+ }
211
+ }
212
+ else {
213
+ // No additional step files to write, so mark the API directory as existing so that it will be removed later.
214
+ // Do this even if the current representation does not extract large source files, in case they were previously
215
+ existingFilePaths?.add(`${directoryPath}/${apiNameSlug}`);
216
+ }
217
+ // Convert the updated API to YAML and write it to disk
218
+ const apiContent = ymlstringify(updatedApi, {
219
+ sortMapEntries: true,
220
+ blockQuote: "literal",
221
+ });
222
+ const yamlFilePath = `${pathForApiFile}/${yamlFileName}`;
223
+ const handleApi = async () => {
224
+ await fs.outputFile(yamlFilePath, apiContent);
225
+ };
226
+ apiPromises.push(handleApi());
227
+ // Mark the existing source file as being reused
228
+ existingFilePaths?.delete(yamlFilePath);
229
+ }
230
+ export async function readAppApiYamlFile(parentDirectory, apiName) {
231
+ // The API is either stored in its entirety in a single YAML file, or
232
+ // or in a subdirectory containing the YAML file and zero or more language-specific files.
233
+ const apiNameSlug = slugifyName(apiName ?? "api");
234
+ const singularApiYamlPath = `${parentDirectory}/${apiNameSlug}.yaml`;
235
+ const apiDirPath = `${parentDirectory}/${apiNameSlug}`;
236
+ const nestedApiYamlPath = `${apiDirPath}/api.yaml`;
237
+ // Read the YAML file
238
+ let yamlPath;
239
+ let yamlParentPath;
240
+ if (await fs.pathExists(singularApiYamlPath)) {
241
+ // The API YAML file is in the parent directory
242
+ yamlPath = singularApiYamlPath;
243
+ yamlParentPath = parentDirectory;
244
+ }
245
+ else if (await fs.pathExists(nestedApiYamlPath)) {
246
+ // The API YAML file is nested in an API-specific directory
247
+ yamlPath = nestedApiYamlPath;
248
+ yamlParentPath = apiDirPath;
249
+ }
250
+ else {
251
+ throw new Error(`API ${apiName ?? ""} not found at ${parentDirectory}`);
252
+ }
253
+ // That is nested in an API-specific directory
254
+ const apiDefn = (await readYamlFile(yamlPath));
255
+ // Map step name -> step path
256
+ const stepPathMap = {};
257
+ // The API YAML file may or may not have language-specific content in separate files.
258
+ // Replace any file references with the actual content
259
+ await resolveLanguageSpecificStepContentFromBlocks(yamlParentPath, apiDefn.blocks ?? [], stepPathMap);
260
+ return { api: apiDefn, stepPathMap };
261
+ }
262
+ //# sourceMappingURL=api.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.mjs","sourceRoot":"","sources":["../../src/api-files/api.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AAWxB,SAAS,WAAW,CAAC,YAAiB;IACpC,OAAQ,OAAe,CAAC,YAAY,EAAE;QACpC,WAAW,EAAE,GAAG;QAChB,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CACzB,QAAgB,EAChB,SAAiB,EACjB,iBAA8B;IAE9B,IAAI,gBAAgB,GAAG,GAAG,QAAQ,IAAI,SAAS,EAAE,CAAC;IAClD,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,OAAO,iBAAiB,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC/C,gBAAgB,GAAG,GAAG,QAAQ,IAAI,CAAC,IAAI,SAAS,EAAE,CAAC;QACnD,CAAC,EAAE,CAAC;IACN,CAAC;IACD,iBAAiB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACxC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,SAAS,0BAA0B,CACjC,GAAQ,EACR,mBAA0C,EAC1C,WAAm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6BAA6B;IAC7B,MAAM,WAAW,GAA2B,EAAE,CAAC;IAE/C,qFAAqF;IACrF,sDAAsD;IACtD,MAAM,4CAA4C,CAChD,cAAc,EACd,OAAO,CAAC,MAAM,IAAI,EAAE,EACpB,WAAW,CACZ,CAAC;IACF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AACvC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const LANGUAGE_STEP_EXTENSIONS: {
2
+ readonly javascript: "js";
3
+ readonly python: "py";
4
+ };
5
+ export declare const DEFAULT_LINES_FOR_LARGE_STEPS = 1;
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/api-files/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,6BAA6B,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_LINES_FOR_LARGE_STEPS = exports.LANGUAGE_STEP_EXTENSIONS = void 0;
4
+ exports.LANGUAGE_STEP_EXTENSIONS = {
5
+ javascript: "js",
6
+ python: "py",
7
+ };
8
+ exports.DEFAULT_LINES_FOR_LARGE_STEPS = 1;
9
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/api-files/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;CACJ,CAAC;AAEE,QAAA,6BAA6B,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type * as Api from "./api.mjs" with { "resolution-mode": "import" };
2
+ export declare function writeApiFiles(...args: Parameters<typeof Api.writeApiFiles>): Promise<void>;
3
+ export declare function readAppApiYamlFile(...args: Parameters<typeof Api.readAppApiYamlFile>): Promise<{
4
+ api: import("./types").Api;
5
+ stepPathMap: Record<string, string>;
6
+ }>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api-files/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,WAAW,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAE3E,wBAAsB,aAAa,CACjC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,aAAa,CAAC,iBAI9C;AAED,wBAAsB,kBAAkB,CACtC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,kBAAkB,CAAC;;;GAInD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeApiFiles = writeApiFiles;
4
+ exports.readAppApiYamlFile = readAppApiYamlFile;
5
+ async function writeApiFiles(...args) {
6
+ const esmFunction = await import("./api.mjs");
7
+ return esmFunction.writeApiFiles(...args);
8
+ }
9
+ async function readAppApiYamlFile(...args) {
10
+ const esmFunction = await import("./api.mjs");
11
+ return esmFunction.readAppApiYamlFile(...args);
12
+ }
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-files/index.ts"],"names":[],"mappings":";;AAEA,sCAKC;AAED,gDAKC;AAZM,KAAK,UAAU,aAAa,CACjC,GAAG,IAA0C;IAE7C,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,WAAW,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC;AAC5C,CAAC;AAEM,KAAK,UAAU,kBAAkB,CACtC,GAAG,IAA+C;IAElD,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,WAAW,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,117 @@
1
+ export type AdditionalStepFiles = {
2
+ relativePath: string;
3
+ contents: string;
4
+ language: keyof Step;
5
+ };
6
+ export type ApiRepresentation = {
7
+ extractLargeSourceFiles: boolean;
8
+ minLinesForExtraction: number;
9
+ };
10
+ export interface ApiWrapper {
11
+ apiPb: Api;
12
+ name?: string;
13
+ }
14
+ /** A signature, as produced by the agent. */
15
+ export interface Signature {
16
+ /** The id of the key used to sign the data. */
17
+ keyId: string;
18
+ /** The actual signature, in base64. */
19
+ data: string;
20
+ }
21
+ export type Api = {
22
+ metadata: {
23
+ id: string;
24
+ name: string;
25
+ organization: string;
26
+ timestamps?: {
27
+ created: string;
28
+ updated: string;
29
+ deactivated: boolean;
30
+ };
31
+ creator?: {
32
+ id: string;
33
+ name: string;
34
+ };
35
+ folder?: string;
36
+ };
37
+ blocks?: Block[];
38
+ trigger: any;
39
+ signature?: Signature;
40
+ };
41
+ export type Block = {
42
+ name: string;
43
+ step?: Step;
44
+ loop?: Loop;
45
+ tryCatch?: TryCatch;
46
+ conditional?: Conditional;
47
+ parallel?: Parallel;
48
+ stream?: Stream;
49
+ };
50
+ export type Step = {
51
+ integration: string;
52
+ javascript?: LanguageContent;
53
+ python?: LanguageContent;
54
+ };
55
+ export type Loop = {
56
+ blocks: Block[];
57
+ range: string;
58
+ type: LoopType;
59
+ variables?: Variables;
60
+ };
61
+ export declare enum LoopType {
62
+ FOR = "TYPE_FOR",
63
+ FOR_EACH = "TYPE_FOREACH",
64
+ WHILE = "TYPE_WHILE",
65
+ UNSPECIFIED = "TYPE_UNSPECIFIED"
66
+ }
67
+ export type TryCatch = {
68
+ try?: Blocks;
69
+ catch?: Blocks;
70
+ finally?: Blocks;
71
+ variables?: Variables;
72
+ };
73
+ export type Conditional = {
74
+ if?: ConditionalBlockWithCondition;
75
+ elseIf: ConditionalBlockWithCondition[];
76
+ else?: Blocks;
77
+ };
78
+ export type Blocks = {
79
+ blocks: Block[];
80
+ };
81
+ export type ConditionalBlockWithCondition = Blocks & {
82
+ condition?: string;
83
+ };
84
+ export type Parallel = {
85
+ static?: {
86
+ paths: Record<string, Blocks>;
87
+ };
88
+ dynamic?: {
89
+ blocks: Block[];
90
+ variables?: Variables;
91
+ paths?: string;
92
+ };
93
+ poolSize?: number;
94
+ wait?: WAIT_TYPE;
95
+ };
96
+ export type Stream = {
97
+ trigger?: StreamTrigger;
98
+ process?: Blocks;
99
+ variables?: Variables;
100
+ };
101
+ export type StreamTrigger = {
102
+ name: string;
103
+ step?: Step;
104
+ };
105
+ export declare enum WAIT_TYPE {
106
+ ALL = "WAIT_ALL",
107
+ ANY = "WAIT_NONE",
108
+ UNSPECIFIED = "WAIT_UNSPECIFIED"
109
+ }
110
+ export type Variables = Record<string, string>;
111
+ export type LanguageContent = {
112
+ body: Body;
113
+ };
114
+ export type Body = string | {
115
+ path: string;
116
+ };
117
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api-files/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uBAAuB,EAAE,OAAO,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,6CAA6C;AAC7C,MAAM,WAAW,SAAS;IACxB,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,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C;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WAIT_TYPE = exports.LoopType = void 0;
4
+ var LoopType;
5
+ (function (LoopType) {
6
+ LoopType["FOR"] = "TYPE_FOR";
7
+ LoopType["FOR_EACH"] = "TYPE_FOREACH";
8
+ LoopType["WHILE"] = "TYPE_WHILE";
9
+ LoopType["UNSPECIFIED"] = "TYPE_UNSPECIFIED";
10
+ })(LoopType || (exports.LoopType = LoopType = {}));
11
+ var WAIT_TYPE;
12
+ (function (WAIT_TYPE) {
13
+ WAIT_TYPE["ALL"] = "WAIT_ALL";
14
+ WAIT_TYPE["ANY"] = "WAIT_NONE";
15
+ WAIT_TYPE["UNSPECIFIED"] = "WAIT_UNSPECIFIED";
16
+ })(WAIT_TYPE || (exports.WAIT_TYPE = WAIT_TYPE = {}));
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api-files/types.ts"],"names":[],"mappings":";;;AAqEA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,4BAAgB,CAAA;IAChB,qCAAyB,CAAA;IACzB,gCAAoB,CAAA;IACpB,4CAAgC,CAAA;AAClC,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AA+CD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,6BAAgB,CAAA;IAChB,8BAAiB,CAAA;IACjB,6CAAgC,CAAA;AAClC,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
@@ -3,3 +3,4 @@ export declare function getComponentConfigs(generateTypesFiles: boolean): Promis
3
3
  hasError: boolean;
4
4
  }>;
5
5
  export declare const getContentType: (filename: string) => string;
6
+ //# sourceMappingURL=component-configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-configs.d.ts","sourceRoot":"","sources":["../src/component-configs.ts"],"names":[],"mappings":"AA+EA,wBAAsB,mBAAmB,CACvC,kBAAkB,EAAE,OAAO,GAC1B,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAoED;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,KAAG,MAMjD,CAAC"}
@@ -44,9 +44,9 @@ const node_path_1 = __importDefault(require("node:path"));
44
44
  const util = __importStar(require("node:util"));
45
45
  const fs = __importStar(require("fs-extra"));
46
46
  const mimeTypes = __importStar(require("mime-types"));
47
- const constants_1 = require("./constants");
48
- const generate_component_types_1 = require("./generate-component-types");
49
- const validation_1 = require("./validation");
47
+ const constants_js_1 = require("./constants.js");
48
+ const generate_component_types_js_1 = require("./generate-component-types.js");
49
+ const validation_js_1 = require("./validation.js");
50
50
  const asyncExecFile = util.promisify(node_child_process_1.execFile);
51
51
  async function compileTypeScript(inputFilePath, outputDir) {
52
52
  try {
@@ -88,17 +88,17 @@ async function compileTypeScript(inputFilePath, outputDir) {
88
88
  }
89
89
  async function getFolderPaths() {
90
90
  try {
91
- const folderPaths = await fs.readdir(constants_1.CUSTOM_COMPONENTS_PATH, {
91
+ const folderPaths = await fs.readdir(constants_js_1.CUSTOM_COMPONENTS_PATH, {
92
92
  withFileTypes: true,
93
93
  });
94
94
  // filter out any non-directory items
95
95
  const directories = folderPaths.filter((dirent) => dirent.isDirectory() ||
96
96
  (dirent.isSymbolicLink() &&
97
97
  fs
98
- .statSync(node_path_1.default.join(constants_1.CUSTOM_COMPONENTS_PATH, dirent.name))
98
+ .statSync(node_path_1.default.join(constants_js_1.CUSTOM_COMPONENTS_PATH, dirent.name))
99
99
  .isDirectory()));
100
100
  // map each directory to its path
101
- const folderPathsArray = directories.map((dirent) => node_path_1.default.join(constants_1.CUSTOM_COMPONENTS_PATH, dirent.name));
101
+ const folderPathsArray = directories.map((dirent) => node_path_1.default.join(constants_js_1.CUSTOM_COMPONENTS_PATH, dirent.name));
102
102
  return folderPathsArray;
103
103
  }
104
104
  catch {
@@ -138,8 +138,8 @@ async function getComponentConfigs(generateTypesFiles) {
138
138
  throw new Error(compilationResult.output);
139
139
  }
140
140
  console.log(`Typescript compiled to ${ccpath}`);
141
- const config = (await Promise.resolve(`${outputDirectory + "/config.js"}`).then(s => __importStar(require(s)))).default;
142
- const isValid = (0, validation_1.validateCustomComponents)(config);
141
+ const config = (await import(outputDirectory + "/config.js")).default;
142
+ const isValid = (0, validation_js_1.validateCustomComponents)(config);
143
143
  if (!isValid.valid) {
144
144
  // Not throwing because we don't need a stack trace here
145
145
  console.log(`Invalid config.ts file found`);
@@ -151,7 +151,7 @@ async function getComponentConfigs(generateTypesFiles) {
151
151
  const configFiles = await Promise.all(promiseConfigFiles);
152
152
  if (generateTypesFiles) {
153
153
  for (const { config, ccpath } of configFiles) {
154
- const typesFileContents = (0, generate_component_types_1.generateComponentTypesFile)(config);
154
+ const typesFileContents = (0, generate_component_types_js_1.generateComponentTypesFile)(config);
155
155
  await fs.writeFile(`${ccpath}/types.ts`, typesFileContents);
156
156
  console.log(`Generated ${ccpath}/types.ts`);
157
157
  }
@@ -175,3 +175,4 @@ const getContentType = (filename) => {
175
175
  return mimeType;
176
176
  };
177
177
  exports.getContentType = getContentType;
178
+ //# sourceMappingURL=component-configs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-configs.js","sourceRoot":"","sources":["../src/component-configs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,kDAyEC;AAxJD,2DAA8C;AAC9C,sDAAyB;AACzB,0DAA6B;AAC7B,gDAAkC;AAClC,6CAA+B;AAC/B,sDAAwC;AACxC,iDAAwD;AACxD,+EAA2E;AAC3E,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AAK,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,WAAW,EAAE,CAAC;YAC7C,MAAM,iBAAiB,GAAG,IAAA,wDAA0B,EAAC,MAAM,CAAC,CAAC;YAC7D,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,MAAM,WAAW,EAAE,iBAAiB,CAAC,CAAC;YAC5D,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,WAAW,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IACD,MAAM,OAAO,GAAG,WAAW;SACxB,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,KAAK,IAAI,CAAC;SAChD,MAAM,CAAC,CAAC,GAAwB,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QAC/C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;QACxB,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,OAAO;QACL,OAAO;QACP,QAAQ;KACT,CAAC;AACJ,CAAC;AAEM,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAU,EAAE;IACzD,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,QAAkB,CAAC;AAC5B,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB"}
@@ -15,3 +15,4 @@ export declare class BadRequestError extends Error {
15
15
  export declare class ForbiddenError extends Error {
16
16
  constructor(message: string);
17
17
  }
18
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,iBAAiB,2BAA2B,CAAC;AAC1D,eAAO,MAAM,oBAAoB,kCAAkC,CAAC;AAepE,eAAO,MAAM,yBAAyB,UAAU,CAAC;AAEjD,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAEnD,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;CAI5B"}
package/dist/constants.js CHANGED
@@ -47,3 +47,4 @@ class ForbiddenError extends Error {
47
47
  }
48
48
  }
49
49
  exports.ForbiddenError = ForbiddenError;
50
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,cAAc,CAAC;AAC9C,QAAA,iBAAiB,GAAG,wBAAwB,CAAC;AAC7C,QAAA,oBAAoB,GAAG,+BAA+B,CAAC;AAEpE;;;;;;;;;;;;EAYE;AACW,QAAA,yBAAyB,GAAG,OAAO,CAAC;AAEpC,QAAA,sBAAsB,GAAG,YAAY,CAAC;AAEnD,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AALD,0CAKC;AAED,MAAa,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AALD,sCAKC;AAED,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AALD,0CAKC;AAED,MAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AALD,wCAKC"}
@@ -7,3 +7,4 @@ interface TypeInfo {
7
7
  export declare const dataTypeDefinions: Record<DataType, TypeInfo>;
8
8
  export declare function isValidDataType(input: string): input is DataType;
9
9
  export {};
10
+ //# sourceMappingURL=data-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types.d.ts","sourceRoot":"","sources":["../src/data-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,iDAKrB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,UAAU,QAAQ;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAiBxD,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAKhE"}
@@ -29,3 +29,4 @@ exports.dataTypeDefinions = {
29
29
  function isValidDataType(input) {
30
30
  return Object.prototype.hasOwnProperty.call(exports.dataTypeDefinions, input);
31
31
  }
32
+ //# sourceMappingURL=data-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types.js","sourceRoot":"","sources":["../src/data-types.ts"],"names":[],"mappings":";;;AAiCA,0CAKC;AAtCY,QAAA,kBAAkB,GAAG;IAChC,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,KAAK;CACG,CAAC;AASE,QAAA,iBAAiB,GAA+B;IAC3D,MAAM,EAAE;QACN,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;KACjB;IACD,MAAM,EAAE;QACN,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;KACjB;IACD,OAAO,EAAE;QACP,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;KAClB;IACD,GAAG,EAAE;QACH,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,yBAAyB;KAClC;CACF,CAAC;AAEF,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CACzC,yBAAiB,EACjB,KAAiB,CAClB,CAAC;AACJ,CAAC"}
package/dist/events.d.ts CHANGED
@@ -10,3 +10,4 @@ export declare enum ComponentEvent {
10
10
  UPLOAD = "upload",
11
11
  DEPLOY = "deploy"
12
12
  }
13
+ //# sourceMappingURL=events.d.ts.map