magicrealmsshared 0.3.20 → 0.3.22

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.
@@ -10,7 +10,7 @@ export declare const LOGIN_RESPONSE_COMMAND = "NIGOL";
10
10
  export type LOGIN_RESPONSE_DATA<T> = {
11
11
  code: number;
12
12
  playerData?: Player<T>;
13
- authToken?: Auth_Token<number>;
13
+ authToken?: Auth_Token<number, T>;
14
14
  };
15
15
  export declare const LOGIN_RESPONSE_CODE_SUCCESS = 0;
16
16
  export declare const LOGIN_RESPONSE_CODE_EMAIL_INVALID = 10;
@@ -30,3 +30,5 @@ export type POSUPDATE = {
30
30
  */
31
31
  pre: number;
32
32
  };
33
+ export declare const ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
34
+ export type ADMIN_WELL_CREATE = Pick<Well<string>, "pos"> & Partial<Omit<Well<string>, "_id" | "pos">>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POSUPDATE_COMMAND = exports.DATA_UPDATE_COMMAND = exports.LOGIN_RESPONSE_CODE_SERVER_ERROR = exports.LOGIN_RESPONSE_CODE_PASSWORD_INVALID = exports.LOGIN_RESPONSE_CODE_EMAIL_INVALID = exports.LOGIN_RESPONSE_CODE_SUCCESS = exports.LOGIN_RESPONSE_COMMAND = exports.LOGIN_COMMAND = exports.AUTH_ACK = exports.AUTH = void 0;
3
+ exports.ADMIN_WELL_CREATE_COMMAND = exports.POSUPDATE_COMMAND = exports.DATA_UPDATE_COMMAND = exports.LOGIN_RESPONSE_CODE_SERVER_ERROR = exports.LOGIN_RESPONSE_CODE_PASSWORD_INVALID = exports.LOGIN_RESPONSE_CODE_EMAIL_INVALID = exports.LOGIN_RESPONSE_CODE_SUCCESS = exports.LOGIN_RESPONSE_COMMAND = exports.LOGIN_COMMAND = exports.AUTH_ACK = exports.AUTH = void 0;
4
4
  exports.AUTH = "AUTH";
5
5
  exports.AUTH_ACK = "AUTH_ACK";
6
6
  exports.LOGIN_COMMAND = "LOGIN";
@@ -11,3 +11,4 @@ exports.LOGIN_RESPONSE_CODE_PASSWORD_INVALID = 20;
11
11
  exports.LOGIN_RESPONSE_CODE_SERVER_ERROR = 1000;
12
12
  exports.DATA_UPDATE_COMMAND = "DATA_UPDATE";
13
13
  exports.POSUPDATE_COMMAND = "POSUPDATE";
14
+ exports.ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
@@ -11,7 +11,7 @@ export type WorldObject<T> = ObjectWithId<T> & {
11
11
  export type Privileges = {
12
12
  all?: boolean;
13
13
  };
14
- export type Auth_Token<DateFormat extends Date | number> = {
14
+ export type Auth_Token<DateFormat extends Date | number, T> = {
15
15
  /**
16
16
  * Auth-Token-String
17
17
  *
@@ -24,6 +24,7 @@ export type Auth_Token<DateFormat extends Date | number> = {
24
24
  * @type {Date}
25
25
  */
26
26
  e: DateFormat;
27
+ playerId: T;
27
28
  };
28
29
  export type Player<T> = ObjectWithId<T> & {
29
30
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magicrealmsshared",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {