@privateaim/core-http-kit 0.4.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 (115) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +202 -0
  3. package/dist/client/index.d.ts +2 -0
  4. package/dist/client/index.d.ts.map +1 -0
  5. package/dist/client/module.d.ts +21 -0
  6. package/dist/client/module.d.ts.map +1 -0
  7. package/dist/domains/analysis/index.d.ts +2 -0
  8. package/dist/domains/analysis/index.d.ts.map +1 -0
  9. package/dist/domains/analysis/module.d.ts +20 -0
  10. package/dist/domains/analysis/module.d.ts.map +1 -0
  11. package/dist/domains/analysis-bucket/index.d.ts +2 -0
  12. package/dist/domains/analysis-bucket/index.d.ts.map +1 -0
  13. package/dist/domains/analysis-bucket/module.d.ts +9 -0
  14. package/dist/domains/analysis-bucket/module.d.ts.map +1 -0
  15. package/dist/domains/analysis-bucket-file/index.d.ts +2 -0
  16. package/dist/domains/analysis-bucket-file/index.d.ts.map +1 -0
  17. package/dist/domains/analysis-bucket-file/module.d.ts +12 -0
  18. package/dist/domains/analysis-bucket-file/module.d.ts.map +1 -0
  19. package/dist/domains/analysis-log/index.d.ts +2 -0
  20. package/dist/domains/analysis-log/index.d.ts.map +1 -0
  21. package/dist/domains/analysis-log/module.d.ts +12 -0
  22. package/dist/domains/analysis-log/module.d.ts.map +1 -0
  23. package/dist/domains/analysis-node/index.d.ts +2 -0
  24. package/dist/domains/analysis-node/index.d.ts.map +1 -0
  25. package/dist/domains/analysis-node/module.d.ts +12 -0
  26. package/dist/domains/analysis-node/module.d.ts.map +1 -0
  27. package/dist/domains/base.d.ts +8 -0
  28. package/dist/domains/base.d.ts.map +1 -0
  29. package/dist/domains/index.d.ts +14 -0
  30. package/dist/domains/index.d.ts.map +1 -0
  31. package/dist/domains/master-image/index.d.ts +2 -0
  32. package/dist/domains/master-image/index.d.ts.map +1 -0
  33. package/dist/domains/master-image/module.d.ts +11 -0
  34. package/dist/domains/master-image/module.d.ts.map +1 -0
  35. package/dist/domains/master-image-group/index.d.ts +2 -0
  36. package/dist/domains/master-image-group/index.d.ts.map +1 -0
  37. package/dist/domains/master-image-group/module.d.ts +9 -0
  38. package/dist/domains/master-image-group/module.d.ts.map +1 -0
  39. package/dist/domains/node/index.d.ts +2 -0
  40. package/dist/domains/node/index.d.ts.map +1 -0
  41. package/dist/domains/node/module.d.ts +13 -0
  42. package/dist/domains/node/module.d.ts.map +1 -0
  43. package/dist/domains/project/index.d.ts +2 -0
  44. package/dist/domains/project/index.d.ts.map +1 -0
  45. package/dist/domains/project/module.d.ts +12 -0
  46. package/dist/domains/project/module.d.ts.map +1 -0
  47. package/dist/domains/project-node/index.d.ts +2 -0
  48. package/dist/domains/project-node/index.d.ts.map +1 -0
  49. package/dist/domains/project-node/module.d.ts +12 -0
  50. package/dist/domains/project-node/module.d.ts.map +1 -0
  51. package/dist/domains/registry/index.d.ts +2 -0
  52. package/dist/domains/registry/index.d.ts.map +1 -0
  53. package/dist/domains/registry/module.d.ts +12 -0
  54. package/dist/domains/registry/module.d.ts.map +1 -0
  55. package/dist/domains/registry-project/index.d.ts +2 -0
  56. package/dist/domains/registry-project/index.d.ts.map +1 -0
  57. package/dist/domains/registry-project/module.d.ts +12 -0
  58. package/dist/domains/registry-project/module.d.ts.map +1 -0
  59. package/dist/domains/service/index.d.ts +2 -0
  60. package/dist/domains/service/index.d.ts.map +1 -0
  61. package/dist/domains/service/module.d.ts +12 -0
  62. package/dist/domains/service/module.d.ts.map +1 -0
  63. package/dist/domains/types-base.d.ts +29 -0
  64. package/dist/domains/types-base.d.ts.map +1 -0
  65. package/dist/index.cjs +1177 -0
  66. package/dist/index.cjs.map +1 -0
  67. package/dist/index.d.ts +3 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.mjs +1163 -0
  70. package/dist/index.mjs.map +1 -0
  71. package/dist/utils/duplicate-slashes.d.ts +2 -0
  72. package/dist/utils/duplicate-slashes.d.ts.map +1 -0
  73. package/dist/utils/index.d.ts +3 -0
  74. package/dist/utils/index.d.ts.map +1 -0
  75. package/dist/utils/object-property.d.ts +4 -0
  76. package/dist/utils/object-property.d.ts.map +1 -0
  77. package/package.json +43 -0
  78. package/rollup.config.mjs +19 -0
  79. package/src/client/index.ts +8 -0
  80. package/src/client/module.ts +83 -0
  81. package/src/domains/analysis/index.ts +8 -0
  82. package/src/domains/analysis/module.ts +107 -0
  83. package/src/domains/analysis-bucket/index.ts +8 -0
  84. package/src/domains/analysis-bucket/module.ts +30 -0
  85. package/src/domains/analysis-bucket-file/index.ts +8 -0
  86. package/src/domains/analysis-bucket-file/module.ts +51 -0
  87. package/src/domains/analysis-log/index.ts +8 -0
  88. package/src/domains/analysis-log/module.ts +43 -0
  89. package/src/domains/analysis-node/index.ts +8 -0
  90. package/src/domains/analysis-node/module.ts +43 -0
  91. package/src/domains/base.ts +30 -0
  92. package/src/domains/index.ts +20 -0
  93. package/src/domains/master-image/index.ts +7 -0
  94. package/src/domains/master-image/module.ts +47 -0
  95. package/src/domains/master-image-group/index.ts +7 -0
  96. package/src/domains/master-image-group/module.ts +25 -0
  97. package/src/domains/node/index.ts +8 -0
  98. package/src/domains/node/module.ts +51 -0
  99. package/src/domains/project/index.ts +8 -0
  100. package/src/domains/project/module.ts +42 -0
  101. package/src/domains/project-node/index.ts +8 -0
  102. package/src/domains/project-node/module.ts +45 -0
  103. package/src/domains/registry/index.ts +8 -0
  104. package/src/domains/registry/module.ts +45 -0
  105. package/src/domains/registry-project/index.ts +8 -0
  106. package/src/domains/registry-project/module.ts +45 -0
  107. package/src/domains/service/index.ts +8 -0
  108. package/src/domains/service/module.ts +36 -0
  109. package/src/domains/types-base.ts +42 -0
  110. package/src/index.ts +9 -0
  111. package/src/utils/duplicate-slashes.ts +16 -0
  112. package/src/utils/index.ts +9 -0
  113. package/src/utils/object-property.ts +47 -0
  114. package/tsconfig.build.json +11 -0
  115. package/tsconfig.json +10 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,1177 @@
1
+ 'use strict';
2
+
3
+ var hapic = require('hapic');
4
+ var rapiq = require('rapiq');
5
+ require('@authup/kit');
6
+ var core = require('@privateaim/core');
7
+
8
+ /*
9
+ * Copyright (c) 2023-2024.
10
+ * Author Peter Placzek (tada5hi)
11
+ * For the full copyright and license information,
12
+ * view the LICENSE file that was distributed with this source code.
13
+ */ function _define_property$5(obj, key, value) {
14
+ if (key in obj) {
15
+ Object.defineProperty(obj, key, {
16
+ value: value,
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true
20
+ });
21
+ } else {
22
+ obj[key] = value;
23
+ }
24
+ return obj;
25
+ }
26
+ class BaseAPI {
27
+ // -----------------------------------------------------------------------------------
28
+ setClient(input) {
29
+ this.client = hapic.isClient(input) ? input : hapic.createClient(input);
30
+ }
31
+ // -----------------------------------------------------------------------------------
32
+ constructor(context){
33
+ _define_property$5(this, "client", void 0);
34
+ context = context || {};
35
+ this.setClient(context.client);
36
+ }
37
+ }
38
+
39
+ /*
40
+ * Copyright (c) 2021-2024.
41
+ * Author Peter Placzek (tada5hi)
42
+ * For the full copyright and license information,
43
+ * view the LICENSE file that was distributed with this source code.
44
+ */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
45
+ try {
46
+ var info = gen[key](arg);
47
+ var value = info.value;
48
+ } catch (error) {
49
+ reject(error);
50
+ return;
51
+ }
52
+ if (info.done) {
53
+ resolve(value);
54
+ } else {
55
+ Promise.resolve(value).then(_next, _throw);
56
+ }
57
+ }
58
+ function _async_to_generator$c(fn) {
59
+ return function() {
60
+ var self = this, args = arguments;
61
+ return new Promise(function(resolve, reject) {
62
+ var gen = fn.apply(self, args);
63
+ function _next(value) {
64
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
65
+ }
66
+ function _throw(err) {
67
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
68
+ }
69
+ _next(undefined);
70
+ });
71
+ };
72
+ }
73
+ class MasterImageGroupAPI extends BaseAPI {
74
+ getMany(data) {
75
+ var _this = this;
76
+ return _async_to_generator$c(function*() {
77
+ const response = yield _this.client.get(`master-image-groups${rapiq.buildQuery(data)}`);
78
+ return response.data;
79
+ })();
80
+ }
81
+ getOne(id) {
82
+ var _this = this;
83
+ return _async_to_generator$c(function*() {
84
+ const response = yield _this.client.delete(`master-image-groups/${id}`);
85
+ return response.data;
86
+ })();
87
+ }
88
+ }
89
+
90
+ /*
91
+ * Copyright (c) 2021-2024.
92
+ * Author Peter Placzek (tada5hi)
93
+ * For the full copyright and license information,
94
+ * view the LICENSE file that was distributed with this source code.
95
+ */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
96
+ try {
97
+ var info = gen[key](arg);
98
+ var value = info.value;
99
+ } catch (error) {
100
+ reject(error);
101
+ return;
102
+ }
103
+ if (info.done) {
104
+ resolve(value);
105
+ } else {
106
+ Promise.resolve(value).then(_next, _throw);
107
+ }
108
+ }
109
+ function _async_to_generator$b(fn) {
110
+ return function() {
111
+ var self = this, args = arguments;
112
+ return new Promise(function(resolve, reject) {
113
+ var gen = fn.apply(self, args);
114
+ function _next(value) {
115
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
116
+ }
117
+ function _throw(err) {
118
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
119
+ }
120
+ _next(undefined);
121
+ });
122
+ };
123
+ }
124
+ function _define_property$4(obj, key, value) {
125
+ if (key in obj) {
126
+ Object.defineProperty(obj, key, {
127
+ value: value,
128
+ enumerable: true,
129
+ configurable: true,
130
+ writable: true
131
+ });
132
+ } else {
133
+ obj[key] = value;
134
+ }
135
+ return obj;
136
+ }
137
+ function _object_spread$3(target) {
138
+ for(var i = 1; i < arguments.length; i++){
139
+ var source = arguments[i] != null ? arguments[i] : {};
140
+ var ownKeys = Object.keys(source);
141
+ if (typeof Object.getOwnPropertySymbols === "function") {
142
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
143
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
144
+ }));
145
+ }
146
+ ownKeys.forEach(function(key) {
147
+ _define_property$4(target, key, source[key]);
148
+ });
149
+ }
150
+ return target;
151
+ }
152
+ class MasterImageAPI extends BaseAPI {
153
+ getMany(data) {
154
+ var _this = this;
155
+ return _async_to_generator$b(function*() {
156
+ const response = yield _this.client.get(`master-images${rapiq.buildQuery(data)}`);
157
+ return response.data;
158
+ })();
159
+ }
160
+ getOne(id, data) {
161
+ var _this = this;
162
+ return _async_to_generator$b(function*() {
163
+ const response = yield _this.client.get(`master-images/${id}${rapiq.buildQuery(data)}`);
164
+ return response.data;
165
+ })();
166
+ }
167
+ delete(id) {
168
+ var _this = this;
169
+ return _async_to_generator$b(function*() {
170
+ const response = yield _this.client.delete(`master-images/${id}`);
171
+ return response.data;
172
+ })();
173
+ }
174
+ runCommand(command, data = {}) {
175
+ var _this = this;
176
+ return _async_to_generator$b(function*() {
177
+ const actionData = _object_spread$3({
178
+ command
179
+ }, data);
180
+ const { data: response } = yield _this.client.post('master-images/command', actionData);
181
+ return response;
182
+ })();
183
+ }
184
+ }
185
+
186
+ function nullifyEmptyObjectProperties(data) {
187
+ const keys = Object.keys(data);
188
+ for(let i = 0; i < keys.length; i++){
189
+ if (data[keys[i]] === '') {
190
+ data[keys[i]] = null;
191
+ }
192
+ }
193
+ return data;
194
+ }
195
+
196
+ /*
197
+ * Copyright (c) 2021-2024.
198
+ * Author Peter Placzek (tada5hi)
199
+ * For the full copyright and license information,
200
+ * view the LICENSE file that was distributed with this source code.
201
+ */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
202
+ try {
203
+ var info = gen[key](arg);
204
+ var value = info.value;
205
+ } catch (error) {
206
+ reject(error);
207
+ return;
208
+ }
209
+ if (info.done) {
210
+ resolve(value);
211
+ } else {
212
+ Promise.resolve(value).then(_next, _throw);
213
+ }
214
+ }
215
+ function _async_to_generator$a(fn) {
216
+ return function() {
217
+ var self = this, args = arguments;
218
+ return new Promise(function(resolve, reject) {
219
+ var gen = fn.apply(self, args);
220
+ function _next(value) {
221
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
222
+ }
223
+ function _throw(err) {
224
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
225
+ }
226
+ _next(undefined);
227
+ });
228
+ };
229
+ }
230
+ class ProjectAPI extends BaseAPI {
231
+ getMany(record) {
232
+ var _this = this;
233
+ return _async_to_generator$a(function*() {
234
+ const response = yield _this.client.get(`projects${rapiq.buildQuery(record)}`);
235
+ return response.data;
236
+ })();
237
+ }
238
+ getOne(id, requestRecord) {
239
+ var _this = this;
240
+ return _async_to_generator$a(function*() {
241
+ const response = yield _this.client.get(`projects/${id}${rapiq.buildQuery(requestRecord)}`);
242
+ return response.data;
243
+ })();
244
+ }
245
+ create(data) {
246
+ var _this = this;
247
+ return _async_to_generator$a(function*() {
248
+ const response = yield _this.client.post('projects', nullifyEmptyObjectProperties(data));
249
+ return response.data;
250
+ })();
251
+ }
252
+ delete(id) {
253
+ var _this = this;
254
+ return _async_to_generator$a(function*() {
255
+ const response = yield _this.client.delete(`projects/${id}`);
256
+ return response.data;
257
+ })();
258
+ }
259
+ update(id, data) {
260
+ var _this = this;
261
+ return _async_to_generator$a(function*() {
262
+ const response = yield _this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
263
+ return response.data;
264
+ })();
265
+ }
266
+ }
267
+
268
+ /*
269
+ * Copyright (c) 2021-2024.
270
+ * Author Peter Placzek (tada5hi)
271
+ * For the full copyright and license information,
272
+ * view the LICENSE file that was distributed with this source code.
273
+ */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
274
+ try {
275
+ var info = gen[key](arg);
276
+ var value = info.value;
277
+ } catch (error) {
278
+ reject(error);
279
+ return;
280
+ }
281
+ if (info.done) {
282
+ resolve(value);
283
+ } else {
284
+ Promise.resolve(value).then(_next, _throw);
285
+ }
286
+ }
287
+ function _async_to_generator$9(fn) {
288
+ return function() {
289
+ var self = this, args = arguments;
290
+ return new Promise(function(resolve, reject) {
291
+ var gen = fn.apply(self, args);
292
+ function _next(value) {
293
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
294
+ }
295
+ function _throw(err) {
296
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
297
+ }
298
+ _next(undefined);
299
+ });
300
+ };
301
+ }
302
+ class ProjectNodeAPI extends BaseAPI {
303
+ getMany(data) {
304
+ var _this = this;
305
+ return _async_to_generator$9(function*() {
306
+ const response = yield _this.client.get(`project-nodes${rapiq.buildQuery(data)}`);
307
+ return response.data;
308
+ })();
309
+ }
310
+ getOne(id, data) {
311
+ var _this = this;
312
+ return _async_to_generator$9(function*() {
313
+ const response = yield _this.client.get(`project-nodes/${id}${rapiq.buildQuery(data)}`);
314
+ return response.data;
315
+ })();
316
+ }
317
+ create(data) {
318
+ var _this = this;
319
+ return _async_to_generator$9(function*() {
320
+ const response = yield _this.client.post('project-nodes', data);
321
+ return response.data;
322
+ })();
323
+ }
324
+ update(id, data) {
325
+ var _this = this;
326
+ return _async_to_generator$9(function*() {
327
+ const response = yield _this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
328
+ return response.data;
329
+ })();
330
+ }
331
+ delete(id) {
332
+ var _this = this;
333
+ return _async_to_generator$9(function*() {
334
+ const response = yield _this.client.delete(`project-nodes/${id}`);
335
+ return response.data;
336
+ })();
337
+ }
338
+ }
339
+
340
+ /*
341
+ * Copyright (c) 2021-2024.
342
+ * Author Peter Placzek (tada5hi)
343
+ * For the full copyright and license information,
344
+ * view the LICENSE file that was distributed with this source code.
345
+ */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
346
+ try {
347
+ var info = gen[key](arg);
348
+ var value = info.value;
349
+ } catch (error) {
350
+ reject(error);
351
+ return;
352
+ }
353
+ if (info.done) {
354
+ resolve(value);
355
+ } else {
356
+ Promise.resolve(value).then(_next, _throw);
357
+ }
358
+ }
359
+ function _async_to_generator$8(fn) {
360
+ return function() {
361
+ var self = this, args = arguments;
362
+ return new Promise(function(resolve, reject) {
363
+ var gen = fn.apply(self, args);
364
+ function _next(value) {
365
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
366
+ }
367
+ function _throw(err) {
368
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
369
+ }
370
+ _next(undefined);
371
+ });
372
+ };
373
+ }
374
+ class RegistryAPI extends BaseAPI {
375
+ getMany(options) {
376
+ var _this = this;
377
+ return _async_to_generator$8(function*() {
378
+ const response = yield _this.client.get(`registries${rapiq.buildQuery(options)}`);
379
+ return response.data;
380
+ })();
381
+ }
382
+ getOne(id, options) {
383
+ var _this = this;
384
+ return _async_to_generator$8(function*() {
385
+ const response = yield _this.client.get(`registries/${id}${rapiq.buildQuery(options)}`);
386
+ return response.data;
387
+ })();
388
+ }
389
+ create(data) {
390
+ var _this = this;
391
+ return _async_to_generator$8(function*() {
392
+ const response = yield _this.client.post('registries', nullifyEmptyObjectProperties(data));
393
+ return response.data;
394
+ })();
395
+ }
396
+ update(id, data) {
397
+ var _this = this;
398
+ return _async_to_generator$8(function*() {
399
+ const response = yield _this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
400
+ return response.data;
401
+ })();
402
+ }
403
+ delete(id) {
404
+ var _this = this;
405
+ return _async_to_generator$8(function*() {
406
+ const response = yield _this.client.delete(`registries/${id}`);
407
+ return response.data;
408
+ })();
409
+ }
410
+ }
411
+
412
+ /*
413
+ * Copyright (c) 2021-2024.
414
+ * Author Peter Placzek (tada5hi)
415
+ * For the full copyright and license information,
416
+ * view the LICENSE file that was distributed with this source code.
417
+ */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
418
+ try {
419
+ var info = gen[key](arg);
420
+ var value = info.value;
421
+ } catch (error) {
422
+ reject(error);
423
+ return;
424
+ }
425
+ if (info.done) {
426
+ resolve(value);
427
+ } else {
428
+ Promise.resolve(value).then(_next, _throw);
429
+ }
430
+ }
431
+ function _async_to_generator$7(fn) {
432
+ return function() {
433
+ var self = this, args = arguments;
434
+ return new Promise(function(resolve, reject) {
435
+ var gen = fn.apply(self, args);
436
+ function _next(value) {
437
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
438
+ }
439
+ function _throw(err) {
440
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
441
+ }
442
+ _next(undefined);
443
+ });
444
+ };
445
+ }
446
+ class RegistryProjectAPI extends BaseAPI {
447
+ getMany(options) {
448
+ var _this = this;
449
+ return _async_to_generator$7(function*() {
450
+ const response = yield _this.client.get(`registry-projects${rapiq.buildQuery(options)}`);
451
+ return response.data;
452
+ })();
453
+ }
454
+ getOne(id, options) {
455
+ var _this = this;
456
+ return _async_to_generator$7(function*() {
457
+ const response = yield _this.client.get(`registry-projects/${id}${rapiq.buildQuery(options)}`);
458
+ return response.data;
459
+ })();
460
+ }
461
+ create(data) {
462
+ var _this = this;
463
+ return _async_to_generator$7(function*() {
464
+ const response = yield _this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
465
+ return response.data;
466
+ })();
467
+ }
468
+ update(id, data) {
469
+ var _this = this;
470
+ return _async_to_generator$7(function*() {
471
+ const response = yield _this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
472
+ return response.data;
473
+ })();
474
+ }
475
+ delete(id) {
476
+ var _this = this;
477
+ return _async_to_generator$7(function*() {
478
+ const response = yield _this.client.delete(`registry-projects/${id}`);
479
+ return response.data;
480
+ })();
481
+ }
482
+ }
483
+
484
+ /*
485
+ * Copyright (c) 2021-2024.
486
+ * Author Peter Placzek (tada5hi)
487
+ * For the full copyright and license information,
488
+ * view the LICENSE file that was distributed with this source code.
489
+ */ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
490
+ try {
491
+ var info = gen[key](arg);
492
+ var value = info.value;
493
+ } catch (error) {
494
+ reject(error);
495
+ return;
496
+ }
497
+ if (info.done) {
498
+ resolve(value);
499
+ } else {
500
+ Promise.resolve(value).then(_next, _throw);
501
+ }
502
+ }
503
+ function _async_to_generator$6(fn) {
504
+ return function() {
505
+ var self = this, args = arguments;
506
+ return new Promise(function(resolve, reject) {
507
+ var gen = fn.apply(self, args);
508
+ function _next(value) {
509
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
510
+ }
511
+ function _throw(err) {
512
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
513
+ }
514
+ _next(undefined);
515
+ });
516
+ };
517
+ }
518
+ function _define_property$3(obj, key, value) {
519
+ if (key in obj) {
520
+ Object.defineProperty(obj, key, {
521
+ value: value,
522
+ enumerable: true,
523
+ configurable: true,
524
+ writable: true
525
+ });
526
+ } else {
527
+ obj[key] = value;
528
+ }
529
+ return obj;
530
+ }
531
+ function _object_spread$2(target) {
532
+ for(var i = 1; i < arguments.length; i++){
533
+ var source = arguments[i] != null ? arguments[i] : {};
534
+ var ownKeys = Object.keys(source);
535
+ if (typeof Object.getOwnPropertySymbols === "function") {
536
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
537
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
538
+ }));
539
+ }
540
+ ownKeys.forEach(function(key) {
541
+ _define_property$3(target, key, source[key]);
542
+ });
543
+ }
544
+ return target;
545
+ }
546
+ class NodeAPI extends BaseAPI {
547
+ getMany(options) {
548
+ var _this = this;
549
+ return _async_to_generator$6(function*() {
550
+ const response = yield _this.client.get(`nodes${rapiq.buildQuery(options)}`);
551
+ return response.data;
552
+ })();
553
+ }
554
+ getOne(id, options) {
555
+ var _this = this;
556
+ return _async_to_generator$6(function*() {
557
+ const response = yield _this.client.get(`nodes/${id}${rapiq.buildQuery(options)}`);
558
+ return response.data;
559
+ })();
560
+ }
561
+ create(data) {
562
+ var _this = this;
563
+ return _async_to_generator$6(function*() {
564
+ const response = yield _this.client.post('nodes', nullifyEmptyObjectProperties(data));
565
+ return response.data;
566
+ })();
567
+ }
568
+ update(id, data) {
569
+ var _this = this;
570
+ return _async_to_generator$6(function*() {
571
+ const response = yield _this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
572
+ return response.data;
573
+ })();
574
+ }
575
+ delete(id) {
576
+ var _this = this;
577
+ return _async_to_generator$6(function*() {
578
+ const response = yield _this.client.delete(`nodes/${id}`);
579
+ return response.data;
580
+ })();
581
+ }
582
+ runCommand(id, task, data) {
583
+ var _this = this;
584
+ return _async_to_generator$6(function*() {
585
+ const response = yield _this.client.post(`nodes/${id}/task`, _object_spread$2({
586
+ task
587
+ }, data));
588
+ return response.data;
589
+ })();
590
+ }
591
+ }
592
+
593
+ /*
594
+ * Copyright (c) 2021-2024.
595
+ * Author Peter Placzek (tada5hi)
596
+ * For the full copyright and license information,
597
+ * view the LICENSE file that was distributed with this source code.
598
+ */ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
599
+ try {
600
+ var info = gen[key](arg);
601
+ var value = info.value;
602
+ } catch (error) {
603
+ reject(error);
604
+ return;
605
+ }
606
+ if (info.done) {
607
+ resolve(value);
608
+ } else {
609
+ Promise.resolve(value).then(_next, _throw);
610
+ }
611
+ }
612
+ function _async_to_generator$5(fn) {
613
+ return function() {
614
+ var self = this, args = arguments;
615
+ return new Promise(function(resolve, reject) {
616
+ var gen = fn.apply(self, args);
617
+ function _next(value) {
618
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
619
+ }
620
+ function _throw(err) {
621
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
622
+ }
623
+ _next(undefined);
624
+ });
625
+ };
626
+ }
627
+ function _define_property$2(obj, key, value) {
628
+ if (key in obj) {
629
+ Object.defineProperty(obj, key, {
630
+ value: value,
631
+ enumerable: true,
632
+ configurable: true,
633
+ writable: true
634
+ });
635
+ } else {
636
+ obj[key] = value;
637
+ }
638
+ return obj;
639
+ }
640
+ function _object_spread$1(target) {
641
+ for(var i = 1; i < arguments.length; i++){
642
+ var source = arguments[i] != null ? arguments[i] : {};
643
+ var ownKeys = Object.keys(source);
644
+ if (typeof Object.getOwnPropertySymbols === "function") {
645
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
646
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
647
+ }));
648
+ }
649
+ ownKeys.forEach(function(key) {
650
+ _define_property$2(target, key, source[key]);
651
+ });
652
+ }
653
+ return target;
654
+ }
655
+ class AnalysisAPI extends BaseAPI {
656
+ // todo: we properly don't need this anymore
657
+ getResultDownloadPath(id) {
658
+ return `analyses/${id}/result/download`;
659
+ }
660
+ getResultDownloadURL(id) {
661
+ return new URL(this.getResultDownloadPath(id), this.client.getBaseURL()).href;
662
+ }
663
+ getFilesDownloadPath(id) {
664
+ return `analyses/${id}/files/download`;
665
+ }
666
+ getFileDownloadURL(id) {
667
+ return new URL(this.getFilesDownloadPath(id), this.client.getBaseURL()).href;
668
+ }
669
+ getMany(options) {
670
+ var _this = this;
671
+ return _async_to_generator$5(function*() {
672
+ const { data: response } = yield _this.client.get(`analyses${rapiq.buildQuery(options)}`);
673
+ return response;
674
+ })();
675
+ }
676
+ getOne(id, options, requestConfig) {
677
+ var _this = this;
678
+ return _async_to_generator$5(function*() {
679
+ const { data: response } = yield _this.client.get(`analyses/${id}${rapiq.buildQuery(options)}`, requestConfig);
680
+ return response;
681
+ })();
682
+ }
683
+ delete(id) {
684
+ var _this = this;
685
+ return _async_to_generator$5(function*() {
686
+ const { data: response } = yield _this.client.delete(`analyses/${id}`);
687
+ return response;
688
+ })();
689
+ }
690
+ update(id, data) {
691
+ var _this = this;
692
+ return _async_to_generator$5(function*() {
693
+ const { data: response } = yield _this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
694
+ return response;
695
+ })();
696
+ }
697
+ create(data) {
698
+ var _this = this;
699
+ return _async_to_generator$5(function*() {
700
+ const { data: response } = yield _this.client.post('analyses', nullifyEmptyObjectProperties(data));
701
+ return response;
702
+ })();
703
+ }
704
+ runCommand(id, command, data = {}) {
705
+ var _this = this;
706
+ return _async_to_generator$5(function*() {
707
+ const actionData = _object_spread$1({
708
+ command
709
+ }, data);
710
+ const { data: response } = yield _this.client.post(`analyses/${id}/command`, actionData);
711
+ return response;
712
+ })();
713
+ }
714
+ streamFiles(id) {
715
+ var _this = this;
716
+ return _async_to_generator$5(function*() {
717
+ const response = yield _this.client.get(_this.getFilesDownloadPath(id), {
718
+ responseType: 'stream'
719
+ });
720
+ return response.data;
721
+ })();
722
+ }
723
+ downloadResult(id) {
724
+ var _this = this;
725
+ return _async_to_generator$5(function*() {
726
+ const response = yield _this.client.get(_this.getResultDownloadPath(id), {
727
+ responseType: 'stream'
728
+ });
729
+ return response.data;
730
+ })();
731
+ }
732
+ }
733
+
734
+ /*
735
+ * Copyright (c) 2021-2024.
736
+ * Author Peter Placzek (tada5hi)
737
+ * For the full copyright and license information,
738
+ * view the LICENSE file that was distributed with this source code.
739
+ */ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
740
+ try {
741
+ var info = gen[key](arg);
742
+ var value = info.value;
743
+ } catch (error) {
744
+ reject(error);
745
+ return;
746
+ }
747
+ if (info.done) {
748
+ resolve(value);
749
+ } else {
750
+ Promise.resolve(value).then(_next, _throw);
751
+ }
752
+ }
753
+ function _async_to_generator$4(fn) {
754
+ return function() {
755
+ var self = this, args = arguments;
756
+ return new Promise(function(resolve, reject) {
757
+ var gen = fn.apply(self, args);
758
+ function _next(value) {
759
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
760
+ }
761
+ function _throw(err) {
762
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
763
+ }
764
+ _next(undefined);
765
+ });
766
+ };
767
+ }
768
+ class AnalysisFileAPI extends BaseAPI {
769
+ getMany(options) {
770
+ var _this = this;
771
+ return _async_to_generator$4(function*() {
772
+ const response = yield _this.client.get(`analysis-files${rapiq.buildQuery(options)}`);
773
+ return response.data;
774
+ })();
775
+ }
776
+ getOne(id) {
777
+ var _this = this;
778
+ return _async_to_generator$4(function*() {
779
+ const response = yield _this.client.get(`analysis-files/${id}`);
780
+ return response.data;
781
+ })();
782
+ }
783
+ delete(id) {
784
+ var _this = this;
785
+ return _async_to_generator$4(function*() {
786
+ const response = yield _this.client.delete(`analysis-files/${id}`);
787
+ return response.data;
788
+ })();
789
+ }
790
+ update(id, data) {
791
+ var _this = this;
792
+ return _async_to_generator$4(function*() {
793
+ const { data: response } = yield _this.client.post(`analysis-files/${id}`, nullifyEmptyObjectProperties(data));
794
+ return response;
795
+ })();
796
+ }
797
+ create(data) {
798
+ var _this = this;
799
+ return _async_to_generator$4(function*() {
800
+ const { data: response } = yield _this.client.post('analysis-files', nullifyEmptyObjectProperties(data));
801
+ return response;
802
+ })();
803
+ }
804
+ }
805
+
806
+ /*
807
+ * Copyright (c) 2021-2024.
808
+ * Author Peter Placzek (tada5hi)
809
+ * For the full copyright and license information,
810
+ * view the LICENSE file that was distributed with this source code.
811
+ */ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
812
+ try {
813
+ var info = gen[key](arg);
814
+ var value = info.value;
815
+ } catch (error) {
816
+ reject(error);
817
+ return;
818
+ }
819
+ if (info.done) {
820
+ resolve(value);
821
+ } else {
822
+ Promise.resolve(value).then(_next, _throw);
823
+ }
824
+ }
825
+ function _async_to_generator$3(fn) {
826
+ return function() {
827
+ var self = this, args = arguments;
828
+ return new Promise(function(resolve, reject) {
829
+ var gen = fn.apply(self, args);
830
+ function _next(value) {
831
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
832
+ }
833
+ function _throw(err) {
834
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
835
+ }
836
+ _next(undefined);
837
+ });
838
+ };
839
+ }
840
+ class AnalysisLogAPI extends BaseAPI {
841
+ getMany(options) {
842
+ var _this = this;
843
+ return _async_to_generator$3(function*() {
844
+ const { data: response } = yield _this.client.get(`analysis-logs${rapiq.buildQuery(options)}`);
845
+ return response;
846
+ })();
847
+ }
848
+ getOne(id) {
849
+ var _this = this;
850
+ return _async_to_generator$3(function*() {
851
+ const { data: response } = yield _this.client.get(`analysis-logs/${id}`);
852
+ return response;
853
+ })();
854
+ }
855
+ delete(id) {
856
+ var _this = this;
857
+ return _async_to_generator$3(function*() {
858
+ const { data: response } = yield _this.client.delete(`analysis-logs/${id}`);
859
+ return response;
860
+ })();
861
+ }
862
+ update(id, data) {
863
+ var _this = this;
864
+ return _async_to_generator$3(function*() {
865
+ const { data: response } = yield _this.client.post(`analysis-logs/${id}`, data);
866
+ return response;
867
+ })();
868
+ }
869
+ create(data) {
870
+ var _this = this;
871
+ return _async_to_generator$3(function*() {
872
+ const { data: response } = yield _this.client.post('analysis-logs', data);
873
+ return response;
874
+ })();
875
+ }
876
+ }
877
+
878
+ /*
879
+ * Copyright (c) 2021-2024.
880
+ * Author Peter Placzek (tada5hi)
881
+ * For the full copyright and license information,
882
+ * view the LICENSE file that was distributed with this source code.
883
+ */ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
884
+ try {
885
+ var info = gen[key](arg);
886
+ var value = info.value;
887
+ } catch (error) {
888
+ reject(error);
889
+ return;
890
+ }
891
+ if (info.done) {
892
+ resolve(value);
893
+ } else {
894
+ Promise.resolve(value).then(_next, _throw);
895
+ }
896
+ }
897
+ function _async_to_generator$2(fn) {
898
+ return function() {
899
+ var self = this, args = arguments;
900
+ return new Promise(function(resolve, reject) {
901
+ var gen = fn.apply(self, args);
902
+ function _next(value) {
903
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
904
+ }
905
+ function _throw(err) {
906
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
907
+ }
908
+ _next(undefined);
909
+ });
910
+ };
911
+ }
912
+ class TrainStationAPI extends BaseAPI {
913
+ getMany(options) {
914
+ var _this = this;
915
+ return _async_to_generator$2(function*() {
916
+ const { data: response } = yield _this.client.get(`analysis-nodes${rapiq.buildQuery(options)}`);
917
+ return response;
918
+ })();
919
+ }
920
+ getOne(id) {
921
+ var _this = this;
922
+ return _async_to_generator$2(function*() {
923
+ const { data: response } = yield _this.client.get(`analysis-nodes/${id}`);
924
+ return response;
925
+ })();
926
+ }
927
+ delete(id) {
928
+ var _this = this;
929
+ return _async_to_generator$2(function*() {
930
+ const { data: response } = yield _this.client.delete(`analysis-nodes/${id}`);
931
+ return response;
932
+ })();
933
+ }
934
+ update(id, data) {
935
+ var _this = this;
936
+ return _async_to_generator$2(function*() {
937
+ const { data: response } = yield _this.client.post(`analysis-nodes/${id}`, data);
938
+ return response;
939
+ })();
940
+ }
941
+ create(data) {
942
+ var _this = this;
943
+ return _async_to_generator$2(function*() {
944
+ const { data: response } = yield _this.client.post('analysis-nodes', data);
945
+ return response;
946
+ })();
947
+ }
948
+ }
949
+
950
+ /*
951
+ * Copyright (c) 2021-2024.
952
+ * Author Peter Placzek (tada5hi)
953
+ * For the full copyright and license information,
954
+ * view the LICENSE file that was distributed with this source code.
955
+ */ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
956
+ try {
957
+ var info = gen[key](arg);
958
+ var value = info.value;
959
+ } catch (error) {
960
+ reject(error);
961
+ return;
962
+ }
963
+ if (info.done) {
964
+ resolve(value);
965
+ } else {
966
+ Promise.resolve(value).then(_next, _throw);
967
+ }
968
+ }
969
+ function _async_to_generator$1(fn) {
970
+ return function() {
971
+ var self = this, args = arguments;
972
+ return new Promise(function(resolve, reject) {
973
+ var gen = fn.apply(self, args);
974
+ function _next(value) {
975
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
976
+ }
977
+ function _throw(err) {
978
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
979
+ }
980
+ _next(undefined);
981
+ });
982
+ };
983
+ }
984
+ function _define_property$1(obj, key, value) {
985
+ if (key in obj) {
986
+ Object.defineProperty(obj, key, {
987
+ value: value,
988
+ enumerable: true,
989
+ configurable: true,
990
+ writable: true
991
+ });
992
+ } else {
993
+ obj[key] = value;
994
+ }
995
+ return obj;
996
+ }
997
+ function _object_spread(target) {
998
+ for(var i = 1; i < arguments.length; i++){
999
+ var source = arguments[i] != null ? arguments[i] : {};
1000
+ var ownKeys = Object.keys(source);
1001
+ if (typeof Object.getOwnPropertySymbols === "function") {
1002
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1003
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1004
+ }));
1005
+ }
1006
+ ownKeys.forEach(function(key) {
1007
+ _define_property$1(target, key, source[key]);
1008
+ });
1009
+ }
1010
+ return target;
1011
+ }
1012
+ class ServiceAPI extends BaseAPI {
1013
+ runCommand(id, command, data) {
1014
+ var _this = this;
1015
+ return _async_to_generator$1(function*() {
1016
+ data = data || {};
1017
+ const { data: resultData } = yield _this.client.post(`services/${id}/command`, nullifyEmptyObjectProperties(_object_spread({
1018
+ command
1019
+ }, data)));
1020
+ return resultData;
1021
+ })();
1022
+ }
1023
+ runRegistryCommand(command, data) {
1024
+ var _this = this;
1025
+ return _async_to_generator$1(function*() {
1026
+ return _this.runCommand(core.ServiceID.REGISTRY, command, data);
1027
+ })();
1028
+ }
1029
+ }
1030
+
1031
+ /*
1032
+ * Copyright (c) 2021-2024.
1033
+ * Author Peter Placzek (tada5hi)
1034
+ * For the full copyright and license information,
1035
+ * view the LICENSE file that was distributed with this source code.
1036
+ */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1037
+ try {
1038
+ var info = gen[key](arg);
1039
+ var value = info.value;
1040
+ } catch (error) {
1041
+ reject(error);
1042
+ return;
1043
+ }
1044
+ if (info.done) {
1045
+ resolve(value);
1046
+ } else {
1047
+ Promise.resolve(value).then(_next, _throw);
1048
+ }
1049
+ }
1050
+ function _async_to_generator(fn) {
1051
+ return function() {
1052
+ var self = this, args = arguments;
1053
+ return new Promise(function(resolve, reject) {
1054
+ var gen = fn.apply(self, args);
1055
+ function _next(value) {
1056
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1057
+ }
1058
+ function _throw(err) {
1059
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1060
+ }
1061
+ _next(undefined);
1062
+ });
1063
+ };
1064
+ }
1065
+ class AnalysisBucketAPI extends BaseAPI {
1066
+ getMany(options) {
1067
+ var _this = this;
1068
+ return _async_to_generator(function*() {
1069
+ const response = yield _this.client.get(`analysis-buckets${rapiq.buildQuery(options)}`);
1070
+ return response.data;
1071
+ })();
1072
+ }
1073
+ getOne(id) {
1074
+ var _this = this;
1075
+ return _async_to_generator(function*() {
1076
+ const response = yield _this.client.get(`analysis-buckets/${id}`);
1077
+ return response.data;
1078
+ })();
1079
+ }
1080
+ }
1081
+
1082
+ /*
1083
+ * Copyright (c) 2022-2024.
1084
+ * Author Peter Placzek (tada5hi)
1085
+ * For the full copyright and license information,
1086
+ * view the LICENSE file that was distributed with this source code.
1087
+ */ function _define_property(obj, key, value) {
1088
+ if (key in obj) {
1089
+ Object.defineProperty(obj, key, {
1090
+ value: value,
1091
+ enumerable: true,
1092
+ configurable: true,
1093
+ writable: true
1094
+ });
1095
+ } else {
1096
+ obj[key] = value;
1097
+ }
1098
+ return obj;
1099
+ }
1100
+ class Client extends hapic.Client {
1101
+ constructor(config){
1102
+ super(config);
1103
+ _define_property(this, "masterImage", void 0);
1104
+ _define_property(this, "masterImageGroup", void 0);
1105
+ _define_property(this, "project", void 0);
1106
+ _define_property(this, "projectNode", void 0);
1107
+ _define_property(this, "registry", void 0);
1108
+ _define_property(this, "registryProject", void 0);
1109
+ _define_property(this, "node", void 0);
1110
+ _define_property(this, "analysis", void 0);
1111
+ _define_property(this, "analysisBucket", void 0);
1112
+ _define_property(this, "analysisBucketFile", void 0);
1113
+ _define_property(this, "analysisLog", void 0);
1114
+ _define_property(this, "analysisNode", void 0);
1115
+ _define_property(this, "service", void 0);
1116
+ this.masterImage = new MasterImageAPI({
1117
+ client: this
1118
+ });
1119
+ this.masterImageGroup = new MasterImageGroupAPI({
1120
+ client: this
1121
+ });
1122
+ this.project = new ProjectAPI({
1123
+ client: this
1124
+ });
1125
+ this.projectNode = new ProjectNodeAPI({
1126
+ client: this
1127
+ });
1128
+ this.registry = new RegistryAPI({
1129
+ client: this
1130
+ });
1131
+ this.registryProject = new RegistryProjectAPI({
1132
+ client: this
1133
+ });
1134
+ this.node = new NodeAPI({
1135
+ client: this
1136
+ });
1137
+ this.analysis = new AnalysisAPI({
1138
+ client: this
1139
+ });
1140
+ this.analysisBucket = new AnalysisBucketAPI({
1141
+ client: this
1142
+ });
1143
+ this.analysisBucketFile = new AnalysisFileAPI({
1144
+ client: this
1145
+ });
1146
+ this.analysisLog = new AnalysisLogAPI({
1147
+ client: this
1148
+ });
1149
+ this.analysisNode = new TrainStationAPI({
1150
+ client: this
1151
+ });
1152
+ this.service = new ServiceAPI({
1153
+ client: this
1154
+ });
1155
+ this.on(hapic.HookName.RESPONSE_ERROR, (error)=>{
1156
+ if (hapic.isClientError(error) && error.response && error.response.data && typeof error.response.data.message === 'string') {
1157
+ error.message = error.response.data.message;
1158
+ }
1159
+ throw error;
1160
+ });
1161
+ }
1162
+ }
1163
+
1164
+ exports.AnalysisAPI = AnalysisAPI;
1165
+ exports.AnalysisFileAPI = AnalysisFileAPI;
1166
+ exports.AnalysisLogAPI = AnalysisLogAPI;
1167
+ exports.Client = Client;
1168
+ exports.MasterImageAPI = MasterImageAPI;
1169
+ exports.MasterImageGroupAPI = MasterImageGroupAPI;
1170
+ exports.NodeAPI = NodeAPI;
1171
+ exports.ProjectAPI = ProjectAPI;
1172
+ exports.ProjectNodeAPI = ProjectNodeAPI;
1173
+ exports.RegistryAPI = RegistryAPI;
1174
+ exports.RegistryProjectAPI = RegistryProjectAPI;
1175
+ exports.ServiceAPI = ServiceAPI;
1176
+ exports.TrainStationAPI = TrainStationAPI;
1177
+ //# sourceMappingURL=index.cjs.map