code-share-types 0.9.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.
@@ -17,13 +17,13 @@ declare const LanguageExecutorDefinitionSchema: z.ZodObject<{
17
17
  export type LanguageExecutorDefinition = z.infer<typeof LanguageExecutorDefinitionSchema>;
18
18
  export { LanguageExecutorDefinitionSchema };
19
19
  declare const LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS: {
20
- readonly waiting: "WAITING";
20
+ readonly pending: "PENDING";
21
21
  readonly requested: "REQUESTED";
22
22
  readonly passed: "PASSED";
23
23
  readonly failed: "FAILED";
24
24
  };
25
25
  declare const LanguageExecutorDefinitionTestStatusSchema: z.ZodEnum<{
26
- WAITING: "WAITING";
26
+ PENDING: "PENDING";
27
27
  REQUESTED: "REQUESTED";
28
28
  PASSED: "PASSED";
29
29
  FAILED: "FAILED";
@@ -36,7 +36,7 @@ declare const LanguageExecutorDefinitionTestStatusMapSchema: z.ZodArray<z.ZodTup
36
36
  language: z.ZodString;
37
37
  version: z.ZodString;
38
38
  }, z.core.$strip>, z.ZodEnum<{
39
- WAITING: "WAITING";
39
+ PENDING: "PENDING";
40
40
  REQUESTED: "REQUESTED";
41
41
  PASSED: "PASSED";
42
42
  FAILED: "FAILED";
package/dist/Language.js CHANGED
@@ -17,7 +17,7 @@ const LanguageExecutorDefinitionSchema = z.object({
17
17
  });
18
18
  export { LanguageExecutorDefinitionSchema };
19
19
  const LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS = {
20
- waiting: "WAITING",
20
+ pending: "PENDING",
21
21
  requested: "REQUESTED",
22
22
  passed: "PASSED",
23
23
  failed: "FAILED",
@@ -8,9 +8,62 @@ declare const CodeExecutionStatisticsSchema: z.ZodObject<{
8
8
  type CodeExecutionStatistics = z.infer<typeof CodeExecutionStatisticsSchema>;
9
9
  export type { CodeExecutionStatistics };
10
10
  export { CodeExecutionStatisticsSchema };
11
+ declare const EXECUTOR_STATUS: {
12
+ readonly install_waiting: "INSTALL_UNINITIALISED";
13
+ readonly install_failed: "INSTALL_FAILED";
14
+ readonly install_inprogress: "INSTALL_INPROGRESS";
15
+ readonly install_requested: "INSTALL_REQUESTED";
16
+ readonly tests_waiting: "TESTS_WAITING";
17
+ readonly tests_failed: "TESTS_FAILED";
18
+ readonly tests_inprogress: "TESTS_INPROGRESS";
19
+ readonly tests_pending: "TESTS_PENDING";
20
+ readonly tests_passed: "TESTS_PASSED";
21
+ readonly unknown: "UNKNOWN";
22
+ };
23
+ declare const ExecutorStatusSchema: z.ZodEnum<{
24
+ INSTALL_UNINITIALISED: "INSTALL_UNINITIALISED";
25
+ INSTALL_FAILED: "INSTALL_FAILED";
26
+ INSTALL_INPROGRESS: "INSTALL_INPROGRESS";
27
+ INSTALL_REQUESTED: "INSTALL_REQUESTED";
28
+ TESTS_WAITING: "TESTS_WAITING";
29
+ TESTS_FAILED: "TESTS_FAILED";
30
+ TESTS_INPROGRESS: "TESTS_INPROGRESS";
31
+ TESTS_PENDING: "TESTS_PENDING";
32
+ TESTS_PASSED: "TESTS_PASSED";
33
+ UNKNOWN: "UNKNOWN";
34
+ }>;
35
+ type ExecutorStatus = z.infer<typeof ExecutorStatusSchema>;
36
+ export type { ExecutorStatus };
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 };
11
46
  declare const ExecutorInformationSchema: z.ZodObject<{
12
47
  socket_id: z.ZodString;
13
- types_version_compatible: z.ZodBoolean;
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>;
14
67
  package_install_statuses: z.ZodArray<z.ZodTuple<[z.ZodObject<{
15
68
  runtime: z.ZodString;
16
69
  version: z.ZodString;
@@ -25,12 +78,11 @@ declare const ExecutorInformationSchema: z.ZodObject<{
25
78
  language: z.ZodString;
26
79
  version: z.ZodString;
27
80
  }, z.core.$strip>, z.ZodEnum<{
28
- WAITING: "WAITING";
81
+ PENDING: "PENDING";
29
82
  REQUESTED: "REQUESTED";
30
83
  PASSED: "PASSED";
31
84
  FAILED: "FAILED";
32
85
  }>], null>>;
33
- languages_initialised: z.ZodBoolean;
34
86
  execution_statistics: z.ZodObject<{
35
87
  global: z.ZodObject<{
36
88
  total: z.ZodNumber;
@@ -51,7 +103,25 @@ export type { ExecutorInformation };
51
103
  export { ExecutorInformationSchema };
52
104
  declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
53
105
  socket_id: z.ZodString;
54
- types_version_compatible: z.ZodBoolean;
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>;
55
125
  package_install_statuses: z.ZodArray<z.ZodTuple<[z.ZodObject<{
56
126
  runtime: z.ZodString;
57
127
  version: z.ZodString;
@@ -66,12 +136,11 @@ declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
66
136
  language: z.ZodString;
67
137
  version: z.ZodString;
68
138
  }, z.core.$strip>, z.ZodEnum<{
69
- WAITING: "WAITING";
139
+ PENDING: "PENDING";
70
140
  REQUESTED: "REQUESTED";
71
141
  PASSED: "PASSED";
72
142
  FAILED: "FAILED";
73
143
  }>], null>>;
74
- languages_initialised: z.ZodBoolean;
75
144
  execution_statistics: z.ZodObject<{
76
145
  global: z.ZodObject<{
77
146
  total: z.ZodNumber;
@@ -8,12 +8,34 @@ const CodeExecutionStatisticsSchema = z.object({
8
8
  max_ms: z.number(),
9
9
  });
10
10
  export { CodeExecutionStatisticsSchema };
11
+ const EXECUTOR_STATUS = {
12
+ install_waiting: 'INSTALL_UNINITIALISED',
13
+ install_failed: 'INSTALL_FAILED',
14
+ install_inprogress: 'INSTALL_INPROGRESS',
15
+ install_requested: 'INSTALL_REQUESTED',
16
+ tests_waiting: 'TESTS_WAITING',
17
+ tests_failed: 'TESTS_FAILED',
18
+ tests_inprogress: 'TESTS_INPROGRESS',
19
+ tests_pending: 'TESTS_PENDING',
20
+ tests_passed: 'TESTS_PASSED',
21
+ unknown: 'UNKNOWN',
22
+ };
23
+ const ExecutorStatusSchema = z.enum(Object.values(EXECUTOR_STATUS));
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 };
11
31
  const ExecutorInformationSchema = z.object({
12
32
  socket_id: z.string(),
13
- types_version_compatible: z.boolean(),
33
+ status: ExecutorStatusSchema,
34
+ ready: z.boolean(),
35
+ failed: z.boolean(),
36
+ types_version_compatability: ExecutorTypesVersionCompatabilitySchema,
14
37
  package_install_statuses: PackageInstallStatusMapSchema,
15
38
  language_test_statuses: LanguageExecutorDefinitionTestStatusMapSchema,
16
- languages_initialised: z.boolean(),
17
39
  execution_statistics: z.object({
18
40
  global: CodeExecutionStatisticsSchema,
19
41
  language_stats: z.array(z.tuple([z.string(), CodeExecutionStatisticsSchema])),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-share-types",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],