mirror of
https://github.com/tribufu/sdk-js
synced 2025-09-23 14:34:27 +00:00
Compare commits
1 Commits
main
...
openapi-ge
Author | SHA1 | Date | |
---|---|---|---|
6069436d9c |
@@ -1,15 +1,12 @@
|
|||||||
.openapi-generator/
|
|
||||||
examples/
|
examples/
|
||||||
node_modules/
|
node_modules/
|
||||||
scripts/
|
scripts/
|
||||||
src/
|
src/
|
||||||
vendor/
|
|
||||||
|
|
||||||
.editorconfig
|
.editorconfig
|
||||||
.env
|
.env
|
||||||
.env.example
|
.env.example
|
||||||
.gitattributes
|
.gitattributes
|
||||||
.gitignore
|
.gitignore
|
||||||
.openapi-generator-ignore
|
|
||||||
bootstrap.ps1
|
bootstrap.ps1
|
||||||
bootstrap.sh
|
bootstrap.sh
|
||||||
|
@@ -6,4 +6,3 @@ git_push.sh
|
|||||||
package.json
|
package.json
|
||||||
README.md
|
README.md
|
||||||
src/index.ts
|
src/index.ts
|
||||||
tsconfig.json
|
|
||||||
|
@@ -1,21 +1,16 @@
|
|||||||
|
package.json
|
||||||
src/apis/TribufuGeneratedApi.ts
|
src/apis/TribufuGeneratedApi.ts
|
||||||
src/apis/index.ts
|
src/apis/index.ts
|
||||||
|
src/index.ts
|
||||||
src/models/Account.ts
|
src/models/Account.ts
|
||||||
src/models/Application.ts
|
src/models/Application.ts
|
||||||
src/models/ApplicationType.ts
|
src/models/ApplicationType.ts
|
||||||
src/models/AuthorizeRequest.ts
|
src/models/AuthorizeRequest.ts
|
||||||
src/models/Client.ts
|
|
||||||
src/models/ClientInfo.ts
|
|
||||||
src/models/ClientType.ts
|
|
||||||
src/models/CodeChallengeMethod.ts
|
src/models/CodeChallengeMethod.ts
|
||||||
src/models/CodeResponse.ts
|
|
||||||
src/models/CreateUser.ts
|
|
||||||
src/models/CryptoViewModel.ts
|
src/models/CryptoViewModel.ts
|
||||||
src/models/Game.ts
|
src/models/Game.ts
|
||||||
src/models/GameServer.ts
|
src/models/GameServer.ts
|
||||||
src/models/GameServerCluster.ts
|
src/models/GameServerCluster.ts
|
||||||
src/models/GameServerQuery.ts
|
|
||||||
src/models/GameServerStatus.ts
|
|
||||||
src/models/GrantType.ts
|
src/models/GrantType.ts
|
||||||
src/models/Group.ts
|
src/models/Group.ts
|
||||||
src/models/GroupGame.ts
|
src/models/GroupGame.ts
|
||||||
@@ -23,24 +18,25 @@ src/models/GroupMember.ts
|
|||||||
src/models/GroupRank.ts
|
src/models/GroupRank.ts
|
||||||
src/models/HashViewModel.ts
|
src/models/HashViewModel.ts
|
||||||
src/models/IntrospectRequest.ts
|
src/models/IntrospectRequest.ts
|
||||||
src/models/IntrospectResponse.ts
|
|
||||||
src/models/IpAddress.ts
|
src/models/IpAddress.ts
|
||||||
src/models/LeaderboardItem.ts
|
src/models/LeaderboardItem.ts
|
||||||
src/models/LeaderboardOrder.ts
|
src/models/LeaderboardOrder.ts
|
||||||
src/models/LoginProvider.ts
|
src/models/LoginProvider.ts
|
||||||
src/models/ModelFile.ts
|
src/models/LoginRequest.ts
|
||||||
|
src/models/LoginResponse.ts
|
||||||
src/models/Package.ts
|
src/models/Package.ts
|
||||||
src/models/PackageRelease.ts
|
|
||||||
src/models/Profile.ts
|
src/models/Profile.ts
|
||||||
src/models/ProfileGame.ts
|
src/models/ProfileGame.ts
|
||||||
src/models/ProfileGroup.ts
|
src/models/ProfileGroup.ts
|
||||||
|
src/models/RefreshRequest.ts
|
||||||
|
src/models/RegisterRequest.ts
|
||||||
src/models/ResponseType.ts
|
src/models/ResponseType.ts
|
||||||
src/models/RevokeRequest.ts
|
src/models/RevokeRequest.ts
|
||||||
src/models/Search.ts
|
src/models/SearchRequest.ts
|
||||||
src/models/SearchType.ts
|
src/models/SearchType.ts
|
||||||
src/models/ServerMetrics.ts
|
src/models/ServerMetrics.ts
|
||||||
|
src/models/ServerStatus.ts
|
||||||
src/models/Subscription.ts
|
src/models/Subscription.ts
|
||||||
src/models/SubscriptionPrice.ts
|
|
||||||
src/models/TokenHintType.ts
|
src/models/TokenHintType.ts
|
||||||
src/models/TokenRequest.ts
|
src/models/TokenRequest.ts
|
||||||
src/models/TokenResponse.ts
|
src/models/TokenResponse.ts
|
||||||
@@ -50,3 +46,4 @@ src/models/UserInfo.ts
|
|||||||
src/models/UserType.ts
|
src/models/UserType.ts
|
||||||
src/models/index.ts
|
src/models/index.ts
|
||||||
src/runtime.ts
|
src/runtime.ts
|
||||||
|
tsconfig.json
|
||||||
|
@@ -9,7 +9,7 @@ JavaScript SDK to access Tribufu APIs and services.
|
|||||||
[npm-badge]: https://img.shields.io/npm/v/tribufu.svg
|
[npm-badge]: https://img.shields.io/npm/v/tribufu.svg
|
||||||
[npm-url]: https://www.npmjs.com/package/tribufu
|
[npm-url]: https://www.npmjs.com/package/tribufu
|
||||||
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
||||||
[mit-url]: https://github.com/tribufu/tribufu-js/blob/main/LICENSE.txt
|
[mit-url]: https://github.com/Tribufu/TribufuJs/blob/main/LICENSE.txt
|
||||||
[discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square
|
[discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square
|
||||||
[discord-url]: https://www.tribufu.com/discord
|
[discord-url]: https://www.tribufu.com/discord
|
||||||
|
|
||||||
@@ -20,4 +20,4 @@ JavaScript SDK to access Tribufu APIs and services.
|
|||||||
|
|
||||||
This project is licensed under the [MIT License].
|
This project is licensed under the [MIT License].
|
||||||
|
|
||||||
[MIT License]: https://github.com/tribufu/tribufu-js/blob/main/LICENSE.txt
|
[MIT License]: https://github.com/Tribufu/TribufuJs/blob/main/LICENSE.txt
|
||||||
|
10
package.json
10
package.json
@@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "tribufu",
|
"name": "tribufu",
|
||||||
"version": "1.2.0",
|
"version": "1.1.0",
|
||||||
"description": "Tribufu JS SDK",
|
"description": "Tribufu JS SDK",
|
||||||
"repository": "https://github.com/tribufu/tribufu-js",
|
"repository": "https://github.com/Tribufu/TribufuJs",
|
||||||
"author": "Tribufu <contact@Tribufu.com>",
|
"author": "Tribufu <contact@Tribufu.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./build/index.d.ts",
|
"types": "./build/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
"types": "./build/index.d.ts",
|
"import": "./build/index.mjs",
|
||||||
"require": "./build/index.cjs",
|
"require": "./build/index.cjs",
|
||||||
"import": "./build/index.mjs"
|
"types": "./build/index.d.ts"
|
||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
"*": {
|
"*": {
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.10.6",
|
"@types/node": "^20.10.6",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.19.10",
|
||||||
"esbuild-node-externals": "^1.12.0",
|
"esbuild-node-externals": "^1.12.0",
|
||||||
"eslint": "9.11.1",
|
"eslint": "9.11.1",
|
||||||
"prettier": "3.3.3",
|
"prettier": "3.3.3",
|
||||||
|
268
pnpm-lock.yaml
generated
268
pnpm-lock.yaml
generated
@@ -15,11 +15,11 @@ importers:
|
|||||||
specifier: ^16.3.1
|
specifier: ^16.3.1
|
||||||
version: 16.3.1
|
version: 16.3.1
|
||||||
esbuild:
|
esbuild:
|
||||||
specifier: ^0.25.0
|
specifier: ^0.19.10
|
||||||
version: 0.25.0
|
version: 0.19.11
|
||||||
esbuild-node-externals:
|
esbuild-node-externals:
|
||||||
specifier: ^1.12.0
|
specifier: ^1.12.0
|
||||||
version: 1.12.0(esbuild@0.25.0)
|
version: 1.12.0(esbuild@0.19.11)
|
||||||
eslint:
|
eslint:
|
||||||
specifier: 9.11.1
|
specifier: 9.11.1
|
||||||
version: 9.11.1
|
version: 9.11.1
|
||||||
@@ -35,153 +35,141 @@ importers:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@esbuild/aix-ppc64@0.25.0':
|
'@esbuild/aix-ppc64@0.19.11':
|
||||||
resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==}
|
resolution: {integrity: sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [ppc64]
|
cpu: [ppc64]
|
||||||
os: [aix]
|
os: [aix]
|
||||||
|
|
||||||
'@esbuild/android-arm64@0.25.0':
|
'@esbuild/android-arm64@0.19.11':
|
||||||
resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==}
|
resolution: {integrity: sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [android]
|
os: [android]
|
||||||
|
|
||||||
'@esbuild/android-arm@0.25.0':
|
'@esbuild/android-arm@0.19.11':
|
||||||
resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==}
|
resolution: {integrity: sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
os: [android]
|
os: [android]
|
||||||
|
|
||||||
'@esbuild/android-x64@0.25.0':
|
'@esbuild/android-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==}
|
resolution: {integrity: sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [android]
|
os: [android]
|
||||||
|
|
||||||
'@esbuild/darwin-arm64@0.25.0':
|
'@esbuild/darwin-arm64@0.19.11':
|
||||||
resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==}
|
resolution: {integrity: sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@esbuild/darwin-x64@0.25.0':
|
'@esbuild/darwin-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==}
|
resolution: {integrity: sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@esbuild/freebsd-arm64@0.25.0':
|
'@esbuild/freebsd-arm64@0.19.11':
|
||||||
resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==}
|
resolution: {integrity: sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [freebsd]
|
os: [freebsd]
|
||||||
|
|
||||||
'@esbuild/freebsd-x64@0.25.0':
|
'@esbuild/freebsd-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==}
|
resolution: {integrity: sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [freebsd]
|
os: [freebsd]
|
||||||
|
|
||||||
'@esbuild/linux-arm64@0.25.0':
|
'@esbuild/linux-arm64@0.19.11':
|
||||||
resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==}
|
resolution: {integrity: sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-arm@0.25.0':
|
'@esbuild/linux-arm@0.19.11':
|
||||||
resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==}
|
resolution: {integrity: sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-ia32@0.25.0':
|
'@esbuild/linux-ia32@0.19.11':
|
||||||
resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==}
|
resolution: {integrity: sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [ia32]
|
cpu: [ia32]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-loong64@0.25.0':
|
'@esbuild/linux-loong64@0.19.11':
|
||||||
resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==}
|
resolution: {integrity: sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [loong64]
|
cpu: [loong64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-mips64el@0.25.0':
|
'@esbuild/linux-mips64el@0.19.11':
|
||||||
resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==}
|
resolution: {integrity: sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [mips64el]
|
cpu: [mips64el]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-ppc64@0.25.0':
|
'@esbuild/linux-ppc64@0.19.11':
|
||||||
resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==}
|
resolution: {integrity: sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [ppc64]
|
cpu: [ppc64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-riscv64@0.25.0':
|
'@esbuild/linux-riscv64@0.19.11':
|
||||||
resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==}
|
resolution: {integrity: sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [riscv64]
|
cpu: [riscv64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-s390x@0.25.0':
|
'@esbuild/linux-s390x@0.19.11':
|
||||||
resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==}
|
resolution: {integrity: sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [s390x]
|
cpu: [s390x]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/linux-x64@0.25.0':
|
'@esbuild/linux-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==}
|
resolution: {integrity: sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@esbuild/netbsd-arm64@0.25.0':
|
'@esbuild/netbsd-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==}
|
resolution: {integrity: sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
|
||||||
os: [netbsd]
|
|
||||||
|
|
||||||
'@esbuild/netbsd-x64@0.25.0':
|
|
||||||
resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==}
|
|
||||||
engines: {node: '>=18'}
|
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [netbsd]
|
os: [netbsd]
|
||||||
|
|
||||||
'@esbuild/openbsd-arm64@0.25.0':
|
'@esbuild/openbsd-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==}
|
resolution: {integrity: sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
|
||||||
os: [openbsd]
|
|
||||||
|
|
||||||
'@esbuild/openbsd-x64@0.25.0':
|
|
||||||
resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==}
|
|
||||||
engines: {node: '>=18'}
|
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [openbsd]
|
os: [openbsd]
|
||||||
|
|
||||||
'@esbuild/sunos-x64@0.25.0':
|
'@esbuild/sunos-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==}
|
resolution: {integrity: sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [sunos]
|
os: [sunos]
|
||||||
|
|
||||||
'@esbuild/win32-arm64@0.25.0':
|
'@esbuild/win32-arm64@0.19.11':
|
||||||
resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==}
|
resolution: {integrity: sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@esbuild/win32-ia32@0.25.0':
|
'@esbuild/win32-ia32@0.19.11':
|
||||||
resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==}
|
resolution: {integrity: sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [ia32]
|
cpu: [ia32]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@esbuild/win32-x64@0.25.0':
|
'@esbuild/win32-x64@0.19.11':
|
||||||
resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==}
|
resolution: {integrity: sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
@@ -350,9 +338,9 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
esbuild: 0.12 - 0.19
|
esbuild: 0.12 - 0.19
|
||||||
|
|
||||||
esbuild@0.25.0:
|
esbuild@0.19.11:
|
||||||
resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==}
|
resolution: {integrity: sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=12'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
escape-string-regexp@4.0.0:
|
escape-string-regexp@4.0.0:
|
||||||
@@ -672,79 +660,73 @@ packages:
|
|||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
'@esbuild/aix-ppc64@0.25.0':
|
'@esbuild/aix-ppc64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/android-arm64@0.25.0':
|
'@esbuild/android-arm64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/android-arm@0.25.0':
|
'@esbuild/android-arm@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/android-x64@0.25.0':
|
'@esbuild/android-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/darwin-arm64@0.25.0':
|
'@esbuild/darwin-arm64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/darwin-x64@0.25.0':
|
'@esbuild/darwin-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/freebsd-arm64@0.25.0':
|
'@esbuild/freebsd-arm64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/freebsd-x64@0.25.0':
|
'@esbuild/freebsd-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-arm64@0.25.0':
|
'@esbuild/linux-arm64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-arm@0.25.0':
|
'@esbuild/linux-arm@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-ia32@0.25.0':
|
'@esbuild/linux-ia32@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-loong64@0.25.0':
|
'@esbuild/linux-loong64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-mips64el@0.25.0':
|
'@esbuild/linux-mips64el@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-ppc64@0.25.0':
|
'@esbuild/linux-ppc64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-riscv64@0.25.0':
|
'@esbuild/linux-riscv64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-s390x@0.25.0':
|
'@esbuild/linux-s390x@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/linux-x64@0.25.0':
|
'@esbuild/linux-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/netbsd-arm64@0.25.0':
|
'@esbuild/netbsd-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/netbsd-x64@0.25.0':
|
'@esbuild/openbsd-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/openbsd-arm64@0.25.0':
|
'@esbuild/sunos-x64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/openbsd-x64@0.25.0':
|
'@esbuild/win32-arm64@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/sunos-x64@0.25.0':
|
'@esbuild/win32-ia32@0.19.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/win32-arm64@0.25.0':
|
'@esbuild/win32-x64@0.19.11':
|
||||||
optional: true
|
|
||||||
|
|
||||||
'@esbuild/win32-ia32@0.25.0':
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
'@esbuild/win32-x64@0.25.0':
|
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@eslint-community/eslint-utils@4.4.0(eslint@9.11.1)':
|
'@eslint-community/eslint-utils@4.4.0(eslint@9.11.1)':
|
||||||
@@ -893,39 +875,37 @@ snapshots:
|
|||||||
|
|
||||||
emoji-regex@9.2.2: {}
|
emoji-regex@9.2.2: {}
|
||||||
|
|
||||||
esbuild-node-externals@1.12.0(esbuild@0.25.0):
|
esbuild-node-externals@1.12.0(esbuild@0.19.11):
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.25.0
|
esbuild: 0.19.11
|
||||||
find-up: 5.0.0
|
find-up: 5.0.0
|
||||||
tslib: 2.6.2
|
tslib: 2.6.2
|
||||||
|
|
||||||
esbuild@0.25.0:
|
esbuild@0.19.11:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@esbuild/aix-ppc64': 0.25.0
|
'@esbuild/aix-ppc64': 0.19.11
|
||||||
'@esbuild/android-arm': 0.25.0
|
'@esbuild/android-arm': 0.19.11
|
||||||
'@esbuild/android-arm64': 0.25.0
|
'@esbuild/android-arm64': 0.19.11
|
||||||
'@esbuild/android-x64': 0.25.0
|
'@esbuild/android-x64': 0.19.11
|
||||||
'@esbuild/darwin-arm64': 0.25.0
|
'@esbuild/darwin-arm64': 0.19.11
|
||||||
'@esbuild/darwin-x64': 0.25.0
|
'@esbuild/darwin-x64': 0.19.11
|
||||||
'@esbuild/freebsd-arm64': 0.25.0
|
'@esbuild/freebsd-arm64': 0.19.11
|
||||||
'@esbuild/freebsd-x64': 0.25.0
|
'@esbuild/freebsd-x64': 0.19.11
|
||||||
'@esbuild/linux-arm': 0.25.0
|
'@esbuild/linux-arm': 0.19.11
|
||||||
'@esbuild/linux-arm64': 0.25.0
|
'@esbuild/linux-arm64': 0.19.11
|
||||||
'@esbuild/linux-ia32': 0.25.0
|
'@esbuild/linux-ia32': 0.19.11
|
||||||
'@esbuild/linux-loong64': 0.25.0
|
'@esbuild/linux-loong64': 0.19.11
|
||||||
'@esbuild/linux-mips64el': 0.25.0
|
'@esbuild/linux-mips64el': 0.19.11
|
||||||
'@esbuild/linux-ppc64': 0.25.0
|
'@esbuild/linux-ppc64': 0.19.11
|
||||||
'@esbuild/linux-riscv64': 0.25.0
|
'@esbuild/linux-riscv64': 0.19.11
|
||||||
'@esbuild/linux-s390x': 0.25.0
|
'@esbuild/linux-s390x': 0.19.11
|
||||||
'@esbuild/linux-x64': 0.25.0
|
'@esbuild/linux-x64': 0.19.11
|
||||||
'@esbuild/netbsd-arm64': 0.25.0
|
'@esbuild/netbsd-x64': 0.19.11
|
||||||
'@esbuild/netbsd-x64': 0.25.0
|
'@esbuild/openbsd-x64': 0.19.11
|
||||||
'@esbuild/openbsd-arm64': 0.25.0
|
'@esbuild/sunos-x64': 0.19.11
|
||||||
'@esbuild/openbsd-x64': 0.25.0
|
'@esbuild/win32-arm64': 0.19.11
|
||||||
'@esbuild/sunos-x64': 0.25.0
|
'@esbuild/win32-ia32': 0.19.11
|
||||||
'@esbuild/win32-arm64': 0.25.0
|
'@esbuild/win32-x64': 0.19.11
|
||||||
'@esbuild/win32-ia32': 0.25.0
|
|
||||||
'@esbuild/win32-x64': 0.25.0
|
|
||||||
|
|
||||||
escape-string-regexp@4.0.0: {}
|
escape-string-regexp@4.0.0: {}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env pwsh
|
#!/usr/bin/env pwsh
|
||||||
|
|
||||||
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
|
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 `
|
-g typescript-fetch `
|
||||||
-o . `
|
-o . `
|
||||||
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
|
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -2,16 +2,11 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import { Configuration } from "./runtime";
|
import { Configuration } from "./runtime";
|
||||||
import { JavaScriptRuntime } from "./node";
|
|
||||||
import { TRIBUFU_API_URL, TRIBUFU_VERSION } from "./constants";
|
import { TRIBUFU_API_URL, TRIBUFU_VERSION } from "./constants";
|
||||||
import { TribufuGeneratedApi } from "./apis/TribufuGeneratedApi";
|
import { TribufuGeneratedApi } from "./apis/TribufuGeneratedApi";
|
||||||
|
import { JavaScriptRuntime } from "./node";
|
||||||
|
|
||||||
export * from "./apis";
|
|
||||||
export * from "./constants";
|
export * from "./constants";
|
||||||
export * from "./models";
|
|
||||||
export * from "./node";
|
|
||||||
export * from "./runtime";
|
|
||||||
export * from "./singletion";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* **Tribufu API**
|
* **Tribufu API**
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -32,7 +32,7 @@ export interface Account {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Account
|
* @memberof Account
|
||||||
*/
|
*/
|
||||||
id: string | null;
|
id?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -44,7 +44,7 @@ export interface Account {
|
|||||||
* @type {LoginProvider}
|
* @type {LoginProvider}
|
||||||
* @memberof Account
|
* @memberof Account
|
||||||
*/
|
*/
|
||||||
provider: LoginProvider;
|
provider?: LoginProvider;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -83,8 +83,6 @@ export interface Account {
|
|||||||
* Check if a given object implements the Account interface.
|
* Check if a given object implements the Account interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfAccount(value: object): value is Account {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,9 +96,9 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'provider': LoginProviderFromJSON(json['provider']),
|
'provider': json['provider'] == null ? undefined : LoginProviderFromJSON(json['provider']),
|
||||||
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
||||||
'authorized': json['authorized'] == null ? undefined : json['authorized'],
|
'authorized': json['authorized'] == null ? undefined : json['authorized'],
|
||||||
'fields': json['fields'] == null ? undefined : json['fields'],
|
'fields': json['fields'] == null ? undefined : json['fields'],
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -38,7 +38,7 @@ export interface Application {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Application
|
* @memberof Application
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -56,7 +56,7 @@ export interface Application {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Application
|
* @memberof Application
|
||||||
*/
|
*/
|
||||||
organizationId?: string;
|
organizationId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -81,12 +81,60 @@ export interface Application {
|
|||||||
* @memberof Application
|
* @memberof Application
|
||||||
*/
|
*/
|
||||||
libraryImageUrl?: string | null;
|
libraryImageUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
parentId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Application
|
* @memberof Application
|
||||||
*/
|
*/
|
||||||
slug?: string | null;
|
slug?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
visibility?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
password?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
primary?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
userCount?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
achievementCount?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
badgeCount?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Application
|
||||||
|
*/
|
||||||
|
downloadCount?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
@@ -107,7 +155,6 @@ export interface Application {
|
|||||||
* Check if a given object implements the Application interface.
|
* Check if a given object implements the Application interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApplication(value: object): value is Application {
|
export function instanceOfApplication(value: object): value is Application {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +169,7 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'type': json['type'] == null ? undefined : ApplicationTypeFromJSON(json['type']),
|
'type': json['type'] == null ? undefined : ApplicationTypeFromJSON(json['type']),
|
||||||
'organizationId': json['organization_id'] == null ? undefined : json['organization_id'],
|
'organizationId': json['organization_id'] == null ? undefined : json['organization_id'],
|
||||||
@@ -130,7 +177,15 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|||||||
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
|
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
|
||||||
'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'],
|
'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'],
|
||||||
'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'],
|
'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'],
|
||||||
|
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
||||||
'slug': json['slug'] == null ? undefined : json['slug'],
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
||||||
|
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
||||||
|
'password': json['password'] == null ? undefined : json['password'],
|
||||||
|
'primary': json['primary'] == null ? undefined : json['primary'],
|
||||||
|
'userCount': json['user_count'] == null ? undefined : json['user_count'],
|
||||||
|
'achievementCount': json['achievement_count'] == null ? undefined : json['achievement_count'],
|
||||||
|
'badgeCount': json['badge_count'] == null ? undefined : json['badge_count'],
|
||||||
|
'downloadCount': json['download_count'] == null ? undefined : json['download_count'],
|
||||||
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||||
};
|
};
|
||||||
@@ -156,7 +211,15 @@ export function ApplicationToJSONTyped(value?: Application | null, ignoreDiscrim
|
|||||||
'banner_url': value['bannerUrl'],
|
'banner_url': value['bannerUrl'],
|
||||||
'capsule_image_url': value['capsuleImageUrl'],
|
'capsule_image_url': value['capsuleImageUrl'],
|
||||||
'library_image_url': value['libraryImageUrl'],
|
'library_image_url': value['libraryImageUrl'],
|
||||||
|
'parent_id': value['parentId'],
|
||||||
'slug': value['slug'],
|
'slug': value['slug'],
|
||||||
|
'visibility': value['visibility'],
|
||||||
|
'password': value['password'],
|
||||||
|
'primary': value['primary'],
|
||||||
|
'user_count': value['userCount'],
|
||||||
|
'achievement_count': value['achievementCount'],
|
||||||
|
'badge_count': value['badgeCount'],
|
||||||
|
'download_count': value['downloadCount'],
|
||||||
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||||
};
|
};
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -45,7 +45,7 @@ export interface AuthorizeRequest {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof AuthorizeRequest
|
* @memberof AuthorizeRequest
|
||||||
*/
|
*/
|
||||||
clientId: string;
|
clientId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -63,7 +63,7 @@ export interface AuthorizeRequest {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof AuthorizeRequest
|
* @memberof AuthorizeRequest
|
||||||
*/
|
*/
|
||||||
redirectUri: string | null;
|
redirectUri?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -84,8 +84,6 @@ export interface AuthorizeRequest {
|
|||||||
* Check if a given object implements the AuthorizeRequest interface.
|
* Check if a given object implements the AuthorizeRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfAuthorizeRequest(value: object): value is AuthorizeRequest {
|
export function instanceOfAuthorizeRequest(value: object): value is AuthorizeRequest {
|
||||||
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
||||||
if (!('redirectUri' in value) || value['redirectUri'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +98,10 @@ export function AuthorizeRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'responseType': json['response_type'] == null ? undefined : ResponseTypeFromJSON(json['response_type']),
|
'responseType': json['response_type'] == null ? undefined : ResponseTypeFromJSON(json['response_type']),
|
||||||
'clientId': json['client_id'],
|
'clientId': json['client_id'] == null ? undefined : json['client_id'],
|
||||||
'codeChallenge': json['code_challenge'] == null ? undefined : json['code_challenge'],
|
'codeChallenge': json['code_challenge'] == null ? undefined : json['code_challenge'],
|
||||||
'codeChallengeMethod': json['code_challenge_method'] == null ? undefined : CodeChallengeMethodFromJSON(json['code_challenge_method']),
|
'codeChallengeMethod': json['code_challenge_method'] == null ? undefined : CodeChallengeMethodFromJSON(json['code_challenge_method']),
|
||||||
'redirectUri': json['redirect_uri'],
|
'redirectUri': json['redirect_uri'] == null ? undefined : json['redirect_uri'],
|
||||||
'scope': json['scope'] == null ? undefined : json['scope'],
|
'scope': json['scope'] == null ? undefined : json['scope'],
|
||||||
'state': json['state'] == null ? undefined : json['state'],
|
'state': json['state'] == null ? undefined : json['state'],
|
||||||
};
|
};
|
||||||
|
@@ -1,187 +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 { ClientType } from './ClientType';
|
|
||||||
import {
|
|
||||||
ClientTypeFromJSON,
|
|
||||||
ClientTypeFromJSONTyped,
|
|
||||||
ClientTypeToJSON,
|
|
||||||
ClientTypeToJSONTyped,
|
|
||||||
} from './ClientType';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Client
|
|
||||||
*/
|
|
||||||
export interface Client {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
id?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
name: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ClientType}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
type?: ClientType;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
organizationId?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
trusted?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
packageId?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
websiteUrl?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
photoUrl?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
backgroundUrl?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
customSchema?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
redirects?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
scopes?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<string>}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
readonly permissions?: Array<string> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
created?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Client
|
|
||||||
*/
|
|
||||||
updated?: Date | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Client interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfClient(value: object): value is Client {
|
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientFromJSON(json: any): Client {
|
|
||||||
return ClientFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Client {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'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'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientToJSON(json: any): Client {
|
|
||||||
return ClientToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientToJSONTyped(value?: Omit<Client, 'permissions'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value['id'],
|
|
||||||
'name': value['name'],
|
|
||||||
'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()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -1,108 +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 { ClientType } from './ClientType';
|
|
||||||
import {
|
|
||||||
ClientTypeFromJSON,
|
|
||||||
ClientTypeFromJSONTyped,
|
|
||||||
ClientTypeToJSON,
|
|
||||||
ClientTypeToJSONTyped,
|
|
||||||
} from './ClientType';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ClientInfo
|
|
||||||
*/
|
|
||||||
export interface ClientInfo {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ClientInfo
|
|
||||||
*/
|
|
||||||
id?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ClientInfo
|
|
||||||
*/
|
|
||||||
name: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ClientType}
|
|
||||||
* @memberof ClientInfo
|
|
||||||
*/
|
|
||||||
type?: ClientType;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ClientInfo
|
|
||||||
*/
|
|
||||||
photoUrl?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<string>}
|
|
||||||
* @memberof ClientInfo
|
|
||||||
*/
|
|
||||||
permissions?: Array<string> | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ClientInfo interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfClientInfo(value: object): value is ClientInfo {
|
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientInfoFromJSON(json: any): ClientInfo {
|
|
||||||
return ClientInfoFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientInfo {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'type': json['type'] == null ? undefined : ClientTypeFromJSON(json['type']),
|
|
||||||
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
|
|
||||||
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientInfoToJSON(json: any): ClientInfo {
|
|
||||||
return ClientInfoToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientInfoToJSONTyped(value?: ClientInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value['id'],
|
|
||||||
'name': value['name'],
|
|
||||||
'type': ClientTypeToJSON(value['type']),
|
|
||||||
'photo_url': value['photoUrl'],
|
|
||||||
'permissions': value['permissions'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -1,54 +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 ClientType = {
|
|
||||||
Web: 'web',
|
|
||||||
Desktop: 'desktop',
|
|
||||||
Mobile: 'mobile'
|
|
||||||
} as const;
|
|
||||||
export type ClientType = typeof ClientType[keyof typeof ClientType];
|
|
||||||
|
|
||||||
|
|
||||||
export function instanceOfClientType(value: any): boolean {
|
|
||||||
for (const key in ClientType) {
|
|
||||||
if (Object.prototype.hasOwnProperty.call(ClientType, key)) {
|
|
||||||
if (ClientType[key as keyof typeof ClientType] === value) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientTypeFromJSON(json: any): ClientType {
|
|
||||||
return ClientTypeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientType {
|
|
||||||
return json as ClientType;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientTypeToJSON(value?: ClientType | null): any {
|
|
||||||
return value as any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ClientTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ClientType {
|
|
||||||
return value as ClientType;
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -1,74 +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';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface CodeResponse
|
|
||||||
*/
|
|
||||||
export interface CodeResponse {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CodeResponse
|
|
||||||
*/
|
|
||||||
code: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CodeResponse
|
|
||||||
*/
|
|
||||||
state?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the CodeResponse interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfCodeResponse(value: object): value is CodeResponse {
|
|
||||||
if (!('code' in value) || value['code'] === undefined) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CodeResponseFromJSON(json: any): CodeResponse {
|
|
||||||
return CodeResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeResponse {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'code': json['code'],
|
|
||||||
'state': json['state'] == null ? undefined : json['state'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CodeResponseToJSON(json: any): CodeResponse {
|
|
||||||
return CodeResponseToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CodeResponseToJSONTyped(value?: CodeResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'code': value['code'],
|
|
||||||
'state': value['state'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -1,130 +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';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface CreateUser
|
|
||||||
*/
|
|
||||||
export interface CreateUser {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
uuid?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
displayName?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
email?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
password?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
language?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
timezone?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
currency?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CreateUser
|
|
||||||
*/
|
|
||||||
ipAddress?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the CreateUser interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfCreateUser(value: object): value is CreateUser {
|
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CreateUserFromJSON(json: any): CreateUser {
|
|
||||||
return CreateUserFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CreateUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUser {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'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'],
|
|
||||||
'password': json['password'] == null ? undefined : json['password'],
|
|
||||||
'language': json['language'] == null ? undefined : json['language'],
|
|
||||||
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
||||||
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
||||||
'ipAddress': json['ip_address'] == null ? undefined : json['ip_address'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CreateUserToJSON(json: any): CreateUser {
|
|
||||||
return CreateUserToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CreateUserToJSONTyped(value?: CreateUser | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'uuid': value['uuid'],
|
|
||||||
'name': value['name'],
|
|
||||||
'display_name': value['displayName'],
|
|
||||||
'email': value['email'],
|
|
||||||
'password': value['password'],
|
|
||||||
'language': value['language'],
|
|
||||||
'timezone': value['timezone'],
|
|
||||||
'currency': value['currency'],
|
|
||||||
'ip_address': value['ipAddress'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -27,6 +27,72 @@ import {
|
|||||||
* @interface Game
|
* @interface Game
|
||||||
*/
|
*/
|
||||||
export interface Game {
|
export interface Game {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
gamePort?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
queryPort?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
rconPort?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
serverCount?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
steamAppId?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
steamServerAppId?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
enableServers?: boolean;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
rustGamedigId?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
nodeGamedigId?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
serverConnectUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
serverTags?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -38,7 +104,7 @@ export interface Game {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Game
|
* @memberof Game
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -56,7 +122,7 @@ export interface Game {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Game
|
* @memberof Game
|
||||||
*/
|
*/
|
||||||
organizationId?: string;
|
organizationId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -81,12 +147,60 @@ export interface Game {
|
|||||||
* @memberof Game
|
* @memberof Game
|
||||||
*/
|
*/
|
||||||
libraryImageUrl?: string | null;
|
libraryImageUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
parentId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Game
|
* @memberof Game
|
||||||
*/
|
*/
|
||||||
slug?: string | null;
|
slug?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
visibility?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
password?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
primary?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
userCount?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
achievementCount?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
badgeCount?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Game
|
||||||
|
*/
|
||||||
|
downloadCount?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
@@ -99,48 +213,6 @@ export interface Game {
|
|||||||
* @memberof Game
|
* @memberof Game
|
||||||
*/
|
*/
|
||||||
updated?: Date | null;
|
updated?: Date | null;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
enableServers?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
gamePort?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
queryPort?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
rconPort?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
gamedigId?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
steamAppId?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Game
|
|
||||||
*/
|
|
||||||
steamServerAppId?: number | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -149,7 +221,6 @@ export interface Game {
|
|||||||
* Check if a given object implements the Game interface.
|
* Check if a given object implements the Game interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfGame(value: object): value is Game {
|
export function instanceOfGame(value: object): value is Game {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,8 +234,19 @@ export function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
'gamePort': json['game_port'] == null ? undefined : json['game_port'],
|
||||||
|
'queryPort': json['query_port'] == null ? undefined : json['query_port'],
|
||||||
|
'rconPort': json['rcon_port'] == null ? undefined : json['rcon_port'],
|
||||||
|
'serverCount': json['server_count'] == null ? undefined : json['server_count'],
|
||||||
|
'steamAppId': json['steam_app_id'] == null ? undefined : json['steam_app_id'],
|
||||||
|
'steamServerAppId': json['steam_server_app_id'] == null ? undefined : json['steam_server_app_id'],
|
||||||
|
'enableServers': json['enable_servers'] == null ? undefined : json['enable_servers'],
|
||||||
|
'rustGamedigId': json['rust_gamedig_id'] == null ? undefined : json['rust_gamedig_id'],
|
||||||
|
'nodeGamedigId': json['node_gamedig_id'] == null ? undefined : json['node_gamedig_id'],
|
||||||
|
'serverConnectUrl': json['server_connect_url'] == null ? undefined : json['server_connect_url'],
|
||||||
|
'serverTags': json['server_tags'] == null ? undefined : json['server_tags'],
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'type': json['type'] == null ? undefined : ApplicationTypeFromJSON(json['type']),
|
'type': json['type'] == null ? undefined : ApplicationTypeFromJSON(json['type']),
|
||||||
'organizationId': json['organization_id'] == null ? undefined : json['organization_id'],
|
'organizationId': json['organization_id'] == null ? undefined : json['organization_id'],
|
||||||
@@ -172,16 +254,17 @@ export function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game
|
|||||||
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
|
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
|
||||||
'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'],
|
'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'],
|
||||||
'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'],
|
'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'],
|
||||||
|
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
||||||
'slug': json['slug'] == null ? undefined : json['slug'],
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
||||||
|
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
||||||
|
'password': json['password'] == null ? undefined : json['password'],
|
||||||
|
'primary': json['primary'] == null ? undefined : json['primary'],
|
||||||
|
'userCount': json['user_count'] == null ? undefined : json['user_count'],
|
||||||
|
'achievementCount': json['achievement_count'] == null ? undefined : json['achievement_count'],
|
||||||
|
'badgeCount': json['badge_count'] == null ? undefined : json['badge_count'],
|
||||||
|
'downloadCount': json['download_count'] == null ? undefined : json['download_count'],
|
||||||
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||||
'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'],
|
|
||||||
'rconPort': json['rcon_port'] == null ? undefined : json['rcon_port'],
|
|
||||||
'gamedigId': json['gamedig_id'] == null ? undefined : json['gamedig_id'],
|
|
||||||
'steamAppId': json['steam_app_id'] == null ? undefined : json['steam_app_id'],
|
|
||||||
'steamServerAppId': json['steam_server_app_id'] == null ? undefined : json['steam_server_app_id'],
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,6 +279,17 @@ export function GameToJSONTyped(value?: Game | null, ignoreDiscriminator: boolea
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
'game_port': value['gamePort'],
|
||||||
|
'query_port': value['queryPort'],
|
||||||
|
'rcon_port': value['rconPort'],
|
||||||
|
'server_count': value['serverCount'],
|
||||||
|
'steam_app_id': value['steamAppId'],
|
||||||
|
'steam_server_app_id': value['steamServerAppId'],
|
||||||
|
'enable_servers': value['enableServers'],
|
||||||
|
'rust_gamedig_id': value['rustGamedigId'],
|
||||||
|
'node_gamedig_id': value['nodeGamedigId'],
|
||||||
|
'server_connect_url': value['serverConnectUrl'],
|
||||||
|
'server_tags': value['serverTags'],
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
@@ -205,16 +299,17 @@ export function GameToJSONTyped(value?: Game | null, ignoreDiscriminator: boolea
|
|||||||
'banner_url': value['bannerUrl'],
|
'banner_url': value['bannerUrl'],
|
||||||
'capsule_image_url': value['capsuleImageUrl'],
|
'capsule_image_url': value['capsuleImageUrl'],
|
||||||
'library_image_url': value['libraryImageUrl'],
|
'library_image_url': value['libraryImageUrl'],
|
||||||
|
'parent_id': value['parentId'],
|
||||||
'slug': value['slug'],
|
'slug': value['slug'],
|
||||||
|
'visibility': value['visibility'],
|
||||||
|
'password': value['password'],
|
||||||
|
'primary': value['primary'],
|
||||||
|
'user_count': value['userCount'],
|
||||||
|
'achievement_count': value['achievementCount'],
|
||||||
|
'badge_count': value['badgeCount'],
|
||||||
|
'download_count': value['downloadCount'],
|
||||||
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||||
'enable_servers': value['enableServers'],
|
|
||||||
'game_port': value['gamePort'],
|
|
||||||
'query_port': value['queryPort'],
|
|
||||||
'rcon_port': value['rconPort'],
|
|
||||||
'gamedig_id': value['gamedigId'],
|
|
||||||
'steam_app_id': value['steamAppId'],
|
|
||||||
'steam_server_app_id': value['steamServerAppId'],
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -13,6 +13,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
|
import type { ServerStatus } from './ServerStatus';
|
||||||
|
import {
|
||||||
|
ServerStatusFromJSON,
|
||||||
|
ServerStatusFromJSONTyped,
|
||||||
|
ServerStatusToJSON,
|
||||||
|
ServerStatusToJSONTyped,
|
||||||
|
} from './ServerStatus';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
@@ -30,7 +38,7 @@ export interface GameServer {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -42,19 +50,7 @@ export interface GameServer {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
ownerId?: string | null;
|
address?: string | null;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof GameServer
|
|
||||||
*/
|
|
||||||
address: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof GameServer
|
|
||||||
*/
|
|
||||||
queryPort: number;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -63,16 +59,10 @@ export interface GameServer {
|
|||||||
gamePort?: number | null;
|
gamePort?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {number}
|
||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
map?: string | null;
|
queryPort?: number;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof GameServer
|
|
||||||
*/
|
|
||||||
version?: string | null;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -85,6 +75,18 @@ export interface GameServer {
|
|||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
gameIconUrl?: string | null;
|
gameIconUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
version?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
featured?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -103,12 +105,66 @@ export interface GameServer {
|
|||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
bannerUrl?: string | null;
|
bannerUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
ownerId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
uptime?: number;
|
uptime?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {ServerStatus}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
status?: ServerStatus;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
ping?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
map?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
usedSlots?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
maxSlots?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
motd?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
players?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {Date}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
lastOnline?: Date | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -133,6 +189,18 @@ export interface GameServer {
|
|||||||
* @memberof GameServer
|
* @memberof GameServer
|
||||||
*/
|
*/
|
||||||
youtubeVideoUrl?: string | null;
|
youtubeVideoUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
tags?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof GameServer
|
||||||
|
*/
|
||||||
|
commentCount?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
@@ -147,13 +215,12 @@ export interface GameServer {
|
|||||||
updated?: Date | null;
|
updated?: Date | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the GameServer interface.
|
* Check if a given object implements the GameServer interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfGameServer(value: object): value is GameServer {
|
export function instanceOfGameServer(value: object): value is GameServer {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
if (!('address' in value) || value['address'] === undefined) return false;
|
|
||||||
if (!('queryPort' in value) || value['queryPort'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,24 +235,34 @@ export function GameServerFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
|
'address': json['address'] == null ? undefined : json['address'],
|
||||||
'address': json['address'],
|
|
||||||
'queryPort': json['query_port'],
|
|
||||||
'gamePort': json['game_port'] == null ? undefined : json['game_port'],
|
'gamePort': json['game_port'] == null ? undefined : json['game_port'],
|
||||||
'map': json['map'] == null ? undefined : json['map'],
|
'queryPort': json['query_port'] == null ? undefined : json['query_port'],
|
||||||
'version': json['version'] == null ? undefined : json['version'],
|
|
||||||
'gameId': json['game_id'] == null ? undefined : json['game_id'],
|
'gameId': json['game_id'] == null ? undefined : json['game_id'],
|
||||||
'gameIconUrl': json['game_icon_url'] == null ? undefined : json['game_icon_url'],
|
'gameIconUrl': json['game_icon_url'] == null ? undefined : json['game_icon_url'],
|
||||||
|
'version': json['version'] == null ? undefined : json['version'],
|
||||||
|
'featured': json['featured'] == null ? undefined : json['featured'],
|
||||||
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
||||||
'websiteUrl': json['website_url'] == null ? undefined : json['website_url'],
|
'websiteUrl': json['website_url'] == null ? undefined : json['website_url'],
|
||||||
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
|
'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'],
|
||||||
|
'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
|
||||||
'uptime': json['uptime'] == null ? undefined : json['uptime'],
|
'uptime': json['uptime'] == null ? undefined : json['uptime'],
|
||||||
|
'status': json['status'] == null ? undefined : ServerStatusFromJSON(json['status']),
|
||||||
|
'ping': json['ping'] == null ? undefined : json['ping'],
|
||||||
|
'map': json['map'] == null ? undefined : json['map'],
|
||||||
|
'usedSlots': json['used_slots'] == null ? undefined : json['used_slots'],
|
||||||
|
'maxSlots': json['max_slots'] == null ? undefined : json['max_slots'],
|
||||||
|
'motd': json['motd'] == null ? undefined : json['motd'],
|
||||||
|
'players': json['players'] == null ? undefined : json['players'],
|
||||||
|
'lastOnline': json['last_online'] == null ? undefined : (new Date(json['last_online'])),
|
||||||
'country': json['country'] == null ? undefined : json['country'],
|
'country': json['country'] == null ? undefined : json['country'],
|
||||||
'steam': json['steam'] == null ? undefined : json['steam'],
|
'steam': json['steam'] == null ? undefined : json['steam'],
|
||||||
'discordServerId': json['discord_server_id'] == null ? undefined : json['discord_server_id'],
|
'discordServerId': json['discord_server_id'] == null ? undefined : json['discord_server_id'],
|
||||||
'youtubeVideoUrl': json['youtube_video_url'] == null ? undefined : json['youtube_video_url'],
|
'youtubeVideoUrl': json['youtube_video_url'] == null ? undefined : json['youtube_video_url'],
|
||||||
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
||||||
|
'commentCount': json['comment_count'] == null ? undefined : json['comment_count'],
|
||||||
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||||
};
|
};
|
||||||
@@ -205,22 +282,32 @@ export function GameServerToJSONTyped(value?: GameServer | null, ignoreDiscrimin
|
|||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
'owner_id': value['ownerId'],
|
|
||||||
'address': value['address'],
|
'address': value['address'],
|
||||||
'query_port': value['queryPort'],
|
|
||||||
'game_port': value['gamePort'],
|
'game_port': value['gamePort'],
|
||||||
'map': value['map'],
|
'query_port': value['queryPort'],
|
||||||
'version': value['version'],
|
|
||||||
'game_id': value['gameId'],
|
'game_id': value['gameId'],
|
||||||
'game_icon_url': value['gameIconUrl'],
|
'game_icon_url': value['gameIconUrl'],
|
||||||
|
'version': value['version'],
|
||||||
|
'featured': value['featured'],
|
||||||
'cluster_id': value['clusterId'],
|
'cluster_id': value['clusterId'],
|
||||||
'website_url': value['websiteUrl'],
|
'website_url': value['websiteUrl'],
|
||||||
'banner_url': value['bannerUrl'],
|
'banner_url': value['bannerUrl'],
|
||||||
|
'owner_id': value['ownerId'],
|
||||||
'uptime': value['uptime'],
|
'uptime': value['uptime'],
|
||||||
|
'status': ServerStatusToJSON(value['status']),
|
||||||
|
'ping': value['ping'],
|
||||||
|
'map': value['map'],
|
||||||
|
'used_slots': value['usedSlots'],
|
||||||
|
'max_slots': value['maxSlots'],
|
||||||
|
'motd': value['motd'],
|
||||||
|
'players': value['players'],
|
||||||
|
'last_online': value['lastOnline'] == null ? undefined : ((value['lastOnline'] as any).toISOString()),
|
||||||
'country': value['country'],
|
'country': value['country'],
|
||||||
'steam': value['steam'],
|
'steam': value['steam'],
|
||||||
'discord_server_id': value['discordServerId'],
|
'discord_server_id': value['discordServerId'],
|
||||||
'youtube_video_url': value['youtubeVideoUrl'],
|
'youtube_video_url': value['youtubeVideoUrl'],
|
||||||
|
'tags': value['tags'],
|
||||||
|
'comment_count': value['commentCount'],
|
||||||
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||||
};
|
};
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -30,7 +30,7 @@ export interface GameServerCluster {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof GameServerCluster
|
* @memberof GameServerCluster
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -109,7 +109,6 @@ export interface GameServerCluster {
|
|||||||
* Check if a given object implements the GameServerCluster interface.
|
* Check if a given object implements the GameServerCluster interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfGameServerCluster(value: object): value is GameServerCluster {
|
export function instanceOfGameServerCluster(value: object): value is GameServerCluster {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +123,7 @@ export function GameServerClusterFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'gameId': json['game_id'] == null ? undefined : json['game_id'],
|
'gameId': json['game_id'] == null ? undefined : json['game_id'],
|
||||||
'websiteUrl': json['website_url'] == null ? undefined : json['website_url'],
|
'websiteUrl': json['website_url'] == null ? undefined : json['website_url'],
|
||||||
|
@@ -1,131 +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 { GameServerStatus } from './GameServerStatus';
|
|
||||||
import {
|
|
||||||
GameServerStatusFromJSON,
|
|
||||||
GameServerStatusFromJSONTyped,
|
|
||||||
GameServerStatusToJSON,
|
|
||||||
GameServerStatusToJSONTyped,
|
|
||||||
} from './GameServerStatus';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface GameServerQuery
|
|
||||||
*/
|
|
||||||
export interface GameServerQuery {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
id?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
serverId?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {GameServerStatus}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
status?: GameServerStatus;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
ping?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
currentPlayers?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
maxPlayers?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
motd?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof GameServerQuery
|
|
||||||
*/
|
|
||||||
created?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the GameServerQuery interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfGameServerQuery(value: object): value is GameServerQuery {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerQueryFromJSON(json: any): GameServerQuery {
|
|
||||||
return GameServerQueryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameServerQuery {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
|
||||||
'serverId': json['server_id'] == null ? undefined : json['server_id'],
|
|
||||||
'status': json['status'] == null ? undefined : GameServerStatusFromJSON(json['status']),
|
|
||||||
'ping': json['ping'] == null ? undefined : json['ping'],
|
|
||||||
'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'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerQueryToJSON(json: any): GameServerQuery {
|
|
||||||
return GameServerQueryToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerQueryToJSONTyped(value?: GameServerQuery | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value['id'],
|
|
||||||
'server_id': value['serverId'],
|
|
||||||
'status': GameServerStatusToJSON(value['status']),
|
|
||||||
'ping': value['ping'],
|
|
||||||
'current_players': value['currentPlayers'],
|
|
||||||
'max_players': value['maxPlayers'],
|
|
||||||
'motd': value['motd'],
|
|
||||||
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -1,54 +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 GameServerStatus = {
|
|
||||||
Unknown: 'unknown',
|
|
||||||
Offline: 'offline',
|
|
||||||
Online: 'online'
|
|
||||||
} as const;
|
|
||||||
export type GameServerStatus = typeof GameServerStatus[keyof typeof GameServerStatus];
|
|
||||||
|
|
||||||
|
|
||||||
export function instanceOfGameServerStatus(value: any): boolean {
|
|
||||||
for (const key in GameServerStatus) {
|
|
||||||
if (Object.prototype.hasOwnProperty.call(GameServerStatus, key)) {
|
|
||||||
if (GameServerStatus[key as keyof typeof GameServerStatus] === value) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerStatusFromJSON(json: any): GameServerStatus {
|
|
||||||
return GameServerStatusFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameServerStatus {
|
|
||||||
return json as GameServerStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerStatusToJSON(value?: GameServerStatus | null): any {
|
|
||||||
return value as any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GameServerStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): GameServerStatus {
|
|
||||||
return value as GameServerStatus;
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -36,13 +36,13 @@ export interface Group {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Group
|
* @memberof Group
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Group
|
* @memberof Group
|
||||||
*/
|
*/
|
||||||
tag: string | null;
|
tag?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -121,8 +121,6 @@ export interface Group {
|
|||||||
* Check if a given object implements the Group interface.
|
* Check if a given object implements the Group interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfGroup(value: object): value is 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,8 +136,8 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
|||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'tag': json['tag'],
|
'tag': json['tag'] == null ? undefined : json['tag'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'type': json['type'] == null ? undefined : json['type'],
|
'type': json['type'] == null ? undefined : json['type'],
|
||||||
'privacy': json['privacy'] == null ? undefined : json['privacy'],
|
'privacy': json['privacy'] == null ? undefined : json['privacy'],
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -39,7 +39,7 @@ export interface GroupGame {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof GroupGame
|
* @memberof GroupGame
|
||||||
*/
|
*/
|
||||||
groupId: string;
|
groupId?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Group}
|
* @type {Group}
|
||||||
@@ -82,7 +82,6 @@ export interface GroupGame {
|
|||||||
* Check if a given object implements the GroupGame interface.
|
* Check if a given object implements the GroupGame interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfGroupGame(value: object): value is GroupGame {
|
export function instanceOfGroupGame(value: object): value is GroupGame {
|
||||||
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,7 +95,7 @@ export function GroupGameFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'groupId': json['group_id'],
|
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
||||||
'group': json['group'] == null ? undefined : GroupFromJSON(json['group']),
|
'group': json['group'] == null ? undefined : GroupFromJSON(json['group']),
|
||||||
'applicationId': json['application_id'] == null ? undefined : json['application_id'],
|
'applicationId': json['application_id'] == null ? undefined : json['application_id'],
|
||||||
'application': json['application'] == null ? undefined : ApplicationFromJSON(json['application']),
|
'application': json['application'] == null ? undefined : ApplicationFromJSON(json['application']),
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -24,14 +24,13 @@ export interface HashViewModel {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof HashViewModel
|
* @memberof HashViewModel
|
||||||
*/
|
*/
|
||||||
value: string | null;
|
value?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the HashViewModel interface.
|
* Check if a given object implements the HashViewModel interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfHashViewModel(value: object): value is HashViewModel {
|
export function instanceOfHashViewModel(value: object): value is HashViewModel {
|
||||||
if (!('value' in value) || value['value'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +44,7 @@ export function HashViewModelFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'value': json['value'],
|
'value': json['value'] == null ? undefined : json['value'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -32,13 +32,13 @@ export interface IntrospectRequest {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof IntrospectRequest
|
* @memberof IntrospectRequest
|
||||||
*/
|
*/
|
||||||
token: string | null;
|
token?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {TokenHintType}
|
* @type {TokenHintType}
|
||||||
* @memberof IntrospectRequest
|
* @memberof IntrospectRequest
|
||||||
*/
|
*/
|
||||||
tokenTypeHint: TokenHintType;
|
tokenTypeHint?: TokenHintType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -47,8 +47,6 @@ export interface IntrospectRequest {
|
|||||||
* Check if a given object implements the IntrospectRequest interface.
|
* Check if a given object implements the IntrospectRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfIntrospectRequest(value: object): value is IntrospectRequest {
|
export function instanceOfIntrospectRequest(value: object): value is IntrospectRequest {
|
||||||
if (!('token' in value) || value['token'] === undefined) return false;
|
|
||||||
if (!('tokenTypeHint' in value) || value['tokenTypeHint'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,8 +60,8 @@ export function IntrospectRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'token': json['token'],
|
'token': json['token'] == null ? undefined : json['token'],
|
||||||
'tokenTypeHint': TokenHintTypeFromJSON(json['token_type_hint']),
|
'tokenTypeHint': json['token_type_hint'] == null ? undefined : TokenHintTypeFromJSON(json['token_type_hint']),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,153 +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';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface IntrospectResponse
|
|
||||||
*/
|
|
||||||
export interface IntrospectResponse {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
jti?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
active?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
tokenType?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
clientId?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
sub?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
username?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
scope?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
iss?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
aud?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
iat?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
exp?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof IntrospectResponse
|
|
||||||
*/
|
|
||||||
nbf?: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the IntrospectResponse interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfIntrospectResponse(value: object): value is IntrospectResponse {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IntrospectResponseFromJSON(json: any): IntrospectResponse {
|
|
||||||
return IntrospectResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IntrospectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntrospectResponse {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'jti': json['jti'] == null ? undefined : json['jti'],
|
|
||||||
'active': json['active'] == null ? undefined : json['active'],
|
|
||||||
'tokenType': json['token_type'] == null ? undefined : json['token_type'],
|
|
||||||
'clientId': json['client_id'] == null ? undefined : json['client_id'],
|
|
||||||
'sub': json['sub'] == null ? undefined : json['sub'],
|
|
||||||
'username': json['username'] == null ? undefined : json['username'],
|
|
||||||
'scope': json['scope'] == null ? undefined : json['scope'],
|
|
||||||
'iss': json['iss'] == null ? undefined : json['iss'],
|
|
||||||
'aud': json['aud'] == null ? undefined : json['aud'],
|
|
||||||
'iat': json['iat'] == null ? undefined : json['iat'],
|
|
||||||
'exp': json['exp'] == null ? undefined : json['exp'],
|
|
||||||
'nbf': json['nbf'] == null ? undefined : json['nbf'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IntrospectResponseToJSON(json: any): IntrospectResponse {
|
|
||||||
return IntrospectResponseToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IntrospectResponseToJSONTyped(value?: IntrospectResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'jti': value['jti'],
|
|
||||||
'active': value['active'],
|
|
||||||
'token_type': value['tokenType'],
|
|
||||||
'client_id': value['clientId'],
|
|
||||||
'sub': value['sub'],
|
|
||||||
'username': value['username'],
|
|
||||||
'scope': value['scope'],
|
|
||||||
'iss': value['iss'],
|
|
||||||
'aud': value['aud'],
|
|
||||||
'iat': value['iat'],
|
|
||||||
'exp': value['exp'],
|
|
||||||
'nbf': value['nbf'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -1,132 +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';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ModelFile
|
|
||||||
*/
|
|
||||||
export interface ModelFile {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
id?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
name: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
contentType: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
url: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
hash?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
etag?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
size?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
created?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ModelFile
|
|
||||||
*/
|
|
||||||
updated?: Date | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ModelFile interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfModelFile(value: object): value is ModelFile {
|
|
||||||
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 ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'contentType': json['content_type'],
|
|
||||||
'url': json['url'],
|
|
||||||
'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'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ModelFileToJSON(json: any): ModelFile {
|
|
||||||
return ModelFileToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value['id'],
|
|
||||||
'name': value['name'],
|
|
||||||
'content_type': value['contentType'],
|
|
||||||
'url': value['url'],
|
|
||||||
'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()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -13,14 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { PackageRelease } from './PackageRelease';
|
|
||||||
import {
|
|
||||||
PackageReleaseFromJSON,
|
|
||||||
PackageReleaseFromJSONTyped,
|
|
||||||
PackageReleaseToJSON,
|
|
||||||
PackageReleaseToJSONTyped,
|
|
||||||
} from './PackageRelease';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
@@ -38,13 +30,19 @@ export interface Package {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Package
|
* @memberof Package
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Package
|
* @memberof Package
|
||||||
*/
|
*/
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Package
|
||||||
|
*/
|
||||||
|
imageUrl?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -56,13 +54,19 @@ export interface Package {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Package
|
* @memberof Package
|
||||||
*/
|
*/
|
||||||
imageUrl: string | null;
|
version?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Package
|
* @memberof Package
|
||||||
*/
|
*/
|
||||||
applicationId?: string | null;
|
fileUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof Package
|
||||||
|
*/
|
||||||
|
rawSize?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -75,12 +79,6 @@ export interface Package {
|
|||||||
* @memberof Package
|
* @memberof Package
|
||||||
*/
|
*/
|
||||||
lastDownload?: Date | null;
|
lastDownload?: Date | null;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<PackageRelease>}
|
|
||||||
* @memberof Package
|
|
||||||
*/
|
|
||||||
releases?: Array<PackageRelease> | null;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
@@ -99,8 +97,6 @@ export interface Package {
|
|||||||
* Check if a given object implements the Package interface.
|
* Check if a given object implements the Package interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPackage(value: object): value is Package {
|
export function instanceOfPackage(value: object): value is Package {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,14 +111,15 @@ export function PackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
|
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
||||||
'authorId': json['author_id'] == null ? undefined : json['author_id'],
|
'authorId': json['author_id'] == null ? undefined : json['author_id'],
|
||||||
'imageUrl': json['image_url'],
|
'version': json['version'] == null ? undefined : json['version'],
|
||||||
'applicationId': json['application_id'] == null ? undefined : json['application_id'],
|
'fileUrl': json['file_url'] == null ? undefined : json['file_url'],
|
||||||
|
'rawSize': json['raw_size'] == null ? undefined : json['raw_size'],
|
||||||
'downloadCount': json['download_count'] == null ? undefined : json['download_count'],
|
'downloadCount': json['download_count'] == null ? undefined : json['download_count'],
|
||||||
'lastDownload': json['last_download'] == null ? undefined : (new Date(json['last_download'])),
|
'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'])),
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||||
};
|
};
|
||||||
@@ -142,12 +139,13 @@ export function PackageToJSONTyped(value?: Package | null, ignoreDiscriminator:
|
|||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
'author_id': value['authorId'],
|
|
||||||
'image_url': value['imageUrl'],
|
'image_url': value['imageUrl'],
|
||||||
'application_id': value['applicationId'],
|
'author_id': value['authorId'],
|
||||||
|
'version': value['version'],
|
||||||
|
'file_url': value['fileUrl'],
|
||||||
|
'raw_size': value['rawSize'],
|
||||||
'download_count': value['downloadCount'],
|
'download_count': value['downloadCount'],
|
||||||
'last_download': value['lastDownload'] == null ? undefined : ((value['lastDownload'] as any).toISOString()),
|
'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()),
|
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||||
};
|
};
|
||||||
|
@@ -1,113 +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';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface PackageRelease
|
|
||||||
*/
|
|
||||||
export interface PackageRelease {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
id?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
version: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
packageId?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
notes?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<any>}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
readonly files?: Array<any> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
created?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof PackageRelease
|
|
||||||
*/
|
|
||||||
updated?: Date | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the PackageRelease interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfPackageRelease(value: object): value is PackageRelease {
|
|
||||||
if (!('version' in value) || value['version'] === undefined) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PackageReleaseFromJSON(json: any): PackageRelease {
|
|
||||||
return PackageReleaseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PackageReleaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PackageRelease {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
|
||||||
'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'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PackageReleaseToJSON(json: any): PackageRelease {
|
|
||||||
return PackageReleaseToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PackageReleaseToJSONTyped(value?: Omit<PackageRelease, 'files'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value['id'],
|
|
||||||
'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()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -32,13 +32,13 @@ export interface RevokeRequest {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof RevokeRequest
|
* @memberof RevokeRequest
|
||||||
*/
|
*/
|
||||||
token: string | null;
|
token?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {TokenHintType}
|
* @type {TokenHintType}
|
||||||
* @memberof RevokeRequest
|
* @memberof RevokeRequest
|
||||||
*/
|
*/
|
||||||
tokenTypeHint: TokenHintType;
|
tokenTypeHint?: TokenHintType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -47,8 +47,6 @@ export interface RevokeRequest {
|
|||||||
* Check if a given object implements the RevokeRequest interface.
|
* Check if a given object implements the RevokeRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfRevokeRequest(value: object): value is RevokeRequest {
|
export function instanceOfRevokeRequest(value: object): value is RevokeRequest {
|
||||||
if (!('token' in value) || value['token'] === undefined) return false;
|
|
||||||
if (!('tokenTypeHint' in value) || value['tokenTypeHint'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,8 +60,8 @@ export function RevokeRequestFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'token': json['token'],
|
'token': json['token'] == null ? undefined : json['token'],
|
||||||
'tokenTypeHint': TokenHintTypeFromJSON(json['token_type_hint']),
|
'tokenTypeHint': json['token_type_hint'] == null ? undefined : TokenHintTypeFromJSON(json['token_type_hint']),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,101 +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 { SearchType } from './SearchType';
|
|
||||||
import {
|
|
||||||
SearchTypeFromJSON,
|
|
||||||
SearchTypeFromJSONTyped,
|
|
||||||
SearchTypeToJSON,
|
|
||||||
SearchTypeToJSONTyped,
|
|
||||||
} from './SearchType';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Search
|
|
||||||
*/
|
|
||||||
export interface Search {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {SearchType}
|
|
||||||
* @memberof Search
|
|
||||||
*/
|
|
||||||
type: SearchType;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Search
|
|
||||||
*/
|
|
||||||
query: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Search
|
|
||||||
*/
|
|
||||||
page?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Search
|
|
||||||
*/
|
|
||||||
gameId?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Search interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfSearch(value: object): value is Search {
|
|
||||||
if (!('type' in value) || value['type'] === undefined) return false;
|
|
||||||
if (!('query' in value) || value['query'] === undefined) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SearchFromJSON(json: any): Search {
|
|
||||||
return SearchFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Search {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'type': SearchTypeFromJSON(json['type']),
|
|
||||||
'query': json['query'],
|
|
||||||
'page': json['page'] == null ? undefined : json['page'],
|
|
||||||
'gameId': json['game_id'] == null ? undefined : json['game_id'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SearchToJSON(json: any): Search {
|
|
||||||
return SearchToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SearchToJSONTyped(value?: Search | 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'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
export const SearchType = {
|
export const SearchType = {
|
||||||
User: 'user',
|
User: 'user',
|
||||||
Group: 'group',
|
Group: 'group',
|
||||||
GameServer: 'game_server',
|
Server: 'server',
|
||||||
GameServerCluster: 'game_server_cluster'
|
Cluster: 'cluster'
|
||||||
} as const;
|
} as const;
|
||||||
export type SearchType = typeof SearchType[keyof typeof SearchType];
|
export type SearchType = typeof SearchType[keyof typeof SearchType];
|
||||||
|
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -13,14 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { SubscriptionPrice } from './SubscriptionPrice';
|
|
||||||
import {
|
|
||||||
SubscriptionPriceFromJSON,
|
|
||||||
SubscriptionPriceFromJSONTyped,
|
|
||||||
SubscriptionPriceToJSON,
|
|
||||||
SubscriptionPriceToJSONTyped,
|
|
||||||
} from './SubscriptionPrice';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
@@ -38,7 +30,7 @@ export interface Subscription {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Subscription
|
* @memberof Subscription
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -53,10 +45,10 @@ export interface Subscription {
|
|||||||
imageUrl?: string | null;
|
imageUrl?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SubscriptionPrice>}
|
* @type {{ [key: string]: number; }}
|
||||||
* @memberof Subscription
|
* @memberof Subscription
|
||||||
*/
|
*/
|
||||||
prices?: Array<SubscriptionPrice> | null;
|
readonly prices?: { [key: string]: number; } | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
@@ -75,7 +67,6 @@ export interface Subscription {
|
|||||||
* Check if a given object implements the Subscription interface.
|
* Check if a given object implements the Subscription interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfSubscription(value: object): value is Subscription {
|
export function instanceOfSubscription(value: object): value is Subscription {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,10 +81,10 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
||||||
'prices': json['prices'] == null ? undefined : ((json['prices'] as Array<any>).map(SubscriptionPriceFromJSON)),
|
'prices': json['prices'] == null ? undefined : json['prices'],
|
||||||
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||||
};
|
};
|
||||||
@@ -103,7 +94,7 @@ export function SubscriptionToJSON(json: any): Subscription {
|
|||||||
return SubscriptionToJSONTyped(json, false);
|
return SubscriptionToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscriminator: boolean = false): any {
|
export function SubscriptionToJSONTyped(value?: Omit<Subscription, 'prices'> | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
@@ -114,7 +105,6 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
'image_url': value['imageUrl'],
|
'image_url': value['imageUrl'],
|
||||||
'prices': value['prices'] == null ? undefined : ((value['prices'] as Array<any>).map(SubscriptionPriceToJSON)),
|
|
||||||
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||||
};
|
};
|
||||||
|
@@ -1,83 +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';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface SubscriptionPrice
|
|
||||||
*/
|
|
||||||
export interface SubscriptionPrice {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof SubscriptionPrice
|
|
||||||
*/
|
|
||||||
currency: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof SubscriptionPrice
|
|
||||||
*/
|
|
||||||
amount: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof SubscriptionPrice
|
|
||||||
*/
|
|
||||||
renewal?: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the SubscriptionPrice interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfSubscriptionPrice(value: object): value is SubscriptionPrice {
|
|
||||||
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 SubscriptionPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPrice {
|
|
||||||
if (json == null) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'currency': json['currency'],
|
|
||||||
'amount': json['amount'],
|
|
||||||
'renewal': json['renewal'] == null ? undefined : json['renewal'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SubscriptionPriceToJSON(json: any): SubscriptionPrice {
|
|
||||||
return SubscriptionPriceToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SubscriptionPriceToJSONTyped(value?: SubscriptionPrice | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
|
|
||||||
'currency': value['currency'],
|
|
||||||
'amount': value['amount'],
|
|
||||||
'renewal': value['renewal'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -57,6 +57,12 @@ export interface TokenRequest {
|
|||||||
* @memberof TokenRequest
|
* @memberof TokenRequest
|
||||||
*/
|
*/
|
||||||
refreshToken?: string | null;
|
refreshToken?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof TokenRequest
|
||||||
|
*/
|
||||||
|
clientId?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -95,6 +101,7 @@ export function TokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
'username': json['username'] == null ? undefined : json['username'],
|
'username': json['username'] == null ? undefined : json['username'],
|
||||||
'password': json['password'] == null ? undefined : json['password'],
|
'password': json['password'] == null ? undefined : json['password'],
|
||||||
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
||||||
|
'clientId': json['client_id'] == null ? undefined : json['client_id'],
|
||||||
'redirectUri': json['redirect_uri'] == null ? undefined : json['redirect_uri'],
|
'redirectUri': json['redirect_uri'] == null ? undefined : json['redirect_uri'],
|
||||||
'codeVerifier': json['code_verifier'] == null ? undefined : json['code_verifier'],
|
'codeVerifier': json['code_verifier'] == null ? undefined : json['code_verifier'],
|
||||||
};
|
};
|
||||||
@@ -116,6 +123,7 @@ export function TokenRequestToJSONTyped(value?: TokenRequest | null, ignoreDiscr
|
|||||||
'username': value['username'],
|
'username': value['username'],
|
||||||
'password': value['password'],
|
'password': value['password'],
|
||||||
'refresh_token': value['refreshToken'],
|
'refresh_token': value['refreshToken'],
|
||||||
|
'client_id': value['clientId'],
|
||||||
'redirect_uri': value['redirectUri'],
|
'redirect_uri': value['redirectUri'],
|
||||||
'code_verifier': value['codeVerifier'],
|
'code_verifier': value['codeVerifier'],
|
||||||
};
|
};
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -32,13 +32,13 @@ export interface TokenResponse {
|
|||||||
* @type {TokenType}
|
* @type {TokenType}
|
||||||
* @memberof TokenResponse
|
* @memberof TokenResponse
|
||||||
*/
|
*/
|
||||||
tokenType: TokenType;
|
tokenType?: TokenType;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof TokenResponse
|
* @memberof TokenResponse
|
||||||
*/
|
*/
|
||||||
accessToken: string | null;
|
accessToken?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -71,8 +71,6 @@ export interface TokenResponse {
|
|||||||
* Check if a given object implements the TokenResponse interface.
|
* Check if a given object implements the TokenResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfTokenResponse(value: object): value is TokenResponse {
|
export function instanceOfTokenResponse(value: object): value is TokenResponse {
|
||||||
if (!('tokenType' in value) || value['tokenType'] === undefined) return false;
|
|
||||||
if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,8 +84,8 @@ export function TokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'tokenType': TokenTypeFromJSON(json['token_type']),
|
'tokenType': json['token_type'] == null ? undefined : TokenTypeFromJSON(json['token_type']),
|
||||||
'accessToken': json['access_token'],
|
'accessToken': json['access_token'] == null ? undefined : json['access_token'],
|
||||||
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
||||||
'scope': json['scope'] == null ? undefined : json['scope'],
|
'scope': json['scope'] == null ? undefined : json['scope'],
|
||||||
'state': json['state'] == null ? undefined : json['state'],
|
'state': json['state'] == null ? undefined : json['state'],
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -24,7 +24,7 @@ export interface UpdateProfile {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof UpdateProfile
|
* @memberof UpdateProfile
|
||||||
*/
|
*/
|
||||||
displayName: string | null;
|
displayName?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -37,7 +37,6 @@ export interface UpdateProfile {
|
|||||||
* Check if a given object implements the UpdateProfile interface.
|
* Check if a given object implements the UpdateProfile interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfUpdateProfile(value: object): value is UpdateProfile {
|
export function instanceOfUpdateProfile(value: object): value is UpdateProfile {
|
||||||
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +50,7 @@ export function UpdateProfileFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'displayName': json['display_name'],
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
||||||
'biography': json['biography'] == null ? undefined : json['biography'],
|
'biography': json['biography'] == null ? undefined : json['biography'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -44,7 +44,7 @@ export interface UserInfo {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof UserInfo
|
* @memberof UserInfo
|
||||||
*/
|
*/
|
||||||
name: string | null;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -57,18 +57,66 @@ export interface UserInfo {
|
|||||||
* @memberof UserInfo
|
* @memberof UserInfo
|
||||||
*/
|
*/
|
||||||
email?: string | null;
|
email?: string | null;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof UserInfo
|
|
||||||
*/
|
|
||||||
emailVerified?: boolean;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {UserType}
|
* @type {UserType}
|
||||||
* @memberof UserInfo
|
* @memberof UserInfo
|
||||||
*/
|
*/
|
||||||
type?: UserType;
|
type?: UserType;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
flags?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
permissions?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
verified?: boolean;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
level?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
experience?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
publicBirthday?: boolean;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {Date}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
birthday?: Date | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
points?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
location?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -95,10 +143,28 @@ export interface UserInfo {
|
|||||||
photoUrl?: string | null;
|
photoUrl?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {string}
|
||||||
* @memberof UserInfo
|
* @memberof UserInfo
|
||||||
*/
|
*/
|
||||||
permissions?: Array<string> | null;
|
bannerUrl?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {Date}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
lastOnline?: Date | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
biography?: string | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof UserInfo
|
||||||
|
*/
|
||||||
|
viewCount?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
@@ -119,7 +185,6 @@ export interface UserInfo {
|
|||||||
* Check if a given object implements the UserInfo interface.
|
* Check if a given object implements the UserInfo interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfUserInfo(value: object): value is UserInfo {
|
export function instanceOfUserInfo(value: object): value is UserInfo {
|
||||||
if (!('name' in value) || value['name'] === undefined) return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,16 +200,27 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
|
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
||||||
'name': json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
||||||
'email': json['email'] == null ? undefined : json['email'],
|
'email': json['email'] == null ? undefined : json['email'],
|
||||||
'emailVerified': json['email_verified'] == null ? undefined : json['email_verified'],
|
|
||||||
'type': json['type'] == null ? undefined : UserTypeFromJSON(json['type']),
|
'type': json['type'] == null ? undefined : UserTypeFromJSON(json['type']),
|
||||||
|
'flags': json['flags'] == null ? undefined : json['flags'],
|
||||||
|
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
||||||
|
'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'],
|
||||||
'language': json['language'] == null ? undefined : json['language'],
|
'language': json['language'] == null ? undefined : json['language'],
|
||||||
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
||||||
'currency': json['currency'] == null ? undefined : json['currency'],
|
'currency': json['currency'] == null ? undefined : json['currency'],
|
||||||
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
|
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
|
||||||
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
'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'])),
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
||||||
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
'updated': json['updated'] == null ? undefined : (new Date(json['updated'])),
|
||||||
};
|
};
|
||||||
@@ -166,13 +242,24 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator
|
|||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'display_name': value['displayName'],
|
'display_name': value['displayName'],
|
||||||
'email': value['email'],
|
'email': value['email'],
|
||||||
'email_verified': value['emailVerified'],
|
|
||||||
'type': UserTypeToJSON(value['type']),
|
'type': UserTypeToJSON(value['type']),
|
||||||
|
'flags': value['flags'],
|
||||||
|
'permissions': value['permissions'],
|
||||||
|
'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'],
|
||||||
'language': value['language'],
|
'language': value['language'],
|
||||||
'timezone': value['timezone'],
|
'timezone': value['timezone'],
|
||||||
'currency': value['currency'],
|
'currency': value['currency'],
|
||||||
'photo_url': value['photoUrl'],
|
'photo_url': value['photoUrl'],
|
||||||
'permissions': value['permissions'],
|
'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()),
|
'created': value['created'] == null ? undefined : ((value['created']).toISOString()),
|
||||||
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()),
|
||||||
};
|
};
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@@ -4,18 +4,11 @@ export * from './Account';
|
|||||||
export * from './Application';
|
export * from './Application';
|
||||||
export * from './ApplicationType';
|
export * from './ApplicationType';
|
||||||
export * from './AuthorizeRequest';
|
export * from './AuthorizeRequest';
|
||||||
export * from './Client';
|
|
||||||
export * from './ClientInfo';
|
|
||||||
export * from './ClientType';
|
|
||||||
export * from './CodeChallengeMethod';
|
export * from './CodeChallengeMethod';
|
||||||
export * from './CodeResponse';
|
|
||||||
export * from './CreateUser';
|
|
||||||
export * from './CryptoViewModel';
|
export * from './CryptoViewModel';
|
||||||
export * from './Game';
|
export * from './Game';
|
||||||
export * from './GameServer';
|
export * from './GameServer';
|
||||||
export * from './GameServerCluster';
|
export * from './GameServerCluster';
|
||||||
export * from './GameServerQuery';
|
|
||||||
export * from './GameServerStatus';
|
|
||||||
export * from './GrantType';
|
export * from './GrantType';
|
||||||
export * from './Group';
|
export * from './Group';
|
||||||
export * from './GroupGame';
|
export * from './GroupGame';
|
||||||
@@ -23,24 +16,25 @@ export * from './GroupMember';
|
|||||||
export * from './GroupRank';
|
export * from './GroupRank';
|
||||||
export * from './HashViewModel';
|
export * from './HashViewModel';
|
||||||
export * from './IntrospectRequest';
|
export * from './IntrospectRequest';
|
||||||
export * from './IntrospectResponse';
|
|
||||||
export * from './IpAddress';
|
export * from './IpAddress';
|
||||||
export * from './LeaderboardItem';
|
export * from './LeaderboardItem';
|
||||||
export * from './LeaderboardOrder';
|
export * from './LeaderboardOrder';
|
||||||
export * from './LoginProvider';
|
export * from './LoginProvider';
|
||||||
export * from './ModelFile';
|
export * from './LoginRequest';
|
||||||
|
export * from './LoginResponse';
|
||||||
export * from './Package';
|
export * from './Package';
|
||||||
export * from './PackageRelease';
|
|
||||||
export * from './Profile';
|
export * from './Profile';
|
||||||
export * from './ProfileGame';
|
export * from './ProfileGame';
|
||||||
export * from './ProfileGroup';
|
export * from './ProfileGroup';
|
||||||
|
export * from './RefreshRequest';
|
||||||
|
export * from './RegisterRequest';
|
||||||
export * from './ResponseType';
|
export * from './ResponseType';
|
||||||
export * from './RevokeRequest';
|
export * from './RevokeRequest';
|
||||||
export * from './Search';
|
export * from './SearchRequest';
|
||||||
export * from './SearchType';
|
export * from './SearchType';
|
||||||
export * from './ServerMetrics';
|
export * from './ServerMetrics';
|
||||||
|
export * from './ServerStatus';
|
||||||
export * from './Subscription';
|
export * from './Subscription';
|
||||||
export * from './SubscriptionPrice';
|
|
||||||
export * from './TokenHintType';
|
export * from './TokenHintType';
|
||||||
export * from './TokenRequest';
|
export * from './TokenRequest';
|
||||||
export * from './TokenResponse';
|
export * from './TokenResponse';
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/**
|
/**
|
||||||
* Tribufu API
|
* Tribufu API
|
||||||
* API to access Tribufu services.
|
* REST API to access Tribufu services.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.2.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* Contact: contact@tribufu.com
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
Reference in New Issue
Block a user