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
|
@@ -0,0 +1,334 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const BASE_PATH = "http://localhost:8000/main_server".replace(/\/+$/, "");
|
|
24
|
+
export class Configuration {
|
|
25
|
+
constructor(configuration = {}) {
|
|
26
|
+
this.configuration = configuration;
|
|
27
|
+
}
|
|
28
|
+
set config(configuration) {
|
|
29
|
+
this.configuration = configuration;
|
|
30
|
+
}
|
|
31
|
+
get basePath() {
|
|
32
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
33
|
+
}
|
|
34
|
+
get fetchApi() {
|
|
35
|
+
return this.configuration.fetchApi;
|
|
36
|
+
}
|
|
37
|
+
get middleware() {
|
|
38
|
+
return this.configuration.middleware || [];
|
|
39
|
+
}
|
|
40
|
+
get queryParamsStringify() {
|
|
41
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
42
|
+
}
|
|
43
|
+
get username() {
|
|
44
|
+
return this.configuration.username;
|
|
45
|
+
}
|
|
46
|
+
get password() {
|
|
47
|
+
return this.configuration.password;
|
|
48
|
+
}
|
|
49
|
+
get apiKey() {
|
|
50
|
+
const apiKey = this.configuration.apiKey;
|
|
51
|
+
if (apiKey) {
|
|
52
|
+
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
get accessToken() {
|
|
57
|
+
const accessToken = this.configuration.accessToken;
|
|
58
|
+
if (accessToken) {
|
|
59
|
+
return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
|
|
60
|
+
}
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
get headers() {
|
|
64
|
+
return this.configuration.headers;
|
|
65
|
+
}
|
|
66
|
+
get credentials() {
|
|
67
|
+
return this.configuration.credentials;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export const DefaultConfig = new Configuration();
|
|
71
|
+
/**
|
|
72
|
+
* This is the base class for all generated API classes.
|
|
73
|
+
*/
|
|
74
|
+
export class BaseAPI {
|
|
75
|
+
constructor(configuration = DefaultConfig) {
|
|
76
|
+
this.configuration = configuration;
|
|
77
|
+
this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
let fetchParams = { url, init };
|
|
79
|
+
for (const middleware of this.middleware) {
|
|
80
|
+
if (middleware.pre) {
|
|
81
|
+
fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
let response = undefined;
|
|
85
|
+
try {
|
|
86
|
+
response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
for (const middleware of this.middleware) {
|
|
90
|
+
if (middleware.onError) {
|
|
91
|
+
response = (yield middleware.onError({
|
|
92
|
+
fetch: this.fetchApi,
|
|
93
|
+
url: fetchParams.url,
|
|
94
|
+
init: fetchParams.init,
|
|
95
|
+
error: e,
|
|
96
|
+
response: response ? response.clone() : undefined,
|
|
97
|
+
})) || response;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (response === undefined) {
|
|
101
|
+
if (e instanceof Error) {
|
|
102
|
+
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
for (const middleware of this.middleware) {
|
|
110
|
+
if (middleware.post) {
|
|
111
|
+
response = (yield middleware.post({
|
|
112
|
+
fetch: this.fetchApi,
|
|
113
|
+
url: fetchParams.url,
|
|
114
|
+
init: fetchParams.init,
|
|
115
|
+
response: response.clone(),
|
|
116
|
+
})) || response;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return response;
|
|
120
|
+
});
|
|
121
|
+
this.middleware = configuration.middleware;
|
|
122
|
+
}
|
|
123
|
+
withMiddleware(...middlewares) {
|
|
124
|
+
const next = this.clone();
|
|
125
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
126
|
+
return next;
|
|
127
|
+
}
|
|
128
|
+
withPreMiddleware(...preMiddlewares) {
|
|
129
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
130
|
+
return this.withMiddleware(...middlewares);
|
|
131
|
+
}
|
|
132
|
+
withPostMiddleware(...postMiddlewares) {
|
|
133
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
134
|
+
return this.withMiddleware(...middlewares);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Check if the given MIME is a JSON MIME.
|
|
138
|
+
* JSON MIME examples:
|
|
139
|
+
* application/json
|
|
140
|
+
* application/json; charset=UTF8
|
|
141
|
+
* APPLICATION/JSON
|
|
142
|
+
* application/vnd.company+json
|
|
143
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
144
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
145
|
+
*/
|
|
146
|
+
isJsonMime(mime) {
|
|
147
|
+
if (!mime) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
151
|
+
}
|
|
152
|
+
request(context, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
155
|
+
const response = yield this.fetchApi(url, init);
|
|
156
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
157
|
+
return response;
|
|
158
|
+
}
|
|
159
|
+
throw new ResponseError(response, 'Response returned an error code');
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
createFetchParams(context, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
let url = this.configuration.basePath + context.path;
|
|
165
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
166
|
+
// only add the querystring to the URL if there are query parameters.
|
|
167
|
+
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
168
|
+
// do not handle correctly sometimes.
|
|
169
|
+
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
170
|
+
}
|
|
171
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
172
|
+
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
173
|
+
const initOverrideFn = typeof initOverrides === "function"
|
|
174
|
+
? initOverrides
|
|
175
|
+
: () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
|
|
176
|
+
const initParams = {
|
|
177
|
+
method: context.method,
|
|
178
|
+
headers,
|
|
179
|
+
body: context.body,
|
|
180
|
+
credentials: this.configuration.credentials,
|
|
181
|
+
};
|
|
182
|
+
const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
|
|
183
|
+
init: initParams,
|
|
184
|
+
context,
|
|
185
|
+
})));
|
|
186
|
+
let body;
|
|
187
|
+
if (isFormData(overriddenInit.body)
|
|
188
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
189
|
+
|| isBlob(overriddenInit.body)) {
|
|
190
|
+
body = overriddenInit.body;
|
|
191
|
+
}
|
|
192
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
193
|
+
body = JSON.stringify(overriddenInit.body);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
body = overriddenInit.body;
|
|
197
|
+
}
|
|
198
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
199
|
+
return { url, init };
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
204
|
+
* and then shallow cloning data members.
|
|
205
|
+
*/
|
|
206
|
+
clone() {
|
|
207
|
+
const constructor = this.constructor;
|
|
208
|
+
const next = new constructor(this.configuration);
|
|
209
|
+
next.middleware = this.middleware.slice();
|
|
210
|
+
return next;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
214
|
+
;
|
|
215
|
+
function isBlob(value) {
|
|
216
|
+
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
217
|
+
}
|
|
218
|
+
function isFormData(value) {
|
|
219
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
220
|
+
}
|
|
221
|
+
export class ResponseError extends Error {
|
|
222
|
+
constructor(response, msg) {
|
|
223
|
+
super(msg);
|
|
224
|
+
this.response = response;
|
|
225
|
+
this.name = "ResponseError";
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export class FetchError extends Error {
|
|
229
|
+
constructor(cause, msg) {
|
|
230
|
+
super(msg);
|
|
231
|
+
this.cause = cause;
|
|
232
|
+
this.name = "FetchError";
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export class RequiredError extends Error {
|
|
236
|
+
constructor(field, msg) {
|
|
237
|
+
super(msg);
|
|
238
|
+
this.field = field;
|
|
239
|
+
this.name = "RequiredError";
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
export const COLLECTION_FORMATS = {
|
|
243
|
+
csv: ",",
|
|
244
|
+
ssv: " ",
|
|
245
|
+
tsv: "\t",
|
|
246
|
+
pipes: "|",
|
|
247
|
+
};
|
|
248
|
+
export function querystring(params, prefix = '') {
|
|
249
|
+
return Object.keys(params)
|
|
250
|
+
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
251
|
+
.filter(part => part.length > 0)
|
|
252
|
+
.join('&');
|
|
253
|
+
}
|
|
254
|
+
function querystringSingleKey(key, value, keyPrefix = '') {
|
|
255
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
256
|
+
if (value instanceof Array) {
|
|
257
|
+
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
258
|
+
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
259
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
260
|
+
}
|
|
261
|
+
if (value instanceof Set) {
|
|
262
|
+
const valueAsArray = Array.from(value);
|
|
263
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
264
|
+
}
|
|
265
|
+
if (value instanceof Date) {
|
|
266
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
267
|
+
}
|
|
268
|
+
if (value instanceof Object) {
|
|
269
|
+
return querystring(value, fullKey);
|
|
270
|
+
}
|
|
271
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
272
|
+
}
|
|
273
|
+
export function exists(json, key) {
|
|
274
|
+
const value = json[key];
|
|
275
|
+
return value !== null && value !== undefined;
|
|
276
|
+
}
|
|
277
|
+
export function mapValues(data, fn) {
|
|
278
|
+
const result = {};
|
|
279
|
+
for (const key of Object.keys(data)) {
|
|
280
|
+
result[key] = fn(data[key]);
|
|
281
|
+
}
|
|
282
|
+
return result;
|
|
283
|
+
}
|
|
284
|
+
export function canConsumeForm(consumes) {
|
|
285
|
+
for (const consume of consumes) {
|
|
286
|
+
if ('multipart/form-data' === consume.contentType) {
|
|
287
|
+
return true;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
export class JSONApiResponse {
|
|
293
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
294
|
+
this.raw = raw;
|
|
295
|
+
this.transformer = transformer;
|
|
296
|
+
}
|
|
297
|
+
value() {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
return this.transformer(yield this.raw.json());
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
export class VoidApiResponse {
|
|
304
|
+
constructor(raw) {
|
|
305
|
+
this.raw = raw;
|
|
306
|
+
}
|
|
307
|
+
value() {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
return undefined;
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
export class BlobApiResponse {
|
|
314
|
+
constructor(raw) {
|
|
315
|
+
this.raw = raw;
|
|
316
|
+
}
|
|
317
|
+
value() {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
return yield this.raw.blob();
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
;
|
|
323
|
+
}
|
|
324
|
+
export class TextApiResponse {
|
|
325
|
+
constructor(raw) {
|
|
326
|
+
this.raw = raw;
|
|
327
|
+
}
|
|
328
|
+
value() {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
return yield this.raw.text();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
;
|
|
334
|
+
}
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.instanceOfAuthenticationError = instanceOfAuthenticationError;
|
|
17
|
+
exports.AuthenticationErrorFromJSON = AuthenticationErrorFromJSON;
|
|
18
|
+
exports.AuthenticationErrorFromJSONTyped = AuthenticationErrorFromJSONTyped;
|
|
19
|
+
exports.AuthenticationErrorToJSON = AuthenticationErrorToJSON;
|
|
20
|
+
exports.AuthenticationErrorToJSONTyped = AuthenticationErrorToJSONTyped;
|
|
17
21
|
/**
|
|
18
22
|
* Check if a given object implements the AuthenticationError interface.
|
|
19
23
|
*/
|
|
@@ -22,11 +26,9 @@ function instanceOfAuthenticationError(value) {
|
|
|
22
26
|
return false;
|
|
23
27
|
return true;
|
|
24
28
|
}
|
|
25
|
-
exports.instanceOfAuthenticationError = instanceOfAuthenticationError;
|
|
26
29
|
function AuthenticationErrorFromJSON(json) {
|
|
27
30
|
return AuthenticationErrorFromJSONTyped(json, false);
|
|
28
31
|
}
|
|
29
|
-
exports.AuthenticationErrorFromJSON = AuthenticationErrorFromJSON;
|
|
30
32
|
function AuthenticationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
33
|
if (json == null) {
|
|
32
34
|
return json;
|
|
@@ -35,13 +37,10 @@ function AuthenticationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'message': json['message'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
|
-
exports.AuthenticationErrorFromJSONTyped = AuthenticationErrorFromJSONTyped;
|
|
39
40
|
function AuthenticationErrorToJSON(json) {
|
|
40
41
|
return AuthenticationErrorToJSONTyped(json, false);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
function AuthenticationErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
function AuthenticationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
44
|
if (value == null) {
|
|
46
45
|
return value;
|
|
47
46
|
}
|
|
@@ -49,4 +48,3 @@ function AuthenticationErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
|
49
48
|
'message': value['message'],
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
|
-
exports.AuthenticationErrorToJSONTyped = AuthenticationErrorToJSONTyped;
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.instanceOfAuthorizationError = instanceOfAuthorizationError;
|
|
17
|
+
exports.AuthorizationErrorFromJSON = AuthorizationErrorFromJSON;
|
|
18
|
+
exports.AuthorizationErrorFromJSONTyped = AuthorizationErrorFromJSONTyped;
|
|
19
|
+
exports.AuthorizationErrorToJSON = AuthorizationErrorToJSON;
|
|
20
|
+
exports.AuthorizationErrorToJSONTyped = AuthorizationErrorToJSONTyped;
|
|
17
21
|
/**
|
|
18
22
|
* Check if a given object implements the AuthorizationError interface.
|
|
19
23
|
*/
|
|
@@ -22,11 +26,9 @@ function instanceOfAuthorizationError(value) {
|
|
|
22
26
|
return false;
|
|
23
27
|
return true;
|
|
24
28
|
}
|
|
25
|
-
exports.instanceOfAuthorizationError = instanceOfAuthorizationError;
|
|
26
29
|
function AuthorizationErrorFromJSON(json) {
|
|
27
30
|
return AuthorizationErrorFromJSONTyped(json, false);
|
|
28
31
|
}
|
|
29
|
-
exports.AuthorizationErrorFromJSON = AuthorizationErrorFromJSON;
|
|
30
32
|
function AuthorizationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
33
|
if (json == null) {
|
|
32
34
|
return json;
|
|
@@ -35,13 +37,10 @@ function AuthorizationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'message': json['message'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
|
-
exports.AuthorizationErrorFromJSONTyped = AuthorizationErrorFromJSONTyped;
|
|
39
40
|
function AuthorizationErrorToJSON(json) {
|
|
40
41
|
return AuthorizationErrorToJSONTyped(json, false);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
function AuthorizationErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
function AuthorizationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
44
|
if (value == null) {
|
|
46
45
|
return value;
|
|
47
46
|
}
|
|
@@ -49,4 +48,3 @@ function AuthorizationErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
|
49
48
|
'message': value['message'],
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
|
-
exports.AuthorizationErrorToJSONTyped = AuthorizationErrorToJSONTyped;
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.instanceOfConflictError = instanceOfConflictError;
|
|
17
|
+
exports.ConflictErrorFromJSON = ConflictErrorFromJSON;
|
|
18
|
+
exports.ConflictErrorFromJSONTyped = ConflictErrorFromJSONTyped;
|
|
19
|
+
exports.ConflictErrorToJSON = ConflictErrorToJSON;
|
|
20
|
+
exports.ConflictErrorToJSONTyped = ConflictErrorToJSONTyped;
|
|
17
21
|
/**
|
|
18
22
|
* Check if a given object implements the ConflictError interface.
|
|
19
23
|
*/
|
|
@@ -22,11 +26,9 @@ function instanceOfConflictError(value) {
|
|
|
22
26
|
return false;
|
|
23
27
|
return true;
|
|
24
28
|
}
|
|
25
|
-
exports.instanceOfConflictError = instanceOfConflictError;
|
|
26
29
|
function ConflictErrorFromJSON(json) {
|
|
27
30
|
return ConflictErrorFromJSONTyped(json, false);
|
|
28
31
|
}
|
|
29
|
-
exports.ConflictErrorFromJSON = ConflictErrorFromJSON;
|
|
30
32
|
function ConflictErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
33
|
if (json == null) {
|
|
32
34
|
return json;
|
|
@@ -35,13 +37,10 @@ function ConflictErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'message': json['message'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
|
-
exports.ConflictErrorFromJSONTyped = ConflictErrorFromJSONTyped;
|
|
39
40
|
function ConflictErrorToJSON(json) {
|
|
40
41
|
return ConflictErrorToJSONTyped(json, false);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
function ConflictErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
function ConflictErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
44
|
if (value == null) {
|
|
46
45
|
return value;
|
|
47
46
|
}
|
|
@@ -49,4 +48,3 @@ function ConflictErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
|
49
48
|
'message': value['message'],
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
|
-
exports.ConflictErrorToJSONTyped = ConflictErrorToJSONTyped;
|
package/dist/models/ErrorTest.js
CHANGED
|
@@ -13,18 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.instanceOfErrorTest = instanceOfErrorTest;
|
|
17
|
+
exports.ErrorTestFromJSON = ErrorTestFromJSON;
|
|
18
|
+
exports.ErrorTestFromJSONTyped = ErrorTestFromJSONTyped;
|
|
19
|
+
exports.ErrorTestToJSON = ErrorTestToJSON;
|
|
20
|
+
exports.ErrorTestToJSONTyped = ErrorTestToJSONTyped;
|
|
17
21
|
/**
|
|
18
22
|
* Check if a given object implements the ErrorTest interface.
|
|
19
23
|
*/
|
|
20
24
|
function instanceOfErrorTest(value) {
|
|
21
25
|
return true;
|
|
22
26
|
}
|
|
23
|
-
exports.instanceOfErrorTest = instanceOfErrorTest;
|
|
24
27
|
function ErrorTestFromJSON(json) {
|
|
25
28
|
return ErrorTestFromJSONTyped(json, false);
|
|
26
29
|
}
|
|
27
|
-
exports.ErrorTestFromJSON = ErrorTestFromJSON;
|
|
28
30
|
function ErrorTestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
31
|
if (json == null) {
|
|
30
32
|
return json;
|
|
@@ -35,13 +37,10 @@ function ErrorTestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'forceServerError': json['force_server_error'] == null ? undefined : json['force_server_error'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
|
-
exports.ErrorTestFromJSONTyped = ErrorTestFromJSONTyped;
|
|
39
40
|
function ErrorTestToJSON(json) {
|
|
40
41
|
return ErrorTestToJSONTyped(json, false);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
function ErrorTestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
function ErrorTestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
44
|
if (value == null) {
|
|
46
45
|
return value;
|
|
47
46
|
}
|
|
@@ -51,4 +50,3 @@ function ErrorTestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
50
|
'force_server_error': value['forceServerError'],
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
|
-
exports.ErrorTestToJSONTyped = ErrorTestToJSONTyped;
|
package/dist/models/Format.js
CHANGED
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
|
|
16
|
+
exports.instanceOfFormat = instanceOfFormat;
|
|
17
|
+
exports.FormatFromJSON = FormatFromJSON;
|
|
18
|
+
exports.FormatFromJSONTyped = FormatFromJSONTyped;
|
|
19
|
+
exports.FormatToJSON = FormatToJSON;
|
|
20
|
+
exports.FormatToJSONTyped = FormatToJSONTyped;
|
|
21
|
+
const FormatTranslation_1 = require("./FormatTranslation");
|
|
18
22
|
/**
|
|
19
23
|
* Check if a given object implements the Format interface.
|
|
20
24
|
*/
|
|
@@ -29,11 +33,9 @@ function instanceOfFormat(value) {
|
|
|
29
33
|
return false;
|
|
30
34
|
return true;
|
|
31
35
|
}
|
|
32
|
-
exports.instanceOfFormat = instanceOfFormat;
|
|
33
36
|
function FormatFromJSON(json) {
|
|
34
37
|
return FormatFromJSONTyped(json, false);
|
|
35
38
|
}
|
|
36
|
-
exports.FormatFromJSON = FormatFromJSON;
|
|
37
39
|
function FormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
40
|
if (json == null) {
|
|
39
41
|
return json;
|
|
@@ -45,13 +47,10 @@ function FormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'],
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
|
-
exports.FormatFromJSONTyped = FormatFromJSONTyped;
|
|
49
50
|
function FormatToJSON(json) {
|
|
50
51
|
return FormatToJSONTyped(json, false);
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
-
function FormatToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
function FormatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
54
|
if (value == null) {
|
|
56
55
|
return value;
|
|
57
56
|
}
|
|
@@ -62,4 +61,3 @@ function FormatToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
61
|
'id': value['id'],
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
|
-
exports.FormatToJSONTyped = FormatToJSONTyped;
|
|
@@ -13,19 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
|
|
16
|
+
exports.instanceOfFormatBase = instanceOfFormatBase;
|
|
17
|
+
exports.FormatBaseFromJSON = FormatBaseFromJSON;
|
|
18
|
+
exports.FormatBaseFromJSONTyped = FormatBaseFromJSONTyped;
|
|
19
|
+
exports.FormatBaseToJSON = FormatBaseToJSON;
|
|
20
|
+
exports.FormatBaseToJSONTyped = FormatBaseToJSONTyped;
|
|
21
|
+
const FormatTranslation_1 = require("./FormatTranslation");
|
|
18
22
|
/**
|
|
19
23
|
* Check if a given object implements the FormatBase interface.
|
|
20
24
|
*/
|
|
21
25
|
function instanceOfFormatBase(value) {
|
|
22
26
|
return true;
|
|
23
27
|
}
|
|
24
|
-
exports.instanceOfFormatBase = instanceOfFormatBase;
|
|
25
28
|
function FormatBaseFromJSON(json) {
|
|
26
29
|
return FormatBaseFromJSONTyped(json, false);
|
|
27
30
|
}
|
|
28
|
-
exports.FormatBaseFromJSON = FormatBaseFromJSON;
|
|
29
31
|
function FormatBaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
32
|
if (json == null) {
|
|
31
33
|
return json;
|
|
@@ -36,13 +38,10 @@ function FormatBaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
'translations': json['translations'] == null ? undefined : (json['translations'].map(FormatTranslation_1.FormatTranslationFromJSON)),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
|
-
exports.FormatBaseFromJSONTyped = FormatBaseFromJSONTyped;
|
|
40
41
|
function FormatBaseToJSON(json) {
|
|
41
42
|
return FormatBaseToJSONTyped(json, false);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
function FormatBaseToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
function FormatBaseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
45
|
if (value == null) {
|
|
47
46
|
return value;
|
|
48
47
|
}
|
|
@@ -52,4 +51,3 @@ function FormatBaseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
'translations': value['translations'] == null ? undefined : (value['translations'].map(FormatTranslation_1.FormatTranslationToJSON)),
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
|
-
exports.FormatBaseToJSONTyped = FormatBaseToJSONTyped;
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
|
|
16
|
+
exports.instanceOfFormatCreate = instanceOfFormatCreate;
|
|
17
|
+
exports.FormatCreateFromJSON = FormatCreateFromJSON;
|
|
18
|
+
exports.FormatCreateFromJSONTyped = FormatCreateFromJSONTyped;
|
|
19
|
+
exports.FormatCreateToJSON = FormatCreateToJSON;
|
|
20
|
+
exports.FormatCreateToJSONTyped = FormatCreateToJSONTyped;
|
|
21
|
+
const FormatTranslation_1 = require("./FormatTranslation");
|
|
18
22
|
/**
|
|
19
23
|
* Check if a given object implements the FormatCreate interface.
|
|
20
24
|
*/
|
|
@@ -23,11 +27,9 @@ function instanceOfFormatCreate(value) {
|
|
|
23
27
|
return false;
|
|
24
28
|
return true;
|
|
25
29
|
}
|
|
26
|
-
exports.instanceOfFormatCreate = instanceOfFormatCreate;
|
|
27
30
|
function FormatCreateFromJSON(json) {
|
|
28
31
|
return FormatCreateFromJSONTyped(json, false);
|
|
29
32
|
}
|
|
30
|
-
exports.FormatCreateFromJSON = FormatCreateFromJSON;
|
|
31
33
|
function FormatCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
34
|
if (json == null) {
|
|
33
35
|
return json;
|
|
@@ -38,13 +40,10 @@ function FormatCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
'translations': (json['translations'].map(FormatTranslation_1.FormatTranslationFromJSON)),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
|
-
exports.FormatCreateFromJSONTyped = FormatCreateFromJSONTyped;
|
|
42
43
|
function FormatCreateToJSON(json) {
|
|
43
44
|
return FormatCreateToJSONTyped(json, false);
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
function FormatCreateToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
function FormatCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
47
|
if (value == null) {
|
|
49
48
|
return value;
|
|
50
49
|
}
|
|
@@ -54,4 +53,3 @@ function FormatCreateToJSONTyped(value, ignoreDiscriminator) {
|
|
|
54
53
|
'translations': (value['translations'].map(FormatTranslation_1.FormatTranslationToJSON)),
|
|
55
54
|
};
|
|
56
55
|
}
|
|
57
|
-
exports.FormatCreateToJSONTyped = FormatCreateToJSONTyped;
|