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