magicrealmsshared 0.6.28 → 0.6.29
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/communication/ws.d.ts +40 -30
- package/dist/communication/ws.js +12 -13
- package/package.json +1 -1
|
@@ -99,6 +99,43 @@ export declare const POSUPDATE_SCHEME: z.ZodObject<{
|
|
|
99
99
|
pre: number;
|
|
100
100
|
}>;
|
|
101
101
|
export type POSUPDATE = z.infer<typeof POSUPDATE_SCHEME>;
|
|
102
|
+
export declare const DEBUG_SOCKET_INFO_RETRIEVE_COMMAND = "@D/SIR";
|
|
103
|
+
export declare const DEBUG_SOCKET_INFO_RETRIEVE_SCHEME: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
104
|
+
export type DEBUG_SOCKET_INFO_RETRIEVE = z.infer<typeof DEBUG_SOCKET_INFO_RETRIEVE_SCHEME>;
|
|
105
|
+
export type DEBUG_SOCKET_INFO_RESPONSE = Response & {
|
|
106
|
+
id: string;
|
|
107
|
+
rooms: string[];
|
|
108
|
+
position: GeoJSON.Point;
|
|
109
|
+
};
|
|
110
|
+
export declare const CHARACTER_CREATE_COMMAND = "CHARACTER_CREATE";
|
|
111
|
+
export declare const CHARACTER_CREATE_SCHEME: z.ZodObject<{
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
gender: z.ZodEnum<["f", "m"]>;
|
|
114
|
+
portrait: z.ZodString;
|
|
115
|
+
}, "strict", z.ZodTypeAny, {
|
|
116
|
+
name: string;
|
|
117
|
+
gender: "f" | "m";
|
|
118
|
+
portrait: string;
|
|
119
|
+
}, {
|
|
120
|
+
name: string;
|
|
121
|
+
gender: "f" | "m";
|
|
122
|
+
portrait: string;
|
|
123
|
+
}>;
|
|
124
|
+
export type CHARACTER_CREATE_DATA = z.infer<typeof CHARACTER_CREATE_SCHEME>;
|
|
125
|
+
export type CHARACTER_CREATE_RESPONSE = Response & {
|
|
126
|
+
character?: GameCharacter<string, number>;
|
|
127
|
+
};
|
|
128
|
+
export type RESPONE_WITH_PERSONAL_WELL = Response & {
|
|
129
|
+
well: WellWithPlayer<string, number>;
|
|
130
|
+
};
|
|
131
|
+
export declare const REQUEST_WITH_WELLID_SCHEME: z.ZodObject<{
|
|
132
|
+
_id: z.ZodString;
|
|
133
|
+
}, "strict", z.ZodTypeAny, {
|
|
134
|
+
_id: string;
|
|
135
|
+
}, {
|
|
136
|
+
_id: string;
|
|
137
|
+
}>;
|
|
138
|
+
export type REQUEST_WITH_WELLID = z.infer<typeof REQUEST_WITH_WELLID_SCHEME>;
|
|
102
139
|
export declare const ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
|
|
103
140
|
export declare const ADMIN_WELL_CREATE_SCHEME: z.ZodObject<{
|
|
104
141
|
pos: z.ZodObject<{
|
|
@@ -131,33 +168,7 @@ export declare const ADMIN_WELL_DELETE_SCHEME: z.ZodObject<{
|
|
|
131
168
|
}, {
|
|
132
169
|
_id: string;
|
|
133
170
|
}>;
|
|
134
|
-
export type ADMIN_WELL_DELETE =
|
|
135
|
-
export declare const DEBUG_SOCKET_INFO_RETRIEVE_COMMAND = "@D/SIR";
|
|
136
|
-
export declare const DEBUG_SOCKET_INFO_RETRIEVE_SCHEME: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
137
|
-
export type DEBUG_SOCKET_INFO_RETRIEVE = z.infer<typeof DEBUG_SOCKET_INFO_RETRIEVE_SCHEME>;
|
|
138
|
-
export type DEBUG_SOCKET_INFO_RESPONSE = Response & {
|
|
139
|
-
id: string;
|
|
140
|
-
rooms: string[];
|
|
141
|
-
position: GeoJSON.Point;
|
|
142
|
-
};
|
|
143
|
-
export declare const CHARACTER_CREATE_COMMAND = "CHARACTER_CREATE";
|
|
144
|
-
export declare const CHARACTER_CREATE_SCHEME: z.ZodObject<{
|
|
145
|
-
name: z.ZodString;
|
|
146
|
-
gender: z.ZodEnum<["f", "m"]>;
|
|
147
|
-
portrait: z.ZodString;
|
|
148
|
-
}, "strict", z.ZodTypeAny, {
|
|
149
|
-
name: string;
|
|
150
|
-
gender: "f" | "m";
|
|
151
|
-
portrait: string;
|
|
152
|
-
}, {
|
|
153
|
-
name: string;
|
|
154
|
-
gender: "f" | "m";
|
|
155
|
-
portrait: string;
|
|
156
|
-
}>;
|
|
157
|
-
export type CHARACTER_CREATE_DATA = z.infer<typeof CHARACTER_CREATE_SCHEME>;
|
|
158
|
-
export type CHARACTER_CREATE_RESPONSE = Response & {
|
|
159
|
-
character?: GameCharacter<string, number>;
|
|
160
|
-
};
|
|
171
|
+
export type ADMIN_WELL_DELETE = REQUEST_WITH_WELLID;
|
|
161
172
|
export declare const WELL_CHANNEL_COMMAND = "WELL_CHANNEL_COMMAND";
|
|
162
173
|
export declare const WELL_CHANNEL_SHEME: z.ZodObject<{
|
|
163
174
|
_id: z.ZodString;
|
|
@@ -167,6 +178,7 @@ export declare const WELL_CHANNEL_SHEME: z.ZodObject<{
|
|
|
167
178
|
_id: string;
|
|
168
179
|
}>;
|
|
169
180
|
export type WELL_CHANNEL = z.infer<typeof WELL_CHANNEL_SHEME>;
|
|
181
|
+
export type WELL_CHANNEL_RESPONSE = REQUEST_WITH_WELLID;
|
|
170
182
|
export declare const WELL_PERSONAL_SYNC_COMMAND = "WELL_PERSONAL_SYNC_COMMAND";
|
|
171
183
|
export declare const WELL_PERSONAL_SYNC_SHEME: z.ZodObject<{
|
|
172
184
|
_id: z.ZodString;
|
|
@@ -176,6 +188,4 @@ export declare const WELL_PERSONAL_SYNC_SHEME: z.ZodObject<{
|
|
|
176
188
|
_id: string;
|
|
177
189
|
}>;
|
|
178
190
|
export type WELL_PERSONAL_SYNC = z.infer<typeof WELL_CHANNEL_SHEME>;
|
|
179
|
-
export type WELL_PERSONAL_SYNC_RESPONSE =
|
|
180
|
-
well: WellWithPlayer<string, number>;
|
|
181
|
-
};
|
|
191
|
+
export type WELL_PERSONAL_SYNC_RESPONSE = REQUEST_WITH_WELLID;
|
package/dist/communication/ws.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WELL_PERSONAL_SYNC_SHEME = exports.WELL_PERSONAL_SYNC_COMMAND = exports.WELL_CHANNEL_SHEME = exports.WELL_CHANNEL_COMMAND = exports.
|
|
3
|
+
exports.WELL_PERSONAL_SYNC_SHEME = exports.WELL_PERSONAL_SYNC_COMMAND = exports.WELL_CHANNEL_SHEME = exports.WELL_CHANNEL_COMMAND = exports.ADMIN_WELL_DELETE_SCHEME = exports.ADMIN_WELL_DELETE_COMMAND = exports.ADMIN_WELL_CREATE_SCHEME = exports.ADMIN_WELL_CREATE_COMMAND = exports.REQUEST_WITH_WELLID_SCHEME = exports.CHARACTER_CREATE_SCHEME = exports.CHARACTER_CREATE_COMMAND = exports.DEBUG_SOCKET_INFO_RETRIEVE_SCHEME = exports.DEBUG_SOCKET_INFO_RETRIEVE_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 = {
|
|
@@ -53,14 +53,6 @@ exports.POSUPDATE_SCHEME = zod_1.z.strictObject({
|
|
|
53
53
|
pos: exports.GeoJSONPointSchema,
|
|
54
54
|
pre: zod_1.z.number(),
|
|
55
55
|
});
|
|
56
|
-
exports.ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
|
|
57
|
-
exports.ADMIN_WELL_CREATE_SCHEME = zod_1.z.strictObject({
|
|
58
|
-
pos: exports.GeoJSONPointSchema,
|
|
59
|
-
});
|
|
60
|
-
exports.ADMIN_WELL_DELETE_COMMAND = "ADMIN_WELL_DELETE";
|
|
61
|
-
exports.ADMIN_WELL_DELETE_SCHEME = zod_1.z.strictObject({
|
|
62
|
-
_id: zod_1.z.string(),
|
|
63
|
-
});
|
|
64
56
|
//#region DEBUG
|
|
65
57
|
exports.DEBUG_SOCKET_INFO_RETRIEVE_COMMAND = "@D/SIR";
|
|
66
58
|
exports.DEBUG_SOCKET_INFO_RETRIEVE_SCHEME = zod_1.z.strictObject({});
|
|
@@ -72,10 +64,17 @@ exports.CHARACTER_CREATE_SCHEME = zod_1.z.strictObject({
|
|
|
72
64
|
gender: charcter_1.GenderSchema,
|
|
73
65
|
portrait: zod_1.z.string().min(2).max(8),
|
|
74
66
|
});
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
exports.REQUEST_WITH_WELLID_SCHEME = zod_1.z.strictObject({
|
|
68
|
+
_id: zod_1.z.string(),
|
|
69
|
+
});
|
|
70
|
+
exports.ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
|
|
71
|
+
exports.ADMIN_WELL_CREATE_SCHEME = zod_1.z.strictObject({
|
|
72
|
+
pos: exports.GeoJSONPointSchema,
|
|
73
|
+
});
|
|
74
|
+
exports.ADMIN_WELL_DELETE_COMMAND = "ADMIN_WELL_DELETE";
|
|
75
|
+
exports.ADMIN_WELL_DELETE_SCHEME = exports.REQUEST_WITH_WELLID_SCHEME;
|
|
77
76
|
exports.WELL_CHANNEL_COMMAND = "WELL_CHANNEL_COMMAND";
|
|
78
|
-
exports.WELL_CHANNEL_SHEME = exports.
|
|
77
|
+
exports.WELL_CHANNEL_SHEME = exports.REQUEST_WITH_WELLID_SCHEME;
|
|
79
78
|
exports.WELL_PERSONAL_SYNC_COMMAND = "WELL_PERSONAL_SYNC_COMMAND";
|
|
80
|
-
exports.WELL_PERSONAL_SYNC_SHEME = exports.
|
|
79
|
+
exports.WELL_PERSONAL_SYNC_SHEME = exports.REQUEST_WITH_WELLID_SCHEME;
|
|
81
80
|
//#endregion
|