Skip to content

Commit 33ff65a

Browse files
committedNov 21, 2021
chore: update cmds for new API version
1 parent 9af0ae1 commit 33ff65a

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed
 

‎npm-shrinkwrap.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"url": "https://github.com/datatrue-analytics/datatrue-cli/issues"
2525
},
2626
"dependencies": {
27-
"@datatrue/api": "^0.2.0",
27+
"@datatrue/api": "^0.2.1",
2828
"@giusto/ink-router": "^2.4.0",
2929
"chalk": "^4.1.0",
3030
"cli-progress": "^3.8.2",

‎src/cmds/step.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const builder = (yargs: Argv): Argv => {
9090
const row: Record<string, any> = {
9191
ID: step.getResourceID(),
9292
Name: step.name,
93-
"Step Action": DataTrue.StepActions[step.action],
93+
"Step Action": step.action,
9494
};
9595

9696
if (argv.target) {
@@ -121,6 +121,10 @@ export const builder = (yargs: Argv): Argv => {
121121
row["Wait While Present"] = step.options.wait_while_present;
122122
}
123123

124+
if (argv["common-tag-validations"]) {
125+
row["Use Common Tag Validations"] = step.options.use_common_tag_validations;
126+
}
127+
124128
if (argv.strategy) {
125129
row["Strategy"] = step.options.settings?.strategy;
126130
}
@@ -133,10 +137,6 @@ export const builder = (yargs: Argv): Argv => {
133137
row["Template Detection"] = step.options.settings?.template_detection;
134138
}
135139

136-
if (argv["common-tag-validations"]) {
137-
row["Use Common Tag Validations"] = step.options.settings?.use_common_tag_validations;
138-
}
139-
140140
rows.push(row);
141141
});
142142
if (rows.length) {

‎src/cmds/suite.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const builder = (yargs: Argv): Argv => {
111111
const row: Record<string, any> = {
112112
ID: suite.getResourceID(),
113113
Name: suite.name,
114-
"Suite Type": DataTrue.SuiteTypes[suite.options.suite_type ?? 0],
114+
"Suite Type": suite.options.suite_type,
115115
};
116116

117117
rows.push(row);

‎src/cmds/tag-validation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ export const builder = (yargs: Argv): Argv => {
130130
}
131131

132132
if (argv["do-validation"]) {
133-
row["Do Validation"] = tagValidation.options.interception?.do_validation;
133+
row["Do Validation"] = tagValidation.options.do_validation;
134134
}
135135

136136
if (argv["detect-duplicates"]) {
137-
row["Detect Duplicates"] = tagValidation.options.detect_duplicates ?? false;
137+
row["Detect Duplicates"] = tagValidation.options.detect_duplicates;
138138
}
139139

140140
if (argv["validate-absence"]) {

‎src/cmds/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const builder = (yargs: Argv): Argv => {
8585
const row: Record<string, any> = {
8686
ID: test.getResourceID(),
8787
Name: test.name,
88-
"Test Type": DataTrue.TestTypes[test.testType],
88+
"Test Type": test.testType,
8989
};
9090

9191
rows.push(row);

0 commit comments

Comments
 (0)
Please sign in to comment.