shipthis 0.1.23 → 0.1.25
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 +25 -16
- package/docs/assets/ship-outputx0.8.gif +0 -0
- package/package.json +1 -1
- package/bin/readme.sh +0 -15
- package/dist/AppleBundleIdDetails-C9C5WSPR.js +0 -76
- package/dist/Command-BQCJ9Wf-.js +0 -28
- package/dist/CommandGame-CkGqTno0.js +0 -9
- package/dist/Create-t_E231OA.js +0 -59
- package/dist/Import-Ljz1gxXd.js +0 -110
- package/dist/JobProgress-D9tHgBvi.js +0 -121
- package/dist/JobStatusTable-DmI7qCHc.js +0 -203
- package/dist/NextSteps-CK9zHOCt.js +0 -18
- package/dist/ProgressSpinner-6pw1T8Iw.js +0 -16
- package/dist/ProjectCredentialsTable-CTkP1mvy.js +0 -37
- package/dist/RunWithSpinner-BVXNWGD3.js +0 -27
- package/dist/StatusTable-Dm5St4g-.js +0 -33
- package/dist/Table-CvM6pccN.js +0 -101
- package/dist/Title-BCQtayg6.js +0 -6
- package/dist/UserCredentialsTable-DhtM_iTG.js +0 -82
- package/dist/baseAppleCommand-IGl6KTvv.js +0 -10
- package/dist/baseGameAndroidCommand-DFn4zMvq.js +0 -43
- package/dist/commands/apple/apiKey/create.js +0 -103
- package/dist/commands/apple/apiKey/export.js +0 -81
- package/dist/commands/apple/apiKey/import.js +0 -85
- package/dist/commands/apple/apiKey/status.js +0 -122
- package/dist/commands/apple/certificate/create.js +0 -133
- package/dist/commands/apple/certificate/export.js +0 -81
- package/dist/commands/apple/certificate/import.js +0 -85
- package/dist/commands/apple/certificate/status.js +0 -130
- package/dist/commands/apple/login.js +0 -76
- package/dist/commands/apple/status.js +0 -79
- package/dist/commands/dashboard.js +0 -38
- package/dist/commands/game/android/apiKey/connect.js +0 -74
- package/dist/commands/game/android/apiKey/create.js +0 -74
- package/dist/commands/game/android/apiKey/export.js +0 -84
- package/dist/commands/game/android/apiKey/import.js +0 -93
- package/dist/commands/game/android/apiKey/invite.js +0 -81
- package/dist/commands/game/android/apiKey/status.js +0 -87
- package/dist/commands/game/android/keyStore/create.js +0 -69
- package/dist/commands/game/android/keyStore/export.js +0 -83
- package/dist/commands/game/android/keyStore/import.js +0 -112
- package/dist/commands/game/android/keyStore/status.js +0 -70
- package/dist/commands/game/android/status.js +0 -84
- package/dist/commands/game/build/download.js +0 -80
- package/dist/commands/game/build/list.js +0 -94
- package/dist/commands/game/create.js +0 -67
- package/dist/commands/game/details.js +0 -113
- package/dist/commands/game/export.js +0 -58
- package/dist/commands/game/ios/app/addTester.js +0 -124
- package/dist/commands/game/ios/app/create.js +0 -117
- package/dist/commands/game/ios/app/status.js +0 -66
- package/dist/commands/game/ios/app/sync.js +0 -95
- package/dist/commands/game/ios/profile/create.js +0 -129
- package/dist/commands/game/ios/profile/export.js +0 -83
- package/dist/commands/game/ios/profile/import.js +0 -92
- package/dist/commands/game/ios/profile/status.js +0 -139
- package/dist/commands/game/ios/status.js +0 -92
- package/dist/commands/game/ios/wizard.js +0 -153
- package/dist/commands/game/job/list.js +0 -91
- package/dist/commands/game/job/status.js +0 -91
- package/dist/commands/game/list.js +0 -83
- package/dist/commands/game/ship.js +0 -205
- package/dist/commands/game/status.js +0 -114
- package/dist/commands/game/wizard.js +0 -686
- package/dist/commands/internal/fastlane.js +0 -74
- package/dist/commands/internal/readme.js +0 -937
- package/dist/commands/login.js +0 -92
- package/dist/commands/status.js +0 -76
- package/dist/export-CVs_xoDN.js +0 -36
- package/dist/git-DREGq-jc.js +0 -32
- package/dist/import-Ch5O7xfN.js +0 -47
- package/dist/index-BB00V5oF.js +0 -136
- package/dist/index-CIa2EDQ6.js +0 -24
- package/dist/index-DkNQs11R.js +0 -711
- package/dist/index-DrcGhlrc.js +0 -138
- package/dist/index-DyOv-ge5.js +0 -125
- package/dist/index-vMXsdSCy.js +0 -208
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/upload-CRE2nVdd.js +0 -60
- package/dist/useAndroidServiceAccountTestResult-DcYDam-p.js +0 -52
- package/dist/useAppleApp-B16WbUxJ.js +0 -32
- package/dist/useAppleBundleId-DobPATan.js +0 -64
- package/dist/useJobWatching-BZSUa8E-.js +0 -45
- package/dist/useProjectCredentials-Btnr7WK3.js +0 -54
- package/dist/useWebSocket-ByuNoqRw.js +0 -36
- package/dist/utils/help.js +0 -14
- package/npm-shrinkwrap.json +0 -14011
- package/oclif.manifest.json +0 -2275
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { u as useJob } from './index-vMXsdSCy.js';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { u as useWebSocket } from './useWebSocket-ByuNoqRw.js';
|
|
4
|
-
import { F as castJobDates, H as castObjectDates } from './index-DkNQs11R.js';
|
|
5
|
-
|
|
6
|
-
function useJobWatching({ projectId, jobId, isWatching, onJobUpdate }) {
|
|
7
|
-
const [websocketJob, setWebsocketJob] = useState(null);
|
|
8
|
-
const [mostRecentLog, setMostRecentLog] = useState(null);
|
|
9
|
-
const jobStatusListener = {
|
|
10
|
-
getPattern: () => [`project.${projectId}:job:created`, `project.${projectId}:job:updated`],
|
|
11
|
-
eventHandler: async (pattern, rawJob) => {
|
|
12
|
-
if (rawJob.id !== jobId) return;
|
|
13
|
-
const job2 = castJobDates(rawJob);
|
|
14
|
-
setWebsocketJob(job2);
|
|
15
|
-
if (onJobUpdate) onJobUpdate(job2);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const jobProgressListener = {
|
|
19
|
-
getPattern: () => `project.${projectId}:job.${jobId}:log`,
|
|
20
|
-
eventHandler: async (pattern, rawLogEntry) => {
|
|
21
|
-
const logEntry = castObjectDates(rawLogEntry, ["sentAt", "createdAt"]);
|
|
22
|
-
setMostRecentLog(logEntry);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
useWebSocket(isWatching ? [jobStatusListener, jobProgressListener] : []);
|
|
26
|
-
const { isLoading, data: job } = useJob({
|
|
27
|
-
projectId,
|
|
28
|
-
jobId
|
|
29
|
-
});
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
setWebsocketJob(null);
|
|
32
|
-
}, [jobId, projectId, isWatching, job]);
|
|
33
|
-
const fetchedJob = job ? job : null;
|
|
34
|
-
const data = websocketJob ? websocketJob : fetchedJob;
|
|
35
|
-
const progress = mostRecentLog?.progress || null;
|
|
36
|
-
const stage = mostRecentLog?.stage || null;
|
|
37
|
-
return {
|
|
38
|
-
isLoading,
|
|
39
|
-
data,
|
|
40
|
-
progress,
|
|
41
|
-
stage
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { useJobWatching as u };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { c as cacheKeys } from './useAndroidServiceAccountTestResult-DcYDam-p.js';
|
|
4
|
-
import { b as getShortDate, p as getAuthedHeaders, q as API_URL, L as castArrayObjectDates } from './index-DkNQs11R.js';
|
|
5
|
-
import { g as getShortUUID } from './index-BB00V5oF.js';
|
|
6
|
-
|
|
7
|
-
async function queryProjectCredentials({
|
|
8
|
-
projectId,
|
|
9
|
-
...pageAndSortParams
|
|
10
|
-
}) {
|
|
11
|
-
try {
|
|
12
|
-
const headers = getAuthedHeaders();
|
|
13
|
-
const url = `${API_URL}/projects/${projectId}/credentials`;
|
|
14
|
-
const response = await axios.get(url, { headers, params: pageAndSortParams });
|
|
15
|
-
return {
|
|
16
|
-
...response.data,
|
|
17
|
-
data: castArrayObjectDates(response.data.data)
|
|
18
|
-
};
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.warn("queryProjectCredentials Error", error);
|
|
21
|
-
throw error;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function getProjectCredentialSummary(credential) {
|
|
25
|
-
return {
|
|
26
|
-
id: getShortUUID(credential.id),
|
|
27
|
-
type: credential.type,
|
|
28
|
-
serial: credential.serialNumber.substring(0, 30) + (credential.serialNumber.length > 30 ? "\u2026" : ""),
|
|
29
|
-
isActive: credential.isActive,
|
|
30
|
-
createdAt: getShortDate(credential.createdAt)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const useProjectCredentials = ({
|
|
34
|
-
platform,
|
|
35
|
-
type,
|
|
36
|
-
...fetchProps
|
|
37
|
-
}) => {
|
|
38
|
-
const queryResult = useQuery({
|
|
39
|
-
queryKey: cacheKeys.projectCredentials(fetchProps),
|
|
40
|
-
queryFn: async () => queryProjectCredentials(fetchProps),
|
|
41
|
-
select: (data) => {
|
|
42
|
-
if (!(platform || type)) return data;
|
|
43
|
-
return {
|
|
44
|
-
...data,
|
|
45
|
-
data: data.data.filter((credential) => {
|
|
46
|
-
return (!platform || credential.platform === platform) && (!type || credential.type === type);
|
|
47
|
-
})
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
return queryResult;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export { getProjectCredentialSummary as g, useProjectCredentials as u };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import { io } from 'socket.io-client';
|
|
3
|
-
import { Q as getAuthToken, R as WS_URL } from './index-DkNQs11R.js';
|
|
4
|
-
|
|
5
|
-
function useWebSocket(listeners = []) {
|
|
6
|
-
const log = () => {
|
|
7
|
-
};
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
if (listeners.length === 0) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const token = getAuthToken();
|
|
13
|
-
const socket = io(WS_URL, {
|
|
14
|
-
auth: { token },
|
|
15
|
-
forceNew: true
|
|
16
|
-
});
|
|
17
|
-
socket.on("connect", () => log());
|
|
18
|
-
for (const listener of listeners) {
|
|
19
|
-
const pattern = listener.getPattern();
|
|
20
|
-
const bindSocket = (pattern2) => {
|
|
21
|
-
const boundListener = listener.eventHandler.bind(listener, pattern2);
|
|
22
|
-
socket.on(pattern2, boundListener);
|
|
23
|
-
};
|
|
24
|
-
if (Array.isArray(pattern)) {
|
|
25
|
-
pattern.forEach(bindSocket);
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
bindSocket(pattern);
|
|
29
|
-
}
|
|
30
|
-
return () => {
|
|
31
|
-
socket.disconnect();
|
|
32
|
-
};
|
|
33
|
-
}, []);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { useWebSocket as u };
|
package/dist/utils/help.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Help } from '@oclif/core';
|
|
2
|
-
|
|
3
|
-
class CustomHelp extends Help {
|
|
4
|
-
formatTopics(topics) {
|
|
5
|
-
const publicTopics = topics.filter((t) => t.name !== "internal");
|
|
6
|
-
return super.formatTopics(publicTopics);
|
|
7
|
-
}
|
|
8
|
-
// formatCommand is protected, so we need to override it to make it public
|
|
9
|
-
exposedFormatCommand(command) {
|
|
10
|
-
return super.formatCommand(command);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { CustomHelp as default };
|