bmlt-server-client 2.0.0 → 2.0.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/.github/workflows/release.yml +4 -4
- package/.openapi-generator/FILES +44 -0
- package/.openapi-generator/VERSION +1 -1
- package/Makefile +2 -1
- package/README.md +172 -28
- package/dist/apis/RootServerApi.d.ts +25 -1
- package/dist/apis/RootServerApi.js +960 -1531
- package/dist/esm/apis/RootServerApi.d.ts +448 -0
- package/dist/esm/apis/RootServerApi.js +1253 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AuthenticationError.d.ts +32 -0
- package/dist/esm/models/AuthenticationError.js +43 -0
- package/dist/esm/models/AuthorizationError.d.ts +32 -0
- package/dist/esm/models/AuthorizationError.js +43 -0
- package/dist/esm/models/ConflictError.d.ts +32 -0
- package/dist/esm/models/ConflictError.js +43 -0
- package/dist/esm/models/ErrorTest.d.ts +44 -0
- package/dist/esm/models/ErrorTest.js +45 -0
- package/dist/esm/models/Format.d.ts +51 -0
- package/dist/esm/models/Format.js +56 -0
- package/dist/esm/models/FormatBase.d.ts +45 -0
- package/dist/esm/models/FormatBase.js +46 -0
- package/dist/esm/models/FormatCreate.d.ts +45 -0
- package/dist/esm/models/FormatCreate.js +48 -0
- package/dist/esm/models/FormatPartialUpdate.d.ts +45 -0
- package/dist/esm/models/FormatPartialUpdate.js +46 -0
- package/dist/esm/models/FormatTranslation.d.ts +50 -0
- package/dist/esm/models/FormatTranslation.js +55 -0
- package/dist/esm/models/FormatUpdate.d.ts +45 -0
- package/dist/esm/models/FormatUpdate.js +48 -0
- package/dist/esm/models/Meeting.d.ts +256 -0
- package/dist/esm/models/Meeting.js +145 -0
- package/dist/esm/models/MeetingBase.d.ts +250 -0
- package/dist/esm/models/MeetingBase.js +113 -0
- package/dist/esm/models/MeetingChangeResource.d.ts +50 -0
- package/dist/esm/models/MeetingChangeResource.js +47 -0
- package/dist/esm/models/MeetingCreate.d.ts +250 -0
- package/dist/esm/models/MeetingCreate.js +133 -0
- package/dist/esm/models/MeetingPartialUpdate.d.ts +250 -0
- package/dist/esm/models/MeetingPartialUpdate.js +113 -0
- package/dist/esm/models/MeetingUpdate.d.ts +250 -0
- package/dist/esm/models/MeetingUpdate.js +133 -0
- package/dist/esm/models/NotFoundError.d.ts +32 -0
- package/dist/esm/models/NotFoundError.js +43 -0
- package/dist/esm/models/RootServer.d.ts +69 -0
- package/dist/esm/models/RootServer.js +64 -0
- package/dist/esm/models/RootServerBase.d.ts +63 -0
- package/dist/esm/models/RootServerBase.js +52 -0
- package/dist/esm/models/RootServerBaseStatistics.d.ts +40 -0
- package/dist/esm/models/RootServerBaseStatistics.js +49 -0
- package/dist/esm/models/RootServerBaseStatisticsMeetings.d.ts +56 -0
- package/dist/esm/models/RootServerBaseStatisticsMeetings.js +59 -0
- package/dist/esm/models/RootServerBaseStatisticsServiceBodies.d.ts +50 -0
- package/dist/esm/models/RootServerBaseStatisticsServiceBodies.js +55 -0
- package/dist/esm/models/ServerError.d.ts +32 -0
- package/dist/esm/models/ServerError.js +43 -0
- package/dist/esm/models/ServiceBody.d.ts +92 -0
- package/dist/esm/models/ServiceBody.js +83 -0
- package/dist/esm/models/ServiceBodyBase.d.ts +86 -0
- package/dist/esm/models/ServiceBodyBase.js +59 -0
- package/dist/esm/models/ServiceBodyCreate.d.ts +86 -0
- package/dist/esm/models/ServiceBodyCreate.js +71 -0
- package/dist/esm/models/ServiceBodyPartialUpdate.d.ts +86 -0
- package/dist/esm/models/ServiceBodyPartialUpdate.js +59 -0
- package/dist/esm/models/ServiceBodyUpdate.d.ts +86 -0
- package/dist/esm/models/ServiceBodyUpdate.js +71 -0
- package/dist/esm/models/SettingsBase.d.ts +158 -0
- package/dist/esm/models/SettingsBase.js +83 -0
- package/dist/esm/models/SettingsObject.d.ts +158 -0
- package/dist/esm/models/SettingsObject.js +83 -0
- package/dist/esm/models/SettingsUpdate.d.ts +158 -0
- package/dist/esm/models/SettingsUpdate.js +83 -0
- package/dist/esm/models/Token.d.ts +50 -0
- package/dist/esm/models/Token.js +55 -0
- package/dist/esm/models/TokenCredentials.d.ts +38 -0
- package/dist/esm/models/TokenCredentials.js +47 -0
- package/dist/esm/models/User.d.ts +74 -0
- package/dist/esm/models/User.js +69 -0
- package/dist/esm/models/UserBase.d.ts +62 -0
- package/dist/esm/models/UserBase.js +51 -0
- package/dist/esm/models/UserCreate.d.ts +68 -0
- package/dist/esm/models/UserCreate.js +61 -0
- package/dist/esm/models/UserPartialUpdate.d.ts +68 -0
- package/dist/esm/models/UserPartialUpdate.js +53 -0
- package/dist/esm/models/UserUpdate.d.ts +68 -0
- package/dist/esm/models/UserUpdate.js +59 -0
- package/dist/esm/models/ValidationError.d.ts +40 -0
- package/dist/esm/models/ValidationError.js +47 -0
- package/dist/esm/models/index.d.ts +39 -0
- package/dist/esm/models/index.js +41 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/models/AuthenticationError.js +6 -8
- package/dist/models/AuthorizationError.js +6 -8
- package/dist/models/ConflictError.js +6 -8
- package/dist/models/ErrorTest.js +6 -8
- package/dist/models/Format.js +7 -9
- package/dist/models/FormatBase.js +7 -9
- package/dist/models/FormatCreate.js +7 -9
- package/dist/models/FormatPartialUpdate.js +7 -9
- package/dist/models/FormatTranslation.js +6 -8
- package/dist/models/FormatUpdate.js +7 -9
- package/dist/models/Meeting.js +6 -8
- package/dist/models/MeetingBase.js +6 -8
- package/dist/models/MeetingChangeResource.js +6 -8
- package/dist/models/MeetingCreate.js +6 -8
- package/dist/models/MeetingPartialUpdate.d.ts +10 -10
- package/dist/models/MeetingPartialUpdate.js +16 -38
- package/dist/models/MeetingUpdate.js +6 -8
- package/dist/models/NotFoundError.js +6 -8
- package/dist/models/RootServer.js +8 -10
- package/dist/models/RootServerBase.js +8 -10
- package/dist/models/RootServerBaseStatistics.js +8 -10
- package/dist/models/RootServerBaseStatisticsMeetings.js +6 -8
- package/dist/models/RootServerBaseStatisticsServiceBodies.js +6 -8
- package/dist/models/ServerError.js +6 -8
- package/dist/models/ServiceBody.js +6 -8
- package/dist/models/ServiceBodyBase.js +6 -8
- package/dist/models/ServiceBodyCreate.js +6 -8
- package/dist/models/ServiceBodyPartialUpdate.js +6 -8
- package/dist/models/ServiceBodyUpdate.js +6 -8
- package/dist/models/SettingsBase.d.ts +158 -0
- package/dist/models/SettingsBase.js +90 -0
- package/dist/models/SettingsObject.d.ts +158 -0
- package/dist/models/SettingsObject.js +90 -0
- package/dist/models/SettingsUpdate.d.ts +158 -0
- package/dist/models/SettingsUpdate.js +90 -0
- package/dist/models/Token.js +6 -8
- package/dist/models/TokenCredentials.js +6 -8
- package/dist/models/User.d.ts +6 -0
- package/dist/models/User.js +8 -8
- package/dist/models/UserBase.js +6 -8
- package/dist/models/UserCreate.js +6 -8
- package/dist/models/UserPartialUpdate.js +6 -8
- package/dist/models/UserUpdate.js +6 -8
- package/dist/models/ValidationError.js +6 -8
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +9 -9
- package/dist/runtime.js +226 -440
- package/docs/AuthenticationError.md +34 -0
- package/docs/AuthorizationError.md +34 -0
- package/docs/ConflictError.md +34 -0
- package/docs/ErrorTest.md +38 -0
- package/docs/Format.md +40 -0
- package/docs/FormatBase.md +38 -0
- package/docs/FormatCreate.md +38 -0
- package/docs/FormatPartialUpdate.md +38 -0
- package/docs/FormatTranslation.md +40 -0
- package/docs/FormatUpdate.md +38 -0
- package/docs/Meeting.md +108 -0
- package/docs/MeetingBase.md +106 -0
- package/docs/MeetingChangeResource.md +40 -0
- package/docs/MeetingCreate.md +106 -0
- package/docs/MeetingPartialUpdate.md +106 -0
- package/docs/MeetingUpdate.md +106 -0
- package/docs/NotFoundError.md +34 -0
- package/docs/RootServer.md +46 -0
- package/docs/RootServerApi.md +2514 -0
- package/docs/RootServerBase.md +44 -0
- package/docs/RootServerBaseStatistics.md +36 -0
- package/docs/RootServerBaseStatisticsMeetings.md +42 -0
- package/docs/RootServerBaseStatisticsServiceBodies.md +40 -0
- package/docs/ServerError.md +34 -0
- package/docs/ServiceBody.md +54 -0
- package/docs/ServiceBodyBase.md +52 -0
- package/docs/ServiceBodyCreate.md +52 -0
- package/docs/ServiceBodyPartialUpdate.md +52 -0
- package/docs/ServiceBodyUpdate.md +52 -0
- package/docs/SettingsBase.md +76 -0
- package/docs/SettingsObject.md +76 -0
- package/docs/SettingsUpdate.md +77 -0
- package/docs/Token.md +40 -0
- package/docs/TokenCredentials.md +36 -0
- package/docs/User.md +48 -0
- package/docs/UserBase.md +44 -0
- package/docs/UserCreate.md +46 -0
- package/docs/UserPartialUpdate.md +46 -0
- package/docs/UserUpdate.md +46 -0
- package/docs/ValidationError.md +36 -0
- package/openapi.json +1 -1
- package/package.json +5 -3
- package/src/apis/RootServerApi.ts +242 -32
- package/src/models/MeetingPartialUpdate.ts +20 -30
- package/src/models/RootServer.ts +1 -1
- package/src/models/RootServerBase.ts +1 -1
- package/src/models/SettingsBase.ts +233 -0
- package/src/models/SettingsObject.ts +233 -0
- package/src/models/SettingsUpdate.ts +233 -0
- package/src/models/User.ts +8 -0
- package/src/models/index.ts +3 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +1 -5
- package/.idea/bmlt-server-typescript-client.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/docs/Token.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# Token
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`accessToken` | string
|
|
10
|
+
`expiresAt` | number
|
|
11
|
+
`tokenType` | string
|
|
12
|
+
`userId` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { Token } from 'bmlt-server-client'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"accessToken": 2|tR6PIqa8tiBJWMu4zyb3qw4eECuERjLd7xeLKgBu,
|
|
22
|
+
"expiresAt": 1667342171,
|
|
23
|
+
"tokenType": bearer,
|
|
24
|
+
"userId": 1,
|
|
25
|
+
} satisfies Token
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as Token
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# TokenCredentials
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`username` | string
|
|
10
|
+
`password` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { TokenCredentials } from 'bmlt-server-client'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"username": MyUsername,
|
|
20
|
+
"password": PassWord12345,
|
|
21
|
+
} satisfies TokenCredentials
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as TokenCredentials
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/User.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# User
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`username` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`displayName` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`email` | string
|
|
14
|
+
`ownerId` | number
|
|
15
|
+
`id` | number
|
|
16
|
+
`lastLoginAt` | Date
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { User } from 'bmlt-server-client'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"username": string,
|
|
26
|
+
"type": string,
|
|
27
|
+
"displayName": string,
|
|
28
|
+
"description": string,
|
|
29
|
+
"email": string,
|
|
30
|
+
"ownerId": 0,
|
|
31
|
+
"id": 0,
|
|
32
|
+
"lastLoginAt": 2019-05-02T05:05Z,
|
|
33
|
+
} satisfies User
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as User
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
package/docs/UserBase.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# UserBase
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`username` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`displayName` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`email` | string
|
|
14
|
+
`ownerId` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { UserBase } from 'bmlt-server-client'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"username": string,
|
|
24
|
+
"type": string,
|
|
25
|
+
"displayName": string,
|
|
26
|
+
"description": string,
|
|
27
|
+
"email": string,
|
|
28
|
+
"ownerId": 0,
|
|
29
|
+
} satisfies UserBase
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as UserBase
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# UserCreate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`username` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`displayName` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`email` | string
|
|
14
|
+
`ownerId` | number
|
|
15
|
+
`password` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { UserCreate } from 'bmlt-server-client'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"username": string,
|
|
25
|
+
"type": string,
|
|
26
|
+
"displayName": string,
|
|
27
|
+
"description": string,
|
|
28
|
+
"email": string,
|
|
29
|
+
"ownerId": 0,
|
|
30
|
+
"password": string,
|
|
31
|
+
} satisfies UserCreate
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as UserCreate
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# UserPartialUpdate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`username` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`displayName` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`email` | string
|
|
14
|
+
`ownerId` | number
|
|
15
|
+
`password` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { UserPartialUpdate } from 'bmlt-server-client'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"username": string,
|
|
25
|
+
"type": string,
|
|
26
|
+
"displayName": string,
|
|
27
|
+
"description": string,
|
|
28
|
+
"email": string,
|
|
29
|
+
"ownerId": 0,
|
|
30
|
+
"password": string,
|
|
31
|
+
} satisfies UserPartialUpdate
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as UserPartialUpdate
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# UserUpdate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`username` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`displayName` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`email` | string
|
|
14
|
+
`ownerId` | number
|
|
15
|
+
`password` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { UserUpdate } from 'bmlt-server-client'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"username": string,
|
|
25
|
+
"type": string,
|
|
26
|
+
"displayName": string,
|
|
27
|
+
"description": string,
|
|
28
|
+
"email": string,
|
|
29
|
+
"ownerId": 0,
|
|
30
|
+
"password": string,
|
|
31
|
+
} satisfies UserUpdate
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as UserUpdate
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ValidationError
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`message` | string
|
|
10
|
+
`errors` | { [key: string]: Array<string>; }
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ValidationError } from 'bmlt-server-client'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"message": The field is required. (and 1 more error),
|
|
20
|
+
"errors": null,
|
|
21
|
+
} satisfies ValidationError
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ValidationError
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|