@devicecloud.dev/dcd 3.6.11 → 3.7.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.
@@ -4,6 +4,8 @@ type StatusResponse = {
4
4
  tests: {
5
5
  name: string;
6
6
  status: 'FAILED' | 'PASSED' | 'CANCELLED' | 'PENDING' | 'RUNNING';
7
+ durationSeconds?: number;
8
+ failReason?: string;
7
9
  }[];
8
10
  uploadId?: string;
9
11
  appBinaryId?: string;
@@ -81,6 +81,19 @@ class Status extends core_1.Command {
81
81
  const symbol = this.getStatusSymbol(item.status);
82
82
  this.log(`${symbol} ${item.name}`);
83
83
  this.log(` Status: ${item.status}`);
84
+ if (item.status === 'FAILED' && item.failReason) {
85
+ this.log(` Fail reason: ${item.failReason}`);
86
+ }
87
+ if (item.durationSeconds) {
88
+ const minutes = Math.floor(item.durationSeconds / 60);
89
+ const seconds = item.durationSeconds % 60;
90
+ if (minutes > 0) {
91
+ this.log(` Duration: ${minutes}m ${seconds}s`);
92
+ }
93
+ else {
94
+ this.log(` Duration: ${item.durationSeconds}s`);
95
+ }
96
+ }
84
97
  this.log('');
85
98
  });
86
99
  }
package/dist/constants.js CHANGED
@@ -145,21 +145,7 @@ exports.flags = {
145
145
  aliases: ['maestroVersion'],
146
146
  default: '1.39.5',
147
147
  description: 'Maestro version to run your flow against',
148
- options: [
149
- '1.36.0',
150
- '1.37.5',
151
- '1.37.6',
152
- '1.37.7',
153
- '1.37.8',
154
- '1.37.9',
155
- '1.38.1',
156
- '1.39.0',
157
- '1.39.1',
158
- '1.39.2',
159
- '1.39.4',
160
- '1.39.5',
161
- '1.39.7',
162
- ],
148
+ options: ['1.39.0', '1.39.1', '1.39.2', '1.39.4', '1.39.5', '1.39.7'],
163
149
  }),
164
150
  mitmHost: core_1.Flags.string({
165
151
  description: 'used for mitmproxy support, enterprise only, contact support if interested',
package/dist/methods.d.ts CHANGED
@@ -31,6 +31,8 @@ export declare const getUploadStatus: (apiUrl: string, apiKey: string, options:
31
31
  tests: Array<{
32
32
  name: string;
33
33
  status: "PASSED" | "FAILED" | "CANCELLED" | "PENDING";
34
+ durationSeconds?: number;
35
+ failReason?: string;
34
36
  }>;
35
37
  }>;
36
38
  /**
@@ -278,13 +278,6 @@
278
278
  "hasDynamicHelp": false,
279
279
  "multiple": false,
280
280
  "options": [
281
- "1.36.0",
282
- "1.37.5",
283
- "1.37.6",
284
- "1.37.7",
285
- "1.37.8",
286
- "1.37.9",
287
- "1.38.1",
288
281
  "1.39.0",
289
282
  "1.39.1",
290
283
  "1.39.2",
@@ -551,5 +544,5 @@
551
544
  ]
552
545
  }
553
546
  },
554
- "version": "3.6.11"
547
+ "version": "3.7.0"
555
548
  }
package/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  "prepare": "yarn build",
80
80
  "version": "oclif readme && git add README.md"
81
81
  },
82
- "version": "3.6.11",
82
+ "version": "3.7.0",
83
83
  "bugs": {
84
84
  "url": "https://discord.gg/gm3mJwcNw8"
85
85
  },