@devicecloud.dev/dcd 3.3.0 → 3.3.1

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.
@@ -26,11 +26,11 @@ class Status extends core_1.Command {
26
26
  };
27
27
  getStatusSymbol(status) {
28
28
  switch (status) {
29
- case 'SUCCESS':
29
+ case 'PASSED':
30
30
  return '✓';
31
31
  case 'FAILED':
32
32
  return '✗';
33
- case 'CANCELED':
33
+ case 'CANCELLED':
34
34
  return '⊘';
35
35
  case 'PENDING':
36
36
  return '⋯';
@@ -60,7 +60,11 @@ class Status extends core_1.Command {
60
60
  else {
61
61
  this.log('\nUpload Status:');
62
62
  this.log('─'.repeat(50));
63
- status.forEach((item) => {
63
+ // Display overall status
64
+ const overallSymbol = this.getStatusSymbol(status.status);
65
+ this.log(`\n${overallSymbol} Overall Status: ${status.status}`);
66
+ this.log('─'.repeat(50));
67
+ status.tests.forEach((item) => {
64
68
  const symbol = this.getStatusSymbol(item.status);
65
69
  this.log(`\n${symbol} Flow: ${item.name}`);
66
70
  this.log(` Status: ${item.status}`);
package/dist/methods.d.ts CHANGED
@@ -29,6 +29,9 @@ export declare const getUploadStatus: (apiUrl: string, apiKey: string, options:
29
29
  uploadId?: string;
30
30
  name?: string;
31
31
  }) => Promise<{
32
- name: string;
33
- status: "SUCCESS" | "FAILED" | "CANCELED" | "PENDING";
34
- }[]>;
32
+ status: "PASSED" | "FAILED" | "CANCELLED" | "PENDING";
33
+ tests: Array<{
34
+ name: string;
35
+ status: "PASSED" | "FAILED" | "CANCELLED" | "PENDING";
36
+ }>;
37
+ }>;
@@ -398,5 +398,5 @@
398
398
  ]
399
399
  }
400
400
  },
401
- "version": "3.3.0"
401
+ "version": "3.3.1"
402
402
  }
package/package.json CHANGED
@@ -80,7 +80,7 @@
80
80
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
81
81
  "version": "oclif readme && git add README.md"
82
82
  },
83
- "version": "3.3.0",
83
+ "version": "3.3.1",
84
84
  "bugs": {
85
85
  "url": "https://discord.gg/gm3mJwcNw8"
86
86
  },