code-share-types 0.10.0 → 0.11.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.
|
@@ -35,9 +35,35 @@ declare const ExecutorStatusSchema: z.ZodEnum<{
|
|
|
35
35
|
type ExecutorStatus = z.infer<typeof ExecutorStatusSchema>;
|
|
36
36
|
export type { ExecutorStatus };
|
|
37
37
|
export { EXECUTOR_STATUS, ExecutorStatusSchema };
|
|
38
|
+
declare const ExecutorTypesVersionCompatabilitySchema: z.ZodObject<{
|
|
39
|
+
version_server: z.ZodString;
|
|
40
|
+
version_client: z.ZodOptional<z.ZodString>;
|
|
41
|
+
is_compatible: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
type ExecutorTypesVersionCompatability = z.infer<typeof ExecutorTypesVersionCompatabilitySchema>;
|
|
44
|
+
export type { ExecutorTypesVersionCompatability };
|
|
45
|
+
export { ExecutorTypesVersionCompatabilitySchema };
|
|
38
46
|
declare const ExecutorInformationSchema: z.ZodObject<{
|
|
39
47
|
socket_id: z.ZodString;
|
|
40
|
-
|
|
48
|
+
status: z.ZodEnum<{
|
|
49
|
+
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
50
|
+
INSTALL_FAILED: "INSTALL_FAILED";
|
|
51
|
+
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
52
|
+
INSTALL_REQUESTED: "INSTALL_REQUESTED";
|
|
53
|
+
TESTS_WAITING: "TESTS_WAITING";
|
|
54
|
+
TESTS_FAILED: "TESTS_FAILED";
|
|
55
|
+
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
56
|
+
TESTS_PENDING: "TESTS_PENDING";
|
|
57
|
+
TESTS_PASSED: "TESTS_PASSED";
|
|
58
|
+
UNKNOWN: "UNKNOWN";
|
|
59
|
+
}>;
|
|
60
|
+
ready: z.ZodBoolean;
|
|
61
|
+
failed: z.ZodBoolean;
|
|
62
|
+
types_version_compatability: z.ZodObject<{
|
|
63
|
+
version_server: z.ZodString;
|
|
64
|
+
version_client: z.ZodOptional<z.ZodString>;
|
|
65
|
+
is_compatible: z.ZodBoolean;
|
|
66
|
+
}, z.core.$strip>;
|
|
41
67
|
package_install_statuses: z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
42
68
|
runtime: z.ZodString;
|
|
43
69
|
version: z.ZodString;
|
|
@@ -57,19 +83,6 @@ declare const ExecutorInformationSchema: z.ZodObject<{
|
|
|
57
83
|
PASSED: "PASSED";
|
|
58
84
|
FAILED: "FAILED";
|
|
59
85
|
}>], null>>;
|
|
60
|
-
executor_status: z.ZodEnum<{
|
|
61
|
-
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
62
|
-
INSTALL_FAILED: "INSTALL_FAILED";
|
|
63
|
-
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
64
|
-
INSTALL_REQUESTED: "INSTALL_REQUESTED";
|
|
65
|
-
TESTS_WAITING: "TESTS_WAITING";
|
|
66
|
-
TESTS_FAILED: "TESTS_FAILED";
|
|
67
|
-
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
68
|
-
TESTS_PENDING: "TESTS_PENDING";
|
|
69
|
-
TESTS_PASSED: "TESTS_PASSED";
|
|
70
|
-
UNKNOWN: "UNKNOWN";
|
|
71
|
-
}>;
|
|
72
|
-
executor_ready: z.ZodBoolean;
|
|
73
86
|
execution_statistics: z.ZodObject<{
|
|
74
87
|
global: z.ZodObject<{
|
|
75
88
|
total: z.ZodNumber;
|
|
@@ -90,7 +103,25 @@ export type { ExecutorInformation };
|
|
|
90
103
|
export { ExecutorInformationSchema };
|
|
91
104
|
declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
|
|
92
105
|
socket_id: z.ZodString;
|
|
93
|
-
|
|
106
|
+
status: z.ZodEnum<{
|
|
107
|
+
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
108
|
+
INSTALL_FAILED: "INSTALL_FAILED";
|
|
109
|
+
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
110
|
+
INSTALL_REQUESTED: "INSTALL_REQUESTED";
|
|
111
|
+
TESTS_WAITING: "TESTS_WAITING";
|
|
112
|
+
TESTS_FAILED: "TESTS_FAILED";
|
|
113
|
+
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
114
|
+
TESTS_PENDING: "TESTS_PENDING";
|
|
115
|
+
TESTS_PASSED: "TESTS_PASSED";
|
|
116
|
+
UNKNOWN: "UNKNOWN";
|
|
117
|
+
}>;
|
|
118
|
+
ready: z.ZodBoolean;
|
|
119
|
+
failed: z.ZodBoolean;
|
|
120
|
+
types_version_compatability: z.ZodObject<{
|
|
121
|
+
version_server: z.ZodString;
|
|
122
|
+
version_client: z.ZodOptional<z.ZodString>;
|
|
123
|
+
is_compatible: z.ZodBoolean;
|
|
124
|
+
}, z.core.$strip>;
|
|
94
125
|
package_install_statuses: z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
95
126
|
runtime: z.ZodString;
|
|
96
127
|
version: z.ZodString;
|
|
@@ -110,19 +141,6 @@ declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
|
|
|
110
141
|
PASSED: "PASSED";
|
|
111
142
|
FAILED: "FAILED";
|
|
112
143
|
}>], null>>;
|
|
113
|
-
executor_status: z.ZodEnum<{
|
|
114
|
-
INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
|
|
115
|
-
INSTALL_FAILED: "INSTALL_FAILED";
|
|
116
|
-
INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
|
|
117
|
-
INSTALL_REQUESTED: "INSTALL_REQUESTED";
|
|
118
|
-
TESTS_WAITING: "TESTS_WAITING";
|
|
119
|
-
TESTS_FAILED: "TESTS_FAILED";
|
|
120
|
-
TESTS_INPROGRESS: "TESTS_INPROGRESS";
|
|
121
|
-
TESTS_PENDING: "TESTS_PENDING";
|
|
122
|
-
TESTS_PASSED: "TESTS_PASSED";
|
|
123
|
-
UNKNOWN: "UNKNOWN";
|
|
124
|
-
}>;
|
|
125
|
-
executor_ready: z.ZodBoolean;
|
|
126
144
|
execution_statistics: z.ZodObject<{
|
|
127
145
|
global: z.ZodObject<{
|
|
128
146
|
total: z.ZodNumber;
|
|
@@ -22,13 +22,20 @@ const EXECUTOR_STATUS = {
|
|
|
22
22
|
};
|
|
23
23
|
const ExecutorStatusSchema = z.enum(Object.values(EXECUTOR_STATUS));
|
|
24
24
|
export { EXECUTOR_STATUS, ExecutorStatusSchema };
|
|
25
|
+
const ExecutorTypesVersionCompatabilitySchema = z.object({
|
|
26
|
+
version_server: z.string(),
|
|
27
|
+
version_client: z.string().optional(),
|
|
28
|
+
is_compatible: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
export { ExecutorTypesVersionCompatabilitySchema };
|
|
25
31
|
const ExecutorInformationSchema = z.object({
|
|
26
32
|
socket_id: z.string(),
|
|
27
|
-
|
|
33
|
+
status: ExecutorStatusSchema,
|
|
34
|
+
ready: z.boolean(),
|
|
35
|
+
failed: z.boolean(),
|
|
36
|
+
types_version_compatability: ExecutorTypesVersionCompatabilitySchema,
|
|
28
37
|
package_install_statuses: PackageInstallStatusMapSchema,
|
|
29
38
|
language_test_statuses: LanguageExecutorDefinitionTestStatusMapSchema,
|
|
30
|
-
executor_status: ExecutorStatusSchema,
|
|
31
|
-
executor_ready: z.boolean(),
|
|
32
39
|
execution_statistics: z.object({
|
|
33
40
|
global: CodeExecutionStatisticsSchema,
|
|
34
41
|
language_stats: z.array(z.tuple([z.string(), CodeExecutionStatisticsSchema])),
|