bmlt-server-client 1.3.6 → 1.3.7-beta.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 (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 +170 -0
  13. package/dist/esm/models/SettingsBase.js +87 -0
  14. package/dist/esm/models/SettingsObject.d.ts +170 -0
  15. package/dist/esm/models/SettingsObject.js +87 -0
  16. package/dist/esm/models/SettingsUpdate.d.ts +170 -0
  17. package/dist/esm/models/SettingsUpdate.js +87 -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 +170 -0
  23. package/dist/models/SettingsBase.js +94 -0
  24. package/dist/models/SettingsObject.d.ts +170 -0
  25. package/dist/models/SettingsObject.js +94 -0
  26. package/dist/models/SettingsUpdate.d.ts +170 -0
  27. package/dist/models/SettingsUpdate.js +94 -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 +80 -0
  32. package/docs/SettingsObject.md +80 -0
  33. package/docs/SettingsUpdate.md +81 -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 +249 -0
  38. package/src/models/SettingsObject.ts +249 -0
  39. package/src/models/SettingsUpdate.ts +249 -0
  40. package/src/models/index.ts +3 -0
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * BMLT
6
+ * BMLT Admin API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSettingsObject = instanceOfSettingsObject;
17
+ exports.SettingsObjectFromJSON = SettingsObjectFromJSON;
18
+ exports.SettingsObjectFromJSONTyped = SettingsObjectFromJSONTyped;
19
+ exports.SettingsObjectToJSON = SettingsObjectToJSON;
20
+ exports.SettingsObjectToJSONTyped = SettingsObjectToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SettingsObject interface.
23
+ */
24
+ function instanceOfSettingsObject(value) {
25
+ return true;
26
+ }
27
+ function SettingsObjectFromJSON(json) {
28
+ return SettingsObjectFromJSONTyped(json, false);
29
+ }
30
+ function SettingsObjectFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'googleApiKey': json['googleApiKey'] == null ? undefined : json['googleApiKey'],
36
+ 'changeDepthForMeetings': json['changeDepthForMeetings'] == null ? undefined : json['changeDepthForMeetings'],
37
+ 'defaultSortKey': json['defaultSortKey'] == null ? undefined : json['defaultSortKey'],
38
+ 'language': json['language'] == null ? undefined : json['language'],
39
+ 'defaultDurationTime': json['defaultDurationTime'] == null ? undefined : json['defaultDurationTime'],
40
+ 'regionBias': json['regionBias'] == null ? undefined : json['regionBias'],
41
+ 'distanceUnits': json['distanceUnits'] == null ? undefined : json['distanceUnits'],
42
+ 'meetingStatesAndProvinces': json['meetingStatesAndProvinces'] == null ? undefined : json['meetingStatesAndProvinces'],
43
+ 'meetingCountiesAndSubProvinces': json['meetingCountiesAndSubProvinces'] == null ? undefined : json['meetingCountiesAndSubProvinces'],
44
+ 'searchSpecMapCenterLongitude': json['searchSpecMapCenterLongitude'] == null ? undefined : json['searchSpecMapCenterLongitude'],
45
+ 'searchSpecMapCenterLatitude': json['searchSpecMapCenterLatitude'] == null ? undefined : json['searchSpecMapCenterLatitude'],
46
+ 'searchSpecMapCenterZoom': json['searchSpecMapCenterZoom'] == null ? undefined : json['searchSpecMapCenterZoom'],
47
+ 'numberOfMeetingsForAuto': json['numberOfMeetingsForAuto'] == null ? undefined : json['numberOfMeetingsForAuto'],
48
+ 'autoGeocodingEnabled': json['autoGeocodingEnabled'] == null ? undefined : json['autoGeocodingEnabled'],
49
+ 'countyAutoGeocodingEnabled': json['countyAutoGeocodingEnabled'] == null ? undefined : json['countyAutoGeocodingEnabled'],
50
+ 'zipAutoGeocodingEnabled': json['zipAutoGeocodingEnabled'] == null ? undefined : json['zipAutoGeocodingEnabled'],
51
+ 'defaultClosedStatus': json['defaultClosedStatus'] == null ? undefined : json['defaultClosedStatus'],
52
+ 'enableLanguageSelector': json['enableLanguageSelector'] == null ? undefined : json['enableLanguageSelector'],
53
+ 'aggregatorModeEnabled': json['aggregatorModeEnabled'] == null ? undefined : json['aggregatorModeEnabled'],
54
+ 'aggregatorMaxGeoWidthKm': json['aggregatorMaxGeoWidthKm'] == null ? undefined : json['aggregatorMaxGeoWidthKm'],
55
+ 'includeServiceBodyEmailInSemantic': json['includeServiceBodyEmailInSemantic'] == null ? undefined : json['includeServiceBodyEmailInSemantic'],
56
+ 'bmltTitle': json['bmltTitle'] == null ? undefined : json['bmltTitle'],
57
+ 'bmltNotice': json['bmltNotice'] == null ? undefined : json['bmltNotice'],
58
+ 'formatLangNames': json['formatLangNames'] == null ? undefined : json['formatLangNames'],
59
+ };
60
+ }
61
+ function SettingsObjectToJSON(json) {
62
+ return SettingsObjectToJSONTyped(json, false);
63
+ }
64
+ function SettingsObjectToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'googleApiKey': value['googleApiKey'],
70
+ 'changeDepthForMeetings': value['changeDepthForMeetings'],
71
+ 'defaultSortKey': value['defaultSortKey'],
72
+ 'language': value['language'],
73
+ 'defaultDurationTime': value['defaultDurationTime'],
74
+ 'regionBias': value['regionBias'],
75
+ 'distanceUnits': value['distanceUnits'],
76
+ 'meetingStatesAndProvinces': value['meetingStatesAndProvinces'],
77
+ 'meetingCountiesAndSubProvinces': value['meetingCountiesAndSubProvinces'],
78
+ 'searchSpecMapCenterLongitude': value['searchSpecMapCenterLongitude'],
79
+ 'searchSpecMapCenterLatitude': value['searchSpecMapCenterLatitude'],
80
+ 'searchSpecMapCenterZoom': value['searchSpecMapCenterZoom'],
81
+ 'numberOfMeetingsForAuto': value['numberOfMeetingsForAuto'],
82
+ 'autoGeocodingEnabled': value['autoGeocodingEnabled'],
83
+ 'countyAutoGeocodingEnabled': value['countyAutoGeocodingEnabled'],
84
+ 'zipAutoGeocodingEnabled': value['zipAutoGeocodingEnabled'],
85
+ 'defaultClosedStatus': value['defaultClosedStatus'],
86
+ 'enableLanguageSelector': value['enableLanguageSelector'],
87
+ 'aggregatorModeEnabled': value['aggregatorModeEnabled'],
88
+ 'aggregatorMaxGeoWidthKm': value['aggregatorMaxGeoWidthKm'],
89
+ 'includeServiceBodyEmailInSemantic': value['includeServiceBodyEmailInSemantic'],
90
+ 'bmltTitle': value['bmltTitle'],
91
+ 'bmltNotice': value['bmltNotice'],
92
+ 'formatLangNames': value['formatLangNames'],
93
+ };
94
+ }
@@ -0,0 +1,170 @@
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
+ /**
13
+ * Partial update object - include only the settings you want to update
14
+ * @export
15
+ * @interface SettingsUpdate
16
+ */
17
+ export interface SettingsUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SettingsUpdate
22
+ */
23
+ googleApiKey?: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SettingsUpdate
28
+ */
29
+ changeDepthForMeetings?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SettingsUpdate
34
+ */
35
+ defaultSortKey?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SettingsUpdate
40
+ */
41
+ language?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SettingsUpdate
46
+ */
47
+ defaultDurationTime?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SettingsUpdate
52
+ */
53
+ regionBias?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SettingsUpdate
58
+ */
59
+ distanceUnits?: string;
60
+ /**
61
+ *
62
+ * @type {Array<string>}
63
+ * @memberof SettingsUpdate
64
+ */
65
+ meetingStatesAndProvinces?: Array<string>;
66
+ /**
67
+ *
68
+ * @type {Array<string>}
69
+ * @memberof SettingsUpdate
70
+ */
71
+ meetingCountiesAndSubProvinces?: Array<string>;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof SettingsUpdate
76
+ */
77
+ searchSpecMapCenterLongitude?: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof SettingsUpdate
82
+ */
83
+ searchSpecMapCenterLatitude?: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof SettingsUpdate
88
+ */
89
+ searchSpecMapCenterZoom?: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof SettingsUpdate
94
+ */
95
+ numberOfMeetingsForAuto?: number;
96
+ /**
97
+ *
98
+ * @type {boolean}
99
+ * @memberof SettingsUpdate
100
+ */
101
+ autoGeocodingEnabled?: boolean;
102
+ /**
103
+ *
104
+ * @type {boolean}
105
+ * @memberof SettingsUpdate
106
+ */
107
+ countyAutoGeocodingEnabled?: boolean;
108
+ /**
109
+ *
110
+ * @type {boolean}
111
+ * @memberof SettingsUpdate
112
+ */
113
+ zipAutoGeocodingEnabled?: boolean;
114
+ /**
115
+ *
116
+ * @type {boolean}
117
+ * @memberof SettingsUpdate
118
+ */
119
+ defaultClosedStatus?: boolean;
120
+ /**
121
+ *
122
+ * @type {boolean}
123
+ * @memberof SettingsUpdate
124
+ */
125
+ enableLanguageSelector?: boolean;
126
+ /**
127
+ *
128
+ * @type {boolean}
129
+ * @memberof SettingsUpdate
130
+ */
131
+ aggregatorModeEnabled?: boolean;
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof SettingsUpdate
136
+ */
137
+ aggregatorMaxGeoWidthKm?: number;
138
+ /**
139
+ *
140
+ * @type {boolean}
141
+ * @memberof SettingsUpdate
142
+ */
143
+ includeServiceBodyEmailInSemantic?: boolean;
144
+ /**
145
+ *
146
+ * @type {string}
147
+ * @memberof SettingsUpdate
148
+ */
149
+ bmltTitle?: string;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof SettingsUpdate
154
+ */
155
+ bmltNotice?: string;
156
+ /**
157
+ *
158
+ * @type {object}
159
+ * @memberof SettingsUpdate
160
+ */
161
+ formatLangNames?: object;
162
+ }
163
+ /**
164
+ * Check if a given object implements the SettingsUpdate interface.
165
+ */
166
+ export declare function instanceOfSettingsUpdate(value: object): value is SettingsUpdate;
167
+ export declare function SettingsUpdateFromJSON(json: any): SettingsUpdate;
168
+ export declare function SettingsUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsUpdate;
169
+ export declare function SettingsUpdateToJSON(json: any): SettingsUpdate;
170
+ export declare function SettingsUpdateToJSONTyped(value?: SettingsUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * BMLT
6
+ * BMLT Admin API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSettingsUpdate = instanceOfSettingsUpdate;
17
+ exports.SettingsUpdateFromJSON = SettingsUpdateFromJSON;
18
+ exports.SettingsUpdateFromJSONTyped = SettingsUpdateFromJSONTyped;
19
+ exports.SettingsUpdateToJSON = SettingsUpdateToJSON;
20
+ exports.SettingsUpdateToJSONTyped = SettingsUpdateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SettingsUpdate interface.
23
+ */
24
+ function instanceOfSettingsUpdate(value) {
25
+ return true;
26
+ }
27
+ function SettingsUpdateFromJSON(json) {
28
+ return SettingsUpdateFromJSONTyped(json, false);
29
+ }
30
+ function SettingsUpdateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'googleApiKey': json['googleApiKey'] == null ? undefined : json['googleApiKey'],
36
+ 'changeDepthForMeetings': json['changeDepthForMeetings'] == null ? undefined : json['changeDepthForMeetings'],
37
+ 'defaultSortKey': json['defaultSortKey'] == null ? undefined : json['defaultSortKey'],
38
+ 'language': json['language'] == null ? undefined : json['language'],
39
+ 'defaultDurationTime': json['defaultDurationTime'] == null ? undefined : json['defaultDurationTime'],
40
+ 'regionBias': json['regionBias'] == null ? undefined : json['regionBias'],
41
+ 'distanceUnits': json['distanceUnits'] == null ? undefined : json['distanceUnits'],
42
+ 'meetingStatesAndProvinces': json['meetingStatesAndProvinces'] == null ? undefined : json['meetingStatesAndProvinces'],
43
+ 'meetingCountiesAndSubProvinces': json['meetingCountiesAndSubProvinces'] == null ? undefined : json['meetingCountiesAndSubProvinces'],
44
+ 'searchSpecMapCenterLongitude': json['searchSpecMapCenterLongitude'] == null ? undefined : json['searchSpecMapCenterLongitude'],
45
+ 'searchSpecMapCenterLatitude': json['searchSpecMapCenterLatitude'] == null ? undefined : json['searchSpecMapCenterLatitude'],
46
+ 'searchSpecMapCenterZoom': json['searchSpecMapCenterZoom'] == null ? undefined : json['searchSpecMapCenterZoom'],
47
+ 'numberOfMeetingsForAuto': json['numberOfMeetingsForAuto'] == null ? undefined : json['numberOfMeetingsForAuto'],
48
+ 'autoGeocodingEnabled': json['autoGeocodingEnabled'] == null ? undefined : json['autoGeocodingEnabled'],
49
+ 'countyAutoGeocodingEnabled': json['countyAutoGeocodingEnabled'] == null ? undefined : json['countyAutoGeocodingEnabled'],
50
+ 'zipAutoGeocodingEnabled': json['zipAutoGeocodingEnabled'] == null ? undefined : json['zipAutoGeocodingEnabled'],
51
+ 'defaultClosedStatus': json['defaultClosedStatus'] == null ? undefined : json['defaultClosedStatus'],
52
+ 'enableLanguageSelector': json['enableLanguageSelector'] == null ? undefined : json['enableLanguageSelector'],
53
+ 'aggregatorModeEnabled': json['aggregatorModeEnabled'] == null ? undefined : json['aggregatorModeEnabled'],
54
+ 'aggregatorMaxGeoWidthKm': json['aggregatorMaxGeoWidthKm'] == null ? undefined : json['aggregatorMaxGeoWidthKm'],
55
+ 'includeServiceBodyEmailInSemantic': json['includeServiceBodyEmailInSemantic'] == null ? undefined : json['includeServiceBodyEmailInSemantic'],
56
+ 'bmltTitle': json['bmltTitle'] == null ? undefined : json['bmltTitle'],
57
+ 'bmltNotice': json['bmltNotice'] == null ? undefined : json['bmltNotice'],
58
+ 'formatLangNames': json['formatLangNames'] == null ? undefined : json['formatLangNames'],
59
+ };
60
+ }
61
+ function SettingsUpdateToJSON(json) {
62
+ return SettingsUpdateToJSONTyped(json, false);
63
+ }
64
+ function SettingsUpdateToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'googleApiKey': value['googleApiKey'],
70
+ 'changeDepthForMeetings': value['changeDepthForMeetings'],
71
+ 'defaultSortKey': value['defaultSortKey'],
72
+ 'language': value['language'],
73
+ 'defaultDurationTime': value['defaultDurationTime'],
74
+ 'regionBias': value['regionBias'],
75
+ 'distanceUnits': value['distanceUnits'],
76
+ 'meetingStatesAndProvinces': value['meetingStatesAndProvinces'],
77
+ 'meetingCountiesAndSubProvinces': value['meetingCountiesAndSubProvinces'],
78
+ 'searchSpecMapCenterLongitude': value['searchSpecMapCenterLongitude'],
79
+ 'searchSpecMapCenterLatitude': value['searchSpecMapCenterLatitude'],
80
+ 'searchSpecMapCenterZoom': value['searchSpecMapCenterZoom'],
81
+ 'numberOfMeetingsForAuto': value['numberOfMeetingsForAuto'],
82
+ 'autoGeocodingEnabled': value['autoGeocodingEnabled'],
83
+ 'countyAutoGeocodingEnabled': value['countyAutoGeocodingEnabled'],
84
+ 'zipAutoGeocodingEnabled': value['zipAutoGeocodingEnabled'],
85
+ 'defaultClosedStatus': value['defaultClosedStatus'],
86
+ 'enableLanguageSelector': value['enableLanguageSelector'],
87
+ 'aggregatorModeEnabled': value['aggregatorModeEnabled'],
88
+ 'aggregatorMaxGeoWidthKm': value['aggregatorMaxGeoWidthKm'],
89
+ 'includeServiceBodyEmailInSemantic': value['includeServiceBodyEmailInSemantic'],
90
+ 'bmltTitle': value['bmltTitle'],
91
+ 'bmltNotice': value['bmltNotice'],
92
+ 'formatLangNames': value['formatLangNames'],
93
+ };
94
+ }
@@ -26,6 +26,9 @@ export * from './ServiceBodyBase';
26
26
  export * from './ServiceBodyCreate';
27
27
  export * from './ServiceBodyPartialUpdate';
28
28
  export * from './ServiceBodyUpdate';
29
+ export * from './SettingsBase';
30
+ export * from './SettingsObject';
31
+ export * from './SettingsUpdate';
29
32
  export * from './Token';
30
33
  export * from './TokenCredentials';
31
34
  export * from './User';
@@ -44,6 +44,9 @@ __exportStar(require("./ServiceBodyBase"), exports);
44
44
  __exportStar(require("./ServiceBodyCreate"), exports);
45
45
  __exportStar(require("./ServiceBodyPartialUpdate"), exports);
46
46
  __exportStar(require("./ServiceBodyUpdate"), exports);
47
+ __exportStar(require("./SettingsBase"), exports);
48
+ __exportStar(require("./SettingsObject"), exports);
49
+ __exportStar(require("./SettingsUpdate"), exports);
47
50
  __exportStar(require("./Token"), exports);
48
51
  __exportStar(require("./TokenCredentials"), exports);
49
52
  __exportStar(require("./User"), exports);
@@ -26,6 +26,7 @@ All URIs are relative to *http://localhost:8000/main_server*
26
26
  | [**getRootServers**](RootServerApi.md#getrootservers) | **GET** /api/v1/rootservers | Retrieves root servers |
27
27
  | [**getServiceBodies**](RootServerApi.md#getservicebodies) | **GET** /api/v1/servicebodies | Retrieves service bodies |
28
28
  | [**getServiceBody**](RootServerApi.md#getservicebody) | **GET** /api/v1/servicebodies/{serviceBodyId} | Retrieves a service body |
29
+ | [**getSettings**](RootServerApi.md#getsettings) | **GET** /api/v1/settings | Retrieves all settings |
29
30
  | [**getUser**](RootServerApi.md#getuser) | **GET** /api/v1/users/{userId} | Retrieves a single user |
30
31
  | [**getUsers**](RootServerApi.md#getusers) | **GET** /api/v1/users | Retrieves users |
31
32
  | [**partialUpdateUser**](RootServerApi.md#partialupdateuser) | **PATCH** /api/v1/users/{userId} | Patches a user |
@@ -35,6 +36,7 @@ All URIs are relative to *http://localhost:8000/main_server*
35
36
  | [**updateFormat**](RootServerApi.md#updateformat) | **PUT** /api/v1/formats/{formatId} | Updates a format |
36
37
  | [**updateMeeting**](RootServerApi.md#updatemeeting) | **PUT** /api/v1/meetings/{meetingId} | Updates a meeting |
37
38
  | [**updateServiceBody**](RootServerApi.md#updateservicebody) | **PUT** /api/v1/servicebodies/{serviceBodyId} | Updates a Service Body |
39
+ | [**updateSettings**](RootServerApi.md#updatesettings) | **PUT** /api/v1/settings | Update settings |
38
40
  | [**updateUser**](RootServerApi.md#updateuser) | **PUT** /api/v1/users/{userId} | Update single user |
39
41
 
40
42
 
@@ -1608,6 +1610,71 @@ example().catch(console.error);
1608
1610
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1609
1611
 
1610
1612
 
1613
+ ## getSettings
1614
+
1615
+ > SettingsObject getSettings()
1616
+
1617
+ Retrieves all settings
1618
+
1619
+ Retrieve all server settings. Only accessible to server administrators.
1620
+
1621
+ ### Example
1622
+
1623
+ ```ts
1624
+ import {
1625
+ Configuration,
1626
+ RootServerApi,
1627
+ } from 'bmlt-server-client';
1628
+ import type { GetSettingsRequest } from 'bmlt-server-client';
1629
+
1630
+ async function example() {
1631
+ console.log("🚀 Testing bmlt-server-client SDK...");
1632
+ const config = new Configuration({
1633
+ // To configure OAuth2 access token for authorization: bmltToken password
1634
+ accessToken: "YOUR ACCESS TOKEN",
1635
+ });
1636
+ const api = new RootServerApi(config);
1637
+
1638
+ try {
1639
+ const data = await api.getSettings();
1640
+ console.log(data);
1641
+ } catch (error) {
1642
+ console.error(error);
1643
+ }
1644
+ }
1645
+
1646
+ // Run the test
1647
+ example().catch(console.error);
1648
+ ```
1649
+
1650
+ ### Parameters
1651
+
1652
+ This endpoint does not need any parameter.
1653
+
1654
+ ### Return type
1655
+
1656
+ [**SettingsObject**](SettingsObject.md)
1657
+
1658
+ ### Authorization
1659
+
1660
+ [bmltToken password](../README.md#bmltToken-password)
1661
+
1662
+ ### HTTP request headers
1663
+
1664
+ - **Content-Type**: Not defined
1665
+ - **Accept**: `application/json`
1666
+
1667
+
1668
+ ### HTTP response details
1669
+ | Status code | Description | Response headers |
1670
+ |-------------|-------------|------------------|
1671
+ | **200** | Returns when user is authenticated as admin. | - |
1672
+ | **401** | Returns when not authenticated | - |
1673
+ | **403** | Returns when user is not an admin | - |
1674
+
1675
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1676
+
1677
+
1611
1678
  ## getUser
1612
1679
 
1613
1680
  > User getUser(userId)
@@ -2294,6 +2361,80 @@ example().catch(console.error);
2294
2361
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2295
2362
 
2296
2363
 
2364
+ ## updateSettings
2365
+
2366
+ > updateSettings(settingsUpdate)
2367
+
2368
+ Update settings
2369
+
2370
+ Updates one or more server settings. Only accessible to server administrators.
2371
+
2372
+ ### Example
2373
+
2374
+ ```ts
2375
+ import {
2376
+ Configuration,
2377
+ RootServerApi,
2378
+ } from 'bmlt-server-client';
2379
+ import type { UpdateSettingsRequest } from 'bmlt-server-client';
2380
+
2381
+ async function example() {
2382
+ console.log("🚀 Testing bmlt-server-client SDK...");
2383
+ const config = new Configuration({
2384
+ // To configure OAuth2 access token for authorization: bmltToken password
2385
+ accessToken: "YOUR ACCESS TOKEN",
2386
+ });
2387
+ const api = new RootServerApi(config);
2388
+
2389
+ const body = {
2390
+ // SettingsUpdate | Pass in settings object with values to update
2391
+ settingsUpdate: ...,
2392
+ } satisfies UpdateSettingsRequest;
2393
+
2394
+ try {
2395
+ const data = await api.updateSettings(body);
2396
+ console.log(data);
2397
+ } catch (error) {
2398
+ console.error(error);
2399
+ }
2400
+ }
2401
+
2402
+ // Run the test
2403
+ example().catch(console.error);
2404
+ ```
2405
+
2406
+ ### Parameters
2407
+
2408
+
2409
+ | Name | Type | Description | Notes |
2410
+ |------------- | ------------- | ------------- | -------------|
2411
+ | **settingsUpdate** | [SettingsUpdate](SettingsUpdate.md) | Pass in settings object with values to update | |
2412
+
2413
+ ### Return type
2414
+
2415
+ `void` (Empty response body)
2416
+
2417
+ ### Authorization
2418
+
2419
+ [bmltToken password](../README.md#bmltToken-password)
2420
+
2421
+ ### HTTP request headers
2422
+
2423
+ - **Content-Type**: `application/json`
2424
+ - **Accept**: `application/json`
2425
+
2426
+
2427
+ ### HTTP response details
2428
+ | Status code | Description | Response headers |
2429
+ |-------------|-------------|------------------|
2430
+ | **204** | Success. | - |
2431
+ | **401** | Returns when user is not authenticated. | - |
2432
+ | **403** | Returns when user is not an admin. | - |
2433
+ | **422** | Validation error. | - |
2434
+
2435
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2436
+
2437
+
2297
2438
  ## updateUser
2298
2439
 
2299
2440
  > updateUser(userId, userUpdate)
@@ -0,0 +1,80 @@
1
+
2
+ # SettingsBase
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `googleApiKey` | string
10
+ `changeDepthForMeetings` | number
11
+ `defaultSortKey` | string
12
+ `language` | string
13
+ `defaultDurationTime` | string
14
+ `regionBias` | string
15
+ `distanceUnits` | string
16
+ `meetingStatesAndProvinces` | Array&lt;string&gt;
17
+ `meetingCountiesAndSubProvinces` | Array&lt;string&gt;
18
+ `searchSpecMapCenterLongitude` | number
19
+ `searchSpecMapCenterLatitude` | number
20
+ `searchSpecMapCenterZoom` | number
21
+ `numberOfMeetingsForAuto` | number
22
+ `autoGeocodingEnabled` | boolean
23
+ `countyAutoGeocodingEnabled` | boolean
24
+ `zipAutoGeocodingEnabled` | boolean
25
+ `defaultClosedStatus` | boolean
26
+ `enableLanguageSelector` | boolean
27
+ `aggregatorModeEnabled` | boolean
28
+ `aggregatorMaxGeoWidthKm` | number
29
+ `includeServiceBodyEmailInSemantic` | boolean
30
+ `bmltTitle` | string
31
+ `bmltNotice` | string
32
+ `formatLangNames` | object
33
+
34
+ ## Example
35
+
36
+ ```typescript
37
+ import type { SettingsBase } from 'bmlt-server-client'
38
+
39
+ // TODO: Update the object below with actual values
40
+ const example = {
41
+ "googleApiKey": null,
42
+ "changeDepthForMeetings": null,
43
+ "defaultSortKey": null,
44
+ "language": null,
45
+ "defaultDurationTime": null,
46
+ "regionBias": null,
47
+ "distanceUnits": null,
48
+ "meetingStatesAndProvinces": null,
49
+ "meetingCountiesAndSubProvinces": null,
50
+ "searchSpecMapCenterLongitude": null,
51
+ "searchSpecMapCenterLatitude": null,
52
+ "searchSpecMapCenterZoom": null,
53
+ "numberOfMeetingsForAuto": null,
54
+ "autoGeocodingEnabled": null,
55
+ "countyAutoGeocodingEnabled": null,
56
+ "zipAutoGeocodingEnabled": null,
57
+ "defaultClosedStatus": null,
58
+ "enableLanguageSelector": null,
59
+ "aggregatorModeEnabled": null,
60
+ "aggregatorMaxGeoWidthKm": null,
61
+ "includeServiceBodyEmailInSemantic": null,
62
+ "bmltTitle": null,
63
+ "bmltNotice": null,
64
+ "formatLangNames": null,
65
+ } satisfies SettingsBase
66
+
67
+ console.log(example)
68
+
69
+ // Convert the instance to a JSON string
70
+ const exampleJSON: string = JSON.stringify(example)
71
+ console.log(exampleJSON)
72
+
73
+ // Parse the JSON string back to an object
74
+ const exampleParsed = JSON.parse(exampleJSON) as SettingsBase
75
+ console.log(exampleParsed)
76
+ ```
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
79
+
80
+