@o-zone/scorer-core 0.0.11 → 0.0.12
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/competition/index.d.ts +4 -4
- package/dist/competition/index.d.ts.map +1 -1
- package/dist/competition/index.js +6 -1
- package/dist/competition/index.js.map +1 -1
- package/dist/race/index.d.ts +12 -2
- package/dist/race/index.d.ts.map +1 -1
- package/dist/race/index.js +14 -1
- package/dist/race/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/schema.d.ts +0 -10
- package/dist/common/schema.d.ts.map +0 -1
- package/dist/common/schema.js +0 -15
- package/dist/common/schema.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
export declare const Competition: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, z.core.$loose>;
|
|
2
6
|
export declare const CompetitionScoreRequest: z.ZodObject<{
|
|
3
7
|
competition: z.ZodObject<{
|
|
4
8
|
id: z.ZodNumber;
|
|
5
9
|
name: z.ZodString;
|
|
6
|
-
competition_class: z.ZodArray<z.ZodObject<{
|
|
7
|
-
id: z.ZodNumber;
|
|
8
|
-
short_name: z.ZodString;
|
|
9
|
-
}, z.core.$loose>>;
|
|
10
10
|
}, z.core.$loose>;
|
|
11
11
|
classes: z.ZodArray<z.ZodObject<{
|
|
12
12
|
id: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAwCzB,eAAO,MAAM,WAAW;;;iBAKd,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM1B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { Competition } from '../common/schema';
|
|
3
2
|
const Organization = z
|
|
4
3
|
.object({
|
|
5
4
|
id: z.number(),
|
|
@@ -33,6 +32,12 @@ const CompetitionClass = z
|
|
|
33
32
|
entries: z.array(CompetitionEntry),
|
|
34
33
|
})
|
|
35
34
|
.loose();
|
|
35
|
+
export const Competition = z
|
|
36
|
+
.object({
|
|
37
|
+
id: z.number(),
|
|
38
|
+
name: z.string(),
|
|
39
|
+
})
|
|
40
|
+
.loose();
|
|
36
41
|
export const CompetitionScoreRequest = z
|
|
37
42
|
.object({
|
|
38
43
|
competition: Competition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,YAAY,GAAG,CAAC;KACnB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACjC,UAAU,EAAE,CAAC;SACV,MAAM,CAAC;QACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;KACjB,CAAC;SACD,OAAO,EAAE;CACb,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,YAAY,CAAC,OAAO,EAAE;IACpC,SAAS,EAAE,CAAC,CAAC,KAAK,CAChB,CAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;KAC5B,CAAC;SACD,KAAK,EAAE,CACX;CACF,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CACnC,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;CACtC,CAAC;KACD,KAAK,EAAE,CAAC"}
|
package/dist/race/index.d.ts
CHANGED
|
@@ -50,13 +50,23 @@ export declare const Race: z.ZodObject<{
|
|
|
50
50
|
}, z.core.$loose>>;
|
|
51
51
|
}, z.core.$loose>>;
|
|
52
52
|
}, z.core.$loose>;
|
|
53
|
+
export declare const Competition: z.ZodObject<{
|
|
54
|
+
id: z.ZodNumber;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
competition_classes: z.ZodArray<z.ZodObject<{
|
|
57
|
+
id: z.ZodNumber;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
53
62
|
export declare const RaceScoreRequest: z.ZodObject<{
|
|
54
63
|
competition: z.ZodObject<{
|
|
55
64
|
id: z.ZodNumber;
|
|
56
65
|
name: z.ZodString;
|
|
57
|
-
|
|
66
|
+
competition_classes: z.ZodArray<z.ZodObject<{
|
|
58
67
|
id: z.ZodNumber;
|
|
59
|
-
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
70
|
}, z.core.$loose>>;
|
|
61
71
|
}, z.core.$loose>;
|
|
62
72
|
race: z.ZodObject<{
|
package/dist/race/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/race/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/race/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA2DzB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKP,CAAC;AAUX,eAAO,MAAM,WAAW;;;;;;;;iBAMd,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnB,CAAC"}
|
package/dist/race/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { Competition } from '../common/schema';
|
|
3
2
|
const RaceFormat = z.object({
|
|
4
3
|
name: z.string(),
|
|
5
4
|
race_discipline: z.enum(['FootO']),
|
|
@@ -56,6 +55,20 @@ export const Race = z
|
|
|
56
55
|
race_class: z.array(RaceClass),
|
|
57
56
|
})
|
|
58
57
|
.loose();
|
|
58
|
+
const CompetitionClass = z
|
|
59
|
+
.object({
|
|
60
|
+
id: z.number(),
|
|
61
|
+
name: z.string(),
|
|
62
|
+
short_name: z.string().nullish(),
|
|
63
|
+
})
|
|
64
|
+
.loose();
|
|
65
|
+
export const Competition = z
|
|
66
|
+
.object({
|
|
67
|
+
id: z.number(),
|
|
68
|
+
name: z.string(),
|
|
69
|
+
competition_classes: z.array(CompetitionClass),
|
|
70
|
+
})
|
|
71
|
+
.loose();
|
|
59
72
|
export const RaceScoreRequest = z
|
|
60
73
|
.object({
|
|
61
74
|
competition: Competition,
|
package/dist/race/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/race/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/race/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAA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0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
export declare const Competition: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
competition_class: z.ZodArray<z.ZodObject<{
|
|
6
|
-
id: z.ZodNumber;
|
|
7
|
-
short_name: z.ZodString;
|
|
8
|
-
}, z.core.$loose>>;
|
|
9
|
-
}, z.core.$loose>;
|
|
10
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/common/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AASzB,eAAO,MAAM,WAAW;;;;;;;iBAMd,CAAC"}
|
package/dist/common/schema.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
const CompetitionClass = z
|
|
3
|
-
.object({
|
|
4
|
-
id: z.number(),
|
|
5
|
-
short_name: z.string(),
|
|
6
|
-
})
|
|
7
|
-
.loose();
|
|
8
|
-
export const Competition = z
|
|
9
|
-
.object({
|
|
10
|
-
id: z.number(),
|
|
11
|
-
name: z.string(),
|
|
12
|
-
competition_class: z.array(CompetitionClass),
|
|
13
|
-
})
|
|
14
|
-
.loose();
|
|
15
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/common/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CAC7C,CAAC;KACD,KAAK,EAAE,CAAC"}
|