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.
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +112 -0
- package/.openapi-generator/FILES +6 -0
- package/Makefile +1 -1
- package/README.md +7 -2
- package/dist/apis/RootServerApi.d.ts +24 -1
- package/dist/apis/RootServerApi.js +68 -0
- package/dist/esm/apis/RootServerApi.d.ts +24 -1
- package/dist/esm/apis/RootServerApi.js +69 -1
- package/dist/esm/models/Settings.d.ts +33 -0
- package/dist/esm/models/Settings.js +44 -0
- package/dist/esm/models/SettingsBase.d.ts +182 -0
- package/dist/esm/models/SettingsBase.js +91 -0
- package/dist/esm/models/SettingsObject.d.ts +182 -0
- package/dist/esm/models/SettingsObject.js +91 -0
- package/dist/esm/models/SettingsUpdate.d.ts +182 -0
- package/dist/esm/models/SettingsUpdate.js +91 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/Settings.d.ts +33 -0
- package/dist/models/Settings.js +51 -0
- package/dist/models/SettingsBase.d.ts +182 -0
- package/dist/models/SettingsBase.js +98 -0
- package/dist/models/SettingsObject.d.ts +182 -0
- package/dist/models/SettingsObject.js +98 -0
- package/dist/models/SettingsUpdate.d.ts +182 -0
- package/dist/models/SettingsUpdate.js +98 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/RootServerApi.md +141 -0
- package/docs/SettingsBase.md +84 -0
- package/docs/SettingsObject.md +84 -0
- package/docs/SettingsUpdate.md +85 -0
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/apis/RootServerApi.ts +91 -0
- package/src/models/SettingsBase.ts +265 -0
- package/src/models/SettingsObject.ts +265 -0
- package/src/models/SettingsUpdate.ts +265 -0
- package/src/models/index.ts +3 -0
package/docs/RootServerApi.md
CHANGED
|
@@ -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,84 @@
|
|
|
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
|
+
`enableEmailContact` | boolean
|
|
17
|
+
`includeServiceBodyAdminOnEmails` | boolean
|
|
18
|
+
`meetingStatesAndProvinces` | Array<string>
|
|
19
|
+
`meetingCountiesAndSubProvinces` | Array<string>
|
|
20
|
+
`searchSpecMapCenterLongitude` | number
|
|
21
|
+
`searchSpecMapCenterLatitude` | number
|
|
22
|
+
`searchSpecMapCenterZoom` | number
|
|
23
|
+
`numberOfMeetingsForAuto` | number
|
|
24
|
+
`autoGeocodingEnabled` | boolean
|
|
25
|
+
`countyAutoGeocodingEnabled` | boolean
|
|
26
|
+
`zipAutoGeocodingEnabled` | boolean
|
|
27
|
+
`defaultClosedStatus` | boolean
|
|
28
|
+
`enableLanguageSelector` | boolean
|
|
29
|
+
`aggregatorModeEnabled` | boolean
|
|
30
|
+
`aggregatorMaxGeoWidthKm` | number
|
|
31
|
+
`includeServiceBodyEmailInSemantic` | boolean
|
|
32
|
+
`bmltTitle` | string
|
|
33
|
+
`bmltNotice` | string
|
|
34
|
+
`formatLangNames` | object
|
|
35
|
+
|
|
36
|
+
## Example
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import type { SettingsBase } from 'bmlt-server-client'
|
|
40
|
+
|
|
41
|
+
// TODO: Update the object below with actual values
|
|
42
|
+
const example = {
|
|
43
|
+
"googleApiKey": null,
|
|
44
|
+
"changeDepthForMeetings": null,
|
|
45
|
+
"defaultSortKey": null,
|
|
46
|
+
"language": null,
|
|
47
|
+
"defaultDurationTime": null,
|
|
48
|
+
"regionBias": null,
|
|
49
|
+
"distanceUnits": null,
|
|
50
|
+
"enableEmailContact": null,
|
|
51
|
+
"includeServiceBodyAdminOnEmails": null,
|
|
52
|
+
"meetingStatesAndProvinces": null,
|
|
53
|
+
"meetingCountiesAndSubProvinces": null,
|
|
54
|
+
"searchSpecMapCenterLongitude": null,
|
|
55
|
+
"searchSpecMapCenterLatitude": null,
|
|
56
|
+
"searchSpecMapCenterZoom": null,
|
|
57
|
+
"numberOfMeetingsForAuto": null,
|
|
58
|
+
"autoGeocodingEnabled": null,
|
|
59
|
+
"countyAutoGeocodingEnabled": null,
|
|
60
|
+
"zipAutoGeocodingEnabled": null,
|
|
61
|
+
"defaultClosedStatus": null,
|
|
62
|
+
"enableLanguageSelector": null,
|
|
63
|
+
"aggregatorModeEnabled": null,
|
|
64
|
+
"aggregatorMaxGeoWidthKm": null,
|
|
65
|
+
"includeServiceBodyEmailInSemantic": null,
|
|
66
|
+
"bmltTitle": null,
|
|
67
|
+
"bmltNotice": null,
|
|
68
|
+
"formatLangNames": null,
|
|
69
|
+
} satisfies SettingsBase
|
|
70
|
+
|
|
71
|
+
console.log(example)
|
|
72
|
+
|
|
73
|
+
// Convert the instance to a JSON string
|
|
74
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
75
|
+
console.log(exampleJSON)
|
|
76
|
+
|
|
77
|
+
// Parse the JSON string back to an object
|
|
78
|
+
const exampleParsed = JSON.parse(exampleJSON) as SettingsBase
|
|
79
|
+
console.log(exampleParsed)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
# SettingsObject
|
|
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
|
+
`enableEmailContact` | boolean
|
|
17
|
+
`includeServiceBodyAdminOnEmails` | boolean
|
|
18
|
+
`meetingStatesAndProvinces` | Array<string>
|
|
19
|
+
`meetingCountiesAndSubProvinces` | Array<string>
|
|
20
|
+
`searchSpecMapCenterLongitude` | number
|
|
21
|
+
`searchSpecMapCenterLatitude` | number
|
|
22
|
+
`searchSpecMapCenterZoom` | number
|
|
23
|
+
`numberOfMeetingsForAuto` | number
|
|
24
|
+
`autoGeocodingEnabled` | boolean
|
|
25
|
+
`countyAutoGeocodingEnabled` | boolean
|
|
26
|
+
`zipAutoGeocodingEnabled` | boolean
|
|
27
|
+
`defaultClosedStatus` | boolean
|
|
28
|
+
`enableLanguageSelector` | boolean
|
|
29
|
+
`aggregatorModeEnabled` | boolean
|
|
30
|
+
`aggregatorMaxGeoWidthKm` | number
|
|
31
|
+
`includeServiceBodyEmailInSemantic` | boolean
|
|
32
|
+
`bmltTitle` | string
|
|
33
|
+
`bmltNotice` | string
|
|
34
|
+
`formatLangNames` | object
|
|
35
|
+
|
|
36
|
+
## Example
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import type { SettingsObject } from 'bmlt-server-client'
|
|
40
|
+
|
|
41
|
+
// TODO: Update the object below with actual values
|
|
42
|
+
const example = {
|
|
43
|
+
"googleApiKey": ,
|
|
44
|
+
"changeDepthForMeetings": 0,
|
|
45
|
+
"defaultSortKey": null,
|
|
46
|
+
"language": en,
|
|
47
|
+
"defaultDurationTime": 01:00,
|
|
48
|
+
"regionBias": us,
|
|
49
|
+
"distanceUnits": mi,
|
|
50
|
+
"enableEmailContact": false,
|
|
51
|
+
"includeServiceBodyAdminOnEmails": false,
|
|
52
|
+
"meetingStatesAndProvinces": [],
|
|
53
|
+
"meetingCountiesAndSubProvinces": [],
|
|
54
|
+
"searchSpecMapCenterLongitude": -118.563659,
|
|
55
|
+
"searchSpecMapCenterLatitude": 34.235918,
|
|
56
|
+
"searchSpecMapCenterZoom": 6,
|
|
57
|
+
"numberOfMeetingsForAuto": 10,
|
|
58
|
+
"autoGeocodingEnabled": true,
|
|
59
|
+
"countyAutoGeocodingEnabled": false,
|
|
60
|
+
"zipAutoGeocodingEnabled": false,
|
|
61
|
+
"defaultClosedStatus": true,
|
|
62
|
+
"enableLanguageSelector": false,
|
|
63
|
+
"aggregatorModeEnabled": false,
|
|
64
|
+
"aggregatorMaxGeoWidthKm": 1000,
|
|
65
|
+
"includeServiceBodyEmailInSemantic": false,
|
|
66
|
+
"bmltTitle": ,
|
|
67
|
+
"bmltNotice": ,
|
|
68
|
+
"formatLangNames": [],
|
|
69
|
+
} satisfies SettingsObject
|
|
70
|
+
|
|
71
|
+
console.log(example)
|
|
72
|
+
|
|
73
|
+
// Convert the instance to a JSON string
|
|
74
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
75
|
+
console.log(exampleJSON)
|
|
76
|
+
|
|
77
|
+
// Parse the JSON string back to an object
|
|
78
|
+
const exampleParsed = JSON.parse(exampleJSON) as SettingsObject
|
|
79
|
+
console.log(exampleParsed)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
# SettingsUpdate
|
|
3
|
+
|
|
4
|
+
Partial update object - include only the settings you want to update
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`googleApiKey` | string
|
|
11
|
+
`changeDepthForMeetings` | number
|
|
12
|
+
`defaultSortKey` | string
|
|
13
|
+
`language` | string
|
|
14
|
+
`defaultDurationTime` | string
|
|
15
|
+
`regionBias` | string
|
|
16
|
+
`distanceUnits` | string
|
|
17
|
+
`enableEmailContact` | boolean
|
|
18
|
+
`includeServiceBodyAdminOnEmails` | boolean
|
|
19
|
+
`meetingStatesAndProvinces` | Array<string>
|
|
20
|
+
`meetingCountiesAndSubProvinces` | Array<string>
|
|
21
|
+
`searchSpecMapCenterLongitude` | number
|
|
22
|
+
`searchSpecMapCenterLatitude` | number
|
|
23
|
+
`searchSpecMapCenterZoom` | number
|
|
24
|
+
`numberOfMeetingsForAuto` | number
|
|
25
|
+
`autoGeocodingEnabled` | boolean
|
|
26
|
+
`countyAutoGeocodingEnabled` | boolean
|
|
27
|
+
`zipAutoGeocodingEnabled` | boolean
|
|
28
|
+
`defaultClosedStatus` | boolean
|
|
29
|
+
`enableLanguageSelector` | boolean
|
|
30
|
+
`aggregatorModeEnabled` | boolean
|
|
31
|
+
`aggregatorMaxGeoWidthKm` | number
|
|
32
|
+
`includeServiceBodyEmailInSemantic` | boolean
|
|
33
|
+
`bmltTitle` | string
|
|
34
|
+
`bmltNotice` | string
|
|
35
|
+
`formatLangNames` | object
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import type { SettingsUpdate } from 'bmlt-server-client'
|
|
41
|
+
|
|
42
|
+
// TODO: Update the object below with actual values
|
|
43
|
+
const example = {
|
|
44
|
+
"googleApiKey": null,
|
|
45
|
+
"changeDepthForMeetings": null,
|
|
46
|
+
"defaultSortKey": null,
|
|
47
|
+
"language": null,
|
|
48
|
+
"defaultDurationTime": null,
|
|
49
|
+
"regionBias": null,
|
|
50
|
+
"distanceUnits": null,
|
|
51
|
+
"enableEmailContact": null,
|
|
52
|
+
"includeServiceBodyAdminOnEmails": null,
|
|
53
|
+
"meetingStatesAndProvinces": null,
|
|
54
|
+
"meetingCountiesAndSubProvinces": null,
|
|
55
|
+
"searchSpecMapCenterLongitude": null,
|
|
56
|
+
"searchSpecMapCenterLatitude": null,
|
|
57
|
+
"searchSpecMapCenterZoom": null,
|
|
58
|
+
"numberOfMeetingsForAuto": null,
|
|
59
|
+
"autoGeocodingEnabled": null,
|
|
60
|
+
"countyAutoGeocodingEnabled": null,
|
|
61
|
+
"zipAutoGeocodingEnabled": null,
|
|
62
|
+
"defaultClosedStatus": null,
|
|
63
|
+
"enableLanguageSelector": null,
|
|
64
|
+
"aggregatorModeEnabled": null,
|
|
65
|
+
"aggregatorMaxGeoWidthKm": null,
|
|
66
|
+
"includeServiceBodyEmailInSemantic": null,
|
|
67
|
+
"bmltTitle": null,
|
|
68
|
+
"bmltNotice": null,
|
|
69
|
+
"formatLangNames": null,
|
|
70
|
+
} satisfies SettingsUpdate
|
|
71
|
+
|
|
72
|
+
console.log(example)
|
|
73
|
+
|
|
74
|
+
// Convert the instance to a JSON string
|
|
75
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
76
|
+
console.log(exampleJSON)
|
|
77
|
+
|
|
78
|
+
// Parse the JSON string back to an object
|
|
79
|
+
const exampleParsed = JSON.parse(exampleJSON) as SettingsUpdate
|
|
80
|
+
console.log(exampleParsed)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
84
|
+
|
|
85
|
+
|