bmlt-server-client 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +25 -0
- package/.idea/bmlt-server-typescript-client.iml +9 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.openapi-generator/FILES +46 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/Makefile +18 -0
- package/README.md +46 -0
- package/dist/apis/ServerApi.d.ts +424 -0
- package/dist/apis/ServerApi.js +1828 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AuthenticationError.d.ts +32 -0
- package/dist/models/AuthenticationError.js +52 -0
- package/dist/models/AuthorizationError.d.ts +32 -0
- package/dist/models/AuthorizationError.js +52 -0
- package/dist/models/ConflictError.d.ts +32 -0
- package/dist/models/ConflictError.js +52 -0
- package/dist/models/ErrorTest.d.ts +44 -0
- package/dist/models/ErrorTest.js +54 -0
- package/dist/models/Format.d.ts +51 -0
- package/dist/models/Format.js +65 -0
- package/dist/models/FormatBase.d.ts +45 -0
- package/dist/models/FormatBase.js +55 -0
- package/dist/models/FormatCreate.d.ts +45 -0
- package/dist/models/FormatCreate.js +57 -0
- package/dist/models/FormatPartialUpdate.d.ts +45 -0
- package/dist/models/FormatPartialUpdate.js +55 -0
- package/dist/models/FormatTranslation.d.ts +50 -0
- package/dist/models/FormatTranslation.js +64 -0
- package/dist/models/FormatUpdate.d.ts +45 -0
- package/dist/models/FormatUpdate.js +57 -0
- package/dist/models/Meeting.d.ts +256 -0
- package/dist/models/Meeting.js +154 -0
- package/dist/models/MeetingBase.d.ts +250 -0
- package/dist/models/MeetingBase.js +122 -0
- package/dist/models/MeetingChangeResource.d.ts +50 -0
- package/dist/models/MeetingChangeResource.js +56 -0
- package/dist/models/MeetingCreate.d.ts +250 -0
- package/dist/models/MeetingCreate.js +142 -0
- package/dist/models/MeetingPartialUpdate.d.ts +250 -0
- package/dist/models/MeetingPartialUpdate.js +142 -0
- package/dist/models/MeetingUpdate.d.ts +250 -0
- package/dist/models/MeetingUpdate.js +142 -0
- package/dist/models/NotFoundError.d.ts +32 -0
- package/dist/models/NotFoundError.js +52 -0
- package/dist/models/Server.d.ts +69 -0
- package/dist/models/Server.js +73 -0
- package/dist/models/ServerBase.d.ts +63 -0
- package/dist/models/ServerBase.js +61 -0
- package/dist/models/ServerBaseStatistics.d.ts +40 -0
- package/dist/models/ServerBaseStatistics.js +58 -0
- package/dist/models/ServerBaseStatisticsMeetings.d.ts +56 -0
- package/dist/models/ServerBaseStatisticsMeetings.js +68 -0
- package/dist/models/ServerBaseStatisticsServiceBodies.d.ts +50 -0
- package/dist/models/ServerBaseStatisticsServiceBodies.js +64 -0
- package/dist/models/ServerError.d.ts +32 -0
- package/dist/models/ServerError.js +52 -0
- package/dist/models/ServiceBody.d.ts +92 -0
- package/dist/models/ServiceBody.js +92 -0
- package/dist/models/ServiceBodyBase.d.ts +86 -0
- package/dist/models/ServiceBodyBase.js +68 -0
- package/dist/models/ServiceBodyCreate.d.ts +86 -0
- package/dist/models/ServiceBodyCreate.js +80 -0
- package/dist/models/ServiceBodyPartialUpdate.d.ts +86 -0
- package/dist/models/ServiceBodyPartialUpdate.js +68 -0
- package/dist/models/ServiceBodyUpdate.d.ts +86 -0
- package/dist/models/ServiceBodyUpdate.js +80 -0
- package/dist/models/Token.d.ts +50 -0
- package/dist/models/Token.js +64 -0
- package/dist/models/TokenCredentials.d.ts +38 -0
- package/dist/models/TokenCredentials.js +56 -0
- package/dist/models/User.d.ts +68 -0
- package/dist/models/User.js +76 -0
- package/dist/models/UserBase.d.ts +62 -0
- package/dist/models/UserBase.js +60 -0
- package/dist/models/UserCreate.d.ts +68 -0
- package/dist/models/UserCreate.js +70 -0
- package/dist/models/UserPartialUpdate.d.ts +68 -0
- package/dist/models/UserPartialUpdate.js +62 -0
- package/dist/models/UserUpdate.d.ts +68 -0
- package/dist/models/UserUpdate.js +68 -0
- package/dist/models/ValidationError.d.ts +40 -0
- package/dist/models/ValidationError.js +56 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.js +54 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/openapi.json +1 -0
- package/package.json +19 -0
- package/src/apis/ServerApi.ts +1529 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/AuthenticationError.ts +66 -0
- package/src/models/AuthorizationError.ts +66 -0
- package/src/models/ConflictError.ts +66 -0
- package/src/models/ErrorTest.ts +81 -0
- package/src/models/Format.ts +101 -0
- package/src/models/FormatBase.ts +89 -0
- package/src/models/FormatCreate.ts +90 -0
- package/src/models/FormatPartialUpdate.ts +89 -0
- package/src/models/FormatTranslation.ts +93 -0
- package/src/models/FormatUpdate.ts +90 -0
- package/src/models/Meeting.ts +376 -0
- package/src/models/MeetingBase.ts +353 -0
- package/src/models/MeetingChangeResource.ts +89 -0
- package/src/models/MeetingCreate.ts +363 -0
- package/src/models/MeetingPartialUpdate.ts +363 -0
- package/src/models/MeetingUpdate.ts +363 -0
- package/src/models/NotFoundError.ts +66 -0
- package/src/models/Server.ts +126 -0
- package/src/models/ServerBase.ts +113 -0
- package/src/models/ServerBaseStatistics.ts +90 -0
- package/src/models/ServerBaseStatisticsMeetings.ts +102 -0
- package/src/models/ServerBaseStatisticsServiceBodies.ts +93 -0
- package/src/models/ServerError.ts +66 -0
- package/src/models/ServiceBody.ts +156 -0
- package/src/models/ServiceBodyBase.ts +137 -0
- package/src/models/ServiceBodyCreate.ts +143 -0
- package/src/models/ServiceBodyPartialUpdate.ts +137 -0
- package/src/models/ServiceBodyUpdate.ts +143 -0
- package/src/models/Token.ts +93 -0
- package/src/models/TokenCredentials.ts +75 -0
- package/src/models/User.ts +120 -0
- package/src/models/UserBase.ts +105 -0
- package/src/models/UserCreate.ts +117 -0
- package/src/models/UserPartialUpdate.ts +113 -0
- package/src/models/UserUpdate.ts +116 -0
- package/src/models/ValidationError.ts +75 -0
- package/src/models/index.ts +38 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuthenticationError
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthenticationError {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthenticationError
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AuthenticationError interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAuthenticationError(value: object): value is AuthenticationError {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AuthenticationErrorFromJSON(json: any): AuthenticationError {
|
|
39
|
+
return AuthenticationErrorFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AuthenticationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationError {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AuthenticationErrorToJSON(json: any): AuthenticationError {
|
|
53
|
+
return AuthenticationErrorToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AuthenticationErrorToJSONTyped(value?: AuthenticationError | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value['message'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuthorizationError
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthorizationError {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthorizationError
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AuthorizationError interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAuthorizationError(value: object): value is AuthorizationError {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AuthorizationErrorFromJSON(json: any): AuthorizationError {
|
|
39
|
+
return AuthorizationErrorFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AuthorizationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorizationError {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AuthorizationErrorToJSON(json: any): AuthorizationError {
|
|
53
|
+
return AuthorizationErrorToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AuthorizationErrorToJSONTyped(value?: AuthorizationError | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value['message'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConflictError
|
|
20
|
+
*/
|
|
21
|
+
export interface ConflictError {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConflictError
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ConflictError interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfConflictError(value: object): value is ConflictError {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ConflictErrorFromJSON(json: any): ConflictError {
|
|
39
|
+
return ConflictErrorFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ConflictErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConflictError {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ConflictErrorToJSON(json: any): ConflictError {
|
|
53
|
+
return ConflictErrorToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ConflictErrorToJSONTyped(value?: ConflictError | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value['message'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ErrorTest
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorTest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorTest
|
|
26
|
+
*/
|
|
27
|
+
arbitraryString?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ErrorTest
|
|
32
|
+
*/
|
|
33
|
+
arbitraryInt?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ErrorTest
|
|
38
|
+
*/
|
|
39
|
+
forceServerError?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ErrorTest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfErrorTest(value: object): value is ErrorTest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ErrorTestFromJSON(json: any): ErrorTest {
|
|
50
|
+
return ErrorTestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ErrorTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorTest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'arbitraryString': json['arbitrary_string'] == null ? undefined : json['arbitrary_string'],
|
|
60
|
+
'arbitraryInt': json['arbitrary_int'] == null ? undefined : json['arbitrary_int'],
|
|
61
|
+
'forceServerError': json['force_server_error'] == null ? undefined : json['force_server_error'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ErrorTestToJSON(json: any): ErrorTest {
|
|
66
|
+
return ErrorTestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ErrorTestToJSONTyped(value?: ErrorTest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'arbitrary_string': value['arbitraryString'],
|
|
77
|
+
'arbitrary_int': value['arbitraryInt'],
|
|
78
|
+
'force_server_error': value['forceServerError'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FormatTranslation } from './FormatTranslation';
|
|
17
|
+
import {
|
|
18
|
+
FormatTranslationFromJSON,
|
|
19
|
+
FormatTranslationFromJSONTyped,
|
|
20
|
+
FormatTranslationToJSON,
|
|
21
|
+
FormatTranslationToJSONTyped,
|
|
22
|
+
} from './FormatTranslation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Format
|
|
28
|
+
*/
|
|
29
|
+
export interface Format {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Format
|
|
34
|
+
*/
|
|
35
|
+
worldId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Format
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<FormatTranslation>}
|
|
45
|
+
* @memberof Format
|
|
46
|
+
*/
|
|
47
|
+
translations: Array<FormatTranslation>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Format
|
|
52
|
+
*/
|
|
53
|
+
id: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the Format interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfFormat(value: object): value is Format {
|
|
60
|
+
if (!('worldId' in value) || value['worldId'] === undefined) return false;
|
|
61
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
62
|
+
if (!('translations' in value) || value['translations'] === undefined) return false;
|
|
63
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function FormatFromJSON(json: any): Format {
|
|
68
|
+
return FormatFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function FormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Format {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'worldId': json['worldId'],
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'translations': ((json['translations'] as Array<any>).map(FormatTranslationFromJSON)),
|
|
80
|
+
'id': json['id'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function FormatToJSON(json: any): Format {
|
|
85
|
+
return FormatToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function FormatToJSONTyped(value?: Format | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'worldId': value['worldId'],
|
|
96
|
+
'type': value['type'],
|
|
97
|
+
'translations': ((value['translations'] as Array<any>).map(FormatTranslationToJSON)),
|
|
98
|
+
'id': value['id'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FormatTranslation } from './FormatTranslation';
|
|
17
|
+
import {
|
|
18
|
+
FormatTranslationFromJSON,
|
|
19
|
+
FormatTranslationFromJSONTyped,
|
|
20
|
+
FormatTranslationToJSON,
|
|
21
|
+
FormatTranslationToJSONTyped,
|
|
22
|
+
} from './FormatTranslation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FormatBase
|
|
28
|
+
*/
|
|
29
|
+
export interface FormatBase {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FormatBase
|
|
34
|
+
*/
|
|
35
|
+
worldId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FormatBase
|
|
40
|
+
*/
|
|
41
|
+
type?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<FormatTranslation>}
|
|
45
|
+
* @memberof FormatBase
|
|
46
|
+
*/
|
|
47
|
+
translations?: Array<FormatTranslation>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the FormatBase interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfFormatBase(value: object): value is FormatBase {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function FormatBaseFromJSON(json: any): FormatBase {
|
|
58
|
+
return FormatBaseFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function FormatBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatBase {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'worldId': json['worldId'] == null ? undefined : json['worldId'],
|
|
68
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
69
|
+
'translations': json['translations'] == null ? undefined : ((json['translations'] as Array<any>).map(FormatTranslationFromJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function FormatBaseToJSON(json: any): FormatBase {
|
|
74
|
+
return FormatBaseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function FormatBaseToJSONTyped(value?: FormatBase | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'worldId': value['worldId'],
|
|
85
|
+
'type': value['type'],
|
|
86
|
+
'translations': value['translations'] == null ? undefined : ((value['translations'] as Array<any>).map(FormatTranslationToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FormatTranslation } from './FormatTranslation';
|
|
17
|
+
import {
|
|
18
|
+
FormatTranslationFromJSON,
|
|
19
|
+
FormatTranslationFromJSONTyped,
|
|
20
|
+
FormatTranslationToJSON,
|
|
21
|
+
FormatTranslationToJSONTyped,
|
|
22
|
+
} from './FormatTranslation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FormatCreate
|
|
28
|
+
*/
|
|
29
|
+
export interface FormatCreate {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FormatCreate
|
|
34
|
+
*/
|
|
35
|
+
worldId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FormatCreate
|
|
40
|
+
*/
|
|
41
|
+
type?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<FormatTranslation>}
|
|
45
|
+
* @memberof FormatCreate
|
|
46
|
+
*/
|
|
47
|
+
translations: Array<FormatTranslation>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the FormatCreate interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfFormatCreate(value: object): value is FormatCreate {
|
|
54
|
+
if (!('translations' in value) || value['translations'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function FormatCreateFromJSON(json: any): FormatCreate {
|
|
59
|
+
return FormatCreateFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function FormatCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatCreate {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'worldId': json['worldId'] == null ? undefined : json['worldId'],
|
|
69
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
70
|
+
'translations': ((json['translations'] as Array<any>).map(FormatTranslationFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function FormatCreateToJSON(json: any): FormatCreate {
|
|
75
|
+
return FormatCreateToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function FormatCreateToJSONTyped(value?: FormatCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'worldId': value['worldId'],
|
|
86
|
+
'type': value['type'],
|
|
87
|
+
'translations': ((value['translations'] as Array<any>).map(FormatTranslationToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FormatTranslation } from './FormatTranslation';
|
|
17
|
+
import {
|
|
18
|
+
FormatTranslationFromJSON,
|
|
19
|
+
FormatTranslationFromJSONTyped,
|
|
20
|
+
FormatTranslationToJSON,
|
|
21
|
+
FormatTranslationToJSONTyped,
|
|
22
|
+
} from './FormatTranslation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FormatPartialUpdate
|
|
28
|
+
*/
|
|
29
|
+
export interface FormatPartialUpdate {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FormatPartialUpdate
|
|
34
|
+
*/
|
|
35
|
+
worldId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FormatPartialUpdate
|
|
40
|
+
*/
|
|
41
|
+
type?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<FormatTranslation>}
|
|
45
|
+
* @memberof FormatPartialUpdate
|
|
46
|
+
*/
|
|
47
|
+
translations?: Array<FormatTranslation>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the FormatPartialUpdate interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfFormatPartialUpdate(value: object): value is FormatPartialUpdate {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function FormatPartialUpdateFromJSON(json: any): FormatPartialUpdate {
|
|
58
|
+
return FormatPartialUpdateFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function FormatPartialUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatPartialUpdate {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'worldId': json['worldId'] == null ? undefined : json['worldId'],
|
|
68
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
69
|
+
'translations': json['translations'] == null ? undefined : ((json['translations'] as Array<any>).map(FormatTranslationFromJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function FormatPartialUpdateToJSON(json: any): FormatPartialUpdate {
|
|
74
|
+
return FormatPartialUpdateToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function FormatPartialUpdateToJSONTyped(value?: FormatPartialUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'worldId': value['worldId'],
|
|
85
|
+
'type': value['type'],
|
|
86
|
+
'translations': value['translations'] == null ? undefined : ((value['translations'] as Array<any>).map(FormatTranslationToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|