@devicecloud.dev/dcd 3.3.0 → 3.3.2

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 '⋯';
@@ -50,23 +50,38 @@ class Status extends core_1.Command {
50
50
  return;
51
51
  }
52
52
  try {
53
- const status = await (0, methods_1.getUploadStatus)(apiUrl, apiKey, {
53
+ const status = (await (0, methods_1.getUploadStatus)(apiUrl, apiKey, {
54
54
  name,
55
55
  uploadId,
56
- });
56
+ }));
57
57
  if (flags.json) {
58
58
  this.log(JSON.stringify(status, null, 2));
59
59
  }
60
60
  else {
61
- this.log('\nUpload Status:');
62
- this.log(''.repeat(50));
63
- status.forEach((item) => {
64
- const symbol = this.getStatusSymbol(item.status);
65
- this.log(`\n${symbol} Flow: ${item.name}`);
66
- this.log(` Status: ${item.status}`);
67
- this.log('─'.repeat(50));
68
- });
69
- this.log(''); // Add empty line at the end
61
+ this.log('\n📊 Upload Status');
62
+ this.log(''.repeat(80));
63
+ // Display overall status
64
+ const overallSymbol = this.getStatusSymbol(status.status);
65
+ this.log(`${overallSymbol} Status: ${status.status}`);
66
+ if (status.uploadId) {
67
+ this.log(`🆔 Upload ID: ${status.uploadId}`);
68
+ }
69
+ if (status.appBinaryId) {
70
+ this.log(`📱 Binary ID: ${status.appBinaryId}`);
71
+ }
72
+ if (status.consoleUrl) {
73
+ this.log(`🔗 Console: ${status.consoleUrl}`);
74
+ }
75
+ if (status.tests.length > 0) {
76
+ this.log('\n📋 Test Results');
77
+ this.log('─'.repeat(80));
78
+ status.tests.forEach((item) => {
79
+ const symbol = this.getStatusSymbol(item.status);
80
+ this.log(`${symbol} ${item.name}`);
81
+ this.log(` Status: ${item.status}`);
82
+ this.log('');
83
+ });
84
+ }
70
85
  }
71
86
  }
72
87
  catch (error) {
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.2"
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.2",
84
84
  "bugs": {
85
85
  "url": "https://discord.gg/gm3mJwcNw8"
86
86
  },