@superblocksteam/util 2.0.158-next.0 → 2.0.159-next.0

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 (86) hide show
  1. package/package.json +1 -1
  2. package/.turbo/turbo-build.log +0 -4
  3. package/dist/api-files/api.d.mts +0 -8
  4. package/dist/api-files/api.d.mts.map +0 -1
  5. package/dist/api-files/api.mjs +0 -262
  6. package/dist/api-files/api.mjs.map +0 -1
  7. package/dist/api-files/constants.d.ts +0 -6
  8. package/dist/api-files/constants.d.ts.map +0 -1
  9. package/dist/api-files/constants.js +0 -9
  10. package/dist/api-files/constants.js.map +0 -1
  11. package/dist/api-files/index.d.ts +0 -8
  12. package/dist/api-files/index.d.ts.map +0 -1
  13. package/dist/api-files/index.js +0 -18
  14. package/dist/api-files/index.js.map +0 -1
  15. package/dist/api-files/types.d.ts +0 -115
  16. package/dist/api-files/types.d.ts.map +0 -1
  17. package/dist/api-files/types.js +0 -14
  18. package/dist/api-files/types.js.map +0 -1
  19. package/dist/component-configs.d.ts +0 -6
  20. package/dist/component-configs.d.ts.map +0 -1
  21. package/dist/component-configs.js +0 -178
  22. package/dist/component-configs.js.map +0 -1
  23. package/dist/constants.d.ts +0 -18
  24. package/dist/constants.d.ts.map +0 -1
  25. package/dist/constants.js +0 -37
  26. package/dist/constants.js.map +0 -1
  27. package/dist/data-types.d.ts +0 -8
  28. package/dist/data-types.d.ts.map +0 -1
  29. package/dist/data-types.js +0 -22
  30. package/dist/data-types.js.map +0 -1
  31. package/dist/events.d.ts +0 -13
  32. package/dist/events.d.ts.map +0 -1
  33. package/dist/events.js +0 -17
  34. package/dist/events.js.map +0 -1
  35. package/dist/file-uploader.d.ts +0 -3
  36. package/dist/file-uploader.d.ts.map +0 -1
  37. package/dist/file-uploader.js +0 -41
  38. package/dist/file-uploader.js.map +0 -1
  39. package/dist/file-uploader.test.d.ts +0 -2
  40. package/dist/file-uploader.test.d.ts.map +0 -1
  41. package/dist/file-uploader.test.js +0 -43
  42. package/dist/file-uploader.test.js.map +0 -1
  43. package/dist/generate-component-types.d.ts +0 -3
  44. package/dist/generate-component-types.d.ts.map +0 -1
  45. package/dist/generate-component-types.js +0 -45
  46. package/dist/generate-component-types.js.map +0 -1
  47. package/dist/identifiers.d.ts +0 -9
  48. package/dist/identifiers.d.ts.map +0 -1
  49. package/dist/identifiers.js +0 -68
  50. package/dist/identifiers.js.map +0 -1
  51. package/dist/index.d.ts +0 -17
  52. package/dist/index.d.ts.map +0 -1
  53. package/dist/index.js.map +0 -1
  54. package/dist/localGitRepoState.d.ts +0 -20
  55. package/dist/localGitRepoState.d.ts.map +0 -1
  56. package/dist/localGitRepoState.js +0 -3
  57. package/dist/localGitRepoState.js.map +0 -1
  58. package/dist/login.d.ts +0 -17
  59. package/dist/login.d.ts.map +0 -1
  60. package/dist/login.js +0 -74
  61. package/dist/login.js.map +0 -1
  62. package/dist/mask-unix-signals.d.ts +0 -28
  63. package/dist/mask-unix-signals.d.ts.map +0 -1
  64. package/dist/mask-unix-signals.js +0 -81
  65. package/dist/mask-unix-signals.js.map +0 -1
  66. package/dist/resource-configs.d.ts +0 -73
  67. package/dist/resource-configs.d.ts.map +0 -1
  68. package/dist/resource-configs.js +0 -224
  69. package/dist/resource-configs.js.map +0 -1
  70. package/dist/token-manager.d.ts +0 -22
  71. package/dist/token-manager.d.ts.map +0 -1
  72. package/dist/token-manager.js +0 -3
  73. package/dist/token-manager.js.map +0 -1
  74. package/dist/types.d.ts +0 -105
  75. package/dist/types.d.ts.map +0 -1
  76. package/dist/types.js +0 -3
  77. package/dist/types.js.map +0 -1
  78. package/dist/unreachable.d.ts +0 -2
  79. package/dist/unreachable.d.ts.map +0 -1
  80. package/dist/unreachable.js +0 -7
  81. package/dist/unreachable.js.map +0 -1
  82. package/dist/validation.d.ts +0 -5
  83. package/dist/validation.d.ts.map +0 -1
  84. package/dist/validation.js +0 -152
  85. package/dist/validation.js.map +0 -1
  86. package/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/util",
3
- "version": "2.0.158-next.0",
3
+ "version": "2.0.159-next.0",
4
4
  "description": "",
5
5
  "homepage": "https://www.superblocks.com",
6
6
  "license": "Superblocks Community Software License",
@@ -1,4 +0,0 @@
1
-
2
- > @superblocksteam/util@2.0.158-next.0 build /home/runner/work/superblocks/superblocks/packages/cli/packages/util
3
- > tsc --build
4
-
@@ -1,8 +0,0 @@
1
- import type { AdditionalStepFiles, Api, ApiRepresentation, ApiWrapper, Block } from "./types.js";
2
- export declare function resolveLanguageSpecificStepContentFromBlocks(parentPath: string, blocks: Block[], stepPathMap: Record<string, string>): Promise<void>;
3
- 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>;
4
- export declare function readAppApiYamlFile(parentDirectory: string, apiName?: string, slugifyDirectoryName?: boolean): Promise<{
5
- api: Api;
6
- stepPathMap: Record<string, string>;
7
- }>;
8
- //# sourceMappingURL=api.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../../src/api-files/api.mts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,GAAG,EACH,iBAAiB,EACjB,UAAU,EACV,KAAK,EAGN,MAAM,YAAY,CAAC;AAmPpB,wBAAsB,4CAA4C,CAChE,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,KAAK,EAAE,EACf,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,iBAuFpC;AAuCD,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,EAChB,oBAAoB,GAAE,OAAc,GACnC,OAAO,CAAC;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAqC5D"}
@@ -1,262 +0,0 @@
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
- export 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, slugifyDirectoryName = true) {
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}/${slugifyDirectoryName ? apiNameSlug : apiName}`;
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
@@ -1 +0,0 @@
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;AAExD,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,WAAmC,EACnC,gBAA0B,EAC1B,iBAAqC;IAErC,IAAI,CAAC,GAAG,CAAC,MAAM,IA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AAC;IAEtD,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"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
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
- export declare function resolveLanguageSpecificStepContentFromBlocks(...args: Parameters<typeof Api.resolveLanguageSpecificStepContentFromBlocks>): Promise<void>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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;AAED,wBAAsB,4CAA4C,CAChE,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,4CAA4C,CAAC,iBAI7E"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writeApiFiles = writeApiFiles;
4
- exports.readAppApiYamlFile = readAppApiYamlFile;
5
- exports.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks;
6
- async function writeApiFiles(...args) {
7
- const esmFunction = await import("./api.mjs");
8
- return esmFunction.writeApiFiles(...args);
9
- }
10
- async function readAppApiYamlFile(...args) {
11
- const esmFunction = await import("./api.mjs");
12
- return esmFunction.readAppApiYamlFile(...args);
13
- }
14
- async function resolveLanguageSpecificStepContentFromBlocks(...args) {
15
- const esmFunction = await import("./api.mjs");
16
- return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
17
- }
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-files/index.ts"],"names":[],"mappings":";;AAEA,sCAKC;AAED,gDAKC;AAED,oGAKC;AAnBM,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;AAEM,KAAK,UAAU,4CAA4C,CAChE,GAAG,IAAyE;IAE5E,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,WAAW,CAAC,4CAA4C,CAAC,GAAG,IAAI,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,115 +0,0 @@
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
- type Loop = {
56
- blocks: Block[];
57
- range: string;
58
- type: LoopType;
59
- variables?: Variables;
60
- };
61
- export declare enum LoopType {
62
- FOR_EACH = "TYPE_FOREACH"
63
- }
64
- type TryCatch = {
65
- try?: Blocks;
66
- catch?: Blocks;
67
- finally?: Blocks;
68
- variables?: Variables;
69
- };
70
- type Conditional = {
71
- if?: ConditionalBlockWithCondition;
72
- elseIf: ConditionalBlockWithCondition[];
73
- else?: Blocks;
74
- };
75
- type Blocks = {
76
- blocks: Block[];
77
- };
78
- type ConditionalBlockWithCondition = Blocks & {
79
- condition?: string;
80
- };
81
- type Parallel = {
82
- static?: {
83
- paths: Record<string, Blocks>;
84
- };
85
- dynamic?: {
86
- blocks: Block[];
87
- variables?: Variables;
88
- paths?: string;
89
- };
90
- poolSize?: number;
91
- wait?: WAIT_TYPE;
92
- };
93
- type Stream = {
94
- trigger?: StreamTrigger;
95
- process?: Blocks;
96
- variables?: Variables;
97
- };
98
- type StreamTrigger = {
99
- name: string;
100
- step?: Step;
101
- };
102
- declare enum WAIT_TYPE {
103
- ALL = "WAIT_ALL",
104
- ANY = "WAIT_NONE",
105
- UNSPECIFIED = "WAIT_UNSPECIFIED"
106
- }
107
- type Variables = Record<string, string>;
108
- export type LanguageContent = {
109
- body: Body;
110
- };
111
- type Body = string | {
112
- path: string;
113
- };
114
- export {};
115
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
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,EAA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AI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,aAAK,SAAS;IACZ,GAAG,aAAa;IAChB,GAAG,cAAc;IACjB,WAAW,qBAAqB;CACjC;AAED,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,KAAK,IAAI,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LoopType = void 0;
4
- var LoopType;
5
- (function (LoopType) {
6
- LoopType["FOR_EACH"] = "TYPE_FOREACH";
7
- })(LoopType || (exports.LoopType = LoopType = {}));
8
- var WAIT_TYPE;
9
- (function (WAIT_TYPE) {
10
- WAIT_TYPE["ALL"] = "WAIT_ALL";
11
- WAIT_TYPE["ANY"] = "WAIT_NONE";
12
- WAIT_TYPE["UNSPECIFIED"] = "WAIT_UNSPECIFIED";
13
- })(WAIT_TYPE || (WAIT_TYPE = {}));
14
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api-files/types.ts"],"names":[],"mappings":";;;AAqEA,IAAY,QAEX;AAFD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;AAC3B,CAAC,EAFW,QAAQ,wBAAR,QAAQ,QAEnB;AA+CD,IAAK,SAIJ;AAJD,WAAK,SAAS;IACZ,6BAAgB,CAAA;IAChB,8BAAiB,CAAA;IACjB,6CAAgC,CAAA;AAClC,CAAC,EAJI,SAAS,KAAT,SAAS,QAIb"}
@@ -1,6 +0,0 @@
1
- export declare function getComponentConfigs(generateTypesFiles: boolean): Promise<{
2
- configs: Record<string, any>;
3
- hasError: boolean;
4
- }>;
5
- export declare const getContentType: (filename: string) => string;
6
- //# sourceMappingURL=component-configs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-configs.d.ts","sourceRoot":"","sources":["../src/component-configs.ts"],"names":[],"mappings":"AAiFA,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"}