@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.
@@ -1,5 +1,6 @@
1
1
  export declare const KART_STATUS: {
2
2
  readonly STAND_BY: "standBy";
3
+ readonly TUTORIAL: "tutorial";
3
4
  readonly IN_GAME: "in-game";
4
5
  readonly YELLOW_FLAG: "yellow-flag";
5
6
  readonly EMERGENCY: "emergency";
@@ -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>;
@@ -27,4 +27,5 @@ exports.createBattleSchema = zod_1.z.object({
27
27
  gameTrackId: zod_1.z.string(),
28
28
  gameTurnId: zod_1.z.string().optional(),
29
29
  isOfficial: zod_1.z.boolean().optional(),
30
+ tutorialConfigId: zod_1.z.string().optional(),
30
31
  });
@@ -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>;
@@ -70,4 +70,5 @@ exports.createRaceSchema = exports.startRaceSchema.partial().extend({
70
70
  gameTrackId: zod_1.z.string(),
71
71
  gameTurnId: zod_1.z.string().optional(),
72
72
  isOfficial: zod_1.z.boolean().optional(),
73
+ tutorialConfigId: zod_1.z.string().optional(),
73
74
  });
@@ -1,5 +1,6 @@
1
1
  export declare const KART_STATUS: {
2
2
  readonly STAND_BY: "standBy";
3
+ readonly TUTORIAL: "tutorial";
3
4
  readonly IN_GAME: "in-game";
4
5
  readonly YELLOW_FLAG: "yellow-flag";
5
6
  readonly EMERGENCY: "emergency";
@@ -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";
@@ -25,6 +25,7 @@ exports.TUTORIAL_STATUS = {
25
25
  IN_PROGRESS: 'IN_PROGRESS',
26
26
  COMPLETED: 'COMPLETED',
27
27
  SKIPPED: 'SKIPPED',
28
+ CANCELLED: 'CANCELLED',
28
29
  };
29
30
  exports.TUTORIAL_PHASE_ID = {
30
31
  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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battle-racing/br-common-lib",
3
- "version": "6.2.0-rc.2",
3
+ "version": "6.2.0-rc.3",
4
4
  "description": "Common library for all Battle Racing Repositorios",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,5 +1,6 @@
1
1
  export const KART_STATUS = {
2
2
  STAND_BY: 'standBy',
3
+ TUTORIAL: 'tutorial',
3
4
  IN_GAME: 'in-game',
4
5
  YELLOW_FLAG: 'yellow-flag',
5
6
  EMERGENCY: 'emergency',
@@ -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({
@@ -30,4 +30,5 @@ export const createBattleSchema = z.object({
30
30
  gameTrackId: z.string(),
31
31
  gameTurnId: z.string().optional(),
32
32
  isOfficial: z.boolean().optional(),
33
+ tutorialConfigId: z.string().optional(),
33
34
  });
@@ -80,4 +80,5 @@ export const createRaceSchema = startRaceSchema.partial().extend({
80
80
  gameTrackId: z.string(),
81
81
  gameTurnId: z.string().optional(),
82
82
  isOfficial: z.boolean().optional(),
83
+ tutorialConfigId: z.string().optional(),
83
84
  });
@@ -1,5 +1,6 @@
1
1
  export const KART_STATUS = {
2
2
  STAND_BY: 'standBy',
3
+ TUTORIAL: 'tutorial',
3
4
  IN_GAME: 'in-game',
4
5
  YELLOW_FLAG: 'yellow-flag',
5
6
  EMERGENCY: 'emergency',
@@ -27,6 +27,7 @@ export const TUTORIAL_STATUS = {
27
27
  IN_PROGRESS: 'IN_PROGRESS',
28
28
  COMPLETED: 'COMPLETED',
29
29
  SKIPPED: 'SKIPPED',
30
+ CANCELLED: 'CANCELLED',
30
31
  } as const;
31
32
 
32
33
  export const TUTORIAL_PHASE_ID = {
@@ -35,6 +35,7 @@ export const tutorialStatusSchema = z.enum([
35
35
  TUTORIAL_STATUS.IN_PROGRESS,
36
36
  TUTORIAL_STATUS.COMPLETED,
37
37
  TUTORIAL_STATUS.SKIPPED,
38
+ TUTORIAL_STATUS.CANCELLED,
38
39
  ]);
39
40
 
40
41
  export const tutorialPhaseIdSchema = z.enum([