shipthis 0.1.34 → 0.1.36
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.
- package/README.md +223 -80
- package/assets/markdown/agreement-update.md.ejs +12 -0
- package/assets/markdown/{android-success.md → android-success.md.ejs} +2 -2
- package/assets/markdown/{apikey-create.md → apikey-create.md.ejs} +4 -4
- package/assets/markdown/{create-google-play-game.md → create-google-play-game.md.ejs} +2 -2
- package/assets/markdown/{invite-service-account.md → invite-service-account.md.ejs} +1 -1
- package/assets/markdown/{ios-success.md → ios-success.md.ejs} +2 -2
- package/assets/markdown/{privacy-notification.md → privacy-notification.md.ejs} +1 -1
- package/assets/markdown/service-account-policy-wizard.md.ejs +26 -0
- package/assets/markdown/service-account-policy.md.ejs +30 -0
- package/assets/markdown/{ship-failure.md → ship-failure.md.ejs} +1 -1
- package/assets/markdown/{ship-success.md → ship-success.md.ejs} +2 -2
- package/dist/{AppleBundleIdDetails-By-sSGNl.js → AppleBundleIdDetails-pEVOUXTQ.js} +3 -4
- package/dist/{Command-VWMnGslo.js → Command-DhAVAdiI.js} +1 -2
- package/dist/{CommandGame-BSVPZzNl.js → CommandGame-C-oV-hb4.js} +2 -2
- package/dist/{Create-SR1Mq7BY.js → Create-Dg9ZlwEd.js} +1 -3
- package/dist/{GameStatus-1ntFyxEx.js → GameStatus-Dm9TqFfW.js} +9 -17
- package/dist/{Import-cedOWPDz.js → Import-BFNNkN-I.js} +2 -4
- package/dist/{JobLogTail-C_W8UAMg.js → JobLogTail-RTNIiAUk.js} +2 -5
- package/dist/{JobProgress-CI385G53.js → JobProgress-dFWcT0CQ.js} +16 -17
- package/dist/{JobStatusTable-CdbKtwJE.js → JobStatusTable-BlvMuWF7.js} +2 -4
- package/dist/{ProjectCredentialsTable-ZnuIfcDB.js → ProjectCredentialsTable-CMBnYLou.js} +2 -2
- package/dist/{UserCredentialsTable-DRkAYgEA.js → UserCredentialsTable-oxE3mDmE.js} +8 -10
- package/dist/{baseAppleCommand-CsO-_Yzn.js → baseAppleCommand-cnLvBz95.js} +1 -1
- package/dist/{baseGameAndroidCommand-CdjaAbNX.js → baseGameAndroidCommand-DUDYisYm.js} +1 -2
- package/dist/commands/apiKey/create.js +15 -16
- package/dist/commands/apiKey/list.js +6 -7
- package/dist/commands/apiKey/revoke.js +7 -8
- package/dist/commands/apple/apiKey/create.js +7 -8
- package/dist/commands/apple/apiKey/export.js +6 -7
- package/dist/commands/apple/apiKey/import.js +6 -7
- package/dist/commands/apple/apiKey/status.js +12 -13
- package/dist/commands/apple/certificate/create.js +7 -8
- package/dist/commands/apple/certificate/export.js +6 -7
- package/dist/commands/apple/certificate/import.js +6 -7
- package/dist/commands/apple/certificate/status.js +12 -13
- package/dist/commands/apple/login.js +12 -2
- package/dist/commands/apple/status.js +4 -5
- package/dist/commands/dashboard.js +11 -1
- package/dist/commands/game/android/apiKey/connect.js +9 -9
- package/dist/commands/game/android/apiKey/create.js +11 -11
- package/dist/commands/game/android/apiKey/export.js +7 -8
- package/dist/commands/game/android/apiKey/import.js +7 -8
- package/dist/commands/game/android/apiKey/invite.js +13 -4
- package/dist/commands/game/android/apiKey/policy.js +83 -0
- package/dist/commands/game/android/apiKey/status.js +7 -8
- package/dist/commands/game/android/keyStore/create.js +8 -9
- package/dist/commands/game/android/keyStore/export.js +6 -7
- package/dist/commands/game/android/keyStore/import.js +9 -10
- package/dist/commands/game/android/keyStore/status.js +6 -7
- package/dist/commands/game/android/status.js +12 -1
- package/dist/commands/game/build/download.js +4 -5
- package/dist/commands/game/build/list.js +5 -6
- package/dist/commands/game/create.js +12 -2
- package/dist/commands/game/details.js +4 -5
- package/dist/commands/game/export.js +12 -1
- package/dist/commands/game/ios/app/addTester.js +11 -12
- package/dist/commands/game/ios/app/create.js +4 -5
- package/dist/commands/game/ios/app/status.js +7 -8
- package/dist/commands/game/ios/app/sync.js +5 -6
- package/dist/commands/game/ios/profile/create.js +7 -8
- package/dist/commands/game/ios/profile/export.js +6 -7
- package/dist/commands/game/ios/profile/import.js +6 -7
- package/dist/commands/game/ios/profile/status.js +6 -7
- package/dist/commands/game/ios/status.js +9 -10
- package/dist/commands/game/ios/wizard.js +5 -6
- package/dist/commands/game/job/list.js +4 -5
- package/dist/commands/game/job/status.js +7 -8
- package/dist/commands/game/list.js +11 -10
- package/dist/commands/game/ship.js +18 -13
- package/dist/commands/game/status.js +6 -7
- package/dist/commands/game/wizard.js +19 -19
- package/dist/commands/internal/fastlane.js +12 -1
- package/dist/commands/internal/readme.js +12 -715
- package/dist/commands/login.js +26 -4
- package/dist/commands/status.js +12 -14
- package/dist/{export-B5Yfd9vw.js → export-Bd552LBe.js} +1 -1
- package/dist/{import-A2WcStHl.js → import-D-EL9sQJ.js} +1 -1
- package/dist/{index-CgzANgJt.js → index-1H48f5j2.js} +1 -1
- package/dist/index-BtPf4vzY.js +1903 -0
- package/dist/{index-Bz1qt_8T.js → index-DCN43FhY.js} +5 -11
- package/dist/{index-BBLtvl1Y.js → index-DwATmUTQ.js} +57 -16
- package/dist/{upload-BIsFZzBO.js → upload-Dm38PqhN.js} +1 -1
- package/dist/{useAppleApp-BZR94exU.js → useAppleApp-BKPntZPm.js} +1 -1
- package/dist/{useAppleBundleId-Dg5DsItN.js → useAppleBundleId-DvQKEEy4.js} +1 -1
- package/dist/useGoogleStatus-D9jjGa--.js +9 -0
- package/dist/{useProjectCredentials-jQYGcDhT.js → useProjectCredentials-BjsS28hP.js} +12 -11
- package/dist/{useWebSocket-CIxkPaYi.js → useWebSocket-CIeyHqxG.js} +1 -1
- package/docs/README.md +3 -2
- package/docs/apiKey.md +12 -2
- package/docs/assets/st.png +0 -0
- package/docs/game/android/apiKey/policy.md +28 -0
- package/docs/game/android/keyStore.md +14 -4
- package/docs/game/android/status.md +4 -0
- package/docs/game/android.md +9 -305
- package/docs/game/ship.md +43 -11
- package/docs/game.md +7 -1
- package/docs/login.md +6 -2
- package/docs/status.md +1 -1
- package/package.json +10 -2
- package/dist/index-CA6-uLMn.js +0 -221
- package/dist/index-CO_ssVFA.js +0 -772
- package/dist/index-CYjZ26If.js +0 -153
- package/dist/useAndroidServiceAccountTestResult-DueKynFy.js +0 -50
- /package/assets/markdown/{create-or-import-keystore.md → create-or-import-keystore.md.ejs} +0 -0
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { g as getUserCredentials } from '../../../index-
|
|
6
|
-
import { B as BaseAuthenticatedCommand, P as Platform, C as CredentialsType } from '../../../index-
|
|
5
|
+
import { g as getUserCredentials } from '../../../index-1H48f5j2.js';
|
|
6
|
+
import { B as BaseAuthenticatedCommand, P as Platform, C as CredentialsType } from '../../../index-BtPf4vzY.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -29,14 +29,13 @@ import 'marked';
|
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
31
|
import { R as RunWithSpinner } from '../../../RunWithSpinner-DucRnFp6.js';
|
|
32
|
-
import '../../../
|
|
33
|
-
import {
|
|
34
|
-
import { e as exportCredential } from '../../../export-B5Yfd9vw.js';
|
|
32
|
+
import { C as Command } from '../../../Command-DhAVAdiI.js';
|
|
33
|
+
import { e as exportCredential } from '../../../export-Bd552LBe.js';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
40
39
|
|
|
41
40
|
class AppleCertificateExport extends BaseAuthenticatedCommand {
|
|
42
41
|
static args = {
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { g as getUserCredentials } from '../../../index-
|
|
6
|
-
import { B as BaseAuthenticatedCommand, P as Platform, C as CredentialsType } from '../../../index-
|
|
5
|
+
import { g as getUserCredentials } from '../../../index-1H48f5j2.js';
|
|
6
|
+
import { B as BaseAuthenticatedCommand, P as Platform, C as CredentialsType } from '../../../index-BtPf4vzY.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -29,14 +29,13 @@ import 'marked';
|
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
31
|
import { R as RunWithSpinner } from '../../../RunWithSpinner-DucRnFp6.js';
|
|
32
|
-
import '../../../
|
|
33
|
-
import {
|
|
34
|
-
import { i as importCredential } from '../../../import-A2WcStHl.js';
|
|
32
|
+
import { C as Command } from '../../../Command-DhAVAdiI.js';
|
|
33
|
+
import { i as importCredential } from '../../../import-D-EL9sQJ.js';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
40
39
|
|
|
41
40
|
class AppleCertificateImport extends BaseAuthenticatedCommand {
|
|
42
41
|
static args = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { Box, Text, render } from 'ink';
|
|
4
|
-
import { b as getShortDate,
|
|
4
|
+
import { b as getShortUUID, c as getShortDate, o as Certificate, p as CertificateType, P as Platform, C as CredentialsType, B as BaseAuthenticatedCommand } from '../../../index-BtPf4vzY.js';
|
|
5
5
|
import Spinner from 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -23,21 +23,20 @@ import 'fullscreen-ink';
|
|
|
23
23
|
import 'string-length';
|
|
24
24
|
import 'strip-ansi';
|
|
25
25
|
import 'open';
|
|
26
|
-
import { u as useUserCredentials, U as UserCredentialsTable } from '../../../UserCredentialsTable-
|
|
26
|
+
import { u as useUserCredentials, U as UserCredentialsTable } from '../../../UserCredentialsTable-oxE3mDmE.js';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
28
|
import 'marked';
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
|
-
import '../../../index-CA6-uLMn.js';
|
|
32
|
-
import { g as getShortUUID } from '../../../index-CYjZ26If.js';
|
|
33
31
|
import { T as Table } from '../../../Table-FaNgpyeq.js';
|
|
34
32
|
import { T as Title } from '../../../Title-BCQtayg6.js';
|
|
35
33
|
import { N as NextSteps } from '../../../NextSteps-DbJHmscQ.js';
|
|
36
|
-
import { C as Command } from '../../../Command-
|
|
34
|
+
import { C as Command } from '../../../Command-DhAVAdiI.js';
|
|
37
35
|
import '@expo/apple-utils/build/index.js';
|
|
38
36
|
import 'deepmerge';
|
|
39
37
|
import 'ini';
|
|
40
|
-
import '
|
|
38
|
+
import 'fs';
|
|
39
|
+
import 'path';
|
|
41
40
|
|
|
42
41
|
async function queryAppleCertificates({ ctx }) {
|
|
43
42
|
const appleCerts = await Certificate.getAsync(ctx, {
|
|
@@ -54,13 +53,13 @@ const canAppleCertificateBeUsed = (cert, userCredentials) => {
|
|
|
54
53
|
return userCredentials.some((cred) => cred.isActive && cred.serialNumber === cert.attributes.serialNumber);
|
|
55
54
|
};
|
|
56
55
|
function getAppleCertificateSummary(cert, userCredentials) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
const summary = {};
|
|
57
|
+
summary.id = getShortUUID(cert.id);
|
|
58
|
+
summary.name = cert.attributes.name;
|
|
59
|
+
summary.serial = cert.attributes.serialNumber;
|
|
60
|
+
summary.expires = getShortDate(DateTime.fromISO(cert.attributes.expirationDate));
|
|
61
|
+
summary.canBeUsed = canAppleCertificateBeUsed(cert, userCredentials);
|
|
62
|
+
return summary;
|
|
64
63
|
}
|
|
65
64
|
const useAppleCertificates = (props) => {
|
|
66
65
|
const queryResult = useQuery({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
|
-
import {
|
|
3
|
-
import { a as getInput, e as getMaskedInput } from '../../index-CYjZ26If.js';
|
|
2
|
+
import { ak as Auth, B as BaseAuthenticatedCommand, e as getInput, al as getMaskedInput } from '../../index-BtPf4vzY.js';
|
|
4
3
|
import 'node:fs';
|
|
5
4
|
import 'axios';
|
|
6
5
|
import 'crypto-js';
|
|
@@ -22,6 +21,17 @@ import 'yazl';
|
|
|
22
21
|
import 'socket.io-client';
|
|
23
22
|
import 'fullscreen-ink';
|
|
24
23
|
import 'ink';
|
|
24
|
+
import 'react/jsx-runtime';
|
|
25
|
+
import 'ink-spinner';
|
|
26
|
+
import 'string-length';
|
|
27
|
+
import 'strip-ansi';
|
|
28
|
+
import 'open';
|
|
29
|
+
import '@inkjs/ui';
|
|
30
|
+
import 'fs';
|
|
31
|
+
import 'path';
|
|
32
|
+
import 'marked';
|
|
33
|
+
import 'marked-terminal';
|
|
34
|
+
import 'qrcode';
|
|
25
35
|
|
|
26
36
|
async function getNewAuthState(username, password) {
|
|
27
37
|
const authState = await Auth.loginAsync({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { render } from 'ink';
|
|
3
|
-
import { B as BaseAuthenticatedCommand } from '../../index-
|
|
3
|
+
import { B as BaseAuthenticatedCommand } from '../../index-BtPf4vzY.js';
|
|
4
4
|
import 'ink-spinner';
|
|
5
5
|
import 'node:crypto';
|
|
6
6
|
import 'node:fs';
|
|
@@ -29,14 +29,13 @@ import 'marked';
|
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import { N as NextSteps } from '../../NextSteps-DbJHmscQ.js';
|
|
31
31
|
import 'qrcode';
|
|
32
|
-
import '../../
|
|
33
|
-
import { C as Command } from '../../Command-VWMnGslo.js';
|
|
32
|
+
import { C as Command } from '../../Command-DhAVAdiI.js';
|
|
34
33
|
import '@expo/apple-utils/build/index.js';
|
|
35
34
|
import 'deepmerge';
|
|
36
35
|
import 'ini';
|
|
36
|
+
import 'fs';
|
|
37
|
+
import 'path';
|
|
37
38
|
import '../../Title-BCQtayg6.js';
|
|
38
|
-
import '../../index-CYjZ26If.js';
|
|
39
|
-
import '../../useAndroidServiceAccountTestResult-DueKynFy.js';
|
|
40
39
|
|
|
41
40
|
class AppleStatus extends BaseAuthenticatedCommand {
|
|
42
41
|
static args = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import open from 'open';
|
|
2
|
-
import { B as BaseAuthenticatedCommand,
|
|
2
|
+
import { B as BaseAuthenticatedCommand, ah as getSingleUseUrl } from '../index-BtPf4vzY.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'crypto-js';
|
|
@@ -22,6 +22,16 @@ import 'yazl';
|
|
|
22
22
|
import 'socket.io-client';
|
|
23
23
|
import 'fullscreen-ink';
|
|
24
24
|
import 'ink';
|
|
25
|
+
import 'react/jsx-runtime';
|
|
26
|
+
import 'ink-spinner';
|
|
27
|
+
import 'string-length';
|
|
28
|
+
import 'strip-ansi';
|
|
29
|
+
import '@inkjs/ui';
|
|
30
|
+
import 'fs';
|
|
31
|
+
import 'path';
|
|
32
|
+
import 'marked';
|
|
33
|
+
import 'marked-terminal';
|
|
34
|
+
import 'qrcode';
|
|
25
35
|
|
|
26
36
|
class Dashboard extends BaseAuthenticatedCommand {
|
|
27
37
|
static args = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { a2 as getGoogleStatus, ab as disconnectGoogle } from '../../../../index-BtPf4vzY.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -22,22 +22,22 @@ import 'fullscreen-ink';
|
|
|
22
22
|
import 'string-length';
|
|
23
23
|
import 'strip-ansi';
|
|
24
24
|
import 'open';
|
|
25
|
-
import { C as ConnectGoogle } from '../../../../index-
|
|
26
|
-
import '../../../../index-CA6-uLMn.js';
|
|
25
|
+
import { C as ConnectGoogle } from '../../../../index-DCN43FhY.js';
|
|
27
26
|
import '@inkjs/ui';
|
|
28
27
|
import 'marked';
|
|
29
28
|
import 'marked-terminal';
|
|
30
29
|
import 'qrcode';
|
|
31
|
-
import { C as CommandGame } from '../../../../CommandGame-
|
|
32
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-
|
|
30
|
+
import { C as CommandGame } from '../../../../CommandGame-C-oV-hb4.js';
|
|
31
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
33
32
|
import 'crypto-js';
|
|
34
33
|
import '@expo/apple-utils/build/index.js';
|
|
35
34
|
import 'deepmerge';
|
|
36
35
|
import 'ini';
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
39
|
-
import '../../../../
|
|
40
|
-
import '../../../../
|
|
36
|
+
import 'fs';
|
|
37
|
+
import 'path';
|
|
38
|
+
import '../../../../useGoogleStatus-D9jjGa--.js';
|
|
39
|
+
import '../../../../useWebSocket-CIeyHqxG.js';
|
|
40
|
+
import '../../../../Command-DhAVAdiI.js';
|
|
41
41
|
|
|
42
42
|
class GameAndroidApiKeyConnect extends BaseGameAndroidCommand {
|
|
43
43
|
static args = {};
|
|
@@ -5,9 +5,9 @@ import 'node:fs';
|
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'crypto-js';
|
|
7
7
|
import 'uuid';
|
|
8
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-
|
|
8
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BtPf4vzY.js';
|
|
9
9
|
import 'luxon';
|
|
10
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
10
|
+
import { a as getProjectCredentials } from '../../../../index-1H48f5j2.js';
|
|
11
11
|
import 'ink-spinner';
|
|
12
12
|
import 'node:crypto';
|
|
13
13
|
import 'node:path';
|
|
@@ -28,19 +28,19 @@ import '@inkjs/ui';
|
|
|
28
28
|
import 'marked';
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
|
-
import '../../../../index-
|
|
32
|
-
import { C as
|
|
33
|
-
import {
|
|
34
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CdjaAbNX.js';
|
|
31
|
+
import { C as CreateServiceAccountKey } from '../../../../index-DwATmUTQ.js';
|
|
32
|
+
import { C as CommandGame } from '../../../../CommandGame-C-oV-hb4.js';
|
|
33
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '../../../../useWebSocket-
|
|
41
|
-
import '../../../../useProjectCredentials-
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
39
|
+
import '../../../../useWebSocket-CIeyHqxG.js';
|
|
40
|
+
import '../../../../useProjectCredentials-BjsS28hP.js';
|
|
41
|
+
import '../../../../useGoogleStatus-D9jjGa--.js';
|
|
42
42
|
import '../../../../ProgressSpinner-Um6ARKlk.js';
|
|
43
|
-
import '../../../../Command-
|
|
43
|
+
import '../../../../Command-DhAVAdiI.js';
|
|
44
44
|
|
|
45
45
|
class GameAndroidApiKeyCreate extends BaseGameAndroidCommand {
|
|
46
46
|
static args = {};
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
6
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-1H48f5j2.js';
|
|
6
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BtPf4vzY.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -29,15 +29,14 @@ import 'marked';
|
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
31
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
32
|
-
import '../../../../
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { e as exportCredential } from '../../../../export-B5Yfd9vw.js';
|
|
32
|
+
import { C as Command } from '../../../../Command-DhAVAdiI.js';
|
|
33
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
34
|
+
import { e as exportCredential } from '../../../../export-Bd552LBe.js';
|
|
36
35
|
import '@expo/apple-utils/build/index.js';
|
|
37
36
|
import 'deepmerge';
|
|
38
37
|
import 'ini';
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
38
|
+
import 'fs';
|
|
39
|
+
import 'path';
|
|
41
40
|
|
|
42
41
|
class GameAndroidApiKeyExport extends BaseGameAndroidCommand {
|
|
43
42
|
static args = {
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
6
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-1H48f5j2.js';
|
|
6
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BtPf4vzY.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -29,15 +29,14 @@ import 'marked';
|
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
31
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
32
|
-
import '../../../../
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { i as importCredential } from '../../../../import-A2WcStHl.js';
|
|
32
|
+
import { C as Command } from '../../../../Command-DhAVAdiI.js';
|
|
33
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
34
|
+
import { i as importCredential } from '../../../../import-D-EL9sQJ.js';
|
|
36
35
|
import '@expo/apple-utils/build/index.js';
|
|
37
36
|
import 'deepmerge';
|
|
38
37
|
import 'ini';
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
38
|
+
import 'fs';
|
|
39
|
+
import 'path';
|
|
41
40
|
|
|
42
41
|
class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
|
|
43
42
|
static args = {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { f as fetchKeyTestResult, K as KeyTestStatus, a as KeyTestError, n as niceError } from '../../../../useAndroidServiceAccountTestResult-DueKynFy.js';
|
|
5
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CdjaAbNX.js';
|
|
2
|
+
import { a6 as fetchKeyTestResult, a8 as KeyTestStatus, a9 as KeyTestError, a7 as niceError, aa as inviteServiceAccount, e as getInput } from '../../../../index-BtPf4vzY.js';
|
|
3
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
6
4
|
import 'node:fs';
|
|
7
5
|
import 'axios';
|
|
8
6
|
import 'crypto-js';
|
|
@@ -24,6 +22,17 @@ import 'yazl';
|
|
|
24
22
|
import 'socket.io-client';
|
|
25
23
|
import 'fullscreen-ink';
|
|
26
24
|
import 'ink';
|
|
25
|
+
import 'react/jsx-runtime';
|
|
26
|
+
import 'ink-spinner';
|
|
27
|
+
import 'string-length';
|
|
28
|
+
import 'strip-ansi';
|
|
29
|
+
import 'open';
|
|
30
|
+
import '@inkjs/ui';
|
|
31
|
+
import 'fs';
|
|
32
|
+
import 'path';
|
|
33
|
+
import 'marked';
|
|
34
|
+
import 'marked-terminal';
|
|
35
|
+
import 'qrcode';
|
|
27
36
|
|
|
28
37
|
class GameAndroidApiKeyInvite extends BaseGameAndroidCommand {
|
|
29
38
|
static args = {
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
|
+
import { a4 as enforcePolicy, a5 as revokePolicy, a2 as getGoogleStatus, n as getRenderedMarkdown } from '../../../../index-BtPf4vzY.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'ink';
|
|
5
|
+
import 'ink-spinner';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:readline';
|
|
10
|
+
import 'node:url';
|
|
11
|
+
import 'readline-sync';
|
|
12
|
+
import 'luxon';
|
|
13
|
+
import 'axios';
|
|
14
|
+
import 'isomorphic-git';
|
|
15
|
+
import '@tanstack/react-query';
|
|
16
|
+
import 'react';
|
|
17
|
+
import 'fast-glob';
|
|
18
|
+
import 'uuid';
|
|
19
|
+
import 'yazl';
|
|
20
|
+
import 'socket.io-client';
|
|
21
|
+
import 'fullscreen-ink';
|
|
22
|
+
import 'string-length';
|
|
23
|
+
import 'strip-ansi';
|
|
24
|
+
import 'open';
|
|
25
|
+
import '@inkjs/ui';
|
|
26
|
+
import 'qrcode';
|
|
27
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
28
|
+
import 'crypto-js';
|
|
29
|
+
import '@expo/apple-utils/build/index.js';
|
|
30
|
+
import 'deepmerge';
|
|
31
|
+
import 'ini';
|
|
32
|
+
import 'fs';
|
|
33
|
+
import 'path';
|
|
34
|
+
import 'marked';
|
|
35
|
+
import 'marked-terminal';
|
|
36
|
+
|
|
37
|
+
class GameAndroidApiKeyPolicy extends BaseGameAndroidCommand {
|
|
38
|
+
static args = {};
|
|
39
|
+
static description = "Gets and sets the iam.disableServiceAccountKeyCreation policy for your Google Organization";
|
|
40
|
+
static examples = [
|
|
41
|
+
"<%= config.bin %> <%= command.id %>",
|
|
42
|
+
"<%= config.bin %> <%= command.id %> --enforce",
|
|
43
|
+
"<%= config.bin %> <%= command.id %> --revoke"
|
|
44
|
+
];
|
|
45
|
+
static flags = {
|
|
46
|
+
...BaseGameAndroidCommand.flags,
|
|
47
|
+
enforce: Flags.boolean({
|
|
48
|
+
char: "e",
|
|
49
|
+
description: "Enforces the policy",
|
|
50
|
+
exclusive: ["revoke"]
|
|
51
|
+
}),
|
|
52
|
+
revoke: Flags.boolean({
|
|
53
|
+
char: "r",
|
|
54
|
+
description: "Revokes the policy",
|
|
55
|
+
exclusive: ["enforce"]
|
|
56
|
+
}),
|
|
57
|
+
waitForAuth: Flags.boolean({ char: "w", description: "Wait for Google Authentication (10 mins)." })
|
|
58
|
+
};
|
|
59
|
+
async run() {
|
|
60
|
+
const { enforce, revoke, waitForAuth } = this.flags;
|
|
61
|
+
await this.checkGoogleAuth(waitForAuth);
|
|
62
|
+
if (enforce) {
|
|
63
|
+
console.log("Enforcing policy...");
|
|
64
|
+
await enforcePolicy();
|
|
65
|
+
} else if (revoke) {
|
|
66
|
+
console.log("Revoking policy...");
|
|
67
|
+
await revokePolicy();
|
|
68
|
+
}
|
|
69
|
+
const googleStatus = await getGoogleStatus();
|
|
70
|
+
const msg = getRenderedMarkdown({
|
|
71
|
+
filename: "service-account-policy.md.ejs",
|
|
72
|
+
templateVars: {
|
|
73
|
+
needsPolicyChange: Boolean(googleStatus.needsPolicyChange),
|
|
74
|
+
orgCreatedAt: `${googleStatus.orgCreatedAt}`,
|
|
75
|
+
orgName: `${googleStatus.orgName}`,
|
|
76
|
+
orgResourceName: `${googleStatus.orgResourceName}`
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
console.log(msg);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { GameAndroidApiKeyPolicy as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render } from 'ink';
|
|
4
|
-
import { C as CredentialsType, P as Platform } from '../../../../index-
|
|
4
|
+
import { a6 as fetchKeyTestResult, C as CredentialsType, P as Platform, a7 as niceError, a8 as KeyTestStatus } from '../../../../index-BtPf4vzY.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -16,7 +16,6 @@ import '@tanstack/react-query';
|
|
|
16
16
|
import 'react';
|
|
17
17
|
import 'crypto-js';
|
|
18
18
|
import 'uuid';
|
|
19
|
-
import { f as fetchKeyTestResult, n as niceError, K as KeyTestStatus } from '../../../../useAndroidServiceAccountTestResult-DueKynFy.js';
|
|
20
19
|
import 'fast-glob';
|
|
21
20
|
import 'yazl';
|
|
22
21
|
import 'socket.io-client';
|
|
@@ -25,20 +24,20 @@ import { T as Table } from '../../../../Table-FaNgpyeq.js';
|
|
|
25
24
|
import { T as Title } from '../../../../Title-BCQtayg6.js';
|
|
26
25
|
import 'string-length';
|
|
27
26
|
import 'strip-ansi';
|
|
28
|
-
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-
|
|
27
|
+
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-CMBnYLou.js';
|
|
29
28
|
import 'open';
|
|
30
29
|
import '@inkjs/ui';
|
|
31
30
|
import 'marked';
|
|
32
31
|
import 'marked-terminal';
|
|
33
32
|
import 'qrcode';
|
|
34
|
-
import '../../../../
|
|
35
|
-
import {
|
|
36
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CdjaAbNX.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-DhAVAdiI.js';
|
|
34
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
37
35
|
import '@expo/apple-utils/build/index.js';
|
|
38
36
|
import 'deepmerge';
|
|
39
37
|
import 'ini';
|
|
40
|
-
import '
|
|
41
|
-
import '
|
|
38
|
+
import 'fs';
|
|
39
|
+
import 'path';
|
|
40
|
+
import '../../../../useProjectCredentials-BjsS28hP.js';
|
|
42
41
|
|
|
43
42
|
class GameAndroidApiKeyStatus extends BaseGameAndroidCommand {
|
|
44
43
|
static args = {};
|
|
@@ -5,9 +5,9 @@ import 'node:fs';
|
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'crypto-js';
|
|
7
7
|
import 'uuid';
|
|
8
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-
|
|
8
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BtPf4vzY.js';
|
|
9
9
|
import 'luxon';
|
|
10
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
10
|
+
import { a as getProjectCredentials } from '../../../../index-1H48f5j2.js';
|
|
11
11
|
import 'ink-spinner';
|
|
12
12
|
import 'node:crypto';
|
|
13
13
|
import 'node:path';
|
|
@@ -28,17 +28,16 @@ import '@inkjs/ui';
|
|
|
28
28
|
import 'marked';
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
|
-
import '../../../../
|
|
32
|
-
import { C as
|
|
33
|
-
import {
|
|
34
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CdjaAbNX.js';
|
|
31
|
+
import { C as CreateKeystore } from '../../../../Create-Dg9ZlwEd.js';
|
|
32
|
+
import { C as CommandGame } from '../../../../CommandGame-C-oV-hb4.js';
|
|
33
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
40
39
|
import '../../../../RunWithSpinner-DucRnFp6.js';
|
|
41
|
-
import '../../../../Command-
|
|
40
|
+
import '../../../../Command-DhAVAdiI.js';
|
|
42
41
|
|
|
43
42
|
class GameAndroidKeyStoreCreate extends BaseGameAndroidCommand {
|
|
44
43
|
static args = {};
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
6
|
-
import {
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-1H48f5j2.js';
|
|
6
|
+
import { d as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-BtPf4vzY.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -29,14 +29,13 @@ import 'marked';
|
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
31
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
32
|
-
import '../../../../
|
|
33
|
-
import {
|
|
34
|
-
import { e as exportCredential } from '../../../../export-B5Yfd9vw.js';
|
|
32
|
+
import { C as Command } from '../../../../Command-DhAVAdiI.js';
|
|
33
|
+
import { e as exportCredential } from '../../../../export-Bd552LBe.js';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
40
39
|
|
|
41
40
|
class GameAndroidKeyStoreExport extends BaseGameCommand {
|
|
42
41
|
static args = {
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
6
|
-
import {
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-1H48f5j2.js';
|
|
6
|
+
import { d as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-BtPf4vzY.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -28,17 +28,16 @@ import '@inkjs/ui';
|
|
|
28
28
|
import 'marked';
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
|
-
import '../../../../
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CdjaAbNX.js';
|
|
31
|
+
import { I as ImportKeystore } from '../../../../Import-BFNNkN-I.js';
|
|
32
|
+
import { C as CommandGame } from '../../../../CommandGame-C-oV-hb4.js';
|
|
33
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DUDYisYm.js';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '../../../../import-
|
|
41
|
-
import '../../../../Command-
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
39
|
+
import '../../../../import-D-EL9sQJ.js';
|
|
40
|
+
import '../../../../Command-DhAVAdiI.js';
|
|
42
41
|
|
|
43
42
|
class GameAndroidKeyStoreImport extends BaseGameCommand {
|
|
44
43
|
static args = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { render } from 'ink';
|
|
3
|
-
import {
|
|
3
|
+
import { d as BaseGameCommand, C as CredentialsType, P as Platform } from '../../../../index-BtPf4vzY.js';
|
|
4
4
|
import 'ink-spinner';
|
|
5
5
|
import 'node:crypto';
|
|
6
6
|
import 'node:fs';
|
|
@@ -22,20 +22,19 @@ import 'socket.io-client';
|
|
|
22
22
|
import 'fullscreen-ink';
|
|
23
23
|
import 'string-length';
|
|
24
24
|
import 'strip-ansi';
|
|
25
|
-
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-
|
|
25
|
+
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-CMBnYLou.js';
|
|
26
26
|
import 'open';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
28
|
import 'marked';
|
|
29
29
|
import 'marked-terminal';
|
|
30
30
|
import 'qrcode';
|
|
31
|
-
import '../../../../
|
|
32
|
-
import { C as Command } from '../../../../Command-VWMnGslo.js';
|
|
31
|
+
import { C as Command } from '../../../../Command-DhAVAdiI.js';
|
|
33
32
|
import '@expo/apple-utils/build/index.js';
|
|
34
33
|
import 'deepmerge';
|
|
35
34
|
import 'ini';
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '../../../../
|
|
35
|
+
import 'fs';
|
|
36
|
+
import 'path';
|
|
37
|
+
import '../../../../useProjectCredentials-BjsS28hP.js';
|
|
39
38
|
import '../../../../Table-FaNgpyeq.js';
|
|
40
39
|
import '../../../../Title-BCQtayg6.js';
|
|
41
40
|
|