bmlt-server-client 2.0.0 → 2.0.2-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/.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 +262 -0
- package/dist/esm/models/Meeting.js +147 -0
- package/dist/esm/models/MeetingBase.d.ts +256 -0
- package/dist/esm/models/MeetingBase.js +115 -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 +256 -0
- package/dist/esm/models/MeetingCreate.js +135 -0
- package/dist/esm/models/MeetingPartialUpdate.d.ts +256 -0
- package/dist/esm/models/MeetingPartialUpdate.js +115 -0
- package/dist/esm/models/MeetingUpdate.d.ts +256 -0
- package/dist/esm/models/MeetingUpdate.js +135 -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.d.ts +6 -0
- package/dist/models/Meeting.js +8 -8
- package/dist/models/MeetingBase.d.ts +6 -0
- package/dist/models/MeetingBase.js +8 -8
- package/dist/models/MeetingChangeResource.js +6 -8
- package/dist/models/MeetingCreate.d.ts +6 -0
- package/dist/models/MeetingCreate.js +8 -8
- package/dist/models/MeetingPartialUpdate.d.ts +16 -10
- package/dist/models/MeetingPartialUpdate.js +18 -38
- package/dist/models/MeetingUpdate.d.ts +6 -0
- package/dist/models/MeetingUpdate.js +8 -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 +110 -0
- package/docs/MeetingBase.md +108 -0
- package/docs/MeetingChangeResource.md +40 -0
- package/docs/MeetingCreate.md +108 -0
- package/docs/MeetingPartialUpdate.md +108 -0
- package/docs/MeetingUpdate.md +108 -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/Meeting.ts +8 -0
- package/src/models/MeetingBase.ts +8 -0
- package/src/models/MeetingCreate.ts +8 -0
- package/src/models/MeetingPartialUpdate.ts +28 -30
- package/src/models/MeetingUpdate.ts +8 -0
- 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
|
@@ -5,15 +5,15 @@ on:
|
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
build:
|
|
8
|
-
runs-on: ubuntu-
|
|
8
|
+
runs-on: ubuntu-24.04
|
|
9
9
|
steps:
|
|
10
10
|
- name: Checkout
|
|
11
|
-
uses: actions/checkout@
|
|
11
|
+
uses: actions/checkout@v5
|
|
12
12
|
|
|
13
13
|
- name: Setup Node
|
|
14
|
-
uses: actions/setup-node@
|
|
14
|
+
uses: actions/setup-node@v6
|
|
15
15
|
with:
|
|
16
|
-
node-version: '
|
|
16
|
+
node-version: '20.x'
|
|
17
17
|
registry-url: 'https://registry.npmjs.org'
|
|
18
18
|
|
|
19
19
|
- name: Install dependencies and build 🔧
|
package/.openapi-generator/FILES
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
3
|
README.md
|
|
4
|
+
docs/AuthenticationError.md
|
|
5
|
+
docs/AuthorizationError.md
|
|
6
|
+
docs/ConflictError.md
|
|
7
|
+
docs/ErrorTest.md
|
|
8
|
+
docs/Format.md
|
|
9
|
+
docs/FormatBase.md
|
|
10
|
+
docs/FormatCreate.md
|
|
11
|
+
docs/FormatPartialUpdate.md
|
|
12
|
+
docs/FormatTranslation.md
|
|
13
|
+
docs/FormatUpdate.md
|
|
14
|
+
docs/Meeting.md
|
|
15
|
+
docs/MeetingBase.md
|
|
16
|
+
docs/MeetingChangeResource.md
|
|
17
|
+
docs/MeetingCreate.md
|
|
18
|
+
docs/MeetingPartialUpdate.md
|
|
19
|
+
docs/MeetingUpdate.md
|
|
20
|
+
docs/NotFoundError.md
|
|
21
|
+
docs/RootServer.md
|
|
22
|
+
docs/RootServerApi.md
|
|
23
|
+
docs/RootServerBase.md
|
|
24
|
+
docs/RootServerBaseStatistics.md
|
|
25
|
+
docs/RootServerBaseStatisticsMeetings.md
|
|
26
|
+
docs/RootServerBaseStatisticsServiceBodies.md
|
|
27
|
+
docs/ServerError.md
|
|
28
|
+
docs/ServiceBody.md
|
|
29
|
+
docs/ServiceBodyBase.md
|
|
30
|
+
docs/ServiceBodyCreate.md
|
|
31
|
+
docs/ServiceBodyPartialUpdate.md
|
|
32
|
+
docs/ServiceBodyUpdate.md
|
|
33
|
+
docs/SettingsBase.md
|
|
34
|
+
docs/SettingsObject.md
|
|
35
|
+
docs/SettingsUpdate.md
|
|
36
|
+
docs/Token.md
|
|
37
|
+
docs/TokenCredentials.md
|
|
38
|
+
docs/User.md
|
|
39
|
+
docs/UserBase.md
|
|
40
|
+
docs/UserCreate.md
|
|
41
|
+
docs/UserPartialUpdate.md
|
|
42
|
+
docs/UserUpdate.md
|
|
43
|
+
docs/ValidationError.md
|
|
4
44
|
package.json
|
|
5
45
|
src/apis/RootServerApi.ts
|
|
6
46
|
src/apis/index.ts
|
|
@@ -33,6 +73,9 @@ src/models/ServiceBodyBase.ts
|
|
|
33
73
|
src/models/ServiceBodyCreate.ts
|
|
34
74
|
src/models/ServiceBodyPartialUpdate.ts
|
|
35
75
|
src/models/ServiceBodyUpdate.ts
|
|
76
|
+
src/models/SettingsBase.ts
|
|
77
|
+
src/models/SettingsObject.ts
|
|
78
|
+
src/models/SettingsUpdate.ts
|
|
36
79
|
src/models/Token.ts
|
|
37
80
|
src/models/TokenCredentials.ts
|
|
38
81
|
src/models/User.ts
|
|
@@ -43,4 +86,5 @@ src/models/UserUpdate.ts
|
|
|
43
86
|
src/models/ValidationError.ts
|
|
44
87
|
src/models/index.ts
|
|
45
88
|
src/runtime.ts
|
|
89
|
+
tsconfig.esm.json
|
|
46
90
|
tsconfig.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.19.0-SNAPSHOT
|
package/Makefile
CHANGED
|
@@ -8,7 +8,8 @@ generate: openapi.json
|
|
|
8
8
|
-i openapi.json \
|
|
9
9
|
-g typescript-fetch \
|
|
10
10
|
-p npmName=bmlt-server-client \
|
|
11
|
-
-p npmVersion=
|
|
11
|
+
-p npmVersion=1.4.0 \
|
|
12
|
+
-p supportsES6=true \
|
|
12
13
|
--git-repo-id=bmlt-server-typescript-client \
|
|
13
14
|
--git-user-id=bmlt-enabled \
|
|
14
15
|
-o .
|
package/README.md
CHANGED
|
@@ -1,46 +1,190 @@
|
|
|
1
|
-
|
|
1
|
+
# bmlt-server-client@1.4.0
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
* Node.js
|
|
7
|
-
* Webpack
|
|
8
|
-
* Browserify
|
|
5
|
+
## Usage
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
-
* ES6
|
|
7
|
+
First, install the SDK from npm.
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
```bash
|
|
10
|
+
npm install bmlt-server-client --save
|
|
11
|
+
```
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
Next, try it out.
|
|
19
14
|
|
|
20
|
-
### Building
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
```ts
|
|
17
|
+
import {
|
|
18
|
+
Configuration,
|
|
19
|
+
RootServerApi,
|
|
20
|
+
} from 'bmlt-server-client';
|
|
21
|
+
import type { AuthLogoutRequest } from 'bmlt-server-client';
|
|
22
|
+
|
|
23
|
+
async function example() {
|
|
24
|
+
console.log("🚀 Testing bmlt-server-client SDK...");
|
|
25
|
+
const config = new Configuration({
|
|
26
|
+
// To configure OAuth2 access token for authorization: bmltToken password
|
|
27
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
28
|
+
});
|
|
29
|
+
const api = new RootServerApi(config);
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
const data = await api.authLogout();
|
|
33
|
+
console.log(data);
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.error(error);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Run the test
|
|
40
|
+
example().catch(console.error);
|
|
26
41
|
```
|
|
27
42
|
|
|
28
|
-
### Publishing
|
|
29
43
|
|
|
30
|
-
|
|
44
|
+
## Documentation
|
|
31
45
|
|
|
32
|
-
###
|
|
46
|
+
### API Endpoints
|
|
33
47
|
|
|
34
|
-
|
|
48
|
+
All URIs are relative to *http://localhost:8000/main_server*
|
|
35
49
|
|
|
36
|
-
|
|
50
|
+
| Class | Method | HTTP request | Description
|
|
51
|
+
| ----- | ------ | ------------ | -------------
|
|
52
|
+
*RootServerApi* | [**authLogout**](docs/RootServerApi.md#authlogout) | **POST** /api/v1/auth/logout | Revokes a token
|
|
53
|
+
*RootServerApi* | [**authRefresh**](docs/RootServerApi.md#authrefresh) | **POST** /api/v1/auth/refresh | Revokes and issues a new token
|
|
54
|
+
*RootServerApi* | [**authToken**](docs/RootServerApi.md#authtoken) | **POST** /api/v1/auth/token | Creates a token
|
|
55
|
+
*RootServerApi* | [**createErrorTest**](docs/RootServerApi.md#createerrortest) | **POST** /api/v1/errortest | Tests some errors
|
|
56
|
+
*RootServerApi* | [**createFormat**](docs/RootServerApi.md#createformat) | **POST** /api/v1/formats | Creates a format
|
|
57
|
+
*RootServerApi* | [**createMeeting**](docs/RootServerApi.md#createmeeting) | **POST** /api/v1/meetings | Creates a meeting
|
|
58
|
+
*RootServerApi* | [**createServiceBody**](docs/RootServerApi.md#createservicebody) | **POST** /api/v1/servicebodies | Creates a service body
|
|
59
|
+
*RootServerApi* | [**createUser**](docs/RootServerApi.md#createuser) | **POST** /api/v1/users | Creates a user
|
|
60
|
+
*RootServerApi* | [**deleteFormat**](docs/RootServerApi.md#deleteformat) | **DELETE** /api/v1/formats/{formatId} | Deletes a format
|
|
61
|
+
*RootServerApi* | [**deleteMeeting**](docs/RootServerApi.md#deletemeeting) | **DELETE** /api/v1/meetings/{meetingId} | Deletes a meeting
|
|
62
|
+
*RootServerApi* | [**deleteServiceBody**](docs/RootServerApi.md#deleteservicebody) | **DELETE** /api/v1/servicebodies/{serviceBodyId} | Deletes a service body
|
|
63
|
+
*RootServerApi* | [**deleteUser**](docs/RootServerApi.md#deleteuser) | **DELETE** /api/v1/users/{userId} | Deletes a user
|
|
64
|
+
*RootServerApi* | [**getFormat**](docs/RootServerApi.md#getformat) | **GET** /api/v1/formats/{formatId} | Retrieves a format
|
|
65
|
+
*RootServerApi* | [**getFormats**](docs/RootServerApi.md#getformats) | **GET** /api/v1/formats | Retrieves formats
|
|
66
|
+
*RootServerApi* | [**getLaravelLog**](docs/RootServerApi.md#getlaravellog) | **GET** /api/v1/logs/laravel | Retrieves laravel log
|
|
67
|
+
*RootServerApi* | [**getMeeting**](docs/RootServerApi.md#getmeeting) | **GET** /api/v1/meetings/{meetingId} | Retrieves a meeting
|
|
68
|
+
*RootServerApi* | [**getMeetingChanges**](docs/RootServerApi.md#getmeetingchanges) | **GET** /api/v1/meetings/{meetingId}/changes | Retrieve changes for a meeting
|
|
69
|
+
*RootServerApi* | [**getMeetings**](docs/RootServerApi.md#getmeetings) | **GET** /api/v1/meetings | Retrieves meetings
|
|
70
|
+
*RootServerApi* | [**getRootServer**](docs/RootServerApi.md#getrootserver) | **GET** /api/v1/rootservers/{rootServerId} | Retrieves a root server
|
|
71
|
+
*RootServerApi* | [**getRootServers**](docs/RootServerApi.md#getrootservers) | **GET** /api/v1/rootservers | Retrieves root servers
|
|
72
|
+
*RootServerApi* | [**getServiceBodies**](docs/RootServerApi.md#getservicebodies) | **GET** /api/v1/servicebodies | Retrieves service bodies
|
|
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
|
|
75
|
+
*RootServerApi* | [**getUser**](docs/RootServerApi.md#getuser) | **GET** /api/v1/users/{userId} | Retrieves a single user
|
|
76
|
+
*RootServerApi* | [**getUsers**](docs/RootServerApi.md#getusers) | **GET** /api/v1/users | Retrieves users
|
|
77
|
+
*RootServerApi* | [**partialUpdateUser**](docs/RootServerApi.md#partialupdateuser) | **PATCH** /api/v1/users/{userId} | Patches a user
|
|
78
|
+
*RootServerApi* | [**patchFormat**](docs/RootServerApi.md#patchformat) | **PATCH** /api/v1/formats/{formatId} | Patches a format
|
|
79
|
+
*RootServerApi* | [**patchMeeting**](docs/RootServerApi.md#patchmeeting) | **PATCH** /api/v1/meetings/{meetingId} | Patches a meeting
|
|
80
|
+
*RootServerApi* | [**patchServiceBody**](docs/RootServerApi.md#patchservicebody) | **PATCH** /api/v1/servicebodies/{serviceBodyId} | Patches a service body
|
|
81
|
+
*RootServerApi* | [**updateFormat**](docs/RootServerApi.md#updateformat) | **PUT** /api/v1/formats/{formatId} | Updates a format
|
|
82
|
+
*RootServerApi* | [**updateMeeting**](docs/RootServerApi.md#updatemeeting) | **PUT** /api/v1/meetings/{meetingId} | Updates a meeting
|
|
83
|
+
*RootServerApi* | [**updateServiceBody**](docs/RootServerApi.md#updateservicebody) | **PUT** /api/v1/servicebodies/{serviceBodyId} | Updates a Service Body
|
|
84
|
+
*RootServerApi* | [**updateSettings**](docs/RootServerApi.md#updatesettings) | **PATCH** /api/v1/settings | Update settings
|
|
85
|
+
*RootServerApi* | [**updateUser**](docs/RootServerApi.md#updateuser) | **PUT** /api/v1/users/{userId} | Update single user
|
|
37
86
|
|
|
38
|
-
```
|
|
39
|
-
npm install bmlt-server-client@latest --save
|
|
40
|
-
```
|
|
41
87
|
|
|
42
|
-
|
|
88
|
+
### Models
|
|
89
|
+
|
|
90
|
+
- [AuthenticationError](docs/AuthenticationError.md)
|
|
91
|
+
- [AuthorizationError](docs/AuthorizationError.md)
|
|
92
|
+
- [ConflictError](docs/ConflictError.md)
|
|
93
|
+
- [ErrorTest](docs/ErrorTest.md)
|
|
94
|
+
- [Format](docs/Format.md)
|
|
95
|
+
- [FormatBase](docs/FormatBase.md)
|
|
96
|
+
- [FormatCreate](docs/FormatCreate.md)
|
|
97
|
+
- [FormatPartialUpdate](docs/FormatPartialUpdate.md)
|
|
98
|
+
- [FormatTranslation](docs/FormatTranslation.md)
|
|
99
|
+
- [FormatUpdate](docs/FormatUpdate.md)
|
|
100
|
+
- [Meeting](docs/Meeting.md)
|
|
101
|
+
- [MeetingBase](docs/MeetingBase.md)
|
|
102
|
+
- [MeetingChangeResource](docs/MeetingChangeResource.md)
|
|
103
|
+
- [MeetingCreate](docs/MeetingCreate.md)
|
|
104
|
+
- [MeetingPartialUpdate](docs/MeetingPartialUpdate.md)
|
|
105
|
+
- [MeetingUpdate](docs/MeetingUpdate.md)
|
|
106
|
+
- [NotFoundError](docs/NotFoundError.md)
|
|
107
|
+
- [RootServer](docs/RootServer.md)
|
|
108
|
+
- [RootServerBase](docs/RootServerBase.md)
|
|
109
|
+
- [RootServerBaseStatistics](docs/RootServerBaseStatistics.md)
|
|
110
|
+
- [RootServerBaseStatisticsMeetings](docs/RootServerBaseStatisticsMeetings.md)
|
|
111
|
+
- [RootServerBaseStatisticsServiceBodies](docs/RootServerBaseStatisticsServiceBodies.md)
|
|
112
|
+
- [ServerError](docs/ServerError.md)
|
|
113
|
+
- [ServiceBody](docs/ServiceBody.md)
|
|
114
|
+
- [ServiceBodyBase](docs/ServiceBodyBase.md)
|
|
115
|
+
- [ServiceBodyCreate](docs/ServiceBodyCreate.md)
|
|
116
|
+
- [ServiceBodyPartialUpdate](docs/ServiceBodyPartialUpdate.md)
|
|
117
|
+
- [ServiceBodyUpdate](docs/ServiceBodyUpdate.md)
|
|
118
|
+
- [SettingsBase](docs/SettingsBase.md)
|
|
119
|
+
- [SettingsObject](docs/SettingsObject.md)
|
|
120
|
+
- [SettingsUpdate](docs/SettingsUpdate.md)
|
|
121
|
+
- [Token](docs/Token.md)
|
|
122
|
+
- [TokenCredentials](docs/TokenCredentials.md)
|
|
123
|
+
- [User](docs/User.md)
|
|
124
|
+
- [UserBase](docs/UserBase.md)
|
|
125
|
+
- [UserCreate](docs/UserCreate.md)
|
|
126
|
+
- [UserPartialUpdate](docs/UserPartialUpdate.md)
|
|
127
|
+
- [UserUpdate](docs/UserUpdate.md)
|
|
128
|
+
- [ValidationError](docs/ValidationError.md)
|
|
129
|
+
|
|
130
|
+
### Authorization
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
Authentication schemes defined for the API:
|
|
134
|
+
<a id="bmltToken-password"></a>
|
|
135
|
+
#### bmltToken password
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- **Type**: OAuth
|
|
139
|
+
- **Flow**: password
|
|
140
|
+
- **Authorization URL**:
|
|
141
|
+
- **Scopes**: N/A
|
|
142
|
+
|
|
143
|
+
## About
|
|
43
144
|
|
|
145
|
+
This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
|
|
146
|
+
and is automatically generated by the
|
|
147
|
+
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
148
|
+
|
|
149
|
+
- API version: `1.0.0`
|
|
150
|
+
- Package version: `1.4.0`
|
|
151
|
+
- Generator version: `7.19.0-SNAPSHOT`
|
|
152
|
+
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
153
|
+
|
|
154
|
+
The generated npm module supports the following:
|
|
155
|
+
|
|
156
|
+
- Environments
|
|
157
|
+
* Node.js
|
|
158
|
+
* Webpack
|
|
159
|
+
* Browserify
|
|
160
|
+
- Language levels
|
|
161
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
162
|
+
* ES6
|
|
163
|
+
- Module systems
|
|
164
|
+
* CommonJS
|
|
165
|
+
* ES6 module system
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## Development
|
|
169
|
+
|
|
170
|
+
### Building
|
|
171
|
+
|
|
172
|
+
To build the TypeScript source code, you need to have Node.js and npm installed.
|
|
173
|
+
After cloning the repository, navigate to the project directory and run:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
npm install
|
|
177
|
+
npm run build
|
|
44
178
|
```
|
|
45
|
-
|
|
179
|
+
|
|
180
|
+
### Publishing
|
|
181
|
+
|
|
182
|
+
Once you've built the package, you can publish it to npm:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
npm publish
|
|
46
186
|
```
|
|
187
|
+
|
|
188
|
+
## License
|
|
189
|
+
|
|
190
|
+
[MIT](https://github.com/bmlt-enabled/bmlt-root-server/blob/main/LICENSE)
|
|
@@ -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
|
}
|
|
@@ -76,6 +76,7 @@ export interface PatchFormatRequest {
|
|
|
76
76
|
export interface PatchMeetingRequest {
|
|
77
77
|
meetingId: number;
|
|
78
78
|
meetingPartialUpdate: MeetingPartialUpdate;
|
|
79
|
+
skipVenueTypeLocationValidation?: boolean;
|
|
79
80
|
}
|
|
80
81
|
export interface PatchServiceBodyRequest {
|
|
81
82
|
serviceBodyId: number;
|
|
@@ -93,6 +94,9 @@ export interface UpdateServiceBodyRequest {
|
|
|
93
94
|
serviceBodyId: number;
|
|
94
95
|
serviceBodyUpdate: ServiceBodyUpdate;
|
|
95
96
|
}
|
|
97
|
+
export interface UpdateSettingsRequest {
|
|
98
|
+
settingsUpdate: SettingsUpdate;
|
|
99
|
+
}
|
|
96
100
|
export interface UpdateUserRequest {
|
|
97
101
|
userId: number;
|
|
98
102
|
userUpdate: UserUpdate;
|
|
@@ -321,6 +325,16 @@ export declare class RootServerApi extends runtime.BaseAPI {
|
|
|
321
325
|
* Retrieves a service body
|
|
322
326
|
*/
|
|
323
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>;
|
|
324
338
|
/**
|
|
325
339
|
* Retrieve single user.
|
|
326
340
|
* Retrieves a single user
|
|
@@ -411,6 +425,16 @@ export declare class RootServerApi extends runtime.BaseAPI {
|
|
|
411
425
|
* Updates a Service Body
|
|
412
426
|
*/
|
|
413
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>;
|
|
414
438
|
/**
|
|
415
439
|
* Updates a user.
|
|
416
440
|
* Update single user
|