mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-16 10:44:17 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
1a8ffe89bc | |||
6b7525c7b0 | |||
aff56dfad6 |
@ -8,9 +8,7 @@ dotenv.config();
|
||||
|
||||
async function main() {
|
||||
const tribufu = TribufuApi.fromEnv();
|
||||
console.log(
|
||||
await tribufu.getServerByAddressAndQueryPort("mine.tribufu.com", 25565),
|
||||
);
|
||||
console.log(await tribufu.getUserInfo());
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tribufu",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "Tribufu JS SDK",
|
||||
"repository": "https://github.com/Tribufu/TribufuJs",
|
||||
"author": "Tribufu <contact@Tribufu.com>",
|
||||
|
@ -4,7 +4,7 @@
|
||||
"documentGenerator": {
|
||||
"fromDocument": {
|
||||
"json": "",
|
||||
"url": "https://api.tribufu.com/v1/openapi.json",
|
||||
"url": "http://localhost:5000/openapi.json",
|
||||
"output": null,
|
||||
"newLineBehavior": "Auto"
|
||||
}
|
||||
|
@ -2713,6 +2713,29 @@ export interface Account {
|
||||
updated: string | null;
|
||||
}
|
||||
|
||||
export interface Application {
|
||||
id: string;
|
||||
name: string | null;
|
||||
description: string | null;
|
||||
type: ApplicationType;
|
||||
organization_id: string | null;
|
||||
icon_url: string | null;
|
||||
banner_url: string | null;
|
||||
capsule_image_url: string | null;
|
||||
library_image_url: string | null;
|
||||
parent_id: string | null;
|
||||
slug: string | null;
|
||||
visibility: number;
|
||||
password: string | null;
|
||||
primary: number;
|
||||
user_count: number;
|
||||
achievement_count: number;
|
||||
badge_count: number | null;
|
||||
download_count: number;
|
||||
created: string;
|
||||
updated: string | null;
|
||||
}
|
||||
|
||||
export enum ApplicationType {
|
||||
Application = "application",
|
||||
Game = "game",
|
||||
@ -2830,6 +2853,7 @@ export interface Group {
|
||||
export interface GroupGame {
|
||||
group_id: string;
|
||||
application_id: string;
|
||||
application: Application;
|
||||
stats: any | null;
|
||||
acquired: string;
|
||||
last_used: string | null;
|
||||
|
Reference in New Issue
Block a user