bmlt-server-semantic-client 1.0.0

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.
Files changed (174) hide show
  1. package/.github/workflows/release.yml +25 -0
  2. package/.openapi-generator/FILES +44 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/Makefile +31 -0
  6. package/README.md +125 -0
  7. package/dist/apis/FieldsApi.d.ts +56 -0
  8. package/dist/apis/FieldsApi.js +123 -0
  9. package/dist/apis/FormatsApi.d.ts +44 -0
  10. package/dist/apis/FormatsApi.js +87 -0
  11. package/dist/apis/MeetingsApi.d.ts +157 -0
  12. package/dist/apis/MeetingsApi.js +288 -0
  13. package/dist/apis/ServerApi.d.ts +43 -0
  14. package/dist/apis/ServerApi.js +104 -0
  15. package/dist/apis/ServiceBodiesApi.d.ts +51 -0
  16. package/dist/apis/ServiceBodiesApi.js +91 -0
  17. package/dist/apis/index.d.ts +5 -0
  18. package/dist/apis/index.js +23 -0
  19. package/dist/esm/apis/FieldsApi.d.ts +56 -0
  20. package/dist/esm/apis/FieldsApi.js +119 -0
  21. package/dist/esm/apis/FormatsApi.d.ts +44 -0
  22. package/dist/esm/apis/FormatsApi.js +83 -0
  23. package/dist/esm/apis/MeetingsApi.d.ts +157 -0
  24. package/dist/esm/apis/MeetingsApi.js +284 -0
  25. package/dist/esm/apis/ServerApi.d.ts +43 -0
  26. package/dist/esm/apis/ServerApi.js +100 -0
  27. package/dist/esm/apis/ServiceBodiesApi.d.ts +51 -0
  28. package/dist/esm/apis/ServiceBodiesApi.js +87 -0
  29. package/dist/esm/apis/index.d.ts +5 -0
  30. package/dist/esm/apis/index.js +7 -0
  31. package/dist/esm/index.d.ts +3 -0
  32. package/dist/esm/index.js +5 -0
  33. package/dist/esm/models/Format.d.ts +81 -0
  34. package/dist/esm/models/Format.js +37 -0
  35. package/dist/esm/models/GetCoverageArea200Response.d.ts +50 -0
  36. package/dist/esm/models/GetCoverageArea200Response.js +47 -0
  37. package/dist/esm/models/GetFieldKeys200ResponseInner.d.ts +38 -0
  38. package/dist/esm/models/GetFieldKeys200ResponseInner.js +43 -0
  39. package/dist/esm/models/GetFieldValues200ResponseInner.d.ts +38 -0
  40. package/dist/esm/models/GetFieldValues200ResponseInner.js +43 -0
  41. package/dist/esm/models/GetSearchResults200Response.d.ts +24 -0
  42. package/dist/esm/models/GetSearchResults200Response.js +68 -0
  43. package/dist/esm/models/GetSearchResults200ResponseOneOf.d.ts +40 -0
  44. package/dist/esm/models/GetSearchResults200ResponseOneOf.js +45 -0
  45. package/dist/esm/models/Meeting.d.ts +255 -0
  46. package/dist/esm/models/Meeting.js +37 -0
  47. package/dist/esm/models/MeetingChange.d.ts +89 -0
  48. package/dist/esm/models/MeetingChange.js +37 -0
  49. package/dist/esm/models/ModelError.d.ts +33 -0
  50. package/dist/esm/models/ModelError.js +37 -0
  51. package/dist/esm/models/SemanticError.d.ts +33 -0
  52. package/dist/esm/models/SemanticError.js +37 -0
  53. package/dist/esm/models/SemanticFormat.d.ts +81 -0
  54. package/dist/esm/models/SemanticFormat.js +37 -0
  55. package/dist/esm/models/SemanticMeeting.d.ts +255 -0
  56. package/dist/esm/models/SemanticMeeting.js +37 -0
  57. package/dist/esm/models/SemanticMeetingChange.d.ts +89 -0
  58. package/dist/esm/models/SemanticMeetingChange.js +37 -0
  59. package/dist/esm/models/SemanticServerInfo.d.ts +156 -0
  60. package/dist/esm/models/SemanticServerInfo.js +45 -0
  61. package/dist/esm/models/SemanticServerInfoAggregatorModeEnabled.d.ts +21 -0
  62. package/dist/esm/models/SemanticServerInfoAggregatorModeEnabled.js +43 -0
  63. package/dist/esm/models/SemanticServiceBody.d.ts +87 -0
  64. package/dist/esm/models/SemanticServiceBody.js +37 -0
  65. package/dist/esm/models/ServerInfo.d.ts +156 -0
  66. package/dist/esm/models/ServerInfo.js +45 -0
  67. package/dist/esm/models/ServerInfoAggregatorModeEnabled.d.ts +21 -0
  68. package/dist/esm/models/ServerInfoAggregatorModeEnabled.js +43 -0
  69. package/dist/esm/models/ServiceBody.d.ts +87 -0
  70. package/dist/esm/models/ServiceBody.js +37 -0
  71. package/dist/esm/models/index.d.ts +12 -0
  72. package/dist/esm/models/index.js +14 -0
  73. package/dist/esm/runtime.d.ts +184 -0
  74. package/dist/esm/runtime.js +349 -0
  75. package/dist/index.d.ts +3 -0
  76. package/dist/index.js +21 -0
  77. package/dist/models/Format.d.ts +81 -0
  78. package/dist/models/Format.js +44 -0
  79. package/dist/models/GetCoverageArea200Response.d.ts +50 -0
  80. package/dist/models/GetCoverageArea200Response.js +54 -0
  81. package/dist/models/GetFieldKeys200ResponseInner.d.ts +38 -0
  82. package/dist/models/GetFieldKeys200ResponseInner.js +50 -0
  83. package/dist/models/GetFieldValues200ResponseInner.d.ts +38 -0
  84. package/dist/models/GetFieldValues200ResponseInner.js +50 -0
  85. package/dist/models/GetSearchResults200Response.d.ts +24 -0
  86. package/dist/models/GetSearchResults200Response.js +74 -0
  87. package/dist/models/GetSearchResults200ResponseOneOf.d.ts +40 -0
  88. package/dist/models/GetSearchResults200ResponseOneOf.js +52 -0
  89. package/dist/models/Meeting.d.ts +255 -0
  90. package/dist/models/Meeting.js +44 -0
  91. package/dist/models/MeetingChange.d.ts +89 -0
  92. package/dist/models/MeetingChange.js +44 -0
  93. package/dist/models/ModelError.d.ts +33 -0
  94. package/dist/models/ModelError.js +44 -0
  95. package/dist/models/SemanticError.d.ts +33 -0
  96. package/dist/models/SemanticError.js +44 -0
  97. package/dist/models/SemanticFormat.d.ts +81 -0
  98. package/dist/models/SemanticFormat.js +44 -0
  99. package/dist/models/SemanticMeeting.d.ts +255 -0
  100. package/dist/models/SemanticMeeting.js +44 -0
  101. package/dist/models/SemanticMeetingChange.d.ts +89 -0
  102. package/dist/models/SemanticMeetingChange.js +44 -0
  103. package/dist/models/SemanticServerInfo.d.ts +156 -0
  104. package/dist/models/SemanticServerInfo.js +53 -0
  105. package/dist/models/SemanticServerInfoAggregatorModeEnabled.d.ts +21 -0
  106. package/dist/models/SemanticServerInfoAggregatorModeEnabled.js +49 -0
  107. package/dist/models/SemanticServiceBody.d.ts +87 -0
  108. package/dist/models/SemanticServiceBody.js +44 -0
  109. package/dist/models/ServerInfo.d.ts +156 -0
  110. package/dist/models/ServerInfo.js +53 -0
  111. package/dist/models/ServerInfoAggregatorModeEnabled.d.ts +21 -0
  112. package/dist/models/ServerInfoAggregatorModeEnabled.js +49 -0
  113. package/dist/models/ServiceBody.d.ts +87 -0
  114. package/dist/models/ServiceBody.js +44 -0
  115. package/dist/models/index.d.ts +12 -0
  116. package/dist/models/index.js +30 -0
  117. package/dist/runtime.d.ts +184 -0
  118. package/dist/runtime.js +365 -0
  119. package/docs/FieldsApi.md +139 -0
  120. package/docs/Format.md +50 -0
  121. package/docs/FormatsApi.md +83 -0
  122. package/docs/GetCoverageArea200Response.md +40 -0
  123. package/docs/GetFieldKeys200ResponseInner.md +36 -0
  124. package/docs/GetFieldValues200ResponseInner.md +36 -0
  125. package/docs/GetSearchResults200Response.md +36 -0
  126. package/docs/GetSearchResults200ResponseOneOf.md +36 -0
  127. package/docs/Meeting.md +109 -0
  128. package/docs/MeetingChange.md +52 -0
  129. package/docs/MeetingsApi.md +261 -0
  130. package/docs/ModelError.md +34 -0
  131. package/docs/SemanticError.md +34 -0
  132. package/docs/SemanticFormat.md +50 -0
  133. package/docs/SemanticMeeting.md +109 -0
  134. package/docs/SemanticMeetingChange.md +52 -0
  135. package/docs/SemanticServerInfo.md +72 -0
  136. package/docs/SemanticServerInfoAggregatorModeEnabled.md +33 -0
  137. package/docs/SemanticServiceBody.md +52 -0
  138. package/docs/ServerApi.md +124 -0
  139. package/docs/ServerInfo.md +72 -0
  140. package/docs/ServerInfoAggregatorModeEnabled.md +33 -0
  141. package/docs/ServiceBodiesApi.md +80 -0
  142. package/docs/ServiceBody.md +52 -0
  143. package/openapi.json +1 -0
  144. package/package.json +21 -0
  145. package/src/apis/FieldsApi.ts +145 -0
  146. package/src/apis/FormatsApi.ts +96 -0
  147. package/src/apis/MeetingsApi.ts +392 -0
  148. package/src/apis/ServerApi.ts +106 -0
  149. package/src/apis/ServiceBodiesApi.ts +99 -0
  150. package/src/apis/index.ts +7 -0
  151. package/src/index.ts +5 -0
  152. package/src/models/Format.ts +132 -0
  153. package/src/models/GetCoverageArea200Response.ts +89 -0
  154. package/src/models/GetFieldKeys200ResponseInner.ts +73 -0
  155. package/src/models/GetFieldValues200ResponseInner.ts +73 -0
  156. package/src/models/GetSearchResults200Response.ts +99 -0
  157. package/src/models/GetSearchResults200ResponseOneOf.ts +88 -0
  158. package/src/models/Meeting.ts +364 -0
  159. package/src/models/MeetingChange.ts +140 -0
  160. package/src/models/ModelError.ts +68 -0
  161. package/src/models/SemanticError.ts +68 -0
  162. package/src/models/SemanticFormat.ts +132 -0
  163. package/src/models/SemanticMeeting.ts +364 -0
  164. package/src/models/SemanticMeetingChange.ts +140 -0
  165. package/src/models/SemanticServerInfo.ts +239 -0
  166. package/src/models/SemanticServerInfoAggregatorModeEnabled.ts +55 -0
  167. package/src/models/SemanticServiceBody.ts +140 -0
  168. package/src/models/ServerInfo.ts +239 -0
  169. package/src/models/ServerInfoAggregatorModeEnabled.ts +55 -0
  170. package/src/models/ServiceBody.ts +140 -0
  171. package/src/models/index.ts +14 -0
  172. package/src/runtime.ts +449 -0
  173. package/tsconfig.esm.json +7 -0
  174. package/tsconfig.json +16 -0
@@ -0,0 +1,365 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * BMLT Semantic API
6
+ * OpenAPI description of the BMLT Semantic Interface (the read-only meeting-query API) for the JSON data format. The semantic interface dispatches all operations from a single endpoint (`/client_interface/json/`) using a `switcher` query parameter. To keep each operation discoverable, this spec models each `switcher` value as a distinct path key with the query string baked in. Tools such as Swagger UI, Redoc, and openapi-generator handle these path keys correctly even though the OpenAPI spec technically expects unique URL paths. ### Things that do not map cleanly onto OpenAPI - **Sign-as-operator** — many filters (`formats`, `services`, `weekdays`, `venue_types`, `meeting_ids`, `root_server_ids`, `format_ids`) use *positive* values to include and *negative* values to exclude. JSON Schema cannot enforce that semantics; it is documented per parameter. - **Cross-parameter constraints** — in aggregator mode `GetSearchResults` requires at least one filter parameter. Invalid combinations typically return an empty array `[]` instead of an HTTP error. - **Empty-array errors** — many endpoints return `[]` for invalid input rather than a 4xx response body.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
+ exports.querystring = querystring;
27
+ exports.exists = exists;
28
+ exports.mapValues = mapValues;
29
+ exports.canConsumeForm = canConsumeForm;
30
+ exports.BASE_PATH = "http://localhost:8000/main_server".replace(/\/+$/, "");
31
+ class Configuration {
32
+ constructor(configuration = {}) {
33
+ this.configuration = configuration;
34
+ }
35
+ set config(configuration) {
36
+ this.configuration = configuration;
37
+ }
38
+ get basePath() {
39
+ return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
40
+ }
41
+ get fetchApi() {
42
+ return this.configuration.fetchApi;
43
+ }
44
+ get middleware() {
45
+ return this.configuration.middleware || [];
46
+ }
47
+ get queryParamsStringify() {
48
+ return this.configuration.queryParamsStringify || querystring;
49
+ }
50
+ get username() {
51
+ return this.configuration.username;
52
+ }
53
+ get password() {
54
+ return this.configuration.password;
55
+ }
56
+ get apiKey() {
57
+ const apiKey = this.configuration.apiKey;
58
+ if (apiKey) {
59
+ return typeof apiKey === 'function' ? apiKey : () => apiKey;
60
+ }
61
+ return undefined;
62
+ }
63
+ get accessToken() {
64
+ const accessToken = this.configuration.accessToken;
65
+ if (accessToken) {
66
+ return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
67
+ }
68
+ return undefined;
69
+ }
70
+ get headers() {
71
+ return this.configuration.headers;
72
+ }
73
+ get credentials() {
74
+ return this.configuration.credentials;
75
+ }
76
+ }
77
+ exports.Configuration = Configuration;
78
+ exports.DefaultConfig = new Configuration();
79
+ /**
80
+ * This is the base class for all generated API classes.
81
+ */
82
+ class BaseAPI {
83
+ constructor(configuration = exports.DefaultConfig) {
84
+ this.configuration = configuration;
85
+ this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
86
+ let fetchParams = { url, init };
87
+ for (const middleware of this.middleware) {
88
+ if (middleware.pre) {
89
+ fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
90
+ }
91
+ }
92
+ let response = undefined;
93
+ try {
94
+ response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
95
+ }
96
+ catch (e) {
97
+ for (const middleware of this.middleware) {
98
+ if (middleware.onError) {
99
+ response = (yield middleware.onError({
100
+ fetch: this.fetchApi,
101
+ url: fetchParams.url,
102
+ init: fetchParams.init,
103
+ error: e,
104
+ response: response ? response.clone() : undefined,
105
+ })) || response;
106
+ }
107
+ }
108
+ if (response === undefined) {
109
+ if (e instanceof Error) {
110
+ throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
111
+ }
112
+ else {
113
+ throw e;
114
+ }
115
+ }
116
+ }
117
+ for (const middleware of this.middleware) {
118
+ if (middleware.post) {
119
+ response = (yield middleware.post({
120
+ fetch: this.fetchApi,
121
+ url: fetchParams.url,
122
+ init: fetchParams.init,
123
+ response: response.clone(),
124
+ })) || response;
125
+ }
126
+ }
127
+ return response;
128
+ });
129
+ this.middleware = configuration.middleware;
130
+ }
131
+ withMiddleware(...middlewares) {
132
+ const next = this.clone();
133
+ next.middleware = next.middleware.concat(...middlewares);
134
+ return next;
135
+ }
136
+ withPreMiddleware(...preMiddlewares) {
137
+ const middlewares = preMiddlewares.map((pre) => ({ pre }));
138
+ return this.withMiddleware(...middlewares);
139
+ }
140
+ withPostMiddleware(...postMiddlewares) {
141
+ const middlewares = postMiddlewares.map((post) => ({ post }));
142
+ return this.withMiddleware(...middlewares);
143
+ }
144
+ /**
145
+ * Check if the given MIME is a JSON MIME.
146
+ * JSON MIME examples:
147
+ * application/json
148
+ * application/json; charset=UTF8
149
+ * APPLICATION/JSON
150
+ * application/vnd.company+json
151
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
152
+ * @return True if the given MIME is JSON, false otherwise.
153
+ */
154
+ isJsonMime(mime) {
155
+ if (!mime) {
156
+ return false;
157
+ }
158
+ return BaseAPI.jsonRegex.test(mime);
159
+ }
160
+ request(context, initOverrides) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ const { url, init } = yield this.createFetchParams(context, initOverrides);
163
+ const response = yield this.fetchApi(url, init);
164
+ if (response && (response.status >= 200 && response.status < 300)) {
165
+ return response;
166
+ }
167
+ throw new ResponseError(response, 'Response returned an error code');
168
+ });
169
+ }
170
+ createFetchParams(context, initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ let url = this.configuration.basePath + context.path;
173
+ if (context.query !== undefined && Object.keys(context.query).length !== 0) {
174
+ // only add the querystring to the URL if there are query parameters.
175
+ // this is done to avoid urls ending with a "?" character which buggy webservers
176
+ // do not handle correctly sometimes.
177
+ url += (context.path.indexOf('?') >= 0 ? '&' : '?') + this.configuration.queryParamsStringify(context.query);
178
+ }
179
+ const headers = Object.assign({}, this.configuration.headers, context.headers);
180
+ Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
181
+ const initOverrideFn = typeof initOverrides === "function"
182
+ ? initOverrides
183
+ : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
184
+ const initParams = {
185
+ method: context.method,
186
+ headers,
187
+ body: context.body,
188
+ credentials: this.configuration.credentials,
189
+ };
190
+ const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
191
+ init: initParams,
192
+ context,
193
+ })));
194
+ let body;
195
+ if (isFormData(overriddenInit.body)
196
+ || (overriddenInit.body instanceof URLSearchParams)
197
+ || isBlob(overriddenInit.body)) {
198
+ body = overriddenInit.body;
199
+ }
200
+ else if (this.isJsonMime(headers['Content-Type'])) {
201
+ body = JSON.stringify(overriddenInit.body);
202
+ }
203
+ else {
204
+ body = overriddenInit.body;
205
+ }
206
+ const init = Object.assign(Object.assign({}, overriddenInit), { body });
207
+ return { url, init };
208
+ });
209
+ }
210
+ /**
211
+ * Create a shallow clone of `this` by constructing a new instance
212
+ * and then shallow cloning data members.
213
+ */
214
+ clone() {
215
+ const constructor = this.constructor;
216
+ const next = new constructor(this.configuration);
217
+ next.middleware = this.middleware.slice();
218
+ return next;
219
+ }
220
+ }
221
+ exports.BaseAPI = BaseAPI;
222
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
223
+ ;
224
+ function isBlob(value) {
225
+ return typeof Blob !== 'undefined' && value instanceof Blob;
226
+ }
227
+ function isFormData(value) {
228
+ return typeof FormData !== "undefined" && value instanceof FormData;
229
+ }
230
+ class ResponseError extends Error {
231
+ constructor(response, msg) {
232
+ super(msg);
233
+ this.response = response;
234
+ this.name = "ResponseError";
235
+ // restore prototype chain
236
+ const actualProto = new.target.prototype;
237
+ if (Object.setPrototypeOf) {
238
+ Object.setPrototypeOf(this, actualProto);
239
+ }
240
+ }
241
+ }
242
+ exports.ResponseError = ResponseError;
243
+ class FetchError extends Error {
244
+ constructor(cause, msg) {
245
+ super(msg);
246
+ this.cause = cause;
247
+ this.name = "FetchError";
248
+ // restore prototype chain
249
+ const actualProto = new.target.prototype;
250
+ if (Object.setPrototypeOf) {
251
+ Object.setPrototypeOf(this, actualProto);
252
+ }
253
+ }
254
+ }
255
+ exports.FetchError = FetchError;
256
+ class RequiredError extends Error {
257
+ constructor(field, msg) {
258
+ super(msg);
259
+ this.field = field;
260
+ this.name = "RequiredError";
261
+ // restore prototype chain
262
+ const actualProto = new.target.prototype;
263
+ if (Object.setPrototypeOf) {
264
+ Object.setPrototypeOf(this, actualProto);
265
+ }
266
+ }
267
+ }
268
+ exports.RequiredError = RequiredError;
269
+ exports.COLLECTION_FORMATS = {
270
+ csv: ",",
271
+ ssv: " ",
272
+ tsv: "\t",
273
+ pipes: "|",
274
+ };
275
+ function querystring(params, prefix = '') {
276
+ return Object.keys(params)
277
+ .map(key => querystringSingleKey(key, params[key], prefix))
278
+ .filter(part => part.length > 0)
279
+ .join('&');
280
+ }
281
+ function querystringSingleKey(key, value, keyPrefix = '') {
282
+ const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
283
+ if (value instanceof Array) {
284
+ const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
285
+ .join(`&${encodeURIComponent(fullKey)}=`);
286
+ return `${encodeURIComponent(fullKey)}=${multiValue}`;
287
+ }
288
+ if (value instanceof Set) {
289
+ const valueAsArray = Array.from(value);
290
+ return querystringSingleKey(key, valueAsArray, keyPrefix);
291
+ }
292
+ if (value instanceof Date) {
293
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
294
+ }
295
+ if (value instanceof Object) {
296
+ return querystring(value, fullKey);
297
+ }
298
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
299
+ }
300
+ function exists(json, key) {
301
+ const value = json[key];
302
+ return value !== null && value !== undefined;
303
+ }
304
+ function mapValues(data, fn) {
305
+ const result = {};
306
+ for (const key of Object.keys(data)) {
307
+ result[key] = fn(data[key]);
308
+ }
309
+ return result;
310
+ }
311
+ function canConsumeForm(consumes) {
312
+ for (const consume of consumes) {
313
+ if ('multipart/form-data' === consume.contentType) {
314
+ return true;
315
+ }
316
+ }
317
+ return false;
318
+ }
319
+ class JSONApiResponse {
320
+ constructor(raw, transformer = (jsonValue) => jsonValue) {
321
+ this.raw = raw;
322
+ this.transformer = transformer;
323
+ }
324
+ value() {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ return this.transformer(yield this.raw.json());
327
+ });
328
+ }
329
+ }
330
+ exports.JSONApiResponse = JSONApiResponse;
331
+ class VoidApiResponse {
332
+ constructor(raw) {
333
+ this.raw = raw;
334
+ }
335
+ value() {
336
+ return __awaiter(this, void 0, void 0, function* () {
337
+ return undefined;
338
+ });
339
+ }
340
+ }
341
+ exports.VoidApiResponse = VoidApiResponse;
342
+ class BlobApiResponse {
343
+ constructor(raw) {
344
+ this.raw = raw;
345
+ }
346
+ value() {
347
+ return __awaiter(this, void 0, void 0, function* () {
348
+ return yield this.raw.blob();
349
+ });
350
+ }
351
+ ;
352
+ }
353
+ exports.BlobApiResponse = BlobApiResponse;
354
+ class TextApiResponse {
355
+ constructor(raw) {
356
+ this.raw = raw;
357
+ }
358
+ value() {
359
+ return __awaiter(this, void 0, void 0, function* () {
360
+ return yield this.raw.text();
361
+ });
362
+ }
363
+ ;
364
+ }
365
+ exports.TextApiResponse = TextApiResponse;
@@ -0,0 +1,139 @@
1
+ # FieldsApi
2
+
3
+ All URIs are relative to *http://localhost:8000/main_server*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getFieldKeys**](FieldsApi.md#getfieldkeys) | **GET** /client_interface/json/?switcher&#x3D;GetFieldKeys | Get all available field keys |
8
+ | [**getFieldValues**](FieldsApi.md#getfieldvalues) | **GET** /client_interface/json/?switcher&#x3D;GetFieldValues | Get distinct values for a field |
9
+
10
+
11
+
12
+ ## getFieldKeys
13
+
14
+ > Array&lt;GetFieldKeys200ResponseInner&gt; getFieldKeys()
15
+
16
+ Get all available field keys
17
+
18
+ ### Example
19
+
20
+ ```ts
21
+ import {
22
+ Configuration,
23
+ FieldsApi,
24
+ } from 'bmlt-server-semantic-client';
25
+ import type { GetFieldKeysRequest } from 'bmlt-server-semantic-client';
26
+
27
+ async function example() {
28
+ console.log("🚀 Testing bmlt-server-semantic-client SDK...");
29
+ const api = new FieldsApi();
30
+
31
+ try {
32
+ const data = await api.getFieldKeys();
33
+ console.log(data);
34
+ } catch (error) {
35
+ console.error(error);
36
+ }
37
+ }
38
+
39
+ // Run the test
40
+ example().catch(console.error);
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ This endpoint does not need any parameter.
46
+
47
+ ### Return type
48
+
49
+ [**Array&lt;GetFieldKeys200ResponseInner&gt;**](GetFieldKeys200ResponseInner.md)
50
+
51
+ ### Authorization
52
+
53
+ No authorization required
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: `application/json`
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ | **200** | List of field key descriptors | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
67
+
68
+
69
+ ## getFieldValues
70
+
71
+ > Array&lt;GetFieldValues200ResponseInner&gt; getFieldValues(meetingKey, specificFormats, allFormats)
72
+
73
+ Get distinct values for a field
74
+
75
+ ### Example
76
+
77
+ ```ts
78
+ import {
79
+ Configuration,
80
+ FieldsApi,
81
+ } from 'bmlt-server-semantic-client';
82
+ import type { GetFieldValuesRequest } from 'bmlt-server-semantic-client';
83
+
84
+ async function example() {
85
+ console.log("🚀 Testing bmlt-server-semantic-client SDK...");
86
+ const api = new FieldsApi();
87
+
88
+ const body = {
89
+ // string | Field key whose distinct values should be returned.
90
+ meetingKey: location_municipality,
91
+ // string | Comma-separated list of format IDs to limit the field values to. (optional)
92
+ specificFormats: specificFormats_example,
93
+ // '0' | '1' | Set to `1` to include all formats (not just `specific_formats`). (optional)
94
+ allFormats: allFormats_example,
95
+ } satisfies GetFieldValuesRequest;
96
+
97
+ try {
98
+ const data = await api.getFieldValues(body);
99
+ console.log(data);
100
+ } catch (error) {
101
+ console.error(error);
102
+ }
103
+ }
104
+
105
+ // Run the test
106
+ example().catch(console.error);
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+
112
+ | Name | Type | Description | Notes |
113
+ |------------- | ------------- | ------------- | -------------|
114
+ | **meetingKey** | `string` | Field key whose distinct values should be returned. | [Defaults to `undefined`] |
115
+ | **specificFormats** | `string` | Comma-separated list of format IDs to limit the field values to. | [Optional] [Defaults to `undefined`] |
116
+ | **allFormats** | `0`, `1` | Set to &#x60;1&#x60; to include all formats (not just &#x60;specific_formats&#x60;). | [Optional] [Defaults to `undefined`] [Enum: 0, 1] |
117
+
118
+ ### Return type
119
+
120
+ [**Array&lt;GetFieldValues200ResponseInner&gt;**](GetFieldValues200ResponseInner.md)
121
+
122
+ ### Authorization
123
+
124
+ No authorization required
125
+
126
+ ### HTTP request headers
127
+
128
+ - **Content-Type**: Not defined
129
+ - **Accept**: `application/json`
130
+
131
+
132
+ ### HTTP response details
133
+ | Status code | Description | Response headers |
134
+ |-------------|-------------|------------------|
135
+ | **200** | List of distinct values with usage counts | - |
136
+ | **400** | Bad request — usually a missing required parameter. | - |
137
+
138
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
139
+
package/docs/Format.md ADDED
@@ -0,0 +1,50 @@
1
+
2
+ # Format
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `keyString` | string
10
+ `nameString` | string
11
+ `descriptionString` | string
12
+ `lang` | string
13
+ `id` | string
14
+ `worldId` | string
15
+ `rootServerId` | string
16
+ `rootServerUri` | string
17
+ `formatTypeEnum` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { Format } from 'bmlt-server-semantic-client'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "keyString": null,
27
+ "nameString": null,
28
+ "descriptionString": null,
29
+ "lang": null,
30
+ "id": null,
31
+ "worldId": null,
32
+ "rootServerId": null,
33
+ "rootServerUri": null,
34
+ "formatTypeEnum": null,
35
+ } satisfies Format
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as Format
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,83 @@
1
+ # FormatsApi
2
+
3
+ All URIs are relative to *http://localhost:8000/main_server*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getSemanticFormats**](FormatsApi.md#getsemanticformats) | **GET** /client_interface/json/?switcher&#x3D;GetFormats | Get meeting formats |
8
+
9
+
10
+
11
+ ## getSemanticFormats
12
+
13
+ > Array&lt;SemanticFormat&gt; getSemanticFormats(langEnum, showAll, formatIds, keyStrings)
14
+
15
+ Get meeting formats
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ FormatsApi,
23
+ } from 'bmlt-server-semantic-client';
24
+ import type { GetSemanticFormatsRequest } from 'bmlt-server-semantic-client';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing bmlt-server-semantic-client SDK...");
28
+ const api = new FormatsApi();
29
+
30
+ const body = {
31
+ // string | Language code for translated format names (en, de, fr, es, it, pl, pt, sv, dk, fa). (optional)
32
+ langEnum: langEnum_example,
33
+ // '0' | '1' | Set to `1` to include all formats (including ones not currently used by any meeting). (optional)
34
+ showAll: showAll_example,
35
+ // string | Format IDs to include (positive) or exclude (negative). Comma-separated. (optional)
36
+ formatIds: 1,2,-3,
37
+ // string | Format key strings to filter by. Comma-separated. (optional)
38
+ keyStrings: O,C,
39
+ } satisfies GetSemanticFormatsRequest;
40
+
41
+ try {
42
+ const data = await api.getSemanticFormats(body);
43
+ console.log(data);
44
+ } catch (error) {
45
+ console.error(error);
46
+ }
47
+ }
48
+
49
+ // Run the test
50
+ example().catch(console.error);
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ | Name | Type | Description | Notes |
57
+ |------------- | ------------- | ------------- | -------------|
58
+ | **langEnum** | `string` | Language code for translated format names (en, de, fr, es, it, pl, pt, sv, dk, fa). | [Optional] [Defaults to `undefined`] |
59
+ | **showAll** | `0`, `1` | Set to &#x60;1&#x60; to include all formats (including ones not currently used by any meeting). | [Optional] [Defaults to `undefined`] [Enum: 0, 1] |
60
+ | **formatIds** | `string` | Format IDs to include (positive) or exclude (negative). Comma-separated. | [Optional] [Defaults to `undefined`] |
61
+ | **keyStrings** | `string` | Format key strings to filter by. Comma-separated. | [Optional] [Defaults to `undefined`] |
62
+
63
+ ### Return type
64
+
65
+ [**Array&lt;SemanticFormat&gt;**](SemanticFormat.md)
66
+
67
+ ### Authorization
68
+
69
+ No authorization required
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: `application/json`
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **200** | List of formats | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
@@ -0,0 +1,40 @@
1
+
2
+ # GetCoverageArea200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `nwCornerLongitude` | number
10
+ `nwCornerLatitude` | number
11
+ `seCornerLongitude` | number
12
+ `seCornerLatitude` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { GetCoverageArea200Response } from 'bmlt-server-semantic-client'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "nwCornerLongitude": null,
22
+ "nwCornerLatitude": null,
23
+ "seCornerLongitude": null,
24
+ "seCornerLatitude": null,
25
+ } satisfies GetCoverageArea200Response
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 GetCoverageArea200Response
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
+