bmlt-server-client 1.3.6 → 1.3.7-beta.1

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 (40) hide show
  1. package/.idea/vcs.xml +6 -0
  2. package/.idea/workspace.xml +112 -0
  3. package/.openapi-generator/FILES +6 -0
  4. package/Makefile +1 -1
  5. package/README.md +7 -2
  6. package/dist/apis/RootServerApi.d.ts +24 -1
  7. package/dist/apis/RootServerApi.js +68 -0
  8. package/dist/esm/apis/RootServerApi.d.ts +24 -1
  9. package/dist/esm/apis/RootServerApi.js +69 -1
  10. package/dist/esm/models/Settings.d.ts +33 -0
  11. package/dist/esm/models/Settings.js +44 -0
  12. package/dist/esm/models/SettingsBase.d.ts +182 -0
  13. package/dist/esm/models/SettingsBase.js +91 -0
  14. package/dist/esm/models/SettingsObject.d.ts +182 -0
  15. package/dist/esm/models/SettingsObject.js +91 -0
  16. package/dist/esm/models/SettingsUpdate.d.ts +182 -0
  17. package/dist/esm/models/SettingsUpdate.js +91 -0
  18. package/dist/esm/models/index.d.ts +3 -0
  19. package/dist/esm/models/index.js +3 -0
  20. package/dist/models/Settings.d.ts +33 -0
  21. package/dist/models/Settings.js +51 -0
  22. package/dist/models/SettingsBase.d.ts +182 -0
  23. package/dist/models/SettingsBase.js +98 -0
  24. package/dist/models/SettingsObject.d.ts +182 -0
  25. package/dist/models/SettingsObject.js +98 -0
  26. package/dist/models/SettingsUpdate.d.ts +182 -0
  27. package/dist/models/SettingsUpdate.js +98 -0
  28. package/dist/models/index.d.ts +3 -0
  29. package/dist/models/index.js +3 -0
  30. package/docs/RootServerApi.md +141 -0
  31. package/docs/SettingsBase.md +84 -0
  32. package/docs/SettingsObject.md +84 -0
  33. package/docs/SettingsUpdate.md +85 -0
  34. package/openapi.json +1 -1
  35. package/package.json +1 -1
  36. package/src/apis/RootServerApi.ts +91 -0
  37. package/src/models/SettingsBase.ts +265 -0
  38. package/src/models/SettingsObject.ts +265 -0
  39. package/src/models/SettingsUpdate.ts +265 -0
  40. package/src/models/index.ts +3 -0
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,112 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="051fc8fc-17ae-4d60-9b16-8c477e0f2f1f" name="Changes" comment="">
8
+ <change beforePath="$PROJECT_DIR$/.openapi-generator/FILES" beforeDir="false" afterPath="$PROJECT_DIR$/.openapi-generator/FILES" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/docs/RootServerApi.md" beforeDir="false" afterPath="$PROJECT_DIR$/docs/RootServerApi.md" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/openapi.json" beforeDir="false" afterPath="$PROJECT_DIR$/openapi.json" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/src/apis/RootServerApi.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/apis/RootServerApi.ts" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/src/models/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/models/index.ts" afterDir="false" />
16
+ </list>
17
+ <option name="SHOW_DIALOG" value="false" />
18
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
19
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
20
+ <option name="LAST_RESOLUTION" value="IGNORE" />
21
+ </component>
22
+ <component name="ComposerSettings">
23
+ <execution />
24
+ </component>
25
+ <component name="Git.Settings">
26
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
27
+ </component>
28
+ <component name="PhpWorkspaceProjectConfiguration" interpreter_name="/usr/local/bin/php" />
29
+ <component name="ProjectColorInfo">{
30
+ &quot;associatedIndex&quot;: 4
31
+ }</component>
32
+ <component name="ProjectId" id="2xsrU6tPHFIxC9P9jBwWthcEAeJ" />
33
+ <component name="ProjectViewState">
34
+ <option name="hideEmptyMiddlePackages" value="true" />
35
+ <option name="showLibraryContents" value="true" />
36
+ </component>
37
+ <component name="PropertiesComponent">{
38
+ &quot;keyToString&quot;: {
39
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
40
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
41
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
42
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
43
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
44
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
45
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
46
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
47
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
48
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
49
+ }
50
+ }</component>
51
+ <component name="RunManager">
52
+ <configuration default="true" type="JetRunConfigurationType">
53
+ <module name="bmlt-server-typescript-client" />
54
+ <method v="2">
55
+ <option name="Make" enabled="true" />
56
+ </method>
57
+ </configuration>
58
+ <configuration default="true" type="PythonConfigurationType" factoryName="Python">
59
+ <module name="bmlt-server-typescript-client" />
60
+ <option name="ENV_FILES" value="" />
61
+ <option name="INTERPRETER_OPTIONS" value="" />
62
+ <option name="PARENT_ENVS" value="true" />
63
+ <envs>
64
+ <env name="PYTHONUNBUFFERED" value="1" />
65
+ </envs>
66
+ <option name="SDK_HOME" value="" />
67
+ <option name="WORKING_DIRECTORY" value="" />
68
+ <option name="IS_MODULE_SDK" value="false" />
69
+ <option name="ADD_CONTENT_ROOTS" value="true" />
70
+ <option name="ADD_SOURCE_ROOTS" value="true" />
71
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
72
+ <option name="SCRIPT_NAME" value="" />
73
+ <option name="PARAMETERS" value="" />
74
+ <option name="SHOW_COMMAND_LINE" value="false" />
75
+ <option name="EMULATE_TERMINAL" value="false" />
76
+ <option name="MODULE_MODE" value="false" />
77
+ <option name="REDIRECT_INPUT" value="false" />
78
+ <option name="INPUT_FILE" value="" />
79
+ <method v="2" />
80
+ </configuration>
81
+ </component>
82
+ <component name="SharedIndexes">
83
+ <attachedChunks>
84
+ <set>
85
+ <option value="bundled-jdk-9823dce3aa75-fbdcb00ec9e3-intellij.indexing.shared.core-IU-251.25410.129" />
86
+ <option value="bundled-js-predefined-d6986cc7102b-6a121458b545-JavaScript-IU-251.25410.129" />
87
+ </set>
88
+ </attachedChunks>
89
+ </component>
90
+ <component name="TaskManager">
91
+ <task active="true" id="Default" summary="Default task">
92
+ <changelist id="051fc8fc-17ae-4d60-9b16-8c477e0f2f1f" name="Changes" comment="" />
93
+ <created>1748737634868</created>
94
+ <option name="number" value="Default" />
95
+ <option name="presentableId" value="Default" />
96
+ <updated>1748737634868</updated>
97
+ <workItem from="1748737635984" duration="1058000" />
98
+ <workItem from="1748741329646" duration="1000" />
99
+ <workItem from="1748742895213" duration="31000" />
100
+ <workItem from="1761019358633" duration="761000" />
101
+ <workItem from="1761089580643" duration="173000" />
102
+ <workItem from="1761090325700" duration="762000" />
103
+ <workItem from="1761825885911" duration="252000" />
104
+ <workItem from="1763651429200" duration="154000" />
105
+ <workItem from="1763653640513" duration="348000" />
106
+ </task>
107
+ <servers />
108
+ </component>
109
+ <component name="TypeScriptGeneratedFilesManager">
110
+ <option name="version" value="3" />
111
+ </component>
112
+ </project>
@@ -30,6 +30,9 @@ docs/ServiceBodyBase.md
30
30
  docs/ServiceBodyCreate.md
31
31
  docs/ServiceBodyPartialUpdate.md
32
32
  docs/ServiceBodyUpdate.md
33
+ docs/SettingsBase.md
34
+ docs/SettingsObject.md
35
+ docs/SettingsUpdate.md
33
36
  docs/Token.md
34
37
  docs/TokenCredentials.md
35
38
  docs/User.md
@@ -70,6 +73,9 @@ src/models/ServiceBodyBase.ts
70
73
  src/models/ServiceBodyCreate.ts
71
74
  src/models/ServiceBodyPartialUpdate.ts
72
75
  src/models/ServiceBodyUpdate.ts
76
+ src/models/SettingsBase.ts
77
+ src/models/SettingsObject.ts
78
+ src/models/SettingsUpdate.ts
73
79
  src/models/Token.ts
74
80
  src/models/TokenCredentials.ts
75
81
  src/models/User.ts
package/Makefile CHANGED
@@ -8,7 +8,7 @@ generate: openapi.json
8
8
  -i openapi.json \
9
9
  -g typescript-fetch \
10
10
  -p npmName=bmlt-server-client \
11
- -p npmVersion=latest \
11
+ -p npmVersion=1.4.0 \
12
12
  -p supportsES6=true \
13
13
  --git-repo-id=bmlt-server-typescript-client \
14
14
  --git-user-id=bmlt-enabled \
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # bmlt-server-client@latest
1
+ # bmlt-server-client@1.4.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -71,6 +71,7 @@ All URIs are relative to *http://localhost:8000/main_server*
71
71
  *RootServerApi* | [**getRootServers**](docs/RootServerApi.md#getrootservers) | **GET** /api/v1/rootservers | Retrieves root servers
72
72
  *RootServerApi* | [**getServiceBodies**](docs/RootServerApi.md#getservicebodies) | **GET** /api/v1/servicebodies | Retrieves service bodies
73
73
  *RootServerApi* | [**getServiceBody**](docs/RootServerApi.md#getservicebody) | **GET** /api/v1/servicebodies/{serviceBodyId} | Retrieves a service body
74
+ *RootServerApi* | [**getSettings**](docs/RootServerApi.md#getsettings) | **GET** /api/v1/settings | Retrieves all settings
74
75
  *RootServerApi* | [**getUser**](docs/RootServerApi.md#getuser) | **GET** /api/v1/users/{userId} | Retrieves a single user
75
76
  *RootServerApi* | [**getUsers**](docs/RootServerApi.md#getusers) | **GET** /api/v1/users | Retrieves users
76
77
  *RootServerApi* | [**partialUpdateUser**](docs/RootServerApi.md#partialupdateuser) | **PATCH** /api/v1/users/{userId} | Patches a user
@@ -80,6 +81,7 @@ All URIs are relative to *http://localhost:8000/main_server*
80
81
  *RootServerApi* | [**updateFormat**](docs/RootServerApi.md#updateformat) | **PUT** /api/v1/formats/{formatId} | Updates a format
81
82
  *RootServerApi* | [**updateMeeting**](docs/RootServerApi.md#updatemeeting) | **PUT** /api/v1/meetings/{meetingId} | Updates a meeting
82
83
  *RootServerApi* | [**updateServiceBody**](docs/RootServerApi.md#updateservicebody) | **PUT** /api/v1/servicebodies/{serviceBodyId} | Updates a Service Body
84
+ *RootServerApi* | [**updateSettings**](docs/RootServerApi.md#updatesettings) | **PUT** /api/v1/settings | Update settings
83
85
  *RootServerApi* | [**updateUser**](docs/RootServerApi.md#updateuser) | **PUT** /api/v1/users/{userId} | Update single user
84
86
 
85
87
 
@@ -113,6 +115,9 @@ All URIs are relative to *http://localhost:8000/main_server*
113
115
  - [ServiceBodyCreate](docs/ServiceBodyCreate.md)
114
116
  - [ServiceBodyPartialUpdate](docs/ServiceBodyPartialUpdate.md)
115
117
  - [ServiceBodyUpdate](docs/ServiceBodyUpdate.md)
118
+ - [SettingsBase](docs/SettingsBase.md)
119
+ - [SettingsObject](docs/SettingsObject.md)
120
+ - [SettingsUpdate](docs/SettingsUpdate.md)
116
121
  - [Token](docs/Token.md)
117
122
  - [TokenCredentials](docs/TokenCredentials.md)
118
123
  - [User](docs/User.md)
@@ -142,7 +147,7 @@ and is automatically generated by the
142
147
  [OpenAPI Generator](https://openapi-generator.tech) project:
143
148
 
144
149
  - API version: `1.0.0`
145
- - Package version: `latest`
150
+ - Package version: `1.4.0`
146
151
  - Generator version: `7.18.0-SNAPSHOT`
147
152
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
148
153
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ErrorTest, Format, FormatCreate, FormatPartialUpdate, FormatUpdate, Meeting, MeetingChangeResource, MeetingCreate, MeetingPartialUpdate, MeetingUpdate, RootServer, ServiceBody, ServiceBodyCreate, ServiceBodyPartialUpdate, ServiceBodyUpdate, Token, TokenCredentials, User, UserCreate, UserPartialUpdate, UserUpdate } from '../models/index';
13
+ import type { ErrorTest, Format, FormatCreate, FormatPartialUpdate, FormatUpdate, Meeting, MeetingChangeResource, MeetingCreate, MeetingPartialUpdate, MeetingUpdate, RootServer, ServiceBody, ServiceBodyCreate, ServiceBodyPartialUpdate, ServiceBodyUpdate, SettingsObject, SettingsUpdate, Token, TokenCredentials, User, UserCreate, UserPartialUpdate, UserUpdate } from '../models/index';
14
14
  export interface AuthTokenRequest {
15
15
  tokenCredentials: TokenCredentials;
16
16
  }
@@ -94,6 +94,9 @@ export interface UpdateServiceBodyRequest {
94
94
  serviceBodyId: number;
95
95
  serviceBodyUpdate: ServiceBodyUpdate;
96
96
  }
97
+ export interface UpdateSettingsRequest {
98
+ settingsUpdate: SettingsUpdate;
99
+ }
97
100
  export interface UpdateUserRequest {
98
101
  userId: number;
99
102
  userUpdate: UserUpdate;
@@ -322,6 +325,16 @@ export declare class RootServerApi extends runtime.BaseAPI {
322
325
  * Retrieves a service body
323
326
  */
324
327
  getServiceBody(requestParameters: GetServiceBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServiceBody>;
328
+ /**
329
+ * Retrieve all server settings. Only accessible to server administrators.
330
+ * Retrieves all settings
331
+ */
332
+ getSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SettingsObject>>;
333
+ /**
334
+ * Retrieve all server settings. Only accessible to server administrators.
335
+ * Retrieves all settings
336
+ */
337
+ getSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SettingsObject>;
325
338
  /**
326
339
  * Retrieve single user.
327
340
  * Retrieves a single user
@@ -412,6 +425,16 @@ export declare class RootServerApi extends runtime.BaseAPI {
412
425
  * Updates a Service Body
413
426
  */
414
427
  updateServiceBody(requestParameters: UpdateServiceBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
428
+ /**
429
+ * Updates one or more server settings. Only accessible to server administrators.
430
+ * Update settings
431
+ */
432
+ updateSettingsRaw(requestParameters: UpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
433
+ /**
434
+ * Updates one or more server settings. Only accessible to server administrators.
435
+ * Update settings
436
+ */
437
+ updateSettings(requestParameters: UpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
415
438
  /**
416
439
  * Updates a user.
417
440
  * Update single user
@@ -794,6 +794,38 @@ class RootServerApi extends runtime.BaseAPI {
794
794
  return yield response.value();
795
795
  });
796
796
  }
797
+ /**
798
+ * Retrieve all server settings. Only accessible to server administrators.
799
+ * Retrieves all settings
800
+ */
801
+ getSettingsRaw(initOverrides) {
802
+ return __awaiter(this, void 0, void 0, function* () {
803
+ const queryParameters = {};
804
+ const headerParameters = {};
805
+ if (this.configuration && this.configuration.accessToken) {
806
+ // oauth required
807
+ headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
808
+ }
809
+ let urlPath = `/api/v1/settings`;
810
+ const response = yield this.request({
811
+ path: urlPath,
812
+ method: 'GET',
813
+ headers: headerParameters,
814
+ query: queryParameters,
815
+ }, initOverrides);
816
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SettingsObjectFromJSON)(jsonValue));
817
+ });
818
+ }
819
+ /**
820
+ * Retrieve all server settings. Only accessible to server administrators.
821
+ * Retrieves all settings
822
+ */
823
+ getSettings(initOverrides) {
824
+ return __awaiter(this, void 0, void 0, function* () {
825
+ const response = yield this.getSettingsRaw(initOverrides);
826
+ return yield response.value();
827
+ });
828
+ }
797
829
  /**
798
830
  * Retrieve single user.
799
831
  * Retrieves a single user
@@ -1145,6 +1177,42 @@ class RootServerApi extends runtime.BaseAPI {
1145
1177
  yield this.updateServiceBodyRaw(requestParameters, initOverrides);
1146
1178
  });
1147
1179
  }
1180
+ /**
1181
+ * Updates one or more server settings. Only accessible to server administrators.
1182
+ * Update settings
1183
+ */
1184
+ updateSettingsRaw(requestParameters, initOverrides) {
1185
+ return __awaiter(this, void 0, void 0, function* () {
1186
+ if (requestParameters['settingsUpdate'] == null) {
1187
+ throw new runtime.RequiredError('settingsUpdate', 'Required parameter "settingsUpdate" was null or undefined when calling updateSettings().');
1188
+ }
1189
+ const queryParameters = {};
1190
+ const headerParameters = {};
1191
+ headerParameters['Content-Type'] = 'application/json';
1192
+ if (this.configuration && this.configuration.accessToken) {
1193
+ // oauth required
1194
+ headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1195
+ }
1196
+ let urlPath = `/api/v1/settings`;
1197
+ const response = yield this.request({
1198
+ path: urlPath,
1199
+ method: 'PUT',
1200
+ headers: headerParameters,
1201
+ query: queryParameters,
1202
+ body: (0, index_1.SettingsUpdateToJSON)(requestParameters['settingsUpdate']),
1203
+ }, initOverrides);
1204
+ return new runtime.VoidApiResponse(response);
1205
+ });
1206
+ }
1207
+ /**
1208
+ * Updates one or more server settings. Only accessible to server administrators.
1209
+ * Update settings
1210
+ */
1211
+ updateSettings(requestParameters, initOverrides) {
1212
+ return __awaiter(this, void 0, void 0, function* () {
1213
+ yield this.updateSettingsRaw(requestParameters, initOverrides);
1214
+ });
1215
+ }
1148
1216
  /**
1149
1217
  * Updates a user.
1150
1218
  * Update single user
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ErrorTest, Format, FormatCreate, FormatPartialUpdate, FormatUpdate, Meeting, MeetingChangeResource, MeetingCreate, MeetingPartialUpdate, MeetingUpdate, RootServer, ServiceBody, ServiceBodyCreate, ServiceBodyPartialUpdate, ServiceBodyUpdate, Token, TokenCredentials, User, UserCreate, UserPartialUpdate, UserUpdate } from '../models/index';
13
+ import type { ErrorTest, Format, FormatCreate, FormatPartialUpdate, FormatUpdate, Meeting, MeetingChangeResource, MeetingCreate, MeetingPartialUpdate, MeetingUpdate, RootServer, ServiceBody, ServiceBodyCreate, ServiceBodyPartialUpdate, ServiceBodyUpdate, SettingsObject, SettingsUpdate, Token, TokenCredentials, User, UserCreate, UserPartialUpdate, UserUpdate } from '../models/index';
14
14
  export interface AuthTokenRequest {
15
15
  tokenCredentials: TokenCredentials;
16
16
  }
@@ -94,6 +94,9 @@ export interface UpdateServiceBodyRequest {
94
94
  serviceBodyId: number;
95
95
  serviceBodyUpdate: ServiceBodyUpdate;
96
96
  }
97
+ export interface UpdateSettingsRequest {
98
+ settingsUpdate: SettingsUpdate;
99
+ }
97
100
  export interface UpdateUserRequest {
98
101
  userId: number;
99
102
  userUpdate: UserUpdate;
@@ -322,6 +325,16 @@ export declare class RootServerApi extends runtime.BaseAPI {
322
325
  * Retrieves a service body
323
326
  */
324
327
  getServiceBody(requestParameters: GetServiceBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServiceBody>;
328
+ /**
329
+ * Retrieve all server settings. Only accessible to server administrators.
330
+ * Retrieves all settings
331
+ */
332
+ getSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SettingsObject>>;
333
+ /**
334
+ * Retrieve all server settings. Only accessible to server administrators.
335
+ * Retrieves all settings
336
+ */
337
+ getSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SettingsObject>;
325
338
  /**
326
339
  * Retrieve single user.
327
340
  * Retrieves a single user
@@ -412,6 +425,16 @@ export declare class RootServerApi extends runtime.BaseAPI {
412
425
  * Updates a Service Body
413
426
  */
414
427
  updateServiceBody(requestParameters: UpdateServiceBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
428
+ /**
429
+ * Updates one or more server settings. Only accessible to server administrators.
430
+ * Update settings
431
+ */
432
+ updateSettingsRaw(requestParameters: UpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
433
+ /**
434
+ * Updates one or more server settings. Only accessible to server administrators.
435
+ * Update settings
436
+ */
437
+ updateSettings(requestParameters: UpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
415
438
  /**
416
439
  * Updates a user.
417
440
  * Update single user
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ErrorTestFromJSON, ErrorTestToJSON, FormatFromJSON, FormatCreateToJSON, FormatPartialUpdateToJSON, FormatUpdateToJSON, MeetingFromJSON, MeetingChangeResourceFromJSON, MeetingCreateToJSON, MeetingPartialUpdateToJSON, MeetingUpdateToJSON, RootServerFromJSON, ServiceBodyFromJSON, ServiceBodyCreateToJSON, ServiceBodyPartialUpdateToJSON, ServiceBodyUpdateToJSON, TokenFromJSON, TokenCredentialsToJSON, UserFromJSON, UserCreateToJSON, UserPartialUpdateToJSON, UserUpdateToJSON, } from '../models/index';
24
+ import { ErrorTestFromJSON, ErrorTestToJSON, FormatFromJSON, FormatCreateToJSON, FormatPartialUpdateToJSON, FormatUpdateToJSON, MeetingFromJSON, MeetingChangeResourceFromJSON, MeetingCreateToJSON, MeetingPartialUpdateToJSON, MeetingUpdateToJSON, RootServerFromJSON, ServiceBodyFromJSON, ServiceBodyCreateToJSON, ServiceBodyPartialUpdateToJSON, ServiceBodyUpdateToJSON, SettingsObjectFromJSON, SettingsUpdateToJSON, TokenFromJSON, TokenCredentialsToJSON, UserFromJSON, UserCreateToJSON, UserPartialUpdateToJSON, UserUpdateToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -791,6 +791,38 @@ export class RootServerApi extends runtime.BaseAPI {
791
791
  return yield response.value();
792
792
  });
793
793
  }
794
+ /**
795
+ * Retrieve all server settings. Only accessible to server administrators.
796
+ * Retrieves all settings
797
+ */
798
+ getSettingsRaw(initOverrides) {
799
+ return __awaiter(this, void 0, void 0, function* () {
800
+ const queryParameters = {};
801
+ const headerParameters = {};
802
+ if (this.configuration && this.configuration.accessToken) {
803
+ // oauth required
804
+ headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
805
+ }
806
+ let urlPath = `/api/v1/settings`;
807
+ const response = yield this.request({
808
+ path: urlPath,
809
+ method: 'GET',
810
+ headers: headerParameters,
811
+ query: queryParameters,
812
+ }, initOverrides);
813
+ return new runtime.JSONApiResponse(response, (jsonValue) => SettingsObjectFromJSON(jsonValue));
814
+ });
815
+ }
816
+ /**
817
+ * Retrieve all server settings. Only accessible to server administrators.
818
+ * Retrieves all settings
819
+ */
820
+ getSettings(initOverrides) {
821
+ return __awaiter(this, void 0, void 0, function* () {
822
+ const response = yield this.getSettingsRaw(initOverrides);
823
+ return yield response.value();
824
+ });
825
+ }
794
826
  /**
795
827
  * Retrieve single user.
796
828
  * Retrieves a single user
@@ -1142,6 +1174,42 @@ export class RootServerApi extends runtime.BaseAPI {
1142
1174
  yield this.updateServiceBodyRaw(requestParameters, initOverrides);
1143
1175
  });
1144
1176
  }
1177
+ /**
1178
+ * Updates one or more server settings. Only accessible to server administrators.
1179
+ * Update settings
1180
+ */
1181
+ updateSettingsRaw(requestParameters, initOverrides) {
1182
+ return __awaiter(this, void 0, void 0, function* () {
1183
+ if (requestParameters['settingsUpdate'] == null) {
1184
+ throw new runtime.RequiredError('settingsUpdate', 'Required parameter "settingsUpdate" was null or undefined when calling updateSettings().');
1185
+ }
1186
+ const queryParameters = {};
1187
+ const headerParameters = {};
1188
+ headerParameters['Content-Type'] = 'application/json';
1189
+ if (this.configuration && this.configuration.accessToken) {
1190
+ // oauth required
1191
+ headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1192
+ }
1193
+ let urlPath = `/api/v1/settings`;
1194
+ const response = yield this.request({
1195
+ path: urlPath,
1196
+ method: 'PUT',
1197
+ headers: headerParameters,
1198
+ query: queryParameters,
1199
+ body: SettingsUpdateToJSON(requestParameters['settingsUpdate']),
1200
+ }, initOverrides);
1201
+ return new runtime.VoidApiResponse(response);
1202
+ });
1203
+ }
1204
+ /**
1205
+ * Updates one or more server settings. Only accessible to server administrators.
1206
+ * Update settings
1207
+ */
1208
+ updateSettings(requestParameters, initOverrides) {
1209
+ return __awaiter(this, void 0, void 0, function* () {
1210
+ yield this.updateSettingsRaw(requestParameters, initOverrides);
1211
+ });
1212
+ }
1145
1213
  /**
1146
1214
  * Updates a user.
1147
1215
  * Update single user
@@ -0,0 +1,33 @@
1
+ /**
2
+ * BMLT
3
+ * BMLT Admin API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SettingsObject } from './SettingsObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Settings
17
+ */
18
+ export interface Settings {
19
+ /**
20
+ *
21
+ * @type {SettingsObject}
22
+ * @memberof Settings
23
+ */
24
+ data: SettingsObject;
25
+ }
26
+ /**
27
+ * Check if a given object implements the Settings interface.
28
+ */
29
+ export declare function instanceOfSettings(value: object): value is Settings;
30
+ export declare function SettingsFromJSON(json: any): Settings;
31
+ export declare function SettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Settings;
32
+ export declare function SettingsToJSON(json: any): Settings;
33
+ export declare function SettingsToJSONTyped(value?: Settings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { SettingsObjectFromJSON, SettingsObjectToJSON, } from './SettingsObject';
15
+ /**
16
+ * Check if a given object implements the Settings interface.
17
+ */
18
+ export function instanceOfSettings(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SettingsFromJSON(json) {
24
+ return SettingsFromJSONTyped(json, false);
25
+ }
26
+ export function SettingsFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'data': SettingsObjectFromJSON(json['data']),
32
+ };
33
+ }
34
+ export function SettingsToJSON(json) {
35
+ return SettingsToJSONTyped(json, false);
36
+ }
37
+ export function SettingsToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'data': SettingsObjectToJSON(value['data']),
43
+ };
44
+ }