@battle-racing/br-common-lib 6.2.0-rc.2 → 6.2.0-rc.3
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/__deprecated__/constants/kart-status.d.ts +1 -0
- package/dist/__deprecated__/constants/kart-status.js +1 -0
- package/dist/domains/game/Game.schema.d.ts +1 -0
- package/dist/domains/game/Game.schema.js +1 -0
- package/dist/domains/game/battle/Battle.schema.d.ts +2 -0
- package/dist/domains/game/battle/Battle.schema.js +1 -0
- package/dist/domains/game/race/Race.schema.d.ts +3 -0
- package/dist/domains/game/race/Race.schema.js +1 -0
- package/dist/domains/kart/Kart.const.d.ts +1 -0
- package/dist/domains/kart/Kart.const.js +1 -0
- package/dist/domains/kart/Kart.schema.d.ts +2 -0
- package/dist/domains/tutorial/Tutorial.const.d.ts +1 -0
- package/dist/domains/tutorial/Tutorial.const.js +1 -0
- package/dist/domains/tutorial/Tutorial.schema.d.ts +2 -0
- package/dist/domains/tutorial/Tutorial.schema.js +1 -0
- package/package.json +1 -1
- package/src/__deprecated__/constants/kart-status.ts +1 -0
- package/src/domains/game/Game.schema.ts +1 -0
- package/src/domains/game/battle/Battle.schema.ts +1 -0
- package/src/domains/game/race/Race.schema.ts +1 -0
- package/src/domains/kart/Kart.const.ts +1 -0
- package/src/domains/tutorial/Tutorial.const.ts +1 -0
- package/src/domains/tutorial/Tutorial.schema.ts +1 -0
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.KART_FINAL_STATE = exports.KART_STATUS = void 0;
|
|
4
4
|
exports.KART_STATUS = {
|
|
5
5
|
STAND_BY: 'standBy',
|
|
6
|
+
TUTORIAL: 'tutorial',
|
|
6
7
|
IN_GAME: 'in-game',
|
|
7
8
|
YELLOW_FLAG: 'yellow-flag',
|
|
8
9
|
EMERGENCY: 'emergency',
|
|
@@ -69,6 +69,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
69
69
|
position: z.ZodNumber;
|
|
70
70
|
time: z.ZodNumber;
|
|
71
71
|
}, z.core.$strip>>;
|
|
72
|
+
tutorialConfigId: z.ZodOptional<z.ZodString>;
|
|
72
73
|
}, z.core.$strip>;
|
|
73
74
|
export declare const assignKartSchema: z.ZodObject<{
|
|
74
75
|
playerId: z.ZodString;
|
|
@@ -34,6 +34,7 @@ exports.gameSchema = zod_1.z.object({
|
|
|
34
34
|
finishedReason: exports.gameFinishedReasonSchema.optional(),
|
|
35
35
|
kartsState: zod_1.z.record(zod_1.z.string(), exports.gameKartStateSchema),
|
|
36
36
|
gameRanking: zod_1.z.array(exports.kartRankingItemSchema),
|
|
37
|
+
tutorialConfigId: zod_1.z.string().optional(),
|
|
37
38
|
});
|
|
38
39
|
exports.assignKartSchema = zod_1.z.object({
|
|
39
40
|
playerId: zod_1.z.string(),
|
|
@@ -36,6 +36,7 @@ export declare const battleSchema: z.ZodObject<{
|
|
|
36
36
|
position: z.ZodNumber;
|
|
37
37
|
time: z.ZodNumber;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
|
+
tutorialConfigId: z.ZodOptional<z.ZodString>;
|
|
39
40
|
type: z.ZodLiteral<"Battle">;
|
|
40
41
|
lives: z.ZodNumber;
|
|
41
42
|
kartsState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -56,4 +57,5 @@ export declare const createBattleSchema: z.ZodObject<{
|
|
|
56
57
|
gameTrackId: z.ZodString;
|
|
57
58
|
gameTurnId: z.ZodOptional<z.ZodString>;
|
|
58
59
|
isOfficial: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
tutorialConfigId: z.ZodOptional<z.ZodString>;
|
|
59
61
|
}, z.core.$strip>;
|
|
@@ -106,6 +106,7 @@ export declare const raceSchema: z.ZodObject<{
|
|
|
106
106
|
readonly EMERGENCY: "EMERGENCY";
|
|
107
107
|
readonly BY_CONTROLLER: "BY_CONTROLLER";
|
|
108
108
|
}>>;
|
|
109
|
+
tutorialConfigId: z.ZodOptional<z.ZodString>;
|
|
109
110
|
type: z.ZodLiteral<"Race">;
|
|
110
111
|
laps: z.ZodNumber;
|
|
111
112
|
kartsState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -165,6 +166,7 @@ export declare const raceWithDetailedRankingSchema: z.ZodObject<{
|
|
|
165
166
|
readonly EMERGENCY: "EMERGENCY";
|
|
166
167
|
readonly BY_CONTROLLER: "BY_CONTROLLER";
|
|
167
168
|
}>>;
|
|
169
|
+
tutorialConfigId: z.ZodOptional<z.ZodString>;
|
|
168
170
|
type: z.ZodLiteral<"Race">;
|
|
169
171
|
laps: z.ZodNumber;
|
|
170
172
|
kartsState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -233,4 +235,5 @@ export declare const createRaceSchema: z.ZodObject<{
|
|
|
233
235
|
gameTrackId: z.ZodString;
|
|
234
236
|
gameTurnId: z.ZodOptional<z.ZodString>;
|
|
235
237
|
isOfficial: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
tutorialConfigId: z.ZodOptional<z.ZodString>;
|
|
236
239
|
}, z.core.$strip>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.KART_FINAL_STATE = exports.KART_STATUS = void 0;
|
|
4
4
|
exports.KART_STATUS = {
|
|
5
5
|
STAND_BY: 'standBy',
|
|
6
|
+
TUTORIAL: 'tutorial',
|
|
6
7
|
IN_GAME: 'in-game',
|
|
7
8
|
YELLOW_FLAG: 'yellow-flag',
|
|
8
9
|
EMERGENCY: 'emergency',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const kartStatusSchema: z.ZodEnum<{
|
|
3
3
|
readonly STAND_BY: "standBy";
|
|
4
|
+
readonly TUTORIAL: "tutorial";
|
|
4
5
|
readonly IN_GAME: "in-game";
|
|
5
6
|
readonly YELLOW_FLAG: "yellow-flag";
|
|
6
7
|
readonly EMERGENCY: "emergency";
|
|
@@ -27,6 +28,7 @@ export declare const kartSchema: z.ZodObject<{
|
|
|
27
28
|
isConnected: z.ZodBoolean;
|
|
28
29
|
status: z.ZodEnum<{
|
|
29
30
|
readonly STAND_BY: "standBy";
|
|
31
|
+
readonly TUTORIAL: "tutorial";
|
|
30
32
|
readonly IN_GAME: "in-game";
|
|
31
33
|
readonly YELLOW_FLAG: "yellow-flag";
|
|
32
34
|
readonly EMERGENCY: "emergency";
|
|
@@ -22,6 +22,7 @@ export declare const TUTORIAL_STATUS: {
|
|
|
22
22
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
23
23
|
readonly COMPLETED: "COMPLETED";
|
|
24
24
|
readonly SKIPPED: "SKIPPED";
|
|
25
|
+
readonly CANCELLED: "CANCELLED";
|
|
25
26
|
};
|
|
26
27
|
export declare const TUTORIAL_PHASE_ID: {
|
|
27
28
|
readonly STARTING_POINT: "starting_point";
|
|
@@ -21,6 +21,7 @@ export declare const tutorialScreenStepSchema: z.ZodEnum<{
|
|
|
21
21
|
export declare const tutorialStatusSchema: z.ZodEnum<{
|
|
22
22
|
COMPLETED: "COMPLETED";
|
|
23
23
|
PENDING: "PENDING";
|
|
24
|
+
CANCELLED: "CANCELLED";
|
|
24
25
|
IN_PROGRESS: "IN_PROGRESS";
|
|
25
26
|
SKIPPED: "SKIPPED";
|
|
26
27
|
}>;
|
|
@@ -52,6 +53,7 @@ export declare const tutorialKartSnapshotSchema: z.ZodObject<{
|
|
|
52
53
|
status: z.ZodEnum<{
|
|
53
54
|
COMPLETED: "COMPLETED";
|
|
54
55
|
PENDING: "PENDING";
|
|
56
|
+
CANCELLED: "CANCELLED";
|
|
55
57
|
IN_PROGRESS: "IN_PROGRESS";
|
|
56
58
|
SKIPPED: "SKIPPED";
|
|
57
59
|
}>;
|
|
@@ -28,6 +28,7 @@ exports.tutorialStatusSchema = zod_1.z.enum([
|
|
|
28
28
|
Tutorial_const_1.TUTORIAL_STATUS.IN_PROGRESS,
|
|
29
29
|
Tutorial_const_1.TUTORIAL_STATUS.COMPLETED,
|
|
30
30
|
Tutorial_const_1.TUTORIAL_STATUS.SKIPPED,
|
|
31
|
+
Tutorial_const_1.TUTORIAL_STATUS.CANCELLED,
|
|
31
32
|
]);
|
|
32
33
|
exports.tutorialPhaseIdSchema = zod_1.z.enum([
|
|
33
34
|
Tutorial_const_1.TUTORIAL_PHASE_ID.STARTING_POINT,
|
package/package.json
CHANGED
|
@@ -38,6 +38,7 @@ export const gameSchema = z.object({
|
|
|
38
38
|
finishedReason: gameFinishedReasonSchema.optional(),
|
|
39
39
|
kartsState: z.record(z.string(), gameKartStateSchema),
|
|
40
40
|
gameRanking: z.array(kartRankingItemSchema),
|
|
41
|
+
tutorialConfigId: z.string().optional(),
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
export const assignKartSchema = z.object({
|