mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-07 20:06:21 +00:00
Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| de369de94b | |||
| 26dbeb6867 | |||
| 5071fdde1f | |||
| ad1a0f1fae | |||
| ff962a166e |
66 changed files with 932 additions and 1816 deletions
1
.npmrc
Normal file
1
.npmrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
min-release-age=7
|
||||
|
|
@ -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
|
||||
|
|
@ -18,19 +18,21 @@ src/models/GameServerQuery.ts
|
|||
src/models/GameServerStatus.ts
|
||||
src/models/GrantType.ts
|
||||
src/models/Group.ts
|
||||
src/models/GroupGame.ts
|
||||
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/ModelFile.ts
|
||||
src/models/Package.ts
|
||||
src/models/PackageRelease.ts
|
||||
src/models/Product.ts
|
||||
src/models/ProductPrice.ts
|
||||
src/models/ProductType.ts
|
||||
src/models/Profile.ts
|
||||
src/models/ProfileGame.ts
|
||||
src/models/ProfileGroup.ts
|
||||
|
|
@ -39,8 +41,7 @@ src/models/RevokeRequest.ts
|
|||
src/models/Search.ts
|
||||
src/models/SearchType.ts
|
||||
src/models/ServerMetrics.ts
|
||||
src/models/Subscription.ts
|
||||
src/models/SubscriptionPrice.ts
|
||||
src/models/StorageFile.ts
|
||||
src/models/TokenHintType.ts
|
||||
src/models/TokenRequest.ts
|
||||
src/models/TokenResponse.ts
|
||||
|
|
|
|||
14
examples/anonymous.js
Normal file
14
examples/anonymous.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
// SPDX-License-Identifier: MIT AND Apache-2.0
|
||||
|
||||
import dotenv from "dotenv";
|
||||
import { TribufuApi } from "../build/index.mjs";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
async function main() {
|
||||
const tribufu = TribufuApi.default();
|
||||
console.log(await tribufu.getCurrentIpAddress());
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tribufu",
|
||||
"version": "1.2.0",
|
||||
"version": "1.4.3",
|
||||
"description": "Tribufu JS SDK",
|
||||
"repository": "https://github.com/tribufu/tribufu-js",
|
||||
"author": "Tribufu <contact@Tribufu.com>",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env pwsh
|
||||
|
||||
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
|
||||
-i http://localhost:5000/openapi.json `
|
||||
-i https://api.tribufu.com/openapi.json `
|
||||
-g typescript-fetch `
|
||||
-o . `
|
||||
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,133 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -57,12 +57,6 @@ export interface Client {
|
|||
* @memberof Client
|
||||
*/
|
||||
trusted?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Client
|
||||
*/
|
||||
packageId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
@ -81,12 +75,6 @@ export interface Client {
|
|||
* @memberof Client
|
||||
*/
|
||||
backgroundUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Client
|
||||
*/
|
||||
customSchema?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
@ -110,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;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -144,16 +138,15 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl
|
|||
'type': json['type'] == null ? undefined : ClientTypeFromJSON(json['type']),
|
||||
'organizationId': json['organization_id'] == null ? undefined : json['organization_id'],
|
||||
'trusted': json['trusted'] == null ? undefined : json['trusted'],
|
||||
'packageId': json['package_id'] == null ? undefined : json['package_id'],
|
||||
'websiteUrl': json['website_url'] == null ? undefined : json['website_url'],
|
||||
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
|
||||
'backgroundUrl': json['background_url'] == null ? undefined : json['background_url'],
|
||||
'customSchema': json['custom_schema'] == null ? undefined : json['custom_schema'],
|
||||
'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'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -173,15 +166,14 @@ export function ClientToJSONTyped(value?: Omit<Client, 'permissions'> | null, ig
|
|||
'type': ClientTypeToJSON(value['type']),
|
||||
'organization_id': value['organizationId'],
|
||||
'trusted': value['trusted'],
|
||||
'package_id': value['packageId'],
|
||||
'website_url': value['websiteUrl'],
|
||||
'photo_url': value['photoUrl'],
|
||||
'background_url': value['backgroundUrl'],
|
||||
'custom_schema': value['customSchema'],
|
||||
'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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
141
src/models/ExternalAccount.ts
Normal file
141
src/models/ExternalAccount.ts
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -42,7 +42,7 @@ export interface Group {
|
|||
* @type {string}
|
||||
* @memberof Group
|
||||
*/
|
||||
tag: string | null;
|
||||
tag?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -122,7 +128,6 @@ export interface Group {
|
|||
*/
|
||||
export function instanceOfGroup(value: object): value is Group {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('tag' in value) || value['tag'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -139,7 +144,7 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
|||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
||||
'name': json['name'],
|
||||
'tag': json['tag'],
|
||||
'tag': json['tag'] == null ? undefined : json['tag'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'type': json['type'] == null ? undefined : json['type'],
|
||||
'privacy': json['privacy'] == null ? undefined : json['privacy'],
|
||||
|
|
@ -150,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'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -180,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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -31,66 +31,66 @@ import {
|
|||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface GroupGame
|
||||
* @interface GroupApplication
|
||||
*/
|
||||
export interface GroupGame {
|
||||
export interface GroupApplication {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
groupId: string;
|
||||
/**
|
||||
*
|
||||
* @type {Group}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
group?: Group;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
applicationId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Application}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
application?: Application;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
stats?: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
acquired?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof GroupGame
|
||||
* @memberof GroupApplication
|
||||
*/
|
||||
lastUsed?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the GroupGame interface.
|
||||
* Check if a given object implements the GroupApplication interface.
|
||||
*/
|
||||
export function instanceOfGroupGame(value: object): value is GroupGame {
|
||||
export function instanceOfGroupApplication(value: object): value is GroupApplication {
|
||||
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function GroupGameFromJSON(json: any): GroupGame {
|
||||
return GroupGameFromJSONTyped(json, false);
|
||||
export function GroupApplicationFromJSON(json: any): GroupApplication {
|
||||
return GroupApplicationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GroupGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupGame {
|
||||
export function GroupApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupApplication {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
|
|
@ -106,11 +106,11 @@ export function GroupGameFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||
};
|
||||
}
|
||||
|
||||
export function GroupGameToJSON(json: any): GroupGame {
|
||||
return GroupGameToJSONTyped(json, false);
|
||||
export function GroupApplicationToJSON(json: any): GroupApplication {
|
||||
return GroupApplicationToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GroupGameToJSONTyped(value?: GroupGame | null, ignoreDiscriminator: boolean = false): any {
|
||||
export function GroupApplicationToJSONTyped(value?: GroupApplication | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
58
src/models/IdentityProviderType.ts
Normal file
58
src/models/IdentityProviderType.ts
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -43,6 +43,12 @@ export interface IpAddress {
|
|||
* @memberof IpAddress
|
||||
*/
|
||||
reserved?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IpAddress
|
||||
*/
|
||||
banned?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
@ -72,7 +78,7 @@ export interface IpAddress {
|
|||
* @type {string}
|
||||
* @memberof IpAddress
|
||||
*/
|
||||
region?: string | null;
|
||||
province?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
@ -150,11 +156,12 @@ export function IpAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||
'version': json['version'] == null ? undefined : json['version'],
|
||||
'network': json['network'] == null ? undefined : json['network'],
|
||||
'reserved': json['reserved'] == null ? undefined : json['reserved'],
|
||||
'banned': json['banned'] == null ? undefined : json['banned'],
|
||||
'asn': json['asn'] == null ? undefined : json['asn'],
|
||||
'isp': json['isp'] == null ? undefined : json['isp'],
|
||||
'continent': json['continent'] == null ? undefined : json['continent'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'region': json['region'] == null ? undefined : json['region'],
|
||||
'province': json['province'] == null ? undefined : json['province'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
|
||||
'callingCode': json['calling_code'] == null ? undefined : json['calling_code'],
|
||||
|
|
@ -182,11 +189,12 @@ export function IpAddressToJSONTyped(value?: IpAddress | null, ignoreDiscriminat
|
|||
'version': value['version'],
|
||||
'network': value['network'],
|
||||
'reserved': value['reserved'],
|
||||
'banned': value['banned'],
|
||||
'asn': value['asn'],
|
||||
'isp': value['isp'],
|
||||
'continent': value['continent'],
|
||||
'country': value['country'],
|
||||
'region': value['region'],
|
||||
'province': value['province'],
|
||||
'city': value['city'],
|
||||
'postal_code': value['postalCode'],
|
||||
'calling_code': value['callingCode'],
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -1,58 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.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;
|
||||
}
|
||||
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface LoginRequest
|
||||
*/
|
||||
export interface LoginRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginRequest
|
||||
*/
|
||||
login?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginRequest
|
||||
*/
|
||||
password?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the LoginRequest interface.
|
||||
*/
|
||||
export function instanceOfLoginRequest(value: object): value is LoginRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function LoginRequestFromJSON(json: any): LoginRequest {
|
||||
return LoginRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'login': json['login'] == null ? undefined : json['login'],
|
||||
'password': json['password'] == null ? undefined : json['password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function LoginRequestToJSON(json: any): LoginRequest {
|
||||
return LoginRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'login': value['login'],
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.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 { UserInfo } from './UserInfo';
|
||||
import {
|
||||
UserInfoFromJSON,
|
||||
UserInfoFromJSONTyped,
|
||||
UserInfoToJSON,
|
||||
UserInfoToJSONTyped,
|
||||
} from './UserInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface LoginResponse
|
||||
*/
|
||||
export interface LoginResponse {
|
||||
/**
|
||||
*
|
||||
* @type {UserInfo}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
user?: UserInfo;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
refreshToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
expiresIn?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the LoginResponse interface.
|
||||
*/
|
||||
export function instanceOfLoginResponse(value: object): value is LoginResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function LoginResponseFromJSON(json: any): LoginResponse {
|
||||
return LoginResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'user': json['user'] == null ? undefined : UserInfoFromJSON(json['user']),
|
||||
'accessToken': json['access_token'] == null ? undefined : json['access_token'],
|
||||
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
||||
'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'],
|
||||
};
|
||||
}
|
||||
|
||||
export function LoginResponseToJSON(json: any): LoginResponse {
|
||||
return LoginResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginResponseToJSONTyped(value?: LoginResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'user': UserInfoToJSON(value['user']),
|
||||
'access_token': value['accessToken'],
|
||||
'refresh_token': value['refreshToken'],
|
||||
'expires_in': value['expiresIn'],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -62,7 +62,13 @@ export interface Package {
|
|||
* @type {string}
|
||||
* @memberof Package
|
||||
*/
|
||||
applicationId?: string | null;
|
||||
applicationId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Package
|
||||
*/
|
||||
categoryId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
|
|
@ -86,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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,11 +132,13 @@ export function PackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|||
'authorId': json['author_id'] == null ? undefined : json['author_id'],
|
||||
'imageUrl': json['image_url'],
|
||||
'applicationId': json['application_id'] == null ? undefined : json['application_id'],
|
||||
'categoryId': json['category_id'] == null ? undefined : json['category_id'],
|
||||
'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'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -145,11 +159,13 @@ export function PackageToJSONTyped(value?: Package | null, ignoreDiscriminator:
|
|||
'author_id': value['authorId'],
|
||||
'image_url': value['imageUrl'],
|
||||
'application_id': value['applicationId'],
|
||||
'category_id': value['categoryId'],
|
||||
'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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -13,6 +13,14 @@
|
|||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { StorageFile } from './StorageFile';
|
||||
import {
|
||||
StorageFileFromJSON,
|
||||
StorageFileFromJSONTyped,
|
||||
StorageFileToJSON,
|
||||
StorageFileToJSONTyped,
|
||||
} from './StorageFile';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
|
|
@ -45,22 +53,28 @@ export interface PackageRelease {
|
|||
notes?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<any>}
|
||||
* @type {Array<StorageFile>}
|
||||
* @memberof PackageRelease
|
||||
*/
|
||||
readonly files?: Array<any> | null;
|
||||
readonly files?: Array<StorageFile> | null;
|
||||
/**
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -85,9 +99,10 @@ export function PackageReleaseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||
'version': json['version'],
|
||||
'packageId': json['package_id'] == null ? undefined : json['package_id'],
|
||||
'notes': json['notes'] == null ? undefined : json['notes'],
|
||||
'files': json['files'] == null ? undefined : json['files'],
|
||||
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||
'files': json['files'] == null ? undefined : ((json['files'] as Array<any>).map(StorageFileFromJSON)),
|
||||
'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'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -106,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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
163
src/models/Product.ts
Normal file
163
src/models/Product.ts
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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 { ProductType } from './ProductType';
|
||||
import {
|
||||
ProductTypeFromJSON,
|
||||
ProductTypeFromJSONTyped,
|
||||
ProductTypeToJSON,
|
||||
ProductTypeToJSONTyped,
|
||||
} from './ProductType';
|
||||
import type { ProductPrice } from './ProductPrice';
|
||||
import {
|
||||
ProductPriceFromJSON,
|
||||
ProductPriceFromJSONTyped,
|
||||
ProductPriceToJSON,
|
||||
ProductPriceToJSONTyped,
|
||||
} from './ProductPrice';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface Product
|
||||
*/
|
||||
export interface Product {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Product
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Product
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Product
|
||||
*/
|
||||
sku?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Product
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {ProductType}
|
||||
* @memberof Product
|
||||
*/
|
||||
type?: ProductType;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Product
|
||||
*/
|
||||
slug?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Product
|
||||
*/
|
||||
imageUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ProductPrice>}
|
||||
* @memberof Product
|
||||
*/
|
||||
prices?: Array<ProductPrice> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof Product
|
||||
*/
|
||||
createdAt?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof Product
|
||||
*/
|
||||
updatedAt?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof Product
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the Product interface.
|
||||
*/
|
||||
export function instanceOfProduct(value: object): value is Product {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ProductFromJSON(json: any): Product {
|
||||
return ProductFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'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'],
|
||||
'prices': json['prices'] == null ? undefined : ((json['prices'] as Array<any>).map(ProductPriceFromJSON)),
|
||||
'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 ProductToJSON(json: any): Product {
|
||||
return ProductToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'sku': value['sku'],
|
||||
'description': value['description'],
|
||||
'type': ProductTypeToJSON(value['type']),
|
||||
'slug': value['slug'],
|
||||
'image_url': value['imageUrl'],
|
||||
'prices': value['prices'] == null ? undefined : ((value['prices'] as Array<any>).map(ProductPriceToJSON)),
|
||||
'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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -16,59 +16,58 @@ import { mapValues } from '../runtime';
|
|||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SubscriptionPrice
|
||||
* @interface ProductPrice
|
||||
*/
|
||||
export interface SubscriptionPrice {
|
||||
export interface ProductPrice {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SubscriptionPrice
|
||||
* @memberof ProductPrice
|
||||
*/
|
||||
currency: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SubscriptionPrice
|
||||
* @memberof ProductPrice
|
||||
*/
|
||||
amount: number;
|
||||
price?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SubscriptionPrice
|
||||
* @memberof ProductPrice
|
||||
*/
|
||||
renewal?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SubscriptionPrice interface.
|
||||
* Check if a given object implements the ProductPrice interface.
|
||||
*/
|
||||
export function instanceOfSubscriptionPrice(value: object): value is SubscriptionPrice {
|
||||
export function instanceOfProductPrice(value: object): value is ProductPrice {
|
||||
if (!('currency' in value) || value['currency'] === undefined) return false;
|
||||
if (!('amount' in value) || value['amount'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SubscriptionPriceFromJSON(json: any): SubscriptionPrice {
|
||||
return SubscriptionPriceFromJSONTyped(json, false);
|
||||
export function ProductPriceFromJSON(json: any): ProductPrice {
|
||||
return ProductPriceFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SubscriptionPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPrice {
|
||||
export function ProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductPrice {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'currency': json['currency'],
|
||||
'amount': json['amount'],
|
||||
'price': json['price'] == null ? undefined : json['price'],
|
||||
'renewal': json['renewal'] == null ? undefined : json['renewal'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SubscriptionPriceToJSON(json: any): SubscriptionPrice {
|
||||
return SubscriptionPriceToJSONTyped(json, false);
|
||||
export function ProductPriceToJSON(json: any): ProductPrice {
|
||||
return ProductPriceToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SubscriptionPriceToJSONTyped(value?: SubscriptionPrice | null, ignoreDiscriminator: boolean = false): any {
|
||||
export function ProductPriceToJSONTyped(value?: ProductPrice | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
|
@ -76,7 +75,7 @@ export function SubscriptionPriceToJSONTyped(value?: SubscriptionPrice | null, i
|
|||
return {
|
||||
|
||||
'currency': value['currency'],
|
||||
'amount': value['amount'],
|
||||
'price': value['price'],
|
||||
'renewal': value['renewal'],
|
||||
};
|
||||
}
|
||||
53
src/models/ProductType.ts
Normal file
53
src/models/ProductType.ts
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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 ProductType = {
|
||||
Product: 'product',
|
||||
Subscription: 'subscription'
|
||||
} as const;
|
||||
export type ProductType = typeof ProductType[keyof typeof ProductType];
|
||||
|
||||
|
||||
export function instanceOfProductType(value: any): boolean {
|
||||
for (const key in ProductType) {
|
||||
if (Object.prototype.hasOwnProperty.call(ProductType, key)) {
|
||||
if (ProductType[key as keyof typeof ProductType] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function ProductTypeFromJSON(json: any): ProductType {
|
||||
return ProductTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType {
|
||||
return json as ProductType;
|
||||
}
|
||||
|
||||
export function ProductTypeToJSON(value?: ProductType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function ProductTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductType {
|
||||
return value as ProductType;
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -1,65 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RefreshRequest
|
||||
*/
|
||||
export interface RefreshRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RefreshRequest
|
||||
*/
|
||||
refreshToken?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RefreshRequest interface.
|
||||
*/
|
||||
export function instanceOfRefreshRequest(value: object): value is RefreshRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RefreshRequestFromJSON(json: any): RefreshRequest {
|
||||
return RefreshRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RefreshRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RefreshRequestToJSON(json: any): RefreshRequest {
|
||||
return RefreshRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RefreshRequestToJSONTyped(value?: RefreshRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'refresh_token': value['refreshToken'],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RegisterRequest
|
||||
*/
|
||||
export interface RegisterRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
uuid?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegisterRequest
|
||||
*/
|
||||
password: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RegisterRequest interface.
|
||||
*/
|
||||
export function instanceOfRegisterRequest(value: object): value is RegisterRequest {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('password' in value) || value['password'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RegisterRequestFromJSON(json: any): RegisterRequest {
|
||||
return RegisterRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
||||
'name': json['name'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'password': json['password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RegisterRequestToJSON(json: any): RegisterRequest {
|
||||
return RegisterRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'uuid': value['uuid'],
|
||||
'name': value['name'],
|
||||
'email': value['email'],
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,99 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.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 { SearchType } from './SearchType';
|
||||
import {
|
||||
SearchTypeFromJSON,
|
||||
SearchTypeFromJSONTyped,
|
||||
SearchTypeToJSON,
|
||||
SearchTypeToJSONTyped,
|
||||
} from './SearchType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SearchRequest
|
||||
*/
|
||||
export interface SearchRequest {
|
||||
/**
|
||||
*
|
||||
* @type {SearchType}
|
||||
* @memberof SearchRequest
|
||||
*/
|
||||
type?: SearchType;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SearchRequest
|
||||
*/
|
||||
query?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SearchRequest
|
||||
*/
|
||||
page?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SearchRequest
|
||||
*/
|
||||
gameId?: string | null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SearchRequest interface.
|
||||
*/
|
||||
export function instanceOfSearchRequest(value: object): value is SearchRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SearchRequestFromJSON(json: any): SearchRequest {
|
||||
return SearchRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': json['type'] == null ? undefined : SearchTypeFromJSON(json['type']),
|
||||
'query': json['query'] == null ? undefined : json['query'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'gameId': json['game_id'] == null ? undefined : json['game_id'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SearchRequestToJSON(json: any): SearchRequest {
|
||||
return SearchRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SearchRequestToJSONTyped(value?: SearchRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'type': SearchTypeToJSON(value['type']),
|
||||
'query': value['query'],
|
||||
'page': value['page'],
|
||||
'game_id': value['gameId'],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.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 ServerStatus = {
|
||||
Unknown: 'unknown',
|
||||
Offline: 'offline',
|
||||
Online: 'online'
|
||||
} as const;
|
||||
export type ServerStatus = typeof ServerStatus[keyof typeof ServerStatus];
|
||||
|
||||
|
||||
export function instanceOfServerStatus(value: any): boolean {
|
||||
for (const key in ServerStatus) {
|
||||
if (Object.prototype.hasOwnProperty.call(ServerStatus, key)) {
|
||||
if (ServerStatus[key as keyof typeof ServerStatus] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function ServerStatusFromJSON(json: any): ServerStatus {
|
||||
return ServerStatusFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ServerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerStatus {
|
||||
return json as ServerStatus;
|
||||
}
|
||||
|
||||
export function ServerStatusToJSON(value?: ServerStatus | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function ServerStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ServerStatus {
|
||||
return value as ServerStatus;
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
@ -16,80 +16,86 @@ import { mapValues } from '../runtime';
|
|||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ModelFile
|
||||
* @interface StorageFile
|
||||
*/
|
||||
export interface ModelFile {
|
||||
export interface StorageFile {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
contentType: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
url: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
hash?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ModelFile
|
||||
* @type {Date}
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
size?: number;
|
||||
createdAt?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
created?: Date;
|
||||
updatedAt?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ModelFile
|
||||
* @memberof StorageFile
|
||||
*/
|
||||
updated?: Date | null;
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ModelFile interface.
|
||||
* Check if a given object implements the StorageFile interface.
|
||||
*/
|
||||
export function instanceOfModelFile(value: object): value is ModelFile {
|
||||
export function instanceOfStorageFile(value: object): value is StorageFile {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('contentType' in value) || value['contentType'] === undefined) return false;
|
||||
if (!('url' in value) || value['url'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ModelFileFromJSON(json: any): ModelFile {
|
||||
return ModelFileFromJSONTyped(json, false);
|
||||
export function StorageFileFromJSON(json: any): StorageFile {
|
||||
return StorageFileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile {
|
||||
export function StorageFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageFile {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
|
|
@ -99,19 +105,20 @@ export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||
'name': json['name'],
|
||||
'contentType': json['content_type'],
|
||||
'url': json['url'],
|
||||
'size': json['size'] == null ? undefined : json['size'],
|
||||
'hash': json['hash'] == null ? undefined : json['hash'],
|
||||
'etag': json['etag'] == null ? undefined : json['etag'],
|
||||
'size': json['size'] == null ? undefined : json['size'],
|
||||
'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'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function ModelFileToJSON(json: any): ModelFile {
|
||||
return ModelFileToJSONTyped(json, false);
|
||||
export function StorageFileToJSON(json: any): StorageFile {
|
||||
return StorageFileToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminator: boolean = false): any {
|
||||
export function StorageFileToJSONTyped(value?: StorageFile | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
|
@ -122,11 +129,12 @@ export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminat
|
|||
'name': value['name'],
|
||||
'content_type': value['contentType'],
|
||||
'url': value['url'],
|
||||
'size': value['size'],
|
||||
'hash': value['hash'],
|
||||
'etag': value['etag'],
|
||||
'size': value['size'],
|
||||
'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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1,122 +0,0 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.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 { SubscriptionPrice } from './SubscriptionPrice';
|
||||
import {
|
||||
SubscriptionPriceFromJSON,
|
||||
SubscriptionPriceFromJSONTyped,
|
||||
SubscriptionPriceToJSON,
|
||||
SubscriptionPriceToJSONTyped,
|
||||
} from './SubscriptionPrice';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface Subscription
|
||||
*/
|
||||
export interface Subscription {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
imageUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SubscriptionPrice>}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
prices?: Array<SubscriptionPrice> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
created?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof Subscription
|
||||
*/
|
||||
updated?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the Subscription interface.
|
||||
*/
|
||||
export function instanceOfSubscription(value: object): value is Subscription {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SubscriptionFromJSON(json: any): Subscription {
|
||||
return SubscriptionFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subscription {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
||||
'prices': json['prices'] == null ? undefined : ((json['prices'] as Array<any>).map(SubscriptionPriceFromJSON)),
|
||||
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function SubscriptionToJSON(json: any): Subscription {
|
||||
return SubscriptionToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'image_url': value['imageUrl'],
|
||||
'prices': value['prices'] == null ? undefined : ((value['prices'] as Array<any>).map(SubscriptionPriceToJSON)),
|
||||
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* 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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
@ -18,19 +18,21 @@ export * from './GameServerQuery';
|
|||
export * from './GameServerStatus';
|
||||
export * from './GrantType';
|
||||
export * from './Group';
|
||||
export * from './GroupGame';
|
||||
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 './ModelFile';
|
||||
export * from './Package';
|
||||
export * from './PackageRelease';
|
||||
export * from './Product';
|
||||
export * from './ProductPrice';
|
||||
export * from './ProductType';
|
||||
export * from './Profile';
|
||||
export * from './ProfileGame';
|
||||
export * from './ProfileGroup';
|
||||
|
|
@ -39,8 +41,7 @@ export * from './RevokeRequest';
|
|||
export * from './Search';
|
||||
export * from './SearchType';
|
||||
export * from './ServerMetrics';
|
||||
export * from './Subscription';
|
||||
export * from './SubscriptionPrice';
|
||||
export * from './StorageFile';
|
||||
export * from './TokenHintType';
|
||||
export * from './TokenRequest';
|
||||
export * from './TokenResponse';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Tribufu API
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.2.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue