@armoury/fivem-roleplay-gamemode-common 1.0.26 → 1.0.27
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/cjs/shared/models/account/account.js +13 -0
- package/dist/cjs/shared/models/account/index.js +5 -0
- package/dist/cjs/shared/models/character/character.js +18 -0
- package/dist/cjs/shared/models/character/index.js +17 -0
- package/dist/cjs/shared/models/index.js +2 -1
- package/dist/esm/shared/models/account/account.js +10 -0
- package/dist/esm/shared/models/account/index.js +1 -0
- package/dist/esm/shared/models/character/character.js +15 -0
- package/dist/esm/shared/models/character/index.js +1 -0
- package/dist/esm/shared/models/index.js +2 -1
- package/dist/types/shared/models/account/account.d.ts +13 -0
- package/dist/types/shared/models/account/index.d.ts +1 -0
- package/dist/types/shared/models/character/character.d.ts +30 -0
- package/dist/types/shared/models/character/index.d.ts +1 -0
- package/dist/types/shared/models/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Account = void 0;
|
|
4
|
+
var Account = /** @class */ (function () {
|
|
5
|
+
function Account(id, lastKnownName, platformId, email) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.lastKnownName = lastKnownName;
|
|
8
|
+
this.platformId = platformId;
|
|
9
|
+
this.email = email;
|
|
10
|
+
}
|
|
11
|
+
return Account;
|
|
12
|
+
}());
|
|
13
|
+
exports.Account = Account;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Character = void 0;
|
|
4
|
+
var Character = /** @class */ (function () {
|
|
5
|
+
function Character(id, accountId, hoursPlayed, language, firstName, lastName, lastLogoutPosition, lastLogoutRotation, lastActivity) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.accountId = accountId;
|
|
8
|
+
this.hoursPlayed = hoursPlayed;
|
|
9
|
+
this.language = language;
|
|
10
|
+
this.firstName = firstName;
|
|
11
|
+
this.lastName = lastName;
|
|
12
|
+
this.lastLogoutPosition = lastLogoutPosition;
|
|
13
|
+
this.lastLogoutRotation = lastLogoutRotation;
|
|
14
|
+
this.lastActivity = lastActivity;
|
|
15
|
+
}
|
|
16
|
+
return Character;
|
|
17
|
+
}());
|
|
18
|
+
exports.Character = Character;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./character"), exports);
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./account"), exports);
|
|
18
|
+
__exportStar(require("./character"), exports);
|
|
18
19
|
__exportStar(require("./businesses"), exports);
|
|
19
20
|
__exportStar(require("./items"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var Account = /** @class */ (function () {
|
|
2
|
+
function Account(id, lastKnownName, platformId, email) {
|
|
3
|
+
this.id = id;
|
|
4
|
+
this.lastKnownName = lastKnownName;
|
|
5
|
+
this.platformId = platformId;
|
|
6
|
+
this.email = email;
|
|
7
|
+
}
|
|
8
|
+
return Account;
|
|
9
|
+
}());
|
|
10
|
+
export { Account };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Account } from './account';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var Character = /** @class */ (function () {
|
|
2
|
+
function Character(id, accountId, hoursPlayed, language, firstName, lastName, lastLogoutPosition, lastLogoutRotation, lastActivity) {
|
|
3
|
+
this.id = id;
|
|
4
|
+
this.accountId = accountId;
|
|
5
|
+
this.hoursPlayed = hoursPlayed;
|
|
6
|
+
this.language = language;
|
|
7
|
+
this.firstName = firstName;
|
|
8
|
+
this.lastName = lastName;
|
|
9
|
+
this.lastLogoutPosition = lastLogoutPosition;
|
|
10
|
+
this.lastLogoutRotation = lastLogoutRotation;
|
|
11
|
+
this.lastActivity = lastActivity;
|
|
12
|
+
}
|
|
13
|
+
return Character;
|
|
14
|
+
}());
|
|
15
|
+
export { Character };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './character';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Account {
|
|
2
|
+
readonly id: number;
|
|
3
|
+
readonly lastKnownName: string;
|
|
4
|
+
readonly platformId: string;
|
|
5
|
+
readonly email?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class Account {
|
|
8
|
+
readonly id: number;
|
|
9
|
+
readonly lastKnownName: string;
|
|
10
|
+
readonly platformId: string;
|
|
11
|
+
readonly email?: string;
|
|
12
|
+
constructor(id: number, lastKnownName: string, platformId: string, email?: string);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Account } from './account';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Character {
|
|
2
|
+
readonly id: number;
|
|
3
|
+
readonly accountId: number;
|
|
4
|
+
readonly hoursPlayed: number;
|
|
5
|
+
readonly language: string;
|
|
6
|
+
readonly firstName: string;
|
|
7
|
+
readonly lastName: string;
|
|
8
|
+
readonly lastLogoutPosition: Position;
|
|
9
|
+
readonly lastLogoutRotation: Rotation;
|
|
10
|
+
readonly lastActivity: Date;
|
|
11
|
+
}
|
|
12
|
+
export declare class Character {
|
|
13
|
+
readonly id: number;
|
|
14
|
+
readonly accountId: number;
|
|
15
|
+
readonly hoursPlayed: number;
|
|
16
|
+
readonly language: string;
|
|
17
|
+
readonly firstName: string;
|
|
18
|
+
readonly lastName: string;
|
|
19
|
+
readonly lastLogoutPosition: Position;
|
|
20
|
+
readonly lastLogoutRotation: Rotation;
|
|
21
|
+
readonly lastActivity: Date;
|
|
22
|
+
constructor(id: number, accountId: number, hoursPlayed: number, language: string, firstName: string, lastName: string, lastLogoutPosition: Position, lastLogoutRotation: Rotation, lastActivity: Date);
|
|
23
|
+
}
|
|
24
|
+
type Position = {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
z: number;
|
|
28
|
+
};
|
|
29
|
+
type Rotation = Position;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './character';
|
package/package.json
CHANGED