magicrealmsshared 0.6.34 → 0.6.36
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,5 @@
|
|
|
1
1
|
import { GameCharacter } from "../types/charcter";
|
|
2
|
-
import { Auth_Token, Country, PlayerClientData,
|
|
2
|
+
import { Auth_Token, CharacterWell, Country, PlayerClientData, Well } from "../types/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export declare const ResponseCode: {
|
|
5
5
|
readonly SUCCESS: 0;
|
|
@@ -63,13 +63,13 @@ export declare const REGISTER_DATA_SCHEME: z.ZodObject<{
|
|
|
63
63
|
export type REGISTER_DATA = z.infer<typeof REGISTER_DATA_SCHEME>;
|
|
64
64
|
export declare const REGISTER_RESPONSE_COMMAND = "RETSIGER";
|
|
65
65
|
export type REGISTER_RESPONSE_DATA = LOGIN_RESPONSE;
|
|
66
|
-
export type
|
|
67
|
-
|
|
66
|
+
export type WellWithCharacter<IdFormat, DateFormat> = Well<IdFormat> & {
|
|
67
|
+
character?: Omit<CharacterWell<IdFormat, DateFormat>, "_id" | "playerId" | "wellId">;
|
|
68
68
|
};
|
|
69
69
|
export declare const DATA_UPDATE_COMMAND = "DATA_UPDATE";
|
|
70
70
|
export type DATA_UPDATE = {
|
|
71
71
|
drop?: string[];
|
|
72
|
-
wells?:
|
|
72
|
+
wells?: WellWithCharacter<string, number>[];
|
|
73
73
|
countries?: Country<string>[];
|
|
74
74
|
};
|
|
75
75
|
export declare const POSUPDATE_COMMAND = "POSUPDATE";
|
|
@@ -126,7 +126,7 @@ export type CHARACTER_CREATE_RESPONSE = Response & {
|
|
|
126
126
|
character?: GameCharacter<string, number>;
|
|
127
127
|
};
|
|
128
128
|
export type RESPONE_WITH_PERSONAL_WELL = Response & {
|
|
129
|
-
well:
|
|
129
|
+
well: WellWithCharacter<string, number>;
|
|
130
130
|
};
|
|
131
131
|
export declare const REQUEST_WITH_WELLID_SCHEME: z.ZodObject<{
|
|
132
132
|
_id: z.ZodString;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type Well<T> = WorldObject<T> & {
|
|
|
48
48
|
name: string;
|
|
49
49
|
color: number;
|
|
50
50
|
};
|
|
51
|
-
export type
|
|
51
|
+
export type CharacterWell<IDFormat, DateFormat> = {
|
|
52
52
|
characterId: IDFormat;
|
|
53
53
|
wellId: IDFormat;
|
|
54
54
|
firstVisit: DateFormat;
|