bmlt-server-client 2.0.4 → 2.0.5
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/.openapi-generator/FILES +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -1
- package/dist/apis/RootServerApi.d.ts +177 -1
- package/dist/apis/RootServerApi.js +597 -223
- package/dist/esm/apis/RootServerApi.d.ts +177 -1
- package/dist/esm/apis/RootServerApi.js +563 -189
- package/dist/esm/models/ServiceBodyEditor.d.ts +44 -0
- package/dist/esm/models/ServiceBodyEditor.js +51 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.js +16 -1
- package/dist/models/ServiceBodyEditor.d.ts +44 -0
- package/dist/models/ServiceBodyEditor.js +58 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.js +16 -1
- package/docs/RootServerApi.md +75 -0
- package/docs/ServiceBodyEditor.md +38 -0
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/apis/RootServerApi.ts +607 -221
- package/src/models/ServiceBodyEditor.ts +84 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +19 -2
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* BMLT
|
|
5
|
+
* BMLT Admin API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ServiceBodyEditor
|
|
20
|
+
*/
|
|
21
|
+
export interface ServiceBodyEditor {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ServiceBodyEditor
|
|
26
|
+
*/
|
|
27
|
+
userId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ServiceBodyEditor
|
|
32
|
+
*/
|
|
33
|
+
displayName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ServiceBodyEditor
|
|
38
|
+
*/
|
|
39
|
+
readOnly: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ServiceBodyEditor interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfServiceBodyEditor(value: object): value is ServiceBodyEditor {
|
|
46
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
47
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
48
|
+
if (!('readOnly' in value) || value['readOnly'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ServiceBodyEditorFromJSON(json: any): ServiceBodyEditor {
|
|
53
|
+
return ServiceBodyEditorFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ServiceBodyEditorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceBodyEditor {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'userId': json['userId'],
|
|
63
|
+
'displayName': json['displayName'],
|
|
64
|
+
'readOnly': json['readOnly'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ServiceBodyEditorToJSON(json: any): ServiceBodyEditor {
|
|
69
|
+
return ServiceBodyEditorToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ServiceBodyEditorToJSONTyped(value?: ServiceBodyEditor | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'userId': value['userId'],
|
|
80
|
+
'displayName': value['displayName'],
|
|
81
|
+
'readOnly': value['readOnly'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './ServerError';
|
|
|
26
26
|
export * from './ServiceBody';
|
|
27
27
|
export * from './ServiceBodyBase';
|
|
28
28
|
export * from './ServiceBodyCreate';
|
|
29
|
+
export * from './ServiceBodyEditor';
|
|
29
30
|
export * from './ServiceBodyPartialUpdate';
|
|
30
31
|
export * from './ServiceBodyUpdate';
|
|
31
32
|
export * from './SettingsBase';
|
package/src/runtime.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
export const BASE_PATH = "http://localhost:8000/main_server".replace(/\/+$/, "");
|
|
17
16
|
|
|
18
17
|
export interface ConfigurationParameters {
|
|
@@ -91,7 +90,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
90
|
*/
|
|
92
91
|
export class BaseAPI {
|
|
93
92
|
|
|
94
|
-
private static readonly jsonRegex =
|
|
93
|
+
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
95
94
|
private middleware: Middleware[];
|
|
96
95
|
|
|
97
96
|
constructor(protected configuration = DefaultConfig) {
|
|
@@ -261,6 +260,12 @@ export class ResponseError extends Error {
|
|
|
261
260
|
override name: "ResponseError" = "ResponseError";
|
|
262
261
|
constructor(public response: Response, msg?: string) {
|
|
263
262
|
super(msg);
|
|
263
|
+
|
|
264
|
+
// restore prototype chain
|
|
265
|
+
const actualProto = new.target.prototype;
|
|
266
|
+
if (Object.setPrototypeOf) {
|
|
267
|
+
Object.setPrototypeOf(this, actualProto);
|
|
268
|
+
}
|
|
264
269
|
}
|
|
265
270
|
}
|
|
266
271
|
|
|
@@ -268,6 +273,12 @@ export class FetchError extends Error {
|
|
|
268
273
|
override name: "FetchError" = "FetchError";
|
|
269
274
|
constructor(public cause: Error, msg?: string) {
|
|
270
275
|
super(msg);
|
|
276
|
+
|
|
277
|
+
// restore prototype chain
|
|
278
|
+
const actualProto = new.target.prototype;
|
|
279
|
+
if (Object.setPrototypeOf) {
|
|
280
|
+
Object.setPrototypeOf(this, actualProto);
|
|
281
|
+
}
|
|
271
282
|
}
|
|
272
283
|
}
|
|
273
284
|
|
|
@@ -275,6 +286,12 @@ export class RequiredError extends Error {
|
|
|
275
286
|
override name: "RequiredError" = "RequiredError";
|
|
276
287
|
constructor(public field: string, msg?: string) {
|
|
277
288
|
super(msg);
|
|
289
|
+
|
|
290
|
+
// restore prototype chain
|
|
291
|
+
const actualProto = new.target.prototype;
|
|
292
|
+
if (Object.setPrototypeOf) {
|
|
293
|
+
Object.setPrototypeOf(this, actualProto);
|
|
294
|
+
}
|
|
278
295
|
}
|
|
279
296
|
}
|
|
280
297
|
|