Skip to content

Commit

Permalink
fix ownerId
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Jul 5, 2024
1 parent 8588318 commit 877e36e
Show file tree
Hide file tree
Showing 46 changed files with 1,607 additions and 1,206 deletions.
7 changes: 5 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ src/models/AuthorizationError.ts
src/models/ConflictError.ts
src/models/ErrorTest.ts
src/models/Format.ts
src/models/FormatAllOf.ts
src/models/FormatBase.ts
src/models/FormatCreate.ts
src/models/FormatPartialUpdate.ts
Expand All @@ -22,6 +21,11 @@ src/models/MeetingCreate.ts
src/models/MeetingPartialUpdate.ts
src/models/MeetingUpdate.ts
src/models/NotFoundError.ts
src/models/RootServer.ts
src/models/RootServerBase.ts
src/models/RootServerBaseStatistics.ts
src/models/RootServerBaseStatisticsMeetings.ts
src/models/RootServerBaseStatisticsServiceBodies.ts
src/models/ServerError.ts
src/models/ServiceBody.ts
src/models/ServiceBodyBase.ts
Expand All @@ -33,7 +37,6 @@ src/models/TokenCredentials.ts
src/models/User.ts
src/models/UserBase.ts
src/models/UserCreate.ts
src/models/UserCreateAllOf.ts
src/models/UserPartialUpdate.ts
src/models/UserUpdate.ts
src/models/ValidationError.ts
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.1-SNAPSHOT
7.8.0-SNAPSHOT
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

Expand All @@ -27,7 +27,7 @@ npm run build

### Publishing

First build the package then run ```npm publish```
First build the package then run `npm publish`

### Consuming

Expand All @@ -43,3 +43,4 @@ _unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```
2 changes: 1 addition & 1 deletion openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"prepare": "npm run build"
},
"devDependencies": {
"typescript": "^4.0"
"typescript": "^4.0 || ^5.0"
}
}
360 changes: 260 additions & 100 deletions src/apis/RootServerApi.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export * from './runtime';
export * from './apis';
export * from './models';
export * from './apis/index';
export * from './models/index';
21 changes: 8 additions & 13 deletions src/models/AuthenticationError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
/**
*
* @export
Expand All @@ -30,19 +30,17 @@ export interface AuthenticationError {
/**
* Check if a given object implements the AuthenticationError interface.
*/
export function instanceOfAuthenticationError(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "message" in value;

return isInstance;
export function instanceOfAuthenticationError(value: object): value is AuthenticationError {
if (!('message' in value) || value['message'] === undefined) return false;
return true;
}

export function AuthenticationErrorFromJSON(json: any): AuthenticationError {
return AuthenticationErrorFromJSONTyped(json, false);
}

export function AuthenticationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationError {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {
Expand All @@ -52,15 +50,12 @@ export function AuthenticationErrorFromJSONTyped(json: any, ignoreDiscriminator:
}

export function AuthenticationErrorToJSON(value?: AuthenticationError | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {

'message': value.message,
'message': value['message'],
};
}

21 changes: 8 additions & 13 deletions src/models/AuthorizationError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
/**
*
* @export
Expand All @@ -30,19 +30,17 @@ export interface AuthorizationError {
/**
* Check if a given object implements the AuthorizationError interface.
*/
export function instanceOfAuthorizationError(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "message" in value;

return isInstance;
export function instanceOfAuthorizationError(value: object): value is AuthorizationError {
if (!('message' in value) || value['message'] === undefined) return false;
return true;
}

export function AuthorizationErrorFromJSON(json: any): AuthorizationError {
return AuthorizationErrorFromJSONTyped(json, false);
}

export function AuthorizationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorizationError {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {
Expand All @@ -52,15 +50,12 @@ export function AuthorizationErrorFromJSONTyped(json: any, ignoreDiscriminator:
}

export function AuthorizationErrorToJSON(value?: AuthorizationError | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {

'message': value.message,
'message': value['message'],
};
}

21 changes: 8 additions & 13 deletions src/models/ConflictError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
/**
*
* @export
Expand All @@ -30,19 +30,17 @@ export interface ConflictError {
/**
* Check if a given object implements the ConflictError interface.
*/
export function instanceOfConflictError(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "message" in value;

return isInstance;
export function instanceOfConflictError(value: object): value is ConflictError {
if (!('message' in value) || value['message'] === undefined) return false;
return true;
}

export function ConflictErrorFromJSON(json: any): ConflictError {
return ConflictErrorFromJSONTyped(json, false);
}

export function ConflictErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConflictError {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {
Expand All @@ -52,15 +50,12 @@ export function ConflictErrorFromJSONTyped(json: any, ignoreDiscriminator: boole
}

export function ConflictErrorToJSON(value?: ConflictError | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {

'message': value.message,
'message': value['message'],
};
}

29 changes: 12 additions & 17 deletions src/models/ErrorTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
/**
*
* @export
Expand Down Expand Up @@ -42,40 +42,35 @@ export interface ErrorTest {
/**
* Check if a given object implements the ErrorTest interface.
*/
export function instanceOfErrorTest(value: object): boolean {
let isInstance = true;

return isInstance;
export function instanceOfErrorTest(value: object): value is ErrorTest {
return true;
}

export function ErrorTestFromJSON(json: any): ErrorTest {
return ErrorTestFromJSONTyped(json, false);
}

export function ErrorTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorTest {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {

'arbitraryString': !exists(json, 'arbitrary_string') ? undefined : json['arbitrary_string'],
'arbitraryInt': !exists(json, 'arbitrary_int') ? undefined : json['arbitrary_int'],
'forceServerError': !exists(json, 'force_server_error') ? undefined : json['force_server_error'],
'arbitraryString': json['arbitrary_string'] == null ? undefined : json['arbitrary_string'],
'arbitraryInt': json['arbitrary_int'] == null ? undefined : json['arbitrary_int'],
'forceServerError': json['force_server_error'] == null ? undefined : json['force_server_error'],
};
}

export function ErrorTestToJSON(value?: ErrorTest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {

'arbitrary_string': value.arbitraryString,
'arbitrary_int': value.arbitraryInt,
'force_server_error': value.forceServerError,
'arbitrary_string': value['arbitraryString'],
'arbitrary_int': value['arbitraryInt'],
'force_server_error': value['forceServerError'],
};
}

33 changes: 14 additions & 19 deletions src/models/Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
import type { FormatTranslation } from './FormatTranslation';
import {
FormatTranslationFromJSON,
Expand Down Expand Up @@ -55,22 +55,20 @@ export interface Format {
/**
* Check if a given object implements the Format interface.
*/
export function instanceOfFormat(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "worldId" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "translations" in value;
isInstance = isInstance && "id" in value;

return isInstance;
export function instanceOfFormat(value: object): value is Format {
if (!('worldId' in value) || value['worldId'] === undefined) return false;
if (!('type' in value) || value['type'] === undefined) return false;
if (!('translations' in value) || value['translations'] === undefined) return false;
if (!('id' in value) || value['id'] === undefined) return false;
return true;
}

export function FormatFromJSON(json: any): Format {
return FormatFromJSONTyped(json, false);
}

export function FormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Format {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {
Expand All @@ -83,18 +81,15 @@ export function FormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fo
}

export function FormatToJSON(value?: Format | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {

'worldId': value.worldId,
'type': value.type,
'translations': ((value.translations as Array<any>).map(FormatTranslationToJSON)),
'id': value.id,
'worldId': value['worldId'],
'type': value['type'],
'translations': ((value['translations'] as Array<any>).map(FormatTranslationToJSON)),
'id': value['id'],
};
}

Loading

0 comments on commit 877e36e

Please sign in to comment.