bmlt-server-client 1.3.0 → 1.3.2

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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +6 -6
  2. package/dist/apis/{ServerApi.d.ts → RootServerApi.d.ts} +25 -16
  3. package/dist/apis/{ServerApi.js → RootServerApi.js} +96 -86
  4. package/dist/apis/index.d.ts +1 -1
  5. package/dist/apis/index.js +1 -1
  6. package/dist/models/MeetingPartialUpdate.d.ts +10 -10
  7. package/dist/models/MeetingPartialUpdate.js +10 -30
  8. package/dist/models/RootServer.d.ts +69 -0
  9. package/dist/models/{Server.js → RootServer.js} +17 -17
  10. package/dist/models/RootServerBase.d.ts +63 -0
  11. package/dist/models/{ServerBase.js → RootServerBase.js} +17 -17
  12. package/dist/models/RootServerBaseStatistics.d.ts +40 -0
  13. package/dist/models/RootServerBaseStatistics.js +58 -0
  14. package/dist/models/RootServerBaseStatisticsMeetings.d.ts +56 -0
  15. package/dist/models/{ServerBaseStatisticsMeetings.js → RootServerBaseStatisticsMeetings.js} +14 -14
  16. package/dist/models/RootServerBaseStatisticsServiceBodies.d.ts +50 -0
  17. package/dist/models/RootServerBaseStatisticsServiceBodies.js +64 -0
  18. package/dist/models/index.d.ts +5 -5
  19. package/dist/models/index.js +5 -5
  20. package/openapi.json +1 -1
  21. package/package.json +1 -1
  22. package/src/apis/{ServerApi.ts → RootServerApi.ts} +41 -27
  23. package/src/apis/index.ts +1 -1
  24. package/src/models/MeetingPartialUpdate.ts +20 -30
  25. package/src/models/{Server.ts → RootServer.ts} +27 -27
  26. package/src/models/{ServerBase.ts → RootServerBase.ts} +26 -26
  27. package/src/models/RootServerBaseStatistics.ts +90 -0
  28. package/src/models/{ServerBaseStatisticsMeetings.ts → RootServerBaseStatisticsMeetings.ts} +15 -15
  29. package/src/models/{ServerBaseStatisticsServiceBodies.ts → RootServerBaseStatisticsServiceBodies.ts} +14 -14
  30. package/src/models/index.ts +5 -5
  31. package/dist/models/Server.d.ts +0 -69
  32. package/dist/models/ServerBase.d.ts +0 -63
  33. package/dist/models/ServerBaseStatistics.d.ts +0 -40
  34. package/dist/models/ServerBaseStatistics.js +0 -58
  35. package/dist/models/ServerBaseStatisticsMeetings.d.ts +0 -56
  36. package/dist/models/ServerBaseStatisticsServiceBodies.d.ts +0 -50
  37. package/dist/models/ServerBaseStatisticsServiceBodies.js +0 -64
  38. package/src/models/ServerBaseStatistics.ts +0 -90
@@ -29,7 +29,7 @@ import type {
29
29
  MeetingPartialUpdate,
30
30
  MeetingUpdate,
31
31
  NotFoundError,
32
- Server,
32
+ RootServer,
33
33
  ServerError,
34
34
  ServiceBody,
35
35
  ServiceBodyCreate,
@@ -72,8 +72,8 @@ import {
72
72
  MeetingUpdateToJSON,
73
73
  NotFoundErrorFromJSON,
74
74
  NotFoundErrorToJSON,
75
- ServerFromJSON,
76
- ServerToJSON,
75
+ RootServerFromJSON,
76
+ RootServerToJSON,
77
77
  ServerErrorFromJSON,
78
78
  ServerErrorToJSON,
79
79
  ServiceBodyFromJSON,
@@ -159,8 +159,8 @@ export interface GetMeetingsRequest {
159
159
  searchString?: string;
160
160
  }
161
161
 
162
- export interface GetServerRequest {
163
- serverId: number;
162
+ export interface GetRootServerRequest {
163
+ rootServerId: number;
164
164
  }
165
165
 
166
166
  export interface GetServiceBodyRequest {
@@ -184,6 +184,7 @@ export interface PatchFormatRequest {
184
184
  export interface PatchMeetingRequest {
185
185
  meetingId: number;
186
186
  meetingPartialUpdate: MeetingPartialUpdate;
187
+ skipValidation?: PatchMeetingSkipValidationEnum;
187
188
  }
188
189
 
189
190
  export interface PatchServiceBodyRequest {
@@ -214,7 +215,7 @@ export interface UpdateUserRequest {
214
215
  /**
215
216
  *
216
217
  */
217
- export class ServerApi extends runtime.BaseAPI {
218
+ export class RootServerApi extends runtime.BaseAPI {
218
219
 
219
220
  /**
220
221
  * Revoke token and logout.
@@ -926,14 +927,14 @@ export class ServerApi extends runtime.BaseAPI {
926
927
  }
927
928
 
928
929
  /**
929
- * Retrieve a single server id.
930
- * Retrieves a server
930
+ * Retrieve a single root server id.
931
+ * Retrieves a root server
931
932
  */
932
- async getServerRaw(requestParameters: GetServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Server>> {
933
- if (requestParameters['serverId'] == null) {
933
+ async getRootServerRaw(requestParameters: GetRootServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RootServer>> {
934
+ if (requestParameters['rootServerId'] == null) {
934
935
  throw new runtime.RequiredError(
935
- 'serverId',
936
- 'Required parameter "serverId" was null or undefined when calling getServer().'
936
+ 'rootServerId',
937
+ 'Required parameter "rootServerId" was null or undefined when calling getRootServer().'
937
938
  );
938
939
  }
939
940
 
@@ -942,49 +943,49 @@ export class ServerApi extends runtime.BaseAPI {
942
943
  const headerParameters: runtime.HTTPHeaders = {};
943
944
 
944
945
  const response = await this.request({
945
- path: `/api/v1/servers/{serverId}`.replace(`{${"serverId"}}`, encodeURIComponent(String(requestParameters['serverId']))),
946
+ path: `/api/v1/rootservers/{rootServerId}`.replace(`{${"rootServerId"}}`, encodeURIComponent(String(requestParameters['rootServerId']))),
946
947
  method: 'GET',
947
948
  headers: headerParameters,
948
949
  query: queryParameters,
949
950
  }, initOverrides);
950
951
 
951
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerFromJSON(jsonValue));
952
+ return new runtime.JSONApiResponse(response, (jsonValue) => RootServerFromJSON(jsonValue));
952
953
  }
953
954
 
954
955
  /**
955
- * Retrieve a single server id.
956
- * Retrieves a server
956
+ * Retrieve a single root server id.
957
+ * Retrieves a root server
957
958
  */
958
- async getServer(requestParameters: GetServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Server> {
959
- const response = await this.getServerRaw(requestParameters, initOverrides);
959
+ async getRootServer(requestParameters: GetRootServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RootServer> {
960
+ const response = await this.getRootServerRaw(requestParameters, initOverrides);
960
961
  return await response.value();
961
962
  }
962
963
 
963
964
  /**
964
- * Retrieve servers.
965
- * Retrieves servers
965
+ * Retrieve root servers.
966
+ * Retrieves root servers
966
967
  */
967
- async getServersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Server>>> {
968
+ async getRootServersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RootServer>>> {
968
969
  const queryParameters: any = {};
969
970
 
970
971
  const headerParameters: runtime.HTTPHeaders = {};
971
972
 
972
973
  const response = await this.request({
973
- path: `/api/v1/servers`,
974
+ path: `/api/v1/rootservers`,
974
975
  method: 'GET',
975
976
  headers: headerParameters,
976
977
  query: queryParameters,
977
978
  }, initOverrides);
978
979
 
979
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ServerFromJSON));
980
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RootServerFromJSON));
980
981
  }
981
982
 
982
983
  /**
983
- * Retrieve servers.
984
- * Retrieves servers
984
+ * Retrieve root servers.
985
+ * Retrieves root servers
985
986
  */
986
- async getServers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Server>> {
987
- const response = await this.getServersRaw(initOverrides);
987
+ async getRootServers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RootServer>> {
988
+ const response = await this.getRootServersRaw(initOverrides);
988
989
  return await response.value();
989
990
  }
990
991
 
@@ -1253,6 +1254,10 @@ export class ServerApi extends runtime.BaseAPI {
1253
1254
 
1254
1255
  const queryParameters: any = {};
1255
1256
 
1257
+ if (requestParameters['skipValidation'] != null) {
1258
+ queryParameters['skipValidation'] = requestParameters['skipValidation'];
1259
+ }
1260
+
1256
1261
  const headerParameters: runtime.HTTPHeaders = {};
1257
1262
 
1258
1263
  headerParameters['Content-Type'] = 'application/json';
@@ -1527,3 +1532,12 @@ export class ServerApi extends runtime.BaseAPI {
1527
1532
  }
1528
1533
 
1529
1534
  }
1535
+
1536
+ /**
1537
+ * @export
1538
+ */
1539
+ export const PatchMeetingSkipValidationEnum = {
1540
+ NUMBER_0: 0,
1541
+ NUMBER_1: 1
1542
+ } as const;
1543
+ export type PatchMeetingSkipValidationEnum = typeof PatchMeetingSkipValidationEnum[keyof typeof PatchMeetingSkipValidationEnum];
package/src/apis/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './ServerApi';
3
+ export * from './RootServerApi';
@@ -24,19 +24,19 @@ export interface MeetingPartialUpdate {
24
24
  * @type {number}
25
25
  * @memberof MeetingPartialUpdate
26
26
  */
27
- serviceBodyId: number;
27
+ serviceBodyId?: number;
28
28
  /**
29
29
  *
30
30
  * @type {Array<number>}
31
31
  * @memberof MeetingPartialUpdate
32
32
  */
33
- formatIds: Array<number>;
33
+ formatIds?: Array<number>;
34
34
  /**
35
35
  *
36
36
  * @type {number}
37
37
  * @memberof MeetingPartialUpdate
38
38
  */
39
- venueType: number;
39
+ venueType?: number;
40
40
  /**
41
41
  *
42
42
  * @type {boolean}
@@ -48,19 +48,19 @@ export interface MeetingPartialUpdate {
48
48
  * @type {number}
49
49
  * @memberof MeetingPartialUpdate
50
50
  */
51
- day: number;
51
+ day?: number;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
55
  * @memberof MeetingPartialUpdate
56
56
  */
57
- startTime: string;
57
+ startTime?: string;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
61
  * @memberof MeetingPartialUpdate
62
62
  */
63
- duration: string;
63
+ duration?: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,19 +72,19 @@ export interface MeetingPartialUpdate {
72
72
  * @type {number}
73
73
  * @memberof MeetingPartialUpdate
74
74
  */
75
- latitude: number;
75
+ latitude?: number;
76
76
  /**
77
77
  *
78
78
  * @type {number}
79
79
  * @memberof MeetingPartialUpdate
80
80
  */
81
- longitude: number;
81
+ longitude?: number;
82
82
  /**
83
83
  *
84
84
  * @type {boolean}
85
85
  * @memberof MeetingPartialUpdate
86
86
  */
87
- published: boolean;
87
+ published?: boolean;
88
88
  /**
89
89
  *
90
90
  * @type {string}
@@ -102,7 +102,7 @@ export interface MeetingPartialUpdate {
102
102
  * @type {string}
103
103
  * @memberof MeetingPartialUpdate
104
104
  */
105
- name: string;
105
+ name?: string;
106
106
  /**
107
107
  *
108
108
  * @type {string}
@@ -247,16 +247,6 @@ export interface MeetingPartialUpdate {
247
247
  * Check if a given object implements the MeetingPartialUpdate interface.
248
248
  */
249
249
  export function instanceOfMeetingPartialUpdate(value: object): value is MeetingPartialUpdate {
250
- if (!('serviceBodyId' in value) || value['serviceBodyId'] === undefined) return false;
251
- if (!('formatIds' in value) || value['formatIds'] === undefined) return false;
252
- if (!('venueType' in value) || value['venueType'] === undefined) return false;
253
- if (!('day' in value) || value['day'] === undefined) return false;
254
- if (!('startTime' in value) || value['startTime'] === undefined) return false;
255
- if (!('duration' in value) || value['duration'] === undefined) return false;
256
- if (!('latitude' in value) || value['latitude'] === undefined) return false;
257
- if (!('longitude' in value) || value['longitude'] === undefined) return false;
258
- if (!('published' in value) || value['published'] === undefined) return false;
259
- if (!('name' in value) || value['name'] === undefined) return false;
260
250
  return true;
261
251
  }
262
252
 
@@ -270,20 +260,20 @@ export function MeetingPartialUpdateFromJSONTyped(json: any, ignoreDiscriminator
270
260
  }
271
261
  return {
272
262
 
273
- 'serviceBodyId': json['serviceBodyId'],
274
- 'formatIds': json['formatIds'],
275
- 'venueType': json['venueType'],
263
+ 'serviceBodyId': json['serviceBodyId'] == null ? undefined : json['serviceBodyId'],
264
+ 'formatIds': json['formatIds'] == null ? undefined : json['formatIds'],
265
+ 'venueType': json['venueType'] == null ? undefined : json['venueType'],
276
266
  'temporarilyVirtual': json['temporarilyVirtual'] == null ? undefined : json['temporarilyVirtual'],
277
- 'day': json['day'],
278
- 'startTime': json['startTime'],
279
- 'duration': json['duration'],
267
+ 'day': json['day'] == null ? undefined : json['day'],
268
+ 'startTime': json['startTime'] == null ? undefined : json['startTime'],
269
+ 'duration': json['duration'] == null ? undefined : json['duration'],
280
270
  'timeZone': json['timeZone'] == null ? undefined : json['timeZone'],
281
- 'latitude': json['latitude'],
282
- 'longitude': json['longitude'],
283
- 'published': json['published'],
271
+ 'latitude': json['latitude'] == null ? undefined : json['latitude'],
272
+ 'longitude': json['longitude'] == null ? undefined : json['longitude'],
273
+ 'published': json['published'] == null ? undefined : json['published'],
284
274
  'email': json['email'] == null ? undefined : json['email'],
285
275
  'worldId': json['worldId'] == null ? undefined : json['worldId'],
286
- 'name': json['name'],
276
+ 'name': json['name'] == null ? undefined : json['name'],
287
277
  'locationText': json['location_text'] == null ? undefined : json['location_text'],
288
278
  'locationInfo': json['location_info'] == null ? undefined : json['location_info'],
289
279
  'locationStreet': json['location_street'] == null ? undefined : json['location_street'],
@@ -13,68 +13,68 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ServerBaseStatistics } from './ServerBaseStatistics';
16
+ import type { RootServerBaseStatistics } from './RootServerBaseStatistics';
17
17
  import {
18
- ServerBaseStatisticsFromJSON,
19
- ServerBaseStatisticsFromJSONTyped,
20
- ServerBaseStatisticsToJSON,
21
- ServerBaseStatisticsToJSONTyped,
22
- } from './ServerBaseStatistics';
18
+ RootServerBaseStatisticsFromJSON,
19
+ RootServerBaseStatisticsFromJSONTyped,
20
+ RootServerBaseStatisticsToJSON,
21
+ RootServerBaseStatisticsToJSONTyped,
22
+ } from './RootServerBaseStatistics';
23
23
 
24
24
  /**
25
25
  *
26
26
  * @export
27
- * @interface Server
27
+ * @interface RootServer
28
28
  */
29
- export interface Server {
29
+ export interface RootServer {
30
30
  /**
31
31
  *
32
32
  * @type {number}
33
- * @memberof Server
33
+ * @memberof RootServer
34
34
  */
35
35
  sourceId: number;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof Server
39
+ * @memberof RootServer
40
40
  */
41
41
  name: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
- * @memberof Server
45
+ * @memberof RootServer
46
46
  */
47
47
  url: string;
48
48
  /**
49
49
  *
50
- * @type {ServerBaseStatistics}
51
- * @memberof Server
50
+ * @type {RootServerBaseStatistics}
51
+ * @memberof RootServer
52
52
  */
53
- statistics?: ServerBaseStatistics;
53
+ statistics?: RootServerBaseStatistics;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
- * @memberof Server
57
+ * @memberof RootServer
58
58
  */
59
59
  serverInfo?: string;
60
60
  /**
61
61
  *
62
62
  * @type {Date}
63
- * @memberof Server
63
+ * @memberof RootServer
64
64
  */
65
65
  lastSuccessfulImport: Date;
66
66
  /**
67
67
  *
68
68
  * @type {number}
69
- * @memberof Server
69
+ * @memberof RootServer
70
70
  */
71
71
  id: number;
72
72
  }
73
73
 
74
74
  /**
75
- * Check if a given object implements the Server interface.
75
+ * Check if a given object implements the RootServer interface.
76
76
  */
77
- export function instanceOfServer(value: object): value is Server {
77
+ export function instanceOfRootServer(value: object): value is RootServer {
78
78
  if (!('sourceId' in value) || value['sourceId'] === undefined) return false;
79
79
  if (!('name' in value) || value['name'] === undefined) return false;
80
80
  if (!('url' in value) || value['url'] === undefined) return false;
@@ -83,11 +83,11 @@ export function instanceOfServer(value: object): value is Server {
83
83
  return true;
84
84
  }
85
85
 
86
- export function ServerFromJSON(json: any): Server {
87
- return ServerFromJSONTyped(json, false);
86
+ export function RootServerFromJSON(json: any): RootServer {
87
+ return RootServerFromJSONTyped(json, false);
88
88
  }
89
89
 
90
- export function ServerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Server {
90
+ export function RootServerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RootServer {
91
91
  if (json == null) {
92
92
  return json;
93
93
  }
@@ -96,18 +96,18 @@ export function ServerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Se
96
96
  'sourceId': json['sourceId'],
97
97
  'name': json['name'],
98
98
  'url': json['url'],
99
- 'statistics': json['statistics'] == null ? undefined : ServerBaseStatisticsFromJSON(json['statistics']),
99
+ 'statistics': json['statistics'] == null ? undefined : RootServerBaseStatisticsFromJSON(json['statistics']),
100
100
  'serverInfo': json['serverInfo'] == null ? undefined : json['serverInfo'],
101
101
  'lastSuccessfulImport': (new Date(json['lastSuccessfulImport'])),
102
102
  'id': json['id'],
103
103
  };
104
104
  }
105
105
 
106
- export function ServerToJSON(json: any): Server {
107
- return ServerToJSONTyped(json, false);
106
+ export function RootServerToJSON(json: any): RootServer {
107
+ return RootServerToJSONTyped(json, false);
108
108
  }
109
109
 
110
- export function ServerToJSONTyped(value?: Server | null, ignoreDiscriminator: boolean = false): any {
110
+ export function RootServerToJSONTyped(value?: RootServer | null, ignoreDiscriminator: boolean = false): any {
111
111
  if (value == null) {
112
112
  return value;
113
113
  }
@@ -117,7 +117,7 @@ export function ServerToJSONTyped(value?: Server | null, ignoreDiscriminator: bo
117
117
  'sourceId': value['sourceId'],
118
118
  'name': value['name'],
119
119
  'url': value['url'],
120
- 'statistics': ServerBaseStatisticsToJSON(value['statistics']),
120
+ 'statistics': RootServerBaseStatisticsToJSON(value['statistics']),
121
121
  'serverInfo': value['serverInfo'],
122
122
  'lastSuccessfulImport': ((value['lastSuccessfulImport']).toISOString()),
123
123
  'id': value['id'],
@@ -13,70 +13,70 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ServerBaseStatistics } from './ServerBaseStatistics';
16
+ import type { RootServerBaseStatistics } from './RootServerBaseStatistics';
17
17
  import {
18
- ServerBaseStatisticsFromJSON,
19
- ServerBaseStatisticsFromJSONTyped,
20
- ServerBaseStatisticsToJSON,
21
- ServerBaseStatisticsToJSONTyped,
22
- } from './ServerBaseStatistics';
18
+ RootServerBaseStatisticsFromJSON,
19
+ RootServerBaseStatisticsFromJSONTyped,
20
+ RootServerBaseStatisticsToJSON,
21
+ RootServerBaseStatisticsToJSONTyped,
22
+ } from './RootServerBaseStatistics';
23
23
 
24
24
  /**
25
25
  *
26
26
  * @export
27
- * @interface ServerBase
27
+ * @interface RootServerBase
28
28
  */
29
- export interface ServerBase {
29
+ export interface RootServerBase {
30
30
  /**
31
31
  *
32
32
  * @type {number}
33
- * @memberof ServerBase
33
+ * @memberof RootServerBase
34
34
  */
35
35
  sourceId?: number;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof ServerBase
39
+ * @memberof RootServerBase
40
40
  */
41
41
  name?: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
- * @memberof ServerBase
45
+ * @memberof RootServerBase
46
46
  */
47
47
  url?: string;
48
48
  /**
49
49
  *
50
- * @type {ServerBaseStatistics}
51
- * @memberof ServerBase
50
+ * @type {RootServerBaseStatistics}
51
+ * @memberof RootServerBase
52
52
  */
53
- statistics?: ServerBaseStatistics;
53
+ statistics?: RootServerBaseStatistics;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
- * @memberof ServerBase
57
+ * @memberof RootServerBase
58
58
  */
59
59
  serverInfo?: string;
60
60
  /**
61
61
  *
62
62
  * @type {Date}
63
- * @memberof ServerBase
63
+ * @memberof RootServerBase
64
64
  */
65
65
  lastSuccessfulImport?: Date;
66
66
  }
67
67
 
68
68
  /**
69
- * Check if a given object implements the ServerBase interface.
69
+ * Check if a given object implements the RootServerBase interface.
70
70
  */
71
- export function instanceOfServerBase(value: object): value is ServerBase {
71
+ export function instanceOfRootServerBase(value: object): value is RootServerBase {
72
72
  return true;
73
73
  }
74
74
 
75
- export function ServerBaseFromJSON(json: any): ServerBase {
76
- return ServerBaseFromJSONTyped(json, false);
75
+ export function RootServerBaseFromJSON(json: any): RootServerBase {
76
+ return RootServerBaseFromJSONTyped(json, false);
77
77
  }
78
78
 
79
- export function ServerBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerBase {
79
+ export function RootServerBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RootServerBase {
80
80
  if (json == null) {
81
81
  return json;
82
82
  }
@@ -85,17 +85,17 @@ export function ServerBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean)
85
85
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
86
86
  'name': json['name'] == null ? undefined : json['name'],
87
87
  'url': json['url'] == null ? undefined : json['url'],
88
- 'statistics': json['statistics'] == null ? undefined : ServerBaseStatisticsFromJSON(json['statistics']),
88
+ 'statistics': json['statistics'] == null ? undefined : RootServerBaseStatisticsFromJSON(json['statistics']),
89
89
  'serverInfo': json['serverInfo'] == null ? undefined : json['serverInfo'],
90
90
  'lastSuccessfulImport': json['lastSuccessfulImport'] == null ? undefined : (new Date(json['lastSuccessfulImport'])),
91
91
  };
92
92
  }
93
93
 
94
- export function ServerBaseToJSON(json: any): ServerBase {
95
- return ServerBaseToJSONTyped(json, false);
94
+ export function RootServerBaseToJSON(json: any): RootServerBase {
95
+ return RootServerBaseToJSONTyped(json, false);
96
96
  }
97
97
 
98
- export function ServerBaseToJSONTyped(value?: ServerBase | null, ignoreDiscriminator: boolean = false): any {
98
+ export function RootServerBaseToJSONTyped(value?: RootServerBase | null, ignoreDiscriminator: boolean = false): any {
99
99
  if (value == null) {
100
100
  return value;
101
101
  }
@@ -105,7 +105,7 @@ export function ServerBaseToJSONTyped(value?: ServerBase | null, ignoreDiscrimin
105
105
  'sourceId': value['sourceId'],
106
106
  'name': value['name'],
107
107
  'url': value['url'],
108
- 'statistics': ServerBaseStatisticsToJSON(value['statistics']),
108
+ 'statistics': RootServerBaseStatisticsToJSON(value['statistics']),
109
109
  'serverInfo': value['serverInfo'],
110
110
  'lastSuccessfulImport': value['lastSuccessfulImport'] == null ? undefined : ((value['lastSuccessfulImport']).toISOString()),
111
111
  };
@@ -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 { RootServerBaseStatisticsMeetings } from './RootServerBaseStatisticsMeetings';
17
+ import {
18
+ RootServerBaseStatisticsMeetingsFromJSON,
19
+ RootServerBaseStatisticsMeetingsFromJSONTyped,
20
+ RootServerBaseStatisticsMeetingsToJSON,
21
+ RootServerBaseStatisticsMeetingsToJSONTyped,
22
+ } from './RootServerBaseStatisticsMeetings';
23
+ import type { RootServerBaseStatisticsServiceBodies } from './RootServerBaseStatisticsServiceBodies';
24
+ import {
25
+ RootServerBaseStatisticsServiceBodiesFromJSON,
26
+ RootServerBaseStatisticsServiceBodiesFromJSONTyped,
27
+ RootServerBaseStatisticsServiceBodiesToJSON,
28
+ RootServerBaseStatisticsServiceBodiesToJSONTyped,
29
+ } from './RootServerBaseStatisticsServiceBodies';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface RootServerBaseStatistics
35
+ */
36
+ export interface RootServerBaseStatistics {
37
+ /**
38
+ *
39
+ * @type {RootServerBaseStatisticsServiceBodies}
40
+ * @memberof RootServerBaseStatistics
41
+ */
42
+ serviceBodies: RootServerBaseStatisticsServiceBodies;
43
+ /**
44
+ *
45
+ * @type {RootServerBaseStatisticsMeetings}
46
+ * @memberof RootServerBaseStatistics
47
+ */
48
+ meetings: RootServerBaseStatisticsMeetings;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the RootServerBaseStatistics interface.
53
+ */
54
+ export function instanceOfRootServerBaseStatistics(value: object): value is RootServerBaseStatistics {
55
+ if (!('serviceBodies' in value) || value['serviceBodies'] === undefined) return false;
56
+ if (!('meetings' in value) || value['meetings'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function RootServerBaseStatisticsFromJSON(json: any): RootServerBaseStatistics {
61
+ return RootServerBaseStatisticsFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function RootServerBaseStatisticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RootServerBaseStatistics {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'serviceBodies': RootServerBaseStatisticsServiceBodiesFromJSON(json['serviceBodies']),
71
+ 'meetings': RootServerBaseStatisticsMeetingsFromJSON(json['meetings']),
72
+ };
73
+ }
74
+
75
+ export function RootServerBaseStatisticsToJSON(json: any): RootServerBaseStatistics {
76
+ return RootServerBaseStatisticsToJSONTyped(json, false);
77
+ }
78
+
79
+ export function RootServerBaseStatisticsToJSONTyped(value?: RootServerBaseStatistics | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'serviceBodies': RootServerBaseStatisticsServiceBodiesToJSON(value['serviceBodies']),
87
+ 'meetings': RootServerBaseStatisticsMeetingsToJSON(value['meetings']),
88
+ };
89
+ }
90
+