Skip to content

Commit

Permalink
update api client package
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-JAlvarez committed Dec 11, 2023
1 parent e2159ec commit f6719ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"check": "npm run format && npm run typecheck && npm outdated"
},
"dependencies": {
"@soos-io/api-client": "^0.1.9",
"@soos-io/api-client": "0.2.5",
"argparse": "^2.0.1",
"tslib": "^2.6.2"
},
Expand Down
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import {
LogLevel,
OutputFormat,
SOOS_CONSTANTS,
IntegrationName,
} from "@soos-io/api-client";
import { version } from "../package.json";
import { ZAPCommandGenerator, CONSTANTS } from "./utils";

export interface SOOSDASTAnalysisArgs {
Expand Down Expand Up @@ -53,7 +55,7 @@ export interface SOOSDASTAnalysisArgs {
debug: boolean;
disableRules: string;
fullScanMinutes: number;
integrationName: string;
integrationName: IntegrationName;
integrationType: string;
logLevel: LogLevel;
oauthParameters: string;
Expand Down Expand Up @@ -250,6 +252,10 @@ class SOOSDASTAnalysis {
parser.add_argument("--integrationName", {
help: "Integration Name - Intended for internal use only.",
required: false,
type: (value: string) => {
return ensureEnumValue(IntegrationName, value);
},
default: IntegrationName.SoosDast,
});

parser.add_argument("--integrationType", {
Expand Down Expand Up @@ -339,6 +345,7 @@ class SOOSDASTAnalysis {
parser.add_argument("--scriptVersion", {
help: "Script Version - Intended for internal use only.",
required: false,
default: version,
});

parser.add_argument("--updateAddons", {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"skipLibCheck": false, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
"resolveJsonModule": true,
}
}

0 comments on commit f6719ff

Please sign in to comment.