code-share-types 0.3.0 → 0.5.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.
@@ -16,6 +16,34 @@ declare const LanguageExecutorDefinitionSchema: z.ZodObject<{
16
16
  }, z.core.$strip>;
17
17
  export type LanguageExecutorDefinition = z.infer<typeof LanguageExecutorDefinitionSchema>;
18
18
  export { LanguageExecutorDefinitionSchema };
19
+ declare const LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS: {
20
+ readonly waiting: "WAITING";
21
+ readonly requested: "REQUESTED";
22
+ readonly passed: "PASSED";
23
+ readonly failed: "FAILED";
24
+ };
25
+ declare const LanguageExecutorDefinitionTestStatusSchema: z.ZodEnum<{
26
+ WAITING: "WAITING";
27
+ REQUESTED: "REQUESTED";
28
+ PASSED: "PASSED";
29
+ FAILED: "FAILED";
30
+ }>;
31
+ type LanguageExecutorDefinitionTestStatus = z.infer<typeof LanguageExecutorDefinitionTestStatusSchema>;
32
+ export type { LanguageExecutorDefinitionTestStatus };
33
+ export { LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS, LanguageExecutorDefinitionTestStatusSchema };
34
+ declare const LanguageExecutorDefinitionTestStatusMapSchema: z.ZodArray<z.ZodTuple<[z.ZodObject<{
35
+ runtime: z.ZodString;
36
+ language: z.ZodString;
37
+ version: z.ZodString;
38
+ }, z.core.$strip>, z.ZodEnum<{
39
+ WAITING: "WAITING";
40
+ REQUESTED: "REQUESTED";
41
+ PASSED: "PASSED";
42
+ FAILED: "FAILED";
43
+ }>], null>>;
44
+ type LanguageExecutorDefinitionTestStatusMap = z.infer<typeof LanguageExecutorDefinitionTestStatusMapSchema>;
45
+ export type { LanguageExecutorDefinitionTestStatusMap };
46
+ export { LanguageExecutorDefinitionTestStatusMapSchema };
19
47
  export declare class Language {
20
48
  private static readonly LANGUAGES_METADATA;
21
49
  static get(language: LanguageID): Language;
package/dist/Language.js CHANGED
@@ -16,6 +16,16 @@ const LanguageExecutorDefinitionSchema = z.object({
16
16
  version: z.string(),
17
17
  });
18
18
  export { LanguageExecutorDefinitionSchema };
19
+ const LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS = {
20
+ waiting: "WAITING",
21
+ requested: "REQUESTED",
22
+ passed: "PASSED",
23
+ failed: "FAILED",
24
+ };
25
+ const LanguageExecutorDefinitionTestStatusSchema = z.enum(Object.values(LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS));
26
+ export { LANGUAGE_EXECUTOR_DEFINITION_TEST_STATUS, LanguageExecutorDefinitionTestStatusSchema };
27
+ const LanguageExecutorDefinitionTestStatusMapSchema = z.array(z.tuple([LanguageExecutorDefinitionSchema, LanguageExecutorDefinitionTestStatusSchema]));
28
+ export { LanguageExecutorDefinitionTestStatusMapSchema };
19
29
  export class Language {
20
30
  static get(language) {
21
31
  LanguageIDSchema.parse(language); // will throw error if invalid
package/dist/Package.d.ts CHANGED
@@ -6,6 +6,13 @@ declare const PackageSchema: z.ZodObject<{
6
6
  type Package = z.infer<typeof PackageSchema>;
7
7
  export type { Package };
8
8
  export { PackageSchema };
9
+ declare const PackageListSchema: z.ZodArray<z.ZodObject<{
10
+ runtime: z.ZodString;
11
+ version: z.ZodString;
12
+ }, z.core.$strip>>;
13
+ type PackageList = z.infer<typeof PackageListSchema>;
14
+ export type { PackageList };
15
+ export { PackageListSchema };
9
16
  declare const PACKAGE_INSTALL_STATUS: {
10
17
  readonly requested: "REQUESTED";
11
18
  readonly installing: "INSTALLING";
@@ -14,9 +21,9 @@ declare const PACKAGE_INSTALL_STATUS: {
14
21
  };
15
22
  declare const PackageInstallStatusSchema: z.ZodEnum<{
16
23
  REQUESTED: "REQUESTED";
24
+ FAILED: "FAILED";
17
25
  INSTALLING: "INSTALLING";
18
26
  INSTALLED: "INSTALLED";
19
- FAILED: "FAILED";
20
27
  }>;
21
28
  type PackageInstallStatus = z.infer<typeof PackageInstallStatusSchema>;
22
29
  export type { PackageInstallStatus };
@@ -26,9 +33,9 @@ declare const PackageInstallStatusMapSchema: z.ZodArray<z.ZodTuple<[z.ZodObject<
26
33
  version: z.ZodString;
27
34
  }, z.core.$strip>, z.ZodEnum<{
28
35
  REQUESTED: "REQUESTED";
36
+ FAILED: "FAILED";
29
37
  INSTALLING: "INSTALLING";
30
38
  INSTALLED: "INSTALLED";
31
- FAILED: "FAILED";
32
39
  }>], null>>;
33
40
  type PackageInstallStatusMap = z.infer<typeof PackageInstallStatusMapSchema>;
34
41
  export type { PackageInstallStatusMap };
package/dist/Package.js CHANGED
@@ -4,6 +4,8 @@ const PackageSchema = z.object({
4
4
  version: z.string(),
5
5
  });
6
6
  export { PackageSchema };
7
+ const PackageListSchema = z.array(PackageSchema);
8
+ export { PackageListSchema };
7
9
  const PACKAGE_INSTALL_STATUS = {
8
10
  requested: "REQUESTED",
9
11
  installing: "INSTALLING",
@@ -6,10 +6,21 @@ declare const ExecutorInformationSchema: z.ZodObject<{
6
6
  version: z.ZodString;
7
7
  }, z.core.$strip>, z.ZodEnum<{
8
8
  REQUESTED: "REQUESTED";
9
+ FAILED: "FAILED";
9
10
  INSTALLING: "INSTALLING";
10
11
  INSTALLED: "INSTALLED";
12
+ }>], null>>;
13
+ language_test_statuses: z.ZodArray<z.ZodTuple<[z.ZodObject<{
14
+ runtime: z.ZodString;
15
+ language: z.ZodString;
16
+ version: z.ZodString;
17
+ }, z.core.$strip>, z.ZodEnum<{
18
+ WAITING: "WAITING";
19
+ REQUESTED: "REQUESTED";
20
+ PASSED: "PASSED";
11
21
  FAILED: "FAILED";
12
22
  }>], null>>;
23
+ languages_initialised: z.ZodBoolean;
13
24
  }, z.core.$strip>;
14
25
  type ExecutorInformation = z.infer<typeof ExecutorInformationSchema>;
15
26
  export type { ExecutorInformation };
@@ -21,10 +32,21 @@ declare const ExecutorInformationListSchema: z.ZodArray<z.ZodObject<{
21
32
  version: z.ZodString;
22
33
  }, z.core.$strip>, z.ZodEnum<{
23
34
  REQUESTED: "REQUESTED";
35
+ FAILED: "FAILED";
24
36
  INSTALLING: "INSTALLING";
25
37
  INSTALLED: "INSTALLED";
38
+ }>], null>>;
39
+ language_test_statuses: z.ZodArray<z.ZodTuple<[z.ZodObject<{
40
+ runtime: z.ZodString;
41
+ language: z.ZodString;
42
+ version: z.ZodString;
43
+ }, z.core.$strip>, z.ZodEnum<{
44
+ WAITING: "WAITING";
45
+ REQUESTED: "REQUESTED";
46
+ PASSED: "PASSED";
26
47
  FAILED: "FAILED";
27
48
  }>], null>>;
49
+ languages_initialised: z.ZodBoolean;
28
50
  }, z.core.$strip>>;
29
51
  type ExecutorInformationList = z.infer<typeof ExecutorInformationListSchema>;
30
52
  export type { ExecutorInformationList };
@@ -1,8 +1,11 @@
1
1
  import z from 'zod';
2
2
  import { PackageInstallStatusMapSchema } from '../../Package';
3
+ import { LanguageExecutorDefinitionTestStatusMapSchema } from '../../Language';
3
4
  const ExecutorInformationSchema = z.object({
4
5
  socket_id: z.string(),
5
6
  package_install_statuses: PackageInstallStatusMapSchema,
7
+ language_test_statuses: LanguageExecutorDefinitionTestStatusMapSchema,
8
+ languages_initialised: z.boolean(),
6
9
  });
7
10
  export { ExecutorInformationSchema };
8
11
  const ExecutorInformationListSchema = z.array(ExecutorInformationSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-share-types",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],