@o-zone/scorer-core 0.0.11 → 0.0.13
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 +42 -2
- package/dist/race/index.d.ts.map +1 -1
- package/dist/race/index.js +22 -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
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
export declare const Event: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
classification: z.ZodEnum<{
|
|
6
|
+
local: "local";
|
|
7
|
+
regional: "regional";
|
|
8
|
+
national: "national";
|
|
9
|
+
international: "international";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$loose>;
|
|
2
12
|
export declare const Race: z.ZodObject<{
|
|
13
|
+
event: z.ZodObject<{
|
|
14
|
+
id: z.ZodNumber;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
classification: z.ZodEnum<{
|
|
17
|
+
local: "local";
|
|
18
|
+
regional: "regional";
|
|
19
|
+
national: "national";
|
|
20
|
+
international: "international";
|
|
21
|
+
}>;
|
|
22
|
+
}, z.core.$loose>;
|
|
3
23
|
race_format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4
24
|
name: z.ZodString;
|
|
5
25
|
race_discipline: z.ZodEnum<{
|
|
@@ -50,16 +70,36 @@ export declare const Race: z.ZodObject<{
|
|
|
50
70
|
}, z.core.$loose>>;
|
|
51
71
|
}, z.core.$loose>>;
|
|
52
72
|
}, z.core.$loose>;
|
|
73
|
+
export declare const Competition: z.ZodObject<{
|
|
74
|
+
id: z.ZodNumber;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
competition_classes: z.ZodArray<z.ZodObject<{
|
|
77
|
+
id: z.ZodNumber;
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
}, z.core.$loose>>;
|
|
81
|
+
}, z.core.$loose>;
|
|
53
82
|
export declare const RaceScoreRequest: z.ZodObject<{
|
|
54
83
|
competition: z.ZodObject<{
|
|
55
84
|
id: z.ZodNumber;
|
|
56
85
|
name: z.ZodString;
|
|
57
|
-
|
|
86
|
+
competition_classes: z.ZodArray<z.ZodObject<{
|
|
58
87
|
id: z.ZodNumber;
|
|
59
|
-
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
90
|
}, z.core.$loose>>;
|
|
61
91
|
}, z.core.$loose>;
|
|
62
92
|
race: z.ZodObject<{
|
|
93
|
+
event: z.ZodObject<{
|
|
94
|
+
id: z.ZodNumber;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
classification: z.ZodEnum<{
|
|
97
|
+
local: "local";
|
|
98
|
+
regional: "regional";
|
|
99
|
+
national: "national";
|
|
100
|
+
international: "international";
|
|
101
|
+
}>;
|
|
102
|
+
}, z.core.$loose>;
|
|
63
103
|
race_format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
104
|
name: z.ZodString;
|
|
65
105
|
race_discipline: z.ZodEnum<{
|
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,KAAK;;;;;;;;;iBAMR,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMP,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']),
|
|
@@ -50,12 +49,34 @@ const RaceClass = z
|
|
|
50
49
|
race_entry: z.array(RaceEntry),
|
|
51
50
|
})
|
|
52
51
|
.loose();
|
|
52
|
+
export const Event = z
|
|
53
|
+
.object({
|
|
54
|
+
id: z.number(),
|
|
55
|
+
name: z.string(),
|
|
56
|
+
classification: z.enum(['local', 'regional', 'national', 'international']),
|
|
57
|
+
})
|
|
58
|
+
.loose();
|
|
53
59
|
export const Race = z
|
|
54
60
|
.object({
|
|
61
|
+
event: Event,
|
|
55
62
|
race_format: RaceFormat.nullish(),
|
|
56
63
|
race_class: z.array(RaceClass),
|
|
57
64
|
})
|
|
58
65
|
.loose();
|
|
66
|
+
const CompetitionClass = z
|
|
67
|
+
.object({
|
|
68
|
+
id: z.number(),
|
|
69
|
+
name: z.string(),
|
|
70
|
+
short_name: z.string().nullish(),
|
|
71
|
+
})
|
|
72
|
+
.loose();
|
|
73
|
+
export const Competition = z
|
|
74
|
+
.object({
|
|
75
|
+
id: z.number(),
|
|
76
|
+
name: z.string(),
|
|
77
|
+
competition_classes: z.array(CompetitionClass),
|
|
78
|
+
})
|
|
79
|
+
.loose();
|
|
59
80
|
export const RaceScoreRequest = z
|
|
60
81
|
.object({
|
|
61
82
|
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,C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AAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CAC/C,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;CACtC,CAAC;KACD,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
package/dist/common/schema.d.ts
DELETED
|
@@ -1,10 +0,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"}
|