shipthis 0.1.31 → 0.1.33

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.
Files changed (84) hide show
  1. package/dist/{AppleBundleIdDetails-eoK5F8Qn.js → AppleBundleIdDetails-BhHPCvRm.js} +17 -19
  2. package/dist/Command-BDIkuv2g.js +29 -0
  3. package/dist/CommandGame-CvBIjPZp.js +7 -0
  4. package/dist/{Create-ISdroJ3G.js → Create-Lpe0B8nT.js} +20 -20
  5. package/dist/GameStatus-5XpufIY_.js +137 -0
  6. package/dist/{Import-CfThJF6k.js → Import-DFzrAG04.js} +34 -36
  7. package/dist/{JobLogTail-BWzbQBZz.js → JobLogTail-BYcJgPcL.js} +53 -52
  8. package/dist/{JobProgress-DjIkuk5U.js → JobProgress-BcrE7CUK.js} +40 -38
  9. package/dist/{JobStatusTable-CEqWU73q.js → JobStatusTable-Bi-y8ZZT.js} +14 -13
  10. package/dist/{NextSteps-CK9zHOCt.js → NextSteps-DbJHmscQ.js} +1 -3
  11. package/dist/{ProgressSpinner-6pw1T8Iw.js → ProgressSpinner-Um6ARKlk.js} +2 -2
  12. package/dist/{ProjectCredentialsTable-u9ruZ9mN.js → ProjectCredentialsTable-B4vDJl4l.js} +11 -10
  13. package/dist/{StatusTable-Dm5St4g-.js → StatusTable-DzRWcMr4.js} +7 -9
  14. package/dist/{Table-CvM6pccN.js → Table-FaNgpyeq.js} +15 -15
  15. package/dist/{UserCredentialsTable-Q7u9M-ap.js → UserCredentialsTable-CwkZTFBD.js} +18 -19
  16. package/dist/{baseAppleCommand-zhkGlKq0.js → baseAppleCommand-BKXweb-U.js} +1 -1
  17. package/dist/{baseGameAndroidCommand-DJ-cMLa_.js → baseGameAndroidCommand-CAi-BSsH.js} +23 -23
  18. package/dist/commands/apple/apiKey/create.js +36 -36
  19. package/dist/commands/apple/apiKey/export.js +27 -27
  20. package/dist/commands/apple/apiKey/import.js +28 -28
  21. package/dist/commands/apple/apiKey/status.js +32 -32
  22. package/dist/commands/apple/certificate/create.js +40 -40
  23. package/dist/commands/apple/certificate/export.js +27 -27
  24. package/dist/commands/apple/certificate/import.js +28 -28
  25. package/dist/commands/apple/certificate/status.js +33 -33
  26. package/dist/commands/apple/login.js +15 -15
  27. package/dist/commands/apple/status.js +27 -27
  28. package/dist/commands/dashboard.js +10 -10
  29. package/dist/commands/game/android/apiKey/connect.js +28 -28
  30. package/dist/commands/game/android/apiKey/create.js +29 -29
  31. package/dist/commands/game/android/apiKey/export.js +30 -30
  32. package/dist/commands/game/android/apiKey/import.js +32 -32
  33. package/dist/commands/game/android/apiKey/invite.js +14 -14
  34. package/dist/commands/game/android/apiKey/status.js +30 -30
  35. package/dist/commands/game/android/keyStore/create.js +25 -25
  36. package/dist/commands/game/android/keyStore/export.js +29 -29
  37. package/dist/commands/game/android/keyStore/import.js +36 -36
  38. package/dist/commands/game/android/keyStore/status.js +26 -26
  39. package/dist/commands/game/android/status.js +15 -58
  40. package/dist/commands/game/build/download.js +24 -24
  41. package/dist/commands/game/build/list.js +37 -37
  42. package/dist/commands/game/create.js +15 -15
  43. package/dist/commands/game/details.js +35 -36
  44. package/dist/commands/game/export.js +12 -12
  45. package/dist/commands/game/ios/app/addTester.js +37 -32
  46. package/dist/commands/game/ios/app/create.js +24 -24
  47. package/dist/commands/game/ios/app/status.js +29 -29
  48. package/dist/commands/game/ios/app/sync.js +31 -31
  49. package/dist/commands/game/ios/profile/create.js +32 -32
  50. package/dist/commands/game/ios/profile/export.js +29 -29
  51. package/dist/commands/game/ios/profile/import.js +33 -33
  52. package/dist/commands/game/ios/profile/status.js +36 -36
  53. package/dist/commands/game/ios/status.js +46 -58
  54. package/dist/commands/game/ios/wizard.js +39 -34
  55. package/dist/commands/game/job/list.js +34 -34
  56. package/dist/commands/game/job/status.js +32 -32
  57. package/dist/commands/game/list.js +38 -40
  58. package/dist/commands/game/ship.js +81 -77
  59. package/dist/commands/game/status.js +38 -85
  60. package/dist/commands/game/wizard.js +253 -242
  61. package/dist/commands/internal/fastlane.js +15 -17
  62. package/dist/commands/internal/readme.js +38 -36
  63. package/dist/commands/login.js +14 -14
  64. package/dist/commands/status.js +32 -30
  65. package/dist/{export-DZxo2_e_.js → export-DLQrUEBK.js} +5 -5
  66. package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
  67. package/dist/{import-8pL1AF47.js → import-BoY5e0uJ.js} +14 -14
  68. package/dist/{index-DJ078v-U.js → index-B27WJDxn.js} +43 -27
  69. package/dist/{index-DKQjnJrC.js → index-CisLwc7e.js} +42 -44
  70. package/dist/{index-C6aAyrXW.js → index-Crv7S0bl.js} +6 -6
  71. package/dist/{index-BHh0BZvD.js → index-DC0GJtAy.js} +50 -60
  72. package/dist/{index-CyvGh-kt.js → index-DfUg5j06.js} +93 -92
  73. package/dist/{index-w3lHxk5O.js → index-pj8JVg5X.js} +242 -225
  74. package/dist/{upload-BTpxj3QP.js → upload-C8S17EU_.js} +22 -22
  75. package/dist/{useAndroidServiceAccountTestResult-Dy3Ag7_r.js → useAndroidServiceAccountTestResult-D4e5AKAZ.js} +11 -13
  76. package/dist/{useAppleApp-h1Ogi_qc.js → useAppleApp-Dr6URQvC.js} +4 -4
  77. package/dist/{useAppleBundleId-B3TTNap0.js → useAppleBundleId-DELAwSQp.js} +6 -6
  78. package/dist/{useProjectCredentials-DpeXZcHP.js → useProjectCredentials-BjvdJdQg.js} +10 -12
  79. package/dist/{useWebSocket-gyuCsore.js → useWebSocket-CRV7V69Q.js} +1 -1
  80. package/dist/utils/help.js +4 -4
  81. package/package.json +5 -4
  82. package/dist/Command-DFdHXDiU.js +0 -44
  83. package/dist/CommandGame-Dif-oSky.js +0 -9
  84. package/dist/{RunWithSpinner-BVXNWGD3.js → RunWithSpinner-gMVA07bZ.js} +2 -2
@@ -1,43 +1,43 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
+ import * as fs from 'node:fs';
2
3
  import { Args, Flags } from '@oclif/core';
3
4
  import { render } from 'ink';
4
- import * as fs from 'fs';
5
- import { P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
6
- import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
7
- import 'react';
8
- import '../../../../index-CyvGh-kt.js';
5
+ import { a as getProjectCredentials } from '../../../../index-Crv7S0bl.js';
6
+ import { P as Platform, C as CredentialsType } from '../../../../index-pj8JVg5X.js';
9
7
  import 'ink-spinner';
10
- import 'axios';
11
- import 'crypto-js';
12
- import 'uuid';
13
- import 'luxon';
14
- import '@inkjs/ui';
15
- import '@tanstack/react-query';
16
- import 'yazl';
17
- import 'crypto';
18
- import 'readline-sync';
19
- import 'node:readline';
8
+ import 'node:crypto';
20
9
  import 'node:path';
10
+ import 'node:readline';
21
11
  import 'node:url';
12
+ import 'readline-sync';
13
+ import 'luxon';
14
+ import 'axios';
22
15
  import 'isomorphic-git';
16
+ import '@tanstack/react-query';
17
+ import 'react';
18
+ import 'crypto-js';
19
+ import 'uuid';
23
20
  import 'fast-glob';
21
+ import 'yazl';
24
22
  import 'socket.io-client';
23
+ import 'fullscreen-ink';
24
+ import 'string-length';
25
+ import 'strip-ansi';
25
26
  import 'open';
27
+ import '@inkjs/ui';
26
28
  import 'marked';
27
29
  import 'marked-terminal';
28
- import 'path';
29
30
  import 'qrcode';
30
- import { R as RunWithSpinner } from '../../../../RunWithSpinner-BVXNWGD3.js';
31
- import 'string-length';
32
- import 'strip-ansi';
33
- import { C as Command } from '../../../../Command-DFdHXDiU.js';
34
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
35
- import { i as importCredential } from '../../../../import-8pL1AF47.js';
31
+ import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
32
+ import '../../../../index-DfUg5j06.js';
33
+ import { C as Command } from '../../../../Command-BDIkuv2g.js';
34
+ import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.js';
35
+ import { i as importCredential } from '../../../../import-BoY5e0uJ.js';
36
36
  import '@expo/apple-utils/build/index.js';
37
- import 'ini';
38
37
  import 'deepmerge';
39
- import '../../../../index-DJ078v-U.js';
40
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
38
+ import 'ini';
39
+ import '../../../../index-B27WJDxn.js';
40
+ import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
41
41
 
42
42
  class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
43
43
  static args = {
@@ -49,8 +49,8 @@ class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
49
49
  static description = "Imports an Android Service Account API Key to your ShipThis account for the specified game.";
50
50
  static examples = ["<%= config.bin %> <%= command.id %>"];
51
51
  static flags = {
52
- gameId: Flags.string({ char: "g", description: "The ID of the game" }),
53
- force: Flags.boolean({ char: "f" })
52
+ force: Flags.boolean({ char: "f" }),
53
+ gameId: Flags.string({ char: "g", description: "The ID of the game" })
54
54
  };
55
55
  async run() {
56
56
  const game = await this.getGame();
@@ -63,7 +63,7 @@ class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
63
63
  }
64
64
  const projectCredentials = await getProjectCredentials(game.id);
65
65
  const hasAndroidApiKey = projectCredentials.some(
66
- (cred) => cred.platform == Platform.ANDROID && cred.isActive && cred.type == CredentialsType.KEY
66
+ (cred) => cred.platform === Platform.ANDROID && cred.isActive && cred.type === CredentialsType.KEY
67
67
  );
68
68
  if (hasAndroidApiKey && !force) {
69
69
  this.error("An Android Service Account API Key is already set on this game. Use --force to overwrite it.");
@@ -75,14 +75,14 @@ class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
75
75
  /* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
76
76
  RunWithSpinner,
77
77
  {
78
- msgInProgress: `Importing Android Service Account API Key from ${file}...`,
79
- msgComplete: `Android Service Account API Key imported from ${file}`,
80
78
  executeMethod: () => importCredential({
79
+ platform: Platform.ANDROID,
81
80
  projectId: game.id,
82
- zipPath: file,
83
81
  type: CredentialsType.KEY,
84
- platform: Platform.ANDROID
82
+ zipPath: file
85
83
  }),
84
+ msgComplete: `Android Service Account API Key imported from ${file}`,
85
+ msgInProgress: `Importing Android Service Account API Key from ${file}...`,
86
86
  onComplete: handleComplete
87
87
  }
88
88
  ) })
@@ -1,28 +1,28 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
- import { R as inviteServiceAccount } from '../../../../index-w3lHxk5O.js';
3
- import { f as fetchKeyTestResult, K as KeyTestStatus, a as KeyTestError, n as niceError } from '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
4
- import { a as getInput } from '../../../../index-DJ078v-U.js';
5
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
6
- import 'path';
7
- import 'fs';
8
- import '@expo/apple-utils/build/index.js';
2
+ import { S as inviteServiceAccount } from '../../../../index-pj8JVg5X.js';
3
+ import { a as getInput } from '../../../../index-B27WJDxn.js';
4
+ import { f as fetchKeyTestResult, K as KeyTestStatus, a as KeyTestError, n as niceError } from '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
5
+ import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.js';
6
+ import 'node:fs';
9
7
  import 'axios';
10
8
  import 'crypto-js';
11
9
  import 'uuid';
12
10
  import 'luxon';
13
- import 'crypto';
14
- import 'readline-sync';
15
- import 'node:readline';
16
11
  import 'node:path';
12
+ import '@expo/apple-utils/build/index.js';
13
+ import 'node:crypto';
14
+ import 'node:readline';
17
15
  import 'node:url';
16
+ import 'readline-sync';
18
17
  import 'isomorphic-git';
19
- import 'ini';
20
18
  import 'deepmerge';
21
- import 'react';
19
+ import 'ini';
22
20
  import '@tanstack/react-query';
21
+ import 'react';
23
22
  import 'fast-glob';
24
23
  import 'yazl';
25
24
  import 'socket.io-client';
25
+ import 'fullscreen-ink';
26
26
  import 'ink';
27
27
 
28
28
  class GameAndroidApiKeyInvite extends BaseGameAndroidCommand {
@@ -34,8 +34,8 @@ class GameAndroidApiKeyInvite extends BaseGameAndroidCommand {
34
34
  static flags = {
35
35
  ...BaseGameAndroidCommand.flags,
36
36
  prompt: Flags.boolean({ char: "p", description: "Prompt for the Google Play Account ID" }),
37
- waitForGoogleApp: Flags.boolean({ char: "p", description: "Waits for the Google Play app to be created (10 mins)." }),
38
- waitForAuth: Flags.boolean({ char: "w", description: "Wait for Google Authentication (10 mins)." })
37
+ waitForAuth: Flags.boolean({ char: "w", description: "Wait for Google Authentication (10 mins)." }),
38
+ waitForGoogleApp: Flags.boolean({ char: "p", description: "Waits for the Google Play app to be created (10 mins)." })
39
39
  };
40
40
  async run() {
41
41
  const game = await this.getGame();
@@ -1,44 +1,44 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { render } from 'ink';
3
2
  import { Flags } from '@oclif/core';
4
- import 'react';
5
- import '../../../../index-CyvGh-kt.js';
6
- import { P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
3
+ import { render } from 'ink';
4
+ import { C as CredentialsType, P as Platform } from '../../../../index-pj8JVg5X.js';
7
5
  import 'ink-spinner';
8
- import 'axios';
9
- import 'crypto-js';
10
- import 'uuid';
11
- import 'fs';
12
- import 'luxon';
13
- import '@inkjs/ui';
14
- import '@tanstack/react-query';
15
- import 'yazl';
16
- import 'crypto';
17
- import 'readline-sync';
18
- import 'node:readline';
6
+ import 'node:crypto';
7
+ import 'node:fs';
19
8
  import 'node:path';
9
+ import 'node:readline';
20
10
  import 'node:url';
11
+ import 'readline-sync';
12
+ import 'luxon';
13
+ import 'axios';
21
14
  import 'isomorphic-git';
22
- import { f as fetchKeyTestResult, n as niceError, K as KeyTestStatus } from '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
15
+ import '@tanstack/react-query';
16
+ import 'react';
17
+ import 'crypto-js';
18
+ import 'uuid';
19
+ import { f as fetchKeyTestResult, n as niceError, K as KeyTestStatus } from '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
23
20
  import 'fast-glob';
21
+ import 'yazl';
24
22
  import 'socket.io-client';
25
- import 'open';
23
+ import 'fullscreen-ink';
24
+ import { T as Table } from '../../../../Table-FaNgpyeq.js';
26
25
  import { T as Title } from '../../../../Title-BCQtayg6.js';
26
+ import 'string-length';
27
+ import 'strip-ansi';
28
+ import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-B4vDJl4l.js';
29
+ import 'open';
30
+ import '@inkjs/ui';
27
31
  import 'marked';
28
32
  import 'marked-terminal';
29
- import 'path';
30
33
  import 'qrcode';
31
- import { T as Table } from '../../../../Table-CvM6pccN.js';
32
- import 'string-length';
33
- import 'strip-ansi';
34
- import { C as Command } from '../../../../Command-DFdHXDiU.js';
35
- import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-u9ruZ9mN.js';
36
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
37
- import '../../../../index-DJ078v-U.js';
34
+ import '../../../../index-DfUg5j06.js';
35
+ import { C as Command } from '../../../../Command-BDIkuv2g.js';
36
+ import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.js';
38
37
  import '@expo/apple-utils/build/index.js';
39
- import 'ini';
40
38
  import 'deepmerge';
41
- import '../../../../useProjectCredentials-DpeXZcHP.js';
39
+ import 'ini';
40
+ import '../../../../useProjectCredentials-BjvdJdQg.js';
41
+ import '../../../../index-B27WJDxn.js';
42
42
 
43
43
  class GameAndroidApiKeyStatus extends BaseGameAndroidCommand {
44
44
  static args = {};
@@ -60,9 +60,9 @@ class GameAndroidApiKeyStatus extends BaseGameAndroidCommand {
60
60
  {
61
61
  credentialTypeName: "Android Service Account API Key",
62
62
  queryProps: {
63
+ platform: Platform.ANDROID,
63
64
  projectId: game.id,
64
- type: CredentialsType.KEY,
65
- platform: Platform.ANDROID
65
+ type: CredentialsType.KEY
66
66
  }
67
67
  }
68
68
  ),
@@ -72,7 +72,7 @@ class GameAndroidApiKeyStatus extends BaseGameAndroidCommand {
72
72
  {
73
73
  data: [
74
74
  {
75
- "Key Works?": testResult.status == KeyTestStatus.SUCCESS,
75
+ "Key Works?": testResult.status === KeyTestStatus.SUCCESS,
76
76
  ...testResult,
77
77
  error: niceError(testResult.error)
78
78
  }
@@ -1,44 +1,44 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { render } from 'ink';
3
2
  import { Flags } from '@oclif/core';
4
- import 'react';
5
- import '../../../../index-CyvGh-kt.js';
6
- import { P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
7
- import 'ink-spinner';
3
+ import { render } from 'ink';
4
+ import 'node:fs';
8
5
  import 'axios';
9
6
  import 'crypto-js';
10
7
  import 'uuid';
11
- import 'fs';
8
+ import { P as Platform, C as CredentialsType } from '../../../../index-pj8JVg5X.js';
12
9
  import 'luxon';
13
- import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
14
- import '@inkjs/ui';
15
- import { C as CreateKeystore } from '../../../../Create-ISdroJ3G.js';
16
- import 'yazl';
17
- import '@tanstack/react-query';
18
- import 'crypto';
19
- import 'readline-sync';
20
- import 'node:readline';
10
+ import { a as getProjectCredentials } from '../../../../index-Crv7S0bl.js';
11
+ import 'ink-spinner';
12
+ import 'node:crypto';
21
13
  import 'node:path';
14
+ import 'node:readline';
22
15
  import 'node:url';
16
+ import 'readline-sync';
23
17
  import 'isomorphic-git';
18
+ import '@tanstack/react-query';
19
+ import 'react';
24
20
  import 'fast-glob';
21
+ import 'yazl';
25
22
  import 'socket.io-client';
23
+ import 'fullscreen-ink';
24
+ import 'string-length';
25
+ import 'strip-ansi';
26
26
  import 'open';
27
+ import '@inkjs/ui';
27
28
  import 'marked';
28
29
  import 'marked-terminal';
29
- import 'path';
30
30
  import 'qrcode';
31
- import 'string-length';
32
- import 'strip-ansi';
33
- import { C as CommandGame } from '../../../../CommandGame-Dif-oSky.js';
34
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
35
- import '../../../../index-DJ078v-U.js';
36
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
31
+ import '../../../../index-DfUg5j06.js';
32
+ import { C as CreateKeystore } from '../../../../Create-Lpe0B8nT.js';
33
+ import { C as CommandGame } from '../../../../CommandGame-CvBIjPZp.js';
34
+ import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.js';
37
35
  import '@expo/apple-utils/build/index.js';
38
- import 'ini';
39
36
  import 'deepmerge';
40
- import '../../../../RunWithSpinner-BVXNWGD3.js';
41
- import '../../../../Command-DFdHXDiU.js';
37
+ import 'ini';
38
+ import '../../../../index-B27WJDxn.js';
39
+ import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
40
+ import '../../../../RunWithSpinner-gMVA07bZ.js';
41
+ import '../../../../Command-BDIkuv2g.js';
42
42
 
43
43
  class GameAndroidKeyStoreCreate extends BaseGameAndroidCommand {
44
44
  static args = {};
@@ -55,7 +55,7 @@ class GameAndroidKeyStoreCreate extends BaseGameAndroidCommand {
55
55
  const game = await this.getGame();
56
56
  const projectCredentials = await getProjectCredentials(game.id);
57
57
  const hasKeystore = projectCredentials.some(
58
- (cred) => cred.platform == Platform.ANDROID && cred.isActive && cred.type == CredentialsType.CERTIFICATE
58
+ (cred) => cred.platform === Platform.ANDROID && cred.isActive && cred.type === CredentialsType.CERTIFICATE
59
59
  );
60
60
  if (hasKeystore && !this.flags.force) {
61
61
  this.error("A Keystore is already set on this game. Use --force to overwrite it.");
@@ -1,42 +1,42 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
+ import * as fs from 'node:fs';
2
3
  import { Args, Flags } from '@oclif/core';
3
4
  import { render } from 'ink';
4
- import * as fs from 'fs';
5
- import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
6
- import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
7
- import 'react';
8
- import '../../../../index-CyvGh-kt.js';
5
+ import { a as getProjectCredentials } from '../../../../index-Crv7S0bl.js';
6
+ import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-pj8JVg5X.js';
9
7
  import 'ink-spinner';
10
- import 'axios';
11
- import 'crypto-js';
12
- import 'uuid';
13
- import 'luxon';
14
- import '@inkjs/ui';
15
- import '@tanstack/react-query';
16
- import 'yazl';
17
- import 'crypto';
18
- import 'readline-sync';
19
- import 'node:readline';
8
+ import 'node:crypto';
20
9
  import 'node:path';
10
+ import 'node:readline';
21
11
  import 'node:url';
12
+ import 'readline-sync';
13
+ import 'luxon';
14
+ import 'axios';
22
15
  import 'isomorphic-git';
16
+ import '@tanstack/react-query';
17
+ import 'react';
18
+ import 'crypto-js';
19
+ import 'uuid';
23
20
  import 'fast-glob';
21
+ import 'yazl';
24
22
  import 'socket.io-client';
23
+ import 'fullscreen-ink';
24
+ import 'string-length';
25
+ import 'strip-ansi';
25
26
  import 'open';
27
+ import '@inkjs/ui';
26
28
  import 'marked';
27
29
  import 'marked-terminal';
28
- import 'path';
29
30
  import 'qrcode';
30
- import { R as RunWithSpinner } from '../../../../RunWithSpinner-BVXNWGD3.js';
31
- import 'string-length';
32
- import 'strip-ansi';
33
- import { C as Command } from '../../../../Command-DFdHXDiU.js';
34
- import { e as exportCredential } from '../../../../export-DZxo2_e_.js';
31
+ import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
32
+ import '../../../../index-DfUg5j06.js';
33
+ import { C as Command } from '../../../../Command-BDIkuv2g.js';
34
+ import { e as exportCredential } from '../../../../export-DLQrUEBK.js';
35
35
  import '@expo/apple-utils/build/index.js';
36
- import 'ini';
37
36
  import 'deepmerge';
38
- import '../../../../index-DJ078v-U.js';
39
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
37
+ import 'ini';
38
+ import '../../../../index-B27WJDxn.js';
39
+ import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
40
40
 
41
41
  class GameAndroidKeyStoreExport extends BaseGameCommand {
42
42
  static args = {
@@ -45,8 +45,8 @@ class GameAndroidKeyStoreExport extends BaseGameCommand {
45
45
  static description = "Saves the current Android Keystore to a ZIP file";
46
46
  static examples = ["<%= config.bin %> <%= command.id %> keyStore.zip"];
47
47
  static flags = {
48
- gameId: Flags.string({ char: "g", description: "The ID of the game" }),
49
- force: Flags.boolean({ char: "f", description: "Overwrite the file if it already exists" })
48
+ force: Flags.boolean({ char: "f", description: "Overwrite the file if it already exists" }),
49
+ gameId: Flags.string({ char: "g", description: "The ID of the game" })
50
50
  };
51
51
  async run() {
52
52
  const { args, flags } = this;
@@ -59,7 +59,7 @@ class GameAndroidKeyStoreExport extends BaseGameCommand {
59
59
  }
60
60
  const projectCredentials = await getProjectCredentials(game.id);
61
61
  const projectAndroidKeyStoreCreds = projectCredentials.filter(
62
- (cred) => cred.platform == Platform.ANDROID && cred.type == CredentialsType.CERTIFICATE && cred.isActive
62
+ (cred) => cred.platform === Platform.ANDROID && cred.type === CredentialsType.CERTIFICATE && cred.isActive
63
63
  );
64
64
  if (projectAndroidKeyStoreCreds.length === 0) {
65
65
  this.error("No Android Keystore found which can be exported.");
@@ -70,9 +70,9 @@ class GameAndroidKeyStoreExport extends BaseGameCommand {
70
70
  /* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
71
71
  RunWithSpinner,
72
72
  {
73
- msgInProgress: `Exporting Android Keystore to ${file}...`,
73
+ executeMethod: () => exportCredential({ credentialId: keyStore.id, projectId: game.id, zipPath: file }),
74
74
  msgComplete: `Android Keystore exported to ${file}`,
75
- executeMethod: () => exportCredential({ zipPath: file, credentialId: keyStore.id, projectId: game.id }),
75
+ msgInProgress: `Exporting Android Keystore to ${file}...`,
76
76
  onComplete: handleComplete
77
77
  }
78
78
  ) })
@@ -1,44 +1,44 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
+ import * as fs from 'node:fs';
2
3
  import { Args, Flags } from '@oclif/core';
3
4
  import { render } from 'ink';
4
- import * as fs from 'fs';
5
- import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
6
- import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
7
- import 'react';
8
- import '../../../../index-CyvGh-kt.js';
5
+ import { a as getProjectCredentials } from '../../../../index-Crv7S0bl.js';
6
+ import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-pj8JVg5X.js';
9
7
  import 'ink-spinner';
10
- import 'axios';
11
- import 'crypto-js';
12
- import 'uuid';
13
- import 'luxon';
14
- import '@inkjs/ui';
15
- import '@tanstack/react-query';
16
- import { I as ImportKeystore } from '../../../../Import-CfThJF6k.js';
17
- import 'open';
18
- import 'crypto';
19
- import 'readline-sync';
20
- import 'node:readline';
8
+ import 'node:crypto';
21
9
  import 'node:path';
10
+ import 'node:readline';
22
11
  import 'node:url';
12
+ import 'readline-sync';
13
+ import 'luxon';
14
+ import 'axios';
23
15
  import 'isomorphic-git';
16
+ import '@tanstack/react-query';
17
+ import 'react';
18
+ import 'crypto-js';
19
+ import 'uuid';
24
20
  import 'fast-glob';
25
21
  import 'yazl';
26
22
  import 'socket.io-client';
23
+ import 'fullscreen-ink';
24
+ import 'string-length';
25
+ import 'strip-ansi';
26
+ import 'open';
27
+ import '@inkjs/ui';
27
28
  import 'marked';
28
29
  import 'marked-terminal';
29
- import 'path';
30
30
  import 'qrcode';
31
- import 'string-length';
32
- import 'strip-ansi';
33
- import { C as CommandGame } from '../../../../CommandGame-Dif-oSky.js';
34
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
31
+ import '../../../../index-DfUg5j06.js';
32
+ import { I as ImportKeystore } from '../../../../Import-DFzrAG04.js';
33
+ import { C as CommandGame } from '../../../../CommandGame-CvBIjPZp.js';
34
+ import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.js';
35
35
  import '@expo/apple-utils/build/index.js';
36
- import 'ini';
37
36
  import 'deepmerge';
38
- import '../../../../index-DJ078v-U.js';
39
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
40
- import '../../../../import-8pL1AF47.js';
41
- import '../../../../Command-DFdHXDiU.js';
37
+ import 'ini';
38
+ import '../../../../index-B27WJDxn.js';
39
+ import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
40
+ import '../../../../import-BoY5e0uJ.js';
41
+ import '../../../../Command-BDIkuv2g.js';
42
42
 
43
43
  class GameAndroidKeyStoreImport extends BaseGameCommand {
44
44
  static args = {
@@ -54,16 +54,16 @@ class GameAndroidKeyStoreImport extends BaseGameCommand {
54
54
  ];
55
55
  static flags = {
56
56
  ...BaseGameAndroidCommand.flags,
57
- jksFile: Flags.string({ description: "Path to the JKS file to import (requires passwords)" }),
58
- keystorePassword: Flags.string({
59
- description: "Keystore password (required when using --jksFile)"
57
+ force: Flags.boolean({
58
+ char: "f",
59
+ description: "Overwrite any existing keystore without confirmation"
60
60
  }),
61
+ jksFile: Flags.string({ description: "Path to the JKS file to import (requires passwords)" }),
61
62
  keyPassword: Flags.string({
62
63
  description: "Key alias password (required when using --jksFile)"
63
64
  }),
64
- force: Flags.boolean({
65
- char: "f",
66
- description: "Overwrite any existing keystore without confirmation"
65
+ keystorePassword: Flags.string({
66
+ description: "Keystore password (required when using --jksFile)"
67
67
  })
68
68
  };
69
69
  async run() {
@@ -71,7 +71,7 @@ class GameAndroidKeyStoreImport extends BaseGameCommand {
71
71
  const { args, flags } = this;
72
72
  const zipFilePath = args.file;
73
73
  const jksFilePath = flags.jksFile;
74
- const { keystorePassword, keyPassword } = flags;
74
+ const { keyPassword, keystorePassword } = flags;
75
75
  if (!zipFilePath && !jksFilePath) {
76
76
  this.error("You must provide either a ZIP file or a JKS file to import.");
77
77
  }
@@ -88,7 +88,7 @@ class GameAndroidKeyStoreImport extends BaseGameCommand {
88
88
  }
89
89
  const projectCredentials = await getProjectCredentials(game.id);
90
90
  const hasKeystore = projectCredentials.some(
91
- (cred) => cred.platform == Platform.ANDROID && cred.isActive && cred.type == CredentialsType.CERTIFICATE
91
+ (cred) => cred.platform === Platform.ANDROID && cred.isActive && cred.type === CredentialsType.CERTIFICATE
92
92
  );
93
93
  if (hasKeystore && !flags.force) {
94
94
  this.error("A Keystore is already set on this game. Use --force to overwrite it.");
@@ -100,9 +100,9 @@ class GameAndroidKeyStoreImport extends BaseGameCommand {
100
100
  /* @__PURE__ */ jsx(CommandGame, { command: this, children: /* @__PURE__ */ jsx(
101
101
  ImportKeystore,
102
102
  {
103
+ importKeystoreProps: { jksFilePath, keyPassword, keystorePassword, zipFilePath },
103
104
  onComplete: handleComplete,
104
- onError: (e) => this.error(e),
105
- importKeystoreProps: { zipFilePath, jksFilePath, keystorePassword, keyPassword }
105
+ onError: (e) => this.error(e)
106
106
  }
107
107
  ) })
108
108
  );
@@ -1,42 +1,42 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { render } from 'ink';
3
- import 'react';
4
- import '../../../../index-CyvGh-kt.js';
5
- import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
3
+ import { c as BaseGameCommand, C as CredentialsType, P as Platform } from '../../../../index-pj8JVg5X.js';
6
4
  import 'ink-spinner';
7
- import 'axios';
8
- import 'crypto-js';
9
- import 'uuid';
10
- import 'fs';
11
- import 'luxon';
12
- import '@inkjs/ui';
13
- import '@tanstack/react-query';
14
- import 'yazl';
15
- import 'crypto';
16
- import 'readline-sync';
17
- import 'node:readline';
5
+ import 'node:crypto';
6
+ import 'node:fs';
18
7
  import 'node:path';
8
+ import 'node:readline';
19
9
  import 'node:url';
10
+ import 'readline-sync';
11
+ import 'luxon';
12
+ import 'axios';
20
13
  import 'isomorphic-git';
21
14
  import '@oclif/core';
15
+ import '@tanstack/react-query';
16
+ import 'react';
17
+ import 'crypto-js';
18
+ import 'uuid';
22
19
  import 'fast-glob';
20
+ import 'yazl';
23
21
  import 'socket.io-client';
22
+ import 'fullscreen-ink';
23
+ import 'string-length';
24
+ import 'strip-ansi';
25
+ import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-B4vDJl4l.js';
24
26
  import 'open';
27
+ import '@inkjs/ui';
25
28
  import 'marked';
26
29
  import 'marked-terminal';
27
- import 'path';
28
30
  import 'qrcode';
29
- import 'string-length';
30
- import 'strip-ansi';
31
- import { C as Command } from '../../../../Command-DFdHXDiU.js';
32
- import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-u9ruZ9mN.js';
33
- import '../../../../index-DJ078v-U.js';
34
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
31
+ import '../../../../index-DfUg5j06.js';
32
+ import { C as Command } from '../../../../Command-BDIkuv2g.js';
35
33
  import '@expo/apple-utils/build/index.js';
36
- import 'ini';
37
34
  import 'deepmerge';
38
- import '../../../../useProjectCredentials-DpeXZcHP.js';
39
- import '../../../../Table-CvM6pccN.js';
35
+ import 'ini';
36
+ import '../../../../useProjectCredentials-BjvdJdQg.js';
37
+ import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
38
+ import '../../../../index-B27WJDxn.js';
39
+ import '../../../../Table-FaNgpyeq.js';
40
40
  import '../../../../Title-BCQtayg6.js';
41
41
 
42
42
  class GameAndroidKeyStoreStatus extends BaseGameCommand {
@@ -57,9 +57,9 @@ class GameAndroidKeyStoreStatus extends BaseGameCommand {
57
57
  {
58
58
  credentialTypeName: "Android Keystore",
59
59
  queryProps: {
60
+ platform: Platform.ANDROID,
60
61
  projectId: game.id,
61
- type: CredentialsType.CERTIFICATE,
62
- platform: Platform.ANDROID
62
+ type: CredentialsType.CERTIFICATE
63
63
  }
64
64
  }
65
65
  ) })