magicrealmsshared 0.6.26 → 0.6.28
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.
|
@@ -167,15 +167,15 @@ export declare const WELL_CHANNEL_SHEME: z.ZodObject<{
|
|
|
167
167
|
_id: string;
|
|
168
168
|
}>;
|
|
169
169
|
export type WELL_CHANNEL = z.infer<typeof WELL_CHANNEL_SHEME>;
|
|
170
|
-
export declare const
|
|
171
|
-
export declare const
|
|
170
|
+
export declare const WELL_PERSONAL_SYNC_COMMAND = "WELL_PERSONAL_SYNC_COMMAND";
|
|
171
|
+
export declare const WELL_PERSONAL_SYNC_SHEME: z.ZodObject<{
|
|
172
172
|
_id: z.ZodString;
|
|
173
173
|
}, "strict", z.ZodTypeAny, {
|
|
174
174
|
_id: string;
|
|
175
175
|
}, {
|
|
176
176
|
_id: string;
|
|
177
177
|
}>;
|
|
178
|
-
export type
|
|
179
|
-
export type
|
|
178
|
+
export type WELL_PERSONAL_SYNC = z.infer<typeof WELL_CHANNEL_SHEME>;
|
|
179
|
+
export type WELL_PERSONAL_SYNC_RESPONSE = Response & {
|
|
180
180
|
well: WellWithPlayer<string, number>;
|
|
181
181
|
};
|
package/dist/communication/ws.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WELL_PERSONAL_SYNC_SHEME = exports.WELL_PERSONAL_SYNC_COMMAND = exports.WELL_CHANNEL_SHEME = exports.WELL_CHANNEL_COMMAND = exports.CHARACTER_CREATE_SCHEME = exports.CHARACTER_CREATE_COMMAND = exports.DEBUG_SOCKET_INFO_RETRIEVE_SCHEME = exports.DEBUG_SOCKET_INFO_RETRIEVE_COMMAND = exports.ADMIN_WELL_DELETE_SCHEME = exports.ADMIN_WELL_DELETE_COMMAND = exports.ADMIN_WELL_CREATE_SCHEME = exports.ADMIN_WELL_CREATE_COMMAND = exports.POSUPDATE_SCHEME = exports.POSUPDATE_COMMAND = exports.DATA_UPDATE_COMMAND = exports.REGISTER_RESPONSE_COMMAND = exports.REGISTER_DATA_SCHEME = exports.REGISTER_COMMAND = exports.LOGOUT_COMMAND = exports.LOGIN_RESPONSE_COMMAND = exports.LOGIN_DATA_SCHEME = exports.LOGIN_COMMAND = exports.AUTH_INVALID = exports.AUTH_ACK = exports.AUTH = exports.AUTH_TOKEN_SCHEME = exports.GeoJSONPointSchema = exports.ResponseCode = void 0;
|
|
4
4
|
const charcter_1 = require("../types/charcter");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.ResponseCode = {
|
|
@@ -76,6 +76,6 @@ exports.CHARACTER_CREATE_SCHEME = zod_1.z.strictObject({
|
|
|
76
76
|
//#region Well-Interaction
|
|
77
77
|
exports.WELL_CHANNEL_COMMAND = "WELL_CHANNEL_COMMAND";
|
|
78
78
|
exports.WELL_CHANNEL_SHEME = exports.ADMIN_WELL_DELETE_SCHEME;
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
79
|
+
exports.WELL_PERSONAL_SYNC_COMMAND = "WELL_PERSONAL_SYNC_COMMAND";
|
|
80
|
+
exports.WELL_PERSONAL_SYNC_SHEME = exports.ADMIN_WELL_DELETE_SCHEME;
|
|
81
81
|
//#endregion
|
package/dist/types/types.d.ts
CHANGED
|
@@ -5,8 +5,9 @@ export type ObjectWithId<T> = {
|
|
|
5
5
|
_id: T;
|
|
6
6
|
defVersion: number;
|
|
7
7
|
};
|
|
8
|
+
export type WorldPoint = Pick<GeoJSON.Point, "type" | "coordinates">;
|
|
8
9
|
export type WorldObject<T> = ObjectWithId<T> & {
|
|
9
|
-
pos:
|
|
10
|
+
pos: WorldPoint;
|
|
10
11
|
};
|
|
11
12
|
export type Privileges = {
|
|
12
13
|
all?: boolean;
|
|
@@ -40,7 +41,7 @@ export type Player<IDFormat, DateFormat> = ObjectWithId<IDFormat> & {
|
|
|
40
41
|
export type PlayerClientData = Omit<Player<string, number>, "passwordHash" | "passwordSalt">;
|
|
41
42
|
export type Country<T> = ObjectWithId<T> & {
|
|
42
43
|
name: string;
|
|
43
|
-
origin:
|
|
44
|
+
origin: WorldPoint;
|
|
44
45
|
pos: GeoJSON.Polygon;
|
|
45
46
|
};
|
|
46
47
|
export type Well<T> = WorldObject<T> & {
|