code-share-types 1.0.0 → 1.2.0
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/dist/rest-api/CodeExecutionResult.d.ts +1 -0
- package/dist/socket/executor/ExecutorCodeResult.d.ts +1 -0
- package/dist/socket/executor/ExecutorCodeResult.js +1 -1
- package/dist/socket/executor/ExecutorInformation.d.ts +8 -0
- package/dist/socket/executor/ExecutorInformation.js +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ declare const CodeExecutionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
6
6
|
signal: z.ZodNullable<z.ZodString>;
|
|
7
7
|
stdout: z.ZodString;
|
|
8
8
|
stderr: z.ZodString;
|
|
9
|
+
output: z.ZodString;
|
|
9
10
|
}, z.core.$strip>;
|
|
10
11
|
}, z.core.$strip>, z.ZodObject<{
|
|
11
12
|
status: z.ZodLiteral<"TIMEOUT">;
|
|
@@ -4,6 +4,7 @@ declare const ExecutorCodeResultSchema: z.ZodObject<{
|
|
|
4
4
|
signal: z.ZodNullable<z.ZodString>;
|
|
5
5
|
stdout: z.ZodString;
|
|
6
6
|
stderr: z.ZodString;
|
|
7
|
+
output: z.ZodString;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
type ExecutorCodeResult = z.infer<typeof ExecutorCodeResultSchema>;
|
|
9
10
|
export type { ExecutorCodeResult };
|
|
@@ -9,6 +9,7 @@ type CodeExecutionStatistics = z.infer<typeof CodeExecutionStatisticsSchema>;
|
|
|
9
9
|
export type { CodeExecutionStatistics };
|
|
10
10
|
export { CodeExecutionStatisticsSchema };
|
|
11
11
|
declare const EXECUTOR_STATUS: {
|
|
12
|
+
readonly versions_incompatible: "VERSIONS_INCOMPATIBLE";
|
|
12
13
|
readonly install_waiting: "INSTALL_UNINITIALISED";
|
|
13
14
|
readonly install_failed: "INSTALL_FAILED";
|
|
14
15
|
readonly install_inprogress: "INSTALL_INPROGRESS";
|
|
@@ -18,9 +19,11 @@ declare const EXECUTOR_STATUS: {
|
|
|
18
19
|
readonly tests_inprogress: "TESTS_INPROGRESS";
|
|
19
20
|
readonly tests_pending: "TESTS_PENDING";
|
|
20
21
|
readonly tests_passed: "TESTS_PASSED";
|
|
22
|
+
readonly unknown_failure: "UNKNOWN_FAILURE";
|
|
21
23
|
readonly unknown: "UNKNOWN";
|
|
22
24
|
};
|
|
23
25
|
declare const ExecutorStatusSchema: z.ZodEnum<{
|
|
26
|
+
VERSIONS_INCOMPATIBLE: "VERSIONS_INCOMPATIBLE";
|
|
24
27
|
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
25
28
|
INSTALL_FAILED: "INSTALL_FAILED";
|
|
26
29
|
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
@@ -30,6 +33,7 @@ declare const ExecutorStatusSchema: z.ZodEnum<{
|
|
|
30
33
|
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
31
34
|
TESTS_PENDING: "TESTS_PENDING";
|
|
32
35
|
TESTS_PASSED: "TESTS_PASSED";
|
|
36
|
+
UNKNOWN_FAILURE: "UNKNOWN_FAILURE";
|
|
33
37
|
UNKNOWN: "UNKNOWN";
|
|
34
38
|
}>;
|
|
35
39
|
type ExecutorStatus = z.infer<typeof ExecutorStatusSchema>;
|
|
@@ -46,6 +50,7 @@ export { ExecutorTypesVersionCompatabilitySchema };
|
|
|
46
50
|
declare const ExecutorInformationSchema: z.ZodObject<{
|
|
47
51
|
socket_id: z.ZodString;
|
|
48
52
|
status: z.ZodEnum<{
|
|
53
|
+
VERSIONS_INCOMPATIBLE: "VERSIONS_INCOMPATIBLE";
|
|
49
54
|
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
50
55
|
INSTALL_FAILED: "INSTALL_FAILED";
|
|
51
56
|
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
@@ -55,6 +60,7 @@ declare const ExecutorInformationSchema: z.ZodObject<{
|
|
|
55
60
|
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
56
61
|
TESTS_PENDING: "TESTS_PENDING";
|
|
57
62
|
TESTS_PASSED: "TESTS_PASSED";
|
|
63
|
+
UNKNOWN_FAILURE: "UNKNOWN_FAILURE";
|
|
58
64
|
UNKNOWN: "UNKNOWN";
|
|
59
65
|
}>;
|
|
60
66
|
ready: z.ZodBoolean;
|
|
@@ -104,6 +110,7 @@ export { ExecutorInformationSchema };
|
|
|
104
110
|
declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
|
|
105
111
|
socket_id: z.ZodString;
|
|
106
112
|
status: z.ZodEnum<{
|
|
113
|
+
VERSIONS_INCOMPATIBLE: "VERSIONS_INCOMPATIBLE";
|
|
107
114
|
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
108
115
|
INSTALL_FAILED: "INSTALL_FAILED";
|
|
109
116
|
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
@@ -113,6 +120,7 @@ declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
|
|
|
113
120
|
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
114
121
|
TESTS_PENDING: "TESTS_PENDING";
|
|
115
122
|
TESTS_PASSED: "TESTS_PASSED";
|
|
123
|
+
UNKNOWN_FAILURE: "UNKNOWN_FAILURE";
|
|
116
124
|
UNKNOWN: "UNKNOWN";
|
|
117
125
|
}>;
|
|
118
126
|
ready: z.ZodBoolean;
|
|
@@ -9,6 +9,7 @@ const CodeExecutionStatisticsSchema = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
export { CodeExecutionStatisticsSchema };
|
|
11
11
|
const EXECUTOR_STATUS = {
|
|
12
|
+
versions_incompatible: 'VERSIONS_INCOMPATIBLE',
|
|
12
13
|
install_waiting: 'INSTALL_UNINITIALISED',
|
|
13
14
|
install_failed: 'INSTALL_FAILED',
|
|
14
15
|
install_inprogress: 'INSTALL_INPROGRESS',
|
|
@@ -18,6 +19,7 @@ const EXECUTOR_STATUS = {
|
|
|
18
19
|
tests_inprogress: 'TESTS_INPROGRESS',
|
|
19
20
|
tests_pending: 'TESTS_PENDING',
|
|
20
21
|
tests_passed: 'TESTS_PASSED',
|
|
22
|
+
unknown_failure: 'UNKNOWN_FAILURE',
|
|
21
23
|
unknown: 'UNKNOWN',
|
|
22
24
|
};
|
|
23
25
|
const ExecutorStatusSchema = z.enum(Object.values(EXECUTOR_STATUS));
|