Update api version

This commit is contained in:
Guilherme Werner 2026-04-03 13:19:35 -03:00
parent 5071fdde1f
commit 26dbeb6867
56 changed files with 456 additions and 857 deletions

View file

@ -1,6 +1,5 @@
src/apis/TribufuGeneratedApi.ts
src/apis/index.ts
src/models/Account.ts
src/models/Application.ts
src/models/ApplicationType.ts
src/models/AuthorizeRequest.ts
@ -11,6 +10,7 @@ src/models/CodeChallengeMethod.ts
src/models/CodeResponse.ts
src/models/CreateUser.ts
src/models/CryptoViewModel.ts
src/models/ExternalAccount.ts
src/models/Game.ts
src/models/GameServer.ts
src/models/GameServerCluster.ts
@ -22,12 +22,12 @@ src/models/GroupApplication.ts
src/models/GroupMember.ts
src/models/GroupRank.ts
src/models/HashViewModel.ts
src/models/IdentityProviderType.ts
src/models/IntrospectRequest.ts
src/models/IntrospectResponse.ts
src/models/IpAddress.ts
src/models/LeaderboardItem.ts
src/models/LeaderboardOrder.ts
src/models/LoginProvider.ts
src/models/Package.ts
src/models/PackageRelease.ts
src/models/Product.ts

View file

@ -1,6 +1,6 @@
{
"name": "tribufu",
"version": "1.3.0",
"version": "1.4.2",
"description": "Tribufu JS SDK",
"repository": "https://github.com/tribufu/tribufu-js",
"author": "Tribufu <contact@Tribufu.com>",

File diff suppressed because it is too large Load diff

View file

@ -1,133 +0,0 @@
/* tslint:disable */
/* eslint-disable */
/**
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { LoginProvider } from './LoginProvider';
import {
LoginProviderFromJSON,
LoginProviderFromJSONTyped,
LoginProviderToJSON,
LoginProviderToJSONTyped,
} from './LoginProvider';
/**
*
* @export
* @interface Account
*/
export interface Account {
/**
*
* @type {string}
* @memberof Account
*/
id: string | null;
/**
*
* @type {string}
* @memberof Account
*/
name?: string | null;
/**
*
* @type {LoginProvider}
* @memberof Account
*/
provider: LoginProvider;
/**
*
* @type {string}
* @memberof Account
*/
userId?: string;
/**
*
* @type {boolean}
* @memberof Account
*/
authorized?: boolean;
/**
*
* @type {any}
* @memberof Account
*/
fields?: any | null;
/**
*
* @type {Date}
* @memberof Account
*/
created?: Date;
/**
*
* @type {Date}
* @memberof Account
*/
updated?: Date | null;
}
/**
* Check if a given object implements the Account interface.
*/
export function instanceOfAccount(value: object): value is Account {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('provider' in value) || value['provider'] === undefined) return false;
return true;
}
export function AccountFromJSON(json: any): Account {
return AccountFromJSONTyped(json, false);
}
export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account {
if (json == null) {
return json;
}
return {
'id': json['id'],
'name': json['name'] == null ? undefined : json['name'],
'provider': LoginProviderFromJSON(json['provider']),
'userId': json['user_id'] == null ? undefined : json['user_id'],
'authorized': json['authorized'] == null ? undefined : json['authorized'],
'fields': json['fields'] == null ? undefined : json['fields'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
};
}
export function AccountToJSON(json: any): Account {
return AccountToJSONTyped(json, false);
}
export function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'name': value['name'],
'provider': LoginProviderToJSON(value['provider']),
'user_id': value['userId'],
'authorized': value['authorized'],
'fields': value['fields'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -56,7 +56,7 @@ export interface Application {
* @type {string}
* @memberof Application
*/
organizationId?: string | null;
organizationId?: string;
/**
*
* @type {string}
@ -92,13 +92,19 @@ export interface Application {
* @type {Date}
* @memberof Application
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Application
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof Application
*/
deletedAt?: Date | null;
}
@ -131,8 +137,9 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean
'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'],
'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'],
'slug': json['slug'] == null ? undefined : json['slug'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -157,8 +164,9 @@ export function ApplicationToJSONTyped(value?: Application | null, ignoreDiscrim
'capsule_image_url': value['capsuleImageUrl'],
'library_image_url': value['libraryImageUrl'],
'slug': value['slug'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -18,7 +18,7 @@
* @export
*/
export const ApplicationType = {
Application: 'application',
Software: 'software',
Game: 'game'
} as const;
export type ApplicationType = typeof ApplicationType[keyof typeof ApplicationType];

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -98,13 +98,19 @@ export interface Client {
* @type {Date}
* @memberof Client
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Client
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof Client
*/
deletedAt?: Date | null;
}
@ -138,8 +144,9 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl
'redirects': json['redirects'] == null ? undefined : json['redirects'],
'scopes': json['scopes'] == null ? undefined : json['scopes'],
'permissions': json['permissions'] == null ? undefined : json['permissions'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -164,8 +171,9 @@ export function ClientToJSONTyped(value?: Omit<Client, 'permissions'> | null, ig
'background_url': value['backgroundUrl'],
'redirects': value['redirects'],
'scopes': value['scopes'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -24,7 +24,7 @@ export interface CreateUser {
* @type {string}
* @memberof CreateUser
*/
uuid?: string | null;
uuid?: string;
/**
*
* @type {string}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -0,0 +1,141 @@
/* tslint:disable */
/* eslint-disable */
/**
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { IdentityProviderType } from './IdentityProviderType';
import {
IdentityProviderTypeFromJSON,
IdentityProviderTypeFromJSONTyped,
IdentityProviderTypeToJSON,
IdentityProviderTypeToJSONTyped,
} from './IdentityProviderType';
/**
*
* @export
* @interface ExternalAccount
*/
export interface ExternalAccount {
/**
*
* @type {string}
* @memberof ExternalAccount
*/
userId?: string;
/**
*
* @type {IdentityProviderType}
* @memberof ExternalAccount
*/
provider: IdentityProviderType;
/**
*
* @type {string}
* @memberof ExternalAccount
*/
externalId: string | null;
/**
*
* @type {string}
* @memberof ExternalAccount
*/
name?: string | null;
/**
*
* @type {boolean}
* @memberof ExternalAccount
*/
authorized?: boolean;
/**
*
* @type {{ [key: string]: any | null; }}
* @memberof ExternalAccount
*/
fields?: { [key: string]: any | null; } | null;
/**
*
* @type {Date}
* @memberof ExternalAccount
*/
createdAt?: Date;
/**
*
* @type {Date}
* @memberof ExternalAccount
*/
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof ExternalAccount
*/
deletedAt?: Date | null;
}
/**
* Check if a given object implements the ExternalAccount interface.
*/
export function instanceOfExternalAccount(value: object): value is ExternalAccount {
if (!('provider' in value) || value['provider'] === undefined) return false;
if (!('externalId' in value) || value['externalId'] === undefined) return false;
return true;
}
export function ExternalAccountFromJSON(json: any): ExternalAccount {
return ExternalAccountFromJSONTyped(json, false);
}
export function ExternalAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalAccount {
if (json == null) {
return json;
}
return {
'userId': json['user_id'] == null ? undefined : json['user_id'],
'provider': IdentityProviderTypeFromJSON(json['provider']),
'externalId': json['external_id'],
'name': json['name'] == null ? undefined : json['name'],
'authorized': json['authorized'] == null ? undefined : json['authorized'],
'fields': json['fields'] == null ? undefined : json['fields'],
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
export function ExternalAccountToJSON(json: any): ExternalAccount {
return ExternalAccountToJSONTyped(json, false);
}
export function ExternalAccountToJSONTyped(value?: ExternalAccount | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'user_id': value['userId'],
'provider': IdentityProviderTypeToJSON(value['provider']),
'external_id': value['externalId'],
'name': value['name'],
'authorized': value['authorized'],
'fields': value['fields'],
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -56,7 +56,7 @@ export interface Game {
* @type {string}
* @memberof Game
*/
organizationId?: string | null;
organizationId?: string;
/**
*
* @type {string}
@ -92,13 +92,19 @@ export interface Game {
* @type {Date}
* @memberof Game
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Game
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof Game
*/
deletedAt?: Date | null;
/**
*
* @type {boolean}
@ -173,8 +179,9 @@ export function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game
'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'],
'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'],
'slug': json['slug'] == null ? undefined : json['slug'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
'enableServers': json['enable_servers'] == null ? undefined : json['enable_servers'],
'gamePort': json['game_port'] == null ? undefined : json['game_port'],
'queryPort': json['query_port'] == null ? undefined : json['query_port'],
@ -206,8 +213,9 @@ export function GameToJSONTyped(value?: Game | null, ignoreDiscriminator: boolea
'capsule_image_url': value['capsuleImageUrl'],
'library_image_url': value['libraryImageUrl'],
'slug': value['slug'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
'enable_servers': value['enableServers'],
'game_port': value['gamePort'],
'query_port': value['queryPort'],

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -42,7 +42,7 @@ export interface GameServer {
* @type {string}
* @memberof GameServer
*/
ownerId?: string | null;
ownerId?: string;
/**
*
* @type {string}
@ -90,7 +90,7 @@ export interface GameServer {
* @type {string}
* @memberof GameServer
*/
clusterId?: string | null;
clusterId?: string;
/**
*
* @type {string}
@ -123,10 +123,10 @@ export interface GameServer {
steam?: boolean;
/**
*
* @type {string}
* @type {number}
* @memberof GameServer
*/
discordServerId?: string | null;
discordServerId?: number | null;
/**
*
* @type {string}
@ -138,13 +138,19 @@ export interface GameServer {
* @type {Date}
* @memberof GameServer
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof GameServer
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof GameServer
*/
deletedAt?: Date | null;
}
/**
@ -186,8 +192,9 @@ export function GameServerFromJSONTyped(json: any, ignoreDiscriminator: boolean)
'steam': json['steam'] == null ? undefined : json['steam'],
'discordServerId': json['discord_server_id'] == null ? undefined : json['discord_server_id'],
'youtubeVideoUrl': json['youtube_video_url'] == null ? undefined : json['youtube_video_url'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -221,8 +228,9 @@ export function GameServerToJSONTyped(value?: GameServer | null, ignoreDiscrimin
'steam': value['steam'],
'discord_server_id': value['discordServerId'],
'youtube_video_url': value['youtubeVideoUrl'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -63,10 +63,10 @@ export interface GameServerCluster {
ownerId?: string;
/**
*
* @type {string}
* @type {number}
* @memberof GameServerCluster
*/
discordServerId?: string | null;
discordServerId?: number | null;
/**
*
* @type {string}
@ -96,13 +96,19 @@ export interface GameServerCluster {
* @type {Date}
* @memberof GameServerCluster
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof GameServerCluster
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof GameServerCluster
*/
deletedAt?: Date | null;
}
/**
@ -135,8 +141,9 @@ export function GameServerClusterFromJSONTyped(json: any, ignoreDiscriminator: b
'tags': json['tags'] == null ? undefined : json['tags'],
'commentCount': json['comment_count'] == null ? undefined : json['comment_count'],
'serverCount': json['server_count'] == null ? undefined : json['server_count'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -163,8 +170,9 @@ export function GameServerClusterToJSONTyped(value?: GameServerCluster | null, i
'tags': value['tags'],
'comment_count': value['commentCount'],
'server_count': value['serverCount'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -74,7 +74,7 @@ export interface GameServerQuery {
* @type {Date}
* @memberof GameServerQuery
*/
created?: Date;
createdAt?: Date;
}
@ -103,7 +103,7 @@ export function GameServerQueryFromJSONTyped(json: any, ignoreDiscriminator: boo
'currentPlayers': json['current_players'] == null ? undefined : json['current_players'],
'maxPlayers': json['max_players'] == null ? undefined : json['max_players'],
'motd': json['motd'] == null ? undefined : json['motd'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
};
}
@ -125,7 +125,7 @@ export function GameServerQueryToJSONTyped(value?: GameServerQuery | null, ignor
'current_players': value['currentPlayers'],
'max_players': value['maxPlayers'],
'motd': value['motd'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -108,13 +108,19 @@ export interface Group {
* @type {Date}
* @memberof Group
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Group
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof Group
*/
deletedAt?: Date | null;
}
/**
@ -149,8 +155,9 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
'memberCount': json['member_count'] == null ? undefined : json['member_count'],
'followerCount': json['follower_count'] == null ? undefined : json['follower_count'],
'viewCount': json['view_count'] == null ? undefined : json['view_count'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -179,8 +186,9 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool
'member_count': value['memberCount'],
'follower_count': value['followerCount'],
'view_count': value['viewCount'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -33,12 +33,6 @@ export interface GroupMember {
* @memberof GroupMember
*/
id?: string;
/**
*
* @type {string}
* @memberof GroupMember
*/
uuid?: string;
/**
*
* @type {string}
@ -51,24 +45,12 @@ export interface GroupMember {
* @memberof GroupMember
*/
displayName?: string | null;
/**
*
* @type {boolean}
* @memberof GroupMember
*/
verified?: boolean;
/**
*
* @type {string}
* @memberof GroupMember
*/
photoUrl?: string | null;
/**
*
* @type {Date}
* @memberof GroupMember
*/
lastOnline?: Date | null;
/**
*
* @type {GroupRank}
@ -103,12 +85,9 @@ export function GroupMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean
return {
'id': json['id'] == null ? undefined : json['id'],
'uuid': json['uuid'] == null ? undefined : json['uuid'],
'name': json['name'] == null ? undefined : json['name'],
'displayName': json['display_name'] == null ? undefined : json['display_name'],
'verified': json['verified'] == null ? undefined : json['verified'],
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
'lastOnline': json['last_online'] == null ? undefined : (new Date(json['last_online'])),
'rank': json['rank'] == null ? undefined : GroupRankFromJSON(json['rank']),
'since': json['since'] == null ? undefined : (new Date(json['since'])),
};
@ -126,12 +105,9 @@ export function GroupMemberToJSONTyped(value?: GroupMember | null, ignoreDiscrim
return {
'id': value['id'],
'uuid': value['uuid'],
'name': value['name'],
'display_name': value['displayName'],
'verified': value['verified'],
'photo_url': value['photoUrl'],
'last_online': value['lastOnline'] == null ? undefined : ((value['lastOnline'] as any).toISOString()),
'rank': GroupRankToJSON(value['rank']),
'since': value['since'] == null ? undefined : ((value['since']).toISOString()),
};

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -0,0 +1,58 @@
/* tslint:disable */
/* eslint-disable */
/**
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
*/
export const IdentityProviderType = {
Steam: 'steam',
Epic: 'epic',
Discord: 'discord',
Microsoft: 'microsoft',
Playstation: 'playstation',
Google: 'google',
Apple: 'apple'
} as const;
export type IdentityProviderType = typeof IdentityProviderType[keyof typeof IdentityProviderType];
export function instanceOfIdentityProviderType(value: any): boolean {
for (const key in IdentityProviderType) {
if (Object.prototype.hasOwnProperty.call(IdentityProviderType, key)) {
if (IdentityProviderType[key as keyof typeof IdentityProviderType] === value) {
return true;
}
}
}
return false;
}
export function IdentityProviderTypeFromJSON(json: any): IdentityProviderType {
return IdentityProviderTypeFromJSONTyped(json, false);
}
export function IdentityProviderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityProviderType {
return json as IdentityProviderType;
}
export function IdentityProviderTypeToJSON(value?: IdentityProviderType | null): any {
return value as any;
}
export function IdentityProviderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): IdentityProviderType {
return value as IdentityProviderType;
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -1,58 +0,0 @@
/* tslint:disable */
/* eslint-disable */
/**
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
*/
export const LoginProvider = {
Steam: 'steam',
Epic: 'epic',
Discord: 'discord',
Microsoft: 'microsoft',
Playstation: 'playstation',
Google: 'google',
Apple: 'apple'
} as const;
export type LoginProvider = typeof LoginProvider[keyof typeof LoginProvider];
export function instanceOfLoginProvider(value: any): boolean {
for (const key in LoginProvider) {
if (Object.prototype.hasOwnProperty.call(LoginProvider, key)) {
if (LoginProvider[key as keyof typeof LoginProvider] === value) {
return true;
}
}
}
return false;
}
export function LoginProviderFromJSON(json: any): LoginProvider {
return LoginProviderFromJSONTyped(json, false);
}
export function LoginProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginProvider {
return json as LoginProvider;
}
export function LoginProviderToJSON(value?: LoginProvider | null): any {
return value as any;
}
export function LoginProviderToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginProvider {
return value as LoginProvider;
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -62,13 +62,13 @@ export interface Package {
* @type {string}
* @memberof Package
*/
applicationId?: string | null;
applicationId?: string;
/**
*
* @type {string}
* @memberof Package
*/
categoryId?: string | null;
categoryId?: string;
/**
*
* @type {number}
@ -92,13 +92,19 @@ export interface Package {
* @type {Date}
* @memberof Package
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Package
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof Package
*/
deletedAt?: Date | null;
}
/**
@ -130,8 +136,9 @@ export function PackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
'downloadCount': json['download_count'] == null ? undefined : json['download_count'],
'lastDownload': json['last_download'] == null ? undefined : (new Date(json['last_download'])),
'releases': json['releases'] == null ? undefined : ((json['releases'] as Array<any>).map(PackageReleaseFromJSON)),
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -156,8 +163,9 @@ export function PackageToJSONTyped(value?: Package | null, ignoreDiscriminator:
'download_count': value['downloadCount'],
'last_download': value['lastDownload'] == null ? undefined : ((value['lastDownload'] as any).toISOString()),
'releases': value['releases'] == null ? undefined : ((value['releases'] as Array<any>).map(PackageReleaseToJSON)),
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -62,13 +62,19 @@ export interface PackageRelease {
* @type {Date}
* @memberof PackageRelease
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof PackageRelease
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof PackageRelease
*/
deletedAt?: Date | null;
}
/**
@ -94,8 +100,9 @@ export function PackageReleaseFromJSONTyped(json: any, ignoreDiscriminator: bool
'packageId': json['package_id'] == null ? undefined : json['package_id'],
'notes': json['notes'] == null ? undefined : json['notes'],
'files': json['files'] == null ? undefined : ((json['files'] as Array<any>).map(StorageFileFromJSON)),
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -114,8 +121,9 @@ export function PackageReleaseToJSONTyped(value?: Omit<PackageRelease, 'files'>
'version': value['version'],
'package_id': value['packageId'],
'notes': value['notes'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -46,6 +46,12 @@ export interface Product {
* @memberof Product
*/
name: string | null;
/**
*
* @type {string}
* @memberof Product
*/
sku?: string | null;
/**
*
* @type {string}
@ -70,12 +76,6 @@ export interface Product {
* @memberof Product
*/
imageUrl?: string | null;
/**
*
* @type {boolean}
* @memberof Product
*/
isPhysical?: boolean;
/**
*
* @type {Array<ProductPrice>}
@ -87,13 +87,19 @@ export interface Product {
* @type {Date}
* @memberof Product
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Product
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof Product
*/
deletedAt?: Date | null;
}
@ -118,14 +124,15 @@ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
'id': json['id'] == null ? undefined : json['id'],
'name': json['name'],
'sku': json['sku'] == null ? undefined : json['sku'],
'description': json['description'] == null ? undefined : json['description'],
'type': json['type'] == null ? undefined : ProductTypeFromJSON(json['type']),
'slug': json['slug'] == null ? undefined : json['slug'],
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
'isPhysical': json['is_physical'] == null ? undefined : json['is_physical'],
'prices': json['prices'] == null ? undefined : ((json['prices'] as Array<any>).map(ProductPriceFromJSON)),
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -142,14 +149,15 @@ export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator:
'id': value['id'],
'name': value['name'],
'sku': value['sku'],
'description': value['description'],
'type': ProductTypeToJSON(value['type']),
'slug': value['slug'],
'image_url': value['imageUrl'],
'is_physical': value['isPhysical'],
'prices': value['prices'] == null ? undefined : ((value['prices'] as Array<any>).map(ProductPriceToJSON)),
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -30,7 +30,7 @@ export interface ProductPrice {
* @type {number}
* @memberof ProductPrice
*/
amount?: number;
price?: number;
/**
*
* @type {number}
@ -58,7 +58,7 @@ export function ProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolea
return {
'currency': json['currency'],
'amount': json['amount'] == null ? undefined : json['amount'],
'price': json['price'] == null ? undefined : json['price'],
'renewal': json['renewal'] == null ? undefined : json['renewal'],
};
}
@ -75,7 +75,7 @@ export function ProductPriceToJSONTyped(value?: ProductPrice | null, ignoreDiscr
return {
'currency': value['currency'],
'amount': value['amount'],
'price': value['price'],
'renewal': value['renewal'],
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -24,109 +24,79 @@ export interface Profile {
* @type {string}
* @memberof Profile
*/
id?: string;
readonly id?: string;
/**
*
* @type {string}
* @memberof Profile
*/
uuid?: string;
readonly name?: string | null;
/**
*
* @type {string}
* @memberof Profile
*/
name?: string | null;
/**
*
* @type {string}
* @memberof Profile
*/
displayName?: string | null;
/**
*
* @type {boolean}
* @memberof Profile
*/
verified?: boolean;
readonly displayName?: string | null;
/**
*
* @type {number}
* @memberof Profile
*/
level?: number;
readonly level?: number;
/**
*
* @type {number}
* @memberof Profile
*/
experience?: number;
/**
*
* @type {boolean}
* @memberof Profile
*/
publicBirthday?: boolean;
readonly experience?: number;
/**
*
* @type {Date}
* @memberof Profile
*/
birthday?: Date | null;
readonly birthday?: Date | null;
/**
*
* @type {number}
* @memberof Profile
*/
points?: number;
readonly points?: number;
/**
*
* @type {string}
* @memberof Profile
*/
location?: string | null;
readonly photoUrl?: string | null;
/**
*
* @type {string}
* @memberof Profile
*/
photoUrl?: string | null;
/**
*
* @type {string}
* @memberof Profile
*/
bannerUrl?: string | null;
readonly bannerUrl?: string | null;
/**
*
* @type {Date}
* @memberof Profile
*/
lastOnline?: Date | null;
readonly lastOnline?: Date | null;
/**
*
* @type {string}
* @memberof Profile
*/
biography?: string | null;
/**
*
* @type {number}
* @memberof Profile
*/
viewCount?: number;
readonly biography?: string | null;
/**
*
* @type {Date}
* @memberof Profile
*/
created?: Date;
readonly createdAt?: Date;
/**
*
* @type {Date}
* @memberof Profile
*/
updated?: Date | null;
readonly updatedAt?: Date | null;
}
/**
@ -147,23 +117,18 @@ export function ProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
return {
'id': json['id'] == null ? undefined : json['id'],
'uuid': json['uuid'] == null ? undefined : json['uuid'],
'name': json['name'] == null ? undefined : json['name'],
'displayName': json['display_name'] == null ? undefined : json['display_name'],
'verified': json['verified'] == null ? undefined : json['verified'],
'level': json['level'] == null ? undefined : json['level'],
'experience': json['experience'] == null ? undefined : json['experience'],
'publicBirthday': json['public_birthday'] == null ? undefined : json['public_birthday'],
'birthday': json['birthday'] == null ? undefined : (new Date(json['birthday'])),
'points': json['points'] == null ? undefined : json['points'],
'location': json['location'] == null ? undefined : json['location'],
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
'lastOnline': json['last_online'] == null ? undefined : (new Date(json['last_online'])),
'biography': json['biography'] == null ? undefined : json['biography'],
'viewCount': json['view_count'] == null ? undefined : json['view_count'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
};
}
@ -171,31 +136,13 @@ export function ProfileToJSON(json: any): Profile {
return ProfileToJSONTyped(json, false);
}
export function ProfileToJSONTyped(value?: Profile | null, ignoreDiscriminator: boolean = false): any {
export function ProfileToJSONTyped(value?: Omit<Profile, 'id'|'name'|'display_name'|'level'|'experience'|'birthday'|'points'|'photo_url'|'banner_url'|'last_online'|'biography'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'uuid': value['uuid'],
'name': value['name'],
'display_name': value['displayName'],
'verified': value['verified'],
'level': value['level'],
'experience': value['experience'],
'public_birthday': value['publicBirthday'],
'birthday': value['birthday'] == null ? undefined : ((value['birthday'] as any).toISOString().substring(0,10)),
'points': value['points'],
'location': value['location'],
'photo_url': value['photoUrl'],
'banner_url': value['bannerUrl'],
'last_online': value['lastOnline'] == null ? undefined : ((value['lastOnline'] as any).toISOString()),
'biography': value['biography'],
'view_count': value['viewCount'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -50,7 +50,7 @@ export interface Search {
* @type {string}
* @memberof Search
*/
gameId?: string | null;
gameId?: string;
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -66,13 +66,19 @@ export interface StorageFile {
* @type {Date}
* @memberof StorageFile
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof StorageFile
*/
updated?: Date | null;
updatedAt?: Date | null;
/**
*
* @type {Date}
* @memberof StorageFile
*/
deletedAt?: Date | null;
}
/**
@ -102,8 +108,9 @@ export function StorageFileFromJSONTyped(json: any, ignoreDiscriminator: boolean
'size': json['size'] == null ? undefined : json['size'],
'hash': json['hash'] == null ? undefined : json['hash'],
'etag': json['etag'] == null ? undefined : json['etag'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
};
}
@ -125,8 +132,9 @@ export function StorageFileToJSONTyped(value?: StorageFile | null, ignoreDiscrim
'size': value['size'],
'hash': value['hash'],
'etag': value['etag'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -33,12 +33,6 @@ export interface UserInfo {
* @memberof UserInfo
*/
id?: string;
/**
*
* @type {string}
* @memberof UserInfo
*/
uuid?: string;
/**
*
* @type {string}
@ -56,7 +50,7 @@ export interface UserInfo {
* @type {string}
* @memberof UserInfo
*/
email?: string | null;
emailAddress?: string | null;
/**
*
* @type {boolean}
@ -104,13 +98,13 @@ export interface UserInfo {
* @type {Date}
* @memberof UserInfo
*/
created?: Date;
createdAt?: Date;
/**
*
* @type {Date}
* @memberof UserInfo
*/
updated?: Date | null;
updatedAt?: Date | null;
}
@ -134,10 +128,9 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
return {
'id': json['id'] == null ? undefined : json['id'],
'uuid': json['uuid'] == null ? undefined : json['uuid'],
'name': json['name'],
'displayName': json['display_name'] == null ? undefined : json['display_name'],
'email': json['email'] == null ? undefined : json['email'],
'emailAddress': json['email_address'] == null ? undefined : json['email_address'],
'emailVerified': json['email_verified'] == null ? undefined : json['email_verified'],
'type': json['type'] == null ? undefined : UserTypeFromJSON(json['type']),
'language': json['language'] == null ? undefined : json['language'],
@ -145,8 +138,8 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'currency': json['currency'] == null ? undefined : json['currency'],
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
'permissions': json['permissions'] == null ? undefined : json['permissions'],
'created': json['created'] == null ? undefined : (new Date(json['created'])),
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
};
}
@ -162,10 +155,9 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator
return {
'id': value['id'],
'uuid': value['uuid'],
'name': value['name'],
'display_name': value['displayName'],
'email': value['email'],
'email_address': value['emailAddress'],
'email_verified': value['emailVerified'],
'type': UserTypeToJSON(value['type']),
'language': value['language'],
@ -173,8 +165,8 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator
'currency': value['currency'],
'photo_url': value['photoUrl'],
'permissions': value['permissions'],
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
};
}

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View file

@ -1,6 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export * from './Account';
export * from './Application';
export * from './ApplicationType';
export * from './AuthorizeRequest';
@ -11,6 +10,7 @@ export * from './CodeChallengeMethod';
export * from './CodeResponse';
export * from './CreateUser';
export * from './CryptoViewModel';
export * from './ExternalAccount';
export * from './Game';
export * from './GameServer';
export * from './GameServerCluster';
@ -22,12 +22,12 @@ export * from './GroupApplication';
export * from './GroupMember';
export * from './GroupRank';
export * from './HashViewModel';
export * from './IdentityProviderType';
export * from './IntrospectRequest';
export * from './IntrospectResponse';
export * from './IpAddress';
export * from './LeaderboardItem';
export * from './LeaderboardOrder';
export * from './LoginProvider';
export * from './Package';
export * from './PackageRelease';
export * from './Product';

View file

@ -4,7 +4,7 @@
* Tribufu API
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.2
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).