-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ADO-2028-better-pin-data-error-messages
* master: refactor(core): Move curl endpoint to its own controller (no-changelog) (#9605) refactor(core): Restore test for execution pagination in Public API (no-changelog) (#9621) ci: Consistent tsconfig setup for backend packages and fix pnpm typecheck for composite packages (no-changelog) (#9604)
- Loading branch information
Showing
38 changed files
with
382 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
{ | ||
"extends": ["../../../tsconfig.json", "../../../tsconfig.backend.json"], | ||
"compilerOptions": { | ||
"strict": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"target": "es2019", | ||
"lib": ["es2019", "es2020", "es2022.error"], | ||
"removeComments": true, | ||
"useUnknownInCatchVariables": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"strictNullChecks": true, | ||
"preserveConstEnums": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"incremental": true, | ||
"declaration": true, | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"outDir": "./dist/" | ||
"lib": ["es2020", "es2022.error"], | ||
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo", | ||
// TODO: remove all options below this line | ||
"useUnknownInCatchVariables": false | ||
}, | ||
"include": ["credentials/**/*", "nodes/**/*", "utils/**/*.ts", "nodes/**/*.json", "types/*.ts"] | ||
"include": ["credentials/**/*", "nodes/**/*", "utils/**/*.ts", "nodes/**/*.json", "types/*.ts"], | ||
"references": [ | ||
{ "path": "../../workflow/tsconfig.build.json" }, | ||
{ "path": "../../core/tsconfig.build.json" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Request } from 'express'; | ||
import { Post, RestController } from '@/decorators'; | ||
import { BadRequestError } from '@/errors/response-errors/bad-request.error'; | ||
import { CurlService, flattenObject } from '@/services/curl.service'; | ||
|
||
@RestController('/curl') | ||
export class CurlController { | ||
constructor(private readonly curlService: CurlService) {} | ||
|
||
@Post('/to-json') | ||
toJson(req: Request<{}, {}, { curlCommand: string }>) { | ||
try { | ||
const parameters = this.curlService.toHttpNodeParameters(req.body.curlCommand); | ||
return flattenObject(parameters, 'parameters'); | ||
} catch (e) { | ||
throw new BadRequestError('Invalid cURL command'); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.